@font-face {
  font-family: 'Holdem Studio Sans';
  src: url('/fonts/pretendard-studio.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --surface: #131619; --panel: #1c2126; --raised: #272d32;
  --paper: #f0f3f5; --muted: #a3afb9; --line: #394249; --rule: #56636d;
  --accent: #b9dfbb; --accent-ink: #172218; --focus: #c6f5d7;
  --open: #996126; --call: #167258; --raise: #a74555; --shove: #744d86;
  --fold: #394652; --unreached: #242c33;
  --body: 'Holdem Studio Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --measure: 1230px; --gutter: clamp(16px, 3vw, 48px); --rail-width: clamp(146px, 14vw, 200px);
  color-scheme: dark;
}
:root[data-theme='light'] {
  --surface: #f2f4f5; --panel: #fff; --raised: #e6eaf0;
  --paper: #162026; --muted: #52616b; --line: #cad1d7; --rule: #88969f;
  --accent: #335d15; --accent-ink: #fff; --focus: #255e11;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --surface: #f2f4f5; --panel: #fff; --raised: #e6eaf0;
    --paper: #162026; --muted: #52616b; --line: #cad1d7; --rule: #88969f;
    --accent: #335d15; --accent-ink: #fff; --focus: #255e11;
    color-scheme: light;
  }
}
.studio, .studio *, .studio *::before, .studio *::after { box-sizing: border-box; }
body.studio {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--paper);
  font: 400 16px/1.55 var(--body);
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
.studio :where(h1,h2,h3,p) { margin: 0; }
.studio :where(h1,h2,h3) { line-height: 1.26; text-wrap: balance; }
.studio h2 { font-size: clamp(19px, 1.9vw, 26px); letter-spacing: -.035em; }
.studio h3 { font-size: 17px; letter-spacing: -.02em; }
.studio :where(button,select,input) { font: inherit; }
.studio button, .studio select { cursor: pointer; }
.studio button:disabled { cursor: default; opacity: .54; }
.studio :where(a,button,input,select,summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.studio :where(a) { color: inherit; text-underline-offset: .2em; }
.studio [hidden] { display: none !important; }
.studio ::selection { background: var(--accent); color: var(--accent-ink); }
body.studio { padding-left: var(--rail-width); }
.mast {
  position: fixed; inset: 0 auto 0 0; z-index: 5; width: var(--rail-width);
  display: flex; flex-direction: column; padding: 29px 13px 17px;
  background: #11171b; color: #edf4f0; border-right: 1px solid #303940;
}
.mast .brand {
  display: flex; align-items: center; gap: 9px; margin: 0 5px 42px;
  font: 740 19px/.96 var(--body); letter-spacing: -.035em; text-decoration: none;
}
.brand svg { flex: none; color: #b8deba; }
.brand b { display: block; font-weight: 740; }
.mast nav { display: grid; gap: 5px; }
.mast nav a, .mast #studioTheme {
  display: flex; align-items: center; gap: 11px; text-decoration: none; min-height: 43px;
  padding: 8px 12px; border-radius: 7px; font-size: 15px; font-weight: 580; color: #b7c1c9;
}
.mast nav a:hover, .mast #studioTheme:hover { background: #232b30; color: white; }
.mast nav a[aria-current='page'] { color: #b8deba; background: #24382e; font-weight: 720; }
.mast #studioTheme { margin-top: auto; border: 0; background: transparent; justify-content: start; font-size: 13px; }
.shell { width: min(var(--measure),calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 32px 0 42px; }
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 18px; margin-bottom: 23px; }
.stage-head h1 { font: 750 clamp(26px,3vw,41px)/1.16 var(--body); letter-spacing: -.04em; }
.stage-head p, .subtle, .empty { color: var(--muted); font-size: 14px; }
.studio select, .studio input[type='number'] {
  max-width: 100%; padding: 7px 10px; min-height: 39px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--paper); font: 590 14px/1.4 var(--body);
}
.workspace { display: grid; grid-template-columns: minmax(0,1.95fr) minmax(235px,1fr); align-items: start; gap: clamp(14px,2vw,28px); }
.workspace > *, .room-layout > * { min-width: 0; }
.matrix-head { display: grid; gap: 4px; }
.matrix-head h2 { font-size: clamp(19px,2vw,26px); font-weight: 710; }
.mix-strip { display: flex; gap: 0; overflow: hidden; height: 5px; margin-top: 14px; border-radius: 3px; }
.matrix-head .subtle, .matrix-panel > p { font-size: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 3px 15px; margin: 10px 0 9px; color: var(--muted); font-size: 13px; }
.legend > span { display: inline-flex; align-items: center; gap: 5px; }
.legend .swatch { width: 11px; height: 11px; display: inline-block; border: 1px solid rgba(255,255,255,.35); }
.matrix { display: grid; width: 100%; grid-template-columns: repeat(13,minmax(0,1fr)); gap: 1px; }
.matrix .cell {
  display: grid; place-items: center; position: relative; min-width: 0; min-height: 24px;
  aspect-ratio: 1.48; margin: 0; padding: 0; border: 0; border-radius: 0; color: #fff;
  font: 610 clamp(11px,1.1vw,15px)/1.1 var(--body); letter-spacing: -.035em; white-space: nowrap;
}
.matrix .cell:is([aria-pressed='true'],[aria-current='true']) { box-shadow: inset 0 0 0 2px #fff8cd,inset 0 0 0 3px #14221a; }
.matrix .cell:focus-visible { z-index: 1; outline-offset: -2px; }
.hand-summary { display: none; }
.matrix-panel > p { margin-top: 7px; }
.detail, .action-rail { padding: clamp(16px,1.9vw,26px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.selected-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; isolation: isolate; overflow: hidden; color: #fbfbf2;
  margin: calc(0px - clamp(16px,1.9vw,26px)); margin-bottom: 0; padding: 24px clamp(16px,1.9vw,26px); border-radius: 11px 11px 0 0; background: #215646;
}
.selected-header::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: #235643 url('/cards/table-cloth.webp') center/180px repeat; background-blend-mode: soft-light;
  box-shadow: inset 0 -12px 30px rgb(6 28 20 / 28%); }
.field-label { color: #d4e8d9; font-size: 12px; font-weight: 620; }
.studio .detail-hand { font: 740 clamp(37px,4vw,58px)/1.12 var(--body); letter-spacing: -.04em; }
.selected-header p { color: #e1f0e4; font-size: 13px; }
.sample-cards { flex: none; display: flex; padding-right: 4px; }
.sample-cards .room-card { width: clamp(42px,4.25vw,66px); max-width: none; transform: rotate(-7deg); }
.sample-cards .room-card + .room-card { margin: 3px 0 0 -11px; transform: rotate(7deg); }
.studio .freq-title { margin: 18px 0 6px; font-size: 14px; }
.action-rail > p { margin: 5px 0 15px; color: var(--muted); }
.action-line, .list-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; padding: 6px 0; }
.action-line { font-size: 14px; }
.action-line strong { font-variant-numeric: tabular-nums; }
.bar { height: 4px; background: var(--raised); border-radius: 3px; margin-bottom: 8px; overflow: hidden; }
.bar-fill { height: 100%; }
.actions, .hand-controls, .record-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.studio :is(.primary,.secondary,.actions button,.hand-controls button,.action-rail button,.record-tools button) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 7px 13px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--paper);
  text-decoration: none; text-align: center; font-size: 14px; font-weight: 650; line-height: 1.3;
  touch-action: manipulation;
}
.studio :is(.primary,.actions .primary,.action-rail .primary,.hand-controls .primary) { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.detail .primary { flex-basis: 100%; }
.detail .secondary { flex: 1; }
@media (hover:hover) {
  .studio :is(.primary,.secondary,.actions button,.action-rail button):not(:disabled):hover { outline: 1px solid var(--rule); outline-offset: -2px; }
  .matrix .cell:hover { outline: 1px solid #ecdb8f; outline-offset: -1px; }
}
.panel { padding: 17px 0; border-block-start: 1px solid var(--line); min-width: 0; }
.workspace + .panel, .room-layout + .panel { margin-top: 26px; }
.panel p { margin-top: 6px; }
.room-layout { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(240px,1fr); gap: clamp(14px,2vw,26px); align-items: start; }
.room-stage { min-width: 0; padding: clamp(3px,1vw,15px); background: #151b1d; border-radius: 14px; border: 1px solid #34423e; }
.action-rail > h2, .panel > h2 { margin-bottom: 8px; }
.action-rail input[type='number'] { width: 5.7em; }
.drill-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.drill-progress progress { width: 72px; height: 5px; accent-color: var(--accent); }
.answered .drill-progress { margin-bottom:6px; }
.answer-verdict { display:flex; align-items:baseline; gap:9px; font-size:14px; }
.answer-verdict strong { font-size:18px; }
.answered .mix-strip { height:8px; margin:7px 0; }
.answered .legend { margin:0; gap:3px 12px; }
.answer-actions { display:flex; gap:8px; margin-top:13px; }
.answer-actions button { flex:1; }
.study-range { width:min(600px,calc(100% - 16px)); max-height:calc(100dvh - 24px); padding:12px; overflow:auto; overscroll-behavior:contain; color:var(--paper); background:var(--panel); border:1px solid var(--line); border-radius:12px; }
.study-range::backdrop { background:rgb(9 14 16 / 72%); }
.study-range header { position:sticky; top:-12px; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:4px 0; background:var(--panel); }
.study-range p { color:var(--muted); font-size:13px; }
.study-range .legend { margin-block:8px; }
html:has(.study-range[open]) { overflow:hidden; }
@media (max-width:670px) and (max-height:780px) {
  .room-layout .room-surface { height:clamp(235px,calc(100dvh - 400px),335px); }
  .answer-actions { position:fixed; z-index:4; inset:auto 0 calc(58px + env(safe-area-inset-bottom)); margin:0; padding:6px var(--gutter); background:var(--panel); border-top:1px solid var(--line); }
  body.studio:has(.answered) { padding-bottom:calc(122px + env(safe-area-inset-bottom)); }
}
.history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history-table :is(td,th) { padding: 10px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.history-table th { color: var(--muted); font-size: 12px; }
.history-table td:last-child { text-align: right; }
.list-row { border-bottom: 1px solid var(--line); }
.sitefoot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 9px 20px; padding: 17px max(var(--gutter),calc((100% - var(--measure))/2)) 22px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.sitefoot nav { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.sitefoot :is(p,small) { font-size: 12px; }
#studio-status { margin: 0 auto 16px; max-width: var(--measure); color: var(--paper); }
@media (max-width: 1020px) {
  :root { --rail-width: 76px; }
  .mast { align-items: center; padding-inline: 7px; }
  .mast .brand { margin: 0 0 30px; }
  .mast .brand span, .mast #studioTheme span { display: none; }
  .mast nav a { flex-direction: column; gap: 2px; padding: 8px 5px; min-width: 57px; font-size: 12px; }
}
@media (max-width: 800px) {
  .room-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .workspace { grid-template-columns: minmax(0,1.55fr) minmax(195px,1fr); }
  .sample-cards .room-card { width: 35px; }
}
@media (max-width: 670px) {
  body.studio { padding-left: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mast { position: static; width: auto; flex-direction: row; justify-content: space-between; height: 50px; padding: 0 var(--gutter); border: 0; }
  .mast .brand { margin: 0; gap: 8px; font-size: 17px; }
  .mast .brand span, .mast .brand b { display: inline; }
  .mast .brand svg { width: 28px; height: 28px; }
  .mast #studioTheme { margin: 0; padding: 10px; }
  .mast nav { position: fixed; inset: auto 0 0; z-index: 5; grid-template-columns: repeat(4,1fr); gap: 0; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); background: #11171b; border-top: 1px solid #344048; }
  .mast nav a { min-height: 49px; padding: 3px; justify-content: center; }
  .mast nav a[aria-current='page'] { background: transparent; }
  .workspace { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .studio .shell { padding: 19px 0 24px; }
  .stage-head { gap: 4px 10px; margin-bottom: 16px; }
  .stage-head p { font-size: 12px; }
  .matrix .cell { width: 100%; aspect-ratio: 1.2; font-size: clamp(10.5px,2.9vw,14px); }
  .matrix-head .subtle, .matrix-panel > p { font-size: 11px; }
  .mix-strip { margin-top: 8px; }
  .legend { margin: 6px 0; font-size: 11px; gap: 3px 10px; }
  .hand-summary { display: flex; gap: 10px; align-items: baseline; padding: 7px 9px; background: var(--raised); color: var(--paper); font-size: 13px; }
  .hand-summary b { color: var(--accent); font-size: 15px; }
  .selected-header { padding-bottom: 15px; }
  .sample-cards .room-card { width: 40px; }
  .studio :is(.primary,.secondary,.actions button,.hand-controls button,.action-rail button) { min-height: 44px; }
  .history-table { font-size: 12px; }
  .history-table :is(td,th) { padding: 7px 3px; }
  .sitefoot { justify-content: start; }
}
@media (forced-colors: active) { .matrix .cell { border: 1px solid ButtonText; } .matrix .cell:is([aria-pressed='true'],[aria-current='true']) { outline: 3px solid Highlight; } }
.bet-size { flex: 1 1 100%; display: grid; align-items: center; grid-template-columns: minmax(76px,1fr) auto auto; gap: 7px; margin-top: 6px; }
.bet-size label { font-size: 13px; color: var(--muted); }
.hand-controls + h3 { margin-top: 20px; }
.action-log { list-style: none; margin: 8px 0 0; padding: 0; }
.action-log li { display: flex; align-items: baseline; gap: 12px; padding-block: 5px; border-top: 1px solid var(--line); font-size: 13px; }
.action-log b { min-width: 34px; }
.history-table .room-card { width: clamp(24px,3.4vw,43px); }
.room-layout + section:has(.history-table), .record-tools { padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--line); }
.record-tools :is(h2,p,.actions) { margin-block: 0; }
.record-tools { gap: 8px 18px; }
.record-tools input[type='file'] { max-width: min(100%,220px); vertical-align: middle; }

.range-filters { display:grid; grid-template-columns:140px minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start; margin-bottom:24px; padding-block:12px 16px; border-block:1px solid var(--line); }
.count-control label,.odds-slider label { color:var(--muted); font-size:13px; font-weight:620; margin:0 0 6px; }
.seat-choice { position:relative; display:inline-flex; }
.seat-choice input { position:absolute; opacity:0; width:1px; height:1px; }
.seat-choice span { border:1px solid var(--line); border-radius:5px; padding:5px 8px; font-size:13px; background:var(--panel); cursor:pointer; }
.seat-choice input:checked + span { color:var(--accent-ink); background:var(--accent); border-color:var(--accent); }
.seat-choice input:focus-visible + span { outline:3px solid var(--focus); outline-offset:2px; }
.count-control label,.odds-slider label,.slider-limits { display:flex; justify-content:space-between; align-items:center; }
.count-control output,.odds-slider output { color:var(--paper); font-weight:700; }
.studio input[type='range'] { display:block; width:100%; margin:0; height:24px; accent-color:var(--accent); cursor:pointer; }
.slider-limits { color:var(--muted); font-size:12px; }
.duel-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr); gap:clamp(18px,3vw,44px); align-items:start; }
.duel-main,.duel-selection { min-width:0; }
.duel-match { display:grid; align-items:stretch; grid-template-columns:1fr auto 1fr; gap:10px; }
.duel-side { display:grid; text-align:left; gap:1px; color:#fff; border:2px solid transparent; border-radius:10px; padding:13px 16px; background:#285141 url('/cards/table-cloth.webp') center / 180px; background-blend-mode:soft-light; }
.duel-side[aria-expanded=true] { border-color:#bfe09d; box-shadow:inset 0 0 0 1px #223a26; }
.duel-side strong { font-size:clamp(28px,3vw,43px); line-height:1.12; }
.duel-side span,.duel-side small { font-size:13px; }
.versus { align-self:center; color:var(--muted); font-weight:700; }
.duel-section-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; }
.duel-section-head span { color:var(--muted); font-size:12px; }
.duel-results,.duel-board,.odds-panel { margin-top:17px; padding-top:15px; border-top:1px solid var(--line); }
.duel-results { min-height:96px; margin-top:0; padding-top:0; border-top:0; }
.duel-match { margin-top:12px; }
.duel-selection { margin-top:14px; }
.duel-selection[hidden] { display:none; }
.duel-layout h2 { font-size:19px; }
.split-bar { display:flex; height:10px; border-radius:3px; overflow:hidden; margin:11px 0 6px; }
.outcome-0 { background:#68aa82; }.outcome-1 { background:#a6a9ab; }.outcome-2 { background:#d39458; }
.duel-numbers,.odds-values { display:flex; justify-content:space-between; gap:8px; }
.duel-numbers span,.odds-values span { display:grid; color:var(--muted); font-size:12px; }
.duel-numbers span:nth-child(2) { text-align:center; }.duel-numbers span:last-child { text-align:right; }
.duel-numbers b,.odds-values strong { color:var(--paper); font-size:20px; }
.board-tools { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; }
.board-pick { display:flex; gap:4px; border:0; padding:3px; margin:0; background:transparent; }
.board-pick .empty-card,.board-pick .room-card { display:grid; place-items:center; width:clamp(29px,3.5vw,49px); aspect-ratio:11/16; }
.empty-card { border:1px dashed var(--rule); border-radius:4px; color:var(--muted); }
.inline-deck { padding:8px 0; }
.deck-row { display:grid; grid-template-columns:repeat(13,minmax(0,1fr)); gap:2px; margin:2px 0; }
.deck-choice { display:grid; place-items:center; border:0; border-radius:3px; padding:3px 0; font:600 13px/1 var(--body); background:#f5f3e9; color:#182625; }
.deck-choice:is(.suit-H,.suit-D) { color:#9e283a; }
.deck-choice:disabled { opacity:.35; }
.odds-panel h2 { margin-bottom:12px; }
.odds-slider { display:grid; grid-template-columns:minmax(155px,1.2fr) minmax(80px,1fr); gap:12px; margin-bottom:10px; }
.odds-slider label { margin:0; }.odds-values { padding:9px 0; }
.odds-panel .subtle { font-size:12px; }
@media(max-width:960px) {
  .range-filters { grid-template-columns:120px 1fr; }
  .range-filters > .choice-group:nth-child(3) { grid-column:2; }
}
@media(max-width:760px) {
  .duel-layout { display:flex; flex-direction:column; align-items:stretch; gap:16px; }
  .duel-results { margin:0; padding:0; }
  .duel-main,.odds-panel { width:100%; }
  .duel-board { margin-top:14px; }.odds-panel { margin-top:0; }
  .duel-results { min-height:85px; }
}
@media(max-width:670px) {
  .range-filters { grid-template-columns:1fr; gap:9px; padding-block:6px 10px; margin-bottom:13px; }
  .range-filters > .choice-group:nth-child(3) { grid-column:auto; }
  .count-control { display:grid; grid-template-columns:110px 1fr; gap:0 14px; align-items:center; }
  .count-control label { margin:0; }.count-control .slider-limits { grid-column:2; }
  .seat-choice span { padding:5px 7px; }
}

.duel-side { position:relative; overflow:hidden; padding-right:55px; }
.duel-side small { white-space:nowrap; }
.duel-cards { display:flex; position:absolute; right:9px; top:50%; transform:translateY(-50%); }
.duel-cards .room-card { width:clamp(21px,2.3vw,34px); max-width:none; transform:rotate(-9deg); }
.duel-cards .room-card + .room-card { margin:4px 0 0 -10px; transform:rotate(8deg); }
@media(min-width:761px) and (max-width:950px) {
  .duel-side { padding:9px 5px; }.duel-cards { position:static; transform:none; margin:5px; }
}

.tab-loader { display:block; appearance:none; width:100%; height:3px; border:0; color:var(--accent); background:var(--raised); overflow:hidden; }
.tab-loader:indeterminate { background:linear-gradient(90deg,transparent,var(--accent),transparent) left/40% 100% no-repeat,var(--raised); animation:studio-loading 1.1s ease-in-out infinite alternate; }
.tab-loader::-webkit-progress-bar { background:transparent; }
@keyframes studio-loading { to { background-position:right; } }
@media(prefers-reduced-motion:reduce) { .tab-loader:indeterminate { animation:none; background-position:center; } }
.path-next { grid-column:1/-1; min-width:0; border-top:1px solid var(--line); padding-top:6px; }
.choice-group { min-width:0; }
.choice-heading { display:flex; gap:8px; align-items:center; min-height:25px; font-size:13px; font-weight:620; color:var(--muted); }
.choice-heading small,.choice-strip small { font-weight:400; color:var(--muted); }
.choice-arrows { display:flex; gap:3px; margin-left:auto; }
.choice-arrows[hidden] { display:none; }
.choice-arrows button { display:grid; place-items:center; width:32px; height:26px; padding:0; border:1px solid var(--line); border-radius:5px; color:var(--paper); background:var(--panel); }
.choice-strip { display:flex; flex-wrap:nowrap; align-items:center; gap:6px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; padding:4px; }
.choice-strip > * { flex:none; white-space:nowrap; }
.path-choice { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:5px; background:var(--panel); text-decoration:none; font-size:13px; padding:5px 8px; }
.path-choice[aria-current='step'] { color:var(--accent-ink); background:var(--accent); }
.study-summary { display:grid; grid-template-columns:minmax(145px,1fr) minmax(0,2.4fr); gap:clamp(16px,3vw,44px); margin-block:20px 32px; }
.study-summary section { padding-block:16px; border-top:1px solid var(--line); min-width:0; }
.study-summary section>strong { display:block; font-size:clamp(38px,5vw,64px); line-height:1.2; }
.study-summary small,.study-sessions>p { color:var(--muted); }
.study-bars { margin:12px 0 0; padding:0; list-style:none; display:grid; gap:12px; }
.study-bars li>div:first-child { display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:14px; }
.study-bars b { font-size:13px; }
.stat-track { height:6px; margin-top:4px; background:var(--raised); border-radius:3px; overflow:hidden; }
.stat-track i { display:block; height:100%; background:var(--accent); }
.record-tools { align-items:baseline; }
@media(max-width:670px) {
  .study-summary { grid-template-columns:1fr; gap:4px; margin-block:12px 18px; }
  .path-choice { padding:5px 7px; }
}

.duel-side > span:first-child::after { content:''; display:inline-block; width:6px; height:6px; margin:0 0 3px 7px; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(45deg); }
.duel-side[aria-expanded=true] > span:first-child::after { transform:rotate(225deg); margin-bottom:0; }
.board-tools { justify-content:space-between; }
.board-actions { display:flex; gap:4px; }
.board-icon,.odds-toggle { background:var(--panel); border:1px solid var(--line); color:var(--paper); border-radius:6px; }
.board-icon { width:42px; height:42px; display:grid; place-items:center; padding:0; }
.odds-panel>.duel-section-head { align-items:center; margin-bottom:12px; }
.odds-panel>.duel-section-head h2 { margin:0; }
.odds-toggle { display:inline-flex; padding:2px; gap:2px; }
.odds-toggle span { padding:5px 9px; border-radius:4px; font-size:13px; }
.odds-toggle[aria-pressed=false] span:first-child,.odds-toggle[aria-pressed=true] span:last-child { background:var(--accent); color:var(--accent-ink); }
.hand-slots { display:flex; gap:5px; }
.hand-slots button { border:1px solid var(--line); color:var(--paper); background:var(--panel); padding:6px 9px; border-radius:5px; font:inherit; font-size:13px; }
.hand-slots button[aria-pressed=true] { background:var(--accent); color:var(--accent-ink); }
