/* ============================================================================
   ALERT SYSTEM — design system
   Dark operations console. One palette, one set of surfaces, three contexts:
   portals (sidebar + content), 16:9 TV stages, and print (reports).
   ========================================================================== */
:root {
  --bg: #070b14;
  --bg-grad-a: #0b1428;
  --bg-grad-b: #0a0f1d;
  --panel: #101a2e;
  --panel-2: #152138;
  --panel-3: #1a2742;
  --line: #22304e;
  --line-soft: #1a2540;
  --ink: #eaf1ff;
  --ink-2: #c3d0e6;
  --muted: #8296b5;
  --accent: #4f8cff;
  --accent-2: #7aa8ff;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 640px at 12% -8%, rgba(79, 140, 255, 0.16), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(167, 139, 250, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-grad-a), var(--bg-grad-b) 45%, var(--bg));
  background-attachment: fixed;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.22; letter-spacing: -0.012em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 750; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
strong { color: #fff; }

/* ---------------- layout ---------------- */
.app { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar {
  width: 264px; flex: 0 0 264px; background: rgba(9, 15, 29, 0.92);
  border-right: 1px solid var(--line); padding: 18px 14px 26px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 16px; z-index: 40;
}
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 24px 28px 56px; max-width: 1600px; width: 100%; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 12px 22px; background: rgba(8, 13, 25, 0.86); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.topbar__title { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.topbar__spacer { flex: 1 1 auto; }
.topbar__clock { font-family: var(--mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.topbar__clock b { color: #fff; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 600;
}
.icon-btn:hover { background: var(--panel-2); text-decoration: none; }
.icon-btn.dot { position: relative; }
.icon-btn .count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------------- brand ---------------- */
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
/* ---------------- brand plate: the HUB artwork on white ---------------- */
.brandplate {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: 6px 10px;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(11, 42, 91, .06);
  max-width: 100%; min-width: 0;
}
.brandplate--bare { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.brandplate .hub-lockup { display: block; height: var(--plate-h, 40px); width: auto; max-width: 100%; }
.brandplate__img {
  display: block; width: 100%; height: auto; max-height: var(--plate-h, 40px);
  object-fit: contain; object-position: center;
}
.brandplate.has-upload { min-height: calc(var(--plate-h, 40px) + 12px); }
.brand--plate { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
.brand--plate .brandplate { width: 100%; padding: 10px 12px; min-height: 74px; }
.brand--plate .brandplate .hub-lockup { height: 46px; }
.brand--plate .brandplate__img { max-height: 54px; }
.brand__app { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; color: #fff; }
.brand__org { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }

/* ---------------- powered-by footer ---------------- */
.appfoot {
  margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.appfoot__meta { font-size: 11px; color: var(--muted); }
.appfoot__spacer { flex: 1 1 auto; }
.powered { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.powered__label { font-size: 10.5px; letter-spacing: .10em; text-transform: uppercase; color: #8ea3c2; font-weight: 700; white-space: nowrap; }
.powered__sep { width: 1px; height: 22px; background: var(--line); }
.powered .brandplate { padding: 4px 7px; border-radius: 8px; }
.powered .brandplate .hub-lockup { height: 24px; }
.powered--compact .powered__label { font-size: 9.5px; }
.awslogo { display: inline-flex; align-items: center; }
.awslogo--slot { color: #8ea3c2; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
  background: linear-gradient(145deg, var(--accent), #7c5cff);
  display: grid; place-items: center; font-weight: 900; font-size: 17px; color: #fff;
  box-shadow: 0 10px 24px -12px rgba(79, 140, 255, 0.9);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.brand__text { min-width: 0; }
.brand__name { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.brand__org { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- nav ---------------- */
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav__section { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #61748f; padding: 14px 10px 5px; font-weight: 700; }
.nav__link {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.nav__link:hover { background: var(--panel); color: #fff; text-decoration: none; }
.nav__link.is-active { background: linear-gradient(90deg, rgba(79, 140, 255, .22), rgba(79, 140, 255, .05)); border-color: rgba(79, 140, 255, .38); color: #fff; }
.nav__icon { width: 18px; text-align: center; font-size: 13px; opacity: .9; }
.nav__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__foot { margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.sidebar__who { font-size: 12px; color: var(--muted); line-height: 1.45; }
.sidebar__who b { color: #fff; display: block; font-size: 13px; }

/* ---------------- cards & grids ---------------- */
.card {
  background: linear-gradient(180deg, rgba(21, 33, 56, 0.9), rgba(16, 26, 46, 0.92));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); min-width: 0;
}
.card.pad-lg { padding: 26px; }
.card.flush { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card__head h2, .card__head h3 { margin: 0; }
.card__head .spacer { flex: 1 1 auto; }
.grid { display: grid; gap: 18px; min-width: 0; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.split { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.grid.split-wide { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.row.gap-sm { gap: 8px; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.top { align-items: flex-start; }
.spacer { flex: 1 1 auto; }

/* ---------------- page header ---------------- */
.page-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; }
.page-head__text { min-width: 0; flex: 1 1 320px; }
.eyebrow { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); font-weight: 800; margin-bottom: 6px; }
.lede { color: var(--muted); font-size: 13px; max-width: 78ch; margin: 0; }
.section-gap { margin-top: 30px; }

/* ---------------- KPI ---------------- */
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.kpi__label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.kpi__value { font-size: 26px; font-weight: 800; line-height: 1.2; margin-top: 6px; letter-spacing: -.02em; }
.kpi__hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.kpi.tone-red .kpi__value { color: #fca5a5; }
.kpi.tone-amber .kpi__value { color: #fcd34d; }
.kpi.tone-green .kpi__value { color: #86efac; }
.kpi.tone-blue .kpi__value { color: #93c5fd; }
.kpi.tone-violet .kpi__value { color: #c4b5fd; }

/* ---------------- chips / badges ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap;
}
.sev-P0 { background: rgba(239, 68, 68, .16); color: #fca5a5; border-color: rgba(239, 68, 68, .45); }
.sev-P1 { background: rgba(245, 158, 11, .16); color: #fcd34d; border-color: rgba(245, 158, 11, .45); }
.sev-P2 { background: rgba(59, 130, 246, .16); color: #93c5fd; border-color: rgba(59, 130, 246, .45); }
.sev-P3 { background: rgba(148, 163, 184, .16); color: #cbd5e1; border-color: rgba(148, 163, 184, .4); }
.chip.green { background: rgba(34, 197, 94, .14); color: #86efac; border-color: rgba(34, 197, 94, .4); }
.chip.amber { background: rgba(245, 158, 11, .14); color: #fcd34d; border-color: rgba(245, 158, 11, .4); }
.chip.red { background: rgba(239, 68, 68, .14); color: #fca5a5; border-color: rgba(239, 68, 68, .4); }
.chip.blue { background: rgba(59, 130, 246, .14); color: #93c5fd; border-color: rgba(59, 130, 246, .4); }
.chip.violet { background: rgba(167, 139, 250, .16); color: #c4b5fd; border-color: rgba(167, 139, 250, .4); }
.chip.grey { background: rgba(148, 163, 184, .12); color: #cbd5e1; border-color: rgba(148, 163, 184, .3); }
.chip.outline { background: transparent; border-color: var(--line); color: var(--ink-2); }
.tag-sim { background: rgba(167, 139, 250, .14); color: #d8ccff; border: 1px dashed rgba(167, 139, 250, .55); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.right { text-align: right; }
.center { text-align: center; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent;
  background: linear-gradient(180deg, #5b95ff, #3f7ff0); color: #fff; font-weight: 700; font-size: 13px;
  cursor: pointer; text-decoration: none; transition: filter .15s ease, transform .05s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.danger { background: linear-gradient(180deg, #ef4444, #dc2626); }
.btn.ok { background: linear-gradient(180deg, #22c55e, #16a34a); }
.btn.warn { background: linear-gradient(180deg, #f59e0b, #d97706); color: #1a1205; }
.btn.sm { min-height: 31px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }
.link-btn { background: none; border: none; color: var(--accent-2); cursor: pointer; padding: 0; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

/* ---------------- forms ---------------- */
.form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 12px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.field .req { color: #fca5a5; font-style: normal; }
.field .hint { font-size: 11px; color: var(--muted); line-height: 1.5; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"],
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="url"], input[type="tel"], select, textarea {
  width: 100%; background: #0c1526; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; font-size: 13px; color: var(--ink); min-height: 38px; outline: none;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 140, 255, .18); }
input::placeholder, textarea::placeholder { color: #5d7090; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7f93b3 50%), linear-gradient(135deg, #7f93b3 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 16px; accent-color: var(--accent); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 180px; }
.form-note { font-size: 12px; color: var(--muted); background: rgba(79, 140, 255, .07); border: 1px solid rgba(79, 140, 255, .22); border-radius: 9px; padding: 10px 12px; line-height: 1.55; }
.form-note.warn { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); color: #f3d9a4; }
.form-note.danger { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .3); color: #f8c8c8; }
.file-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input[type="file"] { font-size: 12px; color: var(--ink-2); }
input[type="file"]::file-selector-button {
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 11px; margin-right: 10px; cursor: pointer; font-weight: 600; font-size: 12px;
}

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; min-width: 0; border-radius: 12px; border: 1px solid var(--line-soft); }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 680px; }
table.data th {
  text-align: left; padding: 10px 12px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: #0d1728; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(79, 140, 255, .045); }
table.data td b, table.data td strong { color: #fff; }
table.data.compact td, table.data.compact th { padding: 7px 10px; }
table.kv { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.kv th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 12px 6px 0; width: 44%; vertical-align: top; }
table.kv td { padding: 6px 0; color: var(--ink-2); vertical-align: top; }

/* ---------------- ticket list rows ---------------- */
.ticket {
  display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 13px 15px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel);
  text-decoration: none; color: inherit; min-width: 0;
}
.ticket:hover { border-color: rgba(79, 140, 255, .5); background: var(--panel-2); text-decoration: none; }
.ticket__rail { width: 6px; border-radius: 3px; align-self: stretch; background: var(--muted); }
.ticket__rail.sev-P0 { background: var(--red); }
.ticket__rail.sev-P1 { background: var(--amber); }
.ticket__rail.sev-P2 { background: var(--blue); }
.ticket__rail.sev-P3 { background: #94a3b8; }
.ticket__main { min-width: 0; }
.ticket__title { font-weight: 700; color: #fff; font-size: 13.5px; margin: 2px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket__meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.ticket__meta b { color: var(--ink-2); font-weight: 600; }
.ticket__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.ticket--done { opacity: .95; }
.ticket--row { display: block; }

/* ---------------- timeline ---------------- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 118px 14px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 124px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline__time { font-size: 11px; color: var(--muted); font-family: var(--mono); padding-top: 2px; }
.timeline__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 5px; z-index: 1; box-shadow: 0 0 0 3px rgba(79, 140, 255, .18); }
.timeline__body { min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.timeline__body b { color: #fff; }
.timeline li.tone-red .timeline__dot { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.timeline li.tone-green .timeline__dot { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.timeline li.tone-amber .timeline__dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }

/* ---------------- messages ---------------- */
.msg { border: 1px solid var(--line-soft); border-radius: 11px; padding: 11px 13px; background: var(--panel); }
.msg.internal { border-style: dashed; border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .05); }
.msg__head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.msg__author { font-weight: 700; color: #fff; font-size: 12.5px; }
.msg__time { font-size: 11px; color: var(--muted); }
.msg__body { font-size: 13px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.6; }

/* ---------------- misc components ---------------- */
.empty-state { text-align: center; padding: 40px 24px; }
.empty-state h1 { font-size: 20px; }
.empty-icon { font-size: 34px; margin-bottom: 8px; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; font-size: 13px; border: 1px solid var(--line); background: var(--panel); }
.banner.ok { border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .08); color: #bbf7d0; }
.banner.error { border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .08); color: #fecaca; }
.banner.warn { border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .08); color: #fde68a; }
.banner.info { border-color: rgba(79, 140, 255, .35); background: rgba(79, 140, 255, .08); color: #d6e4ff; }
.divider { height: 1px; background: var(--line-soft); margin: 18px 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(145deg, #35507f, #22304e); display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: #dbe6ff; flex: 0 0 30px; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.stat-line:last-child { border-bottom: none; }
.stat-line span:first-child { color: var(--muted); }
.stat-line span:last-child { color: #fff; font-weight: 700; }
.bar { height: 8px; border-radius: 4px; background: #1b2740; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #8b5cf6); }
.progress-row { display: grid; grid-template-columns: 1fr 44px; gap: 10px; align-items: center; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.tabs a { padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); border: 1px solid transparent; }
.tabs a.is-active { background: var(--panel-2); border-color: var(--line); color: #fff; }
.tabs a:hover { color: #fff; text-decoration: none; }
details.disclosure { border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
details.disclosure > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 13px; color: #fff; list-style: none; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before { content: "▸ "; color: var(--accent-2); }
details.disclosure[open] > summary::before { content: "▾ "; }
details.disclosure > .disclosure__body { padding: 0 14px 14px; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: var(--mono); font-size: 12px; }
.help-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.help-list li { margin-bottom: 4px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 5px; }

/* ---------------- login ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.auth__art {
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background:
    radial-gradient(700px 420px at 20% 10%, rgba(79, 140, 255, .25), transparent 60%),
    radial-gradient(600px 380px at 90% 90%, rgba(167, 139, 250, .18), transparent 60%),
    #0a1122;
  border-right: 1px solid var(--line);
}
.auth__art h1 { font-size: 38px; line-height: 1.1; max-width: 20ch; }
.auth__art p { color: var(--muted); max-width: 52ch; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .field > label { flex-direction: row; }
.auth__brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.auth__brand .brandplate { padding: 12px 16px; border-radius: 14px; }
.auth__brand .brandplate .hub-lockup { height: 62px; }
.auth__brand .brandplate { min-width: 240px; }
.auth__brand .brandplate__img { max-height: 74px; }
.auth__brandmeta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.auth__product { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.auth__org { font-size: 12px; color: var(--muted); }
.auth__artfoot { display: flex; flex-direction: column; gap: 14px; }
.auth__artfoot .powered { margin-left: 0; }
.auth-card__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.auth-card__brand .brandplate { padding: 7px 10px; }
.auth-card__brand .brandplate .hub-lockup { height: 32px; }
.auth-card__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.auth__features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.auth__feature { border: 1px solid rgba(255, 255, 255, .07); background: rgba(16, 26, 46, .5); border-radius: 11px; padding: 12px 14px; font-size: 12px; color: var(--ink-2); }
.auth__feature b { display: block; color: #fff; margin-bottom: 3px; font-size: 12.5px; }
.demo-box { border: 1px dashed rgba(79, 140, 255, .4); background: rgba(79, 140, 255, .06); border-radius: 10px; padding: 11px 13px; font-size: 11.5px; color: var(--ink-2); }
.demo-box code { color: #fff; background: rgba(0, 0, 0, .3); padding: 1px 5px; border-radius: 4px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin-top: 8px; }
.demo-grid button { text-align: left; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: 10.5px; color: var(--ink-2); cursor: pointer; }
.demo-grid button:hover { border-color: var(--accent); color: #fff; }
.demo-grid b { display: block; font-size: 11px; color: #fff; }

/* ---------------- notification banner strip (Call Center) ---------------- */
.notifstrip { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.notifbanner {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px 12px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 33, 56, .95), rgba(16, 26, 46, .95));
  border-left-width: 4px; box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .9);
  animation: notifIn .28s ease-out;
}
@keyframes notifIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.notifbanner--info { border-left-color: var(--blue); background: linear-gradient(90deg, rgba(59,130,246,.14), rgba(16,26,46,.95) 45%); }
.notifbanner--success { border-left-color: var(--green); background: linear-gradient(90deg, rgba(34,197,94,.14), rgba(16,26,46,.95) 45%); }
.notifbanner--warn { border-left-color: var(--amber); background: linear-gradient(90deg, rgba(245,158,11,.16), rgba(16,26,46,.95) 45%); }
.notifbanner--critical { border-left-color: var(--red); background: linear-gradient(90deg, rgba(239,68,68,.17), rgba(16,26,46,.95) 45%); }
.notifbanner__icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #cfe0ff; }
.notifbanner--critical .notifbanner__icon { color: #ffc9c9; background: rgba(239,68,68,.16); }
.notifbanner--warn .notifbanner__icon { color: #ffe1a8; background: rgba(245,158,11,.16); }
.notifbanner--success .notifbanner__icon { color: #bbf7d0; background: rgba(34,197,94,.16); }
.notifbanner__body { min-width: 0; flex: 1 1 auto; }
.notifbanner__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 3px; }
.notifbanner__title { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.notifbanner__meta { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-left: auto; }
.notifbanner__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.notifbanner__until { color: #a9bfdc; }
/* Medium body type — the requirement asks for a medium font size, not display type. */
.notifbanner__text { font-size: 15px; line-height: 1.55; color: var(--ink-2); font-weight: 450; }
.notifbanner__close { flex: 0 0 auto; }
.notifbanner__close .icon-btn { min-height: 28px; padding: 0 8px; font-size: 12px; }
.banner-row { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; background: var(--panel); }
.banner-row__title { font-size: 13px; font-weight: 700; color: #fff; margin-top: 4px; }
.banner-row__text { font-size: 12.5px; color: var(--ink-2); margin: 2px 0 4px; }

/* ---------------- notifications ---------------- */
.notif-panel {
  position: absolute; right: 18px; top: 58px; width: 360px; max-width: calc(100vw - 32px); z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.notif-panel[hidden] { display: none !important; }
.notif-panel__head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; }
.notif-panel__list { max-height: 380px; overflow-y: auto; }
.notif-item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); font-size: 12.5px; }
.notif-item:hover { background: var(--panel-2); text-decoration: none; }
.notif-item b { color: #fff; display: block; margin-bottom: 2px; font-size: 12.5px; }
.notif-item .when { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.topbar__wrap { position: relative; }

/* ---------------- live dot ---------------- */
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #86efac; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); animation: pulse 2s infinite; }
.live-dot.is-down { color: #fca5a5; }
.live-dot.is-down i { box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ============================================================================
   16:9 TV STAGE
   ========================================================================== */
.tv-body { background: #04070e; }
.tv-fit { min-height: 100vh; display: grid; place-items: center; padding: 0; background: #04070e; }
.tv-stage {
  position: relative; width: min(100vw, 177.7778vh); height: min(56.25vw, 100vh);
  aspect-ratio: 16 / 9; overflow: hidden; display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(79, 140, 255, .16), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(167, 139, 250, .1), transparent 60%),
    #05080f;
  color: var(--ink);
}
.tv-stage.is-alert { background: radial-gradient(1100px 700px at 50% -10%, rgba(239, 68, 68, .22), transparent 62%), #06070d; }
.tv-stage.is-normal { background: radial-gradient(1100px 700px at 50% -10%, rgba(34, 197, 94, .16), transparent 62%), #05080f; }
.tv-head { display: flex; align-items: center; gap: 2.2vh; padding: 2.2vh 2.4vw; border-bottom: 1px solid rgba(255, 255, 255, .08); flex: 0 0 auto; }
.tv-brand { display: flex; align-items: center; gap: 1.2vw; min-width: 0; }
.tv-brand__mark {
  width: 5.2vh; height: 5.2vh; border-radius: 1.3vh; background: linear-gradient(145deg, #4f8cff, #7c5cff);
  display: grid; place-items: center; font-weight: 900; font-size: 2.4vh; color: #fff; flex: 0 0 auto;
}
.tv-brand__mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 1.3vh; }
.tv-brand__name { font-size: 1.5vh; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #9fb4d8; }
.tv-brand__title { font-size: 2.5vh; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.tv-head__spacer { flex: 1 1 auto; }
.tv-live { display: inline-flex; align-items: center; gap: .9vh; font-size: 1.5vh; font-weight: 900; letter-spacing: .16em; color: #86efac; }
.tv-live i { width: 1.2vh; height: 1.2vh; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.tv-clock { font-family: var(--mono); font-size: 4.4vh; font-weight: 700; line-height: 1; color: #fff; letter-spacing: -.02em; }
.tv-clock small { display: block; font-size: 1.4vh; letter-spacing: .14em; color: #93a9c9; font-weight: 700; margin-top: .5vh; text-align: right; }
.tv-actions { display: flex; align-items: center; gap: .8vw; }
.tv-btn {
  display: inline-flex; align-items: center; gap: .8vh; padding: 1.1vh 1.6vh; border-radius: 1vh;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff;
  font-size: 1.5vh; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.tv-btn:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.tv-btn.is-on { background: rgba(34, 197, 94, .22); border-color: rgba(34, 197, 94, .55); color: #bbf7d0; }
.tv-btn.primary { background: linear-gradient(180deg, #22c55e, #16a34a); border-color: transparent; color: #04220f; }
.tv-btn.primary:hover { filter: brightness(1.06); }

.tv-banner { display: flex; align-items: center; gap: 2vh; padding: 1.6vh 2.4vw; flex: 0 0 auto; }
.tv-banner__state {
  display: flex; align-items: center; gap: 1.4vh; padding: 1.3vh 2.2vh; border-radius: 1.2vh;
  font-size: 3.5vh; font-weight: 900; letter-spacing: .02em; line-height: 1; border: 2px solid transparent;
}
.tv-banner__state .dot { width: 1.8vh; height: 1.8vh; border-radius: 50%; background: currentColor; }
.tv-banner__state.is-normal { color: #4ade80; background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .45); }
.tv-banner__state.is-alert { color: #ff6b6b; background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .5); }
.tv-banner__state.is-warn { color: #fbbf24; background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .45); }
.tv-banner__sub { font-size: 1.6vh; color: #a8bcda; line-height: 1.35; max-width: 44vw; }
.tv-counters { display: flex; gap: 1.1vw; margin-left: auto; }
.tv-counter { min-width: 8.6vh; padding: .9vh 1.2vh; border-radius: 1vh; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); text-align: center; }
.tv-counter b { display: block; font-size: 2.6vh; font-weight: 900; line-height: 1.1; color: #fff; }
.tv-counter span { font-size: 1.1vh; text-transform: uppercase; letter-spacing: .1em; color: #93a9c9; font-weight: 700; }
.tv-counter.tone-red b { color: #fca5a5; }
.tv-counter.tone-amber b { color: #fcd34d; }
.tv-counter.tone-blue b { color: #93c5fd; }
.tv-counter.tone-green b { color: #86efac; }

.tv-pinned { margin: 0 2.4vw 1vh; display: flex; gap: 1vh; flex-wrap: wrap; flex: 0 0 auto; }
.tv-pin {
  display: flex; align-items: center; gap: 1.2vh; padding: 1.1vh 1.5vh; border-radius: 1vh;
  border: 2px solid rgba(239, 68, 68, .6); background: rgba(239, 68, 68, .12); color: #ffdada;
  font-size: 1.5vh; font-weight: 700; animation: pinpulse 2.4s infinite;
}
.tv-pin b { color: #fff; }
.tv-pin .tv-ack { margin-left: .6vw; }
@keyframes pinpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .35); } 50% { box-shadow: 0 0 0 1vh rgba(239, 68, 68, 0); } }

.tv-grid { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vh 1.6vw; padding: 0 2.4vw 1.6vh; min-height: 0; }
.tv-section-label {
  position: absolute; transform: translateY(-100%); font-size: 1.2vh; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: #7f95b7; padding-bottom: .4vh;
}
.tv-col { display: flex; flex-direction: column; gap: 1.2vh; min-height: 0; position: relative; }
.tv-col__head { display: flex; align-items: center; gap: 1vh; font-size: 1.3vh; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8ba3c6; }
.tv-col__head .count { color: #fff; background: rgba(255, 255, 255, .1); padding: .2vh .8vh; border-radius: .6vh; font-size: 1.2vh; }
.tv-cards { display: grid; grid-template-rows: minmax(0, 1fr); gap: 1.2vh; flex: 1 1 auto; min-height: 0; }
.tv-page { display: none; grid-template-rows: 1fr 1fr; gap: 1.2vh; height: 100%; min-height: 0; }
.tv-page.is-active { display: grid; }
.tv-page[data-count="1"] { grid-template-rows: minmax(0, 1fr); }
.tv-page[data-count="3"] { grid-template-rows: repeat(3, minmax(0, 1fr)); }
.tv-card {
  position: relative; border-radius: 1.2vh; border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(160deg, rgba(23, 36, 60, .95), rgba(12, 19, 34, .96));
  padding: 1.5vh 1.6vh; display: flex; flex-direction: column; gap: .8vh; min-height: 0; overflow: hidden;
}
.tv-card--empty { display: grid; place-items: center; color: #59718f; font-size: 1.5vh; border-style: dashed; }
.tv-card__top { display: flex; align-items: center; gap: 1vh; flex-wrap: nowrap; }
.tv-card__code { font-family: var(--mono); font-size: 1.4vh; font-weight: 800; color: #cfe0ff; letter-spacing: .02em; }
.tv-card__sev { font-size: 1.1vh; font-weight: 900; letter-spacing: .08em; padding: .35vh .8vh; border-radius: .6vh; text-transform: uppercase; }
.tv-card__sev.sev-P0 { background: rgba(239, 68, 68, .25); color: #ffc9c9; border: 1px solid rgba(239, 68, 68, .6); }
.tv-card__sev.sev-P1 { background: rgba(245, 158, 11, .22); color: #ffe1a8; border: 1px solid rgba(245, 158, 11, .55); }
.tv-card__sev.sev-P2 { background: rgba(59, 130, 246, .22); color: #c7dcff; border: 1px solid rgba(59, 130, 246, .55); }
.tv-card__sev.sev-P3 { background: rgba(148, 163, 184, .2); color: #e2e8f0; border: 1px solid rgba(148, 163, 184, .45); }
.tv-card__status { font-size: 1.15vh; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9db3d1; margin-left: auto; }
.tv-card__title { font-size: 1.85vh; font-weight: 800; color: #fff; line-height: 1.24; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-card__system { font-size: 1.35vh; color: #a9bfdc; display: flex; align-items: center; gap: .8vh; }
.tv-card__system b { color: #e8f1ff; font-weight: 700; }
.tv-card__meta { display: flex; gap: 1.6vh; flex-wrap: wrap; font-size: 1.25vh; color: #93a9c9; margin-top: auto; }
.tv-card__meta b { color: #eaf2ff; font-weight: 700; }
.tv-card__foot { display: flex; align-items: center; gap: 1vh; justify-content: space-between; margin-top: auto; }
.tv-card__owner { font-size: 1.25vh; color: #a9bfdc; display: flex; align-items: center; gap: .7vh; min-width: 0; }
.tv-card__owner .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-card__eta { font-size: 1.25vh; color: #9db3d1; }
.tv-card__eta b { color: #ffe08a; }
.tv-card__eta.late b { color: #ff9d9d; }
.tv-card.is-p0 { border-color: rgba(239, 68, 68, .55); }
.tv-card.is-breached { border-color: rgba(239, 68, 68, .5); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .18); }
.tv-card.is-unacked { animation: blinkCard 2.4s infinite; }
@keyframes blinkCard { 0%, 100% { border-color: rgba(239, 68, 68, .55); } 50% { border-color: rgba(239, 68, 68, .95); background: linear-gradient(160deg, rgba(52, 20, 26, .95), rgba(16, 19, 32, .96)); } }
.tv-card__outcome { font-size: 1.3vh; color: #c3d6ef; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-card.is-deferred { border-color: rgba(167, 139, 250, .55); background: linear-gradient(160deg, rgba(38, 30, 66, .95), rgba(14, 17, 34, .96)); }
.tv-card__defer { display: inline-flex; align-items: center; gap: .6vh; font-size: 1.1vh; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #d5c4ff; }
.tv-card__fixdue { font-size: 1.2vh; color: #b9a8e8; }
.tv-ack { display: inline-flex; align-items: center; gap: .5vh; padding: .7vh 1.2vh; border-radius: .8vh; border: 1px solid rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .16); color: #bbf7d0; font-size: 1.2vh; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.tv-ack:hover { background: rgba(34, 197, 94, .3); }
.tv-ack[disabled] { opacity: .55; cursor: default; }
.tv-foot { display: flex; align-items: center; gap: 1.4vw; padding: 1.1vh 2.4vw; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 1.2vh; color: #7f95b7; flex: 0 0 auto; }
.tv-foot__page { margin-left: auto; display: flex; gap: .5vh; align-items: center; }
.tv-foot__extra { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42vw; }
.tv-foot__powered { display: inline-flex; align-items: center; padding-left: 1.2vw; }
.tv-foot__powered .powered { margin-left: 0; gap: .8vh; }
.tv-foot__powered .powered__label { font-size: .95vh; letter-spacing: .1em; }
.tv-foot__powered .powered__sep { height: 1.8vh; background: rgba(255,255,255,.18); }
.tv-foot__powered .brandplate { padding: .45vh .7vh; border-radius: .7vh; }
.tv-foot__powered .brandplate .hub-lockup { height: 2.3vh; }
.tv-foot__powered .awslogo svg { height: 2.1vh; width: auto; }
.tv-foot__page i { width: .9vh; height: .9vh; border-radius: 50%; background: rgba(255, 255, 255, .22); display: inline-block; }
.tv-foot__page i.on { background: #7aa8ff; }
.tv-sound-prompt {
  position: absolute; inset: auto 0 0 0; z-index: 20; background: rgba(4, 7, 14, .94); border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.4vh 2.4vw; display: flex; align-items: center; gap: 1.4vw; font-size: 1.5vh; color: #dbe7f9;
}
.tv-sound-prompt[hidden] { display: none !important; }
.tv-sound-prompt .tv-btn { font-size: 1.5vh; }

/* ---------------- responsive ---------------- */
@media (max-width: 1280px) {
  .grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .grid.split, .grid.split-wide { grid-template-columns: minmax(0, 1fr); }
  .content { padding: 20px 20px 48px; }
}
@media (max-width: 1040px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-102%); transition: transform .2s ease;
    width: 280px; flex-basis: 280px;
  }
  .sidebar.is-open { transform: none; box-shadow: var(--shadow); }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(2, 5, 12, .6); z-index: 35; }
  .sidebar-backdrop[hidden] { display: none !important; }
  .menu-toggle { display: inline-flex !important; }
}
@media (min-width: 1041px) { .menu-toggle { display: none !important; } .sidebar-backdrop { display: none !important; } }
@media (max-width: 980px) {
  .topbar .btn-label { display: none; }
  .topbar .icon-btn { padding: 0 10px; }
  .topbar__title { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-4, .grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid.three, .field-grid.two { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__art { display: none; }
  .timeline li { grid-template-columns: 78px 12px minmax(0, 1fr); }
  .timeline li::before { left: 84px; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar__clock { display: none; }
}
@media (max-width: 860px) {
  .notifbanner__meta { margin-left: 0; }
  .notifbanner__text { font-size: 14px; }
}
@media (max-width: 640px) {
  .notifbanner { padding: 10px 11px; }
  .notifbanner__title { font-size: 14px; }
  .notifbanner__text { font-size: 13.5px; }
  .powered { margin-left: 0; }
  .appfoot { flex-direction: column; align-items: flex-start; }
  .topbar { gap: 6px; padding: 10px 12px; }
  .topbar__title { max-width: 34vw; font-size: 12.5px; }
  .topbar .live-dot { font-size: 0; gap: 0; }
  .topbar .live-dot i { margin: 0; }
  .topbar .icon-btn { min-height: 34px; padding: 0 9px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.cols-5 { grid-template-columns: minmax(0, 1fr); }
  .content { padding: 16px 14px 44px; }
  h1 { font-size: 20px; }
  .card { padding: 14px; }
  .ticket { grid-template-columns: 6px minmax(0, 1fr); }
  .ticket__right { grid-column: 2; align-items: flex-start; text-align: left; }
  .notif-panel { right: 8px; }
  .kpi__value { font-size: 22px; }
}

@media print {
  body { background: #fff; color: #111; }
  .sidebar, .topbar, .no-print { display: none !important; }
  .content { padding: 0; }
  .card { border-color: #d5dbe6; box-shadow: none; background: #fff; color: #111; }
}
