/* Team Management System · 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); }
.league-card.is-add { border-style: dashed; background: transparent; grid-template-columns: auto minmax(0, 1fr); }
.league-card.is-add:hover { border-color: var(--gold); }
.add-plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 30%; border: 1px dashed var(--line-2); color: var(--gold); grid-row: span 2; }
.add-plus svg { width: 20px; height: 20px; }
.league-card.is-waiting { grid-template-columns: auto minmax(0, 1fr) auto; cursor: default; }
.league-card.is-waiting .btn { grid-row: span 2; }
@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; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.steps-list { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps-list li { counter-increment: s; position: relative; padding: 14px 16px 14px 52px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); font-size: 0.9rem; }
.steps-list li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #111; font: 700 0.78rem/1 var(--mono); }
.steps-list b { color: var(--ink); }

/* ------------------------------------------------------------------- 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; }
.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; }
.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; }
.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); } }

/* ------------------------------------------------------------- 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; }
}
