/* DraftSquad prototype page. Page chrome from ../brackets/style.css; the app has its own design system below. */

/* ---------- page ---------- */
.ds-hero { padding-bottom: 18px; }
.ds-hero h1 { font-size: clamp(54px, 6.4vw, 96px); }
.ds-hero .prov { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--ink); }
.proto { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.pt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pt-screens { display: flex; gap: 4px; flex-wrap: wrap; }
.pt-screens button { appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--sub); font: 600 13px Inter, sans-serif; padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pt-screens button:hover { color: var(--ink); border-color: var(--ink); }
.pt-screens button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pt-screens button.prop { border-style: dashed; }
.pt-screens button i { font: 700 9px 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: #c8102e; }
.pt-screens button.on i { color: #ff8a96; }
.pt-right .seg { background: var(--ink); border-color: var(--ink); }
.pt-right .seg button { color: #a9a59a; }
.pt-right .seg button.on { background: var(--paper); color: var(--ink); }
.pt-demo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12.5px; color: var(--mut); }
.pt-lab { font: 700 10.5px 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-right: 4px; }
.pt-demo .seg, .pt-demo .tbtn { background: var(--card); border-color: var(--line); color: var(--ink); }
.pt-demo .seg button { color: var(--mut); }
.pt-demo .seg button.on { background: var(--ink); color: var(--paper); }
.pt-demo .tbtn { padding: 6px 10px; }
.pt-note { margin-left: 4px; }
.stage { display: flex; justify-content: center; }
.frame { position: relative; width: 100%; background: #050507; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(20,19,16,.65), 0 0 0 1px rgba(0,0,0,.5); transition: width .35s cubic-bezier(.2,.8,.2,1), border-radius .35s; }
.frame[data-view="desk"] { height: 860px; }
.frame[data-view="phone"] { width: 390px; height: 844px; border-radius: 48px; padding: 12px; background: #0b0b0e; box-shadow: 0 40px 80px -30px rgba(20,19,16,.7), 0 0 0 2px #2c2c33, inset 0 0 0 2px #1a1a1f; }
.fr-bar { height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #15151b; border-bottom: 1px solid #23232c; }
.fr-dots { display: flex; gap: 7px; }
.fr-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a44; }
.fr-dots i:first-child { background: #ff5f57; } .fr-dots i:nth-child(2) { background: #febc2e; } .fr-dots i:nth-child(3) { background: #28c840; }
.fr-url { flex: 1; max-width: 520px; margin: 0 auto; text-align: center; font: 500 12px 'IBM Plex Mono', monospace; color: #9a9aa8; background: #0d0d12; border-radius: 8px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-status { display: none; }
.frame[data-view="phone"] .fr-bar { height: 34px; background: #0a0a0f; border: 0; border-radius: 36px 36px 0 0; justify-content: space-between; padding: 0 26px; }
.frame[data-view="phone"] .fr-dots, .frame[data-view="phone"] .fr-url { display: none; }
.frame[data-view="phone"] .fr-status { display: flex; width: 100%; justify-content: space-between; font: 600 13px Inter, sans-serif; color: #f5f5f7; }
.frame[data-view="phone"] .fr-status span { font-size: 11px; color: #c9c9d2; }
.fr-screen { position: relative; height: calc(100% - 38px); container-type: inline-size; container-name: app; overflow: hidden; }
.frame[data-view="phone"] .fr-screen { height: calc(100% - 34px); border-radius: 0 0 36px 36px; }

.ds-notes .sec-head { margin-bottom: 24px; }
.nt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nt { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.nt b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.nt p { margin-top: 6px; font-size: 14px; color: var(--sub); }
.ds-notes + .foot { margin-top: 40px; }

body[data-embed="board"] > #board.proto { display: block !important; height: auto; max-width: none; padding: 14px; background: var(--paper); }
body[data-embed="board"] > #board .frame[data-view="desk"] { height: calc(100vh - 110px); min-height: 640px; }

@media (max-width: 1020px) {
  .nt-grid { grid-template-columns: 1fr 1fr; }
  .pt-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .proto { padding: 0 10px; }
  .pt-screens { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .pt-right { display: none; }
  .pt-note { display: none; }
  .frame, .frame[data-view="desk"], .frame[data-view="phone"] { width: 100%; height: 760px; border-radius: 28px; padding: 6px; }
  .frame .fr-bar { display: none; }
  .frame .fr-screen, .frame[data-view="phone"] .fr-screen { height: 100%; border-radius: 22px; }
  .nt-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   App design system
   ===================================================================== */
.dsa {
  --bg: #09090d; --bg2: #101016; --card: #15151d; --card2: #1c1c26; --line: #262633; --line2: #34344a;
  --tx: #f5f5f8; --dim: #a3a3b5; --faint: #66667a; --red: #ff3346; --red2: #ff6170; --win: #2fe08a; --gold: #ffc44d; --violet: #a18cff; --orange: #ff8a3d;
  position: relative; height: 100%; display: grid; grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  background: var(--bg); color: var(--tx); font-family: Inter, system-ui, sans-serif; font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased;
}
.dsa *, .dsa *::before, .dsa *::after { box-sizing: border-box; }
.dsa button { font-family: inherit; color: inherit; }
.dsa .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dsa .up { color: var(--win); } .dsa .down { color: var(--red2); }

/* side nav */
.dsa-side { display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--bg2); min-height: 0; overflow: auto; }
.logo { display: flex; align-items: baseline; font-size: 22px; font-weight: 900; letter-spacing: -.04em; font-style: italic; padding: 0 8px; }
.logo b { color: var(--tx); font-weight: 900; }
.logo span { color: var(--red); }
.logo.sm { font-size: 18px; padding: 0; display: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.sn { appearance: none; border: 0; background: none; display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--dim); cursor: pointer; text-align: left; position: relative; }
.sn:hover { background: var(--card); color: var(--tx); }
.sn.on { background: var(--card2); color: var(--tx); }
.sn.on .ic { color: var(--red); }
.sn-live { width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: auto; animation: ping 1.6s infinite; }
.sn-sep { font: 700 10px 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 4px; }
.sn-prop span::after { content: 'Review'; margin-left: 8px; font: 700 9px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 1px dashed var(--gold); border-radius: 4px; padding: 1px 4px; }
.side-bal { margin-top: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 1px; }
.side-bal small { font-size: 11px; color: var(--dim); }
.side-bal b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.side-bal span { font-size: 12px; color: var(--gold); margin-bottom: 8px; }

/* main */
.dsa-main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; min-width: 0; }
.dsa-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.top-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top-l h2 { font-size: 16px; font-weight: 700; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-r { display: flex; align-items: center; gap: 8px; }
.pill { appearance: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; display: inline-flex; gap: 10px; align-items: baseline; cursor: pointer; }
.pill b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pill span { font: 600 11px 'IBM Plex Mono', monospace; color: var(--gold); white-space: nowrap; }
.pill b { white-space: nowrap; }
.ibtn { appearance: none; border: 1px solid var(--line); background: var(--card); width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; color: var(--dim); flex: none; }
.ibtn:hover { color: var(--tx); border-color: var(--line2); }
.ibtn.sm { width: 28px; height: 28px; border-radius: 8px; }
.ibtn.sm .ic { width: 15px; height: 15px; }
.ibtn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.avbtn { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; }
.av { --c: #888; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 70%, #000)); color: #0a0a0f; font-weight: 800; font-size: 12.5px; letter-spacing: -.02em; }
.av-xs { width: 24px; height: 24px; font-size: 9.5px; }
.av-lg { width: 84px; height: 84px; font-size: 28px; }
.dsa-view { overflow: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.dsa-tabs { display: none; }

/* shared parts */
.scr { padding: 24px 28px 40px; }
.scr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.scr-head h1, .scr h1 { font-size: 32px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.scr-head p { color: var(--dim); margin-top: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.btn { appearance: none; border: 1px solid transparent; border-radius: 12px; padding: 10px 16px; font: 700 14px Inter, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform .12s, filter .12s; }
.btn:active { transform: scale(.97); }
.btn .ic { width: 16px; height: 16px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line2); color: var(--tx); }
.btn-ghost:hover { background: var(--card2); }
.btn:disabled { background: var(--card2); color: var(--faint); border-color: var(--line); cursor: default; transform: none; filter: none; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.big { width: 100%; padding: 15px 18px; font-size: 16px; border-radius: 14px; }
.lnk { appearance: none; border: 0; background: none; color: var(--dim); font: 600 12.5px Inter, sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: 6px; }
.lnk:hover { color: var(--tx); background: var(--card2); }
.lnk .ic { width: 15px; height: 15px; }
.dsa .seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.dsa .seg button { appearance: none; border: 0; background: none; color: var(--dim); font: 600 13px Inter, sans-serif; padding: 7px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.dsa .seg button.on { background: var(--tx); color: var(--bg); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--dim); font: 600 13px Inter, sans-serif; padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--tx); border-color: var(--line2); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 700 10.5px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--card2); color: var(--dim); white-space: nowrap; }
.tag.t-tour { color: #e7e7ef; }
.tag.t-h2h { color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, transparent); }
.tag.t-q4, .tag.t-i9 { color: var(--red2); background: color-mix(in srgb, var(--red) 14%, transparent); }
.tag.t-qq { color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, transparent); }
.tag.t-in { color: var(--win); background: color-mix(in srgb, var(--win) 13%, transparent); }
.tag.t-live { color: #fff; background: var(--red); }
.tag .live-dot { background: #fff; }
.tag.t-prop { color: var(--gold); background: transparent; border: 1px dashed var(--gold); }
.tbar { display: inline-flex; flex-direction: column; gap: 2px; margin-right: 8px; vertical-align: middle; flex: none; }
.tbar i { display: block; width: 4px; height: 12px; border-radius: 2px; }
.bar { height: 6px; border-radius: 3px; background: var(--card2); overflow: hidden; }
.bar s { display: block; height: 100%; background: var(--red); border-radius: 3px; text-decoration: none; transition: width .3s; }
.bar s.neg { background: var(--orange); }
.empty { color: var(--dim); padding: 20px 4px; font-size: 13.5px; }
.pz { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; font: 700 10.5px 'IBM Plex Mono', monospace; letter-spacing: .06em; padding: 4px 5px; border-radius: 6px; background: var(--card2); color: var(--dim); }
.h4 { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 12px 0 6px; }
.h4 em { margin-left: auto; font-style: normal; letter-spacing: .08em; color: var(--faint); font-size: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font: 700 10.5px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--tx); font-variant-numeric: tabular-nums; }
.tbl td .av { margin-right: 8px; vertical-align: middle; }
.tbl td.dim { color: var(--dim); font-size: 12px; }
.tbl tr.me td { background: color-mix(in srgb, var(--red) 12%, transparent); font-weight: 700; }
.tbl.sm td { padding: 8px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: ping 1.6s infinite; flex: none; }
.live-dot.sm { width: 7px; height: 7px; }

/* sheet + toast */
.dsa-scrim { position: absolute; inset: 0; background: rgba(4,4,8,.72); z-index: 40; animation: fadeIn .2s; }
.dsa-scrim[hidden], .dsa-sheet[hidden], .dsa-toast[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.dsa-sheet { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); max-height: 82%; overflow: auto; z-index: 41; background: var(--bg2); border: 1px solid var(--line2); border-radius: 22px; padding: 20px 22px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: popIn .25s cubic-bezier(.2,.9,.3,1.15); }
.dsa-sheet.wide { width: min(720px, calc(100% - 32px)); }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.sh-grab { display: none; }
.sh-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sh-h b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.sh-h .kick { display: block; font: 700 10.5px 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--red2); }
.sh-p { color: var(--dim); font-size: 13px; margin-bottom: 12px; }
.sh-fine { color: var(--faint); font-size: 12px; margin-top: 10px; text-align: center; }
.imps { display: flex; flex-direction: column; }
.imp { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.imp:has(.tb) { grid-template-columns: 4px minmax(0, 1fr) auto; }
.imp .tb { width: 4px; height: 30px; border-radius: 2px; }
.imp b { display: block; font-size: 14px; }
.imp span { font-size: 12px; color: var(--dim); }
.imp.no { opacity: .5; }
.rows { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; margin: 12px 0; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; }
.rows span { color: var(--dim); }
.rows b { font-variant-numeric: tabular-nums; }
.rows .neg b { color: var(--orange); }
.fld { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; font-size: 12.5px; color: var(--dim); }
.fld input, .fld select, .dsa input[type=text], .dsa input[type=search], .dsa input[type=number], .dsa input[type=email], .dsa select, .dsa textarea { background: var(--bg); border: 1px solid var(--line2); color: var(--tx); border-radius: 12px; padding: 11px 13px; font: 500 14px Inter, sans-serif; outline: none; width: 100%; min-width: 0; }
.dsa input:focus, .dsa select:focus, .dsa textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent); }
.warn { color: var(--orange); font-size: 13px; margin-bottom: 10px; }
.sub-c { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sub-c b { font-size: 17px; }
.sub-c span:last-child { color: var(--dim); font-size: 13px; }
.done { text-align: center; padding: 12px 4px 4px; }
.done-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--win); color: #062; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; animation: popIn2 .4s cubic-bezier(.2,.9,.3,1.4); }
.done-ic .ic { width: 30px; height: 30px; stroke-width: 2.6; color: #04220f; }
@keyframes popIn2 { from { transform: scale(.4); opacity: 0; } }
.done b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.done p { color: var(--dim); margin: 6px 0 16px; }
.done-acts { display: flex; gap: 8px; justify-content: center; }
.dsa-toast { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); z-index: 45; min-width: 280px; max-width: calc(100% - 32px); background: var(--card2); border: 1px solid var(--line2); border-radius: 16px; padding: 10px 16px; font-size: 13.5px; box-shadow: 0 18px 50px rgba(0,0,0,.55); text-align: center; pointer-events: none; }
.dsa-toast.run { animation: toastIn .4s cubic-bezier(.2,.9,.3,1.2); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -12px); } }
.dsa-toast.td { background: #0d0d12; border-color: color-mix(in srgb, var(--red) 60%, transparent); padding: 12px 22px; box-shadow: 0 0 80px -16px var(--red), 0 18px 50px rgba(0,0,0,.6); }
.dsa-toast.td small { display: block; font: 700 10.5px 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--red2); }
.dsa-toast.td b { display: block; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.dsa-toast.td span { color: var(--dim); }
.dsa-toast.td.mine span { color: var(--win); font-weight: 700; }

/* ---------- lobby ---------- */
.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.live-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 20px; border-radius: 18px; margin-bottom: 18px; background: radial-gradient(120% 180% at 0% 0%, color-mix(in srgb, var(--red) 26%, transparent), transparent 55%), var(--card); border: 1px solid color-mix(in srgb, var(--red) 40%, var(--line)); }
.lh-l { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; min-width: 0; }
.lh-l b { font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.lh-l > span:last-child { color: var(--dim); font-size: 13px; display: flex; align-items: center; }
.lh-m { display: flex; gap: 22px; }
.lh-m small, .lv-me small, .res-me small { display: block; font-size: 11px; color: var(--dim); }
.lh-m b { font-size: 24px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lh-m em { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 4px; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.cc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.cc:hover { border-color: var(--line2); transform: translateY(-2px); }
.cc.entered { border-color: color-mix(in srgb, var(--win) 35%, var(--line)); }
.cc-top { display: flex; gap: 6px; align-items: center; }
.cc-sport { margin-left: auto; font: 700 10.5px 'IBM Plex Mono', monospace; color: var(--faint); letter-spacing: .1em; }
.cc-game { display: flex; align-items: center; min-width: 0; }
.cc-game .tbar i { height: 16px; }
.cc-game b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.cc-game span { font-size: 12.5px; color: var(--dim); }
.cc-per { color: var(--gold) !important; }
.cc-by { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--violet); margin-top: -4px; }
.cc-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-nums div { background: var(--bg2); border-radius: 10px; padding: 8px 10px; }
.cc-nums dt { font-size: 11px; color: var(--dim); }
.cc-nums dd { font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cc-fill { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--dim); }
.cc-fill b { color: var(--tx); }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.cc-cd { font: 600 12px 'IBM Plex Mono', monospace; color: var(--tx); display: inline-flex; align-items: center; gap: 6px; min-width: 0; line-height: 1.3; }

/* ---------- draft ---------- */
.d-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.d-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.d-title b { font-size: 24px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.d-title > span:last-child { display: flex; align-items: center; color: var(--dim); font-size: 13px; }
.d-title em { font-style: normal; color: var(--tx); margin-left: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }
.d-nums { display: flex; gap: 8px; margin-left: auto; }
.d-nums div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 84px; }
.d-nums dt { font-size: 11px; color: var(--dim); }
.d-nums dd { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.d-pool { padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.d-tools { display: flex; gap: 8px; }
.search { position: relative; flex: 1; display: block; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); }
.dsa .search input { padding-left: 38px; }
.posf { margin: 12px 0 8px; }
.posf .chip { padding: 6px 12px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.pr-head, .pr { display: grid; grid-template-columns: 44px minmax(0, 1fr) 62px 72px 38px; gap: 10px; align-items: center; }
.pr-head { font: 700 10px 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.pr-head span:nth-child(3), .pr-head span:nth-child(4) { text-align: right; }
.pr-list { max-height: 560px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.pr { padding: 8px 4px; border-bottom: 1px solid var(--line); border-radius: 10px; transition: background .15s; }
.pr:hover { background: var(--card2); }
.pr.in { background: color-mix(in srgb, var(--red) 10%, transparent); }
.pr-n { display: grid; grid-template-columns: 4px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; min-width: 0; }
.pr-n i { grid-row: 1 / 3; border-radius: 2px; }
.pr-n b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-n em { font: 500 11px 'IBM Plex Mono', monospace; color: var(--faint); font-style: normal; }
.pr-f { text-align: right; font: 600 13px 'IBM Plex Mono', monospace; }
.pr-f small { display: block; font-size: 9px; color: var(--faint); letter-spacing: .08em; }
.pr-s { text-align: right; font: 700 13.5px 'IBM Plex Mono', monospace; }
.pr-s.over { color: var(--orange); }
.add { appearance: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card2); color: var(--tx); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .12s, background .15s; }
.add:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }
.add:active { transform: scale(.9); }
.add.rm { background: var(--red); border-color: var(--red); color: #fff; }
.add:disabled { opacity: .3; cursor: default; }
.add .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.d-lu { padding: 16px; position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; }
.pers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pers.p9 { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.per { appearance: none; border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.per b { font-size: 15px; font-weight: 800; }
.per span { font: 600 10.5px 'IBM Plex Mono', monospace; color: var(--faint); display: inline-flex; }
.per span .ic { width: 14px; height: 14px; color: var(--win); stroke-width: 2.6; }
.per.ok { border-color: color-mix(in srgb, var(--win) 40%, var(--line)); }
.per.bad span { color: var(--orange); }
.per.on { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.per.on span { color: var(--bg); opacity: .7; }
.per.on span .ic { color: var(--bg); }
.pers.p9 .per { padding: 7px 0; border-radius: 10px; }
.pers.p9 .per b { font-size: 14px; }
.per-one { font: 700 11px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.d-meter { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.dm-top { display: flex; justify-content: space-between; }
.dm-top small { display: block; font-size: 11px; color: var(--dim); }
.dm-top b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dm-top b.neg { color: var(--orange); }
.dm-top .r { text-align: right; }
.dm-top .r b { font-size: 20px; color: var(--dim); }
.dm-sub { display: flex; justify-content: space-between; font: 500 11.5px 'IBM Plex Mono', monospace; color: var(--faint); }
.slots-h { display: flex; align-items: center; gap: 8px; }
.slots-h b { font-size: 15px; }
.slots-h > span { font: 600 12px 'IBM Plex Mono', monospace; color: var(--faint); }
.sl-acts { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.slots { display: flex; flex-direction: column; gap: 6px; }
.lslot { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 28px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); min-height: 50px; }
.lslot.empty { appearance: none; border-style: dashed; cursor: pointer; text-align: left; grid-template-columns: 44px minmax(0, 1fr) 20px; color: var(--faint); font: 500 13px Inter, sans-serif; }
.lslot.empty:hover { border-color: var(--red); color: var(--tx); }
.lslot.empty .ic { width: 16px; height: 16px; }
.lslot.pop { animation: slotPop .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes slotPop { 0% { transform: scale(.94); border-color: var(--red); } 100% { transform: none; } }
.sl-n { display: grid; grid-template-columns: 4px minmax(0, 1fr); column-gap: 8px; min-width: 0; }
.sl-n i { grid-row: 1 / 3; border-radius: 2px; }
.sl-n b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-n em { font: 500 10.5px 'IBM Plex Mono', monospace; color: var(--faint); font-style: normal; }
.lslot.empty .sl-n { display: block; }
.sl-s { font: 700 12.5px 'IBM Plex Mono', monospace; }
.rmx { appearance: none; border: 0; background: none; color: var(--faint); cursor: pointer; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.rmx:hover { color: var(--red2); background: var(--card2); }
.rmx .ic { width: 15px; height: 15px; }
.d-cta { padding-top: 4px; }

/* ---------- live ---------- */
.scr.live { padding-top: 18px; }
.lv-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 12px; }
.lv-t { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.lv-t b { font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.lv-t > span:last-child { display: flex; align-items: center; color: var(--dim); font-size: 12.5px; }
.lv-me { display: flex; gap: 24px; }
.lv-me b, .res-me b { font-size: 28px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lv-me b.win, .res-me b.win { color: var(--win); }
.lv-me em, .res-me em { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 4px; }
.lv-tlrow { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; margin-bottom: 12px; }
.ltl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ltl-seg { appearance: none; position: relative; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; cursor: pointer; min-width: 0; transition: border-color .2s, background .2s; }
.ltl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ltl-top b { font-size: 15px; font-weight: 900; }
.ltl-st { font: 700 10px 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.ltl-pts { font-size: 24px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ltl-pts small { font-size: 11px; font-weight: 600; color: var(--dim); letter-spacing: 0; }
.ltl-pts em { font-style: normal; color: var(--dim); }
.ltl-sub { font: 500 11px 'IBM Plex Mono', monospace; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltl-bar { display: block; height: 3px; border-radius: 2px; background: var(--line); margin-top: 6px; overflow: hidden; }
.ltl-bar s { display: block; height: 100%; background: var(--dim); text-decoration: none; transition: width .3s; }
.ltl-ic { position: absolute; right: 10px; bottom: 14px; color: var(--faint); }
.ltl-ic .ic { width: 13px; height: 13px; }
.ltl-seg.locked { opacity: .78; }
.ltl-seg.live { border-color: color-mix(in srgb, var(--red) 65%, var(--line)); }
.ltl-seg.live .ltl-st { color: var(--red2); }
.ltl-seg.live .ltl-bar s { background: var(--red); }
.ltl-seg.open { border-style: dashed; border-color: var(--line2); }
.ltl-seg.open .ltl-st { color: var(--gold); }
.ltl-seg.sel { border: 1.5px solid var(--tx); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tx) 12%, transparent); opacity: 1; }
.lv-cd { border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; transition: background .3s; }
.lv-cd small { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.lv-cd b { font: 600 34px/1.1 'IBM Plex Mono', monospace; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lv-cd span { font-size: 11.5px; color: var(--dim); }
.lv-cd.hot { background: var(--red); border-color: var(--red); }
.lv-cd.hot small, .lv-cd.hot span { color: #fff; opacity: .85; }
.dsa .lv-tabs { display: none; margin-bottom: 12px; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 12px; align-items: start; }
.lv-grid .lv-game { display: none; }
.lv-head { display: grid !important; grid-template-columns: minmax(0, 1fr) 470px auto; }
.lv-mini { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 10px; align-items: center; }
.lv-mini .field { margin: 0; }
.lv-mini .bug { padding: 6px 10px; }
.lv-mini .bug-t strong { font-size: 20px; }
.lv-mini .bug-t { grid-template-columns: 4px 32px minmax(0, 1fr) 30px; padding: 1px 0; }
.lv-t > span:last-child { margin-top: -2px; }
.plays.tall { max-height: 560px; }
.lv-game, .lv-side, .lv-mine { padding: 14px; min-width: 0; }
.bug { border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); padding: 8px 12px; }
.bug.flash { animation: bugFlash 1.2s ease-out; }
@keyframes bugFlash { 0% { border-color: var(--red); box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 30%, transparent); } }
.bug-t { display: grid; grid-template-columns: 4px 36px minmax(0, 1fr) 34px; gap: 8px; align-items: center; padding: 3px 0; }
.bug-t i { height: 22px; border-radius: 2px; }
.bug-t b { font-weight: 900; }
.bug-t span { color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bug-t strong { font-size: 24px; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.bug-t.poss span::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-left: 6px; vertical-align: middle; }
.bug-sit { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; font: 600 11px 'IBM Plex Mono', monospace; color: var(--dim); }
.bug-sit span:first-child { color: var(--red2); white-space: nowrap; }
.bug-sit span:last-child { text-align: right; }
.field { width: 100%; height: auto; display: block; margin: 10px 0 4px; }
.f-bg { fill: #12301f; }
.f-yl { stroke: rgba(255,255,255,.18); }
.f-num { font: 600 8px 'IBM Plex Mono', monospace; fill: rgba(255,255,255,.38); text-anchor: middle; }
.f-los { stroke: #fff; stroke-width: 1.5; }
.f-fd { stroke: var(--gold); stroke-width: 2; }
.f-ball { fill: #8a4b22; stroke: #fff; stroke-width: .8; }
.plays { display: flex; flex-direction: column; max-height: 420px; overflow: auto; scrollbar-width: thin; }
.pp { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.pp:first-child { animation: ppIn .45s cubic-bezier(.2,.9,.3,1.1); }
@keyframes ppIn { from { opacity: 0; transform: translateY(-6px); } }
.pp em { font: 500 10.5px 'IBM Plex Mono', monospace; color: var(--faint); font-style: normal; padding-top: 2px; white-space: nowrap; }
.pp span { color: var(--dim); min-width: 0; }
.pp small { display: block; font: 500 10.5px 'IBM Plex Mono', monospace; color: var(--gold); }
.pp b { font: 700 12.5px 'IBM Plex Mono', monospace; color: var(--win); }
.pp.mine span, .pp.td span, .pp.sys span { color: var(--tx); }
.pp.td span, .pp.sys span { font-weight: 700; }
.lm-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.lm-h > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lm-h b { font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.lm-h em { font-style: normal; font-size: 12.5px; color: var(--dim); }
.st { font: 700 10px 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line2); color: var(--dim); }
.st.live { color: var(--red2); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.st.open { color: #1a1205; background: var(--gold); border-color: transparent; }
.lm-cap { font: 500 12px 'IBM Plex Mono', monospace; color: var(--dim); }
.lm-cap b { color: var(--tx); }
.lm-cap i { font-style: normal; color: var(--gold); }
.pcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lpc { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 11px; display: flex; flex-direction: column; gap: 1px; min-height: 132px; overflow: hidden; }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-sal { font: 600 11px 'IBM Plex Mono', monospace; color: var(--faint); }
.pc-n { display: flex; align-items: center; gap: 7px; margin-top: 7px; min-width: 0; }
.pc-n i { width: 4px; height: 16px; border-radius: 2px; flex: none; }
.pc-n b { font-size: 13.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-t { font: 500 10.5px 'IBM Plex Mono', monospace; color: var(--faint); padding-left: 11px; display: flex; gap: 6px; }
.pc-t em { font-style: normal; color: var(--red2); font-weight: 600; }
.pc-pts { display: flex; align-items: baseline; gap: 4px; margin-top: auto; position: relative; }
.pc-pts strong { font-size: 26px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pc-pts strong.proj { color: var(--dim); }
.pc-pts span { font-size: 11px; color: var(--dim); }
.pc-up { font-style: normal; font: 700 15px 'IBM Plex Mono', monospace; color: var(--win); margin-left: 6px; animation: floatUp 1.8s ease-out forwards; }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.pc-line { font: 500 10.5px 'IBM Plex Mono', monospace; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 60px; }
.lpc > .btn { position: absolute; right: 9px; bottom: 9px; }
.lpc.open { border-style: dashed; }
.lpc.locked { opacity: .82; }
.lpc.onf { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.lpc.hit { animation: hit 1.6s ease-out; }
@keyframes hit { 0% { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 22%, var(--bg2)); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 50% { border-color: var(--gold); } 100% { box-shadow: 0 0 0 14px transparent; } }
.res-me { display: flex; gap: 26px; padding: 14px 16px; background: var(--bg2); border-radius: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.sd-tabs { width: 100%; margin-bottom: 10px; }
.sd-tabs button { flex: 1; }
.sr-h, .sr { display: grid; grid-template-columns: 40px 24px minmax(0, 1fr) 54px 60px; gap: 8px; align-items: center; }
.sr-h { font: 700 10px 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 0 4px 6px; }
.sr-h span:nth-child(2) { grid-column: 2 / 4; }
.sr-h span:nth-child(3) { text-align: right; }
.sr { padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.sr em { font: 600 11.5px 'IBM Plex Mono', monospace; color: var(--faint); font-style: normal; }
.sr-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr b { font: 700 13px 'IBM Plex Mono', monospace; text-align: right; }
.sr-a { display: flex; gap: 3px; justify-content: flex-end; }
.sr.me { background: color-mix(in srgb, var(--red) 13%, transparent); border-radius: 10px; }
.sr.me .sr-n { font-weight: 800; }
.sr-gap { text-align: center; color: var(--faint); padding: 2px; }
.sd-note { font-size: 12px; color: var(--faint); margin-top: 10px; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow: auto; margin-bottom: 10px; }
.cm { display: flex; gap: 8px; align-items: flex-start; }
.cm b { display: block; font-size: 12px; color: var(--dim); }
.cm span { font-size: 13px; }
.cm.me b { color: var(--red2); }
.msg-in { display: flex; gap: 8px; }
.qseg { margin-bottom: 10px; }

/* ---------- phone layout (container) ---------- */
@container app (max-width: 700px) {
  .dsa { grid-template-columns: minmax(0, 1fr); }
  .dsa-side { display: none; }
  .logo.sm { display: flex; }
  .dsa-top { height: 54px; padding: 0 14px; }
  .top-l h2 { font-size: 14px; }
  .dsa-top .ibtn[data-go="social"] { display: none; }
  .dsa-view { padding-bottom: 76px; }
  .dsa-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; height: 68px; padding: 6px 6px 10px; background: color-mix(in srgb, var(--bg2) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tb { appearance: none; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--faint); cursor: pointer; border-radius: 12px; }
  .tb.on { color: var(--tx); }
  .tb.on .ic { color: var(--red); }
  .dsa[data-route="draft"] .dsa-tabs { display: none; }
  .dsa[data-route="draft"] .dsa-view { padding-bottom: 0; }
  .scr { padding: 16px 14px 28px; }
  .scr-head h1, .scr h1 { font-size: 26px; }
  .hide-sm { display: none !important; }
  .dsa-sheet { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%; max-height: 88%; border-radius: 26px 26px 0 0; border-bottom: 0; padding: 8px 16px 22px; animation: sheetUp .3s cubic-bezier(.2,.9,.3,1.05); }
  .dsa-sheet.wide { width: 100%; }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
  .sh-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 2px auto 12px; }
  .dsa-toast { top: 64px; min-width: 0; width: calc(100% - 24px); }
  /* lobby */
  .filters { gap: 10px; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px; scrollbar-width: none; }
  .live-hero { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .lh-m { gap: 16px; }
  .live-hero .btn { width: 100%; }
  .cc-grid { grid-template-columns: minmax(0, 1fr); }
  /* draft */
  .d-head { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
  .d-head > .ibtn { order: 0; }
  .d-title { flex: 1; }
  .d-title b { font-size: 19px; }
  .d-nums { width: 100%; margin: 0; }
  .d-nums div { flex: 1; min-width: 0; padding: 6px 10px; }
  .d-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .d-lu { position: static; order: -1; padding: 12px; }
  .slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lslot, .lslot.empty { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 2px; min-height: 64px; padding: 6px 7px; position: relative; align-content: start; }
  .lslot .pz { justify-self: start; min-width: 0; padding: 2px 5px; font-size: 9.5px; }
  .lslot .sl-n { grid-template-columns: 3px minmax(0, 1fr); column-gap: 5px; }
  .lslot .sl-n b { font-size: 12px; }
  .lslot .sl-n em { display: none; }
  .lslot .sl-s { font-size: 11px; color: var(--dim); }
  .lslot .rmx { position: absolute; top: 3px; right: 2px; width: 24px; height: 24px; }
  .lslot.empty .sl-n { font-size: 11px; line-height: 1.2; }
  .lslot.empty > .ic { display: none; }
  .sl-acts .lnk { font-size: 0; gap: 0; padding: 6px; }
  .sl-acts .lnk .ic { width: 18px; height: 18px; }
  .sl-acts .lnk[data-clear] { font-size: 12.5px; }
  .pr-head { display: none; }
  .pr { grid-template-columns: 38px minmax(0, 1fr) auto 36px; gap: 8px; padding: 10px 2px; }
  .pr .pr-f { display: none; }
  .pr-n em::after { content: attr(data-f); }
  .pr-list { max-height: none; }
  .d-pool { padding: 12px; }
  .d-cta { position: sticky; bottom: 0; margin: 0 -12px -12px; padding: 10px 12px 12px; background: linear-gradient(transparent, var(--card) 30%); }
  .dm-top b { font-size: 22px; }
  .pers.p9 { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; }
  .pers.p9 .per span { font-size: 9px; }
  .pers.p9 .per span .ic { width: 11px; height: 11px; }
  /* live */
  .scr.live { padding-top: 12px; }
  .lv-head { display: flex !important; flex-direction: column; align-items: stretch; padding: 12px 14px; gap: 10px; }
  .lv-mini { display: none; }
  .live[data-tab="game"] .lv-grid .lv-game { display: block; }
  .dsa .lv-tabs { display: flex; width: 100%; }
  .lv-t b { font-size: 18px; }
  .lv-t > span:last-child { font-size: 11.5px; }
  .lv-me { gap: 0; justify-content: space-between; }
  .lv-me b { font-size: 22px; }
  .lv-tlrow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ltl { gap: 5px; }
  .ltl-seg { padding: 7px 7px 8px; border-radius: 12px; }
  .ltl-top b { font-size: 13px; }
  .ltl-st { font-size: 8.5px; letter-spacing: 0; }
  .ltl-st .lg { display: none; }
  .pill span { display: none; }
  .d-title > span:last-child { flex-wrap: wrap; row-gap: 2px; }
  .ltl-seg.locked .ltl-st { font-size: 0; }
  .ltl-ic { display: block !important; right: 7px; top: 9px; bottom: auto; }
  .ltl-seg.live .ltl-st { font-size: 0; }
  .ltl-seg.live .ltl-st::before { content: 'Live'; font-size: 8.5px; }
  .ltl-pts { font-size: 17px; }
  .ltl-pts small { display: none; }
  .ltl-sub { display: none; }
  .lv-cd { flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px; flex-wrap: wrap; }
  .lv-cd b { font-size: 26px; order: -1; }
  .lv-cd small { flex: 1; }
  .lv-cd span { width: 100%; }
  .lv-tabs button { flex: 1; }
  .lv-grid { grid-template-columns: minmax(0, 1fr); }
  .live[data-tab="mine"] .lv-game, .live[data-tab="mine"] .lv-side, .live[data-tab="side"] .lv-game, .live[data-tab="side"] .lv-mine, .live[data-tab="game"] .lv-mine, .live[data-tab="game"] .lv-side { display: none; }
  .pcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lpc { min-height: 124px; }
  .pc-line { padding-right: 0; margin-bottom: 26px; }
  .lpc.locked .pc-line, .lpc.live .pc-line { margin-bottom: 0; }
  .sr-h, .sr { grid-template-columns: 44px 24px minmax(0, 1fr) 56px 62px; }
  .tbl th, .tbl td { padding: 8px 6px; }
}
@container app (min-width: 701px) and (max-width: 1060px) {
  .lv-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .lv-head { grid-template-columns: minmax(0, 1fr) auto; }
  .lv-mini { grid-column: 1 / -1; grid-row: 2; }
  .d-grid { grid-template-columns: minmax(0, 1fr) 330px; }
}

/* ---------- create ---------- */
.cr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.cr-form { padding: 18px 20px; }
.fr { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fl { font-size: 13px; color: var(--dim); }
.fv { font-size: 14px; }
.dsa .fr .seg { flex-wrap: wrap; }
.dsa .seg button:disabled { opacity: .35; cursor: default; }
.cr-form .fld { margin: 12px 0; }
.cr-side .h4:first-child { margin-top: 0; }
.cr-side .cc { pointer-events: none; }
.cr-side .cc .btn { pointer-events: none; }
.mine { display: flex; flex-direction: column; gap: 8px; }
.mc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mc b { display: block; font-size: 14.5px; }
.mc span { font-size: 12px; color: var(--dim); }
.mc .tag { font-size: 9.5px; padding: 2px 6px; }
.mc-a { display: flex; gap: 6px; }
.sh-fine.left { text-align: left; }

/* ---------- social ---------- */
.dsa .tabs3 { margin-bottom: 14px; }
.upd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.upd { padding: 8px 18px; }
.upd-h { padding: 8px 0 6px; }
.upd-i { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.upd-i:last-child { border-bottom: 0; }
.upd-i p { color: var(--dim); font-size: 14px; }
.upd-i time { font: 500 11.5px 'IBM Plex Mono', monospace; color: var(--faint); }
.upd-i.admin { background: color-mix(in srgb, var(--red) 8%, transparent); border-radius: 12px; padding: 12px; margin: 6px -12px; border: 0; }
.upd-i.admin b { font-size: 13px; }
.upd-i.admin p { color: var(--tx); }
.lnk2 { appearance: none; border: 0; background: none; padding: 0; color: var(--tx); font: 700 14px Inter, sans-serif; cursor: pointer; text-align: left; }
.lnk2:hover { color: var(--red2); }
.lnk2.who { color: var(--tx); }
.ppl-c { padding: 14px 16px; }
.ppl-c .h4 { margin-top: 0; }
.ppl { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ppl .lnk2 b { display: block; font-size: 13.5px; }
.ppl .lnk2 span { display: block; font-size: 11.5px; color: var(--dim); font-weight: 500; }
.msgs-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 12px; height: 600px; }
.th-list { padding: 10px; overflow: auto; }
.th-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.th { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; }
.th:hover { background: var(--card2); }
.th.on { background: color-mix(in srgb, var(--red) 13%, var(--card2)); }
.th b { display: block; font-size: 13.5px; }
.th span { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th time { font: 500 11px 'IBM Plex Mono', monospace; color: var(--faint); align-self: start; padding-top: 2px; }
.th .ibtn { position: absolute; right: 8px; bottom: 8px; opacity: 0; width: 24px; height: 24px; }
.th:hover .ibtn { opacity: 1; }
.th-view { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 0; overflow: hidden; }
.tv-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tv-h b { display: block; font-size: 16px; }
.tv-h span { font-size: 12.5px; color: var(--dim); }
.tv-back { display: none; }
.tv-msgs { overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tm { display: flex; gap: 8px; align-items: flex-end; max-width: 80%; position: relative; }
.tm.me { align-self: flex-end; flex-direction: row-reverse; }
.bub { background: var(--card2); border-radius: 16px 16px 16px 4px; padding: 9px 13px; font-size: 14px; }
.tm.me .bub { background: var(--red); color: #fff; border-radius: 16px 16px 4px 16px; }
.bub time { display: block; font: 500 10px 'IBM Plex Mono', monospace; opacity: .6; margin-top: 3px; }
.tm-x { opacity: 0; width: 22px !important; height: 22px !important; }
.tm:hover .tm-x { opacity: 1; }
.th-view .msg-in { padding: 12px 16px; border-top: 1px solid var(--line); }
.prof-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.prof { padding: 22px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.pf-h { font-size: 20px; font-weight: 900; letter-spacing: -.02em; margin-top: 8px; }
.pf-n { color: var(--dim); font-size: 13px; }
.pf-acts { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; justify-content: center; }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
.pf-stats div { background: var(--bg2); border-radius: 12px; padding: 10px 6px; }
.pf-stats small { display: block; font-size: 10.5px; color: var(--dim); }
.pf-stats b { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pf-fol { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--dim); }
.pf-fol b { color: var(--tx); }
.pf-switch { width: 100%; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; text-align: left; }
.pf-switch > span { font-size: 11px; color: var(--faint); display: block; margin-bottom: 6px; }
.pf-switch .chip { padding: 5px 10px; font-size: 12px; }
.prof-c { padding: 16px; min-width: 0; }
.prof-c .h4 { margin-top: 0; }
.pc-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.pcl { appearance: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.pcl b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcl > span:last-child { font: 600 11px 'IBM Plex Mono', monospace; color: var(--faint); }
.pcl.on { border-color: var(--red); }
.ld-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.ld-h span { font-size: 12.5px; color: var(--dim); }
.tbl-wrap { overflow-x: auto; }
.tbl tr.ns td:nth-child(2) { color: var(--dim); }

/* ---------- wallet ---------- */
.wal-top { margin-bottom: 14px; }
.bal { padding: 20px 22px; background: radial-gradient(120% 200% at 100% 0%, color-mix(in srgb, var(--red) 22%, transparent), transparent 55%), var(--card); }
.bal small { font-size: 12px; color: var(--dim); }
.bal > b { display: block; font-size: 46px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bal-sub { display: flex; gap: 22px; margin-top: 6px; font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.bal-sub b { color: var(--tx); }
.wal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.wcard { padding: 18px 20px; margin-bottom: 14px; }
.wal-grid .wcard { margin-bottom: 0; }
.wcard h3 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.amts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.amt { appearance: none; border: 1.5px solid var(--line2); background: var(--bg2); border-radius: 14px; padding: 14px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.amt b { font-size: 19px; font-weight: 900; }
.amt.on { border-color: var(--red); background: color-mix(in srgb, var(--red) 14%, var(--bg2)); }
.amt.cust { padding: 6px; }
.amt.cust span { font-size: 11px; color: var(--dim); }
.dsa .amt.cust input { padding: 4px 6px; text-align: center; border-radius: 8px; font-weight: 700; }
.wcard .btn.big { margin-top: 12px; }
.addr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; background: var(--bg2); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.addr span { font-size: 12.5px; color: var(--dim); grid-column: 1; }
.addr .lnk { grid-row: 1 / 3; grid-column: 2; align-self: center; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co:last-child { border-bottom: 0; }
.co b { display: block; font-size: 16px; }
.co > div > span { font-size: 12px; color: var(--dim); }
.trk { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); }
.trk i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); flex: none; }
.trk i.on { background: var(--win); }
.trk.rejected i.on + span + i.on, .trk.cancelled i:nth-of-type(2).on { background: var(--orange); }
.co-st { font: 700 10.5px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--card2); color: var(--dim); white-space: nowrap; }
.co-st.pending { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.co-st.approved { color: var(--win); background: color-mix(in srgb, var(--win) 13%, transparent); }
.co-st.rejected, .co-st.cancelled { color: var(--orange); background: color-mix(in srgb, var(--orange) 13%, transparent); }
.tx > div { display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px 90px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tx > div:last-child { border-bottom: 0; }
.tx-k { font-weight: 700; }
.tx-w { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx time { font: 500 11.5px 'IBM Plex Mono', monospace; color: var(--faint); }
.tx b { text-align: right; font-variant-numeric: tabular-nums; }
.db-hero small { font-size: 12px; color: var(--dim); }
.db-hero > b { display: block; font-size: 46px; font-weight: 900; letter-spacing: -.04em; color: var(--gold); line-height: 1.1; margin-bottom: 6px; }
.db-hero p { color: var(--dim); margin-bottom: 14px; }
.db-hero .bar s { background: var(--gold); }
.db-hero .dm-sub { margin-top: 6px; }
.det-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.det-h h3 { margin: 0; }
.det-g { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.det-g .fld { margin: 8px 0; }
.det-g .fld b { font-size: 14.5px; color: var(--tx); padding: 4px 0; }
.det-g .fld b i { color: var(--faint); font-weight: 500; }
.av-c { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.av-c h3 { margin: 0; }
.av-c p { color: var(--dim); font-size: 13px; }
.av-pick { display: flex; align-items: center; gap: 16px; margin: 6px 0 16px; }
.sw8 { display: grid; grid-template-columns: repeat(4, 32px); gap: 8px; }
.swc { appearance: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line2); cursor: pointer; }

/* ---------- operator ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpis > div { padding: 12px 14px; }
.kpis small { display: block; font-size: 11.5px; color: var(--dim); }
.kpis b { font-size: 24px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpis .hot { border-color: var(--gold); }
.kpis .hot b { color: var(--gold); }
.op-tabs { margin-bottom: 12px; }
.cnt { font-style: normal; display: inline-flex; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold); color: #1a1205; font: 800 11px Inter, sans-serif; align-items: center; justify-content: center; margin-left: 4px; padding: 0 5px; }
.op-body { padding: 16px; min-width: 0; }
.op-tools { margin-bottom: 10px; max-width: 360px; }
.tbl td.acts { text-align: right; white-space: nowrap; }
.tbl td.acts .btn + .btn { margin-left: 6px; }
.tbl td.up { color: var(--win); }
.tbl .dim { color: var(--dim); font-weight: 500; }
.cash-ed { display: inline-flex; gap: 6px; align-items: center; }
.dsa .cash-ed input { width: 96px; padding: 6px 8px; border-radius: 8px; }
.lnk2.cash { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--win); text-decoration: underline dotted; }
.card2 { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.op-form > b { font-size: 15px; }
.of { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; align-items: start; }
.of > .btn { align-self: end; }
.of.three { grid-template-columns: 2fr 1fr 1fr; }
.of.two { grid-template-columns: 1fr 1fr; }
.of .fld { margin: 10px 0 0; }
.of > .btn { margin-top: 10px; height: 44px; }
.per-c { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.per-c > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.per-c > div:first-child b { font-size: 15px; }
.per-q { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0 4px; }
.per-q.p9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.pq { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; }
.pq b { font-size: 15px; }
.pq span { font-size: 11px; color: var(--dim); }
.pq.live { border-color: var(--red); }
.pq.live span { color: var(--red2); }
.pq.open { border-style: dashed; }
.pq.locked { opacity: .7; }
.op-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.op-2 .card2 { margin: 0; }
.op-2 .btn { margin-top: 4px; }
.pl-list { margin-top: 12px; max-height: 300px; overflow: auto; }
.pl-list > div { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 28px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pl-list em { font-style: normal; color: var(--faint); font-size: 11px; }
.pl-list b { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }
.feed-prev { margin-top: 12px; }
.feed-prev .upd-i.admin { margin: 6px 0; }
.jobs { display: flex; flex-direction: column; gap: 10px; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; }
.job b { font-size: 14.5px; }
.job p { color: var(--dim); font-size: 13px; margin: 2px 0; }
.job .dim { font: 500 11px 'IBM Plex Mono', monospace; }
.tgl { appearance: none; width: 46px; height: 26px; border-radius: 13px; border: 0; background: var(--line2); position: relative; cursor: pointer; flex: none; }
.tgl i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--dim); transition: left .2s; }
.tgl.on { background: var(--win); }
.tgl.on i { left: 23px; background: #fff; }
.ol { padding-left: 20px; color: var(--tx); line-height: 1.9; }

/* ---------- proposed ---------- */
.vote-sum { display: flex; gap: 14px; font-size: 13px; color: var(--dim); }
.vote-sum b { color: var(--tx); font-size: 16px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.idea { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-style: dashed; border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.idea.yes { border-style: solid; border-color: var(--win); }
.idea.no { opacity: .55; }
.id-top { display: flex; gap: 6px; }
.idea h3 { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.idea p { color: var(--dim); font-size: 13.5px; }
.mock { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; margin-top: auto; pointer-events: none; }
.mk-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; }
.mk-row .dim, .mk-row .mk-p { grid-column: 2 / 4; font-size: 12px; }
.mk-row.dimr { opacity: .55; }
.tok { display: inline-flex; gap: 4px; }
.tok i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--gold); }
.tok i.on { background: var(--gold); }
.mk-sub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; background: var(--card2); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.mk-sub > span { color: var(--dim); font-size: 11.5px; }
.mk-sub em { grid-column: 1 / 3; font-style: normal; font: 600 10.5px 'IBM Plex Mono', monospace; color: var(--red2); }
.mk-sub .btn { grid-row: 1 / 3; grid-column: 3; }
.mk-sq { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.mk-sq .av + .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg2); }
.mk-sq span { margin-left: 8px; color: var(--dim); }
.mk-t { margin-left: auto; font: 700 18px 'IBM Plex Mono', monospace; color: var(--gold); }
.mk-vote { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.mk-vote em { font-style: normal; font-size: 11.5px; color: var(--win); }
.mk-snake { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mk-snake div { background: var(--card2); border-radius: 10px; padding: 7px; min-width: 0; }
.mk-snake div.on { outline: 1.5px solid var(--gold); }
.mk-snake small { display: block; font: 600 9.5px 'IBM Plex Mono', monospace; color: var(--faint); }
.mk-snake b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-snake span { font-size: 10.5px; color: var(--dim); }
.mk-t2 { font: 600 11.5px 'IBM Plex Mono', monospace; color: var(--gold); }
.mvp { font: 700 10px 'IBM Plex Mono', monospace; color: #1a1205; background: var(--gold); padding: 2px 6px; border-radius: 5px; }
.mk-p { font: 700 13px 'IBM Plex Mono', monospace; color: var(--win); }
.mk-p em { font-style: normal; color: var(--faint); font-weight: 500; }
.mk-h2h { display: flex; align-items: center; justify-content: space-between; }
.mk-h2h div { display: flex; align-items: center; gap: 8px; }
.mk-h2h b { font-size: 22px; font-weight: 900; }
.mk-h2h > span { color: var(--faint); font-size: 12px; }
.mk-react { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--dim); }
.mk-react div { display: flex; gap: 6px; }
.mk-react i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--tx); background: var(--card2); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 10px; }
.id-acts { display: flex; gap: 8px; justify-content: flex-end; }

@container app (max-width: 700px) {
  .cr-grid, .upd-grid, .prof-grid, .wal-grid, .op-2 { grid-template-columns: minmax(0, 1fr); }
  .cr-form { padding: 14px; }
  .dsa .tabs3 { display: flex; width: 100%; }
  .dsa .tabs3 button { flex: 1; }
  .upd { padding: 6px 12px; }
  .upd-i { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .upd-i p { font-size: 13px; }
  .msgs-grid { grid-template-columns: minmax(0, 1fr); height: 560px; }
  .msgs-grid .th-view { display: none; }
  .msgs-grid.open .th-list { display: none; }
  .msgs-grid.open .th-view { display: grid; }
  .tv-back { display: inline-flex; }
  .th .ibtn { opacity: 1; }
  .tm { max-width: 92%; }
  .bal > b { font-size: 38px; }
  .amts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amt.cust { grid-column: span 2; }
  .wcard { padding: 14px; }
  .co { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .co .trk { grid-column: 1 / -1; grid-row: 2; }
  .tx > div { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .tx-w { grid-column: 1; grid-row: 2; }
  .tx time { display: none; }
  .tx b { grid-row: 1 / 3; grid-column: 2; align-self: center; }
  .det-g { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > div:last-child { grid-column: span 2; }
  .op-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 12px; padding: 0 14px; scrollbar-width: none; }
  .op-body { padding: 12px; }
  .of, .of.three { grid-template-columns: minmax(0, 1fr); }
  .per-q.p9 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .job { align-items: flex-start; }
  .scr-head { flex-wrap: wrap; }
  .vote-sum { width: 100%; }
  .ideas { grid-template-columns: minmax(0, 1fr); }
}
