:root {
    --ink: #142033;
    --gold: #e59a22;
    --line: #d8dee8;
    --bg: #f6f7f9;
    --good: #137a3f;
    --bad: #b42318;
    --warn: #9a6700;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--ink); }
a { color: inherit; }
.app { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { background: var(--ink); color: white; padding: 18px; }
.logo { display: block; background: white; border-radius: 4px; padding: 8px; margin-bottom: 18px; }
.logo img { width: 100%; display: block; }
.nav a { display: block; color: rgba(255,255,255,.86); text-decoration: none; padding: 9px 10px; border-radius: 5px; font-size: 14px; }
.nav a:hover { background: rgba(255,255,255,.1); color: white; }
.main { min-width: 0; }
.topbar { background: white; border-bottom: 1px solid var(--line); padding: 13px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.content { padding: 22px; }
.footer { border-top: 1px solid var(--line); background: white; padding: 14px 22px; font-size: 13px; color: #5b6472; }
.support-banner { background: #fff4d6; border-bottom: 1px solid #e7c66a; color: #614600; padding: 10px 22px; font-weight: 700; }
.page-title { margin: 0 0 4px; font-size: 26px; }
.muted { color: #657085; font-size: 14px; }
.grid { display: grid; gap: 16px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.metric-label { color: #657085; text-transform: uppercase; font-size: 12px; font-weight: 700; }
.metric-value { margin-top: 8px; font-size: 25px; font-weight: 700; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #eef2f6; font-size: 12px; text-transform: uppercase; color: #596579; }
.pill { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: #f8fafc; }
.pill.good { color: var(--good); border-color: #b7e1c7; background: #eefbf3; }
.pill.bad { color: var(--bad); border-color: #f2b8b5; background: #fff1f0; }
.pill.warn { color: var(--warn); border-color: #f1d48a; background: #fff8e8; }
.button { display: inline-block; border: 0; border-radius: 5px; background: var(--gold); color: var(--ink); padding: 9px 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.secondary { background: white; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; }
input, select, textarea { border: 1px solid var(--line); border-radius: 5px; padding: 9px; font: inherit; width: 100%; background: white; }
textarea { min-height: 90px; }
.full { grid-column: 1 / -1; }
.login { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 18px; }
.login-card { width: 100%; max-width: 390px; background: white; border-radius: 7px; padding: 24px; }
.login-card img { width: 100%; }
.alert { padding: 10px 12px; border-radius: 5px; margin: 10px 0; background: #fff1f0; color: var(--bad); border: 1px solid #f2b8b5; }
.two-col { grid-template-columns: 1.3fr .7fr; }
.mobile-menu-button, .mobile-menu-backdrop { display: none; }
@media (max-width: 900px) {
    .app { grid-template-columns: 1fr; }
    .mobile-menu-button { display: block; position: sticky; top: 0; z-index: 30; width: 100%; border: 0; background: var(--ink); color: white; padding: 10px 14px; font-weight: 700; text-align: left; }
    .mobile-menu-backdrop.open { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(20,32,51,.42); }
    .sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(82vw, 310px); overflow-y: auto; transform: translateX(-105%); transition: transform .18s ease; }
    .sidebar.open { transform: translateX(0); }
    .topbar { padding: 10px 14px; }
    .content { padding: 14px; }
    .metrics, .two-col, .form-grid { grid-template-columns: 1fr; }
}
.nav-label { margin: 14px 10px 5px; color: rgba(255,255,255,.52); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.scope-note { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; color: #5b6472; font-size: 14px; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
