/* admin.curling.cam and ops.curling.cam share this sheet.
   House rules: system font stack, dark high-contrast palette, nothing
   interactive under 64 px, colour never carries meaning alone (every status
   has a word next to it), no emoji. Phone-first. */
:root {
  --bg: #0d0d0d; --panel: #171a21; --panel-2: #1d2230; --line: #2a3040;
  --text: #f2f4f8; --dim: #9aa5bd; --accent: #3987e5; --accent-ink: #ffffff;
  --ok: #3fb66a; --warn: #e0a100; --danger: #e5533a; --danger-ink: #ffd9d1;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.45; padding: 16px; min-height: 100vh;
}
main { max-width: 720px; margin: 0 auto; }
h1 { font-size: 24px; margin: 8px 0 16px; }
h2 { font-size: 19px; margin: 24px 0 10px; }
p { margin: 0 0 12px; }
.dim { color: var(--dim); }
.small { font-size: 15px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
label { display: block; color: var(--dim); font-size: 15px; margin: 12px 0 6px; }
input, select {
  width: 100%; min-height: 64px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: #0f1117; color: var(--text); font: inherit;
}
input:focus, select:focus, button:focus, a:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 64px; min-width: 64px; padding: 14px 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none;
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.danger { background: #3a1b16; border-color: var(--danger); color: var(--danger-ink); }
button.wide { width: 100%; margin-top: 16px; }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 200px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
           padding: 14px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .who { flex: 1 1 220px; }
.list .who b { display: block; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--dim); }
.status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dim); display: inline-block; }
.status.ok::before { background: var(--ok); }
.status.warn::before { background: var(--warn); }
.status.bad::before { background: var(--danger); }
.msg { border-radius: 10px; padding: 14px 16px; margin: 12px 0; display: none; }
.msg.show { display: block; }
.msg.error { background: #3a1b16; border: 1px solid var(--danger); color: var(--danger-ink); }
.msg.info { background: #16263a; border: 1px solid var(--accent); }
.msg.ok { background: #16301f; border: 1px solid var(--ok); }
.link-box { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px;
            background: #0f1117; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.topbar .brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
[hidden] { display: none !important; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 12px 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 600; font-size: 15px; border-top: 0; }
