/* Client portal: shares the CRM tokens (styles.css) with a simpler, centered layout. */
body.portal { background: var(--bg); }
.p-top { display: flex; align-items: center; gap: 12px; max-width: 1520px; margin: 0 auto; padding: 18px 32px; }
.p-top .brand { padding: 0; font-size: 20px; }
.p-top .grow { flex: 1; }
.p-user { display: flex; align-items: center; gap: 10px; }
.p-user .who { text-align: right; line-height: 1.2; }
.p-user .who b { display: block; font-weight: 600; }
.p-user .who span { color: var(--muted); font-size: 13px; }
.p-main { max-width: 1520px; margin: 0 auto; padding: 0 32px 64px; }
.p-hero { position: relative; overflow: hidden; color: #fff; border-radius: 26px; padding: 30px 32px 28px; margin-bottom: 18px;
  background: radial-gradient(120% 90% at 15% 0%, #2F62E0 0%, var(--navy) 55%, #0A1238 100%); box-shadow: var(--lift-2); }
.p-hero .eyebrow { color: rgba(255,255,255,.7); font-size: 14px; }
.p-hero h1 { font: 800 34px/1.15 var(--sans); letter-spacing: -.02em; margin: 6px 0 18px; }
.p-hero h1 em { font-style: normal; }
.p-hero .lbl { color: rgba(255,255,255,.72); font-size: 14.5px; }
.p-hero .big { font-size: 44px; font-weight: 600; letter-spacing: -.035em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.p-hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: rgba(255,255,255,.8); font-size: 14px; }
.p-hero .facts b { color: #fff; font-weight: 600; }
.p-hero .fine { margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.55); max-width: 640px; }
@media (max-width: 900px) {
  .p-hero h1 { font-size: 28px; } .p-hero .big { font-size: 36px; } .p-user .who { display: none; }
  .p-top { padding: 14px 16px; } .p-main { padding: 0 16px 48px; }
}
.p-claims { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px; }
.p-claim { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.p-claim:hover { box-shadow: var(--lift-2); transform: translateY(-2px); }

/* progress timeline */
.steps-v { list-style: none; margin: 0; padding: 0; }
.steps-v li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; position: relative; padding-bottom: 20px; }
.steps-v li:last-child { padding-bottom: 0; }
.steps-v li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.steps-v li.done:not(:last-child)::after { background: var(--up); }
.steps-v .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--card); color: #fff; z-index: 1; }
.steps-v li.done .dot { background: var(--up); border-color: var(--up); }
.steps-v li.current .dot { border-color: var(--blue); box-shadow: 0 0 0 5px var(--sky); }
.steps-v li.current .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.steps-v .dot .ic { width: 15px; height: 15px; stroke-width: 2.5; }
.steps-v b { font-weight: 600; font-size: 15.5px; display: block; padding-top: 4px; }
.steps-v li.upcoming b { color: var(--muted); }
.steps-v span { color: var(--muted); font-size: 14px; }
.steps-v .when { color: var(--up); font-size: 13px; font-weight: 600; }
.steps-v li.current .when { color: var(--blue); }

/* signing */
.sign-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .sign-wrap { grid-template-columns: 1fr; } }
.pdf-frame { width: 100%; height: 76vh; border: 0; border-radius: 16px; background: var(--sunken); }
.sig-pad { position: relative; border: 1.5px dashed #C9CED4; border-radius: 14px; background: #FCFCFD; touch-action: none; }
.sig-pad canvas { display: block; width: 100%; height: 170px; cursor: crosshair; border-radius: 14px; }
.sig-pad .base { position: absolute; left: 20px; right: 20px; bottom: 38px; border-bottom: 1px solid #C9CED4; pointer-events: none; }
.sig-pad .hint { position: absolute; left: 20px; bottom: 12px; font-size: 12.5px; color: var(--faint); pointer-events: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 3px; flex: none; }
.done-card { text-align: center; padding: 40px 28px; }
.done-card .tick { width: 64px; height: 64px; border-radius: 50%; background: #E6F4EC; color: var(--up); display: grid; place-items: center; margin: 0 auto 16px; }
.done-card .tick .ic { width: 30px; height: 30px; stroke-width: 2.5; }
.done-card h1 { font: 800 32px/1.15 var(--sans); margin: 0 0 8px; }
.upload-btn { cursor: pointer; }

/* claims list heading and "submit a new claim" */
.p-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin: 10px 0 20px; }
.p-head h1 { font: 800 34px/1.15 var(--sans); margin: 0; }
.p-head h1 em { font-style: italic; }
.p-hero .big.checking { font-size: 30px; }
.field-lbl { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 14px;
  font-size: 13.5px; font-weight: 500; text-align: center; cursor: pointer; transition: border-color .12s, background .12s; }
.choice span .ic { width: 26px; height: 26px; color: var(--muted); }
.choice span:hover { border-color: #C9CED4; }
.choice input:checked + span { border-color: var(--blue); background: var(--sky); color: var(--navy); }
.choice input:checked + span .ic { color: var(--blue); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--sky); }
#claim-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#claim-form textarea { min-height: 90px; resize: vertical; }
@media (max-width: 600px) { #claim-form .two { grid-template-columns: 1fr; } .p-head h1 { font-size: 28px; } }

/* estimated timeline */
.eta-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.eta-big { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.eta-when { text-align: right; }
.eta-when b { font-size: 16px; font-weight: 600; }
.eta-bar { height: 8px; border-radius: 99px; background: var(--sunken); margin: 18px 0 6px; overflow: hidden; }
.eta-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--up), var(--blue)); }
.eta-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }
.eta-rows { list-style: none; margin: 16px 0 0; padding: 0; }
.eta-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.eta-rows li.upcoming > span:first-child { color: var(--muted); }
.eta-rows em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--blue); background: var(--sky); border-radius: 99px; padding: 2px 8px; margin-left: 6px; }
.eta-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 10px 12px; }
@media (max-width: 600px) { .eta-when { text-align: left; } }

/* header nav */
.p-nav { display: flex; gap: 4px; margin-left: 18px; }
.p-nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14.5px; }
.p-nav a:hover { background: var(--sunken); color: var(--ink); }
.p-nav a.on { background: var(--sky); color: var(--navy); }
@media (max-width: 600px) { .p-top { gap: 6px; } .p-top > a.tbbtn:first-child { display: none; } .p-nav { margin-left: 0; } .p-nav a { padding: 0 10px; font-size: 14px; } .p-top .brand { display: none; } .p-user { gap: 6px; } }

/* hero side panel on the claim page */
.p-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 28px; align-items: start; }
.p-hero-side { display: grid; gap: 10px; }
.p-hero-side .tile { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 16px; }
.p-hero-side .tile .k { color: rgba(255,255,255,.65); font-size: 12.5px; }
.p-hero-side .tile .v { font-size: 17px; font-weight: 600; margin-top: 2px; }
.p-hero-side .tile .s { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 2px; }
@media (max-width: 900px) { .p-hero-in { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 600px) { .p-hero-side { grid-template-columns: 1fr 1fr; } .p-hero-side .tile .s, .p-hero-side .tile.needs { display: none; } .p-hero-side .tile .v { font-size: 15px; } }

/* guides list (claim page card, related guides) */
.g-list { display: grid; margin: -6px 0; }
.g-row { display: grid; grid-template-columns: 36px 1fr 16px; gap: 12px; align-items: center; padding: 10px 0; color: inherit; border-top: 1px solid var(--row); }
.g-row:first-child { border-top: 0; }
.g-row b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.g-row:hover b { color: var(--blue); }
.g-row > .ic { color: var(--faint); }
.g-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--sky); color: var(--blue); display: grid; place-items: center; flex: none; }
.g-ic .ic { width: 18px; height: 18px; }
.card-head a.meta { color: var(--blue); font-size: 13.5px; }

/* guides index */
.l-hero { position: relative; overflow: hidden; color: #fff; border-radius: 26px; padding: 36px 36px 30px; margin-bottom: 18px;
  background: radial-gradient(120% 90% at 85% 0%, #2F62E0 0%, var(--navy) 55%, #0A1238 100%); box-shadow: var(--lift-2); }
.l-hero .eyebrow { color: rgba(255,255,255,.7); font-size: 14px; }
.l-hero h1 { font: 800 40px/1.12 var(--sans); letter-spacing: -.02em; margin: 6px 0 12px; max-width: 760px; }
.l-hero h1 em { font-style: italic; }
.l-hero p { color: rgba(255,255,255,.78); max-width: 640px; margin: 0 0 20px; font-size: 15.5px; line-height: 1.5; }
.l-search { position: relative; display: block; max-width: 460px; }
.l-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.l-search .input { width: 100%; height: 46px; padding-left: 40px; border-radius: 14px; border-color: transparent; }
.l-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.l-cats .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.l-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.l-card { color: inherit; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, transform .15s; }
.l-card:hover { box-shadow: var(--lift-2); transform: translateY(-2px); color: inherit; }
.l-card h2 { font: 800 23px/1.2 var(--sans); letter-spacing: -.01em; margin: 6px 0 0; }
.l-card p { margin: 0; font-size: 14.5px; line-height: 1.5; flex: 1; }
.l-read { color: var(--blue); font-weight: 600; font-size: 14px; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.l-top { display: flex; align-items: center; gap: 10px; }
.l-foot { margin-top: 22px; text-align: center; }

/* guide article */
.l-article { display: grid; grid-template-columns: minmax(0, 900px) minmax(280px, 400px); justify-content: center; gap: 18px; align-items: start; }
.l-body { padding: 30px 40px 34px; }
.l-body h1 { font: 800 38px/1.15 var(--sans); letter-spacing: -.02em; margin: 12px 0 10px; max-width: 820px; }
.l-lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin: 0 0 8px; }
.l-prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.l-prose h2 { font: 600 20px/1.3 var(--sans, inherit); color: var(--ink); margin: 28px 0 8px; letter-spacing: -.01em; }
.l-prose p { margin: 0 0 14px; }
.l-prose ul { margin: 0 0 14px; padding-left: 22px; }
.l-prose li { margin: 6px 0; }
.l-prose strong { color: var(--ink); font-weight: 600; }
.l-prose a { color: var(--blue); font-weight: 500; }
.l-disclaimer { margin-top: 26px; font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 12px 14px; line-height: 1.5; }
.l-cta h3 { margin: 0 0 6px; font-size: 17px; }
.l-cta p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 1000px) { .l-article { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .l-hero { padding: 26px 22px; } .l-hero h1 { font-size: 30px; } .l-body { padding: 22px 20px; } .l-body h1 { font-size: 29px; } .l-grid { grid-template-columns: 1fr; } }

/* claim page: rows that read top to bottom, each row's cards the same height */
.p-sec { font: 800 24px/1.2 var(--sans); letter-spacing: -.01em; margin: 30px 0 12px; color: var(--ink); }
.p-row { display: grid; gap: 18px; align-items: stretch; }
.p-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-row > .card { min-width: 0; }
.p-scroll { max-height: 340px; overflow-y: auto; margin: -6px -8px -10px; padding: 0 8px; }
@media (max-width: 1180px) { .p-row.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p-row.three > .card:last-child { grid-column: 1 / -1; } }
@media (max-width: 820px) { .p-row.two, .p-row.three { grid-template-columns: 1fr; } .p-sec { font-size: 21px; margin-top: 24px; } }
button.todo { width: calc(100% + 48px); border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }

/* switching between a client's claims */
.p-switch { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 -2px; scrollbar-width: thin; }
.p-switch a { display: flex; align-items: center; gap: 10px; flex: none; max-width: 340px; padding: 9px 14px 9px 10px; border-radius: 16px;
  background: var(--card); border: 1.5px solid var(--hair); color: inherit; box-shadow: var(--lift); transition: border-color .12s; }
.p-switch a:hover { border-color: #C9CED4; }
.p-switch a.on { border-color: var(--blue); background: var(--sky); }
.p-switch .sw-t { display: grid; min-width: 0; line-height: 1.25; }
.p-switch .sw-t b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-switch .sw-t span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.p-switch .sw-n { min-width: 22px; height: 22px; border-radius: 99px; background: #F5A524; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.p-switch a.sw-all { color: var(--blue); font-weight: 600; font-size: 14px; box-shadow: none; background: none; border-style: dashed; }

/* header: submit a new claim */
.p-newclaim { margin-right: 6px; }
@media (max-width: 760px) { .p-newclaim span { display: none; } .p-newclaim { width: 36px; padding: 0; } }

/* upload pop-up */
.drop { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed #C9CED4; border-radius: 16px; background: var(--bg); cursor: pointer; transition: border-color .12s, background .12s; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--sky); }
.drop #drop-t { display: grid; gap: 2px; min-width: 0; }
.drop #drop-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* claims overview cards */
.p-claim { color: inherit; padding: 26px 28px 22px; display: flex; flex-direction: column; }
.p-claim:hover { color: inherit; }
.pc-top { display: flex; align-items: center; gap: 10px; }
.pc-top .g-ic { width: 42px; height: 42px; border-radius: 13px; } .pc-top .g-ic .ic { width: 21px; height: 21px; }
.pc-title { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; margin: 16px 0 14px; color: var(--ink); }
.pc-amt { font-size: 38px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pc-amt.checking { font-size: 26px; letter-spacing: -.02em; }
.p-claim .eta-bar { margin: 20px 0 8px; }
.pc-foot { display: flex; align-items: flex-end; gap: 28px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--row); }
.pc-foot b { font-weight: 600; font-size: 15px; } .pc-foot b.warn { color: #B26B00; }
.pc-go { margin-left: auto; color: var(--blue); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 600px) { .p-claim { padding: 20px; } .pc-amt { font-size: 32px; } .pc-foot { gap: 16px; flex-wrap: wrap; } .pc-go { margin-left: 0; } }

/* Brand headlines: heavy and tight, no italics. */
.p-hero h1, .done-card h1, .p-head h1, .l-hero h1, .l-card h2, .l-body h1, .p-sec { letter-spacing: -.035em; }
.p-top .brand-mark .wm { font-size: 18px; }
@media (max-width: 600px) { .p-top .brand-mark .wm { display: none; } }
