/* LIDO ops (ops.lido.fit). Look matched to the n0v8ba6 ops console (placement-crm/console/style.css):
   near-black ground, one surface tone, hairlines, lime rationed to "this needs you".
   No web fonts: the CSP allows only this origin, so the display face falls back to the system stack. */
:root {
  --g0: #0A0A0A;
  --surface: #1A1A1A;
  --line: rgba(255, 255, 255, .09);
  --white: #FFFFFF;
  --muted: #A6A6A6;
  --green: #ACD303;
  --lime-deep: #90B800;
  --red: #FF2A2A;
  --orange: #F97202;
  --font-display: 'Orbitron', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Raleway', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rail: 208px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--g0); }
body { margin: 0; color: var(--white); font-family: var(--font-body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.shell { display: flex; min-height: 100vh; }
.rail { width: var(--rail); flex: 0 0 var(--rail); border-right: 1px solid var(--line); padding: 20px 0 40px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.mark { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; padding: 0 18px 22px; display: block; }
.mark span { color: var(--green); }
.mark.big { font-size: 22px; padding: 0 0 18px; text-align: center; }
.rail h6 { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 20px 0 6px; padding: 0 18px; }
.rail a[data-v] { display: flex; justify-content: space-between; gap: 8px; padding: 5px 18px; border-left: 2px solid transparent; }
.rail a[data-v]:hover { background: var(--surface); color: var(--white); }
.rail a.on { border-left-color: var(--green); background: var(--surface); }
.rail a .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.rail a .n.hot { color: var(--green); }
.pad-x { padding: 4px 18px; }

.main { flex: 1; min-width: 0; padding: 26px 30px 80px; max-width: 1180px; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .02em; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 22px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 18px; }
.card > header { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card > header h2 { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.card > header .n { font-variant-numeric: tabular-nums; color: var(--muted); }
.card > header .n.hot { color: var(--green); }
.card > header .why { margin-left: auto; color: var(--muted); font-size: 12px; }
.card .body { padding: 4px 16px 14px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

.row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }
.row .who { font-weight: 500; }
.row .what { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row .when { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; white-space: nowrap; }
.row .act { display: flex; gap: 6px; white-space: nowrap; }
.empty { color: var(--muted); padding: 10px 0; }

/* caps meters */
.meter { display: grid; grid-template-columns: 130px 1fr 70px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.meter:last-child { border-bottom: 0; }
.meter .bar { height: 6px; background: var(--g0); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--muted); width: 0; }
.meter .fill.full { background: var(--green); }
.meter .fill.over { background: var(--red); }
.meter .num { text-align: right; font-variant-numeric: tabular-nums; }
.meter .acct { grid-column: 2 / 4; color: var(--muted); font-size: 12px; margin-top: -6px; }

/* stage tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.tile .k { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tile .v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 8px 6px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.scroll { overflow-x: auto; }

.pill { font-size: 11px; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.hot { color: var(--green); border-color: rgba(172, 211, 3, .4); }
.pill.warn { color: var(--orange); border-color: rgba(249, 114, 2, .4); }
.pill.stop { color: var(--red); border-color: rgba(255, 42, 42, .4); }
.pill.test { color: var(--orange); border-color: rgba(249, 114, 2, .6); font-weight: 600; }

button, .btn { font-family: var(--font-body); font-size: 12px; color: var(--white); background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: 4px 10px; cursor: pointer; }
button:hover, .btn:hover { border-color: var(--green); color: var(--green); }
button.primary { background: var(--green); border-color: var(--green); color: var(--g0); font-weight: 600; }
button.primary:hover { background: var(--lime-deep); border-color: var(--lime-deep); color: var(--g0); }
button.danger { border-color: rgba(255, 42, 42, .6); color: var(--red); }
button.danger:hover { background: var(--red); color: var(--g0); }
button.big { font-size: 14px; padding: 10px 22px; }
button:disabled { opacity: .45; cursor: default; }

input[type=text], input[type=password], select, textarea { font-family: var(--font-body); font-size: 13px; color: var(--white); background: var(--g0); border: 1px solid var(--line); border-radius: 3px; padding: 6px 8px; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--green); border-color: var(--green); }
textarea { width: 100%; min-height: 60px; resize: vertical; }

.msg { white-space: pre-wrap; background: var(--g0); border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; margin: 8px 0; font-size: 13px; user-select: all; }
.dc { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dc:last-child { border-bottom: 0; }
.dc.done { opacity: .55; }

.flash { border: 1px solid rgba(172, 211, 3, .4); color: var(--green); padding: 8px 14px; border-radius: 3px; margin: 12px 0 0; }
.flash.bad { border-color: rgba(255, 42, 42, .5); color: var(--red); }

.armbar { border: 1px solid var(--line); border-radius: 4px; padding: 8px 14px; margin-bottom: 18px; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.armbar.armed { border-color: rgba(172, 211, 3, .5); color: var(--green); }
.armbar.disarmed { color: var(--muted); }
.armbar.test { border-color: rgba(249, 114, 2, .6); color: var(--orange); }
.state { font-family: var(--font-display); font-size: 28px; letter-spacing: .08em; }
.state.armed { color: var(--green); }
.state.disarmed { color: var(--muted); }

.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login { width: 100%; max-width: 360px; padding: 16px; }
.login-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.login-card label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.login-card input { width: 100%; }

@media (max-width: 860px) {
  .shell { display: block; }
  .rail { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .main { padding: 20px 16px 60px; }
  .cols { grid-template-columns: 1fr; }
  .meter { grid-template-columns: 100px 1fr 60px; }
}
