/* Finance customer experiences, scoped to the native customer pages. */
.fd-customer-page { --fc-accent:#2560bd; --fc-light:#edf4ff; --fc-line:#d9e4ef; color:#17263c; }
.fd-customer-page[data-customer-page="realestate"] { --fc-accent:#216b64; --fc-light:#edf7f3; }
.fd-customer-page[data-customer-page="creative"] { --fc-accent:#68548c; --fc-light:#f3eff9; }
.fd-customer-page[data-customer-page="cpa"] { --fc-accent:#2b657b; --fc-light:#edf7fa; }
body #main .fc-hero { padding:42px 0 44px; }
.fc-hero-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:48px; align-items:center; }
body #main .fc-hero .lead { max-width:650px; font-size:1.05rem; line-height:1.75; color:#526276; }
.fc-hero .actions { display:flex; gap:18px; align-items:center; flex-wrap:wrap; margin-top:24px; }
.fc-fit { display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.fc-fit span { padding:6px 11px; border:1px solid var(--fc-line); border-radius:30px; font-size:.76rem; color:var(--fc-accent); background:var(--fc-light); }
.fc-preview { min-width:0; margin:0; padding:26px; border:1px solid var(--fc-line); border-radius:18px; background:linear-gradient(135deg,#fff,var(--fc-light)); box-shadow:0 18px 48px -35px #203b5a70; }
.fc-paper-header { display:flex; gap:12px; align-items:center; padding-bottom:22px; border-bottom:1px solid var(--fc-line); }
.fc-paper-icon { display:grid; place-items:center; width:40px; height:44px; border-radius:10px; color:var(--fc-accent); background:#fff; border:1px solid var(--fc-line); font-size:1.5rem; flex-shrink:0; }
.fc-paper-header strong,.fc-paper-header div>span { display:block; line-height:1.6; }
.fc-paper-header strong { font-size:.92rem; }
.fc-paper-header div>span { font-size:.75rem; color:#526276; }
.fc-paper-period { margin-left:auto; font-size:.65rem; text-align:center; color:#526276; }
.fc-paper-total { padding-block:24px; }
.fc-paper-total>span { display:block; color:#526276; font-size:.8rem; }
.fc-paper-total>strong { display:block; font-size:clamp(1.8rem,3.2vw,2.65rem); line-height:1.2; letter-spacing:-.035em; margin-top:8px; overflow-wrap:break-word; }
.fc-paper-row { display:flex; justify-content:space-between; align-items:baseline; gap:18px; border-top:1px solid var(--fc-line); padding:12px 0; font-size:.8rem; }
.fc-paper-row>span { color:#526276; }
.fc-preview .fc-record-link { margin-top:12px; }
.fc-selector { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; padding:7px; border:1px solid var(--fc-line); border-radius:12px; background:var(--fc-light); }
.fc-selector button { flex:1; min-width:150px; min-height:48px; padding:10px 16px; border:1px solid transparent; border-radius:8px; background:transparent; color:#526276; font:600 .85rem/1.4 var(--ui-font); cursor:pointer; }
.fc-selector button[aria-selected="true"] { background:#fff; border-color:var(--fc-line); color:var(--fc-accent); box-shadow:0 3px 12px #173b6210; }
.fc-work-section { background:#f7f9fc; }
.fc-work-section>.container>header { max-width:760px; margin-bottom:28px; }
.fc-work-section header p { color:#526276; line-height:1.7; margin-bottom:0; }
.fc-workproduct { border:1px solid var(--fc-line); border-radius:16px; background:#fff; overflow:hidden; }
.fd-customer-page .wp-bar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; padding:16px 22px; border-bottom:1px solid var(--fc-line); color:#526276; font-size:.75rem; }
.fd-customer-page .wp-brand { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.fd-customer-page .wp-brand img { width:124px; height:auto; }
.fd-customer-page .wp-brand strong { font-weight:500; }
.fc-sample-label { display:inline-block; padding:3px 8px; border:1px solid var(--fc-line,#d9e4ef); border-radius:20px; font-size:.65rem; line-height:1.5; color:#526276; margin-left:10px; }
.fd-customer-page .workspace { display:grid; grid-template-columns:minmax(0,1fr) 260px; }
.fd-customer-page .workspace.three { grid-template-columns:170px minmax(0,1fr) 245px; }
.fd-customer-page .workspace.package { grid-template-columns:190px minmax(0,1fr) 245px; }
.fd-customer-page .mainpanel { padding:28px; min-width:0; }
.fd-customer-page .kicker { color:var(--fc-accent); font-size:.68rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; margin-bottom:12px; }
body #main .fd-customer-page .mainpanel h3,body #main .fd-customer-page .asidepanel h3 { margin:0 0 12px; font-size:1.2rem; }
.fd-customer-page .intro { color:#526276; font-size:.85rem; line-height:1.7; margin-bottom:22px; }
.fd-customer-page .asidepanel { display:flex; flex-direction:column; justify-content:space-between; gap:24px; padding:26px 22px; min-width:0; background:var(--fc-light); border-left:1px solid var(--fc-line); }
.fd-customer-page .asidepanel p { font-size:.85rem!important; line-height:1.7; color:#526276; }
.fd-customer-page .asidenote { border-top:1px solid var(--fc-line); margin-top:20px; padding-top:16px; font-size:.75rem; line-height:1.7; color:#526276; }
.fd-customer-page .asidenote strong { display:block; color:#263d59; margin-bottom:6px; }
.fd-customer-page .stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding-bottom:22px; margin-bottom:20px; border-bottom:1px solid var(--fc-line); }
.fd-customer-page .stat { min-width:0; }
.fd-customer-page .stat>span,.fd-customer-page .stat>small { display:block; font-size:.7rem; line-height:1.5; color:#526276; }
.fd-customer-page .stat>b { display:block; font-size:clamp(1.2rem,2vw,1.7rem); line-height:1.4; letter-spacing:-.03em; margin-top:6px; }
.fd-customer-page .stat>small { font-size:.65rem; margin-top:5px; }
.fd-customer-page .table-wrap { overflow-x:auto; overscroll-behavior-inline:contain; }
.fd-customer-page .data-table,.fd-customer-dialog .data-table { width:100%; min-width:0; border-collapse:collapse; font-size:.8rem; line-height:1.6; }
.fd-customer-page .data-table td,.fd-customer-page .data-table th,.fd-customer-dialog .data-table td,.fd-customer-dialog .data-table th { padding:13px 12px; text-align:left; border-bottom:1px solid #e2e9f1; vertical-align:top; }
.fd-customer-page .data-table th,.fd-customer-dialog .data-table th { font-weight:600; font-size:.72rem; color:#526276; background:var(--fc-light,#f5f8fc); }
.fd-customer-page .data-table th.numeric,.fd-customer-page .data-table td.numeric { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.fd-customer-page .data-table .total { font-weight:600; background:var(--fc-light); }
.fd-customer-page .data-table tr.selected { background:var(--fc-light); }
.fd-customer-page .rowbutton { border:0; background:transparent; padding:0; min-height:44px; text-align:left; font:600 .8rem/1.6 var(--ui-font); color:var(--fc-accent); cursor:pointer; text-decoration:underline; text-decoration-color:transparent; text-underline-offset:4px; }
.fd-customer-page .rowbutton:hover { text-decoration-color:currentColor; }
.fd-customer-page .table-foot { color:#526276; font-size:.73rem; line-height:1.7; margin:14px 0 0; }
.fd-customer-page .status { display:inline-block; border:1px solid #c8d9ee; border-radius:20px; background:#edf4fc; color:#285d96; padding:4px 9px; font-size:.68rem; font-weight:500; line-height:1.5; }
.fd-customer-page .status.good { border-color:#c6e2d8; background:#edf7f2; color:#256a51; }
.fd-customer-page .status.warn { border-color:#edddbe; background:#fff8ea; color:#825c1e; }
.fd-customer-page .checklist { list-style:none; padding:0; margin:18px 0; }
.fd-customer-page .checklist li { display:flex; gap:9px; font-size:.78rem; line-height:1.7; color:#526276; margin:10px 0; }
.fd-customer-page .checklist li>span { color:var(--fc-accent); flex-shrink:0; }
.fc-record-link { display:inline-flex; align-items:center; gap:12px; min-height:44px; padding:7px 0; border:0; background:transparent; text-align:left; font:600 .8rem/1.6 var(--ui-font); color:var(--fc-accent,#285d96); cursor:pointer; }
.fc-work-tools { display:flex; justify-content:flex-end; margin-top:12px; }
.fd-customer-page .side-nav { display:flex; flex-direction:column; gap:4px; padding:24px 14px; background:#f7f9fc; border-right:1px solid var(--fc-line); min-width:0; }
.fd-customer-page .side-nav button { min-height:48px; padding:10px 12px; border:1px solid transparent; border-radius:7px; background:transparent; text-align:left; color:#526276; font:500 .78rem/1.5 var(--ui-font); cursor:pointer; }
.fd-customer-page .side-nav button[aria-pressed="true"] { background:#fff; border-color:var(--fc-line); color:var(--fc-accent); }
.fc-report-tabs { display:flex; flex-wrap:wrap; border-bottom:1px solid var(--fc-line); background:#fafcff; gap:0; }
.fc-report-tabs button { flex:1; min-width:130px; min-height:48px; padding:12px; border:0; border-bottom:3px solid transparent; background:transparent; color:#526276; font:500 .8rem/1.4 var(--ui-font); cursor:pointer; }
.fc-report-tabs button[aria-selected="true"] { border-bottom-color:var(--fc-accent); background:var(--fc-light); color:var(--fc-accent); }
.fd-customer-page .flow { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:16px; margin-top:24px; }
.fd-customer-page .flow-card { min-width:0; background:var(--fc-light); border:1px solid var(--fc-line); border-radius:12px; padding:20px; }
.fd-customer-page .flow-card label { display:block; font-size:.75rem; color:#526276; }
.fd-customer-page .flow-card strong { display:block; font-size:1.7rem; margin:9px 0; }
.fd-customer-page .flow-card p { color:#526276; font-size:.72rem; line-height:1.6; }
.fd-customer-page .flow-arrow { color:#526276; }
.fd-customer-page .path-cards { display:grid; grid-template-columns:1fr 1fr; gap:18px; padding:24px; background:#f7fafc; }
.fd-customer-page .path-card { border:1px solid var(--fc-line); border-radius:12px; padding:22px; background:#fff; text-align:left; color:#17263c; cursor:pointer; font-family:var(--ui-font); }
.fd-customer-page .path-card[aria-selected="true"] { background:var(--fc-light); border-color:var(--fc-accent); box-shadow:inset 0 3px var(--fc-accent); }
.fd-customer-page .path-title { display:flex; justify-content:space-between; gap:16px; }
.fd-customer-page .path-card p { font-size:.82rem; line-height:1.65; color:#526276; margin-block:12px; }
.fd-customer-page .path-cta { color:var(--fc-accent); font-weight:600; font-size:.76rem; }
.fd-customer-page .handoff { padding:28px; }
.fd-customer-page .responsibility { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-block:24px; }
.fd-customer-page .responsibility>div { border-top:2px solid var(--fc-line); padding-top:18px; }
.fd-customer-page .role { font-size:.65rem; letter-spacing:.06em; color:var(--fc-accent); margin-bottom:12px; }
.fd-customer-page .responsibility strong { font-size:.95rem; }
.fd-customer-page .responsibility p { color:#526276; font-size:.8rem; line-height:1.7; }
.fd-customer-page .creative-grid { display:grid; grid-template-columns:220px minmax(0,1fr); }
.fd-customer-page .project-context { padding:28px; background:var(--fc-light); border-right:1px solid var(--fc-line); }
.fd-customer-page .project-context p,.fd-customer-page .project-meta { color:#526276; font-size:.78rem; line-height:1.75; }
.fd-customer-page .project-meta { border-top:1px solid var(--fc-line); padding-top:18px; margin-top:24px; }
.fd-customer-page .milestones { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.fd-customer-page .milestone { background:var(--fc-light); border:1px solid var(--fc-line); padding:18px; border-radius:10px; }
.fd-customer-page .milestone>strong { display:block; margin-block:14px; }
.fd-customer-page .milestone p { font-size:.76rem; color:#526276; line-height:1.6; }
.fd-customer-page .memo { border-left:3px solid var(--fc-accent); padding:14px 20px; background:var(--fc-light); margin-block:18px; }
.fd-customer-page .memo p { color:#526276; font-size:.8rem; line-height:1.7; margin:8px 0 0; }
.fd-customer-page .chart { margin:24px 0; padding:22px; border:1px solid var(--fc-line); border-radius:12px; }
.fd-customer-page .chart svg { display:block; width:100%; height:auto; }
.fd-customer-page .chart figcaption { color:#526276; font-size:.72rem; line-height:1.6; margin-top:12px; }
.fc-services { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; }
.fc-services article { border-top:3px solid var(--fc-line); padding-top:22px; }
.fc-services p { color:#526276; font-size:.92rem; line-height:1.75; }
.fc-boundary { padding:20px 24px; border:1px solid var(--fc-line); border-radius:12px; margin-top:30px; color:#526276; font-size:.85rem; line-height:1.75; background:var(--fc-light); }
.fc-nav-group { margin:12px 12px 5px!important; font-size:.63rem!important; color:#526276!important; letter-spacing:.06em; }
.fd-customer-dropdown .fc-story-nav { border-top:1px solid #e0e7f0; margin-top:8px; padding-top:16px; }
.fd-customer-dialog { width:min(760px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; border:1px solid #d9e4ef; border-radius:16px; background:#fff; color:#17263c; box-shadow:0 24px 100px #10213a50; overflow:auto; }
.fd-customer-dialog::backdrop { background:#13233b99; backdrop-filter:blur(4px); }
.fd-customer-dialog header { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; padding:24px; border-bottom:1px solid #d9e4ef; }
body #main .fd-customer-dialog h2 { font-size:1.35rem!important; margin:0; }
.fd-customer-dialog [data-customer-action="close"] { flex-shrink:0; width:44px; height:44px; border:1px solid #d9e4ef; border-radius:50%; background:#f5f8fc; font-size:1.6rem; cursor:pointer; }
.fd-customer-dialog [data-customer-detail-body] { padding:24px; }
.fd-customer-dialog [data-customer-detail-body]>p { color:#526276; font-size:.9rem; line-height:1.75; }
.fd-customer-dialog .fc-sample-label { margin:8px 0 0; }
.fd-customer-page :is(button,a,[tabindex]):focus-visible { outline:3px solid #2862d5; outline-offset:3px; }
.fd-stories-page .fd-testimonial-grid { grid-template-columns:1fr; max-width:1100px; margin-inline:auto; }
.fd-stories-page .fd-testimonial-card { box-shadow:none; }
@media(max-width:1050px) {
 .fc-hero-grid { gap:28px; }
 .fd-customer-page .workspace.three,.fd-customer-page .workspace.package { grid-template-columns:160px minmax(0,1fr); }
 .fd-customer-page .workspace.three>.asidepanel,.fd-customer-page .workspace.package>.asidepanel { grid-column:1/-1; border-left:0; border-top:1px solid var(--fc-line); display:grid; grid-template-columns:1fr 1fr; }
 .fd-customer-page .workspace:not(.three):not(.package) { grid-template-columns:minmax(0,1fr) 220px; }
 .fd-customer-page .mainpanel { padding:22px; }
}
@media(max-width:800px) {
 body #main .fc-hero { padding:30px 0 36px; }
 .fc-hero-grid { grid-template-columns:1fr; }
 .fc-preview { max-width:580px; width:100%; margin-top:4px; }
 .fc-services { gap:20px; }
 .fd-customer-page .workspace:not(.three):not(.package) { grid-template-columns:1fr; }
 .fd-customer-page .asidepanel { border-left:0; border-top:1px solid var(--fc-line); }
 .fd-customer-page .creative-grid { grid-template-columns:1fr; }
 .fd-customer-page .project-context { border-right:0; border-bottom:1px solid var(--fc-line); }
 .fd-customer-page .project-context h3 br { display:none; }
 .fd-customer-page .project-meta { margin-top:14px; }
 .fd-customer-page .flow { grid-template-columns:1fr; gap:8px; }
 .fd-customer-page .flow-arrow { text-align:center; }
 .fd-customer-page .flow-card { display:grid; grid-template-columns:1fr auto; align-items:center; gap:10px; }
 .fd-customer-page .flow-card p { grid-column:1/-1; margin:0; }
}
@media(max-width:600px) {
 .fc-preview { padding:20px; border-radius:14px; }
 .fc-selector { flex-direction:column; }
 .fc-selector button { flex:auto; }
 .fc-services,.fd-customer-page .responsibility,.fd-customer-page .milestones,.fd-customer-page .path-cards { grid-template-columns:1fr; }
 .fc-services article { padding-top:18px; }
 .fc-boundary { padding:18px; }
 .fd-customer-page .workspace.three,.fd-customer-page .workspace.package { grid-template-columns:1fr; }
 .fd-customer-page .side-nav { flex-direction:row; flex-wrap:wrap; padding:12px; border-right:0; border-bottom:1px solid var(--fc-line); }
 .fd-customer-page .side-nav .kicker { flex-basis:100%; padding:0 8px; margin:0; }
 .fd-customer-page .side-nav button { flex:1 1 120px; }
 .fd-customer-page .workspace.three>.asidepanel,.fd-customer-page .workspace.package>.asidepanel { display:block; }
 .fd-customer-page .mainpanel,.fd-customer-page .asidepanel,.fd-customer-page .handoff { padding:20px 16px; }
 .fd-customer-page .wp-bar { padding:14px 16px; }
 .fd-customer-page .stats { grid-template-columns:1fr 1fr; gap:16px; }
 .fd-customer-page .stat:last-child:nth-child(3) { grid-column:1/-1; }
 .fd-customer-page .stat>b { font-size:1.45rem; }
 .fd-customer-page .data-table td,.fd-customer-page .data-table th { padding:12px 8px; }
 .fd-customer-page .data-table td:first-child { min-width:100px; }
 .fd-customer-page .hide-small { display:none; }
 .fd-customer-page .path-cards { padding:16px; }
 .fd-customer-page .chart { padding:14px; }
 .fd-customer-dialog header,.fd-customer-dialog [data-customer-detail-body] { padding:18px; }
 .fd-customer-dialog .data-table th { width:40%; }
}
/* Partnership maps use concise work labels and a clear primary action. */
.fd-customer-page[data-customer-page="cpa"] .fc-paper-total>strong { font-size:clamp(1.65rem,2.4vw,2.1rem); }
.fd-customer-page[data-customer-page="cpa"] .fc-paper-header { padding-bottom:18px; }
.fd-customer-page[data-customer-page="cpa"] .fc-paper-row { gap:20px; }
.fd-customer-page[data-customer-page="cpa"] .fc-paper-row>strong { text-align:right; max-width:65%; }
.fd-customer-page[data-customer-page="cpa"] .responsibility { gap:18px; }
.fd-customer-page[data-customer-page="cpa"] .responsibility>div { padding:20px; border:1px solid var(--fc-line); border-radius:12px; background:linear-gradient(180deg,var(--fc-light),#fff 70%); }
.fd-customer-page[data-customer-page="cpa"] .responsibility .role { display:inline-block; padding:5px 9px; border-radius:6px; background:#fff; border:1px solid var(--fc-line); margin-bottom:16px; }
.fd-customer-page[data-customer-page="cpa"] .responsibility strong { display:block; line-height:1.5; }
.fd-customer-page[data-customer-page="cpa"] .responsibility p { margin-bottom:0; }
.fd-customer-page .handoff .actions { display:flex; align-items:center; gap:24px; flex-wrap:wrap; margin-top:26px; }
.fd-customer-page .fc-handoff-detail { width:auto; }

/* Insurance finance uses the same customer report system, with a distinct ledger accent. */
[data-customer-page="insurance"] { --fi-accent:#315cba; --fi-tint:#eef4ff; }
[data-customer-page="insurance"][data-insurance-model="mgas"] { --fi-accent:#167c82; --fi-tint:#eaf8f5; }
[data-customer-page="insurance"][data-insurance-model="brokers"] { --fi-accent:#6b53a5; --fi-tint:#f3effb; }
[data-customer-page="insurance"][data-insurance-model="agencies"] { --fi-accent:#956522; --fi-tint:#fcf5e9; }
[data-customer-page="insurance"] .fc-preview { border-top:4px solid var(--fi-accent); background:linear-gradient(145deg,var(--fi-tint),#fff 76%); }
[data-customer-page="insurance"] .fc-paper-total strong { color:var(--fi-accent); }
[data-customer-page="insurance"] .fc-selector { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
[data-customer-page="insurance"] .fc-selector button { min-width:0; padding-inline:8px; }
[data-customer-page="insurance"] .fc-selector [aria-selected="true"] { color:var(--fi-accent); border-color:var(--fi-accent); background:var(--fi-tint); }
[data-customer-page="insurance"] .fi-pains article { border-top:2px solid var(--fi-accent); }
[data-customer-page="insurance"] .fi-systems article { background:var(--fi-tint); border:1px solid #dce5ef; border-radius:14px; padding:24px; }
[data-customer-page="insurance"] .fc-workproduct>.wp-bar { background:var(--fi-tint); }
.fi-workflow { padding-left:20px; font-size:14px; line-height:1.7; color:#40566e; }
.fi-workflow li { padding-left:4px; margin-bottom:16px; }
[data-customer-page="insurance"] .fi-workspace .mainpanel { min-width:0; }
@media(max-width:600px) {
 [data-customer-page="insurance"] .fc-selector { display:grid; grid-template-columns:1fr 1fr; }
 [data-customer-page="insurance"] .fi-systems article { padding:20px; }
}
[data-customer-page="insurance"] .fi-open-difference { color:var(--fi-accent); font-weight:700; background:var(--fi-tint); }
[data-customer-page="insurance"] .data-table .numeric { font-variant-numeric:tabular-nums; white-space:nowrap; }
[data-customer-page="insurance"] .fc-paper-header>div { min-width:0; }
[data-customer-page="insurance"] [data-customer-preview]>.fc-record-link { color:var(--fi-accent); line-height:1.6; text-align:left; }
