@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;550;600;650;700&display=swap');
:root{--bg:#f4f1e9;--paper:#fffdf7;--ink:#243d32;--text:#33362e;--muted:#68695d;--line:#e7e2d6;--green:#2e775f;--pale:#e8eddb;--radius:26px}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.55 'Golos Text',system-ui,sans-serif}
h1,h2,h3,p{margin:0}h1,h2,h3{color:var(--ink);font-weight:550;letter-spacing:-.045em;line-height:1.15}
h1{font-size:clamp(34px,5vw,58px)}h2{font-size:24px}h3{font-size:17px}
a{color:var(--green);text-decoration:none}button,input,select,textarea{font:inherit}
button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.layout{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}
.sidebar{background:var(--paper);border-right:1px solid var(--line);position:sticky;top:0;height:100dvh;padding:30px 18px;display:flex;flex-direction:column}
.brand{font-size:25px;color:var(--ink);font-weight:650;letter-spacing:-.05em;margin:0 12px 33px}
.brand small{display:block;font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted)}
nav{display:grid;gap:5px}nav a{padding:11px 12px;border-radius:12px;display:flex;gap:11px;align-items:center;color:var(--text)}
nav a:hover,nav [aria-current]{background:var(--pale);color:var(--ink)}nav [aria-current]{font-weight:650}
.nav-icon{display:grid;place-items:center;width:23px;height:23px;color:var(--green)}.nav-icon svg{width:20px;height:20px}
.local{margin:auto 12px 0;padding-top:18px;color:var(--muted);font-size:11px}
main{width:100%;max-width:1460px;margin:0 auto;padding:38px clamp(22px,4vw,60px) 65px}
.page-head{display:flex;gap:20px;justify-content:space-between;align-items:end;margin-bottom:28px}.page-head p{margin-top:10px;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:23px;min-width:0}
.card p{margin-top:9px;color:var(--muted)}.card h2+div,.card h3+div{margin-top:12px}.stack{display:grid;gap:16px}.section{margin-top:24px}.section>h2{margin-bottom:12px}
.metric{background:var(--pale);padding:25px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:22px}.metric h2{font-size:28px}
.ring{width:clamp(106px,13vw,160px);aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--arc) calc(var(--value)*1%),#d5ddc9 0);}
.ring strong{font-size:clamp(24px,4vw,39px);font-weight:650;background:var(--pale);border-radius:50%;width:82%;height:82%;display:grid;place-items:center;color:var(--ink)}
.tag{font-size:11px;display:inline-flex;align-items:center;padding:5px 9px;border-radius:99px;background:#ede9df;color:#57584c;white-space:normal}.tag.ok{background:#e1ebd7;color:#285641}.tag.warn{background:#f3e4cc;color:#744c26}.tag.stop{background:#f3e0da;color:#8a3a2c}
.actions,.filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.filters{margin-bottom:15px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border:1px solid transparent;border-radius:11px;padding:9px 14px;background:var(--green);color:white;font-weight:500}.button.alt{background:var(--pale);color:var(--ink)}.button:hover{filter:brightness(.96)}
.list{margin:0;padding:0;list-style:none}.list li{padding:10px 0;border-bottom:1px solid var(--line)}.list li:last-child{border:0}.list li small{display:block;color:var(--muted)}
.row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);align-items:center}.row:last-child{border:0}.row p{margin:3px 0 0;font-size:12px}
.row input{accent-color:var(--green);width:18px;height:18px;cursor:pointer}.done{color:var(--muted);text-decoration:line-through}.text-button{border:0;background:transparent;color:var(--green);padding:8px 3px;text-align:left}
.cover{width:100%;aspect-ratio:2;object-fit:cover;border-radius:15px;margin-bottom:15px;background:var(--pale)}.product .actions{margin-top:15px}.product p{overflow-wrap:anywhere}
input,select,textarea{min-width:0;max-width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fffefa;color:var(--text)}
dialog{width:min(520px,calc(100% - 28px));max-height:85dvh;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);color:var(--text);padding:22px;box-shadow:0 20px 80px #22302242}dialog::backdrop{background:#1c292470;backdrop-filter:blur(3px)}
.dialog-head{display:flex;justify-content:space-between;gap:10px;align-items:start;margin-bottom:17px}.form{display:grid;gap:12px}.form label{display:grid;gap:5px}.form textarea{resize:vertical;min-height:75px;width:100%}.dialog-head button{border:0;background:var(--pale);border-radius:10px;min-width:36px;height:36px}
@media(max-width:1040px){.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{grid-template-columns:1fr}}
@media(max-width:730px){.layout{display:block}.sidebar{height:auto;z-index:2;padding:10px 14px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:18px;margin:0 0 7px}.brand small,.local{display:none}nav{display:flex;overflow:auto;padding:3px;gap:4px}nav a{white-space:nowrap;padding:7px 9px;font-size:12px}.nav-icon{display:none}main{padding:22px 14px 40px}.grid,.grid.three{grid-template-columns:1fr}.metric{grid-template-columns:auto 1fr}.card{padding:17px;border-radius:20px}.page-head{align-items:start;flex-direction:column;margin-bottom:18px}.row{gap:8px}}
@media(max-width:370px){.metric{grid-template-columns:1fr}.row .text-button{font-size:11px}}
