:root{--bg:#f4f6f3;--surface:#fff;--ink:#1a3027;--muted:#738077;--line:#e1e7e1;--blue:#28644f;--green:#287650;--amber:#99621a;--red:#b74638;--shadow:0 12px 42px #17342712}
html{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif}button,input,select,textarea{font:inherit}button{transition:background .15s,border-color .15s}button:focus-visible,a:focus-visible{outline:3px solid #97bd81;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--blue)}
.topbar{height:76px;background:#fff;border-color:var(--line);padding:0 28px;backdrop-filter:none}.brand{gap:12px}.brand-mark{background:#234c3c;color:#d6e99d;width:40px;height:40px;border-radius:13px;font-size:23px}.brand strong{font-size:17px;letter-spacing:-.6px}.brand small{font-size:10px;letter-spacing:1px;margin-top:3px}.top-actions{gap:13px}.top-actions .secondary{font-size:11px;border-color:var(--line);color:var(--muted)}.environment{background:#f0f5eb;color:#577348;border:1px solid #dfe9d7;font-size:10px;letter-spacing:.2px}.language-switch{background:#f3f5f0;border:1px solid var(--line)}.language-switch button.active{color:var(--green);box-shadow:0 1px 3px #1d402815}.sidebar{top:76px;width:220px;background:#18392d;border:0;padding:30px 16px 24px}.sidebar:before{content:'WORKSPACE';font-size:10px;color:#89a596;letter-spacing:2px;padding:0 16px 20px}.sidebar nav{gap:7px;margin-bottom:auto}.sidebar nav button{color:#b6c9be;font-size:13px;padding:0 15px;min-height:46px;border-radius:9px;border:1px solid transparent}.sidebar nav button:before{content:'◇';margin-right:13px;opacity:.65;font-size:16px}.sidebar nav button span:first-child{margin-right:auto}.sidebar nav button.active{background:#d4e7a4;color:#193829;border-color:#d4e7a4;font-weight:650}.sidebar nav button:hover:not(.active){background:#284b3b;color:#fff}.sidebar nav button.active:before{opacity:1}.nav-count{background:#355744;color:#dbe9df;border-radius:5px;padding:2px 6px;font-size:10px}.active .nav-count{background:#bbd386;color:#274328}.nav-count.alert{background:#694a35;color:#ffd7a5}.sidebar-foot{padding:18px 13px 0;border-top:1px solid #365345;color:#9cb5a6;line-height:1.7}.status-dot{background:#b2d891;box-shadow:0 0 0 3px #b2d89113}
main{max-width:1900px;padding:108px 34px 50px;margin-left:220px}.page-head{align-items:center;margin-bottom:24px;min-height:58px}.eyebrow{font-size:9px;letter-spacing:1.8px;color:#7b8a78;margin-bottom:10px}h1{font-size:28px;letter-spacing:-.9px;font-weight:650;line-height:1.2}h2{font-size:16px;font-weight:650;letter-spacing:-.2px}.page-subtitle{font-size:12px;color:var(--muted);margin:9px 0 0}.head-status{display:flex;gap:7px;flex-wrap:wrap;align-items:center;justify-content:flex-end;max-width:260px;font-size:10px;color:var(--muted)}.head-status time{flex-basis:100%;text-align:right;font-size:10px;color:#8f9c92}.live-pulse{width:6px;height:6px;background:#7ba467;border-radius:50%}.load-failed .live-pulse{background:var(--red)}.load-failed .head-status{color:var(--red)}.is-loading .live-pulse{background:var(--amber)}
.cockpit-hero{display:flex;justify-content:space-between;align-items:center;gap:28px;background:#e7edde;border:1px solid #dce4d5;border-radius:13px;padding:25px 28px;margin-bottom:20px;position:relative;overflow:hidden}.hero-kicker{font-size:9px;color:#6e8260;letter-spacing:2px;font-weight:700}.cockpit-hero h2{font-size:22px;font-weight:600;color:#324b32;margin:10px 0 6px;letter-spacing:-.7px}.cockpit-hero p{font-size:12px;color:#6c7b64;margin:0}.ops-summary{display:flex;gap:26px;flex-shrink:0;border-left:1px solid #cbd8c2;padding-left:28px}.ops-summary div{min-width:70px}.ops-summary strong{display:block;font-size:30px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-1px}.ops-summary span{display:block;color:#74816d;font-size:10px;margin-top:5px}
.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.metric{position:relative;text-align:left;min-height:136px;border:1px solid var(--line);border-radius:12px;padding:18px 20px;box-shadow:none;background:#fff}.metric span{font-size:11px;color:#788577}.metric strong{margin:13px 0 12px;font-size:34px;font-weight:600;letter-spacing:-1.5px;color:var(--ink)}.metric small{display:block;font-size:10px;color:#8a978b}.metric i{position:absolute;top:15px;right:16px;font-style:normal;color:#a2b29c;font-size:16px}.metric:hover{border-color:#9db98e;background:#f9fcf6}.metric.accent{background:#244d3c;border-color:#244d3c}.metric.accent span,.metric.accent small,.metric.accent i{color:#c3d5c0}.metric.accent strong{color:#e9f5d6}.metric.accent:hover{background:#305e4a}.metric.attention strong{color:#b85c38}
.cockpit-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.8fr);gap:18px;margin-bottom:18px}.panel{padding:22px;border:1px solid var(--line);border-radius:12px;box-shadow:none}.panel-head{margin-bottom:20px;min-height:30px;gap:12px}.panel-kicker{color:#86967f;font-size:9px;font-weight:700;letter-spacing:1.4px;margin:0 0 8px}.panel-caption{font-size:10px;color:#8c998a}.link-button{font-size:11px;font-weight:550}.section-note{font-size:10px;color:#8a9787;line-height:1.7;margin:10px 0}.stage-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stage-card{min-width:0;border:1px solid #e6ebe2;background:#fafbf8;border-radius:9px;text-align:left;padding:12px}.stage-step{display:block;font-size:9px;color:#a6b19f;letter-spacing:1px}.stage-card strong{display:block;margin:14px 0 6px;font-size:27px;font-weight:550;color:#244b35}.stage-card>span:not(.stage-step){font-size:10px;display:block;color:#6a7a62;white-space:nowrap}.stage-card:hover{border-color:#95b581;background:#f3f8eb}.stage-card progress{width:100%;height:4px;margin-top:19px;appearance:none;border:0;border-radius:8px;background:#e8edde}.stage-card progress::-webkit-progress-bar{background:#e8edde;border-radius:8px}.stage-card progress::-webkit-progress-value{background:#7d9e61;border-radius:8px}.stage-card progress::-moz-progress-bar{background:#7d9e61}.stage-note{grid-column:1/-1;margin:3px 0 0;font-size:9px}.ops-waiting progress::-webkit-progress-value{background:#c5a367}.ops-done progress::-webkit-progress-value{background:#a4c699}
.action-row{display:grid;grid-template-columns:32px minmax(0,1fr) 25px 8px;gap:10px;align-items:center;width:100%;border:0;border-bottom:1px solid #eef1e9;background:transparent;text-align:left;padding:11px 0;color:var(--ink)}.action-row:last-child{border:0}.action-row:hover strong{text-decoration:underline}.action-symbol{width:30px;height:30px;border:1px solid #e9ddd0;background:#fbf4e6;border-radius:8px;display:grid;place-items:center;color:#b88548;font-size:17px}.action-symbol.red{background:#faf0ea;color:#bd654a;border-color:#efded4}.action-symbol.blue{background:#eef4ed;color:#62916b;border-color:#dbe7d9}.action-row strong{display:block;font-size:12px;font-weight:550}.action-row small{display:block;margin-top:5px;font-size:9px;color:#8d9787;line-height:1.5}.action-row b{font-size:16px;font-weight:600;text-align:center}.action-row>span:last-child{color:#97a58e}
.trend-grid .panel{padding-bottom:16px}.chart-legend{display:flex;gap:18px;align-items:center;color:#819077;font-size:10px}.chart-legend span{display:flex;gap:5px;align-items:center}.chart-legend i{width:7px;height:7px;border-radius:2px}.legend-need{background:#28644f}.legend-work{background:#acceb7}.chart-legend b{margin-left:auto;font-size:10px;font-weight:500}.activity-chart{display:block;width:100%;max-height:170px;margin-top:12px}.activity-chart text{font-family:inherit;font-size:10px;fill:#496347}.activity-chart .chart-day{font-size:9px;fill:#93a08b}.owner-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #edf0e8}.owner-row:last-child{border:0}.owner-row b{font-size:14px;font-weight:600}.owner-chip{display:inline-flex;align-items:center;gap:7px;color:#5d7157;font-size:11px;overflow-wrap:anywhere}.owner-chip i{display:inline-grid;place-items:center;flex:0 0 auto;width:24px;height:24px;background:#e9eee0;color:#5f7b4d;border-radius:50%;font-size:10px;font-style:normal}.owner-chip.unassigned{color:#a5966e}.owner-chip.unassigned i{background:#f5f0df;color:#ab9564}
.lower-grid{grid-template-columns:minmax(0,1.8fr) minmax(255px,.7fr)}.project-board,.project-table-wrap{overflow:auto}.project-table-wrap{padding:0}.projects-table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}.projects-table th{padding:13px 10px;background:#f8faf5;border-bottom:1px solid #e6ecdf;font-size:10px;font-weight:500;color:#8c9982;white-space:nowrap}.projects-table td{padding:15px 10px;border-bottom:1px solid #edf1e6;vertical-align:middle}.projects-table tbody tr:last-child td{border:0}.projects-table tbody tr:hover{background:#fcfdf9}.projects-table small{display:block;margin-top:5px;font-size:9px;color:#94a089;max-width:240px;overflow-wrap:anywhere}.project-name{font-size:12px;color:#324d31;font-weight:600;background:transparent;border:0;padding:0;text-align:left;line-height:1.6;max-width:280px;overflow-wrap:anywhere}.project-name:hover{color:#65884b;text-decoration:underline}.row-open{border:0;border-radius:6px;background:#f3f6ee;color:#738a60;width:26px;height:26px;font-size:14px}.badge{font-size:9px;padding:4px 7px;border-radius:5px;font-weight:500;white-space:nowrap}.badge.ops-new{background:#f7f0dd;color:#a18140}.badge.ops-in_progress{background:#e8efea;color:#447458}.badge.ops-waiting{background:#eeedf6;color:#7d78a4}.badge.ops-done{background:#edf3e4;color:#739154}.wait-age{color:#67775b;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}.paid-label{color:#af8651}.overdue-row td:first-child{border-left:2px solid #c98860}.projects-table .overdue-text{color:#b86b45}.project-table-wrap th,.project-table-wrap td{padding:16px}.definition-list div{padding:11px 0;border-color:#edf1e6;font-size:11px}.definition-list dt{color:#88957d}.definition-list dd{font-size:11px;font-weight:550;color:#4e6749}
.project-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:19px;border:1px solid var(--line);background:#fff;border-radius:12px;margin:20px 0 16px}.project-filters label{display:grid;gap:7px;font-size:10px;color:#7d8d72}.project-filters .search-field{flex:1;min-width:220px}.project-filters input,.project-filters select{font-size:12px;background:#fbfcf9;min-height:38px;border-color:#e3e9dc}.project-filters .check-row{display:flex;align-items:center;align-self:center;gap:5px;margin-top:17px;font-size:11px}.project-filters input[type=checkbox]{width:14px;min-height:14px;accent-color:#50764a}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:18px;font-size:11px;color:#86917d}.pagination button{font-size:11px}.empty-state{color:#86967b;min-height:120px}.empty-state strong{display:block;font-size:14px;font-weight:500}.empty-state p{font-size:11px}.empty-icon{display:inline-grid;place-items:center;width:32px;height:32px;margin-bottom:12px;border-radius:50%;background:#f1f6e8;color:#7f995d}.muted{color:#a0aa98}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.view-error,#project-save-error{font-size:12px;color:var(--red)}.view-error{padding:12px;border:1px solid #edcfc1;background:#fff5ed;border-radius:8px;margin-bottom:12px}[aria-busy=true]{opacity:.65}
button.primary,form button.primary{background:#28533e;border-color:#28533e;color:#fff;border-radius:7px;font-size:12px}.primary:hover{background:#39684f}button.secondary{color:#5c7950;border-color:#dce5d4;font-size:12px}.record-list{background:white;border:1px solid var(--line);border-radius:12px;padding:0 20px}.record{border-color:#edf0e8}.record-title{font-size:15px}.record-copy{font-size:13px;color:#6d7964}.record-meta{font-size:10px;color:#8c9783}.toolbar input,.toolbar select{font-size:12px}.record-actions button{font-size:11px}.settings-grid{gap:18px}.panel-actions button{font-size:11px}.announcement-form label{font-size:12px}.record-actions{flex-wrap:wrap}.toast{border-radius:9px;font-size:12px;background:#244d3c}dialog{border-radius:15px;box-shadow:0 24px 80px #152d2836}dialog::backdrop{background:#18332860;backdrop-filter:blur(3px)}.dialog-head{padding:23px 25px;border-color:#edf0e8}.dialog-body{padding:20px 25px}.dialog-actions{padding:16px 25px 22px}.form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:20px 0}.form-grid label,.note-field{display:grid;gap:8px;font-size:11px;color:#6e8063}.form-grid button{align-self:end;height:40px}.form-grid input,.form-grid select,.note-field textarea{width:100%;font-size:13px}.project-facts{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:11px;color:#768669}.project-facts .badge{font-size:10px}#project-summary{font-size:13px;line-height:1.8;color:#596e4f;max-height:160px;overflow:auto}#project-dialog .section-note{font-size:11px}.login-page .login-card{border-color:var(--line);box-shadow:var(--shadow)}
@media(min-width:1650px){main{padding-left:50px;padding-right:50px}.cockpit-grid{grid-template-columns:minmax(0,1.5fr) minmax(350px,.8fr)}}
@media(max-width:1200px){main{padding:102px 24px 44px}.sidebar{width:195px}main{margin-left:195px}.cockpit-grid,.lower-grid{grid-template-columns:1fr}.trend-grid{grid-template-columns:1.4fr 1fr}.metric-grid{gap:10px}.metric{padding:16px}.ops-summary{padding-left:18px;gap:15px}.cockpit-hero{padding:23px}.cockpit-hero h2{font-size:19px}.head-status{max-width:220px}}
@media(max-width:720px){.topbar{height:64px;padding:0 15px}.top-actions>a.secondary{display:none}.top-actions{gap:6px}.brand-mark{width:30px;height:30px;border-radius:9px;font-size:19px}.brand strong{font-size:14px}.brand{gap:8px}.sidebar{top:64px;height:52px;width:100%;padding:5px 8px;background:#18392d}.sidebar:before{display:none}.sidebar nav{gap:4px}.sidebar nav button{font-size:11px;padding:0 10px;min-height:36px}.sidebar nav button:before{display:none}.sidebar-foot{display:none}main{margin:0;padding:140px 16px 35px}.page-head{align-items:flex-start;gap:10px;flex-direction:column}h1{font-size:25px}.head-status{max-width:100%;justify-content:flex-start}.head-status time{flex-basis:auto}.page-subtitle{font-size:11px}.cockpit-hero{align-items:flex-start;flex-direction:column;gap:20px;padding:20px}.ops-summary{border-left:0;border-top:1px solid #cbd8c2;padding:15px 0 0;width:100%;gap:30px}.ops-summary strong{font-size:25px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{min-height:130px}.metric strong{font-size:29px}.metric small{font-size:9px}.cockpit-grid,.lower-grid,.trend-grid{grid-template-columns:1fr}.panel{padding:17px}.stage-board{gap:7px}.stage-card{padding:10px 8px}.stage-card>span:not(.stage-step){font-size:9px}.stage-card strong{font-size:23px}.project-board{margin:0 -4px}.projects-table{min-width:610px}.project-filters{padding:15px;gap:12px}.project-filters .search-field{flex-basis:100%}.project-filters .check-row{margin-top:0}.form-grid{grid-template-columns:1fr}.project-table-wrap{padding:0}.top-actions #admin-logout{font-size:9px;padding:6px;min-height:30px}.top-actions .language-switch button{min-width:28px;padding:0 5px}.top-actions .icon-button{width:26px}.record-list{padding:0 13px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Readable labels at normal desktop zoom. */
.projects-table th,.projects-table small,.owner-chip,.badge,.action-row small,.stage-note,.section-note,.panel-caption,.chart-legend,.metric small{font-size:11px}.stage-card>span:not(.stage-step){font-size:11px}.chart-legend b{font-size:11px}.projects-table td{font-size:12px}.project-name{font-size:13px}.panel-kicker{font-size:10px}.metric span{font-size:12px}.page-subtitle{font-size:13px}.cockpit-hero p{font-size:13px}.lower-grid{margin-bottom:18px}.stage-card{min-height:137px}
@media(max-width:720px){.stage-card>span:not(.stage-step){font-size:10px}.page-subtitle{font-size:12px}.metric small{font-size:10px}.stage-card{min-height:128px}}
.cockpit-grid>.panel{min-width:0}.stage-card>span:not(.stage-step){white-space:normal;min-height:28px;line-height:1.4}.stage-card progress{margin-top:12px}
.project-board,.project-table-wrap{position:relative}
