:root{color:#16181d;font-synthesis:none;--ink:#111827;--muted:#6b6c72;--surface:#fffdfb;--line:#ded9d2;--gold:#c99a37;--gold-soft:#f4e5bd;--success:#13795b;background:#f6f3ef;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}.app-shell{grid-template-columns:232px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--ink);color:#fff;padding:22px 14px}.brand{align-items:center;gap:10px;padding:0 8px 24px;display:flex}.brand>span{color:#f1cf85;border:1px solid #d5ac56;border-radius:9px;place-items:center;width:34px;height:34px;font-weight:800;display:grid}.brand strong,.brand small{display:block}.brand small{color:#a9afba;margin-top:2px;font-size:11px}.sidebar nav{gap:5px;display:grid}.nav-link{color:#c8cdd5;border-radius:7px;align-items:center;gap:11px;padding:10px 12px;font-size:14px;text-decoration:none;display:flex}.nav-link:hover,.nav-link:focus-visible{color:#fff;background:#222d3d;outline:none}.nav-link.active{background:var(--gold-soft);color:#2e2513}.content{min-width:0;padding:38px clamp(24px,4vw,64px)}.page-header{justify-content:space-between;align-items:flex-start;gap:24px;display:flex}h1{margin:4px 0 8px;font-family:Georgia,Times New Roman,serif;font-size:clamp(30px,4vw,44px);font-weight:600}.page-header p,.placeholder p{color:var(--muted);margin:0}.eyebrow{color:#88671e;letter-spacing:.09em;text-transform:uppercase;font-size:12px;font-weight:700}.primary-action{background:var(--ink);color:#fff;cursor:pointer;border:0;border-radius:7px;padding:11px 17px;font-weight:700}.primary-action:focus-visible{outline-offset:2px;outline:3px solid #e4c16f}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:34px;display:grid}.metric-card{border:1px solid var(--line);background:var(--surface);border-radius:8px;min-height:142px;padding:18px}.metric-card span,.metric-card small{color:var(--muted);display:block}.metric-card strong{margin:18px 0 12px;font-family:Georgia,Times New Roman,serif;font-size:28px;display:block}.metric-card small{font-size:12px}.status-panel{border:1px solid var(--line);background:var(--surface);border-radius:8px;justify-content:space-between;align-items:center;gap:24px;margin-top:18px;padding:20px;display:flex}.status-panel>div{align-items:flex-start;gap:12px;display:flex}.status-panel p{color:var(--muted);margin:5px 0 0;font-size:14px}.status-panel code{white-space:nowrap;background:#f0ede8;border-radius:5px;padding:7px 9px}.status-dot{background:var(--success);border-radius:999px;width:9px;height:9px;margin-top:5px;box-shadow:0 0 0 4px #d8efe7}.placeholder{border:1px solid var(--line);background:var(--surface);border-radius:8px;max-width:760px;padding:60px}.auth-page{background:#f6f3ef;place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{border:1px solid var(--line);background:var(--surface);border-radius:10px;width:min(100%,410px);padding:36px;box-shadow:0 18px 60px #392e1c14}.auth-card h1{margin-top:8px;font-size:34px}.auth-card>p{color:var(--muted);margin:0 0 24px;line-height:1.55}.auth-card form{gap:16px;display:grid}.auth-card label{gap:7px;font-size:13px;font-weight:700;display:grid}.auth-card input{width:100%;color:var(--ink);background:#fff;border:1px solid #cfc9c1;border-radius:6px;padding:11px 12px}.auth-card input:focus{border-color:#96701f;outline:3px solid #ead392}.auth-mark{background:var(--gold-soft);color:#5d4513;border-radius:10px;place-items:center;width:46px;height:46px;margin-bottom:18px;display:grid}.auth-submit{width:100%;margin-top:4px}.auth-submit:disabled{cursor:wait;opacity:.65}.auth-error{color:#9d2d24;background:#fff1ef;border:1px solid #e5b8b1;border-radius:6px;margin-bottom:16px;padding:10px 12px;font-size:13px}.auth-card>small{color:var(--muted);margin-top:18px;line-height:1.45;display:block}.auth-loading{color:var(--muted)}@media (width<=900px){.app-shell{padding-bottom:72px;display:block}.sidebar{z-index:10;padding:7px 8px calc(7px + env(safe-area-inset-bottom));position:fixed;inset:auto 0 0}.brand{display:none}.sidebar nav{justify-content:space-around;gap:2px;display:flex;overflow-x:auto}.nav-link{flex-direction:column;gap:3px;min-width:62px;padding:6px;font-size:10px}.nav-link:nth-child(n+6){display:none}.content{padding:24px 16px}.page-header{align-items:center}.page-header p{display:none}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.status-panel{flex-direction:column;align-items:flex-start}.placeholder{padding:28px 20px}.auth-card{padding:28px 22px}}
