:root{--bg:#f3f5f8;--surface:#fff;--fg:#202c3c;--muted:#596779;--border:#d8dfe7;--accent:#2455ba;--accent-on:#fff;--font-display:'Golos Text',sans-serif;--font-body:'Golos Text',sans-serif;--radius:8px;--space-section:28px;--error:#a12832;--success:#276444}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);font:1rem/1.5 var(--font-body)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,input,select{min-height:44px}button{padding:9px 16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--fg);cursor:pointer;transition:background-color .16s}button:hover{background:#e9edf3}button:active{background:#dde4ed}button:disabled{opacity:.55;cursor:not-allowed}button.primary{color:var(--accent-on);background:var(--accent);border-color:var(--accent)}button.primary:hover{background:#1c4293}input,select,textarea{width:100%;min-width:0;padding:9px 12px;border:1px solid #a4afbe;border-radius:var(--radius);background:var(--surface);color:var(--fg)}input:disabled,select:disabled{background:var(--bg)}textarea{resize:vertical;min-height:88px}label{display:flex;flex-direction:column;gap:6px;font-size:.875rem;font-weight:500}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #7ea5ed;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:1.625rem;line-height:1.25;font-weight:600}h2{font-size:1.1875rem;font-weight:600}h3{font-size:1rem;font-weight:600}.muted{color:var(--muted);font-size:.875rem}.wordmark{font-weight:700;font-size:1.0625rem}.wordmark span{color:var(--muted);font-weight:400}.auth-shell{max-width:440px;margin:8vh auto;padding:24px}.auth-panel{margin-top:32px}.auth-panel h1{margin:8px 0 12px}.auth-panel form{display:grid;gap:16px;margin-top:24px}.auth-foot{margin-top:28px;color:var(--muted);font-size:.875rem}.password{display:flex;position:relative;min-width:0}.password input{padding-right:94px}.password button{position:absolute;right:1px;top:0;min-height:44px;padding:8px;font-size:.75rem;border:0;background:transparent}.password button:hover{background:#e9edf3}.workspace{display:flex;flex-direction:column;min-height:100vh}.sidebar{padding:16px;border-bottom:1px solid var(--border);background:var(--surface)}.sidebar-caption{font-size:.75rem;color:var(--muted);margin-top:6px}.sidebar nav{display:flex;gap:4px;overflow-x:auto;margin-top:16px}.sidebar nav button{border:0;white-space:nowrap;font-size:.875rem;text-align:left}.sidebar nav button.active{background:#e9eef8;color:var(--accent);font-weight:600}.sidebar-bottom{display:flex;gap:8px;margin-top:12px}.sidebar-bottom button{font-size:.875rem}.main{padding:24px 16px;flex:1;min-width:0}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:24px}.breadcrumb{font-size:.75rem;color:var(--muted);margin-bottom:6px}.tag{font-size:.8125rem;background:#e7ebf0;padding:5px 10px;border-radius:6px;white-space:normal}.toolbar{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin-bottom:16px}.toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.notice{padding:12px 16px;border:1px solid var(--border);background:#edf0f5;border-radius:var(--radius);font-size:.875rem;max-width:850px;margin:16px 0}.route-strip{display:flex;align-items:center;flex-wrap:wrap;gap:20px;border-bottom:1px solid var(--border);padding:12px 0 24px;margin-bottom:24px}.route-strip>div{display:flex;flex-direction:column;gap:4px}.route-strip strong{font-size:.9375rem;font-weight:500}.route-strip>p{margin-left:auto;color:var(--muted);font-size:.8125rem}.section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px;flex-wrap:wrap}.empty{padding:28px 0;max-width:610px}.empty p{color:var(--muted);margin:8px 0 20px}.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}table{border-collapse:collapse;width:100%;font-size:.875rem;text-align:left}th,td{padding:12px 16px;border-bottom:1px solid var(--border);vertical-align:top;min-width:100px}th{font-size:.8125rem;font-weight:500;background:#edf1f6;color:var(--muted)}td.num{font-variant-numeric:tabular-nums;font-weight:600}.stock-table th:first-child,.stock-table td:first-child{position:sticky;left:0;background:var(--surface);min-width:180px;max-width:300px;overflow-wrap:anywhere;z-index:1}.stock-table th:first-child{background:#edf1f6}.stock-table small{display:block;max-width:220px;font-weight:400;line-height:1.5;color:var(--muted);margin-top:3px}tr:last-child td{border-bottom:0}.error{color:var(--error)}.success{color:var(--success)}.form-error{color:var(--error);font-size:.875rem}.settings-form{max-width:740px;display:grid;gap:20px}.settings-form>button{justify-self:start}.form-grid{display:grid;gap:20px}.short{max-width:220px}.check{flex-direction:row;align-items:center;gap:10px;min-height:44px}.check input{width:20px;min-height:20px;height:20px;accent-color:var(--accent)}.help{border-top:1px solid var(--border);margin-top:28px;padding-top:16px;max-width:850px;font-size:.875rem}.help summary{cursor:pointer;min-height:44px;display:list-item}.help p{margin:12px 0}.help li{margin-bottom:8px}a{color:var(--accent)}a:hover{text-decoration-thickness:2px}.account-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin-bottom:16px}.account-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.account-head h2{margin-top:4px}.account-head .tag{background:var(--bg)}.account-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.account-bottom{display:flex;gap:16px;flex-wrap:wrap;align-items:end}.account-bottom label:first-child{flex:1;min-width:180px;max-width:470px}.account-row .error{font-size:.875rem;margin:12px 0}.account-meta{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:.8125rem}.toast{position:fixed;bottom:24px;left:16px;right:16px;z-index:1000;background:var(--fg);color:white;border-radius:var(--radius);padding:14px 20px;box-shadow:0 5px 24px #202c3c30;max-width:600px;max-height:40vh;overflow:auto}.toast.error{background:var(--error);color:white}dialog{width:min(620px,calc(100% - 32px));border:1px solid var(--border);border-radius:var(--radius);padding:24px;color:var(--fg);max-height:90vh;overflow:auto}dialog::backdrop{background:#202c3c70}dialog form{display:grid;gap:16px}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}#details-dialog{width:min(1000px,calc(100% - 32px))}#run-detail p{margin:12px 0}.history-button{font-size:.8125rem}.audit-item{padding:8px 0;border-bottom:1px solid var(--border);font-size:.875rem}.audit-item time{color:var(--muted);margin-right:12px}.countline{margin-bottom:16px;color:var(--muted);font-size:.875rem}button.danger{color:var(--error)}
@media(min-width:768px){.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main{padding:28px}.toast{left:auto;right:28px}.sidebar{padding:20px 28px}.route-strip{gap:28px}}
@media(min-width:1050px){.workspace{flex-direction:row}.sidebar{width:224px;flex-shrink:0;padding:28px 16px;border-bottom:0;border-right:1px solid var(--border);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .wordmark,.sidebar-caption{padding-left:12px}.sidebar nav{flex-direction:column;margin-top:28px;overflow:visible}.sidebar nav button{height:44px;padding:10px 12px}.sidebar-bottom{margin-top:auto;flex-direction:column}.sidebar-bottom button{text-align:left;border:0}.main{max-width:1700px}.account-bottom{flex-wrap:nowrap}}
@media(max-width:480px){.page-head{align-items:flex-start}.page-head .tag{max-width:110px;font-size:.75rem}.toolbar>div{width:100%}.toolbar button{flex:1}.route-strip{gap:12px}.route-strip>p{margin-left:0;width:100%}.route-strip>p br{display:none}.account-row{padding:16px}.dialog-head{align-items:flex-start}dialog{padding:16px}th,td{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Compact workspace: requested desktop density; touch controls stay 44px. */

body{font-size:.875rem;line-height:1.45}
button,input,select{min-height:34px}
button{padding:5px 12px}input,select,textarea{padding:5px 10px}
h1{font-size:1.375rem}h2{font-size:1.0625rem}
label{gap:4px}.main{padding:16px 20px}.page-head{margin-bottom:14px;gap:12px}.breadcrumb{margin-bottom:2px}
.tag{padding:3px 8px}.toolbar{gap:8px;margin-bottom:10px}
.account-row{padding:12px 14px;margin-bottom:10px}
.account-head{gap:8px}.account-identity{display:flex;align-items:baseline;gap:10px;min-width:0;flex-wrap:wrap}
.account-head h2{margin:0;overflow-wrap:anywhere}.account-identity .muted{font-size:.8125rem}
.account-actions{margin:0;gap:6px}.account-meta{gap:4px 16px;margin-top:6px}
.account-bottom{gap:8px 12px;margin-top:10px;align-items:center;flex-wrap:wrap}
.account-bottom label:first-child{flex-direction:row;align-items:center;gap:10px;max-width:600px;min-width:240px}
.account-bottom select{flex:1;min-width:0;width:auto}
.account-bottom .check{margin-left:auto;white-space:nowrap;min-height:34px}
.check{min-height:34px;gap:8px}.check input{width:18px;height:18px;min-height:18px}
.settings-form,.form-grid{gap:12px}.settings-form{max-width:720px}textarea{min-height:68px}
.notice{padding:8px 12px;margin:10px 0}.route-strip{padding:8px 0 12px;margin-bottom:14px;gap:16px}
.section-title{margin-bottom:8px}.empty{padding:16px 0}.empty p{margin:6px 0 12px}
.help{margin-top:16px;padding-top:10px}.help summary{min-height:34px}.help p{margin:8px 0}
th,td{padding:8px 12px}.countline{margin-bottom:10px}
.sidebar{padding:14px 16px}.sidebar nav{margin-top:14px;gap:2px}.sidebar nav button{height:auto;min-height:34px;padding:6px 10px}
.sidebar-caption{margin-top:4px}.sidebar-bottom{gap:4px}
dialog{padding:18px}dialog form{gap:12px}.dialog-head{margin-bottom:6px}
.password button{min-height:34px;padding:5px 8px}
.auth-shell{margin:5vh auto;padding:20px}.auth-panel{margin-top:20px}.auth-panel form{gap:12px;margin-top:16px}.auth-foot{margin-top:18px}
@media(min-width:1050px){.sidebar{width:208px;padding:18px 12px}.sidebar nav button{height:34px}.sidebar-bottom{margin-top:auto}.account-bottom{flex-wrap:nowrap}}
@media(max-width:767px){.main{padding:14px 12px}.account-row{padding:12px}.account-head{align-items:flex-start}.account-actions{width:100%;flex-wrap:wrap}.account-bottom label:first-child{flex-basis:100%;max-width:none;min-width:0;flex-direction:column;align-items:stretch;gap:4px}.account-bottom select{width:100%}.page-head{gap:8px}.account-meta{gap:4px 12px}}
@media(pointer:coarse),(max-width:600px){button,input,select,.password button,.sidebar nav button,.check,.help summary{min-height:44px}.sidebar nav button{height:auto}.account-bottom .check{min-height:44px}.check input{min-height:20px;width:20px;height:20px}}
