/* One floating tracker navigation on phone, tablet and desktop. */
#commander-table .ct-tracker-navigation{position:absolute;inset:0;z-index:80;pointer-events:none;background:none}
#commander-table:not([data-screen=tracker]) .ct-tracker-navigation{display:none}
#commander-table[data-screen=tracker]:not([data-bar-collapsed=true]) .ct-tracker-navigation{pointer-events:auto}
#commander-table .ct-tracker-navigation>.ct-bar{
  position:absolute;left:var(--navigation-x,50%);top:var(--navigation-y,50%);right:auto;bottom:auto;
  transform:translate(-50%,-50%) rotate(var(--navigation-angle,0deg));transform-origin:center;
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:1fr;align-items:center;justify-items:center;gap:8px;
  box-sizing:border-box;width:var(--navigation-width,660px);height:var(--navigation-height,160px);min-height:0;max-width:none;margin:0;padding:16px;
  border:1px solid #929ab477;border-radius:18px;background:linear-gradient(125deg,#111a4aed,#241064d6);
  color:#f1f2fa;box-shadow:0 8px 32px #0005;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  pointer-events:auto;overflow:hidden;container-type:normal;
}
#commander-table[data-screen=tracker] .ct-tracker-navigation .ct-bar :is(#ct-undo,#ct-pause,#ct-home,#ct-global-tools,#ct-settings){
  position:relative;inset:auto;transform:none;grid-row:1;display:flex;align-items:center;justify-content:center;
  box-sizing:border-box;width:52px;max-width:100%;height:52px;min-height:52px;min-width:0;margin:0;padding:5px;
  border:1px solid #929ab466;border-radius:12px;background:#05050955;color:#f1f2fa;box-shadow:none;touch-action:manipulation;
}
#commander-table .ct-tracker-navigation .ct-bar #ct-undo{grid-column:1}
#commander-table .ct-tracker-navigation .ct-bar #ct-pause{grid-column:2}
#commander-table[data-screen=tracker] .ct-tracker-navigation .ct-bar #ct-home{grid-column:auto;grid-row:auto;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;max-width:none}
#commander-table .ct-tracker-navigation .ct-bar #ct-global-tools{grid-column:4}
#commander-table .ct-tracker-navigation .ct-bar #ct-settings{grid-column:5}
#commander-table .ct-tracker-navigation .ct-bar button>svg{width:32px;height:32px;margin:0}
#commander-table .ct-tracker-navigation .ct-bar #ct-home .ct-home-mark{display:block;width:38.4px;height:auto;aspect-ratio:1}
#commander-table .ct-tracker-navigation .ct-bar .ct-clock{
  position:relative;inset:auto;grid-column:2;grid-row:1;align-self:center;justify-self:center;transform:translateY(37px);
  width:auto;height:14px;min-height:0;margin:0;padding:0;border:0;background:none;font-size:11px;line-height:14px;pointer-events:none;
}
#commander-table[data-bar-collapsed=true] .ct-tracker-navigation>.ct-bar{width:52px;height:52px;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:visible}
#commander-table[data-bar-collapsed=true] .ct-tracker-navigation .ct-bar #ct-home{border:0;background:none;box-shadow:none;outline:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;cursor:grab}
/* Restore the quiet 36px circle while preserving its generous touch target. */
#commander-table .ct-tracker-navigation #ct-home .ct-navigation-handle{display:none;position:absolute;inset:8px;margin:0;padding:0;pointer-events:none;transform:translate(var(--navigation-drag-x,0px),var(--navigation-drag-y,0px));transition:transform 160ms ease-out}
#commander-table[data-bar-collapsed=true] .ct-tracker-navigation #ct-home .ct-navigation-handle{display:block}
#commander-table[data-bar-collapsed=true][data-navigation-dragging=true] .ct-tracker-navigation #ct-home .ct-navigation-handle{transition:none}
#commander-table[data-bar-collapsed=true] .ct-tracker-navigation #ct-home .ct-navigation-handle::before{content:"";position:absolute;inset:0;box-sizing:border-box;border:2px solid var(--ct-muted);border-radius:50%;background:var(--ct-panel);box-shadow:0 0 0 3px var(--ct-bg);pointer-events:none;transition:border-color 100ms,background-color 100ms}
/* Keyboard focus uses the existing small circle, never the invisible hit area. */
#commander-table[data-bar-collapsed=true] .ct-tracker-navigation #ct-home:focus-visible .ct-navigation-handle::before{border-color:var(--ct-gold)}
#commander-table[data-bar-collapsed=true][data-navigation-dragging=true] .ct-tracker-navigation #ct-home{cursor:grabbing;outline:none}
#commander-table[data-bar-collapsed=true][data-navigation-armed=true] .ct-tracker-navigation #ct-home .ct-navigation-handle::before{border-color:#e5c84a;background:#e5c84a33}
@media(prefers-reduced-motion:reduce){#commander-table[data-bar-collapsed=true] .ct-tracker-navigation #ct-home .ct-navigation-handle,#commander-table[data-bar-collapsed=true] .ct-tracker-navigation #ct-home .ct-navigation-handle::before{transition:none}}
#commander-table[data-reduce-motion=true][data-bar-collapsed=true] .ct-tracker-navigation #ct-home .ct-navigation-handle,#commander-table[data-reduce-motion=true][data-bar-collapsed=true] .ct-tracker-navigation #ct-home .ct-navigation-handle::before{transition:none}
#commander-table[data-bar-collapsed=true] .ct-tracker-navigation #ct-home .ct-home-mark{display:none}
#commander-table[data-bar-animating=true] .ct-tracker-navigation{pointer-events:auto}
#commander-table[data-screen=tracker] .ct-table-layout{grid-template-rows:var(--tableau-height) var(--tableau-height)}
#commander-table[data-screen=tracker] .ct-table-layout>.ct-bank:nth-of-type(2){grid-row:2}
#commander-table[data-screen=tracker] .ct-table-layout>.ct-seat[data-side=true]{grid-row:1/3}

/* Compact, equally sized wheels for one or two commanders in the centred window. */
#commander-table[data-screen=tracker] .ct-player-dialog:has(#ct-assign-damage){
  --damage-gap:clamp(4px,calc(var(--menu-height)*.025),6px);
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:max-content max-content minmax(0,1fr);
  gap:var(--damage-gap);
  padding:clamp(8px,calc(var(--menu-height)*.04),10px);
  overflow:hidden;
}
#commander-table[data-screen=tracker] .ct-player-dialog:has(#ct-assign-damage)>#ct-dialog-title{
  margin:0 22px;
  padding:0;
  min-height:0;
  font-size:clamp(13px,calc(var(--menu-width)*.043),17px);
  line-height:1.15;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#commander-table[data-screen=tracker] .ct-player-dialog:has(#ct-assign-damage)>p{
  margin:0 22px;
  font-size:clamp(11px,calc(var(--menu-width)*.035),13px);
  line-height:1.2;
  color:#c1c6dc;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#commander-table[data-screen=tracker] .ct-player-dialog:has(#ct-assign-damage)>.ct-close{
  top:5px;right:5px;width:26px;min-width:26px;height:26px;min-height:26px;border-radius:8px;
}
#commander-table .ct-player-dialog #ct-assign-damage{
  display:grid;
  grid-template-rows:minmax(0,1fr) max-content;
  align-items:stretch;
  justify-items:center;
  gap:var(--damage-gap);
  min-width:0;min-height:0;width:100%;margin:0;
}
#commander-table #ct-assign-damage .ct-damage-wheels{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:10px;
  width:min(100%,274px);
  height:100%;min-height:0;max-height:160px;
  align-self:center;
}
#commander-table #ct-assign-damage .ct-damage-wheel-column{
  flex:0 0 calc((100% - 10px)/2);
  display:grid;
  grid-template-rows:max-content minmax(0,1fr);
  gap:4px;
  min-width:0;min-height:0;margin:0;padding:0;border:0;background:none;
}
#commander-table #ct-assign-damage .ct-damage-wheel-column h4{
  margin:0;width:100%;min-width:0;
  font-size:clamp(11px,calc(var(--menu-width)*.035),13px);
  font-weight:500;line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#commander-table #ct-assign-damage .ct-damage-wheel{
  container-type:size;
  display:grid;
  grid-template-rows:minmax(0,1fr) minmax(0,4fr) minmax(0,1fr);
  justify-items:center;
  align-items:center;
  box-sizing:border-box;
  width:100%;height:100%;min-width:0;min-height:0;
  margin:0;padding:2px 0;gap:0;overflow:hidden;
  background:linear-gradient(180deg,#111a4a35,#24106445);
  border:1px solid #929ab466;border-radius:10px;
  touch-action:none;user-select:none;-webkit-user-select:none;cursor:ns-resize;
}
#commander-table #ct-assign-damage .ct-damage-wheel:focus{outline:none}
#commander-table #ct-assign-damage .ct-damage-wheel:focus-visible{outline:2px solid #e5c84a;outline-offset:-3px}
#commander-table #ct-assign-damage .ct-damage-wheel>output{
  font-size:min(58px,70cqh);line-height:1;font-weight:700;color:#e5c84a;
}
#commander-table #ct-assign-damage .ct-damage-wheel>span{
  font-size:min(16px,14cqh);min-height:0;height:1em;line-height:1;color:#c1c6dc;opacity:.55;
}
#commander-table #ct-assign-damage>button{
  width:min(100%,274px);min-height:30px;height:32px;
  padding:4px 8px;font-size:13px;line-height:1.15;border-radius:9px;
  background:#e5c84a1f;border:1px solid #e5c84a66;color:#e5c84a;
}
/* Keep the wheel legible when a phone tableau leaves less vertical space. */
#commander-table[data-screen=tracker] .ct-player-dialog[data-damage-compact=true]:has(#ct-assign-damage){--damage-gap:3px;padding:6px}
#commander-table[data-screen=tracker] .ct-player-dialog[data-damage-compact=true]>#ct-dialog-title{font-size:13px}
#commander-table[data-screen=tracker] .ct-player-dialog[data-damage-compact=true]>p{font-size:11px}
#commander-table .ct-player-dialog[data-damage-compact=true] #ct-assign-damage h4{font-size:11px}
#commander-table .ct-player-dialog[data-damage-compact=true] #ct-assign-damage>button{height:28px;min-height:28px;font-size:12px}
#commander-table[data-screen=tracker] .ct-player-dialog[data-damage-short=true]:has(#ct-assign-damage){grid-template-columns:1fr 1fr;grid-template-rows:max-content minmax(0,1fr);align-items:center}
#commander-table[data-screen=tracker] .ct-player-dialog[data-damage-short=true]>#ct-dialog-title{margin:0;font-size:12px}
#commander-table[data-screen=tracker] .ct-player-dialog[data-damage-short=true]>p{margin:0 26px 0 0;font-size:10px}
#commander-table .ct-player-dialog[data-damage-short=true] #ct-assign-damage{grid-column:1/-1;height:100%}

/* One indigo glass material for every in-game window. Only the surface is
   translucent: text, numbers and hit targets retain their full opacity. */
#commander-table[data-screen=tracker]{
  --ct-glass-tint:linear-gradient(135deg,rgba(60,73,137,.05),rgba(17,26,74,.05) 42%,rgba(36,16,100,.05));
  --ct-glass-light:linear-gradient(145deg,rgba(227,234,255,.12),transparent 28%,transparent 72%,rgba(100,56,255,.06));
  --ct-glass-filter:blur(22px) saturate(130%) brightness(.55);
  --ct-glass-shadow:inset 0 1px 0 #f1f4ff66,inset 1px 0 0 #c9d4ff24,inset 0 -1px 0 #6438ff33,0 12px 32px #05050966,0 2px 6px #05050933;
}
#commander-table[data-screen=tracker] :is(.ct-dialog.ct-counter-dialog,.ct-dialog:not(.ct-counter-dialog)),
#commander-table[data-screen=tracker]:not([data-bar-collapsed=true]) .ct-tracker-navigation>.ct-bar{
  --ct-panel:rgba(17,26,74,.32);--ct-button:rgba(24,32,69,.60);--ct-line:#b6c1f05c;
  --ct-ink:#f5f6ff;--ct-muted:#d4d8e9;
  background-color:transparent;
  background-image:var(--ct-glass-light),var(--ct-glass-tint);
  background-repeat:no-repeat;
  border:1px solid #bcc8f269;
  border-top-color:#e5ebff99;border-bottom-color:#8f82cf66;
  border-radius:18px;
  box-shadow:var(--ct-glass-shadow);
  backdrop-filter:var(--ct-glass-filter);-webkit-backdrop-filter:var(--ct-glass-filter);
  color:var(--ct-ink);text-shadow:0 1px 3px #050509a6;
}
/* The surrounding board stays clear; the blur belongs to the glass alone. */
#commander-table[data-screen=tracker] .ct-overlay{
  background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;
}
#commander-table[data-screen=tracker] .ct-dialog :is(input,select,textarea){color:#f5f6ff;background-color:#111a4a66}
#commander-table[data-screen=tracker] .ct-dialog select option{background:#111a4a;color:#f5f6ff}
#commander-table[data-screen=tracker] .ct-dialog.ct-counter-dialog .ct-menu-heading{background:#111a4a9e;border-radius:4px}
#commander-table[data-screen=tracker] #ct-assign-damage .ct-damage-wheel{
  background:linear-gradient(160deg,#7185c724,#111a4a66 46%,#24106452);
  border-color:#bbc8f266;box-shadow:inset 0 1px 0 #e5ebff24,inset 0 -1px 5px #05050922;
}
/* Chance controls use the same palette without flattening dice/coin animations. */
#commander-table[data-screen=tracker] .ct-chance-stage button{background:#111a4a8c;border-color:#bbc8f266;color:#f5f6ff}
#commander-table[data-screen=tracker] .ct-chance-stage :is(.ct-chance-done,.ct-choice-orb){background:linear-gradient(145deg,#e5c84a30,#111a4a66);border-color:#e5c84a99;color:#e5c84a}
#commander-table[data-screen=tracker] .ct-dice-count-wheel{background:linear-gradient(#111a4a55,#24106466 50%,#111a4a55);border-color:#e5c84a80;color:#e5c84a}
#commander-table[data-screen=tracker] .ct-dice-picker label{color:#d4d8e9}
/* Random actions float directly above the board, without another glass pane. */
#commander-table[data-screen=tracker] :is(.ct-chance-layer,.ct-chance-stage,.ct-actor-notice,.ct-actor-label){background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
#commander-table[data-screen=tracker] .ct-actor-notice{grid-template-columns:minmax(0,1fr)}
#commander-table[data-screen=tracker] .ct-actor-label{text-shadow:0 1px 4px #000,0 0 8px #000}

/* Cumulative damage rolls use all of their available height, including partners. */
#commander-table .ct-damage-correction>.ct-damage-correction-wheel{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);align-items:center;justify-items:center;flex:1;width:100%;min-height:0;gap:0;padding:2px 0;border:1px solid var(--ct-line);border-radius:10px;background:linear-gradient(#111a4a55,#24106466 50%,#111a4a55);touch-action:none;user-select:none;-webkit-user-select:none;cursor:ns-resize;overflow:hidden;container-type:size}
#commander-table .ct-damage-correction-wheel>output{width:100%;font-size:clamp(16px,min(65cqw,38cqh),58px);line-height:1.1;color:#e5c84a;border-block:1px solid var(--ct-line)}
#commander-table .ct-damage-correction-wheel>span{font-size:min(16px,18cqh);line-height:1;opacity:.55}
#commander-table .ct-damage-correction-wheel:is(:focus-visible,[data-dragging=true]){outline:2px solid #e5c84a;outline-offset:-2px}

/* Separate tax controls, with the first commander always on the left. */
#commander-table .ct-panel>.ct-head>.ct-tax-group{display:flex;align-items:flex-start;gap:4px;flex:none;grid-column:1;grid-row:1}
#commander-table .ct-panel[data-status-edge=left]>.ct-head>.ct-tax-group{order:2;grid-column:3;margin-left:auto}
#commander-table .ct-panel[data-status-edge=right]>.ct-head>.ct-tax-group{order:0;margin-left:0}
#commander-table .ct-panel .ct-tax-group>.ct-shared-tax{width:var(--ct-top-control-size);min-width:0;height:var(--ct-top-control-size);min-height:0;margin:0;padding:1px;touch-action:none;overflow:visible}
#commander-table .ct-panel .ct-tax-group .ct-tax-display{font-size:calc(var(--ct-top-control-size)*.30);line-height:1.1}
#commander-table .ct-panel .ct-tax-group .ct-tax-display small{font-size:calc(var(--ct-top-control-size)*.24);line-height:1.1}
#commander-table .ct-damage-strip>.ct-damage-seat{width:calc(var(--ct-top-control-size)*.9)}

/* A two-to-one handle; its column reserves space between the other counters. */
#commander-table .ct-panel>.ct-tableau-bottom,#commander-table[data-damage-overview=true] .ct-panel>.ct-tableau-bottom,#commander-table[data-duel-commander=true] .ct-panel>.ct-tableau-bottom{grid-template-columns:minmax(0,1fr) calc(var(--ct-top-control-size)*2) minmax(0,1fr)}
#commander-table .ct-tableau-bottom>.ct-player-menu-trigger{width:calc(var(--ct-top-control-size)*2);height:var(--ct-top-control-size);border-radius:8px}
#commander-table[data-screen=tracker][data-tableau] .ct-panel .ct-tableau-bottom .ct-tableau-statuses>.ct-progress-tax{position:static;inset:auto;transform:none;width:auto;max-width:none;height:var(--ct-bottom-control-size);align-self:end;align-items:end;justify-content:flex-end;flex:none;gap:6px}
#commander-table[data-screen=tracker][data-tableau] .ct-panel .ct-tableau-bottom .ct-tableau-statuses .ct-counter-indicator{width:var(--ct-bottom-control-size);height:var(--ct-bottom-control-size);min-height:0;max-width:none;flex:none;gap:3px;padding:3px;font-size:16px}
#commander-table[data-screen=tracker][data-tableau] .ct-panel .ct-tableau-bottom .ct-tableau-statuses .ct-counter-indicator svg{width:54%;height:54%;flex:none}
#commander-table .ct-player-menu-trigger::before{content:none}
#commander-table .ct-panel .ct-expanded-hit{position:relative;overflow:visible}
#commander-table .ct-expanded-hit::after{content:"";position:absolute;left:calc(-1*var(--hit-left,0px) - 1px);right:calc(-1*var(--hit-right,0px) - 1px);top:calc(-1*var(--hit-top,0px) - 1px);bottom:calc(-1*var(--hit-bottom,0px) - 1px);border-radius:8px}
/* Enlarge glyphs, without enlarging commander damage or moving the table edges. */
#commander-table .ct-panel>.ct-head .ct-name-status svg{width:min(34.8px,calc(var(--ct-top-control-size)*.9));height:min(34.8px,calc(var(--ct-top-control-size)*.9))}
#commander-table[data-phone-table] .ct-panel>.ct-head .ct-name-status svg{width:calc(var(--ct-top-control-size)*.78);height:calc(var(--ct-top-control-size)*.78)}
#commander-table .ct-panel .ct-tableau-bottom :is(.ct-counter-indicator,.ct-tableau-poison) svg{width:54%;height:54%}
#commander-table .ct-player-menu-trigger .ct-menu-six{grid-template-columns:repeat(3,8.4px);grid-template-rows:repeat(2,8.4px)}
#commander-table .ct-menu-six>span{width:100%;height:100%}
#commander-table[data-tableau=duel] .ct-panel>.ct-noncommander-bottom{display:grid;height:max(66px,calc(var(--ct-bottom-control-size)*2 + 6px))}
#commander-table[data-tableau=duel] .ct-panel .ct-noncommander-bottom>.ct-noncommander-icons{position:static;inset:auto;transform:none;display:grid;grid-template-columns:repeat(3,var(--ct-bottom-control-size));grid-auto-rows:var(--ct-bottom-control-size);gap:6px;align-self:end;justify-self:start;width:auto;height:auto}
#commander-table[data-tableau=duel] .ct-panel .ct-noncommander-bottom .ct-counter-indicator{display:flex;width:var(--ct-bottom-control-size);height:var(--ct-bottom-control-size);min-height:0;min-width:0;gap:3px;padding:3px}
#commander-table[data-tableau=duel] .ct-panel .ct-noncommander-bottom .ct-counter-indicator>svg{width:54%;height:54%}
#commander-table[data-tableau=duel] .ct-panel .ct-noncommander-bottom>.ct-tableau-poison{position:relative;inset:auto;align-self:end}
#commander-table[data-phone-table] .ct-player-menu-trigger .ct-menu-six{grid-template-columns:repeat(3,calc(var(--ct-top-control-size)*.168));grid-template-rows:repeat(2,calc(var(--ct-top-control-size)*.168))}
#commander-table .ct-tracker-navigation .ct-bar button>svg:not(.ct-navigation-directions){width:38.4px;height:auto;aspect-ratio:1;flex:none;max-width:100%}
#commander-table .ct-tracker-navigation .ct-random-icon{transform:scale(1.2)}
#commander-table[data-screen=tracker] .ct-dialog svg{scale:1.2}
#commander-table .ct-panel>.ct-life-hitareas>[data-life]{font-size:28.8px}
#commander-table[data-screen=tracker] .ct-choice-orb svg{width:72%;height:72%}
#commander-table[data-screen=tracker] .ct-dice-types button svg{width:min(100%,76.8px);height:clamp(38.4px,min(var(--chance-width)*.144,var(--chance-height)*.156),76.8px)}
#commander-table .ct-tracker-navigation .ct-bar #ct-home .ct-navigation-directions{display:none}
#commander-table[data-bar-collapsed=true] .ct-tracker-navigation .ct-bar #ct-home .ct-navigation-directions{display:block;position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:.5;pointer-events:none;transform:none;transition:none}
#commander-table[data-screen=tracker] .ct-poly-face polygon{fill:hsl(231 43% var(--face-shade));stroke:#e5c84a}
#commander-table[data-screen=tracker] .ct-poly-face text{stroke:#111a4a}
/* Preserve readable surfaces when the browser or accessibility settings turn
   background filtering/transparency off. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  #commander-table[data-screen=tracker]{--ct-glass-tint:linear-gradient(135deg,#111a4aeb,#241064eb);--ct-glass-light:none}
}
@media(prefers-reduced-transparency:reduce){
  #commander-table[data-screen=tracker]{--ct-glass-tint:linear-gradient(135deg,#111a4a,#241064);--ct-glass-light:none;--ct-glass-filter:none}
}
@media(forced-colors:active){
  #commander-table[data-screen=tracker]{--ct-glass-tint:linear-gradient(Canvas,Canvas);--ct-glass-light:none;--ct-glass-filter:none;--ct-glass-shadow:none}
}

/* The seat map is one touch surface: tap for the player menu, drag for damage. */
#commander-table[data-screen=tracker] .ct-grid .ct-seat .ct-panel .ct-head>.ct-damage-strip{display:grid;grid-template-columns:var(--damage-map-columns);grid-template-rows:var(--damage-map-rows);grid-auto-rows:minmax(0,1fr);width:var(--ct-map-width);height:var(--ct-map-height);gap:4px;isolation:isolate;touch-action:none}
#commander-table .ct-damage-strip>.ct-damage-seat{width:100%;height:100%;min-width:0;min-height:0;pointer-events:none}
#commander-table .ct-damage-strip .ct-damage-seat>:is(.ct-damage,.ct-damage-self,.ct-damage-ally){box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;border-radius:6px;pointer-events:none}
#commander-table .ct-damage-strip .ct-damage-self svg:first-child{position:static;width:65%;height:65%;max-width:44px;max-height:44px;transform:none;filter:none;opacity:1}
#commander-table .ct-panel .ct-damage-strip>.ct-damage-open{position:absolute;inset:-4px;width:calc(100% + 8px);height:calc(100% + 8px);border:0;border-radius:10px;background:transparent;box-shadow:none;filter:none;touch-action:none;cursor:pointer}
#commander-table .ct-damage-strip .ct-damage-pair{gap:2px}
#commander-table .ct-damage-strip .ct-damage-pair>.ct-damage{position:relative;inset:auto;transform:none;flex:1;min-width:0;height:100%;margin:0;padding:0;color:#fff;pointer-events:none}
#commander-table[data-screen=tracker] .ct-grid .ct-seat .ct-panel>.ct-head{display:flex;left:16px;right:16px;width:auto;justify-content:space-between;align-items:flex-start}
#commander-table .ct-panel>.ct-head .ct-name-status svg{width:min(52.2px,calc(var(--ct-top-control-size)*.9));height:min(52.2px,calc(var(--ct-top-control-size)*.9))}
#commander-table .ct-panel>.ct-tableau-bottom,#commander-table[data-damage-overview=true] .ct-panel>.ct-tableau-bottom,#commander-table[data-duel-commander=true] .ct-panel>.ct-tableau-bottom{position:absolute;left:16px;right:16px;bottom:14px;display:grid;grid-template-columns:1fr 1fr;height:var(--ct-bottom-control-size);min-height:0;gap:12px}
#commander-table .ct-panel>.ct-tableau-bottom>.ct-foot{grid-column:1}
#commander-table .ct-panel>.ct-tableau-bottom>.ct-tableau-statuses,#commander-table[data-damage-overview] .ct-panel .ct-tableau-bottom>.ct-tableau-statuses{grid-column:2}
#commander-table .ct-panel .ct-tableau-bottom :is(.ct-counter-value,.ct-tableau-poison>span){font-size:calc(var(--ct-bottom-control-size)*.30);line-height:1}

/* One player menu: damage rolls, Rad/Gift, states and the existing game actions. */
#commander-table[data-screen=tracker] .ct-dialog.ct-counter-dialog{--menu-header:40px;--menu-caption:36px;--menu-font:12px;--menu-footer:76px;display:grid;grid-template-rows:40px minmax(0,1fr) var(--menu-footer);gap:10px;padding:10px!important}
#commander-table .ct-dialog.ct-counter-dialog .ct-menu-title{height:40px;padding:0;gap:8px}
#commander-table .ct-dialog.ct-counter-dialog .ct-menu-title h3{flex:1;font-size:20px}
#commander-table .ct-dialog.ct-counter-dialog #ct-seat-change{margin-left:auto}
#commander-table .ct-dialog.ct-counter-dialog .ct-menu-categories,#commander-table .ct-dialog.ct-counter-dialog[data-menu-layout=wide] .ct-menu-categories,#commander-table .ct-dialog.ct-counter-dialog[data-menu-layout=narrow] .ct-menu-categories{display:grid;grid-template-areas:none;grid-template-columns:minmax(0,3fr) minmax(100px,1fr);grid-template-rows:minmax(0,1fr);min-height:0;gap:10px}
#commander-table .ct-dialog.ct-counter-dialog[data-has-damage=false] .ct-menu-categories{grid-template-columns:minmax(0,1fr)}
#commander-table .ct-dialog.ct-counter-dialog .ct-menu-damage{display:grid;grid-template-rows:auto minmax(0,1fr);gap:6px;min-width:0;min-height:0}
#commander-table .ct-damage-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:2px 8px;min-width:0}
#commander-table .ct-damage-heading>h4{margin:0;font-size:13px;line-height:18px}
#commander-table .ct-dialog.ct-counter-dialog .ct-damage-editor{grid-template-columns:var(--damage-map-columns);grid-template-rows:var(--damage-map-rows);gap:6px;height:100%;margin:0}
#commander-table .ct-dialog.ct-counter-dialog .ct-damage-editor section{display:grid;grid-template-columns:repeat(var(--commanders,1),minmax(0,1fr));grid-template-rows:18px minmax(0,1fr);gap:3px;margin:0;padding:4px;border-radius:8px;border-color:var(--damage-source-color)}
#commander-table .ct-dialog.ct-counter-dialog .ct-damage-editor h4{grid-column:1/-1;font-size:12px;line-height:18px}
#commander-table .ct-dialog.ct-counter-dialog .ct-damage-correction{justify-content:stretch}
#commander-table .ct-dialog.ct-counter-dialog .ct-damage-correction>span{font-size:10px;line-height:14px}
#commander-table .ct-dialog.ct-counter-dialog .ct-damage-correction-wheel>output{font-size:clamp(16px,min(65cqw,38cqh),58px)}
#commander-table .ct-dialog.ct-counter-dialog .ct-damage-options{gap:4px;justify-content:flex-end;flex-wrap:wrap;margin:0 0 0 auto}
#commander-table .ct-dialog.ct-counter-dialog .ct-damage-options label{font-size:12px;min-height:28px}
#commander-table .ct-dialog.ct-counter-dialog .ct-menu-counters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;min-height:0;padding-bottom:4px}
#commander-table .ct-dialog.ct-counter-dialog :is(#ct-counter-list,#ct-poison-list){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0;padding:0}
#commander-table .ct-dialog.ct-counter-dialog .ct-counter-row{grid-template-rows:56px minmax(0,1fr)}
#commander-table .ct-dialog.ct-counter-dialog .ct-counter-caption{display:flex;flex-direction:column;justify-content:center;gap:2px}
#commander-table .ct-dialog.ct-counter-dialog .ct-counter-caption .ct-counter-symbol,#commander-table .ct-dialog.ct-counter-dialog[data-menu-dense=true] .ct-counter-caption .ct-counter-symbol{width:34px;height:34px;flex:none}
#commander-table .ct-dialog.ct-counter-dialog[data-menu-dense=true] .ct-counter-caption .ct-counter-name{position:static;clip-path:none;width:auto;height:auto;font-size:12px;line-height:14px}
#commander-table .ct-dialog.ct-counter-dialog .ct-tools,#commander-table .ct-dialog.ct-counter-dialog[data-menu-layout=narrow] .ct-tools{grid-template-columns:1fr 3fr 1fr;grid-template-rows:minmax(0,1fr);gap:8px}
#commander-table .ct-dialog.ct-counter-dialog .ct-tools>.ct-menu-category,#commander-table .ct-dialog.ct-counter-dialog[data-menu-layout=narrow] .ct-tools>.ct-menu-category{grid-column:2;grid-row:1;padding:6px 4px 2px}
#commander-table .ct-dialog.ct-counter-dialog .ct-tools>button,#commander-table .ct-dialog.ct-counter-dialog[data-menu-layout=narrow] .ct-tools>button{grid-row:1;font-size:12px;flex-direction:column;padding:4px}
#commander-table .ct-dialog.ct-counter-dialog .ct-tools>button:last-child{grid-column:3}
#commander-table .ct-dialog.ct-counter-dialog .ct-menu-state svg{width:28px;height:28px}
#commander-table .ct-dialog.ct-counter-dialog[data-menu-layout=narrow] .ct-damage-heading>h4{display:none}
#commander-table .ct-dialog.ct-counter-dialog[data-text-entry=true]{grid-template-rows:44px;gap:0}
#commander-table .ct-dialog.ct-counter-dialog[data-text-entry=true] #ct-seat-change{display:none}

/* All tableau controls share one size and the app's transparent glass material. */
#commander-table[data-screen=tracker] .ct-panel :is(.ct-shared-tax,.ct-monarch,[data-pinned-status=initiative],.ct-counter-indicator,.ct-tableau-poison){box-sizing:border-box;width:var(--ct-top-control-size);height:var(--ct-top-control-size);min-width:0;min-height:0;margin:0;border:1px solid #bcc8f269;border-top-color:#e5ebff99;border-bottom-color:#8f82cf66;border-radius:10px;background-color:transparent;background-image:var(--ct-glass-light),var(--ct-glass-tint);box-shadow:var(--ct-glass-shadow);backdrop-filter:var(--ct-glass-filter);-webkit-backdrop-filter:var(--ct-glass-filter);color:#f5f6ff;text-shadow:0 1px 3px #050509a6}
#commander-table[data-screen=tracker] .ct-panel :is(.ct-monarch,[data-pinned-status=initiative])[aria-pressed=true]{border-color:var(--ct-gold);color:var(--ct-gold)}
#commander-table[data-screen=tracker] .ct-panel .ct-tax-group .ct-tax-display{font-size:calc(var(--ct-top-control-size)*.38);line-height:1.05;font-weight:700}
#commander-table[data-screen=tracker] .ct-panel .ct-tax-group .ct-tax-display small{font-size:calc(var(--ct-top-control-size)*.28);line-height:1.15;font-weight:600}
#commander-table[data-screen=tracker] .ct-panel>.ct-head .ct-name-status svg{width:calc(var(--ct-top-control-size)*.78);height:calc(var(--ct-top-control-size)*.78)}
#commander-table[data-screen=tracker] .ct-grid .ct-seat .ct-panel>.ct-tableau-bottom{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#commander-table .ct-dialog.ct-counter-dialog #ct-counter-list::before{content:none}
#commander-table .ct-dialog.ct-counter-dialog .ct-damage-editor h4{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true]{grid-template-rows:32px minmax(0,1fr) 52px;gap:6px;padding:8px!important}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-menu-title{height:32px}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-menu-title button{width:32px;height:32px}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-menu-categories{margin:0}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-menu-damage{grid-template-rows:auto minmax(0,1fr);gap:4px}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-damage-heading>h4{display:none}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-menu-counters{padding-bottom:3px}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-damage-editor section{grid-template-rows:12px minmax(0,1fr);gap:2px;padding:3px}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-damage-editor h4{font-size:11px;line-height:12px}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-damage-correction{grid-template-rows:minmax(0,1fr);gap:0}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-damage-correction>span{display:none}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-damage-options label{min-height:24px;font-size:11px}
#commander-table .ct-dialog.ct-counter-dialog[data-damage-dense=true] .ct-menu-state svg{width:24px;height:24px}
.ct-chain-reticle{transform-box:fill-box;transform-origin:center;animation:var(--drag-animation,ct-reticle-pulse 1.1s ease-in-out infinite)}
@keyframes ct-reticle-pulse{0%,100%{transform:scale(.94);opacity:.85}50%{transform:scale(1.08);opacity:1}}
@media(prefers-reduced-motion:reduce){.ct-chain-reticle{animation:none}}

/* Every damage and counter roll has the same three bands and touch feedback. */
#commander-table[data-screen=tracker] :is(.ct-dialog,#ct-assign-damage) .ct-value-wheel{box-sizing:border-box;position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);align-items:center;justify-items:center;width:100%;height:100%;min-width:0;min-height:0;gap:0;margin:0;padding:2px 0;overflow:hidden;container-type:size;border:1px solid var(--ct-line);border-radius:10px;background:linear-gradient(var(--ct-panel),var(--ct-button) 38%,var(--ct-button) 62%,var(--ct-panel));box-shadow:none;touch-action:none;user-select:none;-webkit-user-select:none;cursor:ns-resize;outline-offset:-2px}
#commander-table[data-screen=tracker] :is(.ct-dialog,#ct-assign-damage) .ct-value-wheel>output{display:block;grid-column:1;grid-row:2;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;border-block:1px solid var(--ct-line);font-size:clamp(12px,min(65cqw,38cqh),76px);font-weight:700;font-variant-numeric:tabular-nums;line-height:1.1;text-align:center;color:var(--ct-ink);pointer-events:none}
#commander-table[data-screen=tracker] :is(.ct-dialog,#ct-assign-damage) .ct-value-wheel>span{grid-column:1;box-sizing:border-box;min-height:0;height:auto;margin:0;padding:0;font-size:clamp(6px,min(26cqw,18cqh),36px);font-weight:400;line-height:1;color:var(--ct-ink);opacity:.85;pointer-events:none}
#commander-table[data-screen=tracker] :is(.ct-dialog,#ct-assign-damage) .ct-value-wheel>[data-wheel-before]{grid-row:1}
#commander-table[data-screen=tracker] :is(.ct-dialog,#ct-assign-damage) .ct-value-wheel>[data-wheel-after]{grid-row:3}
#commander-table[data-screen=tracker] :is(.ct-dialog,#ct-assign-damage) .ct-value-wheel>span[data-disabled]{opacity:.25}
#commander-table[data-screen=tracker] :is(.ct-dialog,#ct-assign-damage) .ct-value-wheel:is(:focus-visible,[data-dragging=true]){outline:2px solid var(--ct-gold);outline-offset:-2px}
#commander-table[data-screen=tracker] :is(.ct-dialog,#ct-assign-damage) .ct-value-wheel[data-pinned=true]{border-color:var(--ct-gold)}
#commander-table .ct-number{font-variant-numeric:tabular-nums}

/* Finishing a game is a portrait form, independent of the navigation's reading side. */
#commander-table[data-screen=tracker] .ct-dialog[data-finish=true]{display:flex;flex-direction:column;gap:12px;padding:16px;overflow:hidden}
#commander-table[data-screen=tracker] .ct-dialog[data-finish=true]>h3{flex:none;margin:0;padding:0;font-size:22px;text-align:center}
#commander-table .ct-dialog[data-finish=true]>#ct-finish-form{flex:1;min-height:0;width:100%;margin:0;overflow-y:auto;overscroll-behavior:contain;padding:0 2px;box-sizing:border-box}
#commander-table .ct-dialog[data-finish=true] .ct-finish-section{margin:0;padding:14px 0;border-top:0;border-bottom:1px solid var(--ct-line)}
#commander-table .ct-dialog[data-finish=true] .ct-finish-section:last-child{border-bottom:0;padding-bottom:0}
#commander-table .ct-dialog[data-finish=true] .ct-finish-divider{width:100%;margin:14px 0;border:0;border-top:1px solid var(--ct-line)}
#commander-table .ct-dialog[data-finish=true] .ct-result-row,#commander-table .ct-dialog[data-finish=true] .ct-result-labels{grid-template-columns:minmax(0,1fr) 48px minmax(0,1.45fr);gap:6px}
#commander-table .ct-dialog[data-finish=true] .ct-result-row>select{box-sizing:border-box;min-width:0;width:100%;min-height:44px;font-size:14px;padding:8px 2px}
#commander-table .ct-dialog[data-finish=true] .ct-finish-actions>button{min-height:44px;padding:8px 6px;font-size:14px}
#commander-table .ct-dialog[data-finish=true] .ct-finish-save-section .ct-finish-actions>button{color:var(--ct-gold);border-color:#e5c84a99;background:#e5c84a1a}
#commander-table .ct-dialog[data-finish=true] :is(#ct-restart-unsaved,#ct-abort-game){color:#ff8585;border-color:#ff858580;background:#ff858514}
#commander-table .ct-awake-setting{margin:0;padding:0;border:0;background:none;min-width:0}
#commander-table .ct-awake-setting>#ct-wake-note{margin:8px 0 0;font-size:13px;line-height:1.4;color:var(--ct-muted)}

/* Phone text entry reads upright with the device keyboard, not along a seat.
   The safe visible viewport is measured separately from the unchanged board. */
#commander-table[data-device-view=smartphone][data-screen=tracker][data-viewport-editing=true]{height:var(--op-shell-height)!important;bottom:auto!important}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true]{padding:12px;scroll-padding:12px}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true]:not(.ct-counter-dialog){display:flex;flex-direction:column;gap:8px;overflow:hidden}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true]:not(.ct-counter-dialog)>*{flex:none;min-width:0;margin-block:0}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true]>:is(h3,.ct-profile-form-heading h1){font-size:20px;line-height:1.2}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true] #ct-dialog-title{font-size:18px;line-height:1.25;min-height:0;padding:0;margin:0}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true]>#ct-profile-cancel{min-height:36px;padding:4px 8px}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true]>#ct-profile-form{flex:1;min-height:0;margin:0;padding:2px 4px;border:0;border-radius:0;background:none}
#commander-table .ct-text-form-body{display:contents}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true]>:is(#ct-profile-form,#ct-commander-form){display:flex;flex-direction:column;overflow:hidden}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true] .ct-text-form-body{display:block;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:8px}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true] #ct-profile-form .ct-text-form-body>label:not([hidden]){display:flex;flex-direction:column;margin:0;gap:6px}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true] :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea){box-sizing:border-box;width:100%;min-width:0;max-width:100%;font-size:16px;min-height:44px;scroll-margin:8px}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true] #ct-picker-profile-search{font-size:16px;margin:0}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true]>:is(form,.ct-profile-picker){flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:8px}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true] .ct-profile-form-actions{position:static;flex:none;margin:0;padding:8px 0 0;background:none;gap:8px}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true] .ct-profile-form-actions button{min-width:0;min-height:44px;padding:8px;font-size:14px;flex:1}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true] #ct-commander-form .ct-text-form-body>label:not([hidden]){display:flex;flex-direction:column;gap:6px;margin:8px 0}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true] :is(#ct-commander-name,#ct-second-name,#ct-profile-name){padding:8px 10px;border:1px solid var(--ct-muted);border-radius:10px;outline-offset:-3px}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true] .ct-card-suggestions{max-height:clamp(44px,calc(var(--menu-height) - 240px),180px);overflow-y:auto;overscroll-behavior:contain}
#commander-table[data-screen=tracker] .ct-dialog[data-text-entry=true] .ct-card-suggestions>button{min-height:44px;font-size:16px}
#commander-table[data-screen=tracker] .ct-dialog.ct-counter-dialog[data-text-entry=true] .ct-menu-title{height:44px;padding-right:0}
#commander-table[data-screen=tracker] .ct-dialog.ct-counter-dialog[data-text-entry=true] .ct-menu-title button{width:44px;height:44px}
#commander-table[data-screen=tracker] .ct-dialog.ct-counter-dialog[data-text-entry=true]>:is(.ct-menu-categories,.ct-tools){display:none}
#commander-table[data-screen=tracker] .ct-dialog.ct-counter-dialog[data-text-entry=true] #ct-player-name-input{font-size:16px;min-height:44px}
#commander-table[data-screen=tracker][data-keyboard=true] .ct-dialog[data-text-entry=true] :is(.ct-profile-photo-editor,.ct-profile-avatars,.ct-artwork-choice){display:none}

/* Five or more players: passive overview, with explicit life controls. */
#commander-table[data-tableau-view=overview] .ct-panel>.ct-overview-open{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:inherit;background:none;box-shadow:none;z-index:1;touch-action:manipulation}
#commander-table[data-tableau-view=overview] .ct-panel>:is(.ct-head,.ct-tableau-bottom),
#commander-table[data-tableau-view=overview] .ct-panel>:is(.ct-head,.ct-tableau-bottom) *{pointer-events:none!important}
#commander-table[data-tableau-view=overview] .ct-panel>.ct-life-hitareas{pointer-events:none;z-index:5}
#commander-table[data-tableau-view=overview] .ct-panel>.ct-life-hitareas>[data-life]{position:absolute;top:50%;bottom:auto;left:0;right:auto;width:var(--overview-hit-size);height:var(--overview-hit-size);min-height:0;padding:0;transform:translateY(-50%);pointer-events:auto;font-size:calc(var(--overview-hit-size)*.56);border:0;border-radius:8px;background:#101a3633}
#commander-table[data-tableau-view=overview] .ct-panel>.ct-life-hitareas>[data-d="1"]{left:auto;right:0}
#commander-table[data-tableau-view=overview] .ct-panel>.ct-tableau-bottom{height:calc(var(--ct-bottom-control-size)*1.4);gap:6px}
#commander-table[data-tableau-view=overview] .ct-panel .ct-tableau-bottom :is(.ct-tableau-statuses,.ct-progress-tax,.ct-pinned){gap:3px}
#commander-table[data-screen=tracker][data-tableau-view=overview] .ct-panel .ct-tableau-bottom :is(.ct-tableau-statuses,.ct-foot) .ct-counter-indicator,
#commander-table[data-screen=tracker][data-tableau-view=overview] .ct-panel .ct-tableau-bottom .ct-tableau-poison{font-size:calc(var(--ct-bottom-control-size)*.4);line-height:1;gap:0;padding:1px;border-radius:5px}
#commander-table[data-screen=tracker][data-tableau-view=overview] .ct-panel .ct-tableau-bottom :is(.ct-tableau-statuses,.ct-foot) .ct-counter-indicator svg,
#commander-table[data-screen=tracker][data-tableau-view=overview] .ct-panel .ct-tableau-bottom .ct-tableau-poison svg{width:40%;height:40%}
#commander-table[data-tableau-view=overview] .ct-panel .ct-tax-group>.ct-shared-tax strong.ct-tax-display{font-size:calc(var(--ct-top-control-size)*.36);line-height:1.1}
#commander-table[data-tableau-view=overview] .ct-panel .ct-tax-group>.ct-shared-tax strong.ct-tax-display small{font-size:calc(var(--ct-top-control-size)*.27);line-height:1.1}
#commander-table[data-tableau-view=overview] .ct-player-menu-trigger .ct-menu-six{grid-template-columns:repeat(3,calc(var(--ct-top-control-size)*.168));grid-template-rows:repeat(2,calc(var(--ct-top-control-size)*.168));gap:2px}

/* The selected seat fills the existing safe board, retaining its reading side. */
#commander-table[data-screen=tracker][data-tableau-view=focused] .ct-grid{display:block;position:relative;height:var(--table-total-height);padding:0;gap:0}
#commander-table[data-tableau-view=focused] .ct-grid>.ct-seat{position:absolute;inset:0;width:100%;height:100%;min-height:0}
#commander-table[data-tableau-view=focused] .ct-grid>.ct-seat>.ct-panel{position:absolute;left:50%;top:50%;width:var(--focus-width);height:var(--focus-height);min-height:0;max-height:none;transform:translate(-50%,-50%) rotate(var(--orientation));padding:12px}
#commander-table[data-tableau-view=focused] .ct-grid>.ct-seat[data-side=true]>.ct-panel{width:var(--focus-height);height:var(--focus-width)}
#commander-table[data-tableau-view=focused] .ct-panel>.ct-head{top:calc(var(--focus-header) + 6px)}
#commander-table[data-tableau-view=focused] .ct-focus-heading{position:absolute;inset:0 8px auto;height:var(--focus-header);display:grid;grid-template-columns:var(--focus-header) minmax(0,1fr) var(--focus-header);align-items:center;gap:6px;z-index:7;pointer-events:none}
#commander-table[data-tableau-view=focused] .ct-focus-heading>strong{font-size:clamp(16px,3cqw,25px);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;text-shadow:0 1px 4px #000}
#commander-table[data-tableau-view=focused] .ct-focus-heading>[data-tableau-back]{pointer-events:auto;display:grid;place-items:center;min-width:0;min-height:0;width:85%;height:85%;padding:0;background:#101a3688;border:1px solid #929ab477;border-radius:10px}
#commander-table .ct-focus-heading>[data-tableau-back]>svg{width:55%;height:55%}
#commander-table .ct-focus-navigation{display:block;width:100%;height:100%}
#commander-table .ct-tableau-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#commander-table .ct-tableau-targets>button{min-height:44px;min-width:0;padding:10px 6px;border-color:var(--target-color);background:color-mix(in srgb,var(--target-color) 16%,#101a3699);overflow-wrap:anywhere}
#commander-table[data-screen=tracker] .ct-dialog:has(.ct-seat-picker){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);gap:10px;overflow:hidden}
#commander-table .ct-dialog:has(.ct-seat-picker)>:is(h3,p){margin:0;min-width:0}
#commander-table .ct-tableau-targets.ct-seat-picker{box-sizing:border-box;grid-template-columns:var(--damage-map-columns);grid-template-rows:var(--damage-map-rows);width:100%;height:100%;min-width:0;min-height:0;gap:8px}
#commander-table .ct-seat-picker>[data-seat-player]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:0;margin:0;padding:6px;border:1px solid var(--target-color);border-radius:10px;background:color-mix(in srgb,var(--target-color) 16%,#101a3699);overflow:hidden;text-align:center;overflow-wrap:anywhere}
#commander-table .ct-seat-picker strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%;font-size:16px;line-height:1.2}
#commander-table .ct-seat-picker small,#commander-table .ct-seat-picker .ct-tableau-current>span{font-size:12px;line-height:1.2}
#commander-table .ct-seat-picker>.ct-tableau-current{border:2px solid var(--ct-gold);color:var(--ct-gold);background:#e5c84a12}
