/* OctoVault console v2 — design system
   Palette: brand blue #1f54e8 (Third Octopus), cool neutrals, semantic state colours.
   Type: Sora (display/headings), Public Sans (body/UI), JetBrains Mono (data).
   Theme: light only. */

:root {
  --brand: #1f54e8; --brand-ink: #173fb0; --brand-soft: #e8eefd; --brand-glow: rgba(31,84,232,.18);
  --bg: #f4f6fb; --panel: #ffffff; --panel-2: #f8f9fd; --ink: #0f1729; --ink-2: #3b465f; --muted: #6c778f;
  --line: #e1e6f1; --line-2: #c8d0e2; --focus: #1f54e8;
  --ok: #157a4a; --ok-soft: #e1f4ea; --warn: #a86a00; --warn-soft: #fdf1d8; --bad: #c23a1f; --bad-soft: #fbe6e0; --info: #1f54e8; --info-soft: #e8eefd; --neutral: #7d879f; --neutral-soft: #eef0f5;
  --shadow: 0 1px 2px rgba(15,23,41,.06), 0 6px 20px -10px rgba(15,23,41,.18);
  --r: 8px; --r-lg: 12px;
  --display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-w: 248px; --top-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; grid-template-rows: var(--top-h) 1fr; min-height: 100vh; }
.nav { grid-row: 1 / span 2; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); height: var(--top-h); }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.brand .name { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.1; }
.brand .by { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-group { padding: 12px 10px 4px; }
.nav-group .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; }
.nav a.item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); color: var(--ink-2); font-weight: 500; }
.nav a.item:hover { background: var(--panel-2); text-decoration: none; color: var(--ink); }
.nav a.item.active { background: var(--brand-soft); color: var(--brand-ink); }
.nav a.item svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a.item .count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.nav .foot { margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.nav .foot .who { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-2); }
.nav .foot .who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.top { display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 20; }
.top h1 { font-size: 16px; }
.top .crumb { color: var(--muted); font-size: 13px; }
.top .spacer { flex: 1; }
.top .status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--neutral); }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); } .dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); } .dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.search-box { position: relative; }
.search-box input { width: 320px; max-width: 40vw; height: 34px; padding: 0 12px 0 34px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel-2); }
.search-box svg { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; }
.main { padding: 22px 24px 60px; min-width: 0; }
.page { display: grid; gap: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { color: var(--muted); max-width: 70ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- panels, tables ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel .ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel .ph h2 { font-size: 14px; }
.panel .pb { padding: 16px; }
.panel .pb.tight { padding: 0; }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat { padding: 14px 16px; }
.stat .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel); position: sticky; top: 0; }
table.t td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: none; }
table.t tr.row:hover td { background: var(--panel-2); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t td.trunc { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.t tr.sel td { background: var(--brand-soft); }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--panel-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); }
.btn.danger { color: var(--bad); border-color: var(--bad); background: var(--panel); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.input, select.input, textarea.input { height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); min-width: 0; }
textarea.input { height: auto; padding: 8px 10px; }
.input:focus { border-color: var(--brand); }
.field { display: grid; gap: 5px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.form { display: grid; gap: 14px; }
.form.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1; }

/* ---------- pills, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .03em; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.info { background: var(--info-soft); color: var(--info); } .pill.neutral { background: var(--neutral-soft); color: var(--neutral); }
.role { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-ink); background: var(--brand-soft); padding: 2px 7px; border-radius: 4px; }

/* ---------- misc ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.bar { height: 6px; background: var(--neutral-soft); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.callout { border-left: 3px solid var(--brand); background: var(--brand-soft); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; font-size: 13px; }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); } .callout.bad { border-color: var(--bad); background: var(--bad-soft); }
.split { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 14px; min-height: 420px; }
.list { display: grid; }
.list .li { padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; display: grid; gap: 2px; }
.list .li:hover { background: var(--panel-2); } .list .li.sel { background: var(--brand-soft); }
.list .li .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .li .m { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.crumbs a { cursor: pointer; } .crumbs .sep { color: var(--muted); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 8px; }
.tabs button { background: none; border: none; padding: 10px 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button.active { color: var(--brand-ink); border-bottom-color: var(--brand); }
.toast-host { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r); box-shadow: var(--shadow); font-size: 13px; max-width: 380px; display: flex; gap: 10px; align-items: center; }
.toast.ok { border-left: 3px solid var(--ok); } .toast.bad { border-left: 3px solid var(--bad); } .toast.warn { border-left: 3px solid var(--warn); }
.modal-back { position: fixed; inset: 0; background: rgba(8,12,24,.45); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.modal { background: var(--panel); border-radius: var(--r-lg); width: min(560px, 100%); box-shadow: var(--shadow); border: 1px solid var(--line); }
.modal .mh { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal .mb { padding: 18px; display: grid; gap: 14px; max-height: 70vh; overflow: auto; }
.modal .mf { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.email-body { padding: 16px; overflow: auto; font-size: 13.5px; }
.email-body iframe { width: 100%; min-height: 420px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.qr { background: #fff; padding: 12px; border-radius: var(--r); display: inline-block; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; font-family: var(--mono); font-size: 13px; }
.spark { width: 100%; height: 48px; }
.timeline { display: flex; gap: 3px; align-items: flex-end; height: 40px; }
.timeline i { flex: 1; background: var(--brand-soft); border-radius: 2px 2px 0 0; min-height: 3px; cursor: pointer; }
.timeline i.sel { background: var(--brand); }
@media (max-width: 1080px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(2,1fr); } .split { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .shell { grid-template-columns: 1fr; } .nav { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; width: var(--nav-w); } .nav.open { transform: none; } .top { grid-column: 1; } .grid.c2, .grid.c4, .grid.c3 { grid-template-columns: 1fr; } .form.c2 { grid-template-columns: 1fr; } .search-box input { width: 180px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 20% -10%, var(--brand-soft), transparent 60%), var(--bg); }
.login { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 18px; }
.login .brand { padding: 0; border: none; height: auto; }
.login h1 { font-size: 20px; }
.login .sub { color: var(--muted); font-size: 13px; }
.login .err { color: var(--bad); background: var(--bad-soft); padding: 8px 10px; border-radius: var(--r); font-size: 13px; }
.login .foot { font-size: 12px; color: var(--muted); text-align: center; }
.code-input { font-family: var(--mono); font-size: 22px; letter-spacing: .35em; text-align: center; height: 48px; }

/* Console refinement: clear hierarchy, restrained surfaces and responsive navigation. */
:root { --nav-w: 232px; --top-h: 64px; --r-lg: 10px; --shadow: 0 1px 3px rgba(15,23,41,.045); }
#navlinks { overflow-y: auto; min-height: 0; flex: 1; padding: 8px 0; }
.nav .foot { flex-shrink: 0; }
.nav .item { border-radius: 7px; }
.nav .item.active { box-shadow: inset 3px 0 var(--brand); }
.main { padding: 30px 32px 60px; }
.page { gap: 22px; }
.page-head { align-items: center; }
.page-head h1 { font-size: 25px; letter-spacing: -.035em; margin-bottom: 5px; }
.page-head p { line-height: 1.65; font-size: 13px; }
.panel .ph { padding: 16px 18px; }
.stat { padding: 20px; }
.stat .k { font-family: var(--body); font-size: 12px; text-transform: none; letter-spacing: 0; }
.stat .v { margin: 8px 0 5px; font-size: 29px; }
table.t th { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .04em; background: var(--panel-2); }
table.t td { padding-top: 12px; padding-bottom: 12px; }
.input, select.input { min-height: 38px; }
.btn { min-height: 36px; }
.btn.sm { min-height: 30px; }
.list { align-content: start; }
.list .li { min-width: 0; }
.hint, .object-id { font-size: 12px; color: var(--muted); }
.object-id { font-family: var(--mono); margin-top: 4px; overflow-wrap: anywhere; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 7px; }
.settings-nav { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.settings-nav a { padding: 10px 0 13px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; }
.settings-nav a[aria-current="page"] { color: var(--brand-ink); border-color: var(--brand); }
.settings-nav a:hover { text-decoration: none; color: var(--ink); }
.pager { justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 0; font-size: 12px; color: var(--muted); }
.snapshot { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 45vh; overflow: auto; padding: 14px; background: var(--panel-2); }
summary { cursor: pointer; color: var(--brand-ink); font-weight: 600; }
.kv dd { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 1200px) { .top .status { max-width: 190px; font-size: 11px; } .search-box input { width: 240px; } }
@media (max-width: 820px) { #burger { display: inline-flex !important; } .main { padding: 22px 16px 40px; } .top { gap: 8px; padding: 0 12px; } .top .crumb, .top .status { display: none; } .search-box input { width: 150px; max-width: 30vw; } .page-head h1 { font-size: 22px; } .toolbar .input { max-width: 100%; min-width: 0 !important; } .settings-nav { gap: 18px; } }
.top .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .status { white-space: nowrap; }
#settings-content .table-wrap { max-height: 560px; overflow: auto; }
@media (max-width: 1200px) { .top .crumb { display: none; } .top .status { max-width: 150px; overflow: hidden; text-overflow: ellipsis; } }

@media (max-height: 900px) { .nav-group { padding: 4px 10px 2px; } .nav-group .label { padding: 4px 8px; } .nav a.item { padding: 6px 10px; font-size: 13px; } .nav .foot { padding: 8px 14px; gap: 4px; } }
/* Light-only dashboard and service drill-down. */
:root { color-scheme: light; --bg:#f5f7fa; --panel-2:#f8fafc; --brand:#2456e8; --ink:#172238; --muted:#66758a; --line:#e5eaf0; --top-h:76px; }
.top { gap:18px; }
.header-clock { margin-left:6px; text-align:right; flex-shrink:0; }
#header-date { font-size:12px; color:var(--ink-2); font-weight:600; margin-bottom:5px; }
.header-clock .status { justify-content:flex-end; font-size:11px; }
.main { padding:30px 32px 48px; }
.dashboard-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.dashboard-heading h1 { font-size:29px; letter-spacing:-.04em; margin-bottom:7px; }
.dashboard-heading p,.section-heading p { color:var(--muted); font-size:13px; }
.dashboard-banner { display:flex; align-items:center; gap:14px; border:1px solid #dce6f6; background:#edf3fc; padding:16px 20px; border-radius:10px; }
.banner-symbol { display:grid; place-items:center; width:40px; height:40px; color:#2852a2; background:#fff; border-radius:10px; flex-shrink:0; }
.banner-symbol svg,.service-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.dashboard-banner b { font-size:13px; font-weight:600; }
.dashboard-banner p { font-size:12px; margin-top:3px; color:#586c88; }
.dashboard-banner>a { margin-left:auto; white-space:nowrap; font-size:12px; font-weight:600; }
.dashboard-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:white; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.dashboard-kpis>a { display:grid; gap:8px; padding:20px 24px; color:var(--ink); border-right:1px solid var(--line); }
.dashboard-kpis>a:last-child { border:0; }
.dashboard-kpis>a:hover { background:#f8faff; text-decoration:none; }
.dashboard-kpis span { color:var(--muted); font-size:12px; }
.dashboard-kpis strong { font-size:29px; letter-spacing:-.04em; line-height:1.3; font-family:var(--display); }
.dashboard-kpis strong.word { font-size:18px; letter-spacing:-.02em; padding:7px 0; }
.dashboard-kpis small { font-size:11px; color:var(--muted); }
.dashboard-kpis i { float:right; font-style:normal; color:var(--brand); }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.section-heading h2 { margin-bottom:3px; font-size:17px; }
.section-heading>span { color:var(--muted); font-size:12px; }
.service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.service-card { display:block; background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; color:var(--ink); transition:box-shadow .15s,border-color .15s; }
.service-card:hover { text-decoration:none; border-color:#aabfee; box-shadow:0 5px 18px rgba(35,65,110,.07); }
.service-card-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:13px; }
.service-icon { display:inline-grid; place-items:center; width:40px; height:40px; border-radius:10px; flex-shrink:0; }
.service-icon.teal { background:#e7f5f2;color:#167a69; }.service-icon.blue { background:#eaf2ff;color:#2674cb; }.service-icon.indigo {background:#edf0ff;color:#425dcc;}.service-icon.purple {background:#f1edfc;color:#7356b4;}.service-icon.sky {background:#e7f5fc;color:#1f7faa;}.service-icon.slate {background:#eef2f6;color:#52647c;}
.card-arrow { color:#92a0b4;font-size:20px; }
.service-card h3 {font-size:15px;margin-bottom:10px;}
.service-count {font-size:25px;font-weight:600;letter-spacing:-.025em;}
.service-count>span {font-size:12px;font-weight:400;color:var(--muted);letter-spacing:0;margin-left:3px;}
.service-card>p {color:var(--muted);font-size:11px;margin:5px 0 18px;min-height:17px;}
.service-card-bottom {display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid #edf0f5;padding-top:13px;font-size:11px;color:var(--muted);}
.pill {font-family:var(--body);letter-spacing:0;font-size:10.5px;font-weight:600;}
.dashboard-activity {table-layout:auto;}
.dashboard-activity td:first-child {width:46%;}
.dashboard-activity .when {white-space:nowrap;color:var(--muted);font-size:12px;}
.dashboard-activity td {padding:14px 18px;}
.dashboard-activity td b {font-weight:500;}
.dashboard-shortcuts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.dashboard-shortcuts>a {display:flex;align-items:center;gap:12px;padding:16px;background:white;border:1px solid var(--line);border-radius:10px;color:var(--ink);font-size:12px;}
.dashboard-shortcuts>a>svg {width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:1.7;flex-shrink:0;}
.dashboard-shortcuts span {flex:1;}.dashboard-shortcuts small {display:block;color:var(--muted);font-size:11px;margin-top:3px;}
.back-link {font-size:12px;font-weight:600;}
.service-heading {display:flex;align-items:center;gap:16px;}.service-heading .service-icon {width:52px;height:52px;}
.detail-metrics {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;}
.service-summary {display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted);}.service-summary>a {margin-left:auto;}
@media (max-width:1200px) {.dashboard-kpis>a {padding:18px 16px;}.dashboard-kpis strong {font-size:25px;}.dashboard-kpis strong.word {font-size:15px;}.header-clock .status {display:flex;max-width:none;}.service-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:820px) {.main {padding:22px 16px 40px;}.header-clock {margin-left:auto;}.header-clock .status {display:flex;font-size:10px;}.top .search-box {display:none;}.dashboard-heading {align-items:flex-start;}.dashboard-heading h1 {font-size:24px;}.dashboard-heading>.btn {font-size:11px;}.dashboard-banner {align-items:flex-start;flex-wrap:wrap;}.dashboard-banner>a {margin-left:54px;}.dashboard-kpis {grid-template-columns:repeat(2,minmax(0,1fr));}.dashboard-kpis>a {border-bottom:1px solid var(--line);}.dashboard-shortcuts {grid-template-columns:1fr;}.dashboard-activity {min-width:650px;}.service-summary {flex-wrap:wrap;}}
@media (max-width:520px) {.service-grid {grid-template-columns:1fr;}.dashboard-heading {flex-wrap:wrap;}.service-heading {align-items:flex-start;}.service-count {font-size:25px;}}
/* Semantic color system: blue navigation, teal protection, amber caution, red incidents. */
:root { --brand:#2855d9; --brand-ink:#2344a0; --ink:#172b4d; --ink-2:#344b6b; --muted:#5f7390; --bad:#b42318; --bad-soft:#fef0ed; --warn:#925b00; --warn-soft:#fff4d6; --ok:#126b55; --ok-soft:#e6f5ee; }
.dashboard-heading h1 {color:#17376b;}.eyebrow {color:#526ca0;}.section-heading h2 {color:#244a78;}
.dashboard-kpis>a:nth-child(1) {background:#eaf5ff;}.dashboard-kpis>a:nth-child(1) strong {color:#185b9d;}
.dashboard-kpis>a:nth-child(2) {background:#eef0ff;}.dashboard-kpis>a:nth-child(2) strong {color:#4946a4;}
.dashboard-kpis>a:nth-child(3) {background:#e9f6f1;}.dashboard-kpis>a:nth-child(3) strong {color:#116f58;}
.dashboard-kpis>a:nth-child(4) {background:#f5effc;}.dashboard-kpis>a:nth-child(4) strong {color:#73469b;}
.service-card {border-top:3px solid #c8d5e8;}
.service-card:has(.teal) {background:linear-gradient(135deg,#edf9f5,#fff 65%);border-top-color:#2b987b;}.service-card:has(.teal) h3,.service-card:has(.teal) .service-count {color:#176d58;}
.service-card:has(.blue) {background:linear-gradient(135deg,#eef6ff,#fff 65%);border-top-color:#3983c9;}.service-card:has(.blue) h3,.service-card:has(.blue) .service-count {color:#245e9b;}
.service-card:has(.indigo) {background:linear-gradient(135deg,#f0f1ff,#fff 65%);border-top-color:#6873cb;}.service-card:has(.indigo) h3,.service-card:has(.indigo) .service-count {color:#4a50a0;}
.service-card:has(.purple) {background:linear-gradient(135deg,#f6effc,#fff 65%);border-top-color:#9870c3;}.service-card:has(.purple) h3,.service-card:has(.purple) .service-count {color:#70479a;}
.service-card:has(.sky) {background:linear-gradient(135deg,#ebf8fb,#fff 65%);border-top-color:#3994aa;}.service-card:has(.sky) h3,.service-card:has(.sky) .service-count {color:#246c80;}
.service-card:has(.slate) {background:linear-gradient(135deg,#eef2f8,#fff 65%);border-top-color:#687e9f;}.service-card:has(.slate) h3,.service-card:has(.slate) .service-count {color:#3e577b;}
.deletion-panel {display:flex;gap:16px;align-items:center;padding:19px 22px;border:1px solid;border-left:5px solid;border-radius:11px;background:#fff;}
.deletion-panel.danger {background:#fff1ef;border-color:#f4b6ac;border-left-color:#d43a2f;color:#8f241b;}
.deletion-panel.clear {background:#eef8f3;border-color:#c7e8d7;border-left-color:#288760;color:#205f49;}
.deletion-panel.unavailable {background:#fff8e7;border-color:#ead49f;border-left-color:#bf8b20;color:#765119;}
.deletion-copy {flex:1;}.deletion-copy h2 {font-size:17px;color:inherit;}.deletion-copy p {font-size:12px;margin-top:5px;color:inherit;line-height:1.6;}.deletion-copy .eyebrow {color:inherit;font-size:10px;margin-bottom:5px;}
.deletion-symbol svg {width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;}
.deletion-panel .btn {color:inherit;border-color:currentColor;background:#fff;font-size:12px;}
.deletion-number {display:grid;text-align:center;padding:0 16px;}.deletion-number strong {font-size:32px;line-height:1.2;}.deletion-number span {font-size:11px;}.deletion-total {font-weight:700;color:#b42318;}
@media (max-width:1000px) {.deletion-panel {flex-wrap:wrap;}.deletion-copy {min-width:220px;}.deletion-number {padding-left:44px;}}
/* Lighter typography with visible boundaries and consistent interaction feedback. */
:root {--line:#d3dce8;--line-2:#b7c6d8;--display:"Public Sans","Segoe UI",system-ui,sans-serif;}
h1,h2,h3,h4,.dashboard-kpis strong,.service-count,.stat .v {font-weight:500;}
.dashboard-heading h1 {font-size:26px;letter-spacing:-.025em;}.page-head h1 {font-size:24px;}.dashboard-kpis strong {font-size:26px;}.service-count {font-size:23px;}.nav a.item {font-weight:400;}.deletion-copy h2 {font-weight:500;}.dashboard-banner b {font-weight:500;}
.panel,.service-card,.dashboard-kpis,.dashboard-shortcuts>a {border-color:#cbd6e4;}
.btn,.input,.service-card,.dashboard-shortcuts>a,.settings-nav a,table.t tbody tr {transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease;}
.btn:hover {border-color:#6e91bc;background:#edf4fd;}.btn.primary:hover {background:#2147b4;color:#fff;}
.input:hover,input[type=date]:hover,input[type=datetime-local]:hover {border-color:#608bbd;background:#f4f8fe;box-shadow:0 0 0 2px #e5eef9;}
.input:focus-visible {outline:2px solid #527db7;outline-offset:2px;}
table.t tbody tr:hover>td {background:#f0f5fb;}.service-card:hover,.dashboard-shortcuts>a:hover {border-color:#7598c4;box-shadow:0 3px 12px #284b7512;}
.activity-filter {display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;background:#fff;border:1px solid #cbd6e4;border-radius:10px;padding:16px;}
.activity-filter>div {display:grid;gap:6px;}.activity-filter label {font-size:12px;color:#4f6481;}.activity-filter>span {font-size:11px;color:var(--muted);flex:1;min-width:190px;align-self:center;}.search-options {align-items:flex-end;}.search-options>.hint {flex:1;min-width:210px;}
.activity-filter input {min-width:165px;}.dashboard-kpis>a:hover {box-shadow:inset 0 0 0 1px #8cadd4;}
/* Compact dashboard: quiet surfaces and an on-demand notification center. */
.dashboard-heading {gap:20px;margin-bottom:2px;}
.dashboard-heading h1 {font-size:25px;letter-spacing:-.035em;color:#203957;}
.dashboard-heading p,.section-heading p {font-size:12px;line-height:1.6;}
.dashboard-kpis {gap:12px;background:transparent;border:0;box-shadow:none;overflow:visible;}
.dashboard-kpis>a {border:1px solid #cbd6e4;border-radius:12px;padding:19px 20px;}
.dashboard-kpis>a:last-child {border-right:1px solid #cbd6e4;}
.dashboard-kpis strong {font-size:27px;font-weight:500;margin:10px 0;}
.dashboard-kpis>a:nth-child(1) {background:#f0f7fd;}.dashboard-kpis>a:nth-child(2) {background:#f3f3fd;}.dashboard-kpis>a:nth-child(3) {background:#eef7f3;}.dashboard-kpis>a:nth-child(4) {background:#f7f3fb;}
.service-card {padding:20px 22px;border-radius:12px;box-shadow:0 2px 4px #1c345004;}
.service-card h3 {font-weight:500;}.service-card:hover {transform:translateY(-2px);box-shadow:0 6px 18px #284b7510;}
.service-card {transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.service-card-bottom {padding-top:14px;}.section-heading {margin-top:4px;}
.notification-center {position:relative;z-index:30;}
.notification-bell {position:relative;display:grid;place-items:center;list-style:none;width:42px;height:42px;border:1px solid #c4d0df;border-radius:12px;background:#fff;color:#445d7c;cursor:pointer;transition:background .16s,border-color .16s;}
.notification-bell::-webkit-details-marker {display:none;}
.notification-bell svg {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;}
.notification-bell:hover,.notification-center[open] .notification-bell {background:#edf3fc;border-color:#7896be;color:#2855a5;}
.notification-bell:focus-visible {outline:2px solid #527db7;outline-offset:3px;}
.notification-badge {position:absolute;top:-6px;right:-6px;min-width:19px;height:19px;padding:0 4px;border:2px solid #fff;border-radius:12px;background:#b83d35;color:#fff;font-size:10px;line-height:15px;text-align:center;font-weight:500;}
.notification-popover {position:absolute;right:0;top:52px;width:min(390px,calc(100vw - 40px));background:#fff;border:1px solid #cbd6e4;border-radius:14px;box-shadow:0 12px 36px #1a345223;overflow:hidden;text-align:left;}
.notification-heading {display:flex;justify-content:space-between;align-items:center;padding:17px 18px;border-bottom:1px solid #e0e6ed;}
.notification-heading h2 {font-size:15px;margin:0;}.notification-heading>span {font-size:11px;color:#63748a;}
.notification-items {max-height:360px;overflow:auto;}
.notification-item {display:flex;align-items:flex-start;gap:10px;width:100%;padding:16px 18px;border:0;border-bottom:1px solid #edf0f5;background:#fff;text-align:left;color:#263c59;font:inherit;cursor:pointer;}
.notification-item:hover {background:#f5f8fc;text-decoration:none;}.notification-item>span:nth-child(2) {flex:1;}.notification-item b {display:block;font-size:12px;font-weight:500;}.notification-item small {display:block;font-size:11px;line-height:1.65;color:#62738b;margin-top:4px;}
.notice-dot {width:7px;height:7px;border-radius:50%;margin-top:5px;flex:none;}.notice-dot.warn {background:#be841c;}.notice-dot.danger {background:#c84d43;}
.notification-footer {display:block;padding:14px 18px;background:#f7f9fc;color:#365c99;font-size:12px;}.notification-empty {padding:22px;font-size:12px;line-height:1.6;color:#62738b;}
@media(max-width:600px) {.dashboard-heading .actions {width:100%;justify-content:flex-end;}.notification-popover {right:-110px;}.dashboard-kpis>a {padding:16px;}.dashboard-kpis strong {font-size:23px;}}
@media(prefers-reduced-motion:reduce) {.service-card {transition:none;}.service-card:hover {transform:none;}}
#global-notifications[hidden] {display:none;}
#global-notifications {flex-shrink:0;margin-left:8px;}
.notification-item a {white-space:nowrap;font-size:12px;}
#export-jobs .t td {vertical-align:top;}
#export-jobs .hint {max-width:280px;margin:5px 0;font-size:11px;}
