/* Mazi Studio HQ - a dark control-room board. Brand violet for the frame, cyan for data, and a strict
   traffic-light for state: green working, amber needs a look, red needs someone, grey shut down properly. */

:root {
  --bg: #070a12;
  --bg-grid: rgba(120, 140, 200, .045);
  --panel: #0c1220;
  --panel-2: #101829;
  --panel-3: #152036;
  --line: #1c2840;
  --line-2: #26365a;
  --text: #e3eaf6;
  --muted: #8393ad;
  --dim: #56647e;
  --brand: #8b5cf6;
  --brand-2: #a78bfa;
  --data: #38d5f5;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --off: #64748b;
  --radius: 12px;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(139, 92, 246, .14), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(56, 213, 245, .07), transparent 60%),
    linear-gradient(var(--bg-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.5 var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #c4b5fd; }
.hidden { display: none !important; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }

/* ------------------------------------------------------------------ top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 22px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(7, 10, 18, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { border-radius: 8px; box-shadow: 0 0 18px rgba(139, 92, 246, .45); }
.brand-name { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.brand-name b { color: var(--text); letter-spacing: .14em; }
.live {
  display: inline-flex; align-items: center; gap: 7px; font: 600 11px var(--mono); letter-spacing: .12em;
  color: var(--ok); padding: 4px 9px; border: 1px solid rgba(52, 211, 153, .3); border-radius: 999px;
  background: rgba(52, 211, 153, .07);
}
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2s infinite; }
.live.stale { color: var(--warn); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .07); }
.live.stale i { background: var(--warn); box-shadow: 0 0 8px var(--warn); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); padding: 7px 12px; border-radius: 8px; font-weight: 550; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.on { color: var(--text); background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.badge {
  font: 700 11px var(--mono); background: var(--warn); color: #1a1205; border-radius: 999px; padding: 1px 7px;
}
.offline {
  background: rgba(251, 191, 36, .12); color: var(--warn); border-bottom: 1px solid rgba(251, 191, 36, .3);
  padding: 8px 22px; font-size: 13px;
}

.view { padding: 22px; max-width: 1560px; margin: 0 auto; padding-bottom: max(40px, env(safe-area-inset-bottom)); }

/* ------------------------------------------------------------------ the strip of totals */
.kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.kpi {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px 12px;
}
.kpi::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--kpi, var(--data)); opacity: .85; }
.kpi .k-label { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi .k-value { font: 650 28px/1.15 var(--mono); font-variant-numeric: tabular-nums; margin-top: 6px; color: var(--text); white-space: nowrap; }
.kpi .k-value small { font-size: 15px; color: var(--dim); font-weight: 500; }
.kpi .k-sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.ok { --kpi: var(--ok); }
.kpi.warn { --kpi: var(--warn); }
.kpi.bad { --kpi: var(--bad); }
.kpi.warn .k-value { color: var(--warn); }
.kpi.bad .k-value { color: var(--bad); }

/* ------------------------------------------------------------------ board: cards and alerts */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.section-head h2 { font: 600 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

.card {
  display: block; color: var(--text); position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 12px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--st, var(--off)); box-shadow: 0 0 12px var(--st, transparent); }
.card:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); color: var(--text); }
.card.s-online { --st: var(--ok); }
.card.s-late, .card.s-attn { --st: var(--warn); }
.card.s-silent { --st: var(--bad); }
.card.s-shutdown, .card.s-new { --st: var(--off); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.code {
  font: 700 11.5px var(--mono); letter-spacing: .08em; color: var(--data); background: rgba(56, 213, 245, .08);
  border: 1px solid rgba(56, 213, 245, .25); border-radius: 6px; padding: 2px 7px; display: inline-block;
}
.card h3 { font-size: 16.5px; margin-top: 7px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.pill.ok { color: var(--ok); background: rgba(52, 211, 153, .08); }
.pill.warn { color: var(--warn); background: rgba(251, 191, 36, .08); }
.pill.bad { color: var(--bad); background: rgba(248, 113, 113, .09); }
.pill.off { color: var(--off); background: rgba(100, 116, 139, .1); }
.pill.off i { box-shadow: none; }
.pill.info { color: var(--data); background: rgba(56, 213, 245, .08); }

.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 12px; }
.mini { background: rgba(255, 255, 255, .02); border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; }
.mini .m-label { font: 600 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mini .m-value { font: 650 17px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.mini .m-value small { color: var(--dim); font-size: 12px; font-weight: 500; }
.mini.ok .m-value { color: var(--ok); }
.mini.warn .m-value { color: var(--warn); }
.mini.bad .m-value { color: var(--bad); }
.mini.none .m-value { color: var(--dim); }

.media { margin: 2px 0 12px; }
.media-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.media-row b { font: 650 14px var(--mono); color: var(--text); }
.media-row.low b { color: var(--warn); }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--data), #7dd3fc); }
.bar.low > i { background: linear-gradient(90deg, var(--warn), #fde68a); }
.bar.out > i { background: var(--bad); }

.today { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.today b { font: 650 14px var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.card-foot .alerts-n { color: var(--bad); font-weight: 650; }

/* the live alerts list */
.feed {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); position: sticky; top: 76px; max-height: calc(100vh - 100px); display: flex; flex-direction: column;
}
.feed-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.feed-head h2 { font: 600 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.feed-list { overflow: auto; padding: 6px 0; }
.alert {
  display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 10px 16px; color: var(--text);
  border-left: 2px solid transparent;
}
.alert:hover { background: rgba(255, 255, 255, .025); color: var(--text); }
.alert .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.alert.k-media .dot, .alert.k-stock .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.alert.ended .dot { background: var(--off); box-shadow: none; }
.alert.ended { color: var(--muted); }
.alert .a-title { font-weight: 600; font-size: 13.5px; }
.alert.ended .a-title { font-weight: 500; text-decoration: none; }
.alert .a-meta { font: 11.5px var(--mono); color: var(--muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 22px 16px; text-align: center; font-size: 13px; }
.empty.big { padding: 50px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ------------------------------------------------------------------ one location */
.loc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.back { font: 600 12px var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; display: inline-block; margin-bottom: 10px; }
.back:hover { color: var(--text); }
.loc-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.loc-title h1 { font-size: 26px; }
.loc-meta { color: var(--muted); font-size: 13px; margin-top: 6px; display: flex; gap: 16px; flex-wrap: wrap; }
.loc-meta .mono { color: var(--text); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar, .nav::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--brand); }
.tabs .count { font: 700 10.5px var(--mono); background: var(--bad); color: #1f0a0a; border-radius: 999px; padding: 0 6px; }

.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px;
}
.panel > h2 { margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

.sys { width: 100%; border-collapse: collapse; }
.sys th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
.sys td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sys tr:last-child td { border-bottom: 0; }
.sys tr.sub td { padding-top: 7px; padding-bottom: 7px; background: rgba(255, 255, 255, .012); }
.sys tr.sub td:first-child { padding-left: 34px; }
.sys .what { display: flex; align-items: center; gap: 10px; }
.sys .ico {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--panel-3); border: 1px solid var(--line-2); color: var(--brand-2); font: 700 11px var(--mono);
}
.sys .nm { font-weight: 600; }
.sys .nm small { color: var(--muted); font-weight: 500; margin-left: 6px; font-family: var(--mono); }
.sys .detail { color: var(--muted); font-size: 12.5px; }
.sys .ver { font-family: var(--mono); font-size: 12.5px; }
.sys .ver.current { color: var(--ok); }
.left-cell { min-width: 170px; }
.left-cell .media-row { margin-bottom: 4px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat-col h3 { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stat-col .period { font-size: 12px; color: var(--dim); margin-bottom: 12px; min-height: 18px; }
.stat-line { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stat-line:last-child { border-bottom: 0; }
.stat-line span { color: var(--muted); }
.stat-line b { font: 650 20px var(--mono); font-variant-numeric: tabular-nums; }

.big-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.big { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.big .k-label { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.big .k-value { font: 650 40px/1.1 var(--mono); margin-top: 8px; }
.big.warn .k-value { color: var(--warn); }
.big.bad .k-value { color: var(--bad); }

/* the stock count - the same table as at the venue, counts only */
.stock { width: 100%; border-collapse: collapse; }
.stock th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.stock td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.stock .in { font: 700 30px var(--mono); font-variant-numeric: tabular-nums; }
.stock .in.low { color: var(--warn); }
.stock .in.out { color: var(--bad); }
.stock .warnat { font: 600 15px var(--mono); color: var(--muted); }

/* switches */
.switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.switch {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .015);
}
.switch .s-name { font-weight: 600; }
.switch .s-desc { color: var(--muted); font-size: 12.5px; }
.toggle { position: relative; width: 44px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: .15s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cbd5e1; transition: .15s; }
.toggle input:checked + span { background: var(--brand); box-shadow: 0 0 12px rgba(139, 92, 246, .5); }
.toggle input:checked + span::after { transform: translateX(20px); background: #fff; }
.toggle input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.history .h-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; }
.history .h-item:last-child { border-bottom: 0; }
.history .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.history .h-item.k-media .dot, .history .h-item.k-stock .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.history .h-item.ended .dot { background: var(--off); box-shadow: none; }
.history .h-title { font-weight: 600; }
.history .h-detail { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.history .h-sent { color: var(--dim); font: 11.5px var(--mono); margin-top: 5px; }
.history .h-sent .fail { color: var(--bad); }
.history .h-when { font: 12px var(--mono); color: var(--muted); text-align: right; white-space: nowrap; }

/* ------------------------------------------------------------------ forms, buttons, tables */
.btn {
  font: 600 13.5px var(--sans); color: var(--text); background: var(--panel-3); border: 1px solid var(--line-2);
  padding: 9px 15px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.btn:hover { border-color: #3a4d78; background: #1a2742; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #8b5cf6, #7c3aed); border-color: #8b5cf6; color: #fff; box-shadow: 0 4px 18px rgba(139, 92, 246, .35); }
.btn.primary:hover { background: linear-gradient(180deg, #9d74f8, #8b5cf6); }
.btn.good { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .5); color: var(--ok); }
.btn.danger { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .45); color: var(--bad); }
.btn.small { padding: 6px 11px; font-size: 12.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select {
  font: 14.5px var(--sans); color: var(--text); background: #0a101c; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 10px 12px; width: 100%; max-width: 460px;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.note { color: var(--muted); font-size: 13px; max-width: 760px; }
.error { color: var(--bad); font-size: 13px; margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 10px 9px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 600 11.5px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--muted); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-top: 6px; }
.checks label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.checks input { accent-color: var(--brand); width: 16px; height: 16px; }
.radio { display: flex; gap: 14px; flex-wrap: wrap; }
.radio label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.radio input { accent-color: var(--brand); width: 16px; height: 16px; }
.linkbox { font: 12.5px var(--mono); background: #0a101c; border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px 12px; word-break: break-all; color: var(--data); margin-top: 8px; }

.waiting-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.waiting-card h3 { font-size: 17px; margin: 6px 0 4px; }

/* sign in */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate-box {
  width: 100%; max-width: 400px; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: 16px; padding: 30px 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.gate-box .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.gate-box .logo img { border-radius: 10px; box-shadow: 0 0 24px rgba(139, 92, 246, .5); }
.gate-box input { max-width: none; }
.gate-box .btn { width: 100%; justify-content: center; padding: 11px; margin-top: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  background: var(--panel-3); border: 1px solid var(--line-2); color: var(--text); padding: 11px 18px; border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font-weight: 550; max-width: calc(100vw - 32px);
}
.toast.bad { border-color: rgba(248, 113, 113, .6); color: var(--bad); }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .board { grid-template-columns: 1fr; }
  .feed { position: static; max-height: none; order: -1; }
  .feed-list { max-height: 320px; }
}
@media (max-width: 760px) {
  .top { padding: 8px 14px; gap: 10px; flex-wrap: wrap; padding-top: max(8px, env(safe-area-inset-top)); }
  .brand-name { display: none; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; order: 3; scrollbar-width: none; }
  .nav a { padding: 6px 10px; }
  .live { margin-left: auto; }
  .view { padding: 14px 16px 40px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi .k-value { font-size: 24px; }
  .cards { grid-template-columns: 1fr; }
  .stats, .big-pair, .switches, .grid2 { grid-template-columns: 1fr; }
  .loc-title h1 { font-size: 21px; }
  .sys .hide-s { display: none; }
  .sys td, .sys th { padding-left: 6px; padding-right: 6px; }
  .sys tr.sub td:first-child { padding-left: 18px; }
  .stock .in { font-size: 24px; }
  .tbl .hide-s { display: none; }
}

/* Settings: Gmail */
.bad-text { color: var(--bad); font-size: 13px; }
.btn.disabled { opacity: .45; cursor: not-allowed; }
.panel h3 { margin: 6px 0 6px; }
details > summary { cursor: pointer; }
