:root{color-scheme:light;--bg:#f5f6f8;--surface:#fff;--surface2:#f7f8fa;--input:#fff;--ink:#202733;--text:#202733;--muted:#697384;--line:#e0e5eb;--accent:#f48321;--accent-soft:#fff1e3;--hero:#1a1c1f;--sidebar:#fff;--hover:#f5f6f8;--shadow:0 3px 14px #26304406;--good:#28795a;--bad:#b6402a}
:root[data-theme=dark]{color-scheme:dark;--bg:#161718;--surface:#242526;--surface2:#1d1f20;--input:#191b1c;--ink:#f3f2ee;--text:#f3f2ee;--muted:#a8adaf;--line:#414548;--accent:#ffa22d;--accent-soft:#403020;--hero:#1d1f20;--sidebar:#121415;--hover:#303437;--shadow:none;--good:#a1d9b2;--bad:#ffb39a}
:root[data-theme=blue]{color-scheme:dark;--bg:#101d30;--surface:#1a2b42;--surface2:#15243a;--input:#122037;--ink:#f0f5fb;--text:#f0f5fb;--muted:#afbed0;--line:#354e6d;--accent:#ffb04c;--accent-soft:#423726;--hero:#122239;--sidebar:#0c1727;--hover:#233b59;--shadow:none;--good:#a4dabc;--bad:#ffb7a3}
body{background:var(--bg);color:var(--text)}h1,h2,h3,label,.field-grid label{color:var(--text)}p,.fine{color:var(--muted)}input,select,textarea,.risk-table input,.risk-table select,.dialog-body input,.dialog-body select,.login-form-wrap input{background:var(--input);border-color:var(--line);color:var(--text)}input::placeholder,textarea::placeholder{color:var(--muted)}input[readonly]{background:var(--surface2);color:var(--muted)}input:focus,select:focus,textarea:focus{border-color:var(--accent)}.sidebar{background:var(--sidebar);border-color:var(--line)}.brand,.sidebar .brand{color:var(--text);font-family:"Segoe UI",Arial,sans-serif;font-size:1.22rem;letter-spacing:-.04em;font-weight:750;gap:10px}.brand strong{color:#ef831e;font-weight:750}.brand small,.sidebar .brand small{color:var(--muted);font-size:.46rem;letter-spacing:.16em;margin-top:7px}.brand .brand-avatar{width:39px;height:39px;box-shadow:none}.nav-caption,.workspace-identity{color:var(--muted)}.nav-item{color:var(--muted)}.nav-item:hover{background:var(--hover);color:var(--text)}.nav-item.active{background:var(--accent-soft);border-color:transparent;color:var(--accent)}.nav-item.active span{color:var(--accent)}.sidebar-bottom{border-color:var(--line)}.sidebar-bottom b{color:var(--text)}.sidebar-bottom p,.edition{color:var(--muted)}.edition span{color:var(--text)}.sidebar-bottom a{color:var(--accent)}.topbar{background:var(--surface);border-color:var(--line)}.breadcrumb,.breadcrumb span{color:var(--muted)}.breadcrumb b,.account-name{color:var(--text)}#save-status{color:var(--muted)}.eyebrow{color:#b5651e}.page-footer{border-color:var(--line);color:var(--muted)}.page-footer span:first-child{color:var(--text)}.btn.outline{background:var(--surface);border-color:var(--line);color:var(--text)}.btn.outline:hover{background:var(--hover);border-color:var(--accent)}.btn.ink{background:var(--text);border-color:var(--text);color:var(--surface)}.btn.ink:hover{background:var(--accent);border-color:var(--accent);color:#191613}.btn.quiet{color:var(--muted)}.btn.quiet:hover{background:var(--hover);color:var(--text)}.text-button{color:#bb5d13}.text-button:hover{color:var(--accent)}.icon-btn{background:var(--surface2);border-color:var(--line);color:var(--muted)}.icon-btn:hover{background:var(--hover);color:var(--text)}.label-tag,.resource-badge,.count{background:var(--surface2);border-color:var(--line);color:var(--muted)}.work-card-top .label-tag{background:var(--accent-soft);color:#ad5b16;border-color:transparent}.works-intro{background:var(--hero);border-color:#51504a}.works-intro h2{color:#fff}.works-intro p,.works-intro small{color:#b9bfc6}.works-intro:before{background:linear-gradient(105deg,#151a20 30%,#b4782420)}.works-intro .works-watermark{font-size:clamp(60px,6vw,105px);right:80px;top:35px}.works-intro strong{color:#ffb433}.work-card,.card,.stat{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}.work-card h2,.service-name,.stat-value{color:var(--text)}.work-code{color:#a76022}.work-company,.work-card-bottom small{color:var(--muted)}.work-stages{border-color:var(--line)}.work-stages span{color:#bd712f}.work-stages b{color:var(--text)}.work-stages small,.work-context{color:var(--muted)}.work-empty{background:var(--surface);border-color:var(--line)}.work-empty h3,.empty h3{color:var(--text)}.work-empty p{color:var(--muted)}.works-search input{background:var(--input);border-color:var(--line)}#works-results{color:var(--muted)}.project-line{background:var(--surface);border-color:var(--line)}.project-line label{color:var(--muted)}.project-line input{color:var(--text)}.section-head h2{color:var(--text)}.section-head p,.section-index{color:var(--muted)}.field-callout{border-color:var(--line)}.field-callout span{color:var(--muted)}.stat.accent{background:var(--accent-soft);border-color:#f3b572}.stat.accent .stat-value{color:#b35a13}.stat-label,.stat-foot{color:var(--muted)}.stat.accent .stat-label,.stat.accent .stat-foot{color:#976339}.unit{color:var(--muted)}th{background:var(--surface2);color:var(--muted);border-color:var(--line)}td{border-color:var(--line);color:var(--text)}.service-meta,.table-foot>span{color:var(--muted)}.duration-value{color:var(--good)}.bar-track{background:var(--surface2)}.bar-label{color:var(--text)}.insight,.formula,.loss-result{background:var(--surface2);border-color:var(--line)}.insight h2,.formula,.loss-result strong{color:var(--text)}.insight>p,.formula span,.loss-result span{color:var(--muted)}.form-section+.form-section,details{border-color:var(--line)}.form-section h3{color:var(--text)}.form-help{color:var(--muted)}.loss-total{border-color:var(--line)}.loss-total strong{color:#cb701d}.loss-total strong small{font-size:1.15rem}.loss-list .bar-label{color:var(--text)}.help-note{background:var(--accent-soft);border-color:#f4cba9;color:var(--muted)}.help-note strong{color:var(--text)}.error,.risk-stale{color:var(--bad)}.message{background:var(--accent-soft);border-color:#e8ae7b;color:var(--bad)}.empty,.check-row,.risk-actions>span,.chart-legend{color:var(--muted)}.percentile-row{border-color:var(--line);color:var(--text)}.plan-steps{border-color:var(--line)}.plan-steps button{color:var(--muted)}.plan-steps button span{border-color:var(--line);color:var(--muted)}.plan-steps button.active{background:var(--accent-soft);color:var(--text)}.plan-steps button.active span{color:#28190d}.project-paste textarea{background:var(--input);border-color:var(--line);color:var(--text)}.project-toolbar span{color:var(--muted)}.project-summary{background:var(--surface2)}.project-summary input{border-color:var(--line)}.composition-box,.catalog-search{background:var(--surface2);border-color:var(--line)}.catalog-search label{color:var(--text)}.catalog-status{color:var(--muted)}.catalog-result{background:var(--surface);border-color:var(--line)}.catalog-result b{color:var(--text)}.catalog-result p{color:var(--muted)}dialog,.dialog-body{background:var(--surface);border-color:var(--line);color:var(--text)}.dialog-head,.dialog-actions{background:var(--surface2);border-color:var(--line)}.dialog-head h2{color:var(--text)}.resource-grid b{color:var(--muted)}.resource-grid span{color:var(--text)}.auth-gate{color:var(--text)}#toast{background:var(--text);color:var(--surface);border-color:var(--line)}
.login-page{background:var(--bg)}.login-story{background:radial-gradient(ellipse at 5% 0,#ad56131d,transparent 60%),#151718;border-color:var(--line)}.login-story .brand{color:#fff;font-size:1.7rem}.login-story .brand strong{color:#ffb433}.login-story .brand small{color:#b8bdc4;font-size:.53rem}.login-story .brand .brand-avatar{width:48px;height:48px}.login-story .login-watermark{font-size:clamp(90px,12vw,170px);top:27%;left:5%}.login-story h1{color:#fff}.login-story p{color:#b4bdc7}.login-modules{border-color:#535a60}.login-modules>span{border-color:#414a53}.login-modules b{color:#dce2e7}.login-edition{color:#a0abb5}.login-panel{background:var(--surface)}.login-form-wrap h2{color:var(--text)}.login-form-wrap>p,.login-form-wrap form>label,.login-form-wrap #confirm-field>label{color:var(--muted)}.login-form-wrap input{border-color:var(--line)}.password-field button{color:var(--muted)}.login-security{color:var(--muted)}.login-security svg{stroke:var(--muted)}.login-foot{border-color:var(--line);color:var(--muted)!important}.login-form-wrap #setup-mode{color:#b8661a}.login-form-wrap .theme-picker{display:block;text-align:right;margin-bottom:30px}.theme-picker select{min-height:35px;margin:0;padding:7px 28px 7px 11px;font-size:.72rem;max-width:165px;background:var(--surface2);color:var(--text);border-color:var(--line)}.top-actions .theme-picker{margin-left:6px}
.work-location{display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--surface2);border:1px solid var(--line);border-radius:6px;padding:12px 17px;font-size:.8rem;margin:-8px 0 22px}.field-label{display:flex;align-items:center;gap:7px;min-height:23px}.field-label .unit{margin-left:auto}.field-help-wrap{display:inline-flex;align-items:center}.field-help{display:inline-grid;place-items:center;width:18px;height:18px;padding:0;border:1px solid #d49956;border-radius:50%;font-size:.68rem;line-height:1;background:var(--accent-soft);color:#ad601c;font-weight:700;cursor:help}.help-tooltip{display:none;position:fixed;z-index:300;padding:12px 14px;background:#24272b;color:#fff;border:1px solid #b18349;border-radius:6px;font-size:.75rem;font-weight:400;line-height:1.65;box-shadow:0 8px 25px #0003;pointer-events:none}.field-help-wrap:hover .help-tooltip,.field-help-wrap:focus-within .help-tooltip,.field-help-wrap.help-open .help-tooltip{display:block}.climate-status{font-size:.76rem;color:var(--muted);margin-top:16px}.climate-reference{padding:15px;background:var(--surface2);border-left:3px solid var(--accent);margin-top:17px;font-size:.74rem;border-radius:4px}.climate-reference b{color:var(--text)}.climate-reference p{font-size:.72rem;margin-top:6px;line-height:1.7}.climate-reference .text-button{font-size:.74rem;margin-top:12px}.climate-reference details{margin-top:12px;padding:12px 0 0}.climate-reference th,.climate-reference td{padding:8px;font-size:.69rem}.composition-tabs{display:flex;gap:10px;padding:0 24px 18px;border-bottom:1px solid var(--line)}.inline-form-heading{padding:20px 24px 0;display:flex;align-items:center;justify-content:space-between;gap:15px}.inline-form-heading h3{font-size:.9rem}.inline-actions{display:flex;justify-content:flex-end;padding:0 24px 20px}.catalog-results{max-height:210px;display:block;overflow:auto;margin-top:14px}.catalog-results .table-wrap{overflow:visible}.composition-results{min-width:860px}.composition-results thead{position:sticky;top:0;z-index:1}.composition-results td,.composition-results th{padding:10px;font-size:.72rem}.composition-results td:nth-child(4){min-width:240px}.composition-results small{display:block;color:var(--muted);font-size:.67rem;margin-top:5px}.composition-results .btn{font-size:.7rem;padding:7px 10px}.selected-activity{background:var(--accent-soft)}tr[data-select-activity]{cursor:pointer}tr[data-select-activity]:hover{background:var(--hover)}.selected-activity .service-name{color:#b45c15}#composition-register-panel{padding:24px}.resource-pair-group{margin-top:20px;border:1px solid var(--line);border-radius:6px;padding-bottom:16px}.resource-pair-group .section-head{padding:16px}.resource-pair-group h3{font-size:.85rem}.resource-pair-row{display:grid;grid-template-columns:2fr 1fr;gap:18px;padding:0 16px;margin-top:12px}.resource-pair-row label{font-size:.74rem}.resource-pair-row input{min-height:39px}.composition-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:0 24px 24px}.composition-cards article{padding:13px;border:1px solid var(--line);background:var(--surface2);border-radius:5px}.composition-cards article:last-child{grid-column:1/-1}.composition-cards span{display:block;font-size:.64rem;color:var(--muted);margin-bottom:7px}.composition-cards b{display:block;font-size:.76rem;font-weight:600;color:var(--text);overflow-wrap:anywhere}.risk-variation{font-size:.76rem;white-space:nowrap}.task-hours{font-weight:650;color:var(--text)}.report-format-options{display:flex;gap:12px;margin:25px 0 10px}.report-format-options .btn{flex:1;padding:14px}.work-climate-info,.report-export-error{font-size:.75rem}#work-climate-info{margin-top:20px;margin-bottom:8px;font-size:.73rem}#report-dialog{width:min(560px,calc(100% - 30px))}.risk-steps{margin-bottom:24px}
:root[data-theme=dark] .text-button,:root[data-theme=blue] .text-button,:root[data-theme=dark] .eyebrow,:root[data-theme=blue] .eyebrow{color:#ffb14c}:root[data-theme=dark] .stat.accent .stat-value,:root[data-theme=blue] .stat.accent .stat-value{color:#ffc164}:root[data-theme=dark] .stat.accent .stat-label,:root[data-theme=blue] .stat.accent .stat-label,:root[data-theme=dark] .stat.accent .stat-foot,:root[data-theme=blue] .stat.accent .stat-foot{color:#d7bb94}:root[data-theme=dark] .field-help,:root[data-theme=blue] .field-help{color:#ffbf6a}:root[data-theme=dark] .work-card-top .label-tag,:root[data-theme=blue] .work-card-top .label-tag,:root[data-theme=dark] .work-code,:root[data-theme=blue] .work-code{color:#ffc473}
@media(max-width:1200px){.top-actions{flex-wrap:wrap}.composition-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.brand,.sidebar .brand{font-size:1.1rem}.brand .brand-avatar{width:34px;height:34px}.brand small,.sidebar .brand small{font-size:.4rem}}
@media(max-width:720px){.top-actions .theme-picker{margin-left:0}.theme-picker select{max-width:155px;min-height:37px;font-size:.7rem}.sidebar .brand{font-size:1.3rem}.sidebar .brand .brand-avatar{width:37px;height:37px}.brand small,.sidebar .brand small{font-size:.45rem}.login-story .brand{font-size:1.6rem}.login-story .brand .brand-avatar{width:44px;height:44px}.login-story .login-watermark{font-size:120px;left:auto;right:-5%;top:90px}.login-form-wrap .theme-picker{margin-bottom:24px}.works-intro .works-watermark{font-size:60px;right:10px;top:60px}.work-location{flex-wrap:wrap;gap:8px;font-size:.75rem}.composition-tabs{padding:0 16px 16px;flex-wrap:wrap}.inline-form-heading{padding:18px 16px 0}.inline-actions{padding:0 16px 18px}.composition-cards{padding:0 16px 18px;grid-template-columns:repeat(2,minmax(0,1fr))}.composition-cards article:last-child{grid-column:1/-1}.resource-pair-row{grid-template-columns:1.5fr 1fr;gap:10px}#composition-register-panel{padding:18px 16px}.report-format-options{flex-direction:column}.field-label{font-size:.77rem}.field-grid.two{column-gap:12px}.help-tooltip{font-size:.74rem}.risk-table{min-width:1150px!important}.work-header-actions .btn{white-space:normal}.report-brand strong{font-size:.9rem}}
#plan-calculation .table-wrap{max-height:460px;overflow:auto}#plan-calculation .table-wrap thead{position:sticky;top:0;z-index:2}.plan-memory{margin-bottom:20px}.plan-memory>summary{color:var(--muted);font-size:.78rem;cursor:pointer}.plan-memory .lower-grid{margin-top:18px}
@media print{.theme-picker,#composition-workspace{display:none!important}:root{--surface:#fff;--surface2:#f7f7f7;--text:#202020;--muted:#555;--line:#ddd;--input:#fff;--bg:#fff}}
