:root{--ink:#172f34;--muted:#647779;--line:#dce4df;--bg:#f3f5ef;--teal:#146854;--lime:#d7e9a4}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}main{max-width:1220px;margin:auto;padding:28px 34px 40px}header,.brand,.section-title,.settings-foot{display:flex;align-items:center;justify-content:space-between}header{padding-bottom:24px;border-bottom:1px solid var(--line)}.brand{gap:12px}.brand b{font-size:23px}.brand small{display:block;color:var(--muted);font-size:12px}.mark{background:var(--teal);color:white;display:grid;place-items:center;width:43px;height:43px;border-radius:13px;font-size:25px;font-weight:600}.local{font-size:12px;color:var(--muted);border:1px solid var(--line);padding:7px 12px;border-radius:20px}.intro{display:flex;justify-content:space-between;align-items:center;padding:36px 0 32px;gap:28px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--teal);font-weight:700}h1{font-size:38px;line-height:1.16;letter-spacing:-1.1px;margin:10px 0 15px;font-weight:620}.intro p:last-child{color:var(--muted);max-width:540px}.day{background:#e5ecdc;padding:24px 26px;border-radius:18px;min-width:265px}.day span,.day small{display:block;color:var(--muted);font-size:12px}.day strong{display:block;font-size:27px;margin:6px 0;letter-spacing:-.5px}.layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(285px,1fr);gap:22px}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:27px}h2{font-size:18px;letter-spacing:-.3px;margin:0 0 23px}label{display:block;font-weight:600;font-size:13px;margin:0 0 8px}input{font:inherit;font-size:14px;width:100%;padding:12px;border:1px solid #ccd7d0;border-radius:9px;background:#fbfcf9;color:var(--ink)}input:focus{outline:2px solid #a7c8b4;outline-offset:1px}.filebox{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px;background:#f6f8f3;border:1px dashed #b9cac0;border-radius:12px}.filebox div{min-width:0}.filebox small{display:block;color:var(--muted);font-size:10px;overflow-wrap:anywhere;margin-top:4px}.filebox b{font-size:13px}.help{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin:9px 0 19px}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:23px}.twocol .help{margin-bottom:0}.buttons{display:flex;gap:10px;align-items:center;flex-wrap:wrap}button{font:inherit;font-size:13px;font-weight:600;cursor:pointer;border-radius:9px;padding:11px 16px;border:1px solid transparent;transition:background .15s}button:disabled{opacity:.45;cursor:wait}.primary{background:var(--teal);color:white;min-width:140px}.primary:hover{background:#0f5544}.secondary{border-color:#cbd7cf;background:white;color:var(--ink);white-space:nowrap}.secondary:hover{background:#f0f4eb}.textbutton{padding:5px 0;background:transparent;color:var(--teal);font-size:12px}.consent{margin:14px 0 22px;font-size:11px}.settings-foot{border-top:1px solid var(--line);padding-top:16px;gap:15px}.settings-foot span{font-size:10px;color:var(--muted)}ol{list-style:none;counter-reset:step;padding:0;margin:0}li{counter-increment:step;position:relative;padding:0 0 23px 42px}li:before{content:counter(step);position:absolute;left:0;top:0;border:1px solid #ccd9cf;background:#f4f7ef;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--teal);font-size:12px}li b{font-size:13px}li span{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:4px}.note{background:#edf3e3;color:#506345;padding:13px 15px;border-radius:10px;font-size:12px}.progress{margin-top:24px}.section-title h2{margin:0}.section-title{margin-bottom:15px}.badge{font-size:12px;background:var(--lime);border-radius:18px;padding:5px 12px}.metrics{display:flex;flex-wrap:wrap;gap:24px;margin:20px 0}.metric strong{display:block;font-size:26px;line-height:1.2}.metric small{color:var(--muted);font-size:11px}.files{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.files a{color:var(--teal);text-decoration:none;border:1px solid var(--line);padding:8px 12px;border-radius:8px;font-size:12px}.history{margin-top:34px}.history-row{display:flex;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid var(--line);cursor:pointer}.history-row b{font-size:13px}.history-row span{font-size:12px;color:var(--muted)}.history-row .tail{margin-left:auto}.date-row{padding:16px;background:#fff8e5;border-radius:12px;margin:12px 0}.date-row p{font-size:12px;white-space:pre-wrap}.date-row input{max-width:210px}#toast{padding:14px 18px;margin:18px 0;border:1px solid #d9cba5;background:#fff9e8;border-radius:12px;font-size:13px}footer{font-size:11px;color:var(--muted);margin-top:30px}#recovery{margin:20px 0}#recovery input{max-width:360px}[hidden]{display:none!important}@media(max-width:850px){.layout{grid-template-columns:1fr}.intro{align-items:start}.day{min-width:220px}h1{font-size:30px}}@media(max-width:620px){main{padding:20px}.intro{display:block}.day{margin-top:20px}.twocol{grid-template-columns:1fr}.filebox{display:block}.filebox button{margin-top:12px}.local{display:none}.settings-foot{align-items:start;flex-direction:column}.panel{padding:21px}}

[hidden]{display:none!important}.stats-table{width:100%;border-collapse:collapse;margin-top:24px}.stats-table th,.stats-table td{text-align:left;padding:14px 10px;border-bottom:1px solid #ddd}.stats-table th:last-child,.stats-table td:last-child{text-align:right}

.table-scroll{overflow-x:auto}.table-scroll td,.table-scroll th{white-space:nowrap}#stats-view hr{border:0;border-top:1px solid #ddd;margin:36px 0}

/* Main sections: reference-style navigation. */
header{border-bottom:0;padding-bottom:20px}
.section-tabs{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 14px;margin-bottom:24px;border-bottom:1px solid #cbdcd5}
.section-tabs button{min-width:0;font-size:14px;font-weight:500;line-height:1.4;padding:13px 18px;border:0;border-radius:12px;white-space:nowrap}
.section-tabs .primary{background:#196d57;color:#fff}
.section-tabs .primary:hover{background:#155b49}
.section-tabs .secondary{background:transparent;color:#526f63}
.section-tabs .secondary:hover{background:#e7eee8}
.section-tabs button:focus-visible{outline:2px solid #196d57;outline-offset:3px}
@media(max-width:620px){.section-tabs{gap:6px}.section-tabs button{font-size:13px;padding:10px 12px}}
/* Match the content gap to the spacing above the tabs. */
.section-tabs{margin-bottom:20px}
.intro{padding-top:0}
.intro .eyebrow{margin-top:0}

/* Compact date badge in the page header. */
header{gap:20px;align-items:flex-start}.day{min-width:0;padding:10px 16px;border-radius:12px}.day strong{font-size:21px;margin:2px 0}.day span{font-size:11px}.day small{font-size:10px}
@media(max-width:620px){header{align-items:flex-start;flex-wrap:wrap;gap:12px}.day{margin-top:0;padding:8px 12px}.day strong{font-size:19px}}

/* Bring navigation directly below the header date badge. */
header{padding-bottom:0}

/* Shared visual language with «База - Скорозвон». */
:root{--ink:#183331;--muted:#62736f;--line:#d8e3df;--bg:#f3f6f3;--teal:#186953;--lime:#e3eee7;--control-radius:7px;--panel-radius:12px}
body{font:15px/1.5 -apple-system,BlinkMacSystemFont,Arial,sans-serif}
main{max-width:1600px;margin:16px auto;padding:0 22px 24px}
header{gap:18px;padding-bottom:10px;align-items:flex-start}
.brand{gap:15px;justify-content:flex-start}.brand b{font-size:26px;letter-spacing:-.7px;line-height:1.25}.brand small{font-size:13px;margin-top:3px}
.mark{width:58px;height:58px;border-radius:18px;background:var(--teal);font-size:34px;font-weight:750;line-height:1;flex-shrink:0}
.day{background:#e3eee7;padding:8px 12px;border-radius:12px}.day strong{font-size:21px}.day span,.day small{font-size:11px}
.section-tabs{gap:6px;padding-bottom:8px;margin-bottom:14px;border-color:#cfddd5}
.section-tabs button{padding:9px 15px;font-size:14px;font-weight:400;border-radius:var(--control-radius)}
.section-tabs .primary{background:var(--teal)}.section-tabs .secondary{color:#526b60}
.layout{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:stretch}
.panel{border-radius:var(--panel-radius);padding:16px;background:white}
h2{font-size:16px;margin-bottom:12px;letter-spacing:0}h3{font-size:14px;margin-bottom:8px}
label{font-size:12px;margin-bottom:5px}
input,select,textarea{font-family:inherit;font-size:13px;padding:6px 8px;min-height:33px;border:1px solid #c9d6d1;border-radius:var(--control-radius);background:white;color:var(--ink)}
button{font-family:inherit;font-size:12px;font-weight:400;padding:7px 10px;border-radius:var(--control-radius)}
.primary{background:var(--teal);min-width:0}.secondary{background:#eaf1ed;border-color:transparent;color:var(--ink)}.secondary:hover{background:#dfeae3}
button:focus-visible{outline:3px solid #76b79b;outline-offset:2px}
.buttons{gap:8px}.textbutton{font-size:12px;padding:5px 0;background:transparent}
.filebox{padding:10px 12px;border-radius:8px;background:#f3f6f3}.filebox small{font-size:11px}.filebox b{font-size:13px}
.help{font-size:12px;line-height:1.5;margin:8px 0 12px}.twocol{gap:12px;margin-top:16px}.consent{font-size:11px;margin:10px 0 14px}
.settings-foot{padding-top:12px}.settings-foot span{font-size:11px}
li{padding:0 0 16px 38px}li b{font-size:13px}li span{font-size:12px;margin-top:2px}.note{font-size:12px;background:#eaf1ed;border-radius:8px;padding:10px 12px}
.progress{margin-top:16px}.section-title{margin-bottom:12px}.badge{background:#e3eee7;font-size:11px;padding:5px 10px}
.metrics{gap:24px;margin:16px 0}.metric strong{font-size:26px;font-variant-numeric:tabular-nums}.metric small{font-size:12px}
.files{gap:8px;margin:14px 0}.files a{font-size:12px;padding:7px 10px;border-radius:7px;background:#eaf1ed;border-color:transparent}
.history-row{padding:12px 0}.stats-table{font-size:13px}.stats-table th,.stats-table td{padding:10px 12px;border-bottom:1px solid var(--line)}
footer{font-size:11px;margin-top:18px}
@media(max-width:850px){.layout{grid-template-columns:1fr}}
@media(max-width:760px){main{margin:18px auto;padding:0 14px 24px}.brand{gap:12px}.brand b{font-size:23px}.mark{width:48px;height:48px;border-radius:15px;font-size:29px}.panel{padding:16px}.section-tabs{gap:4px}.section-tabs button{padding:8px 10px;font-size:13px}}

/* Exact heading typography from the compact Base–Skorozvon interface. */
.brand b{font-size:26px;font-weight:700;line-height:1.5;letter-spacing:-1px}
h2{font-size:17px;font-weight:700;line-height:1.5;letter-spacing:normal;margin-bottom:12px}
h3{font-size:14px;font-weight:700;line-height:1.5;letter-spacing:normal}
@media(min-width:1000px){#work-view h2{font-size:16px;margin-bottom:8px}}

/* Navigation uses the same compact typography as Base–Skorozvon. */
.order-table-wrap{overflow-x:auto}#order-table td{vertical-align:top;white-space:pre-wrap}#order-table td:last-child{min-width:230px}#order-number{max-width:260px}#order-current{font-size:13px;color:#526b60}
.schedule-status{background:#eaf1ed;border-radius:8px;padding:12px 14px;margin:0 0 18px}.schedule-status label{display:flex;align-items:center;gap:8px;font-size:13px}.schedule-status input[type="checkbox"]{width:17px;height:17px;min-height:0;padding:0;margin:0;accent-color:#186953}.schedule-status small{display:block;color:#53665c;font-size:11px;line-height:1.5;margin-top:5px}
.section-tabs{gap:6px}
.section-tabs button{font-size:13px;line-height:1.5;font-weight:400;padding:8px 12px;letter-spacing:normal}
@media(min-width:1000px){.section-tabs button{font-size:12px;padding:7px 10px}}
@media(max-width:760px){.section-tabs{gap:4px}.section-tabs button{padding:8px 10px}}

.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:100%;max-width:430px;padding:34px}.login-card .brand{justify-content:flex-start;margin-bottom:30px}.login-card h1{font-size:27px;letter-spacing:-.5px}.login-card input{margin-bottom:20px}.login-card .primary{width:100%;margin-top:8px}.login-error{color:#a32a24;font-size:14px}.login-error:empty{display:none}header{gap:16px}header #logout{margin-left:auto}@media(max-width:620px){header{flex-wrap:wrap}.login-card{padding:24px}}
