/* FWC Bot · dashboard. Same palette and type as the homepage. No framework, no build. */

:root {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --bg-3: #17171b;
  --bg-4: #1e1e23;
  --line: #24242a;
  --line-2: #33333a;
  --ink: #f2eee6;
  --text: #cfcac0;
  --muted: #8f8a81;
  --gold: #cdb78a;
  --red: #e10600;
  --red-soft: #ff4b3e;
  --green: #2fbf71;
  --amber: #f0b232;

  --dc-bg: #313338;
  --dc-side: #2b2d31;
  --dc-embed: #2b2d31;
  --dc-text: #dbdee1;
  --dc-muted: #949ba4;
  --dc-mention: rgba(88, 101, 242, 0.3);
  --dc-mention-text: #c9cdfb;
  --blurple: #5865f2;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 0.95rem/1.55 var(--sans); overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font: 500 0.86em/1 var(--mono); color: var(--ink); background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: 0.15em 0.4em; }
::selection { background: rgba(225, 6, 0, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.kicker { margin: 0 0 10px; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
h1, h2 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; }
h2 { font-size: 1.5rem; line-height: 1.15; }
h1 em { font-style: italic; color: var(--gold); }
.lede { margin: 14px 0 0; max-width: 40rem; color: var(--text); font-size: 1rem; }
.fine { margin: 16px 0 0; font: 400 0.78rem/1.5 var(--mono); color: var(--muted); }
.hint { margin: 8px 0 0; font-size: 0.84rem; color: var(--muted); max-width: 36rem; }
.link { color: var(--gold); text-decoration: none; font-weight: 500; white-space: nowrap; }
.link:hover { text-decoration: underline; }
.icon { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.icon svg { width: 100%; height: 100%; }
.noscript { padding: 40px; text-align: center; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.9rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #111; }
.btn-primary:hover:not(:disabled) { background: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--muted); }
.btn-small { --h: 34px; padding: 0 14px; font-size: 0.82rem; background: var(--ink); color: #111; }
.btn-quiet { background: var(--bg-4); color: var(--ink); }
.btn-quiet:hover { background: var(--line-2); }
.btn-discord { --h: 50px; padding: 0 26px; background: var(--blurple); color: #fff; font-size: 1rem; }
.btn-discord:hover { background: #4752c4; }
.btn-discord svg { width: 22px; height: 22px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover:not(:disabled) { background: var(--bg-4); color: var(--ink); }
.icon-btn.danger:hover:not(:disabled) { color: var(--red-soft); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ------------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 24px;
  background: rgba(11, 11, 13, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold); text-decoration: none; min-width: 0; }
.brand .logo { width: 28px; height: 28px; flex: none; }
.brand span { color: var(--ink); font: 600 0.95rem/1 var(--sans); white-space: nowrap; }
.brand em { font: 500 0.66rem/1 var(--mono); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 7px; border-radius: 999px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.me { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 0.86rem; min-width: 0; }
.me img { border-radius: 50%; }
.me span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 14ch; }
.switch-wrap { position: relative; }
.switch { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px 0 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); cursor: pointer; color: var(--ink); max-width: 260px; }
.switch span:not(.switch-caret) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.86rem; }
.switch-caret svg { width: 16px; height: 16px; color: var(--muted); }
.switch-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; max-height: 60vh; overflow: auto; padding: 6px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.switch-menu a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 0.88rem; }
.switch-menu a span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch-menu a small { font: 400 0.7rem/1 var(--mono); color: var(--muted); }
.switch-menu a:hover, .switch-menu a.is-current { background: var(--bg-4); }
.server-icon { flex: none; border-radius: 30%; object-fit: cover; background: var(--bg-4); }
.server-icon.initials { display: grid; place-items: center; width: 48px; height: 48px; color: var(--ink); font: 600 1rem/1 var(--sans); }

.main { min-height: calc(100vh - 64px); }
.boot { display: grid; place-items: center; min-height: 60vh; }
.boot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.6); animation: pulse 1.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(225, 6, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); } }

/* ------------------------------------------------------------------ sign in */
.signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; max-width: 1180px; margin: 0 auto; padding: 72px 24px 96px; }
.signin-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.signin-art::before { content: ""; position: absolute; inset: -12%; background-image: linear-gradient(rgba(242, 238, 230, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 238, 230, 0.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%); }
.signin-circuit { position: relative; width: 100%; height: 100%; overflow: visible; }
.signin-circuit .track-edge { fill: none; stroke: #2a2a31; stroke-width: 64; stroke-linejoin: round; }
.signin-circuit .track-tarmac { fill: none; stroke: #18181c; stroke-width: 52; stroke-linejoin: round; stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 2.4s var(--ease) 0.2s forwards; }
.signin-circuit .track-dash { fill: none; stroke: rgba(242, 238, 230, 0.22); stroke-width: 3; stroke-dasharray: 14 18; }
.signin-circuit .track-start { fill: var(--ink); }
.signin-circuit .car circle { fill: var(--red); filter: drop-shadow(0 0 10px rgba(225, 6, 0, 0.9)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.signin-card { max-width: 30rem; }
.signin-card .btn { margin-top: 28px; }
.banner { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 0.88rem; }
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.banner.bad { background: rgba(225, 6, 0, 0.1); border: 1px solid rgba(225, 6, 0, 0.35); color: #ffb4ae; }

/* ------------------------------------------------------------------ leagues */
.leagues, .empty { max-width: 1100px; margin: 0 auto; padding: 64px 24px 96px; }
.leagues-head { margin-bottom: 40px; }
.league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.league-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  text-decoration: none; color: var(--text); overflow: hidden; text-align: left; cursor: pointer;
  opacity: 0; transform: translateY(10px); animation: rise 0.5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms);
  transition: border-color 0.25s, background 0.25s;
}
.league-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform 0.35s var(--ease); }
.league-card:hover { border-color: var(--line-2); background: var(--bg-3); }
.league-card:hover::after { transform: scaleY(1); }
.league-card .server-icon { grid-row: span 2; }
.league-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; grid-row: span 2; }
.league-text b { color: var(--ink); font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.league-text span { font: 400 0.78rem/1.3 var(--mono); color: var(--muted); }
.badge { justify-self: end; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.badge-owner { color: var(--gold); border-color: rgba(205, 183, 138, 0.4); }
.badge-bot-owner { color: #b8a7ff; border-color: rgba(178, 107, 255, 0.4); }
.league-state { justify-self: end; display: inline-flex; align-items: center; gap: 4px; font: 600 0.82rem/1 var(--sans); color: var(--ink); }
.league-state svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.league-card:hover .league-state svg { transform: translateX(3px); }
.league-state.is-new { color: var(--gold); }
@keyframes rise { to { opacity: 1; transform: none; } }

.empty { text-align: center; display: flex; flex-direction: column; align-items: center; }
.empty .lede { margin-left: auto; margin-right: auto; }
.empty-art { width: 92px; height: 92px; color: var(--gold); margin-bottom: 28px; }
.empty-logo { width: 100%; height: 100%; }
.empty-logo path { stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 2.4s var(--ease) forwards; }

/* ------------------------------------------------------------------- editor */
.editor { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.side { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); display: flex; flex-direction: column; gap: 18px; padding: 24px 16px; border-right: 1px solid var(--line); background: var(--bg-2); overflow: auto; }
.side-league { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.side-league img, .side-league .league-initials { width: 40px; height: 40px; border-radius: 30%; flex: none; }
.league-initials { display: grid; place-items: center; background: var(--bg-4); color: var(--ink); font-weight: 600; }
.side-league div { min-width: 0; display: flex; flex-direction: column; }
.side-league b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-league span { font: 400 0.72rem/1.4 var(--mono); color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: 0.9rem; transition: background 0.2s, color 0.2s; }
.side-item:hover { background: var(--bg-3); color: var(--ink); }
.side-item.is-active { background: var(--bg-4); color: var(--ink); box-shadow: inset 2px 0 0 var(--red); }
.side-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: 0; transform: scale(0.4); transition: opacity 0.25s, transform 0.25s var(--ease); }
.side-item.is-dirty .side-dot { opacity: 1; transform: none; }
.side-back { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--muted); text-decoration: none; font-size: 0.86rem; }
.side-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.side-back:hover { color: var(--ink); }

.pane { min-width: 0; padding: 40px 40px 140px; }
.pane-head { max-width: 1100px; margin-bottom: 32px; }
.pane-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); gap: 40px; align-items: start; max-width: 1200px; }
.controls { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.preview { position: sticky; top: 96px; min-width: 0; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-bottom: 4px; }
.preview-label { margin: 0 0 12px; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.preview-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.18); }
.preview-inner { display: flex; flex-direction: column; gap: 16px; }
.preview-empty { padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }
.aside-note { margin: 0; font-size: 0.86rem; color: var(--muted); }
.aside-note a { color: var(--gold); }

/* fields */
.field-block { display: flex; flex-direction: column; gap: 8px; }
.field-head { display: flex; align-items: center; gap: 10px; }
.field-head label { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.optional { font: 500 0.64rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 7px; }
.input { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); font: 400 0.92rem/1 var(--sans); transition: border-color 0.2s, background 0.2s; }
.input:hover { border-color: #46464f; }
.input:focus { outline: none; border-color: var(--gold); background: var(--bg-3); }
.input::placeholder { color: #5c5850; }
.input-num { width: 92px; text-align: right; font-family: var(--mono); }
.status-box:empty { display: none; }
.status { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 0.82rem; line-height: 1.45; }
.status .icon { margin-top: 2px; }
.status.ok { color: var(--green); }
.status.warn { color: var(--amber); }
.status.err { color: var(--red-soft); }

/* picker */
.picker { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px 6px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; text-align: left; transition: border-color 0.2s, background 0.2s; }
.picker:hover { border-color: #46464f; }
.picker[aria-expanded="true"] { border-color: var(--gold); background: var(--bg-3); }
.picker.is-warn { border-color: rgba(240, 178, 50, 0.5); }
.picker:disabled { opacity: 0.5; cursor: not-allowed; }
.picker-caret svg { width: 16px; height: 16px; color: var(--muted); }
.picker-empty { color: var(--muted); font-size: 0.9rem; }
.picker-pop { position: fixed; z-index: 100; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-3); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85); opacity: 0; transform: translateY(-4px); transition: opacity 0.15s, transform 0.2s var(--ease); }
.picker-pop.in { opacity: 1; transform: none; }
.picker-search-wrap { position: relative; padding: 8px; border-bottom: 1px solid var(--line); }
.picker-search-wrap > svg { position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.picker-search { width: 100%; height: 36px; padding: 0 10px 0 36px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); font: inherit; }
.picker-search:focus { outline: none; border-color: var(--gold); }
.picker-list { overflow-y: auto; padding: 6px; }
.picker-group { padding: 10px 8px 4px; font: 600 0.66rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.picker-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.picker-option:hover, .picker-option.is-active { background: var(--bg-4); }
.picker-option.is-current { box-shadow: inset 2px 0 0 var(--gold); }
.picker-option.is-disabled { opacity: 0.45; cursor: not-allowed; }
.picker-note { font: 400 0.7rem/1.2 var(--mono); color: var(--muted); text-align: right; flex: none; max-width: 50%; }
.picker-note.warn { color: var(--amber); }
.picker-none { padding: 16px; text-align: center; color: var(--muted); font-size: 0.86rem; }

/* chips (roles, channels, members) */
.chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 7px; border-radius: 6px; font: 500 0.86rem/1.4 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.chip svg { width: 14px; height: 14px; flex: none; opacity: 0.8; }
.chip-role { color: color-mix(in srgb, var(--role) 70%, white); background: color-mix(in srgb, var(--role) 18%, transparent); }
.chip-channel { color: var(--dc-mention-text); background: var(--dc-mention); }
.chip-user { color: var(--dc-mention-text); background: var(--dc-mention); }

/* list rows (teams, positions) */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { position: relative; display: flex; align-items: stretch; gap: 8px; padding: 12px 8px 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color 0.2s, background 0.2s; animation: rise 0.35s var(--ease) both; }
.row:hover { border-color: var(--line-2); }
.row.is-focus { border-color: rgba(205, 183, 138, 0.55); background: var(--bg-3); }
.row.is-bad { border-color: rgba(225, 6, 0, 0.5); }
.row-stripe { position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--role); }
.row-main { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; }
.row-meta { font: 400 0.72rem/1.2 var(--mono); color: var(--muted); white-space: nowrap; }
.row-error { grid-column: 1 / -1; font-size: 0.78rem; color: var(--red-soft); }
.row-warn { grid-column: 1 / -1; display: flex; gap: 6px; align-items: flex-start; font-size: 0.78rem; color: var(--amber); }
.row-warn .icon { width: 14px; height: 14px; margin-top: 2px; }
.row-tools { display: flex; gap: 2px; align-self: flex-start; }
/* Fields inside a row: a small label line, then the full-width control, so names and roles never get squeezed. */
.row-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { display: flex; align-items: center; gap: 8px; min-height: 20px; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field-label label { cursor: pointer; }
.field-label .optional { padding: 2px 6px; font-size: 0.58rem; }
.field-label .optional.required { color: var(--gold); border-color: rgba(205, 183, 138, 0.4); }
.field-label .row-meta { margin-left: auto; letter-spacing: 0; text-transform: none; }
.row-hint { margin: 0; font-size: 0.78rem; color: var(--muted); overflow-wrap: anywhere; }
.row-field > .stepper { align-self: flex-start; } /* as wide as its buttons, not its label */
.team-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.team-data { display: grid; grid-template-columns: 110px 190px minmax(0, 1fr); gap: 12px; }
.input-acronym { text-transform: uppercase; font-family: var(--mono); letter-spacing: 0.06em; }
.color-pair { display: flex; gap: 8px; align-items: center; }
.color-swatch { flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); cursor: pointer; }
.color-swatch::-webkit-color-swatch-wrapper { padding: 4px; }
.color-swatch::-webkit-color-swatch { border: 0; border-radius: 6px; }
.input-hex { font-family: var(--mono); }
@media (max-width: 720px) { .team-data { grid-template-columns: 1fr 1fr; } .team-logo { grid-column: 1 / -1; } }
.series-head { margin: 28px 0 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.series-head:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.series-head h2 { margin: 0; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.series-head .hint { margin: 6px 0 0; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.multi-roles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.multi-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 10px; border-radius: 8px; color: color-mix(in srgb, var(--role) 70%, white); background: color-mix(in srgb, var(--role) 18%, transparent); font: 500 0.86rem/1 var(--sans); }
.multi-x { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; opacity: 0.7; }
.multi-x:hover { opacity: 1; background: color-mix(in srgb, var(--role) 25%, transparent); }
.multi-x svg { width: 14px; height: 14px; }
.multi-roles .picker { width: auto; min-width: 180px; border-style: dashed; }
.pos-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px 12px; }
.pos-role, .pos-flags, .pos-grid .row-meta { grid-column: 1 / -1; }
.pos-flags { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.adder { display: flex; }
.adder .picker { width: auto; min-width: 240px; border-style: dashed; }
.adder .picker .picker-empty { color: var(--gold); font-weight: 500; }
.adder .btn svg { width: 16px; height: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 12px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.pair-title { grid-column: 1 / -1; margin: 0; color: var(--ink); font: 400 1.15rem/1.2 var(--serif); }
.pair-title small { display: block; margin-top: 4px; font: 400 0.82rem/1.4 var(--sans); color: var(--muted); }
.field-block > .stepper { align-self: flex-start; }
.with-unit { display: flex; align-items: center; gap: 10px; color: var(--muted); }

/* stepper, slider, toggle */
.stepper { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.stepper output { min-width: 24px; text-align: center; color: var(--ink); font: 500 0.95rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.step { display: grid; place-items: center; width: 30px; height: 100%; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.step svg { width: 16px; height: 16px; }
.step:hover:not(:disabled) { background: var(--bg-4); color: var(--ink); }
.step:disabled { opacity: 0.3; cursor: not-allowed; }
.row-field > .segmented { align-self: flex-start; }
.segmented { display: inline-flex; flex-wrap: wrap; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.seg { min-width: 56px; padding: 0 14px; border: 0; border-right: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 0.9rem/1 var(--sans); cursor: pointer; }
.seg:last-child { border-right: 0; }
.seg:hover { background: var(--bg-4); color: var(--ink); }
.seg[aria-checked="true"] { background: var(--ink); color: #111; }
.seg:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.slider-row { display: flex; align-items: center; gap: 18px; }
.slider { flex: 1; min-width: 120px; height: 28px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--line-2)); }
.slider::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
.slider::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); transition: transform 0.15s; }
.slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); }
.slider:active::-webkit-slider-thumb { transform: scale(1.15); }
.slider-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.slider-readout { color: var(--ink); font: 500 0.95rem/1 var(--mono); white-space: nowrap; }
.exact { display: flex; align-items: center; gap: 6px; font: 400 0.72rem/1 var(--mono); color: var(--muted); }
.exact .input { height: 30px; width: 78px; font-size: 0.82rem; }
.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #4e5058; transition: background 0.25s; }
.toggle-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--green); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--gold); outline-offset: 2px; }
.toggle-text { display: flex; flex-direction: column; }
.toggle-text b { color: var(--ink); font-weight: 600; font-size: 0.88rem; }
.toggle-text small { color: var(--muted); font-size: 0.76rem; }

/* overview */
.overview { max-width: 980px; display: flex; flex-direction: column; gap: 28px; }
.welcome { padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(205, 183, 138, 0.35); background: rgba(205, 183, 138, 0.06); }
.welcome p { margin: 0; }
.welcome b { color: var(--ink); }
.path { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; position: relative; }
.path-step { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; text-align: left; transition: border-color 0.2s, transform 0.2s var(--ease); }
.path-step:hover { border-color: var(--line-2); transform: translateY(-2px); }
.path-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); font: 600 0.8rem/1 var(--mono); }
.path-step.is-done .path-n { background: var(--green); border-color: var(--green); color: #08240f; }
.path-n svg { width: 16px; height: 16px; }
.path-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.path-text b { color: var(--ink); font-weight: 600; }
.path-text b small { font: 400 0.66rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.path-text span { font-size: 0.8rem; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.path-go { position: absolute; right: 12px; top: 18px; color: var(--muted); }
.path-go svg { width: 16px; height: 16px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.tile b { display: block; color: var(--ink); font: 400 2.2rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.tile span { display: block; margin-top: 8px; font: 400 0.72rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.checks h2 { font-size: 1.25rem; margin-bottom: 12px; }
.checks ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 0.9rem; }
.checks li > span:not(.icon) { flex: 1; min-width: 0; }
.checks li .btn { flex: none; }
.checks li .icon { align-self: flex-start; margin-top: 3px; }
.checks li.ok .icon { color: var(--green); }
.checks li.bad { border-color: rgba(240, 178, 50, 0.3); }
.checks li.bad .icon { color: var(--amber); }
.checks strong { color: var(--ink); }

/* save bar */
.savebar {
  position: fixed; left: 50%; bottom: 20px; z-index: 50; width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 20px;
  border-radius: 16px; border: 1px solid var(--line-2); background: rgba(23, 23, 27, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, 140%); transition: transform 0.4s var(--ease);
}
.savebar.is-open { transform: translate(-50%, 0); }
.savebar p { margin: 0; font-size: 0.86rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.savebar b { color: var(--gold); }
.savebar-actions { display: flex; gap: 8px; flex: none; }

/* dialogs */
.dialog { width: min(620px, calc(100% - 32px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-2); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9); }
.dialog::backdrop { background: rgba(5, 5, 7, 0.7); backdrop-filter: blur(3px); }
.dialog[open] { animation: pop 0.3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.dialog-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.dialog-body h2 { margin-bottom: 4px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.changes { display: flex; flex-direction: column; gap: 14px; }
.change-area { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.change-area svg { width: 14px; height: 14px; }
.change-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.change-group li { padding: 8px 12px; border-radius: 8px; background: var(--bg-3); font-size: 0.88rem; }
.change-group strong, .problems strong, .notes strong, .results strong { color: var(--ink); }
.problems, .notes, .results { display: grid; gap: 8px; }
.problems p, .notes p, .results p { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 0.88rem; }
.problems svg, .notes svg, .results svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.problems p { background: rgba(225, 6, 0, 0.08); border: 1px solid rgba(225, 6, 0, 0.3); }
.problems svg { color: var(--red-soft); }
.notes p { background: rgba(205, 183, 138, 0.06); border: 1px solid rgba(205, 183, 138, 0.25); }
.notes svg { color: var(--gold); }
.results p.ok svg { color: var(--green); }
.results p.bad { background: rgba(240, 178, 50, 0.07); }
.results p.bad svg { color: var(--amber); }
.saving { height: 4px; border-radius: 4px; background: var(--bg-4); overflow: hidden; }
.saving-bar { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--red), transparent); animation: sweep 1.2s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 120; max-width: min(520px, calc(100% - 32px)); padding: 12px 16px; border-radius: 12px; background: var(--bg-4); border: 1px solid var(--line-2); color: var(--ink); font-size: 0.88rem; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.9); opacity: 0; transform: translate(-50%, 10px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast-bad { border-color: rgba(225, 6, 0, 0.5); }

/* ------------------------------------------------------- Discord mock-ups */
.dc { padding: 16px 16px 18px; border-radius: var(--radius); background: var(--dc-bg); color: var(--dc-text); font: 400 0.9rem/1.4 var(--sans); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04); }
.dc-msg { display: flex; gap: 14px; }
.dc-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #0e0e10; }
.dc-body { min-width: 0; flex: 1; }
.dc-head { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.dc-head b { color: #f2f3f5; font-weight: 600; }
.dc-app { padding: 1px 5px; border-radius: 4px; background: var(--blurple); color: #fff; font: 700 0.6rem/1.4 var(--sans); }
.dc-head time { color: var(--dc-muted); font-size: 0.72rem; margin-left: 2px; }
.dc-ping { margin: 2px 0 6px; }
.mention { background: var(--dc-mention); color: var(--dc-mention-text); border-radius: 4px; padding: 0 3px; font-weight: 500; }
.role-mention { color: color-mix(in srgb, var(--role) 75%, white); background: color-mix(in srgb, var(--role) 20%, transparent); border-radius: 4px; padding: 0 3px; font-weight: 500; }
.embed { position: relative; max-width: 520px; padding: 12px 16px 14px 18px; border-radius: 4px; background: var(--dc-embed); border-left: 4px solid var(--stripe, #e10600); transition: border-color 0.4s; }
.embed-author { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 0.78rem; font-weight: 600; color: #f2f3f5; }
.embed-author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.embed-title { margin: 0 0 4px; font-weight: 700; color: #f2f3f5; font-size: 1rem; word-break: break-word; }
.embed-desc { margin: 0 0 12px; color: var(--dc-muted); font-size: 0.86rem; }
.embed-desc b { color: var(--dc-text); font-variant-numeric: tabular-nums; }
.embed-text { margin: 0; }
.embed-text b { color: #f2f3f5; }
.embed-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.embed-fields.two { grid-template-columns: 1fr 1fr; margin-top: 10px; font-size: 0.84rem; }
.field { min-width: 0; border-radius: 6px; transition: background 0.4s; }
.field > span:first-child { display: block; margin-bottom: 3px; font-size: 0.76rem; font-weight: 600; color: #f2f3f5; overflow-wrap: anywhere; }
.field i { color: var(--dc-muted); }
.seat { line-height: 1.5; }
.seat.open { animation: seatIn 0.4s var(--ease); }
.seat.over .mention { background: rgba(240, 178, 50, 0.25); color: #f6d58a; }
@keyframes seatIn { from { opacity: 0; transform: translateX(-4px); } }
.field.pulse { animation: glow 1.1s var(--ease); }
@keyframes glow { 0%, 100% { background: transparent; box-shadow: none; } 30% { background: rgba(205, 183, 138, 0.14); box-shadow: 0 0 0 6px rgba(205, 183, 138, 0.14); } }
.embed-foot { margin: 12px 0 0; font-size: 0.72rem; color: var(--dc-muted); }
.dc-buttons { display: flex; gap: 8px; margin-top: 10px; }
.dbtn { padding: 6px 14px; border-radius: 4px; background: #4e5058; color: #fff; font-size: 0.82rem; font-weight: 500; }
.dbtn.ok { background: #248046; }
.dbtn.no { background: #da373c; }
.ts { background: rgba(255, 255, 255, 0.06); border-radius: 4px; padding: 0 3px; }

/* event registration post (plain message, like /lineup register) */
.reg p { margin: 0; }
.reg-title { margin-bottom: 4px !important; color: #f2f3f5; font: 700 1.2rem/1.3 var(--sans); }
.reg-line { line-height: 1.6; }
.reg-line b { color: #f2f3f5; }
.reg-rule { color: #4e5058; letter-spacing: -0.05em; overflow: hidden; white-space: nowrap; }
.preview-sub { margin-top: 10px; }

/* explainer box under a list of settings */
.explainer { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(205, 183, 138, 0.3); background: rgba(205, 183, 138, 0.05); font-size: 0.88rem; }
.explainer p { margin: 0; }
.explainer b, .explainer-title { color: var(--ink); }
.explainer-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.explainer-title .icon { color: var(--gold); }
.explainer-now { font: 400 0.78rem/1.5 var(--mono); color: var(--muted); }
.explainer-now.warn { color: var(--amber); }
.explainer a { color: var(--gold); }

/* channel list */
.sidebar { border-radius: var(--radius); background: var(--dc-side); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04); }
.sb-head { padding: 14px 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.35); color: #f2f3f5; font-weight: 600; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03); }
.sb-scroll { position: relative; max-height: min(560px, 62vh); overflow-y: auto; padding: 8px 8px 14px; scrollbar-width: thin; scrollbar-color: #1a1b1e transparent; }
.sb-cat { margin-top: 14px; }
.sb-cat-name { display: flex; align-items: center; gap: 4px; margin: 0 0 4px; padding: 2px 4px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dc-muted); border-radius: 4px; }
.sb-caret svg { width: 12px; height: 12px; }
.sb-cat.is-focus > .sb-cat-name { animation: flash 1.4s var(--ease); }
.sb-channel { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 4px; color: var(--dc-muted); font-size: 0.9rem; }
.sb-icon svg { width: 18px; height: 18px; opacity: 0.7; }
.sb-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-channel.is-used { color: #f2f3f5; background: rgba(78, 80, 88, 0.3); }
.sb-channel.is-hidden .sb-name { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
.sb-channel.is-focus { animation: flash 1.4s var(--ease); }
@keyframes flash { 0% { background: rgba(205, 183, 138, 0.35); } 100% { background: rgba(78, 80, 88, 0.3); } }
.sb-tag { flex: none; padding: 2px 6px; border-radius: 4px; font: 600 0.6rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #111; animation: tagIn 0.45s var(--ease); }
@keyframes tagIn { from { opacity: 0; transform: scale(0.6); } }
.tag-lineup { background: var(--gold); }
.tag-transactions { background: #f0b232; }
.tag-registration { background: #7dd3a7; }
.tag-decisions { background: #b8a7ff; }
.tag-reportCategory { background: #ff8a80; }
.tag-results, .tag-licences { background: #8fd3ff; }
.tag-teamGraphics, .tag-fiaGraphics { background: #f7a8d8; }
.sb-warn { color: var(--amber); }
.sb-warn svg { width: 15px; height: 15px; }

/* role ladder */
.ladder { padding: 14px; border-radius: var(--radius); background: var(--dc-side); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04); }
.ladder-title { margin: 2px 4px 10px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dc-muted); }
.ladder-role { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; border-radius: 6px; color: var(--dc-text); font-size: 0.88rem; animation: rise 0.35s var(--ease) both; }
.ladder-role + .ladder-role { margin-top: 2px; }
.ladder-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--role); flex: none; }
.ladder-name { font-weight: 500; }
.ladder-me { padding: 1px 6px; border-radius: 4px; background: var(--blurple); color: #fff; font: 700 0.62rem/1.4 var(--sans); text-transform: uppercase; }
.ladder-job { padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); color: var(--dc-muted); font: 500 0.7rem/1.4 var(--mono); }
.ladder-role.is-bot { background: rgba(88, 101, 242, 0.14); box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.45); }
.ladder-role.is-blocked { background: rgba(225, 6, 0, 0.1); box-shadow: inset 0 0 0 1px rgba(225, 6, 0, 0.35); }
.ladder-warn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #ff8a80; font: 600 0.68rem/1 var(--mono); text-transform: uppercase; }
.ladder-warn svg { width: 14px; height: 14px; }
.ladder-gap { padding: 4px 10px 4px 30px; color: #6d717a; font: 400 0.72rem/1.6 var(--mono); }
.ladder-line { position: relative; margin: 8px 0; padding: 0 10px; text-align: center; }
.ladder-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(88, 101, 242, 0.7); }
.ladder-line span { position: relative; padding: 0 8px; background: var(--dc-side); color: #9fa8ff; font: 500 0.68rem/1 var(--mono); }
.ladder-fix { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding: 12px; border-radius: 10px; background: rgba(225, 6, 0, 0.08); border: 1px solid rgba(225, 6, 0, 0.25); }
.ladder-fix p { margin: 0; font-size: 0.82rem; color: var(--dc-text); }
.ladder-fix b { color: #fff; }
.drag-demo { position: relative; flex: none; width: 74px; height: 66px; }
.drag-demo span { position: absolute; left: 0; right: 0; height: 16px; border-radius: 4px; }
.drag-other { background: rgba(255, 138, 128, 0.35); }
.drag-other:nth-child(2) { top: 4px; }
.drag-other:nth-child(3) { top: 24px; }
.drag-me { z-index: 1; top: 46px; background: var(--blurple); color: #fff; font: 700 0.5rem/16px var(--sans); text-align: center; overflow: hidden; white-space: nowrap; animation: dragUp 3.2s var(--ease) infinite; }
@keyframes dragUp { 0%, 20% { top: 46px; transform: none; } 30% { transform: scale(1.06); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5); } 60%, 85% { top: -16px; transform: none; box-shadow: none; } 100% { top: -16px; } }
.ladder-ok { display: flex; align-items: center; gap: 8px; margin: 0 4px 12px; color: var(--green); font-size: 0.84rem; }
.ladder-ok span svg { width: 16px; height: 16px; }

/* offer timeline */
.timeline { position: relative; padding: 18px 16px 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.tl-marks { display: flex; margin: 0 0 10px 0; padding-left: 0; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tl-marks span { flex-basis: 0; min-width: 0; padding-left: 2px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.tl-lane + .tl-lane { margin-top: 14px; }
.tl-who { margin: 0 0 6px; color: var(--ink); font-size: 0.82rem; font-weight: 600; }
.tl-who small { margin-left: 8px; color: var(--muted); font-weight: 400; }
.tl-track { position: relative; display: flex; gap: 3px; height: 44px; }
.tl-seg { flex-basis: 0; min-width: 44px; display: flex; flex-direction: column; justify-content: center; padding: 0 8px; border-radius: 6px; overflow: hidden; transition: flex-grow 0.6s var(--ease); }
.tl-seg b { font: 600 0.78rem/1.2 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-seg span { font-size: 0.66rem; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-seg.pending { background: rgba(240, 178, 50, 0.22); color: #f6d58a; }
.tl-seg.cooldown { background: repeating-linear-gradient(135deg, rgba(225, 6, 0, 0.28) 0 8px, rgba(225, 6, 0, 0.16) 8px 16px); color: #ffb4ae; }
.tl-seg.locked { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 8px, rgba(255, 255, 255, 0.03) 8px 16px); color: var(--muted); }
.tl-seg.free { background: rgba(47, 191, 113, 0.16); color: #8fe3b6; }
.tl-playhead { position: absolute; z-index: 1; top: -4px; bottom: -4px; left: 0; width: 2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 10px rgba(242, 238, 230, 0.7); animation: play 7s linear infinite; pointer-events: none; }
@keyframes play { from { left: 0; opacity: 1; } 92% { opacity: 1; } to { left: calc(100% - 2px); opacity: 0; } }
.tl-closed { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px; background: rgba(11, 11, 13, 0.8); backdrop-filter: blur(2px); color: var(--ink); font-size: 0.88rem; text-align: center; }
.tl-closed svg { width: 18px; height: 18px; color: var(--gold); }

/* warnings */
.warnings { display: flex; flex-direction: column; gap: 18px; padding: 18px 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.pips-label { margin: 0 0 8px; color: var(--ink); font-weight: 600; font-size: 0.86rem; }
.pips-label small { margin-left: 8px; color: var(--muted); font-weight: 400; font: 400 0.72rem/1 var(--mono); }
.pips { --speed: 0.45s; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pip { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); animation: pip calc(var(--speed) * (var(--n) + 4)) linear infinite; animation-delay: calc(var(--i) * var(--speed)); }
.regular .pip { --on: var(--amber); }
.termination .pip { --on: var(--red); }
@keyframes pip { 0% { background: transparent; border-color: var(--line-2); } 4%, 80% { background: var(--on); border-color: var(--on); } 92%, 100% { background: transparent; border-color: var(--line-2); } }
.pips-flag { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font: 600 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; animation: flagOn calc(var(--speed) * (var(--n) + 4)) linear infinite; animation-delay: calc(var(--i) * var(--speed)); }
.pips-flag svg { width: 13px; height: 13px; }
@keyframes flagOn { 0% { color: var(--muted); border-color: var(--line-2); background: transparent; } 4%, 70% { color: #fff; border-color: var(--red); background: rgba(225, 6, 0, 0.35); } 82%, 100% { color: var(--muted); border-color: var(--line-2); background: transparent; } }
.pips-note { margin: 0; font-size: 0.84rem; color: var(--muted); }

/* report acts */
.acts { display: flex; gap: 6px; padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.act { flex-basis: 0; min-width: 96px; display: flex; flex-direction: column; gap: 3px; padding: 14px 12px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); animation: actOn 6s var(--ease) infinite; animation-delay: calc((var(--n) - 1) * 2s); }
.act-n { font: 500 0.66rem/1 var(--mono); color: var(--muted); }
.act b { color: var(--ink); font-size: 0.95rem; }
.act-who { font-size: 0.74rem; color: var(--muted); }
.act-time { margin-top: auto; padding-top: 10px; font: 600 0.8rem/1 var(--mono); color: var(--gold); }
@keyframes actOn { 0%, 33% { border-color: var(--gold); background: rgba(205, 183, 138, 0.08); } 40%, 100% { border-color: var(--line); background: var(--bg-3); } }

/* ------------------------------------------------------------------- panel */
.panel-pane { max-width: 1320px; }
.side-group { margin: 14px 12px 4px; font: 600 0.64rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.side-item .side-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-team { flex: none; width: 4px; height: 16px; border-radius: 2px; background: var(--team); }
a.side-item { text-decoration: none; justify-content: flex-start; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; }
.side-foot .side-back { margin-top: 0; }
.side-foot .side-back svg { transform: none; }
.side-foot .side-back:first-child svg { transform: rotate(180deg); }
.card { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.card-title { margin: 0 0 14px; font: 400 1.25rem/1.2 var(--serif); color: var(--ink); }
.pfield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; align-items: start; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding-top: 24px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.check small { display: block; color: var(--muted); font-size: 0.78rem; }
.select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; text-overflow: ellipsis; }
.select:disabled, .input:disabled { opacity: 0.55; cursor: not-allowed; }
.input.mono { font-family: var(--mono); font-size: 0.86rem; }
.input.narrow { width: 84px; }
.muted { color: var(--muted); }
.bad-text { color: var(--red-soft); }
.empty-line { margin: 0; padding: 22px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.btn-danger { background: rgba(225, 6, 0, 0.16); border-color: rgba(225, 6, 0, 0.45); color: #ffb4ae; }
.btn-danger:hover:not(:disabled) { background: rgba(225, 6, 0, 0.28); }
.btn.danger:hover:not(:disabled) { color: var(--red-soft); border-color: rgba(225, 6, 0, 0.5); }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); border-top-color: var(--ink); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-ok { border-color: rgba(47, 191, 113, 0.5); }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 0.68rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--green); border-color: rgba(47, 191, 113, 0.45); }
.pill.warn { color: var(--amber); border-color: rgba(240, 178, 50, 0.45); }
.pill.info { color: #b9c0ff; border-color: rgba(88, 101, 242, 0.5); }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 0.88rem; }
.notice .icon { margin-top: 2px; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice.warn { background: rgba(240, 178, 50, 0.08); border: 1px solid rgba(240, 178, 50, 0.35); color: #f6d48a; }
.notice.bad { background: rgba(225, 6, 0, 0.08); border: 1px solid rgba(225, 6, 0, 0.35); color: #ffb4ae; }
.crumbs { margin: -12px 0 18px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font: 500 0.78rem/1 var(--mono); }
.crumb svg { width: 14px; height: 14px; transform: rotate(180deg); }
.crumb:hover { color: var(--ink); }
.head-actions { display: flex; gap: 8px; margin-top: 18px; }
.head-actions .btn { --h: 36px; padding: 0 14px; font-size: 0.84rem; }

/* seasons and rounds */
.season-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.season-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.season-tab { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; font-size: 0.86rem; }
.season-tab:hover { border-color: var(--muted); color: var(--ink); }
.season-tab.is-active { background: var(--ink); border-color: var(--ink); color: #111; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.2); }
.season-actions { display: flex; gap: 8px; align-items: center; }
.season-actions .input { width: 180px; height: 34px; }
.season-meta { margin: 14px 0 10px; font: 400 0.78rem/1 var(--mono); color: var(--muted); }
.round-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.round-row { display: grid; grid-template-columns: 44px 26px minmax(0, 1fr) 150px 230px 20px; align-items: center; gap: 14px; padding: 12px 16px; color: var(--text); text-decoration: none; transition: background 0.15s; }
.round-row + .round-row { border-top: 1px solid var(--line); }
.round-row:hover { background: var(--bg-3); }
.round-row.is-past .round-no { color: var(--muted); }
.round-no { font: 500 0.82rem/1 var(--mono); color: var(--gold); }
.round-flag { display: flex; }
.round-name { display: flex; flex-direction: column; min-width: 0; }
.round-name b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round-name small, .round-date small { color: var(--muted); font-size: 0.78rem; }
.round-date { display: flex; flex-direction: column; font-size: 0.86rem; }
.round-sessions { display: flex; justify-content: flex-end; gap: 4px; }
.flag { display: inline-block; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); vertical-align: -2px; }
.head-title { display: inline-flex; align-items: center; gap: 14px; }
.head-title .flag { width: 40px; height: 30px; border-radius: 3px; }
.sess { padding: 4px 7px; border-radius: 6px; font: 500 0.66rem/1 var(--mono); background: var(--bg-4); color: var(--muted); }
.sess-provisional { background: rgba(240, 178, 50, 0.14); color: var(--amber); }
.sess-official { background: rgba(47, 191, 113, 0.14); color: var(--green); }
.round-go svg { width: 16px; height: 16px; color: var(--muted); }

/* session editor */
.session-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.session-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.9rem; box-shadow: inset 0 -2px 0 transparent; }
.session-tab:hover { color: var(--ink); }
.session-tab.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }
.sess-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.sess-dot.sess-provisional { background: var(--amber); }
.sess-dot.sess-official { background: var(--green); }
.session-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 18px; }
.session-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.session-main > .hint { margin: 0; }
.session-side { position: sticky; top: 88px; min-width: 0; }
.entry-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.entry-toolbar .btn { --h: 34px; padding: 0 14px; font-size: 0.82rem; }
.entry-toolbar .input { height: 34px; width: 210px; }
.entry-toolbar .input.narrow { width: 72px; }
.toolbar-gap { flex: 0 0 8px; }
.entry-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.entry-table { min-width: 640px; }
.entry-row { display: grid; align-items: center; gap: 8px; padding: 6px 10px; }
.entry-row + .entry-row { border-top: 1px solid var(--line); }
.kind-race .entry-row { grid-template-columns: 22px minmax(150px, 1.4fr) minmax(120px, 1fr) 96px 60px 96px 136px 96px 88px; min-width: 1000px; }
.kind-quali .entry-row { grid-template-columns: 26px minmax(170px, 1.4fr) minmax(130px, 1fr) 120px 100px; }
.kind-practice .entry-row { grid-template-columns: 26px minmax(170px, 1.4fr) minmax(130px, 1fr) 120px 72px 100px; }
.kind-race { min-width: 1000px; }
.entry-row .input { height: 34px; padding: 0 8px; font-size: 0.86rem; border-radius: 8px; }
.entry-row .select { padding-right: 26px; }
.entry-row .input.narrow { width: 100%; }
.entry-head { padding-top: 10px; padding-bottom: 10px; font: 500 0.64rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.entry-pos { font: 500 0.82rem/1 var(--mono); color: var(--muted); text-align: right; }
.entry-row.is-out .entry-pos { color: var(--red-soft); }
.entry-tools { display: flex; justify-content: flex-end; }
.entry-tools .icon-btn { width: 28px; height: 28px; }
.entry-tools .icon-btn svg { width: 16px; height: 16px; }
.pens { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pen { height: 26px; padding: 0 7px; border: 0; border-radius: 6px; background: rgba(225, 6, 0, 0.16); color: #ffb4ae; font: 600 0.74rem/1 var(--mono); cursor: pointer; }
.pen:hover:not(:disabled) { background: rgba(225, 6, 0, 0.3); text-decoration: line-through; }
.pens .pen-add { width: 76px; height: 28px; padding: 0 22px 0 8px; font-size: 0.76rem; border-style: dashed; }
.session-actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.session-state { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.session-state small { color: var(--muted); font-size: 0.78rem; }
.session-state .unsaved { color: var(--gold); }
.classified { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.classified .notice { margin: 10px; }
.cls { list-style: none; margin: 0; padding: 4px 0; }
.cls-row { display: grid; grid-template-columns: 34px 4px minmax(0, 1fr) auto 34px; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; font-size: 0.86rem; }
.cls-row + .cls-row { border-top: 1px solid var(--line); }
.cls-row.is-out { color: var(--muted); }
.cls-pos { font: 600 0.8rem/1 var(--mono); text-align: right; color: var(--ink); }
.cls-row.is-out .cls-pos { font-size: 0.66rem; color: var(--red-soft); }
.cls-strip { width: 4px; height: 18px; border-radius: 2px; background: var(--team); }
.cls-name { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cls-name small { font: 500 0.7rem/1 var(--mono); color: var(--muted); }
.tag-fl, .tag-pole { padding: 2px 4px; border-radius: 4px; font: 700 0.58rem/1 var(--mono); font-style: normal; background: #9b4dff; color: #fff; }
.tag-pole { background: var(--gold); color: #111; }
.cls-time { font: 500 0.78rem/1 var(--mono); color: var(--text); text-align: right; white-space: nowrap; }
.cls-pen { color: var(--red-soft); }
.cls-pts { font: 600 0.78rem/1 var(--mono); color: var(--green); text-align: right; }

/* licences */
.lic-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 12px; }
.lic-filters .input { width: 240px; }
.lic-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.lic-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 180px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; font-size: 0.86rem; }
.lic-list > * + * { border-top: 1px solid var(--line); }
button.lic-row:hover { background: var(--bg-3); }
.lic-row.is-open { background: var(--bg-3); }
.lic-head { cursor: default; padding-top: 10px; padding-bottom: 10px; font: 500 0.64rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lic-who { display: flex; flex-direction: column; min-width: 0; }
.lic-who b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lic-who small { color: var(--muted); font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px; }
.sl-bar { position: relative; height: 6px; border-radius: 3px; background: var(--bg-4); overflow: hidden; margin-right: 6px; }
.sl-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: 3px; background: linear-gradient(90deg, #a8892f, var(--gold)); }
.sl-meter b { color: var(--ink); font: 600 0.86rem/1 var(--mono); }
.sl-meter small { color: var(--muted); font: 400 0.72rem/1 var(--mono); }
.tier { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 0.76rem; font-weight: 600; background: var(--bg-4); color: var(--text); white-space: nowrap; }
.tier-fia { background: rgba(205, 183, 138, 0.18); color: var(--gold); }
.tier-fpOnly { background: rgba(88, 101, 242, 0.16); color: #b9c0ff; }
.tier-gradeA { background: rgba(47, 191, 113, 0.12); color: var(--green); }
.lic-acad { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lic-item { display: flex; flex-direction: column; }
.lic-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; padding: 16px; background: var(--bg-3); border-top: 1px dashed var(--line-2); }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); }
.tool h3 { margin: 0; font: 600 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.tool-row { display: flex; align-items: center; gap: 8px; }
.tool-row.wrap { flex-wrap: wrap; }
.tool-row .input { height: 36px; }
.tool-row .btn { --h: 36px; padding: 0 14px; font-size: 0.82rem; flex: none; }
.tool .or { color: var(--muted); font-size: 0.8rem; }
.tool-danger { border-color: rgba(225, 6, 0, 0.35); }
.tool-danger h3 { color: var(--red-soft); }
.permit-line { flex: 1; min-width: 0; font-size: 0.86rem; }
.permit-line b { color: var(--ink); }
.submission { padding: 14px 0; border-top: 1px solid var(--line); }
.submission-head { display: flex; justify-content: space-between; gap: 10px; }
.submission-head b { color: var(--ink); }
.submission-head small { color: var(--muted); font: 400 0.74rem/1 var(--mono); }
.evidence { margin: 8px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.88rem; color: var(--text); }

/* my team */
.team-edit { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.logo-preview { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-3); overflow: hidden; color: var(--muted); font: 600 1.2rem/1 var(--mono); }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.member-list { display: flex; flex-direction: column; margin: 0 -20px; }
.member-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 130px 92px minmax(0, 1fr) minmax(0, 1.1fr) auto; align-items: center; gap: 10px; padding: 10px 20px; }
.member-row + .member-row { border-top: 1px solid var(--line); }
.member-row .input { height: 36px; }
.member-row .btn { --h: 34px; padding: 0 14px; font-size: 0.82rem; }
.member-head { padding-top: 4px; padding-bottom: 8px; font: 500 0.64rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.member-who { display: flex; flex-direction: column; min-width: 0; }
.member-who b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-who small { color: var(--muted); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-tier { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.member-tier small { font: 400 0.72rem/1 var(--mono); color: var(--muted); }
.member-num { display: flex; align-items: center; gap: 4px; }
.member-num .input { width: 100%; }
.num-hash { font: 500 0.9rem/1 var(--mono); color: var(--muted); }
.member-rbx { display: flex; align-items: center; gap: 4px; }
.member-rbx .icon-btn svg { width: 16px; height: 16px; }
.callup { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.callup-head { display: flex; align-items: center; gap: 10px; }
.callup-head b { color: var(--ink); }
.callup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.callup-list li { display: flex; align-items: center; gap: 12px; font-size: 0.86rem; }
.callup-list li span { color: var(--ink); }
.callup-list li small { color: var(--muted); }
.callup-list .btn { --h: 30px; padding: 0 12px; font-size: 0.78rem; margin-left: auto; }
.callup .tool-row .input { max-width: 360px; }
@media (max-width: 1500px) {
  .session-grid { grid-template-columns: minmax(0, 1fr); }
  .session-side { position: static; max-width: 560px; }
}
@media (max-width: 1180px) {
  .lic-row { grid-template-columns: minmax(0, 1.4fr) 150px minmax(0, 1fr); }
  .lic-row > :nth-child(4), .lic-row > :nth-child(5) { display: none; }
  .member-row { grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr) auto; }
  .member-row > :nth-child(2), .member-row > :nth-child(4) { display: none; }
}
@media (max-width: 860px) {
  .side-group, .side-team { display: none; }
  .side-foot { display: none; }
  .round-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .round-flag, .round-date, .round-go { display: none; }
  .team-edit { grid-template-columns: minmax(0, 1fr); }
  .member-row { grid-template-columns: minmax(0, 1fr) 80px auto; }
  .member-row > :nth-child(5) { display: none; }
  .entry-toolbar .input { width: 160px; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .pane-body { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; max-height: none; overflow: visible; }
  .path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 64px; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 0; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .side-league, .side-back { display: none; }
  .side-nav { flex-direction: row; gap: 4px; }
  .side-item { white-space: nowrap; padding: 8px 12px; }
  .side-item.is-active { box-shadow: inset 0 -2px 0 var(--red); }
  .pane { padding: 28px 16px 140px; }
  .signin { grid-template-columns: minmax(0, 1fr); padding: 40px 16px 72px; gap: 24px; }
  .signin-art { max-width: 280px; order: -1; }
  .path, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-main { grid-template-columns: minmax(0, 1fr); }
  .pos-grid { grid-template-columns: minmax(0, 1fr) auto; } /* the stepper is small enough to stay beside the name */
  .row { flex-wrap: wrap; }
  .row-tools { width: 100%; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 6px; }
  .pair { grid-template-columns: 1fr; }
  .brand span, .brand em, .me span { display: none; }
  .switch { max-width: 180px; }
  .leagues, .empty { padding: 40px 16px 72px; }
  .league-grid { grid-template-columns: minmax(0, 1fr); }
  .embed-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slider-row { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .path, .tiles { grid-template-columns: minmax(0, 1fr); }
  .savebar p { display: none; }
  .savebar { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .league-card { opacity: 1; transform: none; }
  .signin-circuit .track-tarmac, .empty-logo path { stroke-dashoffset: 0; }
  .tl-playhead { display: none; }
}
