:root{color:#132238;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#eef3f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:linear-gradient(135deg,#eef3f8 0%,#f8fafc 100%);min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{color:#fff;cursor:pointer;background:#1b4d89;border:0;border-radius:12px;padding:10px 14px;font-weight:700;transition:transform .15s,box-shadow .15s,background .15s}button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 18px #1b4d8929}button:disabled{opacity:.55;cursor:not-allowed}button.secondary,button.ghost{color:#1b4d89;background:#e8eef7}button.ghost{background:0 0;border:1px solid #d8e2ef}button.small{border-radius:10px;padding:7px 10px;font-size:12px}button.dangerBtn{color:#991b1b;background:#fee2e2}button.fullWidth{width:100%}.loginPage{place-items:center;min-height:100vh;padding:20px;display:grid}.loginCard{background:#fff;border-radius:28px;gap:16px;width:min(420px,100%);padding:34px;display:grid;box-shadow:0 24px 70px #1322381f}.loginCard h1{margin:0;font-size:28px}.loginCard p{color:#64748b;margin:0}.loginCard input{border:1px solid #d8e2ef;border-radius:14px;width:100%;padding:14px}.loginCard small{color:#64748b}.formError{color:#991b1b;background:#fee2e2;border-radius:12px;padding:10px}.appShell{grid-template-columns:280px 1fr;min-height:100vh;display:grid}.sidebar{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffdb;border-right:1px solid #dbe5f2;flex-direction:column;gap:20px;height:100vh;padding:22px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:12px;display:flex}.brandMark{color:#fff;letter-spacing:-1px;background:linear-gradient(135deg,#1b4d89,#2a9d8f);border-radius:16px;place-items:center;width:44px;height:44px;font-weight:900;display:grid;box-shadow:0 12px 28px #1b4d8938}.brandMark.large{border-radius:22px;width:64px;height:64px;font-size:20px}.brand h1{margin:0;font-size:17px}.brand span{color:#64748b;font-size:12px}nav{gap:8px;display:grid}nav button{color:#475569;text-align:left;box-shadow:none;background:0 0}nav button:hover{box-shadow:none;background:#eff6ff}nav button.active{color:#fff;background:#1b4d89}.syncBox{color:#166534;background:#f1f8f5;border:1px solid #ccebd9;border-radius:16px;gap:5px;margin-top:auto;padding:14px;display:grid}.syncBox span,.syncBox small{color:inherit;font-size:12px;line-height:1.4}.syncBox.syncError{color:#9f1239;background:#fff1f2;border-color:#fecdd3}.main{min-width:0;padding:28px}.topbar{justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px;display:flex}.topbar h2{letter-spacing:-.04em;margin:0;font-size:clamp(24px,3vw,36px)}.topbar p{color:#64748b;margin:5px 0 0}.topActions{align-items:center;gap:10px;display:flex}.search{background:#fff;border:1px solid #d8e2ef;border-radius:14px;min-width:280px;padding:12px 14px}.pageGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.splitPage{grid-template-columns:380px minmax(0,1fr);align-items:start;gap:18px;display:grid}.panel{background:#fffffff0;border:1px solid #dbe5f2;border-radius:24px;min-width:0;padding:20px;box-shadow:0 16px 45px #13223812}.panel.wide{grid-column:1/-1}.panelHeader{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.panelHeader h3{margin:0;font-size:18px}.panelHeader p{color:#64748b;margin:5px 0 0}.panelHeader span{color:#64748b}.panelHeader select,.field select,.field input,.field textarea{color:#132238;background:#fff;border:1px solid #d8e2ef;border-radius:12px;width:100%;padding:11px 12px}.formPanel{gap:13px;display:grid}.field{gap:7px;display:grid}.field span{color:#334155;font-size:13px;font-weight:700}.field textarea{resize:vertical}.checkRow{color:#334155;align-items:center;gap:8px;display:flex}.buttonRow{flex-wrap:wrap;gap:10px;display:flex}.buttonStack{gap:10px;margin-top:16px;display:grid}.calcBox{color:#475569;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;gap:6px;padding:12px;display:grid}.calcBox b{color:#132238}.cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.statCard{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;gap:6px;min-height:96px;padding:16px;display:grid}.statCard span{color:#64748b;font-size:13px}.statCard strong{letter-spacing:-.03em;font-size:22px}.statCard.good{color:#166534;background:#ecfdf5;border-color:#bbf7d0}.statCard.warn{color:#92400e;background:#fffbeb;border-color:#fde68a}.statCard.bad{color:#9f1239;background:#fff1f2;border-color:#fecdd3}.tablePanel,.wideTable{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;vertical-align:top;border-bottom:1px solid #e2e8f0;padding:13px 10px}th{color:#64748b;text-transform:uppercase;letter-spacing:.04em;background:#f8fafc;font-size:12px;position:sticky;top:0}td small{color:#64748b;max-width:260px;margin-top:4px;display:block}.emptyCell{color:#64748b;text-align:center;padding:28px}.emptyText{color:#64748b;background:#f8fafc;border-radius:16px;padding:18px}.rowActions{flex-wrap:wrap;gap:6px;min-width:180px;display:flex}.pill{color:#3730a3;background:#eef2ff;border-radius:999px;justify-content:center;align-items:center;padding:5px 9px;font-size:12px;font-weight:800;display:inline-flex}.pill.good{color:#166534;background:#dcfce7}.pill.warning{color:#92400e;background:#fef3c7}.pill.danger{color:#991b1b;background:#fee2e2}.miniList{gap:10px;display:grid}.miniRow{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;justify-content:space-between;align-items:center;gap:10px;padding:12px;display:flex}.miniRow div{gap:3px;display:grid}.miniRow span{color:#64748b;font-size:13px}.statusBars{gap:18px;display:grid}.progressWrap{gap:7px;display:grid}.progressLabel{color:#475569;justify-content:space-between;display:flex}.progress{background:#e2e8f0;border-radius:99px;height:10px;overflow:hidden}.progress div{border-radius:inherit;background:#1b4d89;height:100%}.settingsGrid{gap:10px;margin:16px 0;display:grid}.infoLine{background:#f8fafc;border-radius:14px;justify-content:space-between;gap:12px;padding:12px;display:flex}.infoLine span{color:#64748b}@media (width<=1120px){.appShell{grid-template-columns:1fr}.sidebar{height:auto;position:static}nav{grid-template-columns:repeat(3,1fr)}.splitPage,.pageGrid{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{flex-direction:column;align-items:flex-start}.topActions{width:100%}.search{flex:1;min-width:0}}@media (width<=640px){.main,.sidebar{padding:16px}nav{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:1fr}.topActions{flex-direction:column;align-items:stretch}.panel{border-radius:18px;padding:15px}table{min-width:760px}}
