:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --ink: #172033;
    --muted: #667085;
    --line: #d9e0ea;
    --primary: #116466;
    --primary-dark: #0b4c4d;
    --accent: #d99f3f;
    --danger: #b42318;
    --success: #027a48;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
.public-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: linear-gradient(120deg, #eef7f5, #f8f4ec); }
.public-card { width: min(960px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 40px; box-shadow: 0 20px 60px rgba(23,32,51,.08); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { background: #13252b; color: #eef7f5; padding: 24px 18px; }
.brand { font-size: 22px; font-weight: 700; margin-bottom: 28px; }
.nav a { display: block; color: #d7e7e5; padding: 11px 12px; border-radius: 6px; margin-bottom: 4px; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main { padding: 28px; }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.metric { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.metric-value { font-size: 28px; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px; cursor: pointer; font-weight: 700; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: #e9eef5; color: var(--ink); }
.form { display: grid; gap: 14px; max-width: 520px; }
label { font-weight: 700; font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; font: inherit; background: #fff; }
textarea { min-height: 160px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; color: var(--muted); background: #f8fafc; }
.badge { display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.badge-ok { background: #ecfdf3; color: var(--success); }
.badge-warn { background: #fff6e5; color: #946200; }
.badge-danger { background: #fee4e2; color: var(--danger); }
.alert { border-radius: 8px; padding: 13px 14px; margin-bottom: 16px; border: 1px solid var(--line); background: #fff; }
.alert-success { border-color: #abefc6; color: var(--success); }
.alert-error { border-color: #fecdca; color: var(--danger); }
.muted { color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 820px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .hero-grid, .grid { grid-template-columns: 1fr; }
    .main { padding: 18px; }
}
