/* Headquarters UI: common tokens and source-backed overview. */
:root{--blue:#2465f6;--bg:#f6f8fc;--ink:#17243b;--muted:#768397;--sidebar:232px;--line:#e7edf5}body{font-family:'Segoe UI','Microsoft YaHei',sans-serif;color:var(--ink);font-size:14px}.ui-icon{width:22px;height:22px;display:inline-block;flex:none;vertical-align:middle}button,.button{border-color:#dfe6f0;border-radius:7px;padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:500}.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover{background:#1555e8}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #a8c4ff;outline-offset:3px}aside{padding:25px 15px 22px;border-color:#e3e9f2}.brand{padding:0 3px 35px;gap:11px;letter-spacing:0;font-size:21px;white-space:nowrap}.brand-mark{width:43px;height:45px;border-radius:7px;background:var(--blue)}.brand-mark .ui-icon{width:29px;height:29px}.brand div>span{font-size:12px;letter-spacing:.8px;color:#7a8699;margin-top:2px}nav{gap:7px}nav button{justify-content:flex-start;position:relative;padding:12px 14px;color:#46536a;font-size:15px;font-weight:400;min-height:45px}nav button>span{margin:0 7px 0 0;display:inline-flex}nav button.active{background:#eaf1ff;color:#2465f6}.nav-group{font-size:12px;color:#8590a1;margin:22px 11px 6px;letter-spacing:.5px}.nav-count{background:#ff762c;color:#fff;border-radius:6px;font-size:11px;line-height:19px;min-width:19px;padding:0 4px;margin-left:auto}.sidebar-bottom{border-top:1px solid var(--line);padding:19px 9px 0;display:flex;align-items:center;gap:12px;font-size:13px;color:#78879d}.sidebar-bottom .ui-icon{width:23px}header{height:68px;padding:0 32px;border-color:var(--line)}.breadcrumb{font-size:14px;color:#516077;display:flex;align-items:center;gap:0}.breadcrumb b{color:#334059}.top-tools{display:flex;align-items:center;gap:25px}.top-date{display:flex;gap:9px;align-items:center;font-size:13px}.top-date .ui-icon{width:19px}.icon-button{border:0;padding:6px;position:relative;background:none}.icon-button i{position:absolute;right:4px;top:3px;width:6px;height:6px;background:#ff813f;border-radius:50%}.user-menu{position:relative}.user-menu summary{cursor:pointer;display:flex;align-items:center;gap:9px;list-style:none;font-size:13px}.user-menu summary::-webkit-details-marker{display:none}.user-menu summary>.ui-icon{width:15px}.avatar{display:flex;align-items:center;justify-content:center;width:33px;height:33px;border-radius:50%;background:var(--blue);color:#fff;font-weight:600}.user-popover{position:absolute;right:0;top:45px;min-width:155px;z-index:30;background:#fff;box-shadow:0 8px 28px #22345b1a;border:1px solid var(--line);border-radius:9px;padding:7px}.user-popover button{display:block;width:100%;text-align:left;border:0;background:none}.user-popover button:hover{background:#f1f5fc}#mobileMenu{display:none}main{padding:27px 32px 25px;max-width:1900px}.page-heading{margin-bottom:25px;gap:18px;align-items:center}.page-heading h1{font-size:29px;letter-spacing:0;font-weight:650;line-height:1.3}.page-heading p{font-size:13px;color:#8490a2;margin-top:8px}.header-actions{gap:12px;flex-wrap:wrap}.header-actions button{padding:11px 17px;font-size:14px}.header-actions .ui-icon{width:20px}.panel{border:1px solid var(--line);border-radius:9px;box-shadow:none;padding:21px 22px;margin-bottom:18px}.panel-heading{margin-bottom:15px;gap:10px}.panel h2{font-size:16px;font-weight:600}.text-link{padding:0;border:0;background:none!important;color:var(--blue);font-size:13px;white-space:nowrap}.text-link .ui-icon{width:18px}.home-status{display:flex;align-items:center;gap:19px;border:1px solid #e0e9f8;background:#f8fbff;padding:16px 18px;border-radius:8px;font-size:13px;color:#526078;flex-wrap:wrap}.home-status>.ui-icon{color:var(--blue)}.home-status b{font-weight:500;color:#2d3b54;margin-left:5px}.home-status>i{height:15px;border-left:1px solid #cad4e4}.home-status .text-link{margin-left:auto}.home-note{text-align:right;font-size:11px;color:#8491a5;margin:6px 2px 17px;min-height:16px}.home-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px;margin-bottom:20px}.home-kpi{display:block;text-align:left;position:relative;background:#fff;border:1px solid #e2e9f4;border-radius:9px;padding:20px 20px 18px;min-height:148px;overflow:hidden}.home-kpi:hover{border-color:#aac4fd;background:#fcfdff}.metric-label{display:block;font-weight:500;font-size:14px;color:#344156;padding-right:25px}.metric-icon{position:absolute;right:18px;top:20px}.metric-icon .ui-icon{width:27px;height:27px}.home-kpi strong{display:block;font-size:clamp(22px,2vw,33px);line-height:1.4;font-weight:650;letter-spacing:-.6px;margin:12px 0 8px;color:#1c293f;font-variant-numeric:tabular-nums;white-space:nowrap}.home-kpi strong small{font-size:16px;font-weight:400}.metric-note{font-size:11px;font-weight:400;color:#7d899b}.metric-note b{color:var(--blue);font-weight:500}.blue{color:#3678fb}.amber{color:#da8b12}.red{color:#e95260}.teal{color:#439b89}.violet{color:#9068e5}.neutral{color:#8a97a9}.state{display:inline-flex;align-items:center;padding:2px 7px;border:1px solid currentColor;border-radius:4px;font-size:11px;white-space:nowrap;line-height:1.6}.state.teal{background:#f4fbf7}.state.amber{background:#fffbf3}.state.red{background:#fff7f7}.state.neutral{border-color:#e1e6ee;background:#f6f8fb}.home-columns{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:20px}.home-columns>.panel{min-width:0;margin-bottom:20px}.home-chart{width:100%;margin-top:3px}.home-chart svg{width:100%;height:235px;display:block;overflow:visible}.home-chart text{font-size:12px;fill:#7c89a0;font-family:inherit}.home-chart .point-label{fill:#3478ff;font-size:12px}.home-chart .missing-label{fill:#b0bbcb;font-size:10px}.home-chart g[role=button]{cursor:pointer;outline:none}.home-chart g[role=button]:focus circle:last-of-type{stroke:#183f9e;stroke-width:3}.trend-panel>.muted{margin:-5px 0 4px;font-size:11px}.chart-note{color:#8896aa;font-size:10px;gap:8px}.todo-row{display:flex;align-items:center;gap:11px;padding:18px 0;border-bottom:1px solid var(--line)}.todo-icon{border:1px solid currentColor;border-radius:5px;width:37px;height:39px;display:flex;align-items:center;justify-content:center;flex:none}.todo-copy{flex:1;min-width:0}.todo-copy b{font-size:13px;font-weight:500;display:block}.todo-copy p{font-size:11px;color:#8591a5;margin:5px 0 0;line-height:1.6}.outline-action{color:var(--blue);border-color:#aac4fa;border-radius:5px;padding:5px 10px;font-size:12px;white-space:nowrap}.todo-row>.state{margin-right:2px}.todo-foot{font-size:11px;color:#909caf;line-height:1.7;margin-bottom:0}.todo-clear{min-height:143px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#7b8ba1}.todo-clear>.ui-icon{width:35px;height:35px;color:#66ae9c;padding:5px;border:1px solid #d6eae4;border-radius:50%;margin:12px}.todo-clear b{font-weight:500;font-size:14px}.todo-clear p{font-size:12px}.activity-panel{padding:0;overflow:hidden}.activity-panel>.panel-heading{padding:17px 20px 10px;margin:0}.activity-panel th{background:#f8faff;padding:11px 20px;font-size:12px;font-weight:500}.activity-panel td{padding:11px 20px;font-size:12px}.activity-link{border:0;padding:0;background:none!important;justify-content:flex-start;text-align:left;color:#34445d;font-size:12px}.activity-link:hover{color:var(--blue)}.activity-icon{margin-right:6px}.activity-icon>.ui-icon{width:24px;height:24px}.empty-row{text-align:center;color:#8b99ad;height:86px}.section-tabs{display:flex;gap:30px;border-bottom:1px solid #e3e9f3;margin-bottom:18px}.section-tabs button{border:0;border-radius:0;border-bottom:2px solid transparent;background:none;padding:10px 2px 14px;color:#8190a5;font-size:14px}.section-tabs button.active{border-bottom-color:var(--blue);color:var(--blue)}.report-status-strip{border-radius:7px;font-size:12px;color:#8291a6;padding:12px 16px}.task-card,.target-card{border-radius:8px}.task-card .panel-heading{margin-bottom:12px}.task-card h3{font-size:15px}th{font-size:12px;background:#f8faff;color:#64738a}td{font-size:13px}.toolbar{border:1px solid var(--line);border-radius:9px;padding:15px 20px}.kpi{border:1px solid var(--line);border-radius:9px;box-shadow:none}.kpi .value{font-variant-numeric:tabular-nums}.side-drawer{inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:min(1100px,92vw);max-width:92vw;border-radius:0;padding:27px;box-shadow:-10px 0 35px #243a5c20}.account-drawer{width:min(460px,92vw)}dialog{border-radius:11px;border:1px solid var(--line);box-shadow:0 16px 65px #1d304425}dialog::backdrop{background:#172d4d38}.dialog-heading{padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:18px}.dialog-heading h2{font-size:19px}.detail-table{max-height:calc(100dvh - 250px)}.module-empty{font-size:13px;background:#f8faff}.chart-empty{height:228px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px}footer{font-size:11px}.eyebrow{display:none}
@media(min-width:1650px){.home-kpi{min-height:165px}.home-chart svg{height:290px}.todo-row{padding:23px 0}.home-cards{gap:22px}.home-columns{gap:22px}}
@media(max-width:1190px){:root{--sidebar:202px}.brand{font-size:18px}.brand-mark{width:37px;height:40px}.brand div>span{font-size:10px}main{padding:22px}header{padding:0 23px}.home-cards{gap:12px}.home-kpi{padding:16px 14px;min-height:142px}.metric-icon{right:13px;top:15px}.metric-icon .ui-icon{width:22px}.metric-label{font-size:13px}.home-kpi strong{font-size:24px}.home-columns{grid-template-columns:1fr}.home-chart svg{height:235px}.todo-row{padding:15px 0}.top-tools{gap:16px}.home-status{gap:12px}.home-status>i{display:none}.header-actions .live-badge{display:none}.page-heading h1{font-size:25px}}
@media(max-width:760px){:root{--sidebar:0px}aside{position:fixed;inset:0 auto 0 0;display:flex;width:228px;transform:translateX(-100%);transition:transform .2s;z-index:50;box-shadow:10px 0 30px #24365422}.nav-open aside{transform:translateX(0)}aside .brand{display:flex}aside nav{display:grid;flex-wrap:nowrap}aside nav button{min-width:0;text-align:left;padding:11px 14px}aside .sidebar-bottom{display:flex;margin-top:auto;padding-top:18px}.nav-group{margin-top:16px}.brand{font-size:19px}.brand div>span{font-size:11px}header{padding:0 15px;height:61px;min-height:61px;gap:12px}.breadcrumb{display:flex;font-size:12px;white-space:nowrap}.breadcrumb>span{margin:0 9px}#mobileMenu{display:inline-flex;border:0;padding:5px;margin-right:8px}.top-date{display:none}.top-tools{gap:9px}.avatar{width:29px;height:29px}.user-menu summary{font-size:11px;gap:5px}#identity{max-width:80px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-menu summary>.ui-icon{display:none}main{padding:20px 14px}.page-heading{display:block;margin-bottom:18px}.page-heading h1{font-size:25px}.page-heading p{font-size:12px}.header-actions{margin-top:15px;justify-content:flex-start;width:auto;gap:9px}.header-actions button{padding:9px 13px;font-size:12px}.home-status{padding:12px;gap:8px 13px;font-size:11px}.home-status>.ui-icon{width:18px}.home-status .text-link{font-size:11px;margin-left:0;width:100%;justify-content:flex-start}.home-note{font-size:10px;text-align:left;margin-bottom:13px}.home-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.home-kpi{min-height:136px;padding:14px 12px}.metric-label{font-size:11px;padding-right:20px}.metric-icon{right:10px;top:13px}.metric-icon .ui-icon{width:20px}.home-kpi strong{font-size:22px;margin-top:12px}.metric-note{font-size:10px}.home-kpi strong small{font-size:13px}.panel{padding:16px 14px}.panel h2{font-size:14px}.text-link{font-size:11px}.panel-heading{align-items:center}.home-chart svg{height:205px}.home-columns{gap:0}.home-columns>.panel{margin-bottom:14px}.todo-row{gap:8px}.todo-copy b{font-size:12px}.todo-copy p{font-size:10px}.todo-icon{width:30px;height:33px}.todo-row>.state{font-size:10px;padding:1px 4px}.outline-action{font-size:11px;padding:5px 7px}.activity-panel{padding:0}.activity-panel>.panel-heading{padding:15px}.activity-panel th,.activity-panel td{padding:11px 14px;white-space:nowrap}.activity-panel table{min-width:660px}.section-tabs{gap:26px}.side-drawer{max-width:100vw;width:100vw;padding:19px}.account-drawer{width:min(440px,100vw)}.report-status-strip{gap:9px;font-size:11px}.toolbar{padding:12px}.toolbar label{font-size:12px}.home-chart .missing-label{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* KPI cards are stacked content, not horizontal action buttons. */
.kpis .kpi{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;min-width:0;min-height:174px;padding:20px 22px 17px;text-align:left}
.kpis .kpi .label{display:block;font-size:13px;line-height:1.5;white-space:nowrap;padding-right:22px;color:#64738a;font-weight:500}
.kpis .kpi .value{display:block;font-size:clamp(24px,2.8vw,38px);line-height:1.25;letter-spacing:-.7px;margin:11px 0 12px;white-space:nowrap;color:#1c293f}
.kpis .kpi .compare{display:flex;flex-wrap:wrap;gap:3px 6px;font-size:11px;line-height:1.6;color:#7d899b}
.kpis .kpi .period{display:block;margin-top:auto;padding-top:10px;font-size:10px;line-height:1.5;color:#8995a7}
.kpis .kpi .arrow{top:21px;right:20px}
@media(max-width:1190px){.kpis .kpi{padding:17px 15px;min-height:166px}.kpis .kpi .value{font-size:28px}.kpis .kpi .compare{font-size:10px}}
@media(max-width:760px){.kpis .kpi{padding:16px 13px;min-height:163px}.kpis .kpi .label{font-size:12px}.kpis .kpi .value{font-size:26px;margin:10px 0}.kpis .kpi .period{font-size:10px}.kpis .kpi .arrow{right:13px;top:17px}}
@media(max-width:380px){.kpis .kpi .value{font-size:23px}}

/* Executive dashboard treatment: quiet cards, restrained color rails, generous charts. */
#businessView .kpis{gap:18px;margin-bottom:22px}
#businessView .kpis .kpi{position:relative;overflow:hidden;min-height:158px;padding:24px 24px 20px;border:1px solid #e3e8ef;border-radius:14px;background:#fff;box-shadow:0 2px 10px #20355408;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
#businessView .kpis .kpi::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;border-radius:14px 0 0 14px;background:#4b7cf3}
#businessView .kpis .kpi:nth-child(2)::before{background:#48b5cb}
#businessView .kpis .kpi:nth-child(3)::before{background:#56bd72}
#businessView .kpis .kpi:nth-child(4)::before{background:#e8a12e}
#businessView .kpis .kpi:hover{transform:translateY(-2px);border-color:#cfd9e8;box-shadow:0 10px 26px #20355410}
#businessView .kpis .kpi .arrow{display:none}
#businessView .kpis .kpi .label{font-size:14px;font-weight:500;color:#59667a;padding:0}
#businessView .kpis .kpi .value{font-size:clamp(30px,2.35vw,40px);font-weight:700;letter-spacing:-1px;color:#111c2e;margin:14px 0 10px}
#businessView .kpis .kpi .compare{font-size:11px;color:#738096}
#businessView .kpis .kpi .period{font-size:10px;color:#8b96a7;padding-top:8px}
#businessCharts .panel{padding:27px 26px 23px;border-color:#e3e8ef;border-radius:14px;box-shadow:0 2px 10px #20355406;margin-bottom:22px}
#businessCharts .panel-heading{margin-bottom:12px}
#businessCharts .panel-heading h2{font-size:17px;color:#26344b}
#businessCharts .legend{margin-top:14px}
#businessCharts .chart-svg{height:250px}
#businessCharts .chart-wrap{padding-top:8px}
#businessCharts .chart-note{margin-top:8px}
@media(max-width:1190px){#businessView .kpis{gap:12px}#businessView .kpis .kpi{padding:20px 18px;min-height:154px}#businessCharts .chart-svg{height:225px}}
@media(max-width:760px){#businessView .kpis .kpi{min-height:146px;border-radius:11px}#businessCharts .panel{padding:20px 16px;border-radius:11px}#businessCharts .chart-svg{height:210px}}

/* Searchable product selection and dedicated comparison mode. */
.product-selector-panel{position:relative;padding:20px 24px;margin-bottom:20px;overflow:visible}
.product-selector-panel .panel-heading{margin-bottom:16px;gap:16px}
.product-selector-panel .panel-heading p{margin:6px 0 0;font-size:12px}
.product-modes{display:inline-flex;flex-shrink:0;gap:3px;padding:4px;background:#f2f5fa;border-radius:9px}
.product-modes button{border:0;background:transparent;color:#68768c;padding:7px 13px;font-size:12px;white-space:nowrap}
.product-modes button.active{background:white;color:#2765d7;box-shadow:0 1px 5px #21385a12}
.product-select-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.product-picker{position:relative;width:340px;max-width:100%;flex-shrink:0}
.product-picker>label{display:block;margin-bottom:7px;font-size:12px;color:#68768c}
.product-search-box{display:flex;align-items:center;border:1px solid #dce4ef;border-radius:8px;background:white}
.product-search-box:focus-within{border-color:#6799f4;box-shadow:0 0 0 3px #3478f610}
.product-search-box input{width:100%;min-width:0;border:0;box-shadow:none;background:transparent}
.product-search-box button{border:0;background:transparent;padding:8px 12px;color:#7a8da6}
.product-dropdown{position:absolute;top:100%;left:0;right:0;margin-top:6px;padding:8px;background:white;border:1px solid #dce4ef;border-radius:10px;box-shadow:0 10px 30px #24395c22;z-index:40}
#productOptionCount{padding:5px 8px 9px;font-size:11px}
#productOptions{max-height:280px;overflow-y:auto}
#productOptions button{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;text-align:left;border:0;padding:10px;border-radius:6px;background:white;font-size:13px}
#productOptions button span{font-size:11px;color:#3478f6}
#productOptions button:hover,#productOptions button.keyboard-active,#productOptions button[aria-selected=true]{background:#eef4ff;color:#2765d7}
.product-no-match{padding:12px;font-size:12px;color:#68768c}
.product-selection{display:flex;flex-direction:column;gap:7px;flex:1;min-width:160px;font-size:12px}
#productSelection{display:flex;gap:6px;flex-wrap:wrap;align-items:center;min-height:36px}
.selected-product{display:inline-flex;align-items:center;gap:12px;border:1px solid #dbe7ff;border-radius:6px;background:#f1f6ff;color:#2865c5;padding:7px 10px;font-size:12px}
.product-shortcuts{margin-top:18px;padding-top:14px;border-top:1px solid #eef1f6}
.shortcut-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:10px;font-size:12px;color:#52617a}
.shortcut-heading b{display:inline-block;padding:1px 6px;border-radius:4px;background:#eef2f8;font-size:11px;margin-left:5px}
.shortcut-heading small{color:#8794a8;font-size:11px}
.quick-products{display:flex;flex-wrap:wrap;gap:8px}
.quick-products .quick-product{border:1px solid #e6ebf2;background:#f8fafc;color:#52617a;padding:6px 12px;border-radius:6px;font-size:12px;line-height:1.4;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick-products .quick-product:hover,.quick-products .quick-product.active{border-color:#a8c5fc;background:#eef4ff;color:#2765d7}
.product-unit-note{margin:12px 0 0;font-size:11px;color:#8794a8}
.compare-toolbar{display:flex;align-items:center;gap:14px;margin:0 0 16px;font-size:13px;flex-wrap:wrap}
.compare-toolbar>.product-modes{margin-left:auto}
.comparison-legend{flex-wrap:wrap;gap:16px}
.compare-svg [role=button]{cursor:pointer}
@media(max-width:800px){.product-selector-panel{padding:16px}.product-selector-panel .panel-heading{align-items:flex-start;flex-direction:column}.product-picker{width:100%}.product-select-row{gap:12px}.compare-toolbar>.product-modes{margin-left:0}.quick-products{gap:6px}.quick-products .quick-product{padding:6px 9px}}

.file-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:14px 0 20px}.file-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#68768c}.file-filters input,.file-filters select{max-width:330px;min-width:140px}.file-filters input[type=search]{width:210px}.danger-text{color:#c34646!important}#fileActionWarning{line-height:1.8;color:#7e5c27;background:#fff8eb;padding:14px;border-radius:8px}#replacementLabel{display:flex;flex-direction:column;gap:10px}.order-analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.order-rank-row{display:grid;grid-template-columns:minmax(80px,1fr) minmax(40px,1fr) auto auto;align-items:center;gap:12px;width:100%;border:0;border-radius:6px;padding:10px 4px;background:transparent;text-align:left;font-size:12px}.order-rank-row:hover{background:#f2f6ff}.order-rank-row>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-rank-track{height:8px;background:#f0f4fa;border-radius:5px;overflow:hidden}.order-rank-track i{display:block;height:100%;background:#618af1;border-radius:5px}.order-rank-row small{color:#8794a8;min-width:35px;text-align:right}.order-rank-row b{font-size:12px;font-weight:500;min-width:50px;text-align:right}@media(max-width:950px){.order-analysis-grid{grid-template-columns:1fr}.file-filters select{max-width:260px}}

/* Company branding */
:root{--brand-hover:#1555e8;--brand-soft:#eaf1ff;--brand-focus:#a8c4ff}
.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:var(--brand-focus)}
nav button.active{background:var(--brand-soft);color:var(--blue)}
.brand strong{display:block;font:inherit;font-weight:700;overflow:hidden;text-overflow:ellipsis;max-width:155px}
.brand-mark{overflow:hidden}
.brand-mark img{width:100%;height:100%;display:block;object-fit:contain;background:#fff;border-radius:inherit}
.branding-grid{display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,1fr);gap:28px;margin-top:18px}
.branding-grid>div{min-width:0}
.branding-grid>div>label,.branding-label{display:grid;gap:8px;margin-bottom:18px;font-size:13px}
.branding-grid input[type=text],#brandingName{width:100%;max-width:none}
.logo-setting{display:flex;align-items:center;gap:18px;padding:18px;border:1px solid var(--line);border-radius:10px;background:#fafbfd}
.logo-preview{width:92px;height:92px;display:flex;align-items:center;justify-content:center;flex:none;border:1px solid #dfe5ed;border-radius:12px;background:#fff;color:#9aa5b4;font-size:12px;overflow:hidden}
.logo-preview img{width:100%;height:100%;object-fit:contain}
#brandingLogoFile{display:block;max-width:100%;font-size:12px}
.theme-field{border:0;padding:0;margin:22px 0 0}
.theme-field legend{font-size:13px;margin-bottom:12px}
.theme-options{display:flex;gap:10px;flex-wrap:wrap}
.theme-options label{position:relative;display:grid;justify-items:center;gap:7px;width:78px;padding:10px 7px;border:1px solid #e1e6ed;border-radius:9px;cursor:pointer;color:#657187;font-size:11px;background:#fff}
.theme-options input{position:absolute;opacity:0;pointer-events:none}
.theme-options i{width:34px;height:34px;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 3px #fff,0 0 0 4px #dce2ea}
.theme-options label:has(input:checked){border-color:var(--swatch);background:#f8fafc;box-shadow:0 0 0 2px color-mix(in srgb,var(--swatch) 18%,transparent)}
.theme-options label:has(input:focus-visible){outline:3px solid var(--brand-focus);outline-offset:2px}
@media(max-width:900px){.branding-grid{grid-template-columns:1fr}.logo-setting{align-items:flex-start}.theme-options label{width:72px}}
#analysisError:empty,#fileActionError:empty{display:none}

/* Impeccable refinement: readable qualifiers, compact analysis controls. */
:root{--secondary-text:#526179;--muted:#526179}
.muted,.page-heading p,.panel-heading p,.toolbar label,.toolbar-note,.hint,.legend,.chart-note,.product-unit-note,.shortcut-heading small,.product-picker>label,.nav-group,.top-date,.todo-foot,.chart-range{color:var(--secondary-text);font-size:12px;line-height:1.6}
.home-note{color:#77541e;font-size:13px;line-height:1.6;background:#fff7e8;padding:10px 12px;border-radius:6px}
.home-note:empty{display:none}
.metric-note,.home-kpi .metric-note,.kpis .kpi .compare,.kpis .kpi .period{color:var(--secondary-text);font-size:12px}
.subtle,.text-link{color:#365b98;min-height:34px}
input::placeholder{color:#647187;opacity:1}
nav button.active{color:#174bb7}
.product-modes button{color:#526179;min-height:34px}
.product-modes button.active{color:#174bb7}
.chart-range{margin:4px 0 0;font-variant-numeric:tabular-nums}
.product-selector-panel{padding:14px 18px;margin-bottom:14px}
.product-selector-panel .panel-heading{margin-bottom:8px}
.product-selector-panel .panel-heading p{display:none}
.product-select-row{gap:12px}
.product-picker{width:300px;display:flex;align-items:center;gap:10px}
.product-picker>label{margin:0;white-space:nowrap}
.product-search-box{flex:1;min-width:0}
.product-selection{flex-direction:row;align-items:center;gap:8px}
.product-shortcuts{margin-top:10px;padding-top:10px;display:flex;align-items:flex-start;gap:12px}
.shortcut-heading{margin:5px 0 0;flex-shrink:0}
.shortcut-heading small{display:none}
.quick-products{gap:6px}
.quick-products .quick-product{min-height:32px;padding:6px 10px}
.product-unit-note{margin:8px 0 0}
.product-shortcuts .shortcut-heading{cursor:help}
#draftDialog .dialog-actions{position:sticky;bottom:-24px;background:white;padding:12px 0;border-top:1px solid #dce4ef;z-index:2;gap:8px}
.draft-guidance{padding:12px 14px;background:#eef4ff;border:1px solid #c9dafa;border-radius:7px;color:#264877;margin:12px 0}
.draft-guidance p{font-size:13px;line-height:1.65;margin:6px 0}
.draft-guidance button{margin:4px 8px 0 0}
#draftDialog textarea{min-height:180px;max-height:34vh}
#draftMeta{font-size:12px;color:var(--secondary-text)}
@media(max-width:800px){.product-picker{width:100%}.product-shortcuts{display:block}.shortcut-heading{margin:0 0 8px}.product-selector-panel .panel-heading{flex-direction:row;flex-wrap:wrap}.product-selection{min-width:0}.product-unit-note{font-size:12px}.toolbar{gap:10px}#draftDialog .dialog-actions{bottom:-16px;flex-wrap:wrap}#draftDialog textarea{max-height:30vh}}

.chart-svg text{fill:#526179}
.chart-svg .hit{outline:none}
.chart-svg .hit-area{fill:transparent}
.chart-svg .hit:hover .hit-area,.chart-svg .hit:focus-visible .hit-area{fill:#2465f608}
.chart-svg.modern-line{height:205px}
.chart-svg.modern-line .grid-line{stroke:#e8edf4;stroke-width:1;stroke-dasharray:3 7}
.chart-svg.modern-line .trend-line{stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.chart-svg.modern-line .line-area{pointer-events:none}
.chart-svg.modern-line .hit{outline:none}
.chart-svg.modern-line .hit-area{fill:transparent;transition:fill .16s ease}
.chart-svg.modern-line .hit:hover .hit-area,.chart-svg.modern-line .hit:focus-visible .hit-area{fill:#2465f608}
.chart-svg.modern-line .line-dot{stroke:#fff;stroke-width:2.5;transition:r .16s ease}
.chart-svg.modern-line .hit:hover .line-dot,.chart-svg.modern-line .hit:focus-visible .line-dot{r:6px}
.chart-svg.modern-line .latest-ring{opacity:.14}
.chart-svg.modern-line .value-label{font-size:10px;font-weight:600;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.chart-svg.modern-line .axis-label{font-size:10px;fill:#738197}
.chart-svg.modern-line .missing-value{font-size:9px;fill:#aab4c2}
.home-chart .home-grid{stroke:#e7edf5;stroke-width:1;stroke-dasharray:3 8}
.home-chart .home-line{fill:none;stroke:#2f70ed;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.home-chart .home-area{pointer-events:none}
.home-chart g[role=button]{outline:none}
.home-chart .home-hit{fill:transparent;transition:fill .16s ease}
.home-chart g[role=button]:hover .home-hit,.home-chart g[role=button]:focus-visible .home-hit{fill:#2465f608}
.home-chart .home-dot{fill:#2f70ed;stroke:#fff;stroke-width:2.5;transition:r .16s ease}
.home-chart g[role=button]:hover .home-dot,.home-chart g[role=button]:focus-visible .home-dot{r:6px}
.home-chart .home-latest-ring{fill:#2f70ed;opacity:.14}
.home-chart .point-label{fill:#2f70ed;font-size:11px;font-weight:600;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.home-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.home-summary-cards{grid-template-columns:1fr}}
