:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#173b46;background:#edf4f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.app{max-width:1740px;margin:auto;min-height:100vh;background:#f4f8f8;box-shadow:0 0 80px #183a4314}.hero{height:137px;background:linear-gradient(115deg,#063c41,#0a5854 55%,#092e52);color:white;display:flex;align-items:center;padding:16px 27px;position:relative;overflow:hidden;border-bottom:4px solid #0acda4}.brand{display:flex;align-items:center;gap:10px;color:white;text-decoration:none;width:215px;z-index:1}.logo{font-weight:900;font-size:40px;letter-spacing:-4px}.dot{color:#8feb5c}.brandline{font-size:10px;letter-spacing:2px;line-height:1.4;border-left:1px solid #ffffff55;padding-left:10px}.headline{z-index:1}.eyebrow{font-size:10px;letter-spacing:2px;color:#78e7d0;font-weight:800}.headline h1{font-size:30px;letter-spacing:-1px;margin:5px 0}.headline h1 em{font-style:normal;color:#85edcb}.headline p{margin:0;font-size:12px;color:#b5d7d7}.heroart{position:absolute;right:20px;top:0;height:137px;width:340px;opacity:.8}.heroart svg{width:100%;height:100%}.workarea{display:flex;min-height:calc(100vh - 137px)}.rail{width:104px;flex-shrink:0;background:linear-gradient(#e3f4ee,#dceff2);border-right:1px solid #cde4e0;display:flex;flex-direction:column;align-items:center;padding:19px 6px}.rail-title{font-size:10px;letter-spacing:1.5px;line-height:1.5;text-align:center;color:#0a7865;font-weight:900}.railart{width:95px;max-height:390px;margin-top:15px;flex:1}.railfoot{margin-top:auto;color:#147b84;letter-spacing:1.5px;font-size:9px;text-align:center;font-weight:800}main{padding:14px 19px 8px;min-width:0;flex:1;display:flex;flex-direction:column;gap:10px}.panel,.kpi{background:white;border:1px solid #d9e7e8;border-radius:12px;box-shadow:0 2px 9px #2c5d5a0a}.profile{padding:11px 15px 13px}.section-title{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1.5px;font-weight:900;color:#147c73;margin-bottom:10px}.pill{background:#e4f7f0;color:#12836b;padding:4px 8px;border-radius:30px;font-size:9px}.live{display:inline-block;width:6px;height:6px;background:#26c68c;border-radius:50%;margin-left:3px}.inputs{display:grid;grid-template-columns:1.3fr 1fr .8fr .8fr 1fr 1.15fr;gap:10px}.inputs label{font-size:10px;font-weight:700;color:#64818a}.inputs input,.inputs select{margin-top:5px;width:100%;height:34px;border:1px solid #d5e4e7;border-radius:7px;padding:5px 9px;color:#163c46;background:#f8fbfb;font-size:12px;font-weight:700;outline-color:#09bca8}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.kpi{padding:13px 15px;border-top:3px solid #17bca5;min-height:94px}.kpi:nth-child(2){border-top-color:#178ee7}.kpi:nth-child(3){border-top-color:#63bfce}.kpi.accent{border-top-color:#86d94c;background:linear-gradient(115deg,#fff,#f3fcef)}.kpi span{display:block;font-size:10px;letter-spacing:1.1px;color:#6b8690;font-weight:900}.kpi strong{display:block;font-size:27px;letter-spacing:-1px;color:#0d645d;margin:4px 0 1px}.kpi:nth-child(2) strong{color:#187cbb}.kpi small{color:#789098;font-size:10px}.charts{display:grid;grid-template-columns:1fr 1.12fr;gap:10px;min-height:275px;flex:1}.chart-panel{padding:13px 14px 8px;min-width:0}.pie-wrap{display:flex;align-items:center;justify-content:space-around;height:calc(100% - 23px);min-height:225px}.pie-wrap svg{width:70%;max-height:230px;overflow:visible}.legend{display:flex;flex-direction:column;gap:9px;min-width:125px}.legend-item{display:flex;align-items:center;gap:6px;font-size:11px;color:#4c6973}.swatch{width:9px;height:9px;border-radius:3px;flex-shrink:0}.legend-item b{margin-left:auto;color:#21464e;font-size:10px}.chart-panel>svg{height:calc(100% - 22px);width:100%;min-height:215px}.mini{font-size:9px;color:#8ba4a8}.bottom{display:grid;grid-template-columns:.8fr 1.2fr;gap:10px;min-height:152px}.efficiency,.scenario{padding:12px 15px}.metric{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px solid #eaf1f1;font-size:11px;color:#637f85}.metric b{color:#136d66}.textbutton,.reset,footer button{background:none;border:0;color:#1687c8;cursor:pointer;font-weight:800;font-size:11px;padding:5px 0}.sliders{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.sliders label{font-size:11px;font-weight:700;color:#6a858e}.sliders b{display:block;font-size:18px;color:#0a776a;margin:6px 0}.sliders input{width:100%;accent-color:#00a98d;cursor:pointer}.reset{font-size:10px}footer{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:9px;letter-spacing:.6px;color:#82999e;padding:1px 4px}footer button{font-size:10px}dialog{width:min(600px,95vw);max-height:85vh;overflow:auto;border:1px solid #b8dbd7;border-radius:15px;box-shadow:0 25px 90px #103d4770;padding:23px;color:#19454b}dialog::backdrop{background:#082b3580}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0;color:#087b70}.dialog-head button{background:transparent;border:0;font-size:20px;cursor:pointer}dialog p{font-size:13px;line-height:1.6;color:#5a7278}.cost-row{display:grid;grid-template-columns:24px 1fr 145px;gap:8px;align-items:center;border-bottom:1px solid #e7eeee;padding:9px 0;font-size:13px}.cost-row input[type=number]{width:100%;border:1px solid #c9ddde;border-radius:6px;padding:8px}.cost-row small{color:#82949a;display:block;font-size:10px}menu{display:flex;justify-content:flex-end;gap:10px;padding:10px 0 0}menu button{background:#087e70;color:white;border:0;padding:10px 18px;border-radius:7px;cursor:pointer}menu button.secondary{background:#e6efef;color:#20565d}@media(max-width:1100px){.heroart{opacity:.25}.inputs{grid-template-columns:repeat(3,1fr)}.charts{grid-template-columns:1fr}.bottom{grid-template-columns:1fr}.rail{width:70px}.railart{width:65px}.rail-title{font-size:8px}}@media(max-width:650px){.hero{height:155px;padding:15px}.brand{width:auto;position:absolute;top:12px}.logo{font-size:27px}.brandline{font-size:8px}.headline{margin-top:45px}.headline h1{font-size:24px}.rail{display:none}main{padding:10px}.inputs{grid-template-columns:repeat(2,1fr)}.kpis{grid-template-columns:repeat(2,1fr)}.kpi strong{font-size:23px}.pie-wrap{flex-direction:column}.pie-wrap svg{width:100%}.legend{flex-direction:row;flex-wrap:wrap;justify-content:center}.legend-item{font-size:9px}.sliders{gap:8px}footer{flex-wrap:wrap}}

/* V2: single-screen tabbed analytical workspace */
.tabs{display:flex;align-items:center;gap:5px;min-height:35px;flex-wrap:wrap}.tab{background:#e5f1f0;color:#346d71;border:1px solid #d3e6e4;border-radius:7px;padding:9px 14px;font-size:11px;font-weight:800;cursor:pointer}.tab.active{background:#087f70;color:white;border-color:#087f70}.tab:focus-visible,.action:focus-visible{outline:3px solid #178ee7}.save-indicator{margin-left:auto;color:#0b876f;font-size:10px;font-weight:800}.clear-save{border:0;background:none;color:#62848c;font-size:10px;cursor:pointer}.tabpage{background:white;border:1px solid #d9e7e8;border-radius:12px;padding:18px;flex:1;min-height:340px;overflow:auto}.tabpage[hidden],[data-view][hidden]{display:none!important}.pagehint{font-size:12px;color:#67828a;margin:0 0 15px}.explorer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.expense-tile{border:1px solid #dceaea;border-radius:10px;padding:12px;background:#fbfdfd;display:grid;grid-template-columns:22px 1fr;gap:8px;align-items:center}.expense-tile label{font-size:12px;font-weight:800;color:#24535b}.expense-tile small{font-size:10px;display:block;color:#7a9297;font-weight:400;margin-top:4px}.expense-tile input[type=number]{grid-column:2;width:100%;border:1px solid #c8dddf;padding:8px;border-radius:6px;color:#14585a}.expense-tile input[type=checkbox]{accent-color:#087f70}.pagefoot{display:flex;align-items:center;justify-content:space-between;margin-top:14px;font-weight:800;color:#087f70}.action{background:#087f70;color:white;border:0;border-radius:7px;padding:10px 14px;font-weight:800;cursor:pointer}.compare-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.compare-controls label{font-size:11px;color:#5b7b82;font-weight:800}.compare-controls input,.compare-controls select{display:block;width:100%;margin-top:6px;border:1px solid #c8dcde;border-radius:7px;padding:10px}.comparison-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.comparison-card{border:1px solid #d7e7e6;border-radius:12px;padding:16px;background:linear-gradient(145deg,#f8fdfb,#eef7f8)}.comparison-card h3{margin:0 0 15px;color:#0b7f72;font-size:13px}.comparison-card strong{font-size:23px;color:#126d68;display:block}.comparison-card p{color:#637f87;font-size:11px}.compare-note{margin-top:18px;padding:12px;border-left:3px solid #159b9c;background:#f1f8f8;color:#648087;font-size:12px}.scenario-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.scenario-large{padding:16px;background:#f5faf9;border-radius:10px;display:grid;gap:22px}.scenario-large label{font-size:12px;font-weight:800;color:#52727a}.scenario-large strong{float:right;color:#087f70}.scenario-large input{display:block;width:100%;margin-top:14px;accent-color:#0bb395}.scenario-results{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.compare-kpi{padding:17px;border:1px solid #d9e9e6;border-radius:10px;color:#65858b;font-size:11px;font-weight:800}.compare-kpi strong{display:block;margin-top:12px;font-size:25px;color:#087f70}@media(max-width:1100px){.explorer-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.tabs{gap:3px}.tab{font-size:10px;padding:8px}.save-indicator{margin-left:0}.explorer-grid,.compare-controls,.comparison-cards,.scenario-grid{grid-template-columns:1fr}.scenario-results{grid-template-columns:repeat(2,1fr)}}

/* V3: only keyboard focus shows a chart outline; decorative pie sidewalls are non-interactive. */
#pie path[role="button"]:focus:not(:focus-visible){outline:none}
#pie path[role="button"]:focus-visible{outline:3px solid #168ce3;outline-offset:2px}

/* V6: compact modeled planning bands, preserving single-screen overview */
.range-kpi{display:block;color:#52777b;font-size:10px;line-height:1.25;margin-top:3px}
.range-overview{font-size:10px;line-height:1.3;color:#416c70;background:#eaf7f3;border-left:3px solid #00a98b;border-radius:4px;padding:5px 7px;margin:4px 0}
.range-note{display:block;margin-top:9px;font-size:11px;color:#497a80;line-height:1.4}

/* V6.1: reveal hidden pie categories on hover, focus, or click without resizing the chart. */
.legend{position:relative;z-index:3}
.legend-more{position:relative;font-size:11px}
.legend-more-trigger{border:0;background:transparent;color:#36718b;cursor:pointer;font:inherit;text-align:left;padding:5px 3px;border-radius:5px;white-space:nowrap}
.legend-more-trigger:hover,.legend-more-trigger:focus-visible{color:#087f5b;background:#e9f8f2;outline:2px solid transparent;text-decoration:underline}
.legend-more-panel{display:none;position:absolute;top:100%;right:0;min-width:205px;max-width:min(280px,75vw);padding:8px;background:white;border:1px solid #c7e5df;border-radius:9px;box-shadow:0 10px 25px #173c452a;z-index:20;max-height:220px;overflow:auto}
.legend-more.expanded .legend-more-panel{display:flex;flex-direction:column;gap:4px}
.legend-detail{width:100%;background:transparent;border:0;text-align:left;padding:7px 6px;border-radius:5px;cursor:pointer}
.legend-detail:hover,.legend-detail:focus-visible{background:#e8f7f3;outline:1px solid #7fcbbd}
.legend-detail span:nth-child(2){flex:1}

/* V8 progressive disclosure: compact when module is not in use */
.warehouse-config{margin:8px 0;padding:10px 14px}
.warehouse-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#125f60}
.warehouse-toggle{display:flex;align-items:center;gap:8px;font-weight:700;cursor:pointer}
.warehouse-toggle input{accent-color:#087f5b;width:16px;height:16px}
.warehouse-config details{margin-top:5px}
.warehouse-config summary{cursor:pointer;font-size:11px;color:#087f5b;padding:5px 0;font-weight:650}
.warehouse-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin-top:8px}
.warehouse-fields label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#456c72}
.warehouse-fields input,.warehouse-fields select{min-width:0;width:100%;padding:7px;border:1px solid #b9d4d4;border-radius:6px;background:#fff}
.warehouse-help,.warehouse-breakdown{font-size:11px;color:#54737a;line-height:1.5;margin:9px 0}
.warehouse-metrics{display:flex;flex-wrap:wrap;gap:18px;padding:7px 0}
.warehouse-metrics div{display:flex;flex-direction:column;gap:4px}
.warehouse-metrics small{font-size:10px;color:#5d7c82}
.warehouse-metrics strong{font-size:15px;color:#087f5b}
.warehouse-fields [hidden]{display:none}

/* V10 mobile: keep totals and controls readable on narrow screens. */
.pagefoot{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
#explorerTotal{max-width:100%;overflow-wrap:anywhere;line-height:1.4;text-align:right}
@media(max-width:600px){.pagefoot{align-items:stretch;flex-direction:column}.pagefoot .action{align-self:flex-start}#explorerTotal{text-align:left;font-size:12px}.warehouse-metrics{gap:10px 18px}.warehouse-config{min-width:0}}

/* V10.1: subtle luminosity only; dimensions, typography, layout and interactions unchanged. */
:root{background:linear-gradient(145deg,#f3f9f8 0%,#e9f4f6 48%,#f4f9f7 100%)}
.app{background:linear-gradient(160deg,#f8fcfb 0%,#eef7f8 58%,#f5fbf8 100%)}
.panel,.tabpage{background:linear-gradient(138deg,#fff 0%,#fff 68%,#f9fdfc 100%);box-shadow:0 3px 14px #275b620d}
.kpi{background:linear-gradient(125deg,#fff 0%,#fff 55%,#eefbf6 100%);transition:box-shadow .2s ease,filter .2s ease}
.kpi:nth-child(2){background:linear-gradient(125deg,#fff 0%,#fff 55%,#edf6ff 100%)}
.kpi:nth-child(3){background:linear-gradient(125deg,#fff 0%,#fff 55%,#effbfe 100%)}
.kpi.accent{background:linear-gradient(125deg,#fff 0%,#fff 55%,#f2fbe9 100%)}
@media(hover:hover){.kpi:hover{box-shadow:0 5px 18px #188b8620;filter:saturate(1.04)}#pie path[role=button]:hover,#bars rect[role=button]:hover{filter:brightness(1.07)}}
@media(prefers-reduced-motion:reduce){.kpi{transition:none}}

/* V10.2: optional payroll module and unobtrusive assumption guidance */
.payroll-config{margin:8px 0;padding:10px 14px}
.payroll-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}
.payroll-hint{font-size:10px;color:#66848a}
.payroll-config summary{cursor:pointer;color:#087f5b;font-size:11px;font-weight:700;margin-top:6px}
.payroll-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px;margin-top:10px}
.payroll-fields label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#456c72}
.payroll-fields input[type=number],.payroll-fields select{width:100%;min-width:0;padding:7px;border:1px solid #b9d4d4;border-radius:6px;background:#fff}
.payroll-fields .payroll-check{flex-direction:row;align-items:center;gap:7px}
.payroll-fields [hidden],.payroll-config [hidden],.realism-notes[hidden]{display:none!important}
.realism-notes{border-left:3px solid #3dabb5;background:#edf9f8;border-radius:6px;padding:7px 12px;margin:7px 0;color:#3d6571;font-size:11px;line-height:1.35}
.realism-notes p{margin:3px 0}
@media(max-width:650px){.payroll-top{align-items:flex-start;flex-direction:column}.payroll-hint{display:none}}

/* MaC site-aligned branding and study navigation — V1.18 */
.hero{padding-right:170px}.hero .brand{width:225px;flex-shrink:0;gap:11px}.mac-mark{display:flex;align-items:flex-end;gap:4px;width:38px;height:39px;flex-shrink:0}.mac-mark i{display:block;width:9px;background:#14c7cd;border-radius:2px 2px 0 0}.mac-mark i:nth-child(1){height:16px}.mac-mark i:nth-child(2){height:27px}.mac-mark i:nth-child(3){height:37px}.mac-wordmark{display:flex;flex-direction:column;gap:3px}.mac-wordmark strong{font-size:30px;line-height:1;letter-spacing:-1px;color:white}.mac-wordmark small{font-size:9px;letter-spacing:1.35px;font-weight:800;line-height:1.2;color:#cde6eb}.mac-home-btn{position:absolute;top:16px;right:22px;z-index:4;padding:9px 13px;border:1px solid #8bbac1;border-radius:7px;color:white;text-decoration:none;font-size:11px;font-weight:800;background:#082b3d}.mac-home-btn:hover,.mac-home-btn:focus-visible{background:#0a6770;outline-color:#16c5c8}.mac-resource-links{display:flex;gap:8px;flex-wrap:wrap}.mac-resource-links a{display:inline-flex;padding:7px 12px;border:1px solid #9dcfd2;border-radius:6px;background:#e5f7f6;color:#076d7d;font-size:11px;font-weight:800;text-decoration:none}.mac-resource-links a:hover{background:#c9f0ed}@media(max-width:900px){.hero{padding-right:20px}.mac-home-btn{top:9px;right:12px}.hero .brand{width:200px}}@media(max-width:650px){.hero{height:180px}.hero .brand{top:14px;left:12px;width:auto}.mac-mark{height:30px;width:29px;gap:3px}.mac-mark i{width:7px}.mac-mark i:nth-child(1){height:12px}.mac-mark i:nth-child(2){height:20px}.mac-mark i:nth-child(3){height:29px}.mac-wordmark strong{font-size:23px}.mac-wordmark small{font-size:7px}.mac-home-btn{top:55px;left:12px;right:auto;padding:6px 10px}.headline{margin-top:76px}.headline h1{font-size:22px}}
