
:root { --navy:#17324d; --blue:#2f6b9a; --teal:#2a7f78; --light:#eaf1f7; --pale:#f5f8fb; --green:#dcefe7; --border:#cbd5df; --ink:#263746; --muted:#62717f; --white:#fff; --shadow:0 16px 40px rgba(23,50,77,.09); }
* { box-sizing:border-box; }
body { margin:0; font-family:var(--font-geist-sans, Arial), Inter, ui-sans-serif, system-ui, sans-serif; color:var(--ink); background:#f2f6f9; }
.profile-header { min-height:82px; width:min(1240px,100%); padding:14px 32px; margin:auto; display:flex; justify-content:space-between; align-items:center; gap:24px; background:#fff; }
.profile-brand img { width:336px; max-width:100%; display:block; }
.profile-home-link { color:var(--blue); font-size:14px; font-weight:700; text-decoration:none; white-space:nowrap; }
.wrap { width:min(1160px,calc(100% - 32px)); margin:auto; }
.hero { background:linear-gradient(135deg,var(--navy),#244f73); color:white; padding:56px 0 48px; }
.hero-layout { display:grid; grid-template-columns:minmax(0,1fr) 185px; gap:38px; align-items:center; }
.hero-logo { width:185px; height:212px; overflow:hidden; border-radius:18px; background:#fff; box-shadow:0 14px 34px rgba(4,23,42,.28); }
.hero-logo img { display:block; width:185px; height:auto; transform:translateY(-34px); }
.hero-logo img { width:100%; height:100%; object-fit:contain; transform:none; }
.eyebrow { text-transform:uppercase; letter-spacing:.13em; font-weight:800; font-size:.75rem; margin:0 0 12px; color:#bcd9ed; }
.hero h1 { font-size:clamp(2.3rem,6vw,4.6rem); line-height:1; margin:0 0 18px; letter-spacing:-.045em; font-weight:800; }
.lede { font-size:1.15rem; line-height:1.6; max-width:780px; margin:0; color:#edf6fc; }
.lede span { display:block; }
.app-grid { display:grid; gap:22px; padding:28px 0 48px; }
.view-controls { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:14px 18px; background:#fff; border:1px solid #dbe4eb; border-radius:14px; box-shadow:var(--shadow); }
.view-controls>div { display:grid; gap:2px; }
.view-controls strong { color:var(--navy); }
.view-controls span { color:var(--muted); font-size:.84rem; }
.view-switch { display:flex; grid-auto-flow:column; align-items:center; gap:9px; white-space:nowrap; cursor:pointer; }
.view-switch input { width:42px; height:24px; margin:0; appearance:none; border:0; border-radius:999px; background:#cbd5df; padding:0; position:relative; transition:background .2s ease; }
.view-switch input:after { content:""; position:absolute; width:18px; height:18px; top:3px; left:3px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(23,50,77,.25); transition:transform .2s ease; }
.view-switch input:checked { background:var(--teal); }
.view-switch input:checked:after { transform:translateX(18px); }
.guided-hidden { display:none; }
.card { background:white; border:1px solid #dbe4eb; border-radius:18px; padding:24px; box-shadow:var(--shadow); }
.section-heading { display:flex; justify-content:space-between; gap:28px; align-items:flex-start; margin-bottom:20px; }
.section-heading>div { display:flex; gap:12px; align-items:center; }
.section-heading h2,.actions h2 { font-size:1.4rem; margin:0; color:var(--navy); font-weight:700; }
.section-heading p,.actions p { margin:2px 0 0; max-width:590px; color:var(--muted); line-height:1.5; }
.step { width:30px; height:30px; border-radius:999px; background:var(--teal); color:white; display:grid; place-items:center; font-weight:800; flex:0 0 auto; }
.form-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.setup .form-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
label { display:grid; gap:7px; font-weight:700; font-size:.86rem; color:var(--navy); }
input,select,textarea { width:100%; border:1px solid var(--border); border-radius:10px; padding:11px 12px; font:inherit; color:var(--ink); background:white; }
input:focus,select:focus,textarea:focus { outline:3px solid rgba(47,107,154,.15); border-color:var(--blue); }
textarea { resize:vertical; line-height:1.5; }
.example-bar { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:14px 16px; margin-bottom:14px; background:var(--green); border:1px solid #bedfd1; border-radius:14px; }
.example-bar>div:first-child { display:grid; gap:2px; }
.example-bar strong { color:var(--navy); }
.example-bar span { color:var(--muted); font-size:.88rem; line-height:1.4; }
.example-actions { display:flex; gap:8px; flex:0 0 auto; }
.example-actions button { white-space:nowrap; }
.print-settings { display:none; }
.allocation-options { display:grid; grid-template-columns:minmax(0,2fr) minmax(240px,1fr); gap:16px; align-items:end; padding:16px; margin-bottom:18px; background:var(--pale); border:1px solid var(--border); border-radius:14px; }
.method-cluster { display:grid; grid-template-columns:minmax(260px,1fr) 140px 180px; gap:12px; align-items:end; min-width:0; }
.method-cluster.percentage-mode { grid-template-columns:minmax(260px,1fr) 180px; }
.segmented-field { display:grid; gap:7px; min-width:0; }
.control-label { font-weight:700; font-size:.86rem; color:var(--navy); }
.segmented-control { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:4px; padding:4px; background:#dfe8f0; border-radius:12px; }
button.segmented-option { min-height:42px; padding:8px 10px; color:var(--navy); background:transparent; border-radius:9px; box-shadow:none; }
button.segmented-option:hover { filter:none; background:rgba(255,255,255,.6); }
button.segmented-option[aria-pressed="true"] { color:white; background:var(--blue); box-shadow:0 2px 8px rgba(23,50,77,.18); }
button.segmented-option[aria-pressed="true"]:hover { background:var(--blue); filter:brightness(1.05); }
.table-wrap { overflow:auto; border:1px solid var(--border); border-radius:12px; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th { background:var(--blue); color:white; text-align:left; font-size:.82rem; padding:12px; }
td { padding:9px; border-bottom:1px solid #e4ebf0; }
td input { padding:9px; }
.share { font-weight:800; color:var(--teal); white-space:nowrap; }
.status-row { display:flex; gap:16px; margin-top:16px; }
.status-row>div { background:var(--pale); border:1px solid var(--border); border-radius:12px; padding:13px 16px; min-width:210px; }
.status-row span { display:block; color:var(--muted); font-size:.8rem; margin-bottom:4px; }
.status-row strong { color:var(--navy); }
.step-nav { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:18px; padding-top:16px; border-top:1px solid #e2e9ef; }
.step-nav span { margin-right:auto; color:var(--muted); font-size:.84rem; }
.step-nav-end { justify-content:flex-end; }
button:disabled { cursor:not-allowed; opacity:.45; filter:none; }
.insight-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px; }
.insight { padding:14px; border-radius:12px; background:var(--green); }
.insight span { display:block; color:var(--muted); font-size:.8rem; }
.insight strong { color:var(--navy); font-size:1.05rem; }
.comments-field { max-width:820px; }
.send-panel { display:grid; grid-template-columns:minmax(240px,.8fr) minmax(420px,1.2fr) auto; gap:18px; align-items:end; margin-top:18px; padding:18px; background:var(--green); border:1px solid #bedfd1; border-radius:14px; }
.send-intro h3 { margin:0 0 4px; color:var(--navy); font-size:1.05rem; }
.send-intro p { margin:0; font-size:.88rem; }
.contact-fields { display:grid; gap:10px; }
.contact-fields>strong { color:var(--navy); font-size:.9rem; }
.contact-fields>strong span { color:var(--muted); font-size:.78rem; font-weight:600; }
.contact-field-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.copy-choice { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.copy-choice input { width:auto; margin:0; accent-color:var(--teal); }
.send-button { white-space:nowrap; }
.send-status { grid-column:1/-1; margin:0!important; padding:10px 12px; border-radius:9px; background:rgba(255,255,255,.72); color:var(--navy)!important; font-weight:700; }
.send-status.error { color:#8b2f2f!important; background:#fff0f0; }
.send-status.duplicate { color:#6c551e!important; background:#fff8df; }
.button-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
button { border:0; border-radius:10px; padding:11px 16px; background:var(--navy); color:white; font:inherit; font-weight:800; cursor:pointer; }
button:hover { filter:brightness(1.08); }
button:focus-visible { outline:3px solid rgba(47,107,154,.3); outline-offset:2px; }
button.secondary { background:var(--teal); }
button.ghost { background:white; color:var(--navy); border:1px solid var(--border); }
footer { padding:24px 0 34px; color:var(--muted); font-size:.85rem; }
.chart-layout { display:grid; grid-template-columns:minmax(230px,360px) minmax(220px,1fr); gap:28px; align-items:center; }
.css-pie { width:min(100%,350px); aspect-ratio:1; border-radius:50%; margin:auto; position:relative; box-shadow:inset 0 0 0 2px #fff,0 8px 30px rgba(23,50,77,.10); }
.css-pie:after { content:"Current allocation"; position:absolute; inset:27%; background:#fff; border-radius:50%; display:grid; place-items:center; text-align:center; padding:12px; font-weight:700; color:#17324d; box-shadow:0 0 0 1px #dbe3ea; }
.chart-legend { display:grid; gap:9px; max-height:390px; overflow:auto; padding-right:6px; }
.legend-item { display:grid; grid-template-columns:14px 1fr auto; gap:9px; align-items:center; padding:7px 0; border-bottom:1px solid #e6ebef; }
.legend-item span { width:12px; height:12px; border-radius:3px; }
.legend-item b { font-size:.92rem; }
.legend-item em { font-style:normal; color:#5f6b76; font-variant-numeric:tabular-nums; }
.legend-empty { color:#5f6b76; padding:20px 0; }
@media(max-width:1100px) { .allocation-options{grid-template-columns:1fr} }
@media(max-width:900px) { .form-grid,.setup .form-grid{grid-template-columns:repeat(2,1fr)} .section-heading{display:block} .section-heading>div{margin-bottom:8px} .insight-grid{grid-template-columns:1fr} .send-panel{grid-template-columns:1fr auto} .send-intro{grid-column:1/-1} }
@media(max-width:720px) { .hero-layout{grid-template-columns:minmax(0,1fr) 125px;gap:18px}.hero-logo{width:125px;height:143px;border-radius:12px}.hero-logo img{width:125px;transform:translateY(-23px)} .method-cluster{grid-template-columns:minmax(0,1fr) 150px} .method-cluster .expected-control{grid-column:1/-1} .method-cluster.percentage-mode{grid-template-columns:minmax(0,1fr) 170px} .method-cluster.percentage-mode .expected-control{grid-column:auto} .chart-layout{grid-template-columns:1fr} .css-pie{max-width:290px} .chart-legend{max-height:none} }
@media(max-width:560px) { .profile-header{min-height:auto;padding:20px 22px;align-items:flex-start}.profile-brand img{width:246px}.profile-home-link{font-size:12px;text-align:right;white-space:normal}.wrap{width:min(100% - 20px,1160px)} .hero{padding:38px 0} .card{padding:17px;border-radius:14px} .view-controls{display:grid} .view-switch{justify-self:start} .form-grid,.setup .form-grid,.allocation-options,.method-cluster,.method-cluster.percentage-mode,.send-panel,.contact-field-grid{grid-template-columns:1fr} .method-cluster .expected-control,.method-cluster.percentage-mode .expected-control{grid-column:auto} .example-bar{display:grid} .example-actions{display:grid;grid-template-columns:1fr 1fr} .example-actions button{padding-inline:10px} .status-row{display:grid} .status-row>div{min-width:0} .step-nav{display:grid;grid-template-columns:1fr 1fr} .step-nav span{grid-column:1/-1;grid-row:1} .step-nav button{width:100%} .step-nav-end button{grid-column:1/-1} .send-intro{grid-column:auto} .copy-choice{padding-bottom:0;white-space:normal} .send-button,.button-row button{width:100%} }
@page { size:A4 landscape; margin:8mm; }
@media print {
  * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  body { background:white; font-size:9pt; }
  .wrap { width:100%; }
  .hero { padding:7px 0 8px; }
  .hero-layout { display:block; }
  .hero-logo { display:none; }
  .eyebrow { display:none; }
  .hero h1 { margin:0 0 3px; font-size:22pt; }
  .lede { max-width:none; font-size:8pt; line-height:1.2; }
  .app-grid { display:block; padding:4px 0; }
  .card { margin:0; padding:6px 0; border:0; border-radius:0; box-shadow:none; break-inside:auto; }
  .section-heading { margin:0 0 4px; }
  .section-heading p { display:none; }
  .section-heading h2 { font-size:13pt; }
  .step { width:22px; height:22px; font-size:8pt; }
  .form-grid,.setup .form-grid { grid-template-columns:repeat(4,1fr); gap:8px; }
  label { gap:1px; font-size:7.5pt; }
  input,select,textarea { padding:2px; border:0; border-bottom:1px solid var(--border); border-radius:0; font-size:8pt; }
  textarea { min-height:44px; }
  .profile-header,.view-controls,.step-nav,.example-bar,.allocation-options,.actions,footer { display:none; }
  .guided-hidden { display:block !important; }
  .print-settings { display:flex; gap:18px; padding:4px 6px; margin-bottom:4px; color:var(--muted); background:var(--pale); border:1px solid var(--border); }
  .print-settings strong { color:var(--navy); }
  .table-wrap { overflow:visible; border-radius:0; }
  table { min-width:0; table-layout:fixed; }
  th { padding:3px 4px; font-size:7pt; }
  td { padding:2px 4px; }
  td input { padding:2px; font-size:7.5pt; }
  th:nth-child(1),td:nth-child(1) { width:29%; }
  th:nth-child(2),td:nth-child(2) { width:21%; }
  th:nth-child(3),td:nth-child(3) { width:12%; }
  th:nth-child(4),td:nth-child(4) { width:38%; }
  .status-row { gap:8px; margin-top:4px; }
  .status-row>div { min-width:0; padding:4px 8px; }
  .status-row span { margin-bottom:1px; font-size:7pt; }
  .chart-card { break-before:page; page-break-before:always; }
  .chart-layout { grid-template-columns:205px 1fr; gap:14px; align-items:start; }
  .css-pie { width:190px; }
  .chart-legend { max-height:none; overflow:visible; gap:1px; padding-right:0; }
  .legend-item { padding:1px 0; font-size:7.5pt; }
  .legend-item b { font-size:7.5pt; }
  .legend-item span { width:9px; height:9px; }
  .insight-grid { gap:6px; margin-top:6px; }
  .insight { padding:6px; }
  .detail-card { padding-top:8px; }
}

/* Keep the form within the viewport, including wide allocation inputs. */
.app-grid { grid-template-columns:minmax(0,1fr); }
[hidden] { display:none!important; }
.app-grid > *, .card, .form-grid > *, .contact-fields, .table-wrap { min-width:0; }
.hero-logo img { transform:none; width:100%; height:100%; object-fit:contain; }
@media screen and (max-width:560px) {
  .example-bar, .send-panel, .contact-field-grid { grid-template-columns:minmax(0,1fr); }
  .example-bar > *, .send-panel > * { min-width:0; }
  .example-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .example-actions button, .send-button { white-space:normal; }
  .card { overflow-wrap:anywhere; }
  .hero-layout { grid-template-columns:minmax(0,1fr); }
  .hero-logo { display:none; }
  input, select, textarea { font-size:16px; }
  .table-wrap table, .table-wrap tbody { display:block; min-width:0; }
  .table-wrap thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .table-wrap tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); padding:10px; border-bottom:1px solid var(--border); gap:8px; }
  .table-wrap td { display:block; min-width:0; border:0; padding:0; }
  .table-wrap td:first-child, .table-wrap td:last-child { grid-column:1/-1; }
  .table-wrap td::before { display:block; font-size:12px; font-weight:700; margin:0 0 4px; }
  .table-wrap td:nth-child(1)::before { content:'Category'; }
  .table-wrap td:nth-child(2)::before { content:'Allocation'; }
  .table-wrap td:nth-child(3)::before { content:'Share'; }
  .table-wrap td:nth-child(4)::before { content:'Context or examples'; }
}
@media print { .actions { display:none!important; } }
