/* The administration's own clothes, cut from the venue app's cloth.
 *
 * It uses the same tokens - colours, radii, timings - so the two never drift apart, and its own
 * layout, because it is a different job: the app is one room, this is everything. It does not
 * import the app's stylesheet, which is four thousand lines about a player and a schedule. */

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg, #10151C);
  color: var(--ink, #EEF2F7);
  font-family: 'Syne', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
}

/* ---------------------------------------------------------------- the two closed states */

.gate {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1C2534, #10151C);
  padding: 24px;
}
.gate[hidden] { display: none; }
.gate-card {
  width: min(100%, 380px);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 28px 30px 30px;
}
.gate .mark { font-weight: 750; font-variation-settings: 'wght' 750; font-size: 24px; letter-spacing: .02em; }
.gate h1 { font-size: 18px; margin: 16px 0 8px; }
.gate .sub { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: var(--muted, #9AA7B5); }
.lab { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted, #9AA7B5); margin: 14px 0 6px; }
.field {
  width: 100%; font: inherit; font-size: 13.5px; padding: 10px 13px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05);
  color: inherit; outline: none;
}
.field:focus { border-color: var(--accent, #3E85D3); }
.err { margin: 12px 0 0; font-size: 12.5px; color: #E08A7A; }

.btn {
  font: inherit; font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; color: inherit;
  transition: filter .18s, background .18s, border-color .18s;
}
.btn.solid { background: var(--accent, #3E85D3); border-color: var(--accent, #3E85D3); color: #fff; }
.btn.solid:hover { filter: brightness(1.08); }
.btn.ghost { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); }
.btn.ghost:hover { background: rgba(255, 255, 255, .09); }
.btn.w { width: 100%; margin-top: 20px; }
.btn.sm { padding: 7px 12px; font-size: 12px; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------------------------------------------------------------- the bar */

.bar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(28, 37, 52, .6);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(8px);
}
.word { font-weight: 750; font-variation-settings: 'wght' 750; font-size: 19px; letter-spacing: .02em; }
.tag { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted, #9AA7B5); }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav a {
  font-size: 13px; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  color: var(--muted, #9AA7B5);
}
.nav a:hover { color: var(--ink, #EEF2F7); background: rgba(255, 255, 255, .05); }
.nav a.on { color: var(--ink, #EEF2F7); background: rgba(255, 255, 255, .08); font-weight: 600; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--muted, #9AA7B5); }

/* ---------------------------------------------------------------- the rooms */

.view { padding: 22px 24px 40px; }
.view[hidden] { display: none; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  display: block; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 18px 20px;
}
.card.wide { grid-column: 1 / -1; margin-bottom: 14px; }
.card h2 { margin: 0; font-size: 15.5px; font-weight: 700; }
.card p { margin: 9px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted, #9AA7B5); }
.card.open { transition: border-color .18s, background .18s; }
.card.open:hover { border-color: var(--accent, #3E85D3); background: rgba(255, 255, 255, .07); }
.row { display: flex; align-items: center; gap: 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px;
  color: var(--accent, #3E85D3); }

/* one fact per line: the answer to "which catalogue is out there" should be readable at a glance */
.kv { display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 8px; margin-top: 8px !important; }
.kv span { color: var(--muted, #9AA7B5); }
.kv b { font-weight: 600; color: var(--ink, #EEF2F7); text-align: right; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted, #9AA7B5); margin-left: auto; }
.dot.up { background: #4E9A5E; box-shadow: 0 0 0 4px rgba(78, 154, 94, .16); }
.dot.down { background: #C08A3E; box-shadow: 0 0 0 4px rgba(192, 138, 62, .14); }

.inline { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.inline .field { flex: 1 1 220px; width: auto; }

.scroll { overflow-x: auto; margin-top: 14px; }
.t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.t th {
  text-align: left; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted, #9AA7B5); font-weight: 600; padding: 0 12px 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.t td { padding: 9px 12px 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.t td.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted, #9AA7B5); }
.open { color: #4E9A5E; font-weight: 600; }
