:root {
  --bg: #f4f5f1; --panel: #ffffff; --panel-2: #f8f9f5; --ink: #1b1f17; --muted: #697160; --line: #e2e5db;
  --brand: #A5C715; --brand-ink: #0B0E0A; --brand-soft: #eef7e1;
  --green: #2f9e44; --green-soft: #e6f4ea; --amber: #b7791f; --amber-soft: #fdf3e1; --red: #c0392b; --red-soft: #fbe9e7;
  --grey-soft: #eceee8; --shadow: 0 1px 2px rgba(20, 30, 10, .06), 0 6px 18px rgba(20, 30, 10, .05);
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101310; --panel: #171b16; --panel-2: #1c211b; --ink: #e8ece3; --muted: #9aa392; --line: #2a3127;
    --brand-soft: #22301a; --green-soft: #183322; --amber-soft: #33290f; --red-soft: #3a1d19; --grey-soft: #252a23;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
h1, h2 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; margin-bottom: 12px; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
code { font-size: 13px; }

.frame { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.rail { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 600; }
.brand b { font-weight: 800; }
.brand.big { font-size: 22px; justify-content: center; margin-bottom: 8px; }
.mark { width: 30px; height: 30px; object-fit: contain; flex: none; }
.btn.sso { gap: 10px; }
.sso-mark { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav a { padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; }
.rail nav a:hover { background: var(--panel-2); color: var(--ink); }
.rail nav a.on { background: var(--brand-soft); color: var(--ink); }
.soon { margin-top: auto; padding: 12px; border-radius: 10px; background: var(--panel-2); font-size: 12px; color: var(--muted); }
.soon span { font-weight: 700; color: var(--ink); }
.soon p { margin: 4px 0 0; }
.me { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.me small { display: block; color: var(--muted); }

.main { padding: 22px 28px 60px; min-width: 0; }
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.top h1 { flex: 1; }
.menu { display: none; }
.search input { width: 260px; }

input, select { font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.seats { width: 92px; }
label.money { display: inline-flex; align-items: center; gap: 4px; }
label.money input { width: 90px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--panel-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.amber { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.btn.red { background: var(--red-soft); border-color: transparent; color: var(--red); }
.btn.wide { width: 100%; padding: 12px; font-size: 16px; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card .pad { padding: 16px 18px 0; }
.card.narrow { max-width: 520px; }

.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; }
.flash.ok { background: var(--green-soft); color: var(--green); }
.flash.bad { background: var(--red-soft); color: var(--red); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.tile span { color: var(--muted); font-size: 13px; font-weight: 600; }
.tile b { font-size: 26px; letter-spacing: -.02em; }
.tile b em { font-style: normal; font-size: 15px; color: var(--muted); font-weight: 500; }
.tile small { color: var(--muted); }
.tile.warn { border-color: var(--amber); }
a.tile:hover { border-color: var(--brand); }

.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.alerts li { padding: 9px 12px; border-radius: 9px; border-left: 4px solid; }
.alerts li a { text-decoration: none; }
.alerts .amber { background: var(--amber-soft); border-color: var(--amber); }
.alerts .red { background: var(--red-soft); border-color: var(--red); }

table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.num { text-align: right; white-space: nowrap; }
table.list tr.failed td { color: var(--red); }
td.tick, th.tick { width: 36px; }
td.do { text-align: right; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; margin: 0 4px 2px 0; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.grey { background: var(--grey-soft); color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.green { background: var(--green); } .dot.red { background: var(--red); } .dot.grey { background: var(--muted); }
b.ok { color: var(--green); } b.bad { color: var(--red); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 13px; background: var(--panel); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--panel-2); }

.head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.head h2 { font-size: 20px; margin-bottom: 2px; }
.head p { margin: 0; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; }
.facts div { display: flex; flex-direction: column; }
.facts span { font-size: 12px; color: var(--muted); font-weight: 600; }
.facts b { font-size: 18px; text-transform: capitalize; }
.facts small { color: var(--muted); }

.line { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.card .pad + .line { margin-top: 12px; }
.line .what { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.line .do { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
details.pop { position: relative; }
details.pop summary { list-style: none; }
details.pop summary::-webkit-details-marker { display: none; }
details.pop[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 320px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 14px; text-align: left; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.stack .row, .row { display: flex; gap: 8px; }
label.check { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 500 !important; }
fieldset.apps { border: 1px solid var(--line); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; margin: 0; }
fieldset.apps legend { font-size: 12px; color: var(--muted); padding: 0 4px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; }
.grid-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.grid-form fieldset { grid-column: 1 / -1; }

.lone { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.signin { width: 100%; max-width: 420px; text-align: center; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px; }
.signin .lead { margin: 0 0 8px; color: var(--muted); }

@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 30% 0 0; z-index: 20; transform: translateX(-105%); transition: transform .2s; height: 100%; }
  .rail.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .menu { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; font-size: 18px; color: var(--ink); }
  .main { padding: 16px; }
  .search input { width: 150px; }
  .cols { grid-template-columns: 1fr; }
  table.list.venues td:nth-child(4), table.list.venues th:nth-child(4) { display: none; }
  details.pop[open] > form { width: min(320px, 86vw); }
}
table.list a { text-decoration: none; font-weight: 600; }
table.list a:hover { text-decoration: underline; }
.card { overflow-x: auto; }
details.pop[open] { overflow: visible; }
.card:has(details.pop[open]) { overflow: visible; }
@media (max-width: 860px) {
  table.list td, table.list th { padding: 9px 10px; }
  .hide-phone { display: none; }
}

/* Downloads and Versions (2026-10-05) */
.lead { max-width: 760px; margin: 0 0 14px; }
.flash:not(.ok):not(.bad) { background: var(--grey-soft); color: var(--ink); }
details.devices summary { cursor: pointer; font-weight: 700; }
table.mini { border-collapse: collapse; margin-top: 6px; font-size: 13px; }
table.mini td { padding: 3px 10px 3px 0; border: 0; white-space: nowrap; }
table.mini tr.off td b { color: var(--red); }
details.help ol { margin: 10px 0 0; padding-left: 20px; }
details.help summary { cursor: pointer; }
code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; }
.bulk .when { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.bulk .when input[type=datetime-local] { min-width: 210px; }

/* ---- Fleet (2026-11-03) ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.red b { color: var(--red); } .stat.amber b { color: var(--amber); }
.batch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.batch .sep { flex: 1; }
.me-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hw { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.hw div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.hw b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.warn-list { margin: 6px 0 0; padding-left: 18px; color: var(--amber); font-size: 13px; }
.log td { font-size: 13px; vertical-align: top; }
.log td.detail { max-width: 520px; word-break: break-word; color: var(--muted); }
details.dev > summary { cursor: pointer; list-style: none; }
details.dev > summary::-webkit-details-marker { display: none; }

/* The server page */
.server-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.server-tiles .tile { display: flex; flex-direction: column; gap: 2px; }
.server-tiles .tile b { font-size: 1.8em; }
.server-tiles svg { width: 100%; height: 48px; margin-top: 6px; }
.server-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 12px; }
.server-columns label { display: block; margin-bottom: 8px; }
.server-columns input[type=number] { width: 80px; margin-left: 6px; }
