/* Shared by the account page and the admin panel: the MBM Live header (mark, divider, glyph, tracked wordmark,
   recessed tab dock, status box, 2px hairline) and graphite panels with 3px colour rules. */
:root {
  color-scheme: dark;
  --ink: #04060b; --panel: #10151f; --panel-hi: #1a2130; --well: #070a12; --line: #222a3a; --line-hi: #2c3e60;
  --text: #eef2f8; --text-2: #a3aec0; --text-3: #6d788b;
  --royal: #1f66d6; --royal-hi: #3d8cff; --glow: #7fb4ff;
  --good: #6ccb9a; --caution: #e8b84a; --danger: #e5606b;
  --click: #e8b84a; --cues: #f09a5f; --drums: #e57a7a; --bass: #b48cf0; --guitars: #76cf86; --keys: #5fb0f0; --vocals: #6c8cf5; --other: #4fc3c9;
  --caps: "Avenir Next Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
  --display: "Avenir Next", "Avenir", "Mulish", -apple-system, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --spectrum: linear-gradient(90deg, var(--click), var(--cues), var(--drums), var(--bass), var(--vocals), var(--keys), var(--other), var(--guitars));
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(900px 520px at 50% -120px, #1b3e7a66, transparent 70%), var(--ink); color: var(--text); font: 400 15px/1.55 var(--display); -webkit-font-smoothing: antialiased; }
a { color: var(--glow); }
.caps { font-family: var(--caps); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
:focus-visible { outline: 2px solid var(--royal-hi); outline-offset: 2px; border-radius: 6px; }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
[hidden] { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ink) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top::after { content: ""; display: block; height: 2px; background: var(--spectrum); opacity: .85; }
.top .bar { height: 66px; display: flex; align-items: center; gap: 18px; max-width: 1280px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { height: 40px; }
.brand .div { width: 1px; height: 28px; background: var(--line); }
.brand .word { font-size: 17px; letter-spacing: .42em; }
.brand .glyph { font-family: var(--caps); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--glow); padding: 3px 8px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-hi); }
.dock { display: flex; gap: 3px; padding: 4px; border-radius: 10px; background: var(--well); box-shadow: inset 0 1px 3px #000a, inset 0 0 0 1px var(--line); overflow-x: auto; max-width: 100%; }
.dock button, .dock a { font: 600 13px var(--caps); letter-spacing: .15em; text-transform: uppercase; color: var(--text-2); background: none; border: 0; padding: 7px 14px; border-radius: 7px; cursor: pointer; text-decoration: none; white-space: nowrap; position: relative; }
.dock button:hover { color: var(--text); }
.dock .on { color: #fff; background: linear-gradient(180deg, var(--royal-hi), var(--royal)); box-shadow: 0 2px 10px #1f66d655; }
.dock .badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--drums); color: #1a0a0a; font-size: 11px; letter-spacing: 0; line-height: 18px; text-align: center; }
.status { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 9px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex-shrink: 0; }
.status .who { min-width: 0; line-height: 1.2; }
.status .who b { display: block; font: 600 12px var(--caps); letter-spacing: .16em; text-transform: uppercase; }
.status .who span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
[id] { scroll-margin-top: 84px; }
@media (max-width: 720px) { .brand .word, .brand .div { display: none; } .status .who span { max-width: 120px; } }

/* panels */
.panel { position: relative; background: linear-gradient(180deg, var(--panel-hi), var(--panel)); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 22px; min-width: 0; }
.panel::before { content: ""; position: absolute; left: 22px; top: 0; width: 56px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c, var(--royal-hi)); }
.panel > h2, .ph { margin: 0 0 16px; font: 600 14px var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); font-size: 13px; }

/* forms */
label.l { display: block; font: 600 11px var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin: 12px 0 6px; }
.in { width: 100%; min-width: 0; font: inherit; color: var(--text); background: #060a14; border: 0; border-radius: 8px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line-hi); }
.in:focus { outline: none; box-shadow: inset 0 0 0 1px var(--royal-hi), 0 0 0 3px #3d8cff33; }
.in::placeholder { color: var(--text-3); }
textarea.in { resize: vertical; min-height: 96px; }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--text-2); font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--royal-hi); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 13px var(--caps); letter-spacing: .15em; text-transform: uppercase; text-decoration: none; color: #fff; padding: 10px 18px; border-radius: 8px; border: 0; cursor: pointer; background: linear-gradient(180deg, var(--royal-hi), var(--royal)); box-shadow: inset 0 1px 0 #ffffff30, 0 6px 18px #1f66d63d; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px #3a4a66; color: var(--text); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--glow); }
.btn.danger { background: transparent; box-shadow: inset 0 0 0 1px #6b2d33; color: #f0a0a7; }
.btn.danger.solid { background: linear-gradient(180deg, #e5484d, #a8262c); color: #fff; box-shadow: none; }
.btn.small { padding: 7px 12px; font-size: 12px; }
.btn.wide { width: 100%; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.msg { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.msg.bad { box-shadow: inset 0 0 0 1px #e5606b73; background: #e5606b1a; color: #ffd0d4; }
.msg.good { box-shadow: inset 0 0 0 1px #6ccb9a66; background: #6ccb9a1a; color: #c9f2dc; }
.msg.info { box-shadow: inset 0 0 0 1px var(--line-hi); background: #0d1a33; color: #c7d6f0; }

.pill { display: inline-block; font: 600 11px var(--caps); letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; white-space: nowrap; color: var(--glow); background: #0d1a33; box-shadow: inset 0 0 0 1px #2f4670; }
.pill.good { color: var(--good); background: #0d2219; box-shadow: inset 0 0 0 1px #2c5a45; }
.pill.warn { color: var(--caution); background: #2a1f0a; box-shadow: inset 0 0 0 1px #5e4a1c; }
.pill.bad { color: #f0a0a7; background: #2a0f12; box-shadow: inset 0 0 0 1px #6b2d33; }
.pill.dim { color: var(--text-3); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }
.seg button { font: 600 12px var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); background: none; border: 0; padding: 7px 12px; border-radius: 6px; cursor: pointer; }
.seg button.on { color: #fff; background: linear-gradient(180deg, var(--royal-hi), var(--royal)); }

.code { font-family: var(--mono); font-size: 13px; background: #060a14; border-radius: 7px; padding: 9px 11px; box-shadow: inset 0 0 0 1px var(--line); word-break: break-all; user-select: all; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font: 600 11px var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid #1a2130; vertical-align: top; }
.scroll { overflow-x: auto; }
.num { font-variant-numeric: tabular-nums; }
