/* VCT Manager League — app shell and colour palettes.
   Direction: a team's front office on match night. Ink-dark surfaces that step up a few points of lightness,
   hairline borders, one accent colour for actions and "now", gold for money. Headlines and big numbers use a
   condensed face, like broadcast lower-thirds and scoreboards; everything you read is Geist. */

/* ---------- Palettes (pick in the sidebar footer) ---------- */
:root, :root[data-palette="warroom"] {
  /* War Room: ink-navy, signal red. The default. */
  --background: #0a0d13;
  --side: #0a0d13;
  --sunken: #080a0f;
  --card: #10141c;
  --card-2: #0d1118;
  --card-hover: #161b25;
  --secondary: #1a202b;
  --muted: #1a202b;
  --accent: #252c3a;
  --border: rgba(150, 172, 214, .10);
  --border-strong: rgba(150, 172, 214, .19);
  --foreground: #e9edf4;
  --muted-foreground: #a0a9bb;
  --dim: #77829a;
  --primary: #ef3b50;
  --primary-hover: #ff5468;
  --on-primary: #fff;
  --secondary-accent: #ef3b50;
  --gold: #e8b450;
  --pos: #4fd88e;
  --neg: #ff7581;
  --win: #3fcf80;
  --loss: #ff5d6c;
  --silver: #c9d1de;
  --bronze: #e98d4f;
  --focus: #8fb4ff;
}
:root[data-palette="broadcast"] {
  /* Broadcast: neutral graphite, HUD cyan. */
  --background: #0b0c0e;
  --side: #0b0c0e;
  --sunken: #08090a;
  --card: #131518;
  --card-2: #0f1113;
  --card-hover: #1a1d21;
  --secondary: #1d2024;
  --muted: #1d2024;
  --accent: #2a2e34;
  --border: rgba(200, 214, 230, .09);
  --border-strong: rgba(200, 214, 230, .17);
  --foreground: #eceff2;
  --muted-foreground: #a3aab3;
  --dim: #7a828c;
  --primary: #39c6e4;
  --primary-hover: #62d6ee;
  --on-primary: #03181e;
  --secondary-accent: #39c6e4;
  --gold: #e6b552;
  --pos: #52d690;
  --neg: #ff7a7a;
  --win: #43cf84;
  --loss: #ff6464;
  --silver: #cfd5dc;
  --bronze: #e39257;
  --focus: #39c6e4;
}
:root[data-palette="ember"] {
  /* Ember: warm charcoal, amber. */
  --background: #100e0d;
  --side: #100e0d;
  --sunken: #0c0a09;
  --card: #181513;
  --card-2: #141110;
  --card-hover: #201c19;
  --secondary: #24201c;
  --muted: #24201c;
  --accent: #322c27;
  --border: rgba(232, 210, 186, .09);
  --border-strong: rgba(232, 210, 186, .17);
  --foreground: #f1ece6;
  --muted-foreground: #b2a99f;
  --dim: #8a8077;
  --primary: #f2a33a;
  --primary-hover: #ffb85c;
  --on-primary: #1f1203;
  --secondary-accent: #f2a33a;
  --gold: #f2c86b;
  --pos: #7fd68a;
  --neg: #ff7f6e;
  --win: #6fcf7c;
  --loss: #ff6a57;
  --silver: #d9d2ca;
  --bronze: #e08b4c;
  --focus: #f2a33a;
}

/* ---------- Base ---------- */
body { background: var(--background); display: block; }
::selection { background: var(--primary); color: var(--on-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-color: var(--background); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--card); padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border-strong); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .money, td.r, .lg-left { font-variant-numeric: tabular-nums; }
h1, h2, h3, .h-title { text-wrap: balance; }

/* Page titles: condensed caps, like a broadcast lower-third. */
.h-title { font-family: var(--font-score); font-size: 30px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.h-sub { font-size: 13.5px; color: var(--muted-foreground); margin-top: 6px; max-width: 72ch; }
.lg-stat > b, .lg-auc-bid .amt, .lg-auc-bid .lg-left, .pcard-ovr b, .pm-ovr b, .mh-score .big, .map-sum .sc, .lg-champ-card b, .pm-head h2, .team-hero h1 {
  font-family: var(--font-score); letter-spacing: 0; font-weight: 700;
}
.lg-stat > b { font-size: 26px; }
.lg-auc-bid .amt { font-size: 34px; }
.pm-head h2, .team-hero h1 { text-transform: uppercase; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.shell-main { min-width: 0; display: flex; flex-direction: column; }
.container { max-width: 1360px; width: 100%; margin: 0 auto; padding: 28px 32px 72px; }
.topbar, .tabbar, .side-scrim { display: none; }

/* ---------- Sidebar ---------- */
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 14px; padding: 16px 12px 12px;
  background: var(--side); border-right: 1px solid var(--border); scrollbar-width: thin;
}
.side-top { display: flex; flex-direction: column; gap: 12px; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.side-brand img { width: 30px; height: 30px; flex: none; }
.side-brand span { display: flex; flex-direction: column; min-width: 0; }
.side-brand b { font-family: var(--font-score); font-size: 17px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; }
.side-brand small { font-size: 11.5px; color: var(--dim); font-weight: 500; }
.side-search {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; width: 100%;
  background: var(--sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--dim); font-size: 13px; text-align: left;
  transition: border-color .15s, color .15s;
}
.side-search:hover { border-color: var(--border-strong); color: var(--muted-foreground); }
.side-search span { flex: 1; }
.side-search kbd { font: 600 11px var(--font-mono); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border-strong); color: var(--dim); }
.side-search .nav-ic { width: 16px; height: 16px; }

/* Your team card: the signature. Your club's colour runs down the edge, money in gold. */
.side-team {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 14px; width: 100%; text-align: left;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc, var(--primary)) 13%, var(--card)), var(--card) 70%);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s;
}
.side-team::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc, var(--primary)); }
.side-team:hover { border-color: var(--border-strong); }
.side-team .lg-logo-img, .side-team img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.side-team-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side-team-t b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-team-t span { font-size: 12px; color: var(--muted-foreground); white-space: nowrap; }
.side-team-t em { font-style: normal; color: var(--gold); font-weight: 600; }
.side-team.empty-t { background: var(--card); }
.side-team.empty-t::before { background: var(--accent); }
.side-team.skel { height: 58px; }

.side-nav { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.nav-g { display: flex; flex-direction: column; gap: 1px; }
.nav-gt { padding: 0 10px 5px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.nav-i {
  position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--radius-sm);
  color: var(--muted-foreground); font-size: 13.5px; font-weight: 500; transition: background .12s, color .12s;
}
.nav-i:hover { background: var(--card); color: var(--foreground); }
.nav-i.on { background: var(--card-hover); color: var(--foreground); font-weight: 600; }
.nav-i.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.nav-i span { flex: 1; }
.nav-ic { width: 17px; height: 17px; flex: none; }
.nav-i.on .nav-ic { color: var(--primary); }
.nav-n { flex: none !important; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.nav-c { flex: none !important; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.nav-live { flex: none !important; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.nav-g-admin { padding-top: 12px; border-top: 1px solid var(--border); }

.side-foot { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.side-foot .auth-slot { flex: 1; min-width: 0; margin: 0; }
.lg-user { width: 100%; height: 42px; padding: 0 8px 0 4px; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; text-align: left; }
.lg-user:hover { background: var(--card); border-color: var(--border); }
.lg-user .nm { flex: 1; max-width: none; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lg-user .nm b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.lg-user .nm small { font-size: 11.5px; color: var(--dim); font-weight: 500; }
.lg-user .chev { width: 14px; height: 14px; color: var(--dim); flex: none; }
.side-foot .lg-login { width: 100%; height: 38px; }
.pal { display: flex; gap: 5px; flex: none; }
.pal button { position: relative; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong); background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }
.pal button::after { content: ""; position: absolute; inset: -6px; }
.pal button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--background), 0 0 0 3.5px var(--foreground); }

/* ---------- Cards & modules: hairline borders, quiet surfaces ---------- */
.card, .module { background: var(--card); border-color: var(--border); }
.module-head { border-bottom-color: var(--border); color: var(--muted-foreground); font-size: 11px; letter-spacing: .07em; }
.input, .select, .textarea { background: var(--sunken); border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--focus); }
.btn { border-color: var(--border-strong); background: var(--card-hover); transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--accent); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-red { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-red:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { background: transparent; border-color: transparent; }
.gtable thead th { color: var(--dim); }
.gtable tbody tr:hover { background: color-mix(in srgb, var(--foreground) 2.5%, transparent); }
.popover { background: var(--card-hover); border-color: var(--border-strong); }
.toast { background: var(--card-hover); border: 1px solid var(--border-strong); color: var(--foreground); }

/* ---------- Overview ---------- */
.ov-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ov-head .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); }
.ov-head h1 { margin: 4px 0 0; font-family: var(--font-score); font-size: 40px; font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
.ov-desk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.desk-team {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 22px 22px 22px 26px;
  background: linear-gradient(105deg, color-mix(in srgb, var(--tc, var(--primary)) 16%, var(--card)) 0%, var(--card) 62%);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.desk-team::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc, var(--primary)); }
.desk-team > img, .desk-team .lg-logo-img { width: 72px; height: 72px; object-fit: contain; }
.desk-team small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
.desk-team h2 { margin: 2px 0 12px; font-family: var(--font-score); font-size: 34px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.desk-team h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.desk-nums { display: flex; gap: 26px; flex-wrap: wrap; }
.desk-nums div { display: flex; flex-direction: column; gap: 2px; }
.desk-nums span { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.desk-nums b { font-family: var(--font-score); font-size: 26px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.desk-nums b.gold { color: var(--gold); }
.desk-nums b small { font-size: 16px; color: var(--dim); font-weight: 600; }
.desk-nums b.warn { color: var(--neg); }
.desk-cta { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px; }
.desk-cta p { margin: 0; color: var(--muted-foreground); }
.desk-todo { display: flex; flex-direction: column; }
.desk-todo .module-head { border-bottom: 1px solid var(--border); }
.todo { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.todo:last-child { border-bottom: 0; }
.todo i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--primary); }
.todo.ok i { background: var(--pos); }
.todo.warn i { background: var(--gold); }
.todo a { flex: 1; }
.todo a:hover { color: var(--primary-hover); }
.todo .go { color: var(--dim); font-size: 12px; }
.ov-rules { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); margin: -4px 0 16px; }
.ov-rules b { color: var(--muted-foreground); font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .shell { display: block; }
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 90; width: min(300px, 86vw); height: auto;
    transform: translateX(-102%); transition: transform .24s cubic-bezier(.23, 1, .32, 1); box-shadow: 0 0 0 1px var(--border);
  }
  .side-open .side { transform: none; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .side-open .side-scrim { opacity: 1; pointer-events: auto; }
  .side-open { overflow: hidden; }
  .topbar {
    display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 60; height: 52px; padding: 0 8px;
    background: color-mix(in srgb, var(--background) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
  }
  .topbar .icon-btn { width: 40px; height: 40px; border-radius: var(--radius-sm); }
  .topbar-brand { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; }
  .topbar-brand img { width: 24px; height: 24px; }
  .topbar-brand b { font-family: var(--font-score); font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--side) 96%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; font-size: 10.5px; font-weight: 600; color: var(--dim); }
  .tabbar a .nav-ic { width: 20px; height: 20px; }
  .tabbar a.on { color: var(--foreground); }
  .tabbar a.on .nav-ic { color: var(--primary); }
  .tabbar a i { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font: 700 10px/16px var(--font-sans); text-align: center; }
  .container { padding: 18px 16px calc(84px + env(safe-area-inset-bottom)); }
  .h-title { font-size: 26px; }
  .ov-head h1 { font-size: 32px; }
  .ov-desk { grid-template-columns: 1fr; }
  .desk-team { grid-template-columns: 1fr; gap: 12px; padding: 18px 18px 18px 22px; }
  .desk-team > img, .desk-team .lg-logo-img { width: 52px; height: 52px; }
  .desk-team h2 { font-size: 28px; }
  .desk-nums { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .side, .side-scrim { transition: none; }
  .btn:active:not(:disabled) { transform: none; }
}

/* ---------- Team page ---------- */
.lg-tstats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.lg-stat.money > b { color: var(--gold); }
.lg-stat.warn > b { color: var(--neg); }
.gtable .lg-pl .lg-aline { flex-wrap: nowrap; }
.ov-desk { align-items: start; }
@media (max-width: 900px) {
  .lg-tstats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg-path { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg-path-step span { display: none; }
  .lg-path-step.now span { display: block; }
  .desk-team { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .desk-team > img, .desk-team .lg-logo-img { width: 44px; height: 44px; }
}
.team-cols { grid-template-columns: minmax(0, 1fr); }
.team-cols > :nth-child(2) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .team-cols > :nth-child(2) { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion (Nov 22 2026) ----------
   One rhythm everywhere: things arrive with a fast ease-out, leave quicker than they came, and only move
   transform/opacity. Page content rises in once per navigation (#app.enter, set by route()); live re-renders
   from the stream never re-animate. Everything is off under prefers-reduced-motion. */
:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .2);
  --dur-fast: 120ms; --dur: 200ms; --dur-slow: 340ms;
}
@keyframes m-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes m-row { from { opacity: 0; transform: translateX(-6px); } }

/* Page entrance: sections rise in, 45ms apart (capped so long pages don't wait). */
#app.enter > * { animation: m-rise var(--dur-slow) var(--ease-out) both; }
#app.enter > *:nth-child(2) { animation-delay: 45ms; }
#app.enter > *:nth-child(3) { animation-delay: 90ms; }
#app.enter > *:nth-child(4) { animation-delay: 135ms; }
#app.enter > *:nth-child(5) { animation-delay: 180ms; }
#app.enter > *:nth-child(n+6) { animation-delay: 220ms; }
/* Table rows and list items slide in after their section. */
#app.enter tbody tr:nth-child(-n+12) { animation: m-row var(--dur-slow) var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 22ms); }
#app.enter .todo li, #app.enter .lg-feed > * { animation: m-row var(--dur-slow) var(--ease-out) both; animation-delay: 160ms; }
#app.enter .lg-loading { animation: none; }
.lg-loading { animation: m-fade var(--dur) var(--ease-out) both; animation-delay: 120ms; }

/* Overlays: scrim fades, the card pops up from just below. */
.overlay { animation: m-fade var(--dur) var(--ease-out) both; }
.overlay > .lg-modal, .overlay > .search-box { animation: m-pop var(--dur-slow) var(--ease-out) both; }
.popover { animation: m-pop var(--dur) var(--ease-out) both; transform-origin: bottom left; }

/* Press feedback and hover lift. */
.btn, .icon-btn, .nav-i, .tabbar a, button { -webkit-tap-highlight-color: transparent; }
.btn, .icon-btn { transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.btn:active:not(:disabled), .icon-btn:active:not(:disabled) { transform: scale(.96); }
.tabbar a:active, .nav-i:active { transform: scale(.97); }
.tabbar a, .nav-i { transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) {
  .mcard, .acard, .tcard, .lg-tcard, .desk-team { transition: border-color var(--dur), transform var(--dur) var(--ease-out), box-shadow var(--dur); }
  a.mcard:hover, a.acard:hover, a.tcard:hover, a.lg-tcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); }
  .gtable tbody tr { transition: background var(--dur-fast); }
}

/* Numbers that just changed (bank, bids, scores): a short flash in the accent colour. */
@keyframes m-flash { 0% { color: var(--primary); } 100% { color: inherit; } }
.m-flash { animation: m-flash 900ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .btn:active, .icon-btn:active, .tabbar a:active, .nav-i:active, a.mcard:hover, a.acard:hover, a.tcard:hover, a.lg-tcard:hover { transform: none; }
}

/* ---------- Team draft ---------- */
.dr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.dr-tabs { margin-bottom: 12px; }
.dr-card { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.dr-card:disabled { cursor: default; opacity: .5; }
.dr-card.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.dr-rank { position: absolute; top: 10px; right: 10px; z-index: 1; min-width: 28px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--primary); color: var(--on-primary);
  font: 700 13px/24px var(--font-score); text-align: center; animation: m-pop var(--dur) var(--ease-out) both; }
@media (hover: hover) { .dr-card:not(:disabled):hover { border-color: var(--border-strong); transform: translateY(-2px); } .dr-card.on:hover { border-color: var(--primary); } }
.dr-card { transition: border-color var(--dur), transform var(--dur) var(--ease-out); }
.dr-card:active:not(:disabled) { transform: scale(.98); }
.dr-rail { position: sticky; top: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.dr-rail-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dr-slot { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 6px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); font-size: 13.5px; }
.dr-slot.on { border-style: solid; border-color: var(--border); background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 14%, var(--card)), var(--card) 60%); animation: m-row var(--dur) var(--ease-out) both; }
.dr-slot b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-n { width: 22px; text-align: center; font: 700 15px var(--font-score); color: var(--dim); flex: none; }
.dr-slot.on .dr-n { color: var(--primary); }
.dr-acts { display: flex; gap: 2px; flex: none; }
.dr-acts .icon-btn { width: 28px; height: 28px; font-size: 13px; }
.dr-save { margin-top: 6px; height: 40px; }
.dr-you { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 900px) {
  .dr-layout { grid-template-columns: 1fr; }
  .dr-rail { order: -1; position: static; }
}
.lg-tl { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.dr-you { gap: 8px; }
