/* =====================================================================================================================
   freecity_mdt - City Portal look (2026-11-10). Civilians (/cityportal) get a civic services site, not a police terminal:
   slate blue, a calm teal accent, rounded cards, roomy text, plain fonts. Only active with <html class="mode-portal">
   (set by applyTheme when the MDT opens in citizen mode; the police CAD skin is switched off then).
   Game browser rules kept: no backdrop-filter, no color-mix(), no shadows outside the panel.
   ===================================================================================================================== */
html.mode-portal {
    --ink: #060c13;
    --bg: #0c1622;
    --panel: #111d2b;
    --raised: #162536;
    --raised-2: #1c2f44;
    --raised-3: #253d57;
    --line: rgba(170, 200, 230, 0.10);
    --line-2: rgba(170, 200, 230, 0.18);
    --text: #eef4fa;
    --muted: #a9bacb;
    --faint: #73889c;
    --silver: #d2dde8;
    --silver-2: #f4f8fc;
    --gold: #2ec4a6;
    --gold-rgb: 46, 196, 166;
    --gold-2: #86e6d3;
    --gold-deep: #178f78;
    --gold-soft: rgba(46, 196, 166, 0.12);
    --gold-soft-2: rgba(46, 196, 166, 0.2);
    --gold-line: rgba(46, 196, 166, 0.45);
    --gold-ink: #03231c;
    --good: #4fd18b;
    --warn: #f4b74a;
    --bad: #f07272;
    --info: #74b4f2;
    --r-sm: 0.5rem;
    --r: 0.75rem;
    --r-lg: 1.05rem;
}
html.mode-portal { font-size: 16px; }
@media (max-height: 820px), (max-width: 1300px) { html.mode-portal { font-size: 15px; } }
@media (max-height: 720px), (max-width: 1140px) { html.mode-portal { font-size: 14px; } }

/* frame: a light civic header band instead of the police status strip */
.mode-portal .mdt { background: var(--bg); border: 1px solid var(--line-2); }
.mode-portal .mdt::before { background: linear-gradient(90deg, #178f78, #2ec4a6 40%, #74b4f2); height: 4px; }
.mode-portal .rail { background: #0a131d; border-right: 1px solid var(--line); }
.mode-portal .rail-mod.on { background: var(--gold-soft-2); color: var(--text); }
.mode-portal .rail-mod.on::before { background: var(--gold); }
.mode-portal .rail-avatar { background: var(--gold-soft-2); color: var(--gold-2); border-color: var(--gold-line); }

/* cards: soft, rounded, roomy */
.mode-portal .card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.mode-portal .card-h { border-bottom: 1px solid var(--line); padding: 0.85rem 1.1rem; }
.mode-portal .card-h h2 { font: 700 1rem var(--font); letter-spacing: 0.01em; text-transform: none; color: var(--text); }
.mode-portal .card-h h2 svg { color: var(--gold); }
.mode-portal .card-b { padding: 1rem 1.1rem; line-height: 1.5; }
.mode-portal .hello { border-radius: var(--r-lg); border: 1px solid var(--line-2);
    background: linear-gradient(110deg, rgba(46, 196, 166, 0.16), rgba(116, 180, 242, 0.08) 55%, transparent), var(--panel); padding: 1.2rem 1.3rem; }
.mode-portal .hello-k { color: var(--gold-2); font: 600 0.78rem var(--font); letter-spacing: 0.08em; text-transform: uppercase; }
.mode-portal .hello-name { font: 700 1.9rem/1.15 var(--font); text-transform: none; }

/* buttons + chips */
.mode-portal .btn { border-radius: 999px; font-family: var(--font); text-transform: none; letter-spacing: 0.01em; }
.mode-portal .btn.gold { background: var(--gold); color: var(--gold-ink); border: 0; }
.mode-portal .btn.gold:hover { background: var(--gold-2); }
.mode-portal .btn.ghost { border: 1px solid var(--line-2); background: transparent; color: var(--text); }
.mode-portal .chip { border-radius: 999px; font-family: var(--font); text-transform: none; }
.mode-portal .alert { border-radius: var(--r); }
.mode-portal .input, .mode-portal .select { border-radius: var(--r-sm); background: var(--raised); border-color: var(--line-2); font-family: var(--font); }
.mode-portal .input:focus, .mode-portal .select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

/* tables: lighter lines, normal text instead of terminal mono */
.mode-portal .table th { font: 600 0.74rem var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.mode-portal .table td { font-family: var(--font); }
.mode-portal .mono { font-family: Consolas, 'Lucida Console', monospace; }

/* tabs across the top */
.mode-portal .tabs .tab, .mode-portal .mod-tabs button { border-radius: 999px; font-family: var(--font); text-transform: none; }
.mode-portal .tabs .tab.on, .mode-portal .mod-tabs button.on { background: var(--gold-soft-2); color: var(--text); box-shadow: none; }
