:root{--font-scale: 1;--bg: #f4f7f5;--panel: #ffffff;--panel-2: #f9fbf9;--text: #1f2937;--muted: #6b7280;--border: #dde7df;--accent: #14803c;--accent-strong: #0f6a31;--accent-soft: #dff4e6;--error: #b42318;--success: #0f8a43;font-size:calc(16px * var(--font-scale))}:root[data-theme=dark]{--bg: #0b1117;--panel: #16212d;--panel-2: #101922;--text: #f4f7f5;--muted: #c3cec8;--border: #344353;--accent: #22c55e;--accent-strong: #16a34a;--accent-soft: #183b2a;--error: #fca5a5;--success: #86efac}:root[data-contrast=high]{--border: #000000;--text: #000000;--muted: #1a1a1a}:root[data-theme=dark][data-contrast=high]{--border: #ffffff;--text: #ffffff;--muted: #f0f0f0}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,Arial,sans-serif;background:radial-gradient(circle at top left,rgba(20,128,60,.16),transparent 20%),var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.brand{display:inline-flex;align-items:center;gap:.75rem;font-size:1.15rem;min-width:0}.brand strong,.brand span{display:block}.brand .brand-logo-frame,.header-logo-frame{flex:0 0 auto;display:grid;place-items:center;background:#fff;border:1px solid rgba(255,255,255,.22);box-shadow:0 8px 24px #0f172029}.brand .brand-logo-frame{width:5.7rem;height:2.7rem;padding:.32rem;border-radius:.75rem}.brand-logo{display:block;width:100%;height:100%;object-fit:contain}.brand .brand-copy{display:grid;min-width:0;line-height:1.1}.brand .brand-copy strong{color:#fff;font-size:1.05rem;white-space:nowrap}.brand .brand-copy span{color:#ffffffc2;font-size:.82rem;margin-top:.18rem}.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr}.login-hero{background:linear-gradient(135deg,#0a281cf2,#0e5f37db),url(https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1200&q=80) center/cover;color:#fff;display:flex;align-items:flex-end;padding:3rem}.hero-inner{max-width:34rem}.logo-block{font-size:1.6rem;font-weight:700;margin-bottom:1rem}.login-brand{display:flex;align-items:center;gap:.85rem}.login-logo-frame{flex:0 0 auto;display:grid;place-items:center;width:6.2rem;height:2.8rem;padding:.32rem;border-radius:.78rem;background:#fff;box-shadow:0 12px 30px #0003}.login-card{margin:auto;width:min(32rem,90%);padding:2rem}.card{background:var(--panel);border:1px solid var(--border);border-radius:1.25rem;box-shadow:0 18px 60px #0f172014}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.form-single-col{grid-template-columns:1fr}label{display:grid;gap:.4rem;color:var(--muted)}input,select{background:var(--panel-2);border:1px solid var(--border);padding:.85rem 1rem;border-radius:.85rem;color:var(--text)}.full-span{grid-column:1 / -1}.primary-btn,.ghost-btn{border:0;border-radius:.85rem;padding:.85rem 1rem;cursor:pointer}.primary-btn{background:var(--accent);color:#fff}.primary-btn:hover{background:var(--accent-strong)}.ghost-btn{background:var(--panel-2);color:var(--text);border:1px solid var(--border)}.alert{padding:.85rem 1rem;border-radius:.85rem}.alert.error{background:#b423181f;color:var(--error)}.alert.success{background:#0f8a431f;color:var(--success)}.app-shell{display:grid;grid-template-columns:17rem 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,#0b2517fa,#104528f5);color:#fff;padding:1.5rem 1rem}.brand-side{margin-bottom:1.5rem}.nav-menu{display:grid;gap:.4rem}.nav-item{padding:.9rem 1rem;border-radius:.85rem;color:#ffffffe6}.nav-item.active,.nav-item:hover{background:#ffffff1f}.nav-item-disabled{opacity:.6;cursor:not-allowed}.content-shell{padding:1.2rem 1.5rem 2rem}.page-header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1.5rem}.header-brand{display:flex;align-items:center;gap:.85rem;min-width:0}.header-logo-frame{width:4.75rem;height:2.25rem;padding:.25rem;border-color:var(--border);border-radius:.7rem}.page-header h1{margin:0}.page-header p{margin:.35rem 0 0;color:var(--muted)}.header-actions{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:flex-end;align-items:center}.user-pill{display:grid;gap:.15rem;padding:.65rem .9rem;border-radius:.85rem;background:var(--panel);border:1px solid var(--border)}.user-pill small{color:var(--muted)}.main-content{display:grid;gap:1rem}.metrics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.metric-card{padding:1.2rem;display:grid;gap:.45rem}.metric-card span{color:var(--muted)}.metric-card strong{font-size:1.6rem}.page-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:1rem}.chart-card{padding:1.2rem}.chart-placeholder{height:15rem;display:grid;place-items:center}.line-chart{width:100%;height:10rem;border-radius:1rem;background:linear-gradient(180deg,#14803c2e,#14803c05),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='160' viewBox='0 0 500 160'%3E%3Cpath d='M10 130 C 80 100, 110 50, 170 70 S 270 130, 330 75 S 420 100, 490 30' fill='none' stroke='%2314803c' stroke-width='6'/%3E%3C/svg%3E") center/contain no-repeat;border:1px solid var(--border)}.donut-placeholder{display:flex;align-items:center;gap:1rem;min-height:15rem}.donut{width:10rem;height:10rem;border-radius:50%;background:conic-gradient(var(--accent) 0 60%,#f59e0b 60% 85%,#94a3b8 85% 100%);position:relative}.donut:after{content:"";position:absolute;top:1.9rem;right:1.9rem;bottom:1.9rem;left:1.9rem;background:var(--panel);border-radius:50%}.dashboard-page{display:grid;gap:1rem}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.dashboard-bars{display:grid;gap:.9rem}.dashboard-bar-row{display:grid;gap:.35rem}.dashboard-bar-label{display:flex;justify-content:space-between;gap:1rem;color:var(--muted)}.dashboard-bar-label strong{color:var(--text)}.dashboard-bar-track{height:.7rem;border-radius:999px;overflow:hidden;background:var(--panel-2);border:1px solid var(--border)}.dashboard-bar-track span{display:block;height:100%;min-width:.35rem;border-radius:inherit;background:var(--accent)}.form-card{padding:1.25rem}.section-title h2{margin:0}.section-title p{margin:.35rem 0 1rem;color:var(--muted)}.form-actions{display:flex;justify-content:flex-end}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:.85rem .75rem;border-bottom:1px solid var(--border)}thead th{color:var(--muted);font-weight:600}:root[data-theme=dark] body{background:radial-gradient(circle at top left,rgba(34,197,94,.12),transparent 24%),var(--bg)}:root[data-theme=dark] .content-shell,:root[data-theme=dark] .main-content{color:var(--text)}:root[data-theme=dark] .card,:root[data-theme=dark] .responsive-grid>div,:root[data-theme=dark] .page-grid>section,:root[data-theme=dark] .dashboard-grid>section,:root[data-theme=dark] .login-card{background:var(--panel)!important;border-color:var(--border)!important;color:var(--text)!important;box-shadow:0 18px 55px #00000047}:root[data-theme=dark] h1,:root[data-theme=dark] h2,:root[data-theme=dark] h3,:root[data-theme=dark] td,:root[data-theme=dark] li,:root[data-theme=dark] .metric-card strong,:root[data-theme=dark] .user-pill span{color:var(--text)!important}:root[data-theme=dark] p,:root[data-theme=dark] label,:root[data-theme=dark] th,:root[data-theme=dark] small,:root[data-theme=dark] .section-title p,:root[data-theme=dark] .page-header p,:root[data-theme=dark] .metric-card span,:root[data-theme=dark] .dashboard-bar-label{color:var(--muted)!important}:root[data-theme=dark] input,:root[data-theme=dark] select{background:var(--panel-2)!important;border-color:var(--border)!important;color:var(--text)!important}:root[data-theme=dark] input::placeholder{color:#93a39b}:root[data-theme=dark] table{color:var(--text)}:root[data-theme=dark] thead{background:#ffffff08}:root[data-theme=dark] th,:root[data-theme=dark] td{border-color:var(--border)!important}:root[data-theme=dark] tbody tr:hover{background:#ffffff0a}:root[data-theme=dark] button{color:var(--text)}:root[data-theme=dark] button[style*="background: rgb(255, 255, 255)"],:root[data-theme=dark] button[style*="background: #fff"],:root[data-theme=dark] .ghost-btn{background:var(--panel-2)!important;border-color:var(--border)!important;color:var(--text)!important}:root[data-theme=dark] .primary-btn,:root[data-theme=dark] button[style*="background: rgb(21, 128, 61)"],:root[data-theme=dark] button[style*="background: #15803d"]{background:var(--accent)!important;color:#06120b!important}:root[data-theme=dark] button[style*="background: rgb(185, 28, 28)"],:root[data-theme=dark] button[style*="background: #b91c1c"]{background:#ef4444!important;color:#fff!important}:root[data-theme=dark] .alert.success,:root[data-theme=dark] div[style*="background: rgb(220, 252, 231)"],:root[data-theme=dark] div[style*="background: #dcfce7"],:root[data-theme=dark] span[style*="background: rgb(220, 252, 231)"],:root[data-theme=dark] span[style*="background: #dcfce7"]{background:#22c55e29!important;color:var(--success)!important;border:1px solid rgba(134,239,172,.22)}:root[data-theme=dark] .alert.error,:root[data-theme=dark] div[style*="background: rgb(254, 226, 226)"],:root[data-theme=dark] div[style*="background: #fee2e2"],:root[data-theme=dark] span[style*="background: rgb(254, 226, 226)"],:root[data-theme=dark] span[style*="background: #fee2e2"]{background:#ef444429!important;color:var(--error)!important;border:1px solid rgba(252,165,165,.22)}:root[data-theme=dark] .main-content a,:root[data-theme=dark] .content-shell a:not(.nav-item){color:var(--success)!important}:root[data-theme=dark] .sidebar{background:linear-gradient(180deg,#07140d,#0f2f1f);border-right:1px solid rgba(255,255,255,.08)}:root[data-theme=dark] .nav-item{color:#ffffffe6}:root[data-theme=dark] .nav-item.active,:root[data-theme=dark] .nav-item:hover{background:#22c55e29;color:#fff}:root[data-theme=dark] .brand .brand-logo-frame,:root[data-theme=dark] .header-logo-frame{border-color:#ffffff2e;box-shadow:0 10px 28px #0000004d}:root[data-theme=dark] .user-pill,:root[data-theme=dark] .dashboard-bar-track{background:var(--panel-2)!important;border-color:var(--border)!important}:root[data-theme=dark] .dashboard-bar-track span{background:linear-gradient(90deg,var(--accent),#86efac)}:root[data-theme=dark] .dashboard-bar-label strong{color:var(--text)!important}@media (max-width: 1100px){.login-page{grid-template-columns:1fr}.login-hero{min-height:18rem}.app-shell{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:3}.brand .brand-logo-frame{width:5rem;height:2.35rem}.header-brand{align-items:flex-start}.page-grid,.metrics-grid,.dashboard-grid{grid-template-columns:1fr}}@media (max-width: 640px){.header-logo-frame{display:none}}@media (max-width: 1100px){.app-shell{grid-template-columns:84px 1fr!important}.sidebar .brand-side strong,.sidebar .brand-side span,.sidebar .nav-item{font-size:.95rem}}@media (max-width: 900px){.app-shell{display:block!important}.sidebar{position:relative!important;width:100%!important;min-height:auto!important}.content-shell,.main-content{width:100%!important}.responsive-grid{grid-template-columns:1fr!important}}@media (max-width: 640px){.main-content{padding:16px!important}table{min-width:680px}}
