.not-found-page {
  box-sizing: border-box;
  display: grid;
  min-height: 100vh;
  margin: 0;
  padding: 32px 20px;
  place-items: center;
  background: radial-gradient(ellipse at 50% 35%, #24211c 0, #141414 50%, #101010 100%);
  color: #f2f2f2;
  font-family: Arial, sans-serif;
  text-align: center;
}
body:has(> .not-found-page) { margin: 0; background: #101010; }
.not-found-root .not-found-page { min-height: calc(100vh - 56px); }
.not-found-card { width: 460px; max-width: 100%; }
.not-found-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.not-found-mark { display: block; height: 48px; width: auto; }
.not-found-word { display: block; height: 36px; width: auto; }
.not-found-code {
  margin-top: 40px;
  color: #292722;
  font-size: clamp(100px, 22vw, 172px);
  font-weight: var(--heavy);
  line-height: 1;
  letter-spacing: -8px;
  text-shadow: 0 1px 0 #4c4030;
}
.not-found-accent { width: 44px; height: 4px; margin: 24px auto; border-radius: 4px; background: #ff9e45; }
.not-found-card h1 { margin: 0 0 12px; font-size: 32px; font-weight: var(--bold); letter-spacing: -1px; }
.not-found-card p { margin: 0; color: #a5a29e; font-size: 16px; line-height: 1.7; }
.not-found-home {
  display: inline-flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  padding: 0 24px;
  border: 1px solid #78502a;
  border-radius: 12px;
  line-height: 24px;
  background: #292016;
  color: #ffb36b;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.not-found-home:hover { background: #382a1b; border-color: #ff9e45; }
.not-found-home:focus-visible, .not-found-brand:focus-visible { outline: 2px solid #ff9e45; outline-offset: 4px; }

.theme-light .not-found-page { background: radial-gradient(ellipse at 50% 35%, #fff3e8 0, #fafafa 50%, #f5f5f5 100%); color: rgba(0, 0, 0, 0.9); }
.theme-light body:has(> .not-found-page) { background: #fafafa; }
.theme-light .not-found-mark {  background: url("/assets/maxgto-mark-light.webp") center / contain no-repeat; object-position: -9999px 0; }
.theme-light .not-found-word {  background: url("/assets/maxgto-word-light.svg") center / contain no-repeat; object-position: -9999px 0; }
.theme-light .not-found-code { color: #ececec; text-shadow: 0 1px 0 #ffffff; }
.theme-light .not-found-accent { background: #e8692d; }
.theme-light .not-found-card p { color: rgba(0, 0, 0, 0.6); }
.theme-light .not-found-home { border-color: #f2b993; background: #fff3ea; color: #c4501a; }
.theme-light .not-found-home:hover { border-color: #e8692d; background: #ffe7d6; }
.theme-light :is(.not-found-home, .not-found-brand):focus-visible { outline-color: #e8692d; }
/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --ease-in: cubic-bezier(.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }
  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }
  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }
  sub {
    bottom: -.25em;
  }
  sup {
    top: -.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }
  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }
    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }
  ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button {
    height: auto;
  }
  ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer components;
@layer utilities {
  .invisible {
    visibility: hidden;
  }
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .sticky {
    position: sticky;
  }
  .container {
    width: 100%;
  }
  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }
  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }
  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }
  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }
  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }
  .\!grid {
    display: grid !important;
  }
  .\!hidden {
    display: none !important;
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .table {
    display: table;
  }
  .shrink {
    flex-shrink: 1;
  }
  .grow {
    flex-grow: 1;
  }
  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }
  .resize {
    resize: both;
  }
  .rounded {
    border-radius: .25rem;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .italic {
    font-style: italic;
  }
  .tabular-nums {
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
  }
  .underline {
    text-decoration-line: underline;
  }
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .\!ring {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor) !important;
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
  }
  .ring {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
  .grayscale {
    --tw-grayscale: grayscale(100%);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .ease-in {
    --tw-ease: var(--ease-in);
    transition-timing-function: var(--ease-in);
  }
  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }
  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }
  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }
}
:root {
  color-scheme: dark;
  --radius: .5rem;
  --background: #242424;
  --foreground: #ffffffdb;
  --card: #292929;
  --card-foreground: #ffffffdb;
  --popover: #2f2f2f;
  --popover-foreground: #ffffffdb;
  --primary: #ff9e45;
  --primary-foreground: #191919;
  --secondary: #333;
  --secondary-foreground: #ffffffc7;
  --muted: #303030;
  --muted-foreground: #ffffff8f;
  --accent: #3a3a3a;
  --accent-foreground: #ffffffe6;
  --destructive: #ff5d5d;
  --border: var(--line);
  --input: #ffffff1f;
  --ring: #ff9e45;
}
* {
  box-sizing: border-box;
}
html, body, #root {
  min-height: 100%;
}
body {
  background: var(--background);
  min-width: 1120px;
  color: var(--foreground);
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 14px;
}
button, input {
  font: inherit;
}
button {
  color: inherit;
}
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.cell-fill i {
  min-width: 0;
  height: 100%;
  display: block;
}
.matrix-loader-panel {
  animation: 1.4s ease-in-out infinite matrix-loader-lift;
}
@keyframes matrix-loader-lift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@media (max-width: 1280px) {
  body {
    min-width: 980px;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-ordinal {
  syntax: "*";
  inherits: false
}
@property --tw-slashed-zero {
  syntax: "*";
  inherits: false
}
@property --tw-numeric-figure {
  syntax: "*";
  inherits: false
}
@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false
}
@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false
}
@property --tw-brightness {
  syntax: "*";
  inherits: false
}
@property --tw-contrast {
  syntax: "*";
  inherits: false
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}
@property --tw-invert {
  syntax: "*";
  inherits: false
}
@property --tw-opacity {
  syntax: "*";
  inherits: false
}
@property --tw-saturate {
  syntax: "*";
  inherits: false
}
@property --tw-sepia {
  syntax: "*";
  inherits: false
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}
@property --tw-ease {
  syntax: "*";
  inherits: false
}

:root {
  --heavy: 600;
  --bold: 600;
  --black: 600;
  --surface-page: #242424;
  --surface-panel: #292929;
  --surface-rail: #333333;
  --surface-sunken: #1f1f1f;
  --surface-raised: #3a3a3a;
  --surface-hover: #353535;
  --surface-active: #3d3d3d;
  --skeleton-sheen: rgba(255, 255, 255, 0.16);
  --text-strong: rgba(255, 255, 255, 0.9);
  --text-normal: rgba(255, 255, 255, 0.86);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.62);
  --text-muted: rgba(255, 255, 255, 0.56);
  --text-on-accent: #242424;
  --ink: 255 255 255;
  --line: #3d3d3d;
  --line-strong: #4a4a4a;
  --line-stronger: rgba(255, 255, 255, 0.4);
  --solver-fold: #3880ca;
  --solver-passive: #50bc5e;
  --solver-bet-light: #ff8166;
  --solver-aggressive: #e64343;
  --solver-bet-deep: #b12532;
  --solver-allin: #8c2a87;
  --brand-orange: #ffbe90;
  --accent-orange: #f88546;
  --accent-orange-deep: #e26c33;
  --remove-ink: #f17778;
  --remove-ground: color-mix(in srgb, #dc3c3d 12%, transparent);
  --range-fill: var(--pick);
  --focus-line: #737b86;
  --focus-ink: #f4f5f7;
  --action-fold: #3f7fbd;
  --action-fold-hover: #4a8ecd;
  --action-passive: #58b967;
  --action-passive-hover: #63c973;
  --action-aggressive: #f7343f;
  --action-raise: #eb303a;
  --action-aggressive-hover: #ff4450;
  --action-allin: #861b21;
  --action-allin-hover: #9a2129;
  --grade-good: #58b967;
  --grade-warn: #e6a935;
  --grade-bad: #f7343f;
  --accent-brand: #ff9e45;
  --pick: #ff9e45;
  --matrix-lit: var(--pick);
  --amber-pick: #ff9e45;
  --neural-text: #8fc7ff;
  --ai-accent: #b69cff;
  --ai-accent-strong: #7c5cf0;
  --accent-brand-hover: #ffad5f;
  --accent-brand-deep: #fc8e29;
  --text-on-brand: #ffffff;
}
:root.os-mac { --heavy: 800; --bold: 700; --black: 900; }
.action-fill.is-fold { background: var(--action-fold); }
.action-fill.is-call { background: var(--action-passive); }
.action-fill.is-bet { background: var(--action-aggressive); }
.action-fill.is-raise { background: var(--action-raise); }
.action-fill.is-allin { background: var(--action-allin); }
.action-fill.is-bet.is-shade-1 { background: color-mix(in srgb, var(--action-allin) 10%, var(--action-aggressive)); }
.action-fill.is-bet.is-shade-2 { background: color-mix(in srgb, var(--action-allin) 20%, var(--action-aggressive)); }
.action-fill.is-bet.is-shade-3 { background: color-mix(in srgb, var(--action-allin) 30%, var(--action-aggressive)); }
.action-fill.is-bet.is-shade-4 { background: color-mix(in srgb, var(--action-allin) 40%, var(--action-aggressive)); }
.action-fill.is-bet.is-shade-5 { background: color-mix(in srgb, var(--action-allin) 50%, var(--action-aggressive)); }
.action-fill.is-bet.is-shade-6 { background: color-mix(in srgb, var(--action-allin) 60%, var(--action-aggressive)); }
.action-fill.is-bet.is-shade-7 { background: color-mix(in srgb, var(--action-allin) 70%, var(--action-aggressive)); }
.action-fill.is-bet.is-shade-8 { background: color-mix(in srgb, var(--action-allin) 80%, var(--action-aggressive)); }
.action-fill.is-raise.is-shade-1 { background: color-mix(in srgb, var(--action-allin) 10%, var(--action-raise)); }
.action-fill.is-raise.is-shade-2 { background: color-mix(in srgb, var(--action-allin) 20%, var(--action-raise)); }
.action-fill.is-raise.is-shade-3 { background: color-mix(in srgb, var(--action-allin) 30%, var(--action-raise)); }
.action-fill.is-raise.is-shade-4 { background: color-mix(in srgb, var(--action-allin) 40%, var(--action-raise)); }
.action-fill.is-raise.is-shade-5 { background: color-mix(in srgb, var(--action-allin) 50%, var(--action-raise)); }
.action-fill.is-raise.is-shade-6 { background: color-mix(in srgb, var(--action-allin) 60%, var(--action-raise)); }
.action-fill.is-raise.is-shade-7 { background: color-mix(in srgb, var(--action-allin) 70%, var(--action-raise)); }
.action-fill.is-raise.is-shade-8 { background: color-mix(in srgb, var(--action-allin) 80%, var(--action-raise)); }
:root {
  --heat-red: #e8453c;
  --heat-orange: #f3923a;
  --heat-yellow: #c8c24b;
  --heat-green: #5bc464;
  --blocker-positive: #72c55e;
  --blocker-negative: #f34e43;
  --blocker-neutral: #efb348;
}
.heat-fill.is-heat-0 { background: var(--heat-red); }
.heat-fill.is-heat-1 { background: color-mix(in srgb, var(--heat-orange) 50%, var(--heat-red)); }
.heat-fill.is-heat-2 { background: var(--heat-orange); }
.heat-fill.is-heat-3 { background: color-mix(in srgb, var(--heat-yellow) 33%, var(--heat-orange)); }
.heat-fill.is-heat-4 { background: color-mix(in srgb, var(--heat-yellow) 67%, var(--heat-orange)); }
.heat-fill.is-heat-5 { background: var(--heat-yellow); }
.heat-fill.is-heat-6 { background: color-mix(in srgb, var(--heat-green) 20%, var(--heat-yellow)); }
.heat-fill.is-heat-7 { background: color-mix(in srgb, var(--heat-green) 40%, var(--heat-yellow)); }
.heat-fill.is-heat-8 { background: color-mix(in srgb, var(--heat-green) 60%, var(--heat-yellow)); }
.heat-fill.is-heat-9 { background: color-mix(in srgb, var(--heat-green) 80%, var(--heat-yellow)); }
.heat-fill.is-heat-10 { background: var(--heat-green); }
:root {
  --chart-1: #d9782a;
  --chart-2: #9085e9;
  --chart-3: #199e70;
  --chart-4: #3987e5;
  --chart-grid: #383838;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #171615;
  color: var(--text-normal);
  transition: opacity 520ms cubic-bezier(0.4, 0, 0.2, 1);
}
.boot.is-leaving { opacity: 0; pointer-events: none; }
.boot img { max-width: none; }
.boot-sky {
  position: absolute;
  inset: 0;
  animation: boot-show 1400ms ease-out both;
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1);
}
.boot.is-leaving .boot-sky { transform: scale(1.3); }
.boot-blob {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.boot-blob.is-one {
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  background: radial-gradient(circle, rgba(255, 138, 48, 0.42) 0%, rgba(255, 138, 48, 0) 62%);
  animation: boot-aurora-one 9000ms ease-in-out infinite alternate both;
}
.boot-blob.is-two {
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  background: radial-gradient(circle, rgba(255, 70, 110, 0.26) 0%, rgba(255, 70, 110, 0) 62%);
  animation: boot-aurora-two 11000ms ease-in-out infinite alternate both;
}
.boot-blob.is-three {
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.24) 0%, rgba(255, 210, 120, 0) 62%);
  animation: boot-aurora-three 13000ms ease-in-out infinite alternate both;
}
@keyframes boot-aurora-one {
  from { transform: translate(-190px, -70px) scale(1); }
  to { transform: translate(70px, 50px) scale(1.18); }
}
@keyframes boot-aurora-two {
  from { transform: translate(190px, 60px) scale(1.1); }
  to { transform: translate(-70px, -60px) scale(0.92); }
}
@keyframes boot-aurora-three {
  from { transform: translate(30px, 140px) scale(0.9); }
  to { transform: translate(-150px, -30px) scale(1.12); }
}
@keyframes boot-show {
  from { opacity: 0; }
  to { opacity: 1; }
}
.boot-veil {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(75% 75% at 50% 50%, rgba(23, 22, 21, 0) 35%, rgba(23, 22, 21, 0.85) 100%);
}
.boot-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 36px;
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1);
}
.boot.is-leaving .boot-stage { transform: translateY(-10px); }
.boot-focus { animation: boot-focus 1200ms cubic-bezier(0.16, 1, 0.3, 1) 150ms both; }
@keyframes boot-focus {
  from { opacity: 0; transform: scale(1.14); }
  to { opacity: 1; transform: none; }
}
.boot-logo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: boot-float 3200ms ease-in-out 1300ms infinite alternate both;
}
@keyframes boot-float {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}
.boot-mark { display: block; height: 56px; }
.boot-word { display: block; height: 40px; }
.boot-mark, .boot-word { animation: boot-sharpen 1200ms cubic-bezier(0.16, 1, 0.3, 1) 150ms both; }
@keyframes boot-sharpen {
  from { opacity: 0; }
  to { opacity: 1; }
}
.boot-logo::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/maxgto-mark-Db5YKgw-.webp") left center / auto 56px no-repeat,
    url("/assets/maxgto-word-D1-rwnfh.svg") right center / auto 40px no-repeat;
  filter: blur(12px);
  animation: boot-unfocus 1200ms cubic-bezier(0.16, 1, 0.3, 1) 150ms both;
}
@keyframes boot-unfocus {
  from { opacity: 1; }
  to { opacity: 0; }
}
.boot-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: url("/assets/maxgto-mark-Db5YKgw-.webp"), url("/assets/maxgto-word-D1-rwnfh.svg");
  mask-image: url("/assets/maxgto-mark-Db5YKgw-.webp"), url("/assets/maxgto-word-D1-rwnfh.svg");
  -webkit-mask-position: left center, right center;
  mask-position: left center, right center;
  -webkit-mask-size: auto 56px, auto 40px;
  mask-size: auto 56px, auto 40px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.boot-shine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  background: linear-gradient(105deg, rgba(255, 236, 210, 0) 10%, rgba(255, 236, 210, 0.55) 50%, rgba(255, 236, 210, 0) 90%);
  transform: translateX(-110%);
  animation: boot-shine 4200ms 1400ms infinite;
}
@keyframes boot-shine {
  0% { transform: translateX(-110%); animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
  40%, 100% { transform: translateX(310%); }
}
.boot-dots { display: flex; gap: 8px; animation: boot-show 600ms ease-out 1000ms both; }
.boot-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc58a;
  animation: boot-dot 700ms ease-in-out infinite alternate both;
}
.boot-dots i:nth-child(2) { animation-delay: 230ms; }
.boot-dots i:nth-child(3) { animation-delay: 460ms; }
@keyframes boot-dot {
  from { opacity: 0.25; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1.1); }
}
.theme-light .boot { background: #fafafa; color: rgba(0, 0, 0, 0.9); }
.theme-light .boot-blob.is-one { background: radial-gradient(circle, rgba(255, 138, 48, 0.22) 0%, rgba(255, 138, 48, 0) 62%); }
.theme-light .boot-blob.is-two { background: radial-gradient(circle, rgba(255, 70, 110, 0.12) 0%, rgba(255, 70, 110, 0) 62%); }
.theme-light .boot-blob.is-three { background: radial-gradient(circle, rgba(255, 190, 90, 0.16) 0%, rgba(255, 190, 90, 0) 62%); }
.theme-light .boot-veil { background: radial-gradient(75% 75% at 50% 50%, rgba(250, 250, 250, 0) 35%, rgba(250, 250, 250, 0.85) 100%); }
.theme-light .boot-mark {  background: url("/assets/maxgto-mark-light-CRdnV4mz.webp") center / contain no-repeat; object-position: -9999px 0; }
.theme-light .boot-word {  background: url("/assets/maxgto-word-light-oWpT93cj.svg") center / contain no-repeat; object-position: -9999px 0; }
.theme-light .boot-logo::before { background-image: url("/assets/maxgto-mark-light-CRdnV4mz.webp"), url("/assets/maxgto-word-light-oWpT93cj.svg"); }
.theme-light .boot-dots i { background: #e8692d; }
.theme-light .boot-late { color: rgba(0, 0, 0, 0.47); }
.boot-late {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 48px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0;
  visibility: hidden;
  animation: boot-late 400ms ease-out 5000ms both;
}
.boot.has-deadline .boot-late { animation: none; }
.boot.is-expired .boot-late { animation: boot-late 400ms ease-out both; }
.page-loading .boot-late { display: none; }
.boot-late a { margin-left: 4px; color: var(--accent-brand); font-weight: 600; text-decoration: none; }
.boot-late a:hover { text-decoration: underline; }
@keyframes boot-late {
  to { opacity: 1; visibility: visible; }
}
@media (max-width: 520px) {
  .boot-logo { gap: 12px; }
  .boot-mark { height: 40px; }
  .boot-word { height: 28px; }
  .boot-logo::before { background-size: auto 40px, auto 28px; }
  .boot-shine {
    -webkit-mask-size: auto 40px, auto 28px;
    mask-size: auto 40px, auto 28px;
  }
  .boot-blob.is-one { width: 384px; height: 384px; margin: -192px 0 0 -192px; }
  .boot-blob.is-two { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .boot-blob.is-three { width: 304px; height: 304px; margin: -152px 0 0 -152px; }
}
body:has(.page-loading.is-shown) { min-width: 0; }
.page-loading { opacity: 0; transition: opacity 300ms ease-out 180ms; }
.page-loading.is-shown { opacity: 1; }
.page-loading.is-leaving { transition: opacity 320ms cubic-bezier(0.4, 0, 0.2, 1); }
body:has(noscript > *) .boot { display: none; }
#root > .noscript-page { display: none; }
body:has(noscript > *) #root > .noscript-page { display: block; }
.noscript-page { max-width: 720px; margin: 0 auto; padding: 48px 16px; color: var(--text-normal); font-size: 16px; line-height: 1.5; }
.noscript-page h1 { margin: 0 0 16px; font-size: 32px; }
.noscript-page h2 { margin: 32px 0 8px; font-size: 20px; }
.noscript-page li { margin-bottom: 8px; }
.noscript-page a { color: var(--brand-orange); }

.playing-card {
  --card-width: 60px;
  --card-height: 80px;
  --card-rank-font: calc(var(--card-height) * var(--rank-size, 0.6));
  --card-suit-font: calc(var(--card-height) * var(--suit-size, 1.2));
  --suit-scale: 1;
  --suit-x: 0;
  --suit-y: 0;
  position: relative;
  display: block;
  flex-shrink: 0;
  width: var(--card-width);
  height: var(--card-height);
  overflow: hidden;
  border: var(--card-border-width, 1px) solid;
  border-radius: var(--card-radius, 6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 0 rgba(0, 0, 0, 0.38);
}
.playing-card.suit-s {
  --suit-glyph: var(--suit-s-glyph, "\2660");
  --suit-mask: var(--suit-s-mask, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M50%208C50%208%2088%2034%2088%2057C88%2070%2079%2079%2068%2079C61%2079%2055%2075%2052%2069C53%2081%2057%2089%2064%2095L36%2095C43%2089%2047%2081%2048%2069C45%2075%2039%2079%2032%2079C21%2079%2012%2070%2012%2057C12%2034%2050%208%2050%208Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E"));
  --suit-color: var(--suit-s-color, #555555);
  border-color: var(--card-border-color, var(--suit-s-border, #7a7a7a));
  background: var(--suit-s-face, linear-gradient(145deg, #737373 0%, #555555 48%, #3f3f3f 100%));
}
.playing-card.suit-h {
  --suit-glyph: var(--suit-h-glyph, "\2665");
  --suit-mask: var(--suit-h-mask, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M50%2092C18%2068%206%2050%206%2033C6%2018%2017%208%2030%208C39%208%2046%2013%2050%2021C54%2013%2061%208%2070%208C83%208%2094%2018%2094%2033C94%2050%2082%2068%2050%2092Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E"));
  --suit-color: var(--suit-h-color, #e60800);
  border-color: var(--card-border-color, var(--suit-h-border, #eb342e));
  background: var(--suit-h-face, linear-gradient(145deg, #ed4842 0%, #e60800 48%, #a10600 100%));
}
.playing-card.suit-d {
  --suit-glyph: var(--suit-d-glyph, "\2666");
  --suit-mask: var(--suit-d-mask, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M50%204L94%2050L50%2096L6%2050Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E"));
  --suit-color: var(--suit-d-color, #2f45d7);
  border-color: var(--card-border-color, var(--suit-d-border, #4d66ff));
  background: var(--suit-d-face, linear-gradient(145deg, #5368ff 0%, #2f45d7 48%, #1e2e9b 100%));
}
.playing-card.suit-c {
  --suit-glyph: var(--suit-c-glyph, "\2663");
  --suit-mask: var(--suit-c-mask, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2229%22%20r%3D%2220%22%20fill%3D%22black%22%2F%3E%3Ccircle%20cx%3D%2227%22%20cy%3D%2259%22%20r%3D%2220%22%20fill%3D%22black%22%2F%3E%3Ccircle%20cx%3D%2273%22%20cy%3D%2259%22%20r%3D%2220%22%20fill%3D%22black%22%2F%3E%3Cpath%20d%3D%22M44%2060h12c0%2018%203%2027%209%2033H35c6-6%209-15%209-33z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E"));
  --suit-color: var(--suit-c-color, #0a922c);
  border-color: var(--card-border-color, var(--suit-c-border, #10b83a));
  background: var(--suit-c-face, linear-gradient(145deg, #16be45 0%, #0a922c 48%, #06651f 100%));
}
.playing-card.suit-s {
  --suit-scale: var(--suit-s-scale, 1);
  --suit-x: var(--suit-s-x, 0.27);
  --suit-y: var(--suit-s-y, -0.255);
}
.playing-card.suit-h {
  --suit-scale: var(--suit-h-scale, 1.02);
  --suit-x: var(--suit-h-x, 0.235);
  --suit-y: var(--suit-h-y, -0.295);
}
.playing-card.suit-d {
  --suit-scale: var(--suit-d-scale, 1.04);
  --suit-x: var(--suit-d-x, 0.18);
  --suit-y: var(--suit-d-y, -0.3);
}
.playing-card.suit-c {
  --suit-scale: var(--suit-c-scale, 1.05);
  --suit-x: var(--suit-c-x, 0.195);
  --suit-y: var(--suit-c-y, -0.3);
}
.playing-card-suit {
  pointer-events: none;
  position: absolute;
  bottom: calc(var(--card-height) * (0.04 + var(--suit-y)));
  left: 50%;
  transform: translateX(-50%) translateX(calc(var(--card-height) * var(--suit-x)));
  font-size: calc(var(--card-suit-font) * var(--suit-scale));
  line-height: 1;
  color: var(--card-suit-ink, #000);
  opacity: var(--suit-opacity, 0.28);
  mix-blend-mode: var(--card-suit-blend, multiply);
}
.playing-card-suit::before {
  content: "";
  display: block;
  width: 1em;
  height: 0.78em;
  margin-bottom: 0.21em;
  background: currentColor;
  -webkit-mask: var(--suit-mask) center / contain no-repeat;
  mask: var(--suit-mask) center / contain no-repeat;
}
:root.suits-text .playing-card-suit::before {
  content: var(--suit-glyph, "\2660");
  display: inline;
  width: auto;
  height: auto;
  margin-bottom: 0;
  background: none;
  -webkit-mask: none;
  mask: none;
}
.playing-card.is-corner .playing-card-suit {
  opacity: calc(var(--suit-opacity, 0.28) * 1.25);
}
.card-row {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
}
.playing-card--strip {
  --card-width: 32px;
  --card-height: 56px;
}
.playing-card--chance {
  --card-width: 48px;
  --card-height: 64px;
}
.playing-card--picker {
  --card-width: 32px;
  --card-height: 60px;
}
.playing-card--picked {
  --card-width: 48px;
  --card-height: 64px;
}
.playing-card-rank {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--card-rank-family, inherit);
  font-size: var(--card-rank-font);
  font-weight: var(--card-rank-weight, 600);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  color: var(--card-rank-color, #fff);
  text-shadow: var(--card-rank-shadow, 0 2px 2px rgba(0, 0, 0, 0.6));
}
.playing-card:is(.design-studio, .design-flat, .design-vintage, .design-traditional, .design-outline, .design-jumbo, .design-stripe) .playing-card-rank {
  text-box: normal;
}
:root.cards-blank .playing-card,
.playing-card.design-blank {
  border-color: rgba(0, 0, 0, 0.22);
  background: var(--card-blank-face, #f3f5f8);
}
:root.cards-blank .playing-card-rank,
.playing-card.design-blank .playing-card-rank {
  color: var(--suit-color);
  text-shadow: none;
}
:root.cards-blank .playing-card-suit,
.playing-card.design-blank .playing-card-suit {
  color: var(--suit-color);
  opacity: var(--suit-opacity, 0.9);
  mix-blend-mode: normal;
}
.playing-card.design-studio .playing-card-rank,
.playing-card.design-flat .playing-card-rank,
.playing-card.design-vintage .playing-card-rank {
  top: calc(var(--card-height) * 0.05);
  left: calc(var(--card-height) * 0.08);
  transform: none;
  font-size: calc(var(--card-height) * 0.5);
  font-weight: var(--heavy);
  text-shadow: none;
}
.playing-card.design-studio .playing-card-suit,
.playing-card.design-flat .playing-card-suit,
.playing-card.design-vintage .playing-card-suit {
  bottom: calc(var(--card-height) * 0.02);
  left: auto;
  right: calc(var(--card-height) * 0.07);
  transform: none;
  font-size: calc(var(--card-height) * 0.4);
  opacity: 1;
  mix-blend-mode: normal;
}
.playing-card.design-blank .playing-card-suit {
  opacity: 0.18;
}
.playing-card.design-studio {
  border-color: rgba(15, 23, 42, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #eef1f5 100%);
  box-shadow:
    inset 0 -1px 0 rgba(15, 23, 42, 0.08),
    0 4px 0 rgba(0, 0, 0, 0.38);
}
.playing-card.design-studio.suit-s { --suit-color: #1e2329; }
.playing-card.design-studio.suit-h { --suit-color: #e0262f; }
.playing-card.design-studio.suit-d { --suit-color: #2563eb; }
.playing-card.design-studio.suit-c { --suit-color: #16a34a; }
.playing-card.design-studio .playing-card-rank,
.playing-card.design-studio .playing-card-suit {
  color: var(--suit-color);
}
.playing-card.design-flat {
  border-color: transparent;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.38);
}
.playing-card.design-flat.suit-s { background: #3d434c; }
.playing-card.design-flat.suit-h { background: #e0383e; }
.playing-card.design-flat.suit-d { background: #2f6fe4; }
.playing-card.design-flat.suit-c { background: #1f9d55; }
.playing-card.design-flat .playing-card-rank {
  color: #ffffff;
}
.playing-card.design-flat .playing-card-suit {
  color: #ffffff;
  opacity: 0.92;
}
.playing-card.design-midnight {
  background: linear-gradient(160deg, #2a2e36 0%, #16181d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 4px 0 rgba(0, 0, 0, 0.45);
}
.playing-card.design-midnight.suit-s { --suit-color: #d7dce4; border-color: rgba(215, 220, 228, 0.45); }
.playing-card.design-midnight.suit-h { --suit-color: #ff5a64; border-color: rgba(255, 90, 100, 0.55); }
.playing-card.design-midnight.suit-d { --suit-color: #5b9bff; border-color: rgba(91, 155, 255, 0.55); }
.playing-card.design-midnight.suit-c { --suit-color: #3ddc84; border-color: rgba(61, 220, 132, 0.5); }
.playing-card.design-midnight .playing-card-rank {
  color: var(--suit-color);
  text-shadow: 0 0 calc(var(--card-height) * 0.14) color-mix(in srgb, var(--suit-color) 55%, transparent);
}
.playing-card.design-midnight .playing-card-suit {
  color: var(--suit-color);
  opacity: 0.2;
  mix-blend-mode: normal;
}
.playing-card.design-outline {
  border-width: 2px;
  background: #202020;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.38);
}
.playing-card.design-outline.suit-s { --suit-color: #c4c9d1; border-color: #c4c9d1; }
.playing-card.design-outline.suit-h { --suit-color: #ff4d55; border-color: #ff4d55; }
.playing-card.design-outline.suit-d { --suit-color: #4f8dff; border-color: #4f8dff; }
.playing-card.design-outline.suit-c { --suit-color: #34c46e; border-color: #34c46e; }
.playing-card.design-outline .playing-card-rank {
  top: 42%;
  font-weight: var(--bold);
  color: var(--suit-color);
  text-shadow: none;
}
.playing-card.design-outline .playing-card-suit {
  bottom: calc(var(--card-height) * 0.03);
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(var(--card-height) * 0.26);
  color: var(--suit-color);
  opacity: 1;
  mix-blend-mode: normal;
}
.playing-card.design-vintage {
  border-color: #c4b28a;
  background: linear-gradient(165deg, #fdf8ec 0%, #efe3c8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 4px 0 rgba(0, 0, 0, 0.38);
}
.playing-card.design-vintage::after {
  content: "";
  position: absolute;
  inset: calc(var(--card-height) * 0.045);
  border: 1px solid rgba(140, 110, 60, 0.3);
  border-radius: 4px;
  pointer-events: none;
}
.playing-card.design-vintage.suit-s { --suit-color: #1f1b16; }
.playing-card.design-vintage.suit-h { --suit-color: #b4232a; }
.playing-card.design-vintage.suit-d { --suit-color: #1e4fa3; }
.playing-card.design-vintage.suit-c { --suit-color: #1d6e3a; }
.playing-card.design-vintage .playing-card-rank {
  font-family: "Times New Roman", Times, serif;
  font-weight: var(--bold);
  font-variant-numeric: lining-nums;
  color: var(--suit-color);
}
.playing-card.design-vintage .playing-card-suit {
  color: var(--suit-color);
}
.playing-card.design-jumbo .playing-card-rank {
  top: 54%;
  font-size: calc(var(--card-height) * 0.72);
  font-weight: var(--heavy);
}
.playing-card.design-jumbo .playing-card-suit {
  top: calc(var(--card-height) * 0.05);
  bottom: auto;
  left: auto;
  right: calc(var(--card-height) * 0.06);
  transform: none;
  font-size: calc(var(--card-height) * 0.2);
  color: #ffffff;
  opacity: 0.85;
  mix-blend-mode: normal;
}
.playing-card.design-traditional {
  border-color: rgba(0, 0, 0, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f0 100%);
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 4px 0 rgba(0, 0, 0, 0.38);
}
.playing-card.design-traditional.suit-s,
.playing-card.design-traditional.suit-c { --suit-color: #1a1a1a; }
.playing-card.design-traditional.suit-h,
.playing-card.design-traditional.suit-d { --suit-color: #c8102e; }
.playing-card.design-traditional .playing-card-rank {
  top: calc(var(--card-height) * 0.04);
  left: calc(var(--card-height) * 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: none;
  font-family: "Times New Roman", Times, serif;
  font-size: calc(var(--card-height) * 0.42);
  font-weight: var(--bold);
  font-variant-numeric: lining-nums;
  color: var(--suit-color);
  text-shadow: none;
}
.playing-card.design-traditional .playing-card-rank::after {
  content: "";
  width: calc(var(--card-height) * 0.2);
  height: calc(var(--card-height) * 0.16);
  margin-top: calc(var(--card-height) * 0.02);
  background: currentColor;
  -webkit-mask: var(--suit-mask) center / contain no-repeat;
  mask: var(--suit-mask) center / contain no-repeat;
}
.playing-card.design-traditional .playing-card-suit {
  bottom: calc(var(--card-height) * 0.02);
  left: auto;
  right: calc(var(--card-height) * 0.07);
  transform: none;
  font-size: calc(var(--card-height) * 0.34);
  color: var(--suit-color);
  opacity: 1;
  mix-blend-mode: normal;
}
.playing-card.design-aurora {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 0 rgba(0, 0, 0, 0.38);
}
.playing-card.design-aurora.suit-s { background: linear-gradient(150deg, #8d97ab 0%, #4b5466 52%, #232833 100%); }
.playing-card.design-aurora.suit-h { background: linear-gradient(150deg, #ff7a93 0%, #e8193f 52%, #9c0b28 100%); }
.playing-card.design-aurora.suit-d { background: linear-gradient(150deg, #5fd0ff 0%, #2b6cff 52%, #1938b8 100%); }
.playing-card.design-aurora.suit-c { background: linear-gradient(150deg, #6ee69a 0%, #13a454 52%, #08683a 100%); }
.playing-card.design-aurora::after {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.playing-card.design-aurora .playing-card-rank {
  font-weight: var(--heavy);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.playing-card.design-aurora .playing-card-suit {
  color: #ffffff;
  opacity: 0.2;
  mix-blend-mode: normal;
}
.playing-card.design-soft {
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.32);
}
.playing-card.design-soft.suit-s { --suit-color: #2b3038; border-color: #c5cad3; background: #e3e6eb; }
.playing-card.design-soft.suit-h { --suit-color: #c0303a; border-color: #ecb9bc; background: #f8dadc; }
.playing-card.design-soft.suit-d { --suit-color: #2456b8; border-color: #b7cbf0; background: #d9e5fb; }
.playing-card.design-soft.suit-c { --suit-color: #1d7a43; border-color: #b4dcc2; background: #d7f0df; }
.playing-card.design-soft .playing-card-rank {
  font-weight: var(--bold);
  color: var(--suit-color);
  text-shadow: none;
}
.playing-card.design-soft .playing-card-suit {
  color: var(--suit-color);
  opacity: 0.16;
  mix-blend-mode: normal;
}
.playing-card.design-stripe {
  border-color: rgba(0, 0, 0, 0.16);
  background: linear-gradient(180deg, var(--suit-color) 0%, var(--suit-color) 42%, #ffffff 42%, #ffffff 100%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.38);
}
.playing-card.design-stripe.suit-s { --suit-color: #343a44; }
.playing-card.design-stripe.suit-h { --suit-color: #e0303a; }
.playing-card.design-stripe.suit-d { --suit-color: #2a66e0; }
.playing-card.design-stripe.suit-c { --suit-color: #18a058; }
.playing-card.design-stripe .playing-card-rank {
  top: 21%;
  font-size: calc(var(--card-height) * 0.34);
  font-weight: var(--heavy);
  color: #ffffff;
  text-shadow: none;
}
.playing-card.design-stripe .playing-card-suit {
  bottom: calc(var(--card-height) * 0.04);
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(var(--card-height) * 0.4);
  color: var(--suit-color);
  opacity: 1;
  mix-blend-mode: normal;
}
.card-back {
  position: relative;
  display: grid;
  flex-shrink: 0;
  width: var(--card-width);
  height: var(--card-height);
  place-items: center;
  overflow: hidden;
  border-radius: var(--card-radius, 6px);
  background: linear-gradient(160deg, #36312d 0%, #221f1d 100%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.38);
}
.card-back-mark {
  position: relative;
  display: block;
  width: calc(var(--card-height) * 0.46);
  max-width: none;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(255, 140, 50, 0.35));
}
.card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #f2f5f8;
  color: #14171b;
  font-weight: var(--heavy);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  text-shadow: none;
}
.card-chip.heart { color: #c23845; }
.card-chip.diamond { color: #2879d0; }
.card-chip.club { color: #1e8a58; }
.board-chips {
  display: flex;
  align-items: center;
  gap: 4px;
}

.practice-page {
  position: relative;
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--surface-page);
  color: var(--text-normal);
}
.practice-main {
  --strip-fade: #1a1a1a;
  --strip-fade-soft: rgba(26, 26, 26, 0.7);
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #1a1a1a;
}
.practice-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.grade-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2.2;
}
.strip {
  display: flex;
  padding: 8px 16px;
}
.practice-page:not(.is-multi):not(.is-phone) .strip {
  padding-top: 12px;
}
.strip-viewport {
  position: relative;
  min-width: 0;
  flex: 1;
}
.strip-track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.strip-step {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #242424;
  padding: 4px 8px 0;
  animation: strip-step-in 260ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
@keyframes strip-step-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.strip-step.is-chance {
  min-width: 24px;
}
.strip-step.is-hero .strip-step-action { color: var(--text-strong); }
.strip-step.is-other .strip-step-seat.is-seat,
.strip-step.is-other .strip-step-action { color: var(--text-soft); }
.strip-step-line {
  position: absolute;
  z-index: 1;
  right: -1px;
  bottom: -1px;
  left: -1px;
  height: 16px;
  border-radius: 0 0 8px 8px;
  clip-path: inset(11px 0 0 0);
}
.strip-step.is-hero .strip-step-action,
.strip-step.is-other .strip-step-action { padding-bottom: 4px; }
.strip-step.is-open,
.strip-step.is-openable:focus-visible {
  border-color: var(--focus-line);
  outline: none;
}
.strip-step.is-open::after,
.strip-step.is-openable:focus-visible::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border: 1px solid var(--focus-line);
  border-radius: 7px;
}
.strip-step.is-openable {
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.strip-step.is-openable:hover {
  background: var(--surface-hover);
}
.strip-step.is-openable:not(.is-open):hover {
  border-color: var(--line-stronger);
}
.strip-step.is-open {
  background: var(--surface-hover);
}
.strip-step.is-waiting {
  --wait: 230, 169, 53;
}
.strip-step.is-held {
  visibility: hidden;
}
.strip-step.is-waiting::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -1px;
  border: 1px solid var(--grade-warn);
  border-radius: 8px;
  box-shadow:
    0 0 0 3px rgba(var(--wait), 0.12),
    0 0 14px rgba(var(--wait), 0.22);
  animation: strip-wait 1.7s ease-in-out infinite;
}
@keyframes strip-wait {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.strip-step.is-waiting .strip-step-text {
  text-transform: none;
  color: var(--text-normal);
  animation: strip-wait-words 1.7s ease-in-out infinite;
}
@keyframes strip-wait-words {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.strip-step-head {
  display: flex;
  margin: -4px -8px 0;
  border-radius: 8px 8px 0 0;
  background: var(--surface-raised);
  padding: 4px 8px;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.strip-step-seat {
  text-transform: uppercase;
  font-weight: var(--bold);
  transition: color 170ms ease;
  color: var(--text-soft);
}
.strip-step-seat.is-seat {
  color: var(--text-strong);
}
.strip-step-stack {
  font-weight: var(--bold);
  font-variant-numeric: tabular-nums;
  transition: color 170ms ease;
}
.strip-step-action .grade-icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}
.strip-step-action {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-normal);
}
.strip-step.is-chance .strip-step-action {
  justify-content: center;
  gap: 2px;
  padding-left: 0;
}
.strip-step-text {
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strip-step-card {
  --card-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 0 rgba(0, 0, 0, 0.38);
}
.table-area {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
}
.table-stack {
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  width: 100%;
  max-width: 980px;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
}
.felt {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  border: 6px solid transparent;
  border-radius: 150px;
  padding: 60px 40px;
  margin: -34px 0;
}
.table-surface {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  top: 55%;
  left: 50%;
  width: 840px;
  height: 384px;
  transform: translate(-50%, -50%);
}
.felt > .table-surface { width: min(840px, 100%); }
.table-surface.is-table-midnight,
.table-surface.is-table-graphite,
.table-surface.is-table-burgundy,
.table-surface.is-table-ocean {
  border: 6px solid var(--table-rail);
  border-radius: 192px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 62% 75% at 50% 50%, var(--table-felt-light) 0%, var(--table-felt) 52%, var(--table-felt-dark) 100%);
  box-shadow:
    inset 0 0 0 1px var(--table-trim),
    inset 0 0 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 32px rgba(0, 0, 0, 0.4);
}
.is-table-midnight {
  --table-felt-light: #24497d;
  --table-felt: #173462;
  --table-felt-dark: #0b1a36;
  --table-rail: #1c1e22;
  --table-trim: #aeb8c6;
}
.is-table-graphite {
  --table-felt-light: #3c4046;
  --table-felt: #2a2d32;
  --table-felt-dark: #17191c;
  --table-rail: #18191b;
  --table-trim: var(--accent-brand);
}
.is-table-burgundy {
  --table-felt-light: #7a2233;
  --table-felt: #5a1624;
  --table-felt-dark: #2d0910;
  --table-rail: #2a1a12;
  --table-trim: #c9a24a;
}
.is-table-ocean {
  --table-felt-light: #1b7f7c;
  --table-felt: #11605e;
  --table-felt-dark: #063436;
  --table-rail-light: #7a5232;
  --table-rail: #4e321c;
  --table-rail-dark: #24160a;
  --table-trim: #d9b46a;
}
.table-surface.is-table-casino {
  border: 8px solid #101311;
  border-radius: 192px;
  background:
    radial-gradient(ellipse 45% 60% at 50% 42%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 70% 85% at 50% 50%, #1f7a43 0%, #145a30 60%, #0b3a1f 100%);
  outline: 2px dashed rgba(255, 255, 255, 0.22);
  outline-offset: -32px;
  box-shadow:
    inset 0 0 0 2px rgba(214, 178, 94, 0.85),
    inset 0 0 32px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(0, 0, 0, 0.4);
}
.table-surface.is-table-neon {
  border: 2px solid var(--accent-brand);
  border-radius: 192px;
  background: radial-gradient(ellipse 70% 80% at 50% 45%, #1e2025 0%, #131417 70%, #0b0c0e 100%);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--accent-brand) 55%, transparent),
    0 0 44px color-mix(in srgb, var(--accent-brand) 20%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--accent-brand) 28%, transparent),
    inset 0 0 80px rgba(0, 0, 0, 0.6);
}
.table-surface.is-table-glass {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 192px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 46%, rgba(255, 255, 255, 0.04) 100%),
    radial-gradient(ellipse 70% 80% at 50% 40%, rgba(130, 170, 255, 0.12) 0%, rgba(130, 170, 255, 0) 70%),
    rgba(34, 38, 47, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 32px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(0, 0, 0, 0.45);
}
.table-surface.is-table-modern {
  border: 6px solid #2a2f38;
  border-radius: 64px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(ellipse 70% 80% at 50% 50%, #3d5a80 0%, #2b4263 60%, #1a2a40 100%);
  outline: 1px solid rgba(255, 255, 255, 0.14);
  outline-offset: -30px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 32px rgba(0, 0, 0, 0.4);
}
.table-surface.is-table-royal {
  border: 9px solid transparent;
  border-radius: 192px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 1px, rgba(255, 255, 255, 0) 1px 22px) padding-box,
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, rgba(255, 255, 255, 0) 1px 22px) padding-box,
    radial-gradient(ellipse 65% 80% at 50% 45%, #5b3a86 0%, #432a66 55%, #26173c 100%) padding-box,
    linear-gradient(#6e4729, #6e4729) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(232, 196, 120, 0.55),
    inset 0 0 32px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(0, 0, 0, 0.4);
}
.table-surface.is-table-minimal {
  border: 1px solid rgb(var(--ink) / 0.07);
  border-radius: 192px;
  background: rgb(var(--ink) / 0.025);
}
.table-surface.is-table-nebula {
  border: 4px solid #15181d;
  border-radius: 192px;
  background:
    radial-gradient(ellipse 40% 55% at 30% 40%, rgba(45, 212, 191, 0.22) 0%, rgba(45, 212, 191, 0) 70%),
    radial-gradient(ellipse 42% 58% at 70% 62%, rgba(139, 92, 246, 0.24) 0%, rgba(139, 92, 246, 0) 70%),
    radial-gradient(ellipse 60% 70% at 50% 50%, #1c2230 0%, #121620 60%, #0b0e14 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(139, 92, 246, 0.12),
    0 0 32px rgba(0, 0, 0, 0.4);
}
.table-surface.is-table-walnut {
  border: 8px solid #14100d;
  border-radius: 192px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 70% 85% at 50% 50%, #1d6b45 0%, #155535 60%, #0c3622 100%);
  box-shadow:
    inset 0 0 0 1px rgba(214, 178, 94, 0.7),
    inset 0 0 0 12px #74492a,
    inset 0 0 0 13px rgba(214, 178, 94, 0.75),
    inset 0 0 0 14px rgba(0, 0, 0, 0.45),
    inset 0 0 40px 14px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 32px rgba(0, 0, 0, 0.4);
}
.table-surface.is-table-midnight,
.table-surface.is-table-graphite,
.table-surface.is-table-burgundy,
.table-surface.is-table-ocean { top: -7px; height: 338px; border-radius: 169px; transform: translateX(-50%); }
.table-surface.is-table-casino,
.table-surface.is-table-walnut { top: -8px; height: 340px; border-radius: 170px; transform: translateX(-50%); }
.table-surface.is-table-royal { top: -8.5px; height: 341px; border-radius: 170.5px; transform: translateX(-50%); }
.table-surface.is-table-modern { top: -7px; height: 338px; transform: translateX(-50%); }
.table-surface.is-table-nebula { top: -6px; height: 336px; border-radius: 168px; transform: translateX(-50%); }
.table-surface.is-table-neon { top: -5px; height: 334px; border-radius: 167px; transform: translateX(-50%); }
.table-surface.is-table-glass,
.table-surface.is-table-minimal { top: -4.5px; height: 333px; border-radius: 166.5px; transform: translateX(-50%); }
.felt-preparing-veil {
  pointer-events: none;
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
}
.felt-preparing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.92);
  padding: 16px 24px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  animation: felt-preparing-in 220ms ease-out both;
}
@keyframes felt-preparing-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.felt-preparing-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent-brand);
  border-radius: 999px;
}
.felt-preparing-mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--accent-brand);
  border-radius: 999px;
  animation: felt-preparing-ring 1.6s ease-out infinite;
}
@keyframes felt-preparing-ring {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.875); }
}
.felt-preparing-spinner {
  transform-box: fill-box;
  transform-origin: center;
  color: var(--accent-brand);
  animation: felt-preparing-spin 900ms linear infinite;
}
@keyframes felt-preparing-spin {
  to { transform: rotate(360deg); }
}
.felt-preparing-text {
  font-size: 12px;
  font-weight: var(--black);
  letter-spacing: 0.04em;
  color: var(--text-normal);
}
.felt-preparing-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.pot {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-sunken);
  padding: 3px 12px;
  font-size: 14px;
  line-height: 18px;
  font-weight: var(--black);
  font-variant-numeric: tabular-nums;
  color: var(--text-normal);
}
.pot.is-empty {
  visibility: hidden;
}
.pot {
  min-height: 26px;
}
.pot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pot {
  transform: translateY(115px);
}
.board {
  transform: translateY(7px);
}
.board-mark {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 45px;
  background: rgba(255, 255, 255, 0.07);
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
  -webkit-mask: url("/assets/maxgto-mark-Db5YKgw-.webp") center / contain no-repeat;
  mask: url("/assets/maxgto-mark-Db5YKgw-.webp") center / contain no-repeat;
}
.board-mark.is-off { opacity: 0; transition-delay: 0s; }
.table-surface.is-table-minimal ~ .board .board-mark { background: rgb(var(--ink) / 0.07); }
.pot {
  position: relative;
  z-index: 16;
}
.pot-pile {
  position: absolute;
  isolation: isolate;
  right: 100%;
  bottom: -11px;
  width: 68px;
  height: 0;
  margin-right: 8px;
  pointer-events: none;
}
.pot-pile-stack {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
}
.pot-pile-stack.is-at-1 { right: 27px; }
.pot-pile-stack.is-at-2 { right: 13px; bottom: -7px; }
.pot-pile-stack.is-at-3 { right: 40px; bottom: -7px; }
.pot-pile-stack::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -2px;
  left: -3px;
  width: 34px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 52%, rgba(0, 0, 0, 0) 100%);
  animation: pot-pile-show 300ms linear backwards;
}
.theme-light .pot-pile-stack::before {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.3) 52%, rgba(0, 0, 0, 0) 100%);
}
.pot-pile-stack.is-at-1::before { animation-delay: 45ms; }
.pot-pile-stack.is-at-2::before { animation-delay: 90ms; }
.pot-pile-stack.is-at-3::before { animation-delay: 135ms; }
.pot-pile-chip {
  position: absolute;
  bottom: calc(var(--i) * 5px);
  left: calc(var(--x) * 1px);
  width: 28px;
  max-width: none;
  height: auto;
  animation: pot-pile-drop 300ms cubic-bezier(0.34, 1.45, 0.5, 1) backwards, pot-pile-show 300ms linear backwards;
  animation-delay: calc(var(--d) * 45ms);
}
.pot-pile.is-instant .pot-pile-chip,
.pot-pile.is-instant .pot-pile-stack::before {
  animation: none;
}
.pot-pile.is-leaving {
  animation: ds-hide 140ms linear both;
}
@keyframes pot-pile-drop {
  from { transform: translateY(-14px); }
  to { transform: translateY(0); }
}
@keyframes pot-pile-show {
  0% { opacity: 0; }
  35%, 100% { opacity: 1; }
}
.pot-label {
  margin-right: -2px;
  font-weight: 600;
  color: var(--text-muted);
}
.pot-rng {
  color: var(--accent-brand);
}
.pot-amount {
  display: inline-grid;
  justify-items: start;
}
.pot-amount > span {
  grid-area: 1 / 1;
  white-space: nowrap;
}
.pot-amount-room {
  visibility: hidden;
}
.pot-amount-now {
  transform-origin: 0 50%;
}
.pot-amount-now.is-counting {
  animation: pot-amount-count 420ms both;
}
@keyframes pot-amount-count {
  0% { transform: scale(1); animation-timing-function: cubic-bezier(0.22, 0.8, 0.24, 1); }
  35% { transform: scale(1.08); animation-timing-function: cubic-bezier(0.4, 0, 0.3, 1); }
  100% { transform: scale(1); }
}
.board {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 58px;
  margin-top: 12px;
}
.board-card {
  --card-width: 44px;
  --card-height: 58px;
  --dur: 420ms;
  animation: deal-slide var(--dur) cubic-bezier(0.22, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes deal-slide {
  0% {
    transform: translateX(-300px);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.pot-chips {
  height: 68px;
  margin-top: 8px;
}
.table-message-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin-top: 8px;
}
.table-verdict {
  --grade: var(--grade-bad);
  position: absolute;
  top: 72px;
  left: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--grade);
  padding: 4px 16px 4px 8px;
  font-size: 16px;
  line-height: 24px;
  color: #141414;
  white-space: nowrap;
  animation: table-verdict-in 200ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
.table-verdict.is-best,
.table-verdict.is-correct { --grade: var(--grade-good); }
.table-verdict.is-inaccuracy { --grade: var(--grade-warn); }
.table-verdict.is-best,
.table-verdict.is-correct {
  padding-right: 12px;
}
.table-verdict.is-fading {
  animation: table-verdict-in 200ms cubic-bezier(0.22, 0.8, 0.24, 1) both, table-verdict-out 2200ms linear both;
}
.table-verdict-hold {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.table-verdict-hold > * { pointer-events: auto; }
.table-verdict-hold.is-leaving {
  animation: ds-hide 140ms linear both;
}
.table-verdict-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
}
.table-verdict-mark .grade-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.6;
}
.table-verdict.is-blunder .table-verdict-mark .grade-icon {
  translate: 0 -1px;
}
.table-verdict strong {
  font-weight: var(--heavy);
}
.table-verdict-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 4px;
  border-left: 1px solid rgba(20, 20, 20, 0.32);
  padding-left: 12px;
}
.table-verdict-cost { font-weight: var(--heavy); font-variant-numeric: tabular-nums; }
.table-verdict-best { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.table-verdict-best b { border-radius: 999px; background: #141414; padding: 0 8px; color: #f2f2f2; font-weight: var(--bold); line-height: 24px; text-transform: capitalize; }
@keyframes table-verdict-in {
  from { transform: translateY(4px); }
  to { transform: translateY(0); }
}
@keyframes table-verdict-out {
  0% { opacity: 0; }
  6% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; }
}
.table-message {
  border-radius: 6px;
  background: var(--surface-rail);
  padding: 4px 12px;
  font-size: 14px;
  font-weight: var(--bold);
  color: var(--text-normal);
}
.seat {
  position: relative;
  display: flex;
  align-items: center;
}
.seat-avatar {
  position: relative;
  z-index: 14;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 4px solid var(--line);
  border-radius: 999px;
  background: var(--surface-panel);
  text-align: center;
}
.seat-avatar::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -4px;
  border-radius: 999px;
}
.seat-avatar {
  transition: filter 300ms ease-out;
}
.seat.is-folded .seat-avatar {
  filter: saturate(0.15) brightness(0.45);
}
.seat-avatar::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -4px;
  border: 4px solid var(--glow);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 280ms ease-out;
}
.seat.is-to-act .seat-avatar::before { opacity: 1; }
.seat.is-winner .seat-avatar::before {
  border-color: var(--accent-brand);
  opacity: 1;
}
@property --glow {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}
.seat {
  --glow: var(--grade-warn);
  --flash-at: 100%;
  --flash-from: -12px;
}
.seat.is-hero {
  --glow: var(--grade-good);
}
.seat.is-hero:has(.decision-clock.is-warn) {
  --glow: var(--grade-warn);
  transition: --glow 400ms linear;
}
.seat.is-hero:has(.decision-clock.is-low) {
  --glow: var(--grade-bad);
  transition: --glow 400ms linear;
}
.seat::before,
.seat::after {
  content: "";
  filter: opacity(0);
  transition: filter 280ms ease-out;
  pointer-events: none;
  position: absolute;
  z-index: 13;
  top: 50%;
  left: 32px;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 999px;
}
.seat::before {
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--glow) 80%, transparent),
    color-mix(in srgb, var(--glow) 55%, transparent) 58%,
    transparent 90%
  );
}
.seat::before {
  animation: seat-glow 1.8s ease-in-out infinite paused;
}
.seat.is-to-act::before,
.seat.is-to-act::after {
  filter: opacity(1);
  animation-play-state: running;
}
.seat::after {
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--glow) 45%, transparent),
    color-mix(in srgb, var(--glow) 30%, transparent) 54%,
    transparent 100%
  );
}
.seat::after {
  animation: seat-bloom 1.8s ease-in-out infinite paused;
}
@keyframes seat-glow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
@keyframes seat-bloom {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  62% {
    opacity: 0.8;
    transform: scale(1.12);
  }
}
.seat-avatar-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.seat-name {
  transform: translateY(2px);
  font-size: 16px;
  font-weight: var(--black);
  line-height: 1;
  color: var(--text-normal);
}
.seat-stack {
  transform: translateY(-2px);
  font-size: 13px;
  font-weight: var(--black);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.seat.is-flash-fold { --flash-rgb: 63, 127, 189; }
.seat.is-flash-call { --flash-rgb: 88, 185, 103; }
.seat.is-flash-bet,
.seat.is-flash-raise { --flash-rgb: 247, 52, 63; }
.seat.is-flash-allin { --flash-rgb: 134, 27, 33; }
.seat.is-flashing .seat-avatar {
  animation: seat-avatar-pop 1100ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
  animation-delay: var(--flash-late, 0ms);
}
.seat.is-flashing .seat-avatar::after {
  box-shadow:
    0 0 0 7px rgba(var(--flash-rgb), 0.3),
    0 0 26px rgba(var(--flash-rgb), 0.55);
  animation: seat-avatar-flash 1100ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
  animation-delay: var(--flash-late, 0ms);
}
@keyframes seat-avatar-pop {
  0% { transform: scale(1); }
  12% { transform: scale(1.07); }
  34%, 100% { transform: scale(1); }
}
@keyframes seat-avatar-flash {
  0% { opacity: 0; transform: scale(0.92); }
  12% { opacity: 1; transform: scale(1); animation-timing-function: cubic-bezier(0.3, 0, 0.6, 1); }
  100% { opacity: 0; transform: scale(1); }
}
.seat-action {
  position: absolute;
  top: var(--flash-at);
  left: 32px;
  z-index: 30;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: var(--black);
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: seat-action 1700ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
  animation-delay: var(--flash-late, 0ms);
}
.seat-action.is-fold { background: var(--action-fold); }
.seat-action.is-passive { background: var(--action-passive); color: var(--text-on-accent); }
.seat-action.is-aggressive { background: var(--action-aggressive); }
.seat-action.is-allin { background: var(--action-allin); }
@keyframes seat-action {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(var(--flash-from)) scale(0.78);
  }
  7.1% {
    opacity: 1;
  }
  11% {
    transform: translate(-50%, -50%) translateY(0) scale(1.12);
  }
  16.2% { transform: translate(-50%, -50%) translateY(0) scale(0.97); }
  20.7% { transform: translate(-50%, -50%) translateY(0) scale(1); }
  83.2% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(var(--flash-from)) scale(0.82);
  }
}
.seat-action::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: seat-action-sheen 1100ms ease-out both;
  animation-delay: var(--flash-late, 0ms);
}
@keyframes seat-action-sheen {
  0%, 16% { transform: translateX(-110%); }
  56%, 100% { transform: translateX(300%); }
}
.seat-roll {
  position: absolute;
  z-index: 40;
  top: 50%;
  right: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-right: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-panel);
  padding: 4px 9px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  animation: seat-roll-show 1000ms ease-out both;
}
.seat-roll b {
  font-size: 12px;
  font-weight: var(--black);
  color: var(--text-strong);
}
.seat-roll i {
  font-size: 10px;
  font-style: normal;
  font-weight: var(--bold);
  color: var(--text-muted);
}
@keyframes seat-roll-show {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(10px) scale(0.9);
  }
  16%, 78% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) translateX(-4px) scale(0.97);
  }
}
.seat-dealer {
  position: absolute;
  z-index: 20;
  top: -7px;
  left: -15px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f1f1f1;
  font-size: 11px;
  font-weight: var(--black);
  color: var(--text-on-accent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}
.seat.is-top .seat-dealer {
  top: 53px;
  left: -15px;
}
.seat-cards {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 4px;
  display: flex;
}
.seat-card {
  --card-width: 35px;
  --card-height: 46px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}
.seat-card + .seat-card {
  margin-left: -6px;
}
.seat-cards.is-mucked {
  pointer-events: none;
  animation:
    muck-away 340ms cubic-bezier(0.35, 0, 0.6, 1) both,
    muck-fade 340ms ease-in both;
}
.seat-cards.is-laid-down {
  filter: saturate(0.6) brightness(0.72);
  transition: filter 300ms ease-out;
}
.board-card.is-unplayed {
  filter: saturate(0.4) brightness(0.45);
  transition: filter 300ms ease-out 400ms;
}
.seat-card.is-played,
.board-card.is-played {
  translate: 0 -8px;
  transition: translate 300ms cubic-bezier(0.22, 0.7, 0.2, 1) 400ms;
}
.seat-hand {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-panel);
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  color: var(--text-normal);
  animation: seat-hand-in 200ms ease-out 300ms both;
}
.seat-hand.is-won { color: var(--text-strong); }
.seat-hand.is-up {
  animation: seat-hand-in 200ms ease-out 300ms both, seat-hand-up 300ms cubic-bezier(0.22, 0.7, 0.2, 1) 400ms both;
}
@keyframes seat-hand-up {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
.felt > .seat.is-at-right .seat-hand {
  right: 0;
  left: auto;
}
@keyframes seat-hand-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes muck-away {
  from {
    transform: translateY(-50%) translate(0, 0) scale(1) rotate(0deg);
  }
  to {
    transform: translateY(-50%) translate(64px, -6px) scale(0.82) rotate(8deg);
  }
}
@keyframes muck-fade {
  0% {
    opacity: 1;
  }
  35% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}
.seat-bet {
  position: absolute;
  z-index: 15;
  display: flex;
  align-items: flex-end;
  transform: translateX(-50%);
}
.seat.is-top .seat-bet {
  top: 100%;
  left: 50%;
  margin-top: 14px;
  animation: seat-bet-down 320ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
.seat.is-bottom .seat-bet {
  bottom: 100%;
  left: 50%;
  margin-bottom: 14px;
  animation: seat-bet-up 320ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
@keyframes seat-bet-down {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-22px) scale(0.8);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(3px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
@keyframes seat-bet-up {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(22px) scale(0.8);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
.seat.is-top .seat-bet.is-sweeping,
.seat.is-bottom .seat-bet.is-sweeping {
  pointer-events: none;
}
.seat.is-top .seat-bet.is-sweeping {
  animation:
    seat-bet-sweep-down 460ms cubic-bezier(0.5, 0, 0.3, 1) both,
    seat-bet-gone 460ms ease-in both;
}
.seat.is-bottom .seat-bet.is-sweeping {
  animation:
    seat-bet-sweep-up 460ms cubic-bezier(0.5, 0, 0.3, 1) both,
    seat-bet-gone 460ms ease-in both;
}
@keyframes seat-bet-sweep-down {
  from {
    transform: translateX(-50%) translate(0, 0) scale(1);
  }
  to {
    transform: translateX(-50%) translate(-68px, 131px) scale(0.7);
  }
}
@keyframes seat-bet-sweep-up {
  from {
    transform: translateX(-50%) translate(0, 0) scale(1);
  }
  to {
    transform: translateX(-50%) translate(-68px, -73px) scale(0.7);
  }
}
@keyframes seat-bet-gone {
  0%, 70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.seat-bet.is-sweeping .seat-bet-amount {
  animation: ds-hide 120ms linear both;
}
.seat-bet-chips {
  width: 32px;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
}
.seat-bet-amount {
  position: absolute;
  bottom: 0;
  left: 100%;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-sunken);
  padding: 1px 8px;
  font-size: 13px;
  font-weight: var(--black);
  font-variant-numeric: tabular-nums;
  line-height: 16px;
  color: var(--text-strong);
}
.felt > .seat.is-at-left,
.felt > .seat.is-at-right {
  position: absolute;
  margin: -32px 0 0 -32px;
}
.felt > .seat.is-top.is-at-left,
.felt > .seat.is-top.is-at-right { top: 55px; }
.felt > .seat.is-bottom.is-at-left,
.felt > .seat.is-bottom.is-at-right { top: 269px; }
.felt > .seat.is-at-left { left: calc(50% - min(420px, 50%) + 44px); }
.felt > .seat.is-at-right { left: calc(50% + min(420px, 50%) - 44px); }
.felt > .seat.is-at-right .seat-cards {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 4px;
}
.felt > .seat.is-at-left .seat-roll {
  right: auto;
  left: 100%;
  margin-right: 0;
  margin-left: 10px;
}
.felt > .seat.is-at-left .seat-dealer { top: -15px; left: 53px; }
.felt > .seat.is-at-right .seat-dealer { top: 61px; left: -7px; }
.seat.is-top.is-at-left .seat-dealer { top: 61px; left: 53px; }
.seat.is-bottom.is-at-right .seat-dealer { top: -15px; left: -7px; }
.felt > .seat.is-at-left .seat-bet { left: calc(50% + 100px); }
.felt > .seat.is-at-right .seat-bet { left: calc(50% - 100px); }
.felt > .seat.is-at-right .seat-cards.is-mucked {
  animation:
    muck-away-left 340ms cubic-bezier(0.35, 0, 0.6, 1) both,
    muck-fade 340ms ease-in both;
}
@keyframes muck-away-left {
  from {
    transform: translateY(-50%) translate(0, 0) scale(1) rotate(0deg);
  }
  to {
    transform: translateY(-50%) translate(-64px, -6px) scale(0.82) rotate(-8deg);
  }
}
.felt > .seat.is-top.is-at-left .seat-bet.is-sweeping {
  animation:
    seat-bet-sweep-top-left 460ms cubic-bezier(0.5, 0, 0.3, 1) both,
    seat-bet-gone 460ms ease-in both;
}
.felt > .seat.is-top.is-at-right .seat-bet.is-sweeping {
  animation:
    seat-bet-sweep-top-right 460ms cubic-bezier(0.5, 0, 0.3, 1) both,
    seat-bet-gone 460ms ease-in both;
}
.felt > .seat.is-bottom.is-at-left .seat-bet.is-sweeping {
  animation:
    seat-bet-sweep-bottom-left 460ms cubic-bezier(0.5, 0, 0.3, 1) both,
    seat-bet-gone 460ms ease-in both;
}
.felt > .seat.is-bottom.is-at-right .seat-bet.is-sweeping {
  animation:
    seat-bet-sweep-bottom-right 460ms cubic-bezier(0.5, 0, 0.3, 1) both,
    seat-bet-gone 460ms ease-in both;
}
@keyframes seat-bet-sweep-top-left {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(208px, 85px) scale(0.7); }
}
@keyframes seat-bet-sweep-top-right {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-344px, 85px) scale(0.7); }
}
@keyframes seat-bet-sweep-bottom-left {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(208px, -27px) scale(0.7); }
}
@keyframes seat-bet-sweep-bottom-right {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-344px, -27px) scale(0.7); }
}
.felt > .seat.is-mid.is-at-left,
.felt > .seat.is-mid.is-at-right { top: 162px; }
.felt > .seat.is-mid.is-at-left { left: max(32px, calc(50% - min(420px, 50%) + 5px)); }
.felt > .seat.is-mid.is-at-right { left: min(calc(100% - 32px), calc(50% + min(420px, 50%) - 5px)); }
.felt > .seat.is-mid .seat-bet {
  top: 50%;
  margin-top: -12px;
  animation-name: seat-bet-in;
}
.felt > .seat.is-mid.is-at-left .seat-bet { left: calc(50% + 140px); }
.felt > .seat.is-mid.is-at-right .seat-bet { left: calc(50% - 172px); }
@keyframes seat-bet-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
.felt > .seat.is-mid.is-at-left .seat-dealer { top: 61px; left: 53px; }
.felt > .seat.is-mid.is-at-right .seat-dealer { top: 61px; left: -7px; }
.table-stack > .seat-gap {
  display: block;
  height: 64px;
}
.felt > .seat.is-on-left,
.felt > .seat.is-on-right {
  position: absolute;
  top: -4px;
  margin: -32px 0 0 -32px;
}
.felt > .seat.is-on-left { left: calc(50% - min(190px, 23%)); }
.felt > .seat.is-on-right { left: calc(50% + min(190px, 23%)); }
.felt > .seat.is-on-right .seat-bet { left: calc(50% - 16px); }
.felt > .seat.is-mid.is-at-left .seat-bet.is-sweeping {
  animation:
    seat-bet-sweep-mid-left 460ms cubic-bezier(0.5, 0, 0.3, 1) both,
    seat-bet-gone 460ms ease-in both;
}
.felt > .seat.is-mid.is-at-right .seat-bet.is-sweeping {
  animation:
    seat-bet-sweep-mid-right 460ms cubic-bezier(0.5, 0, 0.3, 1) both,
    seat-bet-gone 460ms ease-in both;
}
.felt > .seat.is-top.is-on-left .seat-bet.is-sweeping {
  animation:
    seat-bet-sweep-on-left 460ms cubic-bezier(0.5, 0, 0.3, 1) both,
    seat-bet-gone 460ms ease-in both;
}
.felt > .seat.is-top.is-on-right .seat-bet.is-sweeping {
  animation:
    seat-bet-sweep-on-right 460ms cubic-bezier(0.5, 0, 0.3, 1) both,
    seat-bet-gone 460ms ease-in both;
}
@keyframes seat-bet-sweep-mid-left {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(199px, 27px) scale(0.7); }
}
@keyframes seat-bet-sweep-mid-right {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-303px, 27px) scale(0.7); }
}
@keyframes seat-bet-sweep-on-left {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(122px, 131px) scale(0.7); }
}
@keyframes seat-bet-sweep-on-right {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-274px, 131px) scale(0.7); }
}
.action-skeleton {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 8px;
}
.action-skeleton-pill.ds-skeleton {
  flex: 1;
  max-width: 200px;
  height: 48px;
  border-radius: 8px;
}
.action-retry {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.action-retry-title {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.action-retry-title > svg {
  flex: none;
  color: var(--grade-bad);
}
.action-retry-text {
  min-width: 0;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 16px;
}
.action-retry-detail {
  min-width: 0;
  max-width: 560px;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}
.action-retry-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.action-button.is-retry { flex: none; min-width: 120px; padding: 0 16px; }
.action-bar {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 720px;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.action-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: inherit;
  justify-content: inherit;
  gap: inherit;
  animation: action-row-in 180ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.action-row.is-instant { animation: none; }
.action-row.is-leaving {
  pointer-events: none;
  animation: action-row-out 110ms ease-in both;
}
.action-row.is-cross { position: relative; animation: none; }
.action-row.is-cross > :not(.is-over) { animation: action-row-in 180ms cubic-bezier(0.22, 0.8, 0.24, 1); }
.action-row.is-over { position: absolute; inset: 0; width: auto; }
@keyframes action-row-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes action-row-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
.practice-page:not(.is-multi):not(.is-phone) .table-stack { margin-top: auto; }
.practice-page:not(.is-multi):not(.is-phone) .action-bar { min-height: 160px; margin-bottom: auto; }
.practice-page:not(.is-multi):not(.is-phone) .action-bar:not(.is-verdict):not(.is-review) { align-items: flex-start; padding-top: 12px; }
.action-button {
  flex: 1;
}
.action-button.is-move {
  flex: 1 1 0;
  max-width: 200px;
}
.action-button.ds-action-button {
  position: relative;
  min-width: 0;
  text-transform: capitalize;
}
.action-button.ds-action-button { container-type: inline-size; padding: 0 12px; }
@container (max-width: 159px) {
  .action-button-key { display: none; }
}
.action-button-key {
  position: absolute;
  top: 50%;
  right: 12px;
  min-width: 20px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: var(--heavy);
  line-height: 16px;
  text-align: center;
  text-shadow: none;
  opacity: 0.8;
  transform: translateY(-50%);
}
.action-button.ds-action-button:hover:not(:disabled) { --c: var(--action-aggressive-hover); }
.action-button.ds-action-button.is-fold:hover:not(:disabled) { --c: var(--action-fold-hover); }
.action-button.ds-action-button.is-call:hover:not(:disabled) { --c: var(--action-passive-hover); }
.action-button.ds-action-button.is-allin:hover:not(:disabled) { --c: var(--action-allin-hover); }
.action-button { transition: opacity 140ms ease; }
.action-button:disabled {
  cursor: default;
  opacity: 0.45;
}
.action-button.is-picked:disabled { opacity: 1; }
.action-button.is-move.is-loading { overflow: hidden; }
.action-button.is-move.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  pointer-events: none;
  transform: translateX(-100%);
  animation: ds-sheen 1100ms ease-in-out infinite;
}
.action-button.is-next,
.action-button.is-continue {
  flex: 0 0 280px;
}
.hand-verdict {
  display: flex;
  width: 100%;
  max-width: 600px;
  flex-direction: column;
  margin-top: 8px;
  border-radius: 12px;
  padding: 4px 12px 12px 12px;
}
.hand-verdict-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hand-score {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
}
.hand-score-ring {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}
.hand-score-track {
  fill: none;
  stroke: rgb(var(--ink) / 0.09);
  stroke-width: 4;
}
.hand-score-arc {
  fill: none;
  stroke: var(--verdict);
  stroke-width: 4;
  stroke-linecap: round;
}
.hand-score-value {
  position: relative;
  font-size: 12px;
  font-weight: var(--black);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.hand-fact {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0;
}
.hand-fact.is-mid { text-align: center; }
.hand-fact.is-end { text-align: right; }
.hand-fact-label {
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hand-fact-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.hand-fact-value.is-verdict {
  color: var(--verdict);
}
.hand-outcome-amount {
  font-variant-numeric: tabular-nums;
}
.hand-outcome-amount.is-win { color: var(--grade-good); }
.hand-outcome-amount.is-loss { color: var(--grade-bad); }
.hand-outcome-amount.is-flat { color: var(--text-soft); }
.hand-verdict-idle {
  flex: 1;
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-soft);
}
.hand-streets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding: 8px 0;
}
.hand-street {
  --verdict: transparent;
  --verdict-rgb: 255, 255, 255;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.3);
}
.hand-street.is-graded {
  border-color: rgba(var(--verdict-rgb), 0.42);
  background: rgba(var(--verdict-rgb), 0.1);
  color: var(--verdict);
}
.hand-street.is-reached {
  border-color: rgb(var(--ink) / 0.13);
  color: var(--text-soft);
}
.hand-street:not(:disabled):hover {
  border-color: rgba(var(--verdict-rgb), 0.6);
  background: rgba(var(--verdict-rgb), 0.16);
}
.hand-street:disabled {
  cursor: default;
}
.hand-street-mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgb(var(--ink) / 0.07);
  color: rgb(var(--ink) / 0.35);
}
.hand-street.is-reached .hand-street-mark {
  background: rgb(var(--ink) / 0.12);
  color: var(--text-soft);
}
.hand-street.is-graded .hand-street-mark {
  background: var(--verdict);
  color: #1b1b1b;
}
.hand-verdict-actions {
  display: flex;
  gap: 8px;
}
.action-button.is-repeat {
  flex: 1;
}
.hand-verdict .action-button.is-next {
  flex: 1.4;
}
.action-key {
  margin-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.88);
}
.hand-verdict-idle {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
}
.action-bar.is-review {
  max-width: 880px;
  align-items: center;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
.action-bar.is-verdict {
  max-width: 880px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.action-bar.is-review .review-arrow,
.action-bar.is-verdict .review-arrow {
  align-self: flex-start;
  margin-top: 48px;
}
.action-bar.is-review .review-stack {
  margin-top: 8px;
}
.review-stack {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}
.review-arrow {
  display: grid;
  width: 40px;
  height: 80px;
  flex-shrink: 0;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--text-soft);
  transition: background-color 120ms ease, color 120ms ease;
}
.review-arrow:hover {
  background: var(--surface-hover);
  color: var(--text-strong);
}
.review-arrow:disabled {
  cursor: default;
  color: var(--line-strong);
}
.review-arrow:disabled:hover {
  background: transparent;
}
.move-options {
  display: flex;
  gap: 8px;
}
.move-option {
  display: flex;
  height: 48px;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: var(--heavy);
}
.move-option-mark {
  width: 16px;
  height: 16px;
}
.move-option-name {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}
.move-option-figures {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.move-option-share {
  font-size: 16px;
  font-weight: var(--heavy);
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.move-option-ev {
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}
.move-option-loss {
  margin-left: 4px;
  color: var(--grade-bad);
  font-style: normal;
}
.move-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  font-weight: var(--black);
  letter-spacing: 0.03em;
  text-transform: none;
}
.move-legend-title {
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.move-legend-item i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}
.move-review-foot {
  display: flex;
  gap: 8px;
}
.review-button {
  flex: 1;
}
.practice-info {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
}
.info-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-body > .info-freqs {
  padding: 0 12px 8px;
}
.info-body > .info-hidden {
  margin: 0 12px 12px;
}
.practice-info .matrix,
.practice-info .matrix-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.theme-brand .practice-info {
  --theme-radius-cell: 4px;
}
.info-freqs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.info-hint > svg { flex: none; }
.info-hint > span { min-width: 0; flex: 1; }
.info-hint-switch { flex: none; }
.info-head {
  display: flex;
  height: 64px;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -16px -16px -12px;
  padding: 0 12px 0 16px;
}
.info-head-hand {
  display: inline-flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
}
.info-head-lines {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.info-head-lines > b {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: var(--heavy);
  line-height: 20px;
}
.info-head-lines > small {
  display: inline-flex;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}
.info-head-tools {
  display: inline-flex;
  flex: none;
  gap: 4px;
}
.info-head .ds-button.info-head-hints.is-on {
  color: var(--accent-orange);
}
.info-head .ds-button.info-head-hints.is-hand svg {
  fill: color-mix(in srgb, var(--accent-orange) 40%, transparent);
}
.practice-info.is-openable .matrix,
.practice-info.is-openable .matrix.is-canvas > .matrix-key {
  cursor: pointer;
}
.info-mix {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px 12px;
}
.info-mix-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.info-mix-label {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.info-mix-strip {
  display: flex;
  height: 24px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--theme-cell, var(--surface-sunken));
}
.info-mix-strip > i {
  display: grid;
  min-width: 0;
  flex: 0 0 0;
  place-items: center;
  overflow: hidden;
  color: var(--theme-on-paint, var(--text-strong));
  font-size: 12px;
  font-style: normal;
  font-weight: var(--bold);
  font-variant-numeric: tabular-nums;
  line-height: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.info-mix-strip > i + i {
  box-shadow: inset 1px 0 0 var(--surface-panel);
}
.info-mix-legend {
  display: flex;
  min-height: 16px;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px 0 0 56px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}
.info-mix-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.info-mix-legend i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
}
.practice-page.is-info-window > .rail.is-right {
  width: 100%;
  border-top: none;
  border-left: none;
}
.info-window-empty {
  margin: 0;
  padding: 16px 0;
  text-align: center;
}
.info-freqs-title {
  margin-bottom: 0;
  font-size: 12px;
  font-weight: var(--heavy);
  color: var(--text-muted);
}
.info-freq {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: var(--heavy);
}
.info-freq-name {
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.info-freq-value {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.history {
  width: 100%;
  min-height: 0;
  flex: 0 1 auto;
  overflow: hidden;
}
.rail.is-right > .history:not(.is-folded) {
  flex-shrink: 10000;
}
.rail.is-right > .history.is-full:not(.is-folded) {
  min-height: 166px;
  transition: min-height 320ms cubic-bezier(0.22, 0.7, 0.2, 1);
}
.rail.is-right > .history.is-full:not(.is-folded):has(.history-row.is-open) {
  min-height: 248px;
}
.history.is-rail {
  flex: none;
}
.history.is-rail .history-list {
  overflow: clip;
}
.ds-card.is-compact.history.is-bare {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.history.is-rail .history-row-head {
  gap: 4px;
  padding: 0 4px 0 8px;
}
.history.is-rail .history-row-head > .grade-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}
.history.is-rail .history-tools {
  gap: 0;
}
.history.is-rail :is(.history-tool, .history-tool-gap) {
  width: 20px;
}
.history-body-study {
  flex: none;
}
.history-list::before,
.history-list::after {
  content: "";
  position: sticky;
  z-index: 2;
  display: block;
  height: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}
.history-list::before {
  top: 0;
  margin-bottom: -40px;
  background: linear-gradient(to bottom, var(--surface-panel), transparent);
}
.history-list::after {
  bottom: 0;
  margin-top: -40px;
  background: linear-gradient(to bottom, transparent, var(--surface-panel));
}
.history-list.is-more-above::before,
.history-list.is-more-below::after {
  opacity: 1;
}
.history-session {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}
.history-session .history-amount {
  font-size: 12px;
}
.history-session-score {
  font-size: 12px;
  font-weight: var(--heavy);
  font-variant-numeric: tabular-nums;
}
.history-session-score.is-good { color: var(--grade-good); }
.history-session-score.is-warn { color: var(--grade-warn); }
.history-session-score.is-bad { color: var(--grade-bad); }
.history-session-score.is-idle { color: var(--text-muted); }
.history-graph {
  border-bottom: 1px solid var(--line);
  padding: 0 12px 12px;
}
.history-graph-read {
  display: flex;
  height: 24px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  white-space: nowrap;
}
.history-graph-total {
  color: var(--text-muted);
}
.history-graph-plot {
  position: relative;
  height: 68px;
  margin-top: 8px;
}
.history-graph-plot > svg {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
}
.history-graph-curve {
  top: 0;
  height: 56px;
  overflow: visible;
  pointer-events: none;
}
.history-graph-grades {
  bottom: 0;
  height: 4px;
  border-radius: 2px;
  pointer-events: none;
}
.history-graph-hits {
  top: 0;
  height: 100%;
  fill: transparent;
}
.history-graph-zero {
  stroke: var(--line-strong);
  stroke-dasharray: 2 4;
  vector-effect: non-scaling-stroke;
}
.history-graph-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.history-graph-line.is-win { stroke: var(--grade-good); }
.history-graph-line.is-loss { stroke: var(--grade-bad); }
.history-graph-line.is-plain { stroke: var(--text-soft); }
.history-graph-stop.is-win { stop-color: var(--grade-good); }
.history-graph-stop.is-loss { stop-color: var(--grade-bad); }
.history-graph-stop.is-plain { stop-color: var(--text-soft); }
.history-graph-box {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 56px;
  pointer-events: none;
}
.history-graph-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
  pointer-events: none;
}
.history-graph-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--surface-panel);
  pointer-events: none;
}
.history-graph-dot.is-win { background: var(--grade-good); }
.history-graph-dot.is-loss { background: var(--grade-bad); }
.history-graph-dot.is-plain { background: var(--text-soft); }
.history-graph-dot.is-on { background: var(--text-strong); }
.history-list {
  min-height: 0;
  overflow-y: auto;
}
.history-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.history-row + .history-row {
  border-top: 1px solid var(--line);
}
.history-row-inner {
  animation: history-row-fade 320ms ease-out both;
}
@keyframes history-row-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.history-row-head {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 12px;
  cursor: pointer;
}
.history-row-head:hover,
.history-row.is-open > .history-row-inner > .history-row-head {
  background: var(--surface-hover);
}
.history-nomark {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.history-row-head > .grade-icon {
  flex-shrink: 0;
}
.history-cards {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 2px;
}
.history-board {
  margin-left: 6px;
}
.history-row-note {
  min-width: 0;
  overflow: hidden;
  margin-left: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-row-amount {
  min-width: 40px;
  font-size: 12px;
  text-align: right;
}
.history-card {
  --card-radius: 4px;
}
.history-tool {
  display: grid;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  place-items: center;
  border: none;
  border-radius: 4px;
  background: none;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
}
.history-tools {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}
.history-tool-gap {
  width: 24px;
  flex-shrink: 0;
}
.history-tool:hover {
  color: var(--text-strong);
}
.history-tool.is-on {
  color: var(--grade-warn);
}
.history-tool.is-on svg {
  fill: currentColor;
}
.history-body {
  padding: 0 8px 8px;
  font-size: 12px;
  color: var(--text-soft);
}
.hand-read {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hand-read-card {
  border-radius: 8px;
  background: var(--surface-sunken);
  padding: 8px 8px;
}
.hand-read-title {
  font-size: 12px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.hand-read-street .hand-read-title {
  text-transform: uppercase;
}
.hand-read-sub {
  margin-top: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.hand-read-seats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: var(--bold);
}
.hand-read-seat {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
}
.hand-read-seat.is-hero { color: var(--grade-good); }
.hand-read-seat.is-villain { color: var(--grade-warn); }
.hand-read-street {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.hand-read-cards {
  flex-shrink: 0;
}
.hand-read-face {
  --card-radius: 4px;
}
.hand-read-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.hand-read-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  font-weight: var(--bold);
}
.hand-read-seat-name {
  color: var(--text-muted);
}
.hand-read-action {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-strong);
}
.hand-read-freq,
.hand-read-ev {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text-soft);
}
.hand-read-ev {
  min-width: 56px;
}
.hand-read-unit {
  font-size: 12px;
  font-style: normal;
  font-weight: var(--bold);
  color: var(--text-muted);
}
.hand-read-show {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: var(--bold);
}
.history-outcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.history-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dim);
}
.history-amount {
  flex-shrink: 0;
  font-weight: var(--bold);
  font-variant-numeric: tabular-nums;
}
.history-amount.is-win { color: var(--grade-good); }
.history-amount.is-loss { color: var(--grade-bad); }
.history-amount.is-flat { color: #b8b8b8; }
.history-empty {
  padding: 12px 12px;
}
.strip-step.is-instant {
  animation-duration: 0ms;
}
.board-card.is-instant {
  --dur: 0ms;
  animation-delay: 0ms;
}
.seat.is-top .seat-bet.is-instant,
.seat.is-bottom .seat-bet.is-instant {
  animation-duration: 0ms;
}
.seat-cards.is-mucked.is-instant {
  animation-duration: 0ms;
}
.seat-cards.is-instant .seat-hand {
  animation-duration: 0ms;
  animation-delay: 0ms;
}
.history-row.is-instant .history-row-inner {
  animation-duration: 0ms;
}
.practice-page.is-still *,
.practice-page.is-still *::before,
.practice-page.is-still *::after {
  animation-duration: 0ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0ms !important;
  transition-delay: 0ms !important;
}
.action-button.has-mix {
  flex-direction: column;
  gap: 0;
  line-height: 20px;
}
.action-button-mix {
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  font-variant-numeric: tabular-nums;
  opacity: 0.82;
}
.action-button.is-next.is-auto {
  position: relative;
  overflow: hidden;
}
.action-auto {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--text-on-brand);
  opacity: 0.72;
  transform: scaleX(0);
  transform-origin: left center;
  animation: action-auto-fill linear both;
}
@keyframes action-auto-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.info-hidden {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
}
.info-hidden strong {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-soft);
}
.info-hidden small {
  font-size: 12px;
  line-height: 16px;
}
.practice-page > .rail.is-right {
  width: 400px;
}
.rail.is-right > .strength-card.is-folded { flex: none; }
.rail.is-right > .strength-card:not(.is-folded) { min-height: 112px; }
.rail.is-right > .strength-card:not(.is-folded):has(.strength-group):not(:has(.strength-group:nth-child(3), .strength-row.is-open)) { flex: none; min-height: 0; }
.rail.is-right > .strength-card .strength-view { grid-auto-columns: auto; }
.rail.is-right > .strength-card > .ds-card-body:has(> .strength-list) { padding-bottom: 8px; }
.practice-info > .panel-head {
  position: relative;
}
.practice-info > .panel-head > .panel-head-main {
  align-items: center;
  justify-content: center;
}
.practice-info > .panel-head .panel-fold,
.practice-info > .panel-head > .panel-head-side {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
}
.practice-info > .panel-head .panel-fold { left: 12px; }
.practice-info > .panel-head > .panel-head-side { right: 12px; }
.practice-info-hand {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-muted);
}
.practice-line {
  flex-shrink: 0;
  min-height: 80px;
  padding: 12px 12px 0;
}
.hand-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.hand-tile {
  display: flex;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  background: var(--surface-panel);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 8px;
  color: inherit;
  font: inherit;
  animation: hand-tile-in 160ms ease-out both;
}
button.hand-tile {
  cursor: pointer;
}
.hand-tile small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  white-space: nowrap;
}
.hand-tile b {
  font-size: 12px;
  font-weight: var(--heavy);
  line-height: 16px;
  white-space: nowrap;
  text-transform: capitalize;
  font-variant-numeric: tabular-nums;
}
.hand-tile .grade-icon {
  width: 12px;
  height: 12px;
  flex: none;
  margin: 0 -4px;
  stroke-width: 2.8;
}
.hand-tile.is-hero {
  box-shadow: inset 0 0 0 1px var(--line-stronger);
}
.hand-tile.is-hero small {
  color: var(--accent-brand);
}
.hand-tile.is-open,
.hand-tile.is-now {
  box-shadow: inset 0 0 0 1px var(--accent-brand);
}
.hand-tile.is-now b {
  color: var(--accent-brand);
  text-transform: none;
}
.hand-tile.is-street,
.hand-tile.is-end {
  background: none;
  box-shadow: none;
}
.hand-tile.is-street {
  gap: 2px;
  padding: 0 4px;
}
.hand-tile.is-street small {
  margin-right: 6px;
}
.hand-tile.is-end small {
  color: var(--text-soft);
}
.hand-tile.is-end b.is-up {
  color: var(--grade-good);
}
.hand-tile.is-end b.is-down {
  color: var(--grade-bad);
}
.practice-line.is-still .hand-tile {
  animation: none;
}
@keyframes hand-tile-in {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}
.history-fold {
  overflow: hidden;
}
@container study-matrix (max-width: 459px) {
  :is(.theme-brand, .theme-contrast) :is(.rail.is-right, .multi-info) .practice-info .matrix .matrix-cell .matrix-cell-label.matrix-cell-label { top: 2px; left: 2px; font-size: 10px; font-weight: 600; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35); }
  :is(.theme-brand, .theme-contrast) :is(.rail.is-right, .multi-info) .practice-info .matrix .matrix-cell .matrix-cell-metric { display: none; }
}
.freq-input {
  display: flex;
  width: 100%;
  max-width: 720px;
  align-items: flex-end;
  gap: 12px;
}
.freq-input-row {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
}
.freq-input-confirm {
  flex: none;
  gap: 8px;
}
.move-mixes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.move-mixes-diff {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.hand-fact-sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.rail {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100vh;
  width: 310px;
  flex-shrink: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 16px;
}
.rail.is-right {
  border-right: none;
  border-left: 1px solid var(--line);
  overflow: hidden;
}
.rail-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 0 4px;
}
.rail-brand-logo {
  height: 32px;
  gap: 8px;
}
.rail-brand-logo .brand-logo-mark {
  height: 28px;
}
.rail-brand-logo .brand-logo-word {
  height: 20px;
}
.rail-nav.ds-segmented {
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: row;
}
.rail-nav .ds-segment.is-selected svg {
  color: var(--pick);
}
.rail-ai-icon { color: var(--ai-accent); }
.rail-ai-badge {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--ai-accent-strong);
  color: var(--text-on-brand);
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 1.5px;
  line-height: 16px;
  font-feature-settings: "cv08";
}
.rail-now {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent-brand) 14%, transparent), transparent 70%),
    var(--surface-panel);
  padding: 16px;
}
.rail-now-top { display: flex; align-items: center; gap: 16px; }
.rail-now-name { display: flex; min-width: 0; flex-direction: column; }
.rail-now-name small { color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.6px; line-height: 16px; text-transform: uppercase; }
.rail-now-name strong { overflow: hidden; color: var(--text-strong); font-size: 20px; font-weight: var(--heavy); line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.rail-now-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.rail-now-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rail-now-change { flex: 1 0 auto; white-space: nowrap; }
.rail-now-actions .ds-menu-anchor { display: flex; min-width: 0; flex: 1 1 96px; }
.rail-now .rail-now-actions .ds-select { width: 100%; min-width: 0; }
.rail-now-drills {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px -16px -16px;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: transparent;
  padding: 12px 16px;
  text-align: left;
  color: var(--text-normal);
  cursor: pointer;
}
.rail-now-drills:hover { background: var(--surface-hover); }
.rail-now-drills > svg:first-child, .rail-now-drills > .drill-icon { flex-shrink: 0; color: var(--accent-brand); }
.rail-now-drills-text { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.rail-now-drills-text strong { overflow: hidden; color: var(--text-strong); font-size: 12px; font-weight: var(--heavy); line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.rail-now-drills-text small { overflow: hidden; color: var(--text-muted); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.rail-now-arrow { flex: none; color: var(--text-muted); transform: translateX(0); transition: transform 180ms cubic-bezier(0.2, 0, 0, 1); }
.rail-now-drills:hover .rail-now-arrow { transform: translateX(3px); }
.rail-now-drills.is-active .rail-now-drills-text strong { color: var(--pick); }
.rail-now-drills.is-active { padding-inline-end: 48px; }
.rail-now-drills-fill {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 2px;
  background: var(--accent-brand);
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.2, 0, 0, 1);
}
.rail-now { position: relative; }
.rail-now-drills-end.ds-button { position: absolute; bottom: 16px; inset-inline-end: 12px; }
.rail-now-run { position: relative; }
.rail-now-run .rail-now-drills-end.ds-button { bottom: auto; top: 20px; }
.rail-now-run:has(.rail-now-skipped) .rail-now-drills { margin-bottom: 0; border-radius: 0; }
.rail-now-skipped { margin-top: 8px; }
.rail-trend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}
.rail-trend:hover { background: var(--surface-hover); }
.rail-trend-text { display: flex; min-width: 0; flex-direction: column; }
.rail-trend-text strong { overflow: hidden; color: var(--text-strong); font-size: 12px; font-weight: var(--heavy); line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.rail-trend-text small { overflow: hidden; color: var(--text-muted); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.rail-trend-line { width: 72px; height: 32px; overflow: visible; }
.rail-trend-stroke { fill: none; stroke: var(--accent-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rail-trend-area { fill: color-mix(in srgb, var(--accent-brand) 14%, transparent); }
.rail-trend-now { display: flex; flex-direction: column; align-items: flex-end; }
.rail-trend-now strong { color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 20px; font-variant-numeric: tabular-nums; }
.rail-trend-now small { color: var(--grade-good); font-size: 12px; font-weight: var(--bold); line-height: 16px; font-variant-numeric: tabular-nums; }
.rail-trend-now small.is-down { color: var(--text-muted); }
.rail-tool-button.is-off {
  color: var(--text-soft);
}
.rail-tool-button.is-replay:hover:not(:disabled) svg,
.rail-tool-button.is-replay:focus-visible:not(:disabled) svg { transform: rotate(60deg); }
.rail-tool-button.is-next:hover:not(:disabled) svg,
.rail-tool-button.is-next:focus-visible:not(:disabled) svg { transform: translateX(2px); }
.rail-tool-button:is(.is-sound, .is-motion, .is-session):hover:not(:disabled) svg,
.rail-tool-button:is(.is-sound, .is-motion, .is-session):focus-visible:not(:disabled) svg { transform: scale(1.12); }
.rail-tool-button.is-study:hover:not(:disabled) svg,
.rail-tool-button.is-study:focus-visible:not(:disabled) svg { transform: translateY(-2px); }
.rail-tool-wrap {
  position: relative;
  display: flex;
}
.table-volume {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: -4px;
  display: flex;
  visibility: hidden;
  align-items: center;
  opacity: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 8px 12px;
  margin-top: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}
.rail-tool-wrap:hover .table-volume,
.rail-tool-wrap:focus-within .table-volume {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.table-volume input {
  width: 104px;
}
.metric-row {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  text-align: center;
}
.metric-row.is-three { grid-template-columns: repeat(3, 1fr); }
.metric-row.is-two { grid-template-columns: repeat(2, 1fr); }
.metric {
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 4px 8px;
}
.metric-value {
  font-size: 16px;
  font-weight: var(--black);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.metric-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.stats-hero {
  display: flex;
  align-items: last baseline;
  justify-content: space-between;
  gap: 12px;
}
.stats-score { display: flex; flex-direction: column; }
.stats-score strong { color: var(--text-strong); font-size: 40px; font-weight: var(--heavy); line-height: 44px; font-variant-numeric: tabular-nums; }
.stats-score span,
.stats-counts dt,
.stats-ev-sub {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}
.stats-counts { display: grid; gap: 4px; margin: 0; }
.stats-counts div { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; }
.stats-counts dd { min-width: 32px; margin: 0; color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 20px; font-variant-numeric: tabular-nums; text-align: right; }
.grade-stack { position: relative; display: flex; height: 12px; overflow: hidden; margin-top: 12px; border-radius: 4px; background: var(--surface-active); }
.grade-stack-part { min-width: 4px; flex-basis: 0; transform-origin: 0 50%; }
.grade-stack-part + .grade-stack-part { border-left: 2px solid var(--surface-panel); }
.grade-columns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 12px; }
.grade-column { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: default; }
.grade-column strong { color: var(--text-strong); font-size: 16px; font-weight: var(--bold); line-height: 20px; font-variant-numeric: tabular-nums; }
.grade-column.is-none { opacity: 0.4; }
.rail-session { overflow: hidden; }
.rail-session .history.is-bare { border-top: 1px solid var(--line); }
.grade-marks { display: flex; justify-content: space-between; margin-top: 8px; }
.grade-mark { display: inline-flex; align-items: center; gap: 4px; color: var(--text-strong); font-size: 12px; font-weight: var(--bold); line-height: 16px; font-variant-numeric: tabular-nums; cursor: default; }
.rail .grade-mark .grade-icon { width: 16px; height: 16px; }
.grade-mark.is-none { opacity: 0.4; }
.stats-ev-label { cursor: help; text-decoration: underline dotted; text-underline-offset: 4px; }
.stats-ev-label:focus-visible { outline: 2px solid var(--text-strong); outline-offset: 4px; }
.rail-all-row { border-top: 1px solid var(--line); }
.ds-card.is-folded > .rail-all-row { border-top: none; }
.rail-all { display: flex; width: 100%; align-items: center; gap: 12px; border: none; background: transparent; padding: 12px 16px; color: var(--text-normal); text-align: left; cursor: pointer; }
.rail-all:hover { background: var(--surface-hover); }
.rail-all:hover .rail-now-arrow { transform: translateX(3px); }
.rail-all > svg:first-child { flex: none; color: var(--accent-brand); }
.rail-all-value { font-variant-numeric: tabular-nums; }
.rail-all-value b { color: var(--text-strong); font-weight: var(--heavy); }
.rail .grade-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.3;
}
.stats-empty { margin: 12px 0 0; text-align: center; }
.stats-ev {
  position: relative;
  display: block;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.stats-ev-line { display: flex; align-items: center; gap: 8px; }
.stats-ev-line .metric-label { margin: 0; line-height: 16px; white-space: nowrap; }
.stats-ev-line strong { color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 20px; font-variant-numeric: tabular-nums; }
.stats-ev-gap { flex: 1; }
.stats-ev .metric-label {
  display: inline-block;
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.stats-ev .metric-label:focus-visible { outline: 2px solid var(--text-strong); outline-offset: 4px; }
.stats-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  cursor: pointer;
}
.stats-progress span {
  flex: 1;
  text-align: left;
}
.stats-progress > svg:first-child { color: var(--accent-brand); }
.stats-progress:hover {
  background: var(--surface-hover);
  color: var(--text-strong);
}
.stats-progress-arrow {
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1);
}
.stats-progress:hover .stats-progress-arrow {
  transform: translateX(3px);
}
.last-move-detail {
  font-size: 12px;
  color: var(--text-soft);
}
.rail-brand, .rail-nav { flex-shrink: 0; }
.rail-content-scroll { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 8px; overflow-y: auto; }
.rail-content-scroll > * { flex-shrink: 0; }
.practice-page:not(.is-rail-collapsed) > .rail:not(.is-right) { scrollbar-width: none; }
.practice-page:not(.is-rail-collapsed) > .rail:not(.is-right)::-webkit-scrollbar { display: none; }
.practice-page:not(.is-rail-collapsed) > .rail:not(.is-right) .rail-content-scroll { flex: none; overflow: visible; }
.practice-page:not(.is-rail-collapsed) > .rail:not(.is-right) .sidebar-account {
  position: sticky;
  z-index: 20;
  bottom: -16px;
  margin-bottom: -16px;
  padding-bottom: 8px;
  background: var(--theme-rail);
}
.practice-page > .rail { transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.practice-page.is-multi > .rail { transition: none; }
.practice-page.is-rail-moving > .rail:not(.is-right) { overflow: hidden; }
.practice-page.is-rail-moving > .rail:not(.is-right) > *,
.practice-page.is-right-moving > .rail.is-right > * { animation: rail-content-in 380ms ease both; }
.practice-page.is-rail-moving:not(.is-rail-collapsed) > .rail:not(.is-right) > :not(.sidebar-account) { width: 277px; min-width: 277px; max-width: 277px;  }
.practice-page.is-right-moving > .rail.is-right > * { width: 367px; min-width: 367px; max-width: 367px;  }
.practice-page.is-rail-collapsed > .rail:not(.is-right) {
  z-index: 20;
  width: 64px;
  gap: 8px;
  padding: 12px 8px;
  overflow: visible;
}
.practice-page.is-rail-collapsed.is-rail-moving > .rail:not(.is-right) { overflow: hidden; }
.practice-page.is-rail-collapsed > .rail .rail-brand-logo { height: 28px; }
.practice-page.is-rail-collapsed > .rail .rail-brand-logo .brand-logo-word { display: none; }
.practice-page.is-rail-collapsed > .rail .rail-brand-logo .brand-logo-mark { height: 20px; }
.practice-page.is-rail-collapsed > .rail .rail-nav { grid-template-columns: 1fr; }
.practice-page.is-rail-collapsed > .rail .rail-nav-button {
  gap: 0;
  padding: 8px 0;
  font-size: 0;
}
.practice-page.is-rail-collapsed > .rail .rail-tools { grid-template-columns: 1fr; }
.practice-page.is-rail-collapsed > .rail .table-volume {
  top: 0;
  left: 100%;
  margin: 0 0 0 12px;
  transform: translateX(-4px);
}
.practice-page.is-rail-collapsed > .rail .rail-tool-wrap:is(:hover, :focus-within) .table-volume { transform: translateX(0); }
.practice-page.is-rail-collapsed > .rail .rail-content-scroll { display: none; }
.practice-page.is-rail-collapsed > .rail .sidebar-account { margin-top: auto; }
.practice-page.is-rail-collapsed > .rail .sidebar-account-open {
  justify-content: center;
  margin: 0;
  padding: 4px;
}
.practice-page.is-rail-collapsed > .rail :is(.sidebar-account-info, .sidebar-account-sep, .sidebar-account-tier, .sidebar-account-plan-wait, .sidebar-account-caret) { display: none; }
.practice-page.is-rail-collapsed > .rail .sidebar-account { margin-right: -8px; margin-bottom: -4px; margin-left: -8px; padding-top: 8px; padding-right: 8px; padding-left: 8px; }
.practice-page.is-rail-collapsed > .rail .sidebar-account-menu { right: auto; bottom: 0; left: calc(100% + 16px); width: 240px; }
.practice-page.is-rail-collapsed > .rail .sidebar-account-open.is-open::after { display: none; }
.practice-page.is-rail-collapsed > .rail [data-rail-label] { position: relative; }
.practice-page.is-rail-collapsed > .rail [data-rail-label]::after {
  content: attr(data-rail-label);
  position: absolute;
  z-index: 40;
  top: 50%;
  left: calc(100% + 12px);
  border-radius: 8px;
  background: var(--surface-panel);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
  color: var(--text-normal);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
}
.practice-page.is-rail-collapsed > .rail [data-rail-label]:hover::after { opacity: 1; }
.practice-page.is-focus > .rail {
  width: 0;
  overflow: hidden;
  border: none;
  padding: 0;
}
.practice-page.is-focus > .rail > * {
  visibility: hidden;
  transition: visibility 0s linear 320ms;
}
.practice-focus-exit.ds-button {
  position: absolute;
  z-index: 5;
  bottom: 8px;
  left: 8px;
  background: var(--surface-raised);
  color: var(--text-muted);
}
.practice-focus-exit.ds-button:hover { color: var(--text-strong); }
.practice-page > .rail .rail-tools { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.practice-page.is-phone > .rail .rail-tools { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.practice-page.is-right-collapsed > .rail.is-right {
  width: 0;
  border: none;
  padding: 0;
}
.practice-page.is-right-moving > .rail.is-right { border-left: 1px solid var(--line); padding: 16px 0; }
.practice-page.is-right-moving > .rail.is-right > * { margin-left: 16px; }
.practice-page.is-right-collapsed.is-right-moving > .rail.is-right > * { animation: rail-content-out 240ms ease both; }
.practice-page.is-right-moving > .rail.is-right > .info-head { width: 399px; min-width: 399px; max-width: 399px;  }
.practice-page.is-right-moving > .rail.is-right > .info-head { margin-left: 0; }
.practice-page.is-right-collapsed.is-right-moving > .rail.is-right { border-left: none; }
.practice-page.is-right-collapsed.is-right-moving > .rail.is-right::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--line);
}
.practice-page.is-right-collapsed.is-right-moving > .rail.is-right > * { margin-left: 17px;  }
.practice-page.is-right-collapsed.is-right-moving > .rail.is-right > .info-head { margin-left: 1px;  }
.practice-page.is-rail-moving > .rail:not(.is-right),
.practice-page.is-right-moving > .rail.is-right { pointer-events: none; }
@keyframes rail-content-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.brand-logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}
.brand-logo > img {
  display: block;
  width: auto;
}
.hover-hint {
  border-radius: 8px;
  background: var(--surface-panel);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--text-normal);
}
.hover-hint {
  max-width: 280px;
  animation: hint-in 120ms ease both;
}
.hover-hint.is-above {
  animation-name: hint-in-above;
}
.hover-hint {
  position: fixed;
  z-index: 2100;
  pointer-events: none;
  white-space: pre-line;
  overflow-wrap: break-word;
}
@keyframes hint-in {
  from { opacity: 0; transform: translateY(-4px); }
}
@keyframes hint-in-above {
  from { opacity: 0; transform: translateY(4px); }
}
.hover-hint.is-leaving {
  animation: hint-out 100ms ease both;
}
.hover-hint.is-above.is-leaving {
  animation-name: hint-out-above;
}
@keyframes hint-out {
  to { opacity: 0; transform: translateY(-4px); }
}
@keyframes hint-out-above {
  to { opacity: 0; transform: translateY(4px); }
}

@supports (color: rgb(from currentColor r g b / 1)) {
  svg:is(.lucide, [stroke="currentColor"], [fill="currentColor"]) { mask-image: linear-gradient(currentColor, currentColor); }
  :where(svg:is(.lucide, [stroke="currentColor"], [fill="currentColor"])) > * { color: rgb(from currentColor r g b / 1); }
}
:where(.ds-dot, .ds-fill, .ds-action-card, .ds-action-button, .ds-node-action, .ds-crumb, .ds-banner).is-allin { --c: var(--action-allin); }
:where(.ds-dot, .ds-fill, .ds-action-card, .ds-action-button, .ds-node-action, .ds-crumb, .ds-banner).is-raise { --c: var(--action-raise); }
:where(.ds-dot, .ds-fill, .ds-action-card, .ds-action-button, .ds-node-action, .ds-crumb, .ds-banner).is-bet { --c: var(--action-aggressive); }
:where(.ds-dot, .ds-fill, .ds-action-card, .ds-action-button, .ds-node-action, .ds-crumb, .ds-banner).is-call { --c: var(--action-passive); }
:where(.ds-dot, .ds-fill, .ds-action-card, .ds-action-button, .ds-node-action, .ds-crumb, .ds-banner).is-fold { --c: var(--action-fold); }
.ds-dot { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--c, var(--text-muted)); }
.ds-fill { display: block; flex: none; height: 100%; background: var(--c); }
.ds-text-caption { font-size: 12px; line-height: 16px; }
.ds-text-body { font-size: 16px; line-height: 24px; }
.ds-text-title { font-size: 20px; font-weight: var(--bold); line-height: 28px; }
.ds-text-heading { font-size: 24px; font-weight: var(--heavy); line-height: 32px; }
.ds-text-display { font-size: 32px; font-weight: var(--heavy); line-height: 40px; }
.ds-text-muted { color: var(--text-muted); }
.ds-button {
  position: relative;
  display: inline-flex;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: none;
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 0 16px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
}
.ds-button::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.ds-button:hover::before, .ds-button.is-hover::before { opacity: 0.08; }
.ds-button:active::before, .ds-button.is-pressed::before { opacity: 0.16; }
.ds-button:focus-visible, .ds-button.is-focus { outline: 2px solid var(--pick); outline-offset: 2px; }
.ds-button:disabled, .ds-button.is-disabled { opacity: 0.4; cursor: default; }
.ds-button:disabled::before, .ds-button.is-disabled::before { opacity: 0; }
:is(.ds-button.is-primary, .ds-action-button) > :is(.lucide-play, .lucide-bookmark) { fill: currentColor; }
:is(.ds-button.is-primary, .ds-action-button) > .lucide-copy rect { fill: currentColor; }
.ds-button > * { position: relative; }
.ds-button.is-primary { background: var(--accent-brand); color: var(--text-on-brand); }
.ds-button.is-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.ds-button.is-ghost { background: transparent; color: var(--text-soft); }
.ds-button.is-danger { background: color-mix(in srgb, var(--grade-bad) 16%, transparent); color: var(--grade-bad); }
.ds-button.is-danger-solid { background: var(--grade-bad); color: var(--text-on-brand); }
.ds-button.is-remove { border-radius: 8px; }
.ds-button.is-remove:hover:not(:disabled) { background: var(--remove-ground); color: var(--remove-ink); }
.ds-button.is-remove::before { display: none; }
.ds-button.is-link { height: auto; overflow: visible; background: none; padding: 0; color: var(--accent-brand); font-size: inherit; line-height: inherit; }
.ds-button.is-link::before { display: none; }
.ds-button.is-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ds-button.is-xs { height: 24px; gap: 4px; border-radius: 4px; padding: 0 8px; font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.ds-button.is-sm { height: 32px; gap: 8px; padding: 0 12px; font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.ds-button.is-lg { height: 48px; border-radius: 12px; padding: 0 24px; }
.ds-button.is-pill { border-radius: 999px; }
.ds-button.is-block { width: 100%; }
.ds-button.is-icon { width: 40px; padding: 0; }
.ds-button.is-icon.is-xs { width: 24px; }
.ds-button.is-icon.is-sm { width: 32px; }
.ds-button.is-icon.is-lg { width: 48px; }
.ds-button-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ds-toolbar { display: inline-flex; align-items: center; gap: 4px; border-radius: 12px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); padding: 4px; }
.ds-toolbar.is-column { flex-direction: column; }
.ds-segmented { position: relative; display: inline-grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; border-radius: 12px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); padding: 4px; }
.ds-segment {
  position: relative;
  z-index: 1;
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
}
.ds-segment:hover { color: var(--text-strong); }
.ds-segment.is-selected, .ds-segment[data-state="active"] { background: var(--surface-raised); color: var(--text-strong); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.24); }
.ds-segmented.is-sm { border-radius: 8px; }
.ds-segmented.is-sm .ds-segment { height: 24px; border-radius: 4px; padding: 0 8px; }
.ds-segmented.is-sliding .ds-segment.is-selected, .ds-segmented.is-sliding .ds-segment[data-state="active"] { background: transparent; box-shadow: none; }
.ds-segmented-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px - (var(--n) - 1) * 4px) / var(--n));
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.24);
  transform: translateX(calc(var(--i) * (100% + 4px)));
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ds-tabs { display: flex; gap: 24px; box-shadow: inset 0 -1px 0 var(--line); }
.ds-tab {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
}
.ds-tab:hover { color: var(--text-strong); }
.ds-tab.is-selected, .ds-tab[data-state="active"] { color: var(--text-strong); box-shadow: inset 0 -2px 0 var(--pick); }
.ds-tabs.is-sm { gap: 16px; }
.ds-tabs.is-sm .ds-tab { height: 32px; font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.ds-navbar { display: flex; height: 56px; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: var(--surface-panel); padding: 0 24px; }
.ds-navbar-brand { display: flex; align-items: center; gap: 8px; color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 24px; }
.ds-navbar-brand img { width: 24px; height: 24px; }
.ds-navbar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ds-nav { display: flex; align-items: center; gap: 4px; }
.ds-nav-link {
  position: relative;
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 0 12px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
}
.ds-nav-link:hover { color: var(--text-strong); }
.ds-nav-link.is-current { background: var(--surface-raised); color: var(--text-strong); }
.ds-nav-link.is-current svg { color: var(--pick); }
.ds-sidenav { display: flex; width: 240px; flex-direction: column; gap: 4px; }
.ds-sidenav .ds-nav-link { justify-content: flex-start; border-radius: 0; padding: 0 16px; }
.ds-sidenav .ds-nav-link.is-current { background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 34%, transparent), color-mix(in srgb, var(--pick) 14%, transparent)); box-shadow: inset 2px 0 0 var(--pick); }
.ds-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12px; font-weight: 600; line-height: 16px; }
.ds-breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.ds-crumb { display: inline-flex; height: 24px; align-items: center; gap: 8px; border: none; border-radius: 4px; background: none; padding: 0 4px; color: var(--text-muted); font: inherit; cursor: pointer; }
.ds-crumb:hover { background: var(--surface-hover); color: var(--text-strong); }
.ds-crumb.is-current { color: var(--text-strong); cursor: default; }
.ds-crumb.is-current:hover { background: none; }
.ds-crumb .ds-dot { background: var(--c, var(--text-muted)); }
.ds-crumb-sep { flex-shrink: 0; color: var(--text-muted); opacity: 0.6; }
.ds-breadcrumbs.is-md { font-size: 16px; line-height: 24px; }
.ds-breadcrumbs.is-md .ds-crumb { height: 32px; padding: 0 8px; }
b, strong, th { font-weight: var(--bold); }
html,
html * { scrollbar-width: none; }
html::-webkit-scrollbar,
html *::-webkit-scrollbar { display: none; }
@media (hover: none) and (pointer: coarse) {
  .ds-scrollbars { display: none; }
}
.ds-scrollbars { position: fixed; z-index: 2000; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 320ms ease; }
.ds-scrollbars.is-shown { opacity: 1; transition-duration: 80ms; }
.ds-scrollbar { position: absolute; top: 0; left: 0; pointer-events: none; }
.ds-scrollbar[hidden] { display: none; }
.ds-scrollbar.is-y { width: 8px; }
.ds-scrollbar.is-x { height: 8px; }
.ds-scrollbars.is-shown .ds-scrollbar { pointer-events: auto; }
.ds-scrollbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-strong) 40%, transparent);
  transform: scaleX(0.75);
  transform-origin: 100% 50%;
  transition: transform 160ms ease;
}
.ds-scrollbar.is-x::before { transform: scaleY(0.75); transform-origin: 50% 100%; }
.ds-scrollbar:hover::before,
.ds-scrollbars.is-dragging .ds-scrollbar::before { background: color-mix(in srgb, var(--text-strong) 60%, transparent); transform: none; }
.ds-menu-anchor { position: relative; display: inline-flex; }
.ds-select {
  display: inline-flex;
  height: 40px;
  min-width: 160px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 12px 0 16px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
}
.ds-select svg { color: var(--text-muted); transition: transform 200ms ease; }
.ds-select.is-open { box-shadow: inset 0 0 0 2px var(--pick); }
.ds-select.is-open svg { transform: rotate(180deg); }
.ds-select.is-sm { height: 32px; min-width: 128px; padding: 0 8px 0 12px; font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.ds-select-icon { display: inline-flex; }
.ds-select.is-open .ds-select-icon svg { transform: none; }
.ds-select-value { flex: 1; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.ds-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  min-width: 200px;
  flex-direction: column;
  border-radius: 12px;
  background: var(--surface-panel);
  box-shadow: inset 0 0 0 1px var(--line), 0 4px 12px rgba(0, 0, 0, 0.24), 0 24px 56px rgba(0, 0, 0, 0.52);
  padding: 4px;
  animation: ds-menu-drop 240ms cubic-bezier(0.22, 1, 0.36, 1) both, ds-menu-show 160ms linear both;
}
.ds-menu { overscroll-behavior: contain; }
.ds-menu.is-end { right: 0; left: auto; }
.ds-menu.is-up { top: auto; bottom: calc(100% + 8px); animation-name: ds-menu-lift, ds-menu-show; }
.ds-menu.is-static { position: relative; top: 0; animation: none; }
@keyframes ds-menu-drop { from { transform: translateY(-8px); } }
@keyframes ds-menu-lift { from { transform: translateY(8px); } }
@keyframes ds-menu-show { from { opacity: 0; } }
.is-leaving { pointer-events: none; }
.ds-menu.is-leaving { animation: ds-menu-drop-out 140ms cubic-bezier(0.4, 0, 1, 1) both, ds-hide 140ms linear both; }
.ds-menu.is-up.is-leaving { animation-name: ds-menu-lift-out, ds-hide; }
@keyframes ds-menu-drop-out { to { transform: translateY(-8px); } }
@keyframes ds-menu-lift-out { to { transform: translateY(8px); } }
@keyframes ds-hide { to { opacity: 0; } }
:where(.modal-backdrop, .custom-backdrop, .news-editor-backdrop, .solutions-backdrop, .size-edit-backdrop, .admin-drawer-backdrop) { animation: ds-menu-show 160ms linear both; }
:where(.modal-backdrop, .custom-backdrop, .news-editor-backdrop, .solutions-backdrop, .size-edit-backdrop) > :where(.ds-modal, .lv-quick, .size-edit, .news-editor) {
  animation: ds-modal-in 240ms cubic-bezier(0.2, 0, 0, 1) backwards;
}
@keyframes ds-modal-in { from { transform: translateY(12px) scale(0.985); } }
.is-leaving:is(.modal-backdrop, .solutions-backdrop, .custom-backdrop, .size-edit-backdrop, .news-editor-backdrop, .admin-drawer-backdrop) { animation: ds-hide 140ms linear both; }
.is-leaving:is(.modal-backdrop, .solutions-backdrop, .custom-backdrop, .size-edit-backdrop, .news-editor-backdrop) > :is(.ds-modal, .lv-quick, .size-edit, .news-editor) {
  animation: ds-modal-out 140ms cubic-bezier(0.4, 0, 1, 1) both;
}
@keyframes ds-modal-out { to { transform: translateY(8px) scale(0.985); } }
.ds-menu-label { padding: 8px 12px 4px; color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); line-height: 16px; text-transform: uppercase; }
.ds-menu-item {
  display: flex;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 0 8px 0 12px;
  color: var(--text-normal);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.ds-menu-item:hover, .ds-menu-item.is-hover { background: var(--surface-hover); color: var(--text-strong); }
.ds-menu-item.is-selected { background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 34%, transparent), color-mix(in srgb, var(--pick) 14%, transparent)); box-shadow: inset 2px 0 0 var(--pick); color: var(--text-strong); }
.ds-menu-item:disabled, .ds-menu-item.is-disabled { opacity: 0.4; cursor: default; }
.ds-menu-item.is-danger { color: var(--grade-bad); }
.ds-menu-item > small, .ds-menu-item > .ds-kbd, .ds-menu-item > .ds-menu-check { margin-left: auto; }
.ds-menu-item > small { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.ds-menu-divider { margin: 4px -4px; border-top: 1px solid var(--line); }
.ds-kbd { display: inline-grid; min-width: 20px; height: 20px; place-items: center; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 4px; color: var(--text-muted); font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.ds-field { display: flex; flex-direction: column; gap: 8px; }
.ds-field-label { color: var(--text-soft); font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.ds-field-hint { color: var(--text-muted); font-size: 12px; line-height: 16px; }
.ds-field.is-error .ds-field-hint { color: var(--grade-bad); }
.ds-field.is-error .ds-input { box-shadow: inset 0 0 0 1px var(--grade-bad); }
.ds-input {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 12px;
  color: var(--text-strong);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  outline: none;
}
.ds-input::placeholder { color: var(--text-muted); }
.ds-input:focus { box-shadow: inset 0 0 0 2px var(--pick); }
.ds-input:disabled { opacity: 0.4; }
.ds-input.is-sm { height: 32px; padding: 0 8px; font-size: 12px; line-height: 16px; }
.ds-input.is-textarea { height: auto; min-height: 96px; resize: vertical; padding: 8px 12px; }
.ds-input-wrap { position: relative; display: flex; align-items: center; }
.ds-input-wrap > svg { position: absolute; left: 12px; color: var(--text-muted); pointer-events: none; }
.ds-input-wrap > .ds-input { padding-left: 40px; }
.ds-stepper { display: inline-flex; height: 40px; align-items: center; overflow: hidden; border-radius: 8px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); }
.ds-stepper .ds-button { border-radius: 0; background: transparent; }
.ds-stepper output { min-width: 64px; color: var(--text-strong); font-size: 16px; font-weight: var(--bold); line-height: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.ds-check { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--text-normal); font-size: 16px; line-height: 24px; cursor: pointer; }
.ds-check input { position: absolute; width: 0; height: 0; opacity: 0; }
.ds-check-box { display: grid; width: 16px; height: 16px; flex-shrink: 0; place-items: center; border-radius: 4px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); color: transparent; }
.ds-check.is-radio .ds-check-box { border-radius: 50%; }
.ds-check input:checked + .ds-check-box { background: var(--pick); box-shadow: none; color: var(--surface-page); }
.ds-check.is-radio input:checked + .ds-check-box::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--surface-page); }
.ds-check input:focus-visible + .ds-check-box { outline: 2px solid var(--pick); outline-offset: 2px; }
.ds-check input:disabled + .ds-check-box, .ds-check input:disabled ~ span { opacity: 0.4; }
.ds-switch { position: relative; width: 40px; height: 24px; flex-shrink: 0; border: none; border-radius: 999px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); padding: 0; cursor: pointer; }
.ds-switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-soft); transition: transform 200ms ease; }
.ds-switch.is-on { background: var(--pick); box-shadow: none; }
.ds-switch.is-on::after { background: var(--surface-page); transform: translateX(16px); }
.ds-switch:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.ds-range { width: 100%; height: 24px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.ds-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--range-fill) 0 calc(var(--v) * 100%), var(--surface-raised) calc(var(--v) * 100%)); }
.ds-range::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -4px; appearance: none; border-radius: 50%; background: var(--text-strong); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); }
.ds-range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--surface-raised); }
.ds-range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--range-fill); }
.ds-range::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--text-strong); }
.ds-range:focus-visible { outline: 2px solid var(--pick); outline-offset: 4px; }
.ds-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 16px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  cursor: pointer;
}
.ds-tile:hover { background: var(--surface-hover); color: var(--text-strong); }
.ds-tile.is-selected { background: color-mix(in srgb, var(--pick) 12%, transparent); box-shadow: inset 0 0 0 2px var(--pick); color: var(--text-strong); }
.ds-badge { display: inline-flex; height: 20px; align-items: center; gap: 4px; border-radius: 999px; background: var(--surface-raised); padding: 0 8px; color: var(--text-soft); font-size: 12px; font-weight: var(--bold); line-height: 16px; white-space: nowrap; }
.ds-badge.is-tag { border-radius: 4px; }
.ds-badge.is-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.ds-badge.is-count { min-width: 20px; justify-content: center; padding: 0 4px; font-variant-numeric: tabular-nums; }
.ds-badge.is-brand { background: color-mix(in srgb, var(--accent-brand) 16%, transparent); color: var(--accent-brand); }
.ds-badge.is-success { background: color-mix(in srgb, var(--grade-good) 16%, transparent); color: var(--grade-good); }
.ds-badge.is-warning { background: color-mix(in srgb, var(--grade-warn) 16%, transparent); color: var(--grade-warn); }
.ds-badge.is-danger { background: color-mix(in srgb, var(--grade-bad) 16%, transparent); color: var(--grade-bad); }
.ds-badge.is-ai { background: color-mix(in srgb, var(--ai-accent) 16%, transparent); color: var(--ai-accent); }
.ds-badge.is-pot-srp { background: color-mix(in srgb, var(--action-aggressive) 16%, transparent); color: var(--action-aggressive); }
.ds-badge.is-pot-3bp { background: color-mix(in srgb, var(--action-raise) 24%, transparent); color: var(--text-strong); }
.ds-badge.is-pot-4bp { background: color-mix(in srgb, var(--action-allin) 32%, transparent); color: var(--text-strong); }
.ds-chip { display: inline-flex; height: 32px; align-items: center; gap: 8px; border: none; border-radius: 999px; background: var(--surface-raised); padding: 0 12px; color: var(--text-soft); font-size: 12px; font-weight: var(--bold); line-height: 16px; white-space: nowrap; cursor: pointer; }
.ds-chip:hover { color: var(--text-strong); }
.ds-chip.is-sm { height: 24px; gap: 4px; padding: 0 8px; }
.ds-chip.is-selected { background: color-mix(in srgb, var(--pick) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pick) 64%, transparent); color: var(--text-strong); }
.ds-chip-remove { display: grid; width: 16px; height: 16px; place-items: center; margin-right: -4px; border-radius: 50%; color: var(--text-muted); }
.ds-chip-remove:hover { color: var(--text-strong); }
.ds-tooltip { display: inline-block; max-width: 280px; border-radius: 8px; background: var(--surface-panel); box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.4); padding: 8px 12px; color: var(--text-normal); font-size: 12px; line-height: 16px; }
.ds-tooltip b { color: var(--text-strong); }
.ds-card { display: flex; min-width: 0; flex-direction: column; border-radius: 12px; background: var(--surface-panel); box-shadow: inset 0 0 0 1px var(--line); }
.ds-card-head { display: flex; min-height: 48px; align-items: center; gap: 12px; padding: 0 16px; }
.ds-card-title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-strong); font-size: 16px; font-weight: var(--bold); line-height: 24px; }
.ds-card-meta { color: var(--text-muted); font-size: 12px; line-height: 16px; }
.ds-card-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ds-card-body { padding: 0 16px 16px; }
.ds-card.is-compact { border-radius: 8px; }
.ds-card.is-compact .ds-card-head { min-height: 40px; padding: 0 12px; }
.ds-card.is-compact .ds-card-title { font-size: 12px; font-weight: var(--heavy); line-height: 16px; }
.ds-card.is-compact .ds-card-body { padding: 0 12px 12px; }
.ds-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 16px 0; }
.ds-row-text { display: flex; min-width: 0; flex-direction: column; gap: 4px; overflow-wrap: break-word; hyphens: auto; }
.ds-row-text b { color: var(--text-strong); font-size: 16px; font-weight: 600; line-height: 24px; }
.ds-row-text small { color: var(--text-muted); font-size: 12px; line-height: 16px; }
.ds-list { display: flex; flex-direction: column; }
.ds-list-item {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  padding: 0 16px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-align: left;
  cursor: pointer;
}
.ds-list-item:hover, .ds-list-item.is-hover { background: var(--surface-hover); color: var(--text-strong); }
.ds-list-item.is-selected { background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 34%, transparent), color-mix(in srgb, var(--pick) 14%, transparent)); box-shadow: inset 2px 0 0 var(--pick); color: var(--text-strong); }
.ds-list-item:disabled, .ds-list-item.is-disabled { opacity: 0.4; cursor: default; }
.ds-list-item > small { margin-left: auto; color: var(--text-muted); }
.ds-list.is-dense .ds-list-item { min-height: 32px; padding: 0 12px; }
.ds-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.ds-table th { height: 32px; border-bottom: 1px solid var(--line); padding: 0 12px; color: var(--text-muted); font-weight: var(--heavy); text-align: left; text-transform: uppercase; }
.ds-table td { height: 40px; border-bottom: 1px solid var(--line); padding: 0 12px; color: var(--text-soft); }
.ds-table .is-num { text-align: right; }
.ds-table th button { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; padding: 0; color: inherit; font: inherit; text-transform: inherit; cursor: pointer; }
.card-text { white-space: nowrap; }
:is(.card-rank, .card-suit) { display: inline-block; font-style: normal; text-align: center; }
.card-rank { width: 1.25ch; }
.card-suit { width: 1.3ch; }
.ds-table th button:hover, .ds-table th button.is-sorted { color: var(--text-strong); }
.ds-table tbody tr { cursor: pointer; }
.ds-table tbody tr:hover td { background: var(--surface-hover); }
.ds-table tr.is-selected td { background: color-mix(in srgb, var(--pick) 14%, transparent); color: var(--text-strong); }
.ds-table tr.is-selected td:first-child { box-shadow: inset 2px 0 0 var(--pick); }
.ds-table.is-dense td { height: 32px; }
.ds-modal { display: flex; width: 480px; max-width: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-panel); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.56); }
.ds-modal.is-wide { width: 640px; }
.ds-modal-head { display: flex; height: 56px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 0 12px 0 24px; }
.ds-modal-head h3 { margin: 0; color: var(--text-strong); font-size: 20px; font-weight: var(--bold); line-height: 28px; }
.ds-modal-head .ds-button { margin-left: auto; }
.ds-modal-body { padding: 24px; color: var(--text-soft); font-size: 16px; line-height: 24px; }
.ds-modal-foot { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding: 16px 24px; }
.ds-modal-scroll { display: contents; }
.ds-backdrop { display: grid; place-items: center; border-radius: 16px; background: rgba(0, 0, 0, 0.72); padding: 32px; }
@media (max-width: 759px) {
  .modal-backdrop:has(> .ds-modal) { align-items: flex-end; padding: 56px 0 0; }
  .modal-backdrop > .ds-modal.ds-modal {
    width: 100%; max-width: none; max-height: 100%; overflow-y: auto; border-right: none; border-bottom: none; border-left: none;
    border-radius: 16px 16px 0 0; overscroll-behavior: contain;
    animation: ds-sheet-in 280ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .modal-backdrop > .ds-modal.ds-modal:has(> .ds-modal-scroll) { overflow: hidden; }
  .modal-backdrop > .ds-modal > .ds-modal-scroll {
    display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; gap: inherit; overflow-y: auto; overscroll-behavior: contain;
  }
  .modal-backdrop > .ds-modal.ds-modal:not(:has(> .ds-modal-foot, > .ds-modal-scroll)) { padding-bottom: env(safe-area-inset-bottom); }
  .modal-backdrop > .ds-modal > .ds-modal-scroll:last-child { padding-bottom: env(safe-area-inset-bottom); }
  .modal-backdrop > .ds-modal.ds-modal:not(:has(> .ds-modal-scroll)):has(> .ds-modal-head) { overscroll-behavior: none; }
  .modal-backdrop > .ds-modal > .ds-modal-head.ds-modal-head { position: sticky; z-index: 3; top: 0; flex: none; background: inherit; padding-left: 16px; }
  .modal-backdrop > .ds-modal > .ds-modal-foot.ds-modal-foot {
    position: sticky; z-index: 3; bottom: 0; flex: none; margin-top: auto; background: inherit; padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }
  .modal-backdrop > :is(.ds-modal, .ds-modal > .ds-modal-scroll) > .ds-modal-body { padding: 16px; }
  .modal-backdrop.is-leaving > .ds-modal.ds-modal { animation: ds-sheet-out 140ms cubic-bezier(0.4, 0, 1, 1) both; }
  .is-leaving > .ds-modal.ds-modal.is-pulled { animation: ds-sheet-out 140ms cubic-bezier(0.4, 0, 1, 1) both; }
}
@keyframes ds-sheet-in { from { transform: translateY(100%); } }
@keyframes ds-sheet-out { to { transform: translateY(100%); } }
.ds-banner {
  --c: var(--accent-brand);
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c) 12%, var(--surface-panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
  padding: 8px 16px;
  color: var(--text-normal);
  font-size: 12px;
  line-height: 16px;
}
.ds-banner > svg { flex-shrink: 0; color: var(--c); }
.ds-banner > .ds-button { margin-left: auto; }
.ds-banner.is-info { --c: var(--neural-text); }
.ds-banner.is-success { --c: var(--grade-good); }
.ds-banner.is-warning { --c: var(--grade-warn); }
.ds-banner.is-danger { --c: var(--grade-bad); }
.ds-toast { display: inline-flex; align-items: center; gap: 12px; border-radius: 12px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line), 0 16px 32px rgba(0, 0, 0, 0.4); padding: 12px 16px; color: var(--text-normal); font-size: 12px; line-height: 16px; }
.ds-toast > svg { flex-shrink: 0; color: var(--grade-good); }
.ds-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; text-align: center; }
.ds-empty-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; background: var(--surface-raised); color: var(--text-muted); }
.ds-empty b { color: var(--text-strong); font-size: 16px; line-height: 24px; }
.ds-empty p { max-width: 320px; margin: 0; color: var(--text-muted); font-size: 12px; line-height: 16px; }
.ds-note { color: var(--text-muted); font-size: 12px; line-height: 16px; }
.ds-error { color: var(--grade-bad); }
.ds-skeleton { position: relative; display: block; height: 12px; overflow: hidden; border-radius: 4px; background: var(--surface-raised); }
.ds-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--skeleton-sheen), transparent); transform: translateX(-100%); animation: ds-sheen 1100ms ease-in-out infinite; }
.ds-skeleton.is-title { width: 40%; height: 16px; }
.ds-skeleton.is-long { width: 88%; }
.ds-skeleton.is-short { width: 56%; }
.ds-skeleton.is-block { height: 64px; border-radius: 8px; }
@keyframes ds-sheen { to { transform: translateX(100%); } }
.ds-spinner { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; border: 2px solid color-mix(in srgb, currentColor 24%, transparent); border-top-color: currentColor; border-radius: 50%; animation: ds-spin 800ms linear infinite; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
.ds-node-card { display: flex; width: 120px; min-height: 168px; flex-direction: column; border-radius: 8px; background: var(--surface-panel); box-shadow: inset 0 0 0 1px var(--line); padding: 8px; }
.ds-node-card.is-focused { background: var(--surface-raised); box-shadow: inset 0 0 0 2px var(--pick); }
.ds-node-card.is-next { opacity: 0.64; }
.ds-node-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ds-node-head b { color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 24px; }
.ds-node-head small, .ds-node-pot { color: var(--text-muted); font-size: 12px; line-height: 16px; }
.ds-node-pot { margin-bottom: 4px; }
.ds-node-action { display: flex; height: 24px; flex-shrink: 0; align-items: center; gap: 8px; margin: 0 -8px; padding: 0 8px; color: var(--text-soft); font-size: 12px; font-weight: 600; line-height: 16px; }
.ds-node-action .ds-dot { border-radius: 4px; background: var(--c); }
.ds-node-action:hover { background: var(--surface-hover); }
.ds-node-action.is-selected { background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 34%, transparent), color-mix(in srgb, var(--pick) 14%, transparent)); box-shadow: inset 2px 0 0 var(--pick); color: var(--text-strong); }
.ds-node-backs { display: flex; flex: 1; align-items: center; justify-content: center; gap: 4px; }
.ds-action-card { position: relative; display: flex; min-width: 0; flex-direction: column; gap: 4px; overflow: hidden; border: none; border-radius: 8px; background: var(--surface-raised); padding: 12px; color: var(--text-strong); text-align: left; cursor: pointer; }
.ds-action-card > :not(.ds-action-card-paint) { position: relative; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.ds-action-card-paint { position: absolute; inset: 0; background: var(--c); }
.ds-action-card.is-on { box-shadow: 0 0 0 2px var(--surface-panel), 0 0 0 4px var(--pick); }
.ds-action-card.is-faded { opacity: 0.48; }
.ds-action-card b { font-size: 12px; font-weight: var(--heavy); line-height: 16px; }
.ds-action-card strong { font-size: 24px; font-weight: var(--black); line-height: 32px; font-variant-numeric: tabular-nums; }
.ds-action-card small { font-size: 12px; line-height: 16px; }
.ds-action-card-track { display: block; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(0, 0, 0, 0.28); }
.ds-action-card-track i { display: block; height: 100%; border-radius: 999px; background: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .ds-action-card-paint {
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0 4px, rgba(0, 0, 0, 0.32) 4px);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0 4px, rgba(0, 0, 0, 0.32) 4px);
}
.ds-action-button { display: inline-flex; height: 48px; min-width: 120px; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 8px; background: var(--c); padding: 0 24px; color: var(--text-on-brand); font-size: 16px; font-weight: var(--black); line-height: 24px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); cursor: pointer; }
.ds-action-button:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.ds-cells { display: grid; grid-template-columns: repeat(13, 40px); gap: 4px; }
.ds-cell { position: relative; height: 40px; overflow: hidden; border-radius: 4px; background: var(--surface-panel); cursor: pointer; }
.ds-cell-mix { position: absolute; inset: 0; display: flex; }
.ds-cell em { position: absolute; z-index: 1; top: 4px; left: 4px; color: var(--text-strong); font-size: 12px; font-style: normal; font-weight: var(--black); line-height: 16px; text-shadow: 0 0 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.9); }
.ds-cell.is-picked::after { content: ""; position: absolute; z-index: 2; inset: 0; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--pick); }
.ds-combo { position: relative; display: flex; width: 96px; height: 64px; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: 8px; background: var(--surface-raised); padding: 8px; }
.ds-combo-band { position: absolute; right: 0; bottom: 0; left: 0; display: flex; height: 24px; }
.ds-combo b { position: relative; color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 24px; }
.ds-card-xs { --card-width: 20px; --card-height: 28px; }
.ds-card-sm { --card-width: 24px; --card-height: 32px; }
.ds-card-md { --card-width: 32px; --card-height: 44px; }
.ds-card-lg { --card-width: 44px; --card-height: 60px; }
.ds-card-xl { --card-width: 60px; --card-height: 80px; }
.ds-elevation-1 { box-shadow: inset 0 0 0 1px var(--line), 0 4px 8px rgba(0, 0, 0, 0.24); }
.ds-elevation-2 { box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.4); }
.ds-elevation-3 { box-shadow: inset 0 0 0 1px var(--line), 0 16px 48px rgba(0, 0, 0, 0.48); }
.ds-elevation-4 { box-shadow: inset 0 0 0 1px var(--line), 0 24px 64px rgba(0, 0, 0, 0.56); }
.ds-input.is-focus { box-shadow: inset 0 0 0 2px var(--pick); }

.study-page {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--text-normal);
}
.study-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px 16px;
}
.study-columns {
  display: grid;
  grid-template-columns: minmax(0, 67fr) minmax(0, 45fr);
  align-items: stretch;
  min-width: 0;
  gap: 12px;
}
.matrix-panel {
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.matrix-error {
  display: grid;
  min-height: 540px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #ff5d5d;
}
.study-right {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  height: 0;
  min-height: max(360px, 100%);
}
.study-right.is-stale {
  opacity: 0.55;
  pointer-events: none;
}
.study-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  min-height: 100vh;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line);
  background: var(--surface-rail);
  padding: 16px;
}
.compare-card {
  animation: compare-card-in 220ms cubic-bezier(0.2, 0, 0, 1);
}
.compare-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@keyframes compare-card-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.compare-card-title svg {
  color: var(--accent-brand);
}
.compare-card-help {
  display: inline-flex;
  margin-left: auto;
  color: var(--text-soft);
  cursor: help;
}
.compare-card-columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}
.compare-card-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
}
.compare-card-head {
  padding: 0;
  font-size: 12px;
  font-weight: var(--bold);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-soft);
}
.compare-card-column .node-action {
  min-width: 0;
  margin-inline: 0;
  border-radius: 0;
}
.compare-card-mark {
  flex: none;
  color: var(--accent-brand);
}
.compare-card-skeleton {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}
.compare-card-skeleton-swatch,
.compare-card-skeleton-line {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-raised);
}
.compare-card-skeleton-swatch {
  flex: none;
  width: 8px;
  height: 8px;
}
.compare-card-skeleton-line {
  width: 58%;
  height: 8px;
}
.compare-card-skeleton:nth-child(odd) .compare-card-skeleton-line {
  width: 44%;
}
.compare-card-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compare-card-link {
  position: absolute;
  top: 0;
  left: calc(50% - 10px);
  overflow: visible;
  pointer-events: none;
}
.compare-card-link path {
  fill: none;
  stroke: var(--accent-brand);
  stroke-width: 2px;
}
.compare-card-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.compare-card-scale {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
}
.compare-card-scale i {
  flex: 1;
}
.compare-card-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}
.recent-head {
  width: 100%;
  justify-content: space-between;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.recent-head:focus-visible {
  outline: 2px solid var(--pick);
  outline-offset: -2px;
}
.recent-chevron {
  color: var(--text-muted);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.recent-head:hover .recent-chevron {
  color: var(--text-strong);
}
.recent-card.is-closing .recent-chevron,
.recent-card.is-closed .recent-chevron {
  transform: rotate(-90deg);
}
.recent-body {
  overflow: hidden;
}
.recent-list {
  max-height: 272px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.recent-row {
  width: calc(100% + 24px);
  height: 52px;
  flex: none;
  gap: 12px;
  margin: 0 -12px;
  border-radius: 0;
  padding: 0 12px;
}
.recent-lead {
  width: 64px;
  flex-shrink: 0;
}
.recent-preflop {
  display: flex;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
}
.recent-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.recent-label {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  color: var(--text-normal);
  font-weight: var(--bold);
  line-height: 16px;
}
.recent-row:hover .recent-label {
  color: var(--text-strong);
}
.recent-game {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-ago {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.recent-meta {
  overflow: hidden;
  color: var(--text-muted);
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playing-card--recent {
  --card-width: 20px;
  --card-height: 28px;
}
.config-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 12px;
}
.config-card.is-in-nav {
  grid-column: 1 / -1;
  margin: 0 -4px;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px 12px 8px;
}
.config-title {
  padding-right: 24px;
  font-size: 16px;
  font-weight: var(--black);
  line-height: 1.2;
  color: rgb(var(--ink) / 0.88);
}
.config-info {
  position: absolute;
  z-index: 20;
  top: 8px;
  right: 8px;
  display: inline-flex;
  color: var(--text-muted);
  outline: none;
  cursor: help;
}
.config-info:hover,
.config-info:focus-visible {
  color: var(--accent-brand);
}
.config-info-pop {
  display: flex;
  width: 252px;
  flex-direction: column;
  gap: 4px;
}
.config-info-line strong {
  font-weight: 600;
  color: var(--text-normal);
}
.config-info-line.is-label {
  font-weight: var(--bold);
  color: var(--text-normal);
}
.config-bullets {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.config-bullet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-soft);
}
.config-bullet.is-wrap { overflow: visible; white-space: normal; }
.config-bullet.is-warning { color: var(--grade-warn); }
.config-payouts { width: 100%; margin-top: 4px; border-collapse: collapse; color: var(--text-soft); font-size: 12px; font-weight: 600; line-height: 16px; font-variant-numeric: tabular-nums; }
.config-payouts th { padding: 0 0 4px; color: var(--text-muted); font-weight: var(--bold); text-align: left; }
.config-payouts td { padding: 0; }
.config-payouts :is(th, td):last-child { text-align: right; }
.config-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.config-skeleton-title,
.config-skeleton-line {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-raised);
}
.config-skeleton-title {
  width: 108px;
  height: 16px;
  margin-bottom: 4px;
}
.config-skeleton-line {
  width: 62%;
  height: 8px;
}
.config-skeleton-line:nth-child(odd) {
  width: 48%;
}
.config-skeleton-line.is-admin {
  width: 82%;
  height: 8px;
  margin: 4px 0;
}
.config-skeleton-title::before,
.config-skeleton-line::before,
.compare-card-skeleton-swatch::before,
.compare-card-skeleton-line::before {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -65%;
  width: 60%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--skeleton-sheen), transparent);
  animation: node-loading-row-sheen 900ms ease-in-out infinite;
}
.config-change {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.config-change-button {
  flex: 1;
  min-width: 0;
}
.rail-tools {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  justify-items: stretch;
  border-radius: 8px;
  background: none;
  box-shadow: none;
  padding: 0;
}
.rail-tools > .rail-tool-button.ds-button.is-icon,
.rail-tools > .rail-tool-wrap > .rail-tool-button.ds-button.is-icon { width: 100%; }
.rail-tools > .rail-tool-wrap { width: 100%; }
.rail-tool-button {
  isolation: isolate;
  transition: transform 120ms ease;
}
.rail-tool-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(70% 90% at 50% 50%, color-mix(in srgb, var(--accent-brand) 16%, transparent) 0%, color-mix(in srgb, var(--accent-brand) 5%, transparent) 60%, color-mix(in srgb, var(--accent-brand) 0%, transparent) 100%),
    var(--surface-hover);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rail-tool-button svg {
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 200ms ease;
}
.rail-tool-button:hover:not(:disabled),
.rail-tool-button:focus-visible:not(:disabled) { color: var(--text-strong); }
.rail-tool-button:hover:not(:disabled)::before,
.rail-tool-button:focus-visible:not(:disabled)::before { opacity: 1; transform: none; }
.rail-tool-button:hover:not(:disabled) svg,
.rail-tool-button:focus-visible:not(:disabled) svg { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent-brand) 55%, transparent)); }
.rail-tool-button.is-back:hover:not(:disabled) svg,
.rail-tool-button.is-back:focus-visible:not(:disabled) svg { transform: translateX(-2px); }
.rail-tool-button.is-forward:hover:not(:disabled) svg,
.rail-tool-button.is-forward:focus-visible:not(:disabled) svg { transform: translateX(2px); }
.rail-tool-button.is-save:hover:not(:disabled) svg,
.rail-tool-button.is-save:focus-visible:not(:disabled) svg { transform: translateY(-2px); }
.rail-tool-button.is-saved:hover:not(:disabled) svg,
.rail-tool-button.is-saved:focus-visible:not(:disabled) svg { transform: scale(1.12); }
.rail-tool-button.is-practice:hover:not(:disabled) svg,
.rail-tool-button.is-practice:focus-visible:not(:disabled) svg { transform: rotate(-10deg) scale(1.06); }
.rail-tool-button.is-reset:hover:not(:disabled) svg,
.rail-tool-button.is-reset:focus-visible:not(:disabled) svg { transform: rotate(-60deg); }
.rail-tool-button:active:not(:disabled) { transform: scale(0.92); }
.toolbar-icon.is-copied {
  background: #2f4d33;
  color: #8fe39a;
}
.range-filter-trigger.is-selected {
  background: color-mix(in srgb, var(--pick) 16%, transparent);
  color: var(--pick);
}
.picker-panel {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 16px;
}
.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.picker-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: var(--heavy);
  color: var(--text-normal);
}
.picker-subtitle {
  margin-top: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.picker-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 8px;
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}
.flop-tile {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.flop-tile:hover {
  background: var(--surface-raised);
}
.flop-tile.is-selected {
  border-color: var(--pick);
  background: var(--surface-raised);
}
.flop-tile .card-chip {
  width: 28px;
  height: 32px;
}
.flop-tile-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.chance-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chance-row {
  display: grid;
  grid-template-columns: 24px repeat(4, 40px);
  align-items: center;
  gap: 8px;
}
.chance-rank {
  font-size: 12px;
  font-weight: var(--black);
  color: var(--text-muted);
}
.chance-card-button.is-selected {
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--pick);
}
.chance-card-button .card-chip {
  width: 28px;
  height: 32px;
  font-size: 12px;
}
.matrix {
  position: relative;
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  grid-template-rows: repeat(13, minmax(0, 1fr));
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 620;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #202020;
}
.matrix-placeholder {
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 620;
  max-width: 100%;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.matrix-placeholder.is-error {
  font-weight: 600;
  color: #ff5d5d;
}
.matrix-cell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: none;
  border-left: 1px solid #333;
  border-bottom: 1px solid #333;
  background: var(--surface-panel);
  padding: 4px;
  text-align: left;
  outline: none;
  cursor: default;
  transition: filter 300ms ease, transform 300ms ease;
}
.matrix-cell:disabled {
  outline: none;
  filter: none;
  cursor: default;
}
.matrix-cell.has-reach {
  cursor: pointer;
}
.matrix-cell.has-reach:hover {
  z-index: 10;
  filter: brightness(0.78);
}
.matrix-cell.is-no-reach,
.matrix-cell.is-low-reach {
  background: #1f1f1f;
}
.matrix-cell.is-low-reach .matrix-cell-label {
  color: rgb(var(--ink) / 0.26);
  text-shadow: none;
}
.matrix-cell.is-faint .matrix-cell-label,
.matrix-cell.is-faint .matrix-cell-metric {
  color: var(--text-strong);
}
.matrix-cell.is-active {
  z-index: 10;
  filter: brightness(0.78);
}
.matrix-cell.is-selected {
  z-index: 20;
  border-color: transparent;
}
.matrix-cell-label {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-strong);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.matrix-cell-label.is-compact {
  inset: auto auto auto 0;
  top: 4px;
  left: 4px;
  display: block;
  font-size: 16px;
}
.matrix-panel .matrix-cell-label {
  font-size: clamp(12px, 2cqw, 20px);
}
.matrix-cell-lock {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 11;
  color: var(--accent-brand);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
  pointer-events: none;
}
.matrix-cell-label.is-dim {
  color: rgb(var(--ink) / 0.32);
}
.matrix-cell-metric {
  position: absolute;
  z-index: 10;
  right: 4px;
  bottom: 4px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-strong);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.matrix-panel .matrix-cell-metric {
  font-size: clamp(12px, 1.6cqw, 16px);
}
.matrix-panel .matrix-placeholder,
.matrix-panel .matrix-error,
.matrix-panel .matrix-loader-title {
  font-size: clamp(12px, 1.8cqw, 20px);
}
.matrix-panel .matrix-loader-sub {
  font-size: clamp(12px, 1.6cqw, 16px);
}
.matrix-cell-selection {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 30;
  border: 2px solid var(--pick);
}
.matrix-cross,
.matrix-glow { display: none; }
.matrix-lifts { display: none; }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix { overflow: visible; isolation: isolate; }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) :is(.matrix-cross, .matrix-glow) {
  position: absolute;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: transform 420ms cubic-bezier(0.22, 0.8, 0.24, 1), opacity 240ms ease;
}
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cross {
  z-index: -1;
  border-radius: 1.5px;
  background: color-mix(in srgb, var(--matrix-lit) 28%, transparent);
}
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cross.is-row {
  top: -1.5px;
  right: 2.5px;
  left: 2.5px;
  height: calc((100% - 22px) / 13 + 3px);
  border-radius:
    clamp(1.5px, var(--theme-radius-cell) + 1px - var(--r, 0) * 99px, var(--theme-radius-cell) + 1px)
    clamp(1.5px, var(--theme-radius-cell) + 1px - var(--r, 0) * 99px, var(--theme-radius-cell) + 1px)
    clamp(1.5px, var(--theme-radius-cell) + 1px - (12 - var(--r, 0)) * 99px, var(--theme-radius-cell) + 1px)
    clamp(1.5px, var(--theme-radius-cell) + 1px - (12 - var(--r, 0)) * 99px, var(--theme-radius-cell) + 1px);
  transform: translateY(calc(var(--r, 0) * (100% - 1.5px)));
}
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cross.is-col {
  top: -1.5px;
  bottom: 2.5px;
  left: 2.5px;
  width: calc((100% - 26px) / 13 + 3px);
  border-radius:
    clamp(1.5px, var(--theme-radius-cell) + 1px - var(--c, 0) * 99px, var(--theme-radius-cell) + 1px)
    clamp(1.5px, var(--theme-radius-cell) + 1px - (12 - var(--c, 0)) * 99px, var(--theme-radius-cell) + 1px)
    clamp(1.5px, var(--theme-radius-cell) + 1px - (12 - var(--c, 0)) * 99px, var(--theme-radius-cell) + 1px)
    clamp(1.5px, var(--theme-radius-cell) + 1px - var(--c, 0) * 99px, var(--theme-radius-cell) + 1px);
  transform: translateX(calc(var(--c, 0) * (100% - 1.5px)));
}
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-glow {
  z-index: 5;
  top: 0;
  left: 4px;
  width: calc((100% - 26px) / 13);
  height: calc((100% - 22px) / 13);
  border-radius: calc(var(--theme-radius-cell) + 4px);
  box-shadow: 0 0 24px 4px color-mix(in srgb, var(--matrix-lit) 45%, transparent);
  transform: translate(calc(var(--c, 0) * (100% + 1.5px)), calc(var(--r, 0) * (100% + 1.5px)));
  transition: transform 320ms cubic-bezier(0.22, 0.8, 0.24, 1), opacity 240ms ease;
}
.study-page.is-gap-1 :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cross.is-row { top: -1px; right: 3px; left: 3px; height: calc((100% - 16px) / 13 + 2px); transform: translateY(calc(var(--r, 0) * (100% - 1px))); }
.study-page.is-gap-1 :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cross.is-col { top: -1px; bottom: 3px; left: 3px; width: calc((100% - 20px) / 13 + 2px); transform: translateX(calc(var(--c, 0) * (100% - 1px))); }
.study-page.is-gap-1 :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-glow { width: calc((100% - 20px) / 13); height: calc((100% - 16px) / 13); transform: translate(calc(var(--c, 0) * (100% + 1px)), calc(var(--r, 0) * (100% + 1px))); }
.study-page.is-gap-2 :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cross.is-row { top: -2px; right: 2px; left: 2px; height: calc((100% - 28px) / 13 + 4px); transform: translateY(calc(var(--r, 0) * (100% - 2px))); }
.study-page.is-gap-2 :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cross.is-col { top: -2px; bottom: 2px; left: 2px; width: calc((100% - 32px) / 13 + 4px); transform: translateX(calc(var(--c, 0) * (100% - 2px))); }
.study-page.is-gap-2 :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-glow { width: calc((100% - 32px) / 13); height: calc((100% - 28px) / 13); transform: translate(calc(var(--c, 0) * (100% + 2px)), calc(var(--r, 0) * (100% + 2px))); }
.study-page.is-cells-tiles :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cross { border-radius: calc(var(--theme-radius-cell) + 2px); }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix.is-canvas:not(:is(.is-cells-tiles, .is-gap-2) .matrix) > .matrix-cross.is-row { top: -1px; right: 3px; left: 3px; height: calc((100% - 4px) / 13 + 2px); transform: translateY(calc(var(--r, 0) * (100% - 2px))); }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix.is-canvas:not(:is(.is-cells-tiles, .is-gap-2) .matrix) > .matrix-cross.is-col { top: -1px; bottom: 3px; left: 3px; width: calc((100% - 8px) / 13 + 2px); transform: translateX(calc(var(--c, 0) * (100% - 2px))); }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix.is-canvas:not(:is(.is-cells-tiles, .is-gap-2) .matrix) > .matrix-glow { width: calc((100% - 8px) / 13); height: calc((100% - 4px) / 13); transform: translate(calc(var(--c, 0) * 100%), calc(var(--r, 0) * 100%)); }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix[data-pointing] .matrix-cross { opacity: 1; }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix[data-pointing="hand"] .matrix-glow { opacity: 0.5; }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell { transform: scale(1); transition: filter 200ms ease; }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell::after {
  content: "";
  position: absolute;
  z-index: 30;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--theme-ring) var(--matrix-lit);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix > .matrix-cell.has-reach:is(:hover, :focus-visible, .is-selected) { filter: none; outline: none; }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-lifts { position: absolute; z-index: 21; display: block; inset: 0; pointer-events: none; }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-lift {
  position: absolute;
  top: calc(var(--r, 0) * ((100% - 22px) / 13 + 1.5px));
  left: calc(4px + var(--c, 0) * ((100% - 26px) / 13 + 1.5px));
  width: calc((100% - 26px) / 13);
  height: calc((100% - 22px) / 13);
  opacity: 0;
  transform: scale(1);
  will-change: transform, opacity;
  transition: transform 320ms cubic-bezier(0.22, 0.8, 0.24, 1), opacity 100ms linear 220ms;
}
.study-page.is-gap-1 :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-lift {
  top: calc(var(--r, 0) * ((100% - 16px) / 13 + 1px));
  left: calc(4px + var(--c, 0) * ((100% - 20px) / 13 + 1px));
  width: calc((100% - 20px) / 13);
  height: calc((100% - 16px) / 13);
}
.study-page.is-gap-2 :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-lift {
  top: calc(var(--r, 0) * ((100% - 28px) / 13 + 2px));
  left: calc(4px + var(--c, 0) * ((100% - 32px) / 13 + 2px));
  width: calc((100% - 32px) / 13);
  height: calc((100% - 28px) / 13);
}
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-lift.is-up { z-index: 1; opacity: 1; transform: scale(1.24); transition: transform 320ms cubic-bezier(0.22, 0.8, 0.24, 1), opacity 60ms linear; }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-lift.is-picked { z-index: 2; }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-lift > .matrix-cell { position: absolute; inset: 0; transform: none; transition: filter 200ms ease; }
:is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-lift > .matrix-cell.is-lifted::after { opacity: 1; }
.cell-fill {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cell-fill-band {
  display: flex;
  width: 100%;
  min-height: 1px;
  flex-shrink: 0;
}
.matrix-skeleton-cell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #272727;
}
.matrix-skeleton-label {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 28px;
  height: 12px;
  border-radius: 4px;
  background: rgb(var(--ink) / 0.08);
}
.matrix-skeleton-metric {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 32px;
  height: 12px;
  border-radius: 4px;
  background: rgb(var(--ink) / 0.06);
}
.matrix-wave { display: none; }
.matrix-wave > i { border-radius: 2px; background: #ffffff; opacity: 0; animation: matrix-wave 1800ms ease-in-out infinite; animation-delay: calc((var(--r) + var(--c)) * 55ms); }
@keyframes matrix-wave {
  0%, 100% { opacity: 0; }
  30% { opacity: 0.3; }
  60% { opacity: 0; }
}
.matrix-wave.is-leaving,
.matrix-loading-veil.is-leaving { animation: matrix-loader-out 240ms cubic-bezier(0.4, 0, 0.2, 1) both; pointer-events: none; }
@keyframes matrix-loader-out {
  to { opacity: 0; }
}
.matrix-loading-veil {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 20, 0.42);
}
.matrix-loader-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-brand) 28%, transparent);
  border-radius: 8px;
  background: rgba(37, 37, 37, 0.95);
  padding: 12px 16px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}
.matrix-loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface-rail);
}
.matrix-loader-ring {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--accent-brand) 25%, transparent);
  border-radius: 999px;
}
.matrix-loader-text {
  display: flex;
  flex-direction: column;
}
.matrix-loader-title {
  font-size: 12px;
  font-weight: 600;
  color: rgb(var(--ink) / 0.88);
}
.matrix-loader-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.matrix-loader-spinner {
  color: var(--accent-brand);
  animation: matrix-spin 1s linear infinite;
}
@keyframes matrix-spin {
  to { transform: rotate(360deg); }
}
.matrix-range-fill {
  width: 100%;
  background: #f0a334;
}
.solution-variant-trigger { min-width: 64px; }
.solution-variant-menu { width: 224px; }
.solution-variant-option { position: relative; height: auto; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 32px 8px 12px; white-space: normal; }
.solution-variant-option > small { margin-left: 0; }
.solution-variant-option > .ds-menu-check { position: absolute; top: 8px; right: 8px; }
@media (max-width: 1800px) {
  .study-columns { grid-template-columns: minmax(0, 61.4fr) minmax(0, 50.6fr); }
}
.matrix.is-summary-preview .matrix-cell:not(.is-summary-focus) { filter: brightness(0.3); }
.matrix.is-summary-preview .matrix-cell.is-summary-focus { filter: brightness(1); }
.matrix-hand-drawer {
  position: absolute;
  z-index: 25;
  width: 224px;
  max-width: 48%;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 28, 28, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  color: var(--text-normal);
  animation:
    hand-drawer-open 220ms cubic-bezier(0.18, 0.78, 0.28, 1) both,
    hand-drawer-fade 180ms linear both;
}
.matrix-hand-drawer.is-left {
  animation:
    hand-drawer-open-left 220ms cubic-bezier(0.18, 0.78, 0.28, 1) both,
    hand-drawer-fade 180ms linear both;
}
@keyframes hand-drawer-open {
  from { transform: translateX(-18px); }
  to { transform: translateX(0); }
}
@keyframes hand-drawer-open-left {
  from { transform: translateX(18px); }
  to { transform: translateX(0); }
}
@keyframes hand-drawer-open-under {
  from { transform: translateY(-8px); }
  to { transform: translateY(0); }
}
@keyframes hand-drawer-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.matrix-hand-drawer.is-closing {
  pointer-events: none;
  animation:
    hand-drawer-close 160ms cubic-bezier(0.4, 0, 1, 1) both,
    hand-drawer-unfade 160ms linear both;
}
.matrix-hand-drawer.is-left.is-closing {
  animation:
    hand-drawer-close-left 160ms cubic-bezier(0.4, 0, 1, 1) both,
    hand-drawer-unfade 160ms linear both;
}
@keyframes hand-drawer-close {
  from { transform: translateX(0); }
  to { transform: translateX(-12px); }
}
@keyframes hand-drawer-close-left {
  from { transform: translateX(0); }
  to { transform: translateX(12px); }
}
@keyframes hand-drawer-unfade {
  from { opacity: 1; }
  to { opacity: 0; }
}
.hand-drawer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.hand-drawer-head > :is(.hand-drawer-label, .hand-drawer-range) { align-self: baseline; line-height: 24px; }
.hand-drawer-label {
  font-size: 16px;
  font-weight: var(--black);
  line-height: 1;
  color: var(--text-strong);
}
.hand-drawer-range {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-muted);
}
.hand-drawer-rows {
  display: flex;
  flex-direction: column;
}
.hand-drawer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-inline: -8px;
  padding: 4px 8px;
}
.hand-drawer-row:hover {
  background: #404040;
}
.hand-drawer-row.is-unused {
  opacity: 0.45;
}
.hand-drawer-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-soft);
}
.hand-drawer-values {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.hand-drawer-values strong {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.hand-drawer-values em {
  font-size: 12px;
  font-style: normal;
  color: var(--text-muted);
}
@media (min-height: 700px) {
  .study-page:not(.is-ranges) {
    height: 100vh;
    overflow: hidden;
  }
  .study-page:not(.is-ranges) .study-rail {
    overflow-y: auto;
  }
  .study-page:not(.is-ranges) .study-main {
    min-height: 0;
  }
  .study-page:not(.is-ranges) .study-columns {
    flex: 1;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }
  .study-page:not(.is-ranges) .matrix-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }
  .study-page:not(.is-ranges) .matrix,
  .study-page:not(.is-ranges) .matrix-placeholder,
  .study-page:not(.is-ranges) .matrix-error {
    flex: 1;
    min-height: 0;
  }
}
.hand-drawer-note {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.hand-drawer-row.is-total {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.hand-drawer-row.is-total .hand-drawer-name {
  color: var(--text-muted);
}
.matrix-error.node-error {
  padding: 16px;
  font-weight: 400;
  color: var(--text-normal);
}
.matrix-panel .matrix-error.node-error {
  font-size: 12px;
}
.node-error-card {
  display: grid;
  max-width: 380px;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.node-error-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 93, 93, 0.12);
  color: #ff5d5d;
}
.node-error-icon.has-detail {
  cursor: help;
}
.node-error-tooltip {
  max-width: 520px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.node-error-icon.is-info {
  background: rgb(var(--ink) / 0.08);
  color: var(--text-soft);
}
.node-error-title {
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.node-error-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
.node-error-text b {
  font-weight: 600;
  color: var(--text-strong);
}
.node-error-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.node-error-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: var(--surface-sunken);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-soft);
}
.node-error-notice-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 999px;
  background: var(--action-passive);
}
.rare-line-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 48;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  animation: rare-line-in 200ms ease both;
}
.rare-line-banner.is-leaving {
  animation: rare-line-out 300ms ease both;
}
@keyframes rare-line-in {
  from { opacity: 0; transform: translate(-50%, -4px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes rare-line-out {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -4px); }
}
.compare-float { display: none; }
.compare-float-grip {
  display: flex;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: grab;
  touch-action: none;
}
.compare-float-grip:active { cursor: grabbing; }
.study-page.is-rail-collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.study-page.is-rail-narrow .study-columns { grid-template-columns: minmax(536px, 61.4fr) minmax(340px, 50.6fr); }
.study-page.is-rail-collapsed .study-rail {
  z-index: 20;
  gap: 8px;
  padding: 12px 8px;
  overflow: visible;
}
.study-page.is-rail-collapsed .study-rail .rail-brand { padding: 0 0 4px; }
.study-page.is-rail-collapsed .study-rail .rail-brand-logo { height: 28px; }
.study-page.is-rail-collapsed .study-rail .rail-brand-logo .brand-logo-word { display: none; }
.study-page.is-rail-collapsed .study-rail .rail-brand-logo .brand-logo-mark { height: 20px; }
.study-page.is-rail-collapsed .study-rail .rail-nav { grid-template-columns: 1fr; }
.study-page.is-rail-collapsed .study-rail .rail-nav-button {
  gap: 0;
  padding: 8px 0;
  font-size: 0;
}
.study-page.is-rail-collapsed .study-rail .rail-tools { grid-template-columns: 1fr; }
.study-page.is-rail-collapsed .study-rail .config-card.is-in-nav { padding: 4px 4px 0; }
.study-page.is-rail-collapsed .study-rail .config-title,
.study-page.is-rail-collapsed .study-rail .config-bullets,
.study-page.is-rail-collapsed .study-rail .config-info,
.study-page.is-rail-collapsed .study-rail .config-skeleton,
.study-page.is-rail-collapsed .study-rail .rail-ai-badge { display: none; }
.study-page.is-rail-collapsed .study-rail .config-change {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 0;
}
.study-page.is-rail-collapsed .study-rail .config-change-button {
  flex: none;
  height: 32px;
  width: 32px;
  gap: 0;
  overflow: visible;
  background: transparent;
  padding: 0;
  font-size: 0;
  color: var(--text-muted);
}
.study-page.is-rail-collapsed .study-rail .config-change-button::before { border-radius: inherit; }
.study-page.is-rail-collapsed .study-rail .config-change-button:hover { color: var(--text-strong); }
.study-page.is-rail-collapsed .study-rail .config-change-button.is-solutions,
.study-page.is-rail-collapsed .study-rail .config-change-button.is-solutions:hover { color: var(--accent-brand); }
.study-page.is-rail-collapsed .study-rail .rail-content-scroll { display: none; }
.study-page.is-rail-collapsed .matrix-panel { position: relative; }
.study-page.is-rail-collapsed .compare-float {
  position: absolute;
  z-index: 15;
  top: 48px;
  left: 8px;
  display: block;
  width: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}
.study-page.is-rail-collapsed .compare-float .compare-card {
  box-shadow: none;
  background: transparent;
}
.study-page.is-rail-collapsed .study-rail .sidebar-account-open {
  justify-content: center;
  margin: 0;
  padding: 4px;
}
.study-page.is-rail-collapsed .study-rail :is(.sidebar-account-info, .sidebar-account-sep, .sidebar-account-tier, .sidebar-account-plan-wait, .sidebar-account-caret) { display: none; }
.study-page.is-rail-collapsed .study-rail .sidebar-account { margin-right: -8px; margin-bottom: -4px; margin-left: -8px; padding-top: 8px; padding-right: 8px; padding-left: 8px; }
.study-page.is-rail-collapsed .study-rail .sidebar-account-menu { right: auto; bottom: 0; left: calc(100% + 16px); width: 240px; }
.study-page.is-rail-collapsed .study-rail .sidebar-account-open.is-open::after { display: none; }
.study-page.is-rail-collapsed .study-rail [data-rail-label] { position: relative; }
.study-page.is-rail-collapsed .study-rail [data-rail-label]::after {
  content: attr(data-rail-label);
  position: absolute;
  z-index: 40;
  top: 50%;
  left: calc(100% + 12px);
  border-radius: 8px;
  background: var(--surface-panel);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
  color: var(--text-normal);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
}
.study-page.is-rail-collapsed .study-rail [data-rail-label]:hover::after { opacity: 1; }
.study-page.is-rail-manual .matrix-panel .matrix-cell-label { font-size: clamp(12px, calc((100vw - 346px) * 61.4 / 112 * 0.02), 20px); }
.study-page.is-rail-manual .matrix-panel .matrix-cell-metric { font-size: clamp(12px, calc((100vw - 346px) * 61.4 / 112 * 0.016), 16px); }
.study-page.is-rail-manual .matrix-panel .matrix-placeholder,
.study-page.is-rail-manual .matrix-panel .matrix-error,
.study-page.is-rail-manual .matrix-panel .matrix-loader-title { font-size: clamp(12px, calc((100vw - 346px) * 61.4 / 112 * 0.018), 20px); }
.study-page.is-rail-manual .matrix-panel .matrix-loader-sub { font-size: clamp(12px, calc((100vw - 346px) * 61.4 / 112 * 0.016), 16px); }
.study-page.is-rail-manual .ranges-player.matrix-panel .matrix-cell-label {
  font-size: clamp(9px, calc(((100vw - 346px) * 61.4 / 112 - 8px) / 2 * 0.015), 16.5px);
}
.study-page.is-rail-manual .ranges-player.matrix-panel .matrix-placeholder,
.study-page.is-rail-manual .ranges-player.matrix-panel .matrix-error,
.study-page.is-rail-manual .ranges-player.matrix-panel .matrix-loader-title {
  font-size: clamp(12px, calc(((100vw - 346px) * 61.4 / 112 - 8px) / 2 * 0.018), 20px);
}
.study-page.is-rail-manual .ranges-player.matrix-panel .matrix-loader-sub {
  font-size: clamp(12px, calc(((100vw - 346px) * 61.4 / 112 - 8px) / 2 * 0.016), 16px);
}
.study-page.is-rail-manual .ranges-player.matrix-panel .ranges-stat strong {
  font-size: clamp(13px, calc(((100vw - 346px) * 61.4 / 112 - 8px) / 2 * 0.032), 18px);
}
.study-page.is-rail-manual .action-cards.is-calm .action-card-value {
  font-size: clamp(16px, calc((((100vw - 346px) * 50.6 / 112 - 32px) / 4 - 24px) * 0.165), 24px);
}
.study-page.is-rail-manual.is-rail-collapsed .matrix-panel .matrix-cell-label {
  font-size: clamp(14px, calc((100vw - 346px) * 61.4 / 112 * 0.02 + 2px), 22px);
}
.study-page.is-rail-manual.is-rail-collapsed .ranges-player.matrix-panel .matrix-cell-label {
  font-size: clamp(11px, calc(((100vw - 346px) * 61.4 / 112 - 8px) / 2 * 0.015 + 2px), 18.5px);
}
@media (min-width: 1801px) {
  .study-page.is-rail-manual .matrix-panel .matrix-cell-label { font-size: clamp(12px, calc((100vw - 346px) * 67 / 112 * 0.02), 20px); }
  .study-page.is-rail-manual .matrix-panel .matrix-cell-metric { font-size: clamp(12px, calc((100vw - 346px) * 67 / 112 * 0.016), 16px); }
  .study-page.is-rail-manual .matrix-panel .matrix-placeholder,
  .study-page.is-rail-manual .matrix-panel .matrix-error,
  .study-page.is-rail-manual .matrix-panel .matrix-loader-title { font-size: clamp(12px, calc((100vw - 346px) * 67 / 112 * 0.018), 20px); }
  .study-page.is-rail-manual .matrix-panel .matrix-loader-sub { font-size: clamp(12px, calc((100vw - 346px) * 67 / 112 * 0.016), 16px); }
  .study-page.is-rail-manual .ranges-player.matrix-panel .matrix-cell-label {
    font-size: clamp(9px, calc(((100vw - 346px) * 67 / 112 - 8px) / 2 * 0.015), 16.5px);
  }
  .study-page.is-rail-manual .ranges-player.matrix-panel .matrix-placeholder,
  .study-page.is-rail-manual .ranges-player.matrix-panel .matrix-error,
  .study-page.is-rail-manual .ranges-player.matrix-panel .matrix-loader-title {
    font-size: clamp(12px, calc(((100vw - 346px) * 67 / 112 - 8px) / 2 * 0.018), 20px);
  }
  .study-page.is-rail-manual .ranges-player.matrix-panel .matrix-loader-sub {
    font-size: clamp(12px, calc(((100vw - 346px) * 67 / 112 - 8px) / 2 * 0.016), 16px);
  }
  .study-page.is-rail-manual .ranges-player.matrix-panel .ranges-stat strong {
    font-size: clamp(13px, calc(((100vw - 346px) * 67 / 112 - 8px) / 2 * 0.032), 18px);
  }
  .study-page.is-rail-manual .action-cards.is-calm .action-card-value {
    font-size: clamp(16px, calc((((100vw - 346px) * 45 / 112 - 32px) / 4 - 24px) * 0.165), 24px);
  }
  .study-page.is-rail-manual.is-rail-collapsed .matrix-panel .matrix-cell-label {
    font-size: clamp(14px, calc((100vw - 346px) * 67 / 112 * 0.02 + 2px), 22px);
  }
  .study-page.is-rail-manual.is-rail-collapsed .ranges-player.matrix-panel .matrix-cell-label {
    font-size: clamp(11px, calc(((100vw - 346px) * 67 / 112 - 8px) / 2 * 0.015 + 2px), 18.5px);
  }
}
.study-page { transition: grid-template-columns 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.study-page.is-rail-moving .study-rail { overflow: hidden; }
.study-page.is-rail-moving .study-rail > * { animation: rail-content-in 380ms ease both; }
@keyframes rail-content-in {
  0%, 40% { opacity: 0; }
  100% { opacity: 1; }
}
.rail-head {
  position: relative;
  flex-shrink: 0;
}
.rail-edge {
  position: absolute;
  isolation: isolate;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rail-head > .rail-edge {
  top: 5px;
  right: 0;
}
:is(.study-page, .practice-page).is-rail-collapsed .rail-head > .rail-edge {
  position: relative;
  top: auto;
  right: auto;
  margin: 4px auto 0;
}
.info-head .rail-edge {
  position: relative;
  flex: none;
}
.rail-edge.is-right.is-collapsed {
  z-index: 3;
  top: 20px;
  right: 8px;
  animation: rail-edge-in 320ms ease both;
}
.rail-edge.is-right.is-collapsed.is-still { animation: none; }
@keyframes rail-edge-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.rail-edge::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-brand) 28%, transparent) 0%, color-mix(in srgb, var(--accent-brand) 10%, transparent) 55%, color-mix(in srgb, var(--accent-brand) 0%, transparent) 72%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rail-edge:hover,
.rail-edge:focus-visible { color: var(--accent-brand); }
.rail-edge:hover::before,
.rail-edge:focus-visible::before { opacity: 1; transform: none; }
.rail-edge:active { transform: scale(0.9); }

.node-strip,
.node-card-overlay {
  -webkit-user-select: none;
  user-select: none;
}
.node-strip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.node-strip-viewport {
  position: relative;
  min-width: 0;
  flex: 1;
}
.node-strip-track {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.strip-arrow {
  position: absolute;
  inset-block: 0;
  z-index: 10;
  display: flex;
  width: 56px;
  align-items: center;
  cursor: pointer;
  transition: opacity 300ms ease-out;
}
.strip-arrow.is-left {
  left: 0;
  justify-content: flex-start;
  padding-left: 4px;
  background: linear-gradient(
    to right,
    var(--strip-fade, var(--surface-page)),
    var(--strip-fade-soft, rgba(36, 36, 36, 0.7)),
    transparent
  );
}
.strip-arrow.is-right {
  right: 0;
  justify-content: flex-end;
  padding-right: 4px;
  background: linear-gradient(
    to left,
    var(--strip-fade, var(--surface-page)),
    var(--strip-fade-soft, rgba(36, 36, 36, 0.7)),
    transparent
  );
}
.strip-arrow.is-instant {
  transition: none;
}
.strip-arrow.is-active {
  opacity: 1;
}
.strip-arrow.is-active:hover {
  opacity: 0.3;
}
.strip-arrow.is-hidden {
  pointer-events: none;
  opacity: 0;
}
.strip-arrow-icon {
  width: 28px;
  height: 28px;
  color: rgb(var(--ink) / 0.92);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}
.node-card,
.node-card-center,
.node-card-pending,
.node-card-failed,
.node-card-empty {
  width: 120px;
  height: 168px;
}
.node-card.is-board,
.node-card-center.is-board {
  width: 136px;
}
.node-card {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 8px;
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 0 rgba(0, 0, 0, 0.38);
  transition: background-color 120ms ease, border-color 120ms ease;
}
.node-card:hover {
  background: var(--surface-rail);
}
.node-card.is-focused {
  outline: 2px solid var(--pick);
  outline-offset: -2px;
  background: var(--surface-raised);
}
.node-card-main {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}
.node-card.is-expanded {
  width: 152px;
  flex-direction: row;
  gap: 4px;
}
.node-card.is-expanded .node-action {
  margin-inline: -8px 0;
  padding-inline: 8px 0;
}
.node-card-tools {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-left: 1px solid var(--line);
  padding-left: 4px;
}
.node-card-lock {
  flex-shrink: 0;
  color: var(--accent-brand);
}
.node-card.is-static {
  cursor: default;
}
.node-card.is-static:hover {
  background: var(--surface-panel);
}
.node-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 16px;
}
.node-card-seat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: var(--text-normal);
}
.node-card-seat.is-dim {
  color: var(--text-soft);
}
.node-card-stack,
.node-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.node-card-meta {
  margin: 0 0 4px;
  line-height: 16px;
}
.node-card-body {
  display: grid;
  flex: 1;
  place-items: center;
}
.node-card-footer {
  text-align: right;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.node-card-flop {
  position: relative;
  flex-shrink: 0;
}
.node-card-flop:hover .node-card:not(.is-focused) {
  background: var(--surface-rail);
}
.node-card-solve {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  height: 24px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: transparent;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  font-feature-settings: "cv08";
  white-space: nowrap;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}
.node-card-solve::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(90deg, rgba(124, 92, 240, 0.4), rgba(124, 92, 240, 0.14));
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.node-card-solve svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 120ms ease;
}
.node-card-solve:hover,
.node-card-solve:focus-visible {
  border-color: var(--ai-accent);
  background-color: rgba(124, 92, 240, 0.32);
  color: var(--text-strong);
}
.node-card-solve:hover::before,
.node-card-solve:focus-visible::before {
  opacity: 1;
}
.node-card-solve:hover svg,
.node-card-solve:focus-visible svg {
  color: var(--ai-accent);
}
.node-card-solve.is-busy {
  opacity: 0.7;
  cursor: progress;
}
.node-card-solve.is-failed {
  border-color: rgba(255, 93, 93, 0.6);
}
.node-card-exact-line {
  height: 28px;
  flex-shrink: 0;
}
.node-card-exact {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  max-width: calc(100% - 16px);
  align-items: center;
  gap: 4px;
}
.node-card-exact-go {
  position: relative;
  display: flex;
  height: 24px;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: transparent;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}
.node-card-exact-go svg {
  flex-shrink: 0;
}
a.node-card-exact-go:is(:hover, :focus-visible),
button.node-card-exact-go:enabled:is(:hover, :focus-visible) {
  border-color: var(--grade-good);
  background-color: color-mix(in srgb, var(--grade-good) 20%, transparent);
  color: var(--text-strong);
}
.node-card-exact-go.is-ready {
  color: var(--grade-good);
}
span.node-card-exact-go {
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.node-card-exact-go:disabled {
  opacity: 0.5;
  cursor: default;
}
.node-card-exact-go.is-failed {
  border-color: rgba(255, 93, 93, 0.6);
}
.node-card-exact-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grade-good);
  transform-origin: left center;
  transition: transform 400ms ease;
}
.node-card-exact-stop.ds-button.is-icon {
  width: 24px;
  flex-shrink: 0;
}
.node-card-exact-target {
  display: flex;
  height: 24px;
  flex-shrink: 0;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}
button.node-card-exact-target:is(:hover, :focus-visible) {
  border-color: var(--grade-good);
  color: var(--text-strong);
}
span.node-card-exact-target {
  cursor: default;
}
.node-card-exact-go.is-ready.is-short {
  color: var(--grade-warn);
}
.node-card-exact-mark {
  margin-right: auto;
}
.exact-confirm-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.exact-confirm-title svg {
  color: var(--grade-good);
}
.exact-confirm-body p {
  margin: 0 0 12px;
}
.exact-confirm-body p:last-child {
  margin-bottom: 0;
}
.exact-confirm-note {
  color: var(--text-muted);
}
.node-card-center {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 0 rgba(0, 0, 0, 0.38);
  transition: background-color 120ms ease;
}
.node-card-center:hover {
  background: var(--surface-rail);
}
.node-card-center.is-static {
  cursor: default;
}
.node-card-center strong {
  font-size: 12px;
  color: var(--text-normal);
}
.node-actions {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 0px;
  padding-bottom: 16px;
}
.node-card.is-decision {
  overflow: hidden;
}
.node-card-overlay {
  position: fixed;
  z-index: 45;
  overflow: hidden;
  transition: box-shadow 300ms ease;
}
.node-card-overlay.is-grown {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 40px rgba(0, 0, 0, 0.6);
}
.node-explain-button {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.55);
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}
.node-explain-button:hover {
  border-color: var(--accent-brand);
  background: var(--surface-raised);
  color: var(--text-strong);
}
.node-action {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  margin-inline: -8px;
  padding: 0px 8px;
  text-align: left;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-soft);
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.node-action:hover {
  background: #404040;
}
.node-action.is-selected {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--pick) 34%, transparent),
    color-mix(in srgb, var(--pick) 14%, transparent)
  );
  color: var(--text-strong);
  box-shadow: inset 2px 0 0 var(--pick);
}
.node-action-swatch {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 2px;
}
.strip-board {
  display: flex;
  align-items: center;
  justify-content: center;
}
.node-card-pending {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-brand) 45%, transparent);
  border-radius: 8px;
  background: var(--surface-panel);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-brand) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 0 rgba(0, 0, 0, 0.38);
}
.node-card-empty {
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 0 rgba(0, 0, 0, 0.38);
}
.node-card-pending { border-color: #515151; }
.node-loading-skeleton { position: absolute; inset: 12px 8px; z-index: 1; }
.node-loading-heading, .node-loading-subheading { position: relative; overflow: hidden; display: block; height: 8px; width: 60px; border-radius: 2px; background: #414141; }
.node-loading-subheading { width: 40px; height: 4px; margin-top: 8px; background: #383838; }
.node-loading-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.node-loading-rows > span { position: relative; display: block; height: 24px; overflow: hidden; border: 1px solid #484848; border-radius: 4px; background: #343434; }
.node-card-pending .node-loading-heading::before,
.node-card-pending .node-loading-subheading::before,
.node-card-pending .node-loading-rows > span::before { content: ""; position: absolute; z-index: 1; top: -4px; bottom: -4px; left: -65%; width: 60%; pointer-events: none; background: linear-gradient(90deg, transparent, #ffffff18, #ffffff50, #ffffff18, transparent); animation: node-loading-row-sheen 700ms ease-in-out infinite; }
.node-card-pending .node-loading-subheading::before,
.node-card-pending .node-loading-rows > span:nth-child(2)::before { animation-delay: 50ms; }
.node-card-pending .node-loading-rows > span:nth-child(3)::before { animation-delay: 100ms; }
@keyframes node-loading-row-sheen { 0% { transform: translateX(0) skewX(-18deg); opacity: 0; } 15% { opacity: 1; } 80%, 100% { transform: translateX(300%) skewX(-18deg); opacity: 0; } }
.node-card-failed {
  display: grid;
  flex-shrink: 0;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid #ff5d5d;
  border-radius: 8px;
  background: rgba(255, 93, 93, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: #ff5d5d;
}
.node-card.is-board.is-chance {
  width: 108px;
}
.node-card-slots {
  position: relative;
  display: block;
}
.node-card-slot {
  position: relative;
  display: grid;
  width: 32px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background:
    radial-gradient(80% 45% at 50% 50%, rgba(255, 140, 50, 0.16) 0%, rgba(255, 140, 50, 0) 75%),
    linear-gradient(160deg, #36312d 0%, #221f1d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 176, 110, 0.16), 0 2px 8px rgba(0, 0, 0, 0.35);
}
.node-card-slot::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 176, 110, 0.55);
  border-radius: 4px;
  opacity: 0.22;
  transition: opacity 160ms ease;
}
.node-card-slot::after {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  width: 70%;
  background: linear-gradient(105deg, rgba(255, 236, 210, 0) 20%, rgba(255, 236, 210, 0.18) 50%, rgba(255, 236, 210, 0) 80%);
  transform: translateX(-120%);
  animation: node-card-slot-sheen 3600ms 600ms infinite;
}
.node-card-slot:nth-child(2)::after { animation-delay: 750ms; }
.node-card-slot:nth-child(3)::after { animation-delay: 900ms; }
@keyframes node-card-slot-sheen {
  0% { transform: translateX(-120%); animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
  22%, 100% { transform: translateX(220%); }
}
.node-card-slot-mark {
  position: relative;
  display: block;
  width: 24px;
  max-width: none;
  height: auto;
  opacity: 0.62;
  transition: opacity 160ms ease, transform 160ms ease;
  animation: node-card-slot-breathe 2400ms ease-in-out infinite alternate both;
}
.node-card-slot:nth-child(2) .node-card-slot-mark { animation-delay: 300ms; }
.node-card-slot:nth-child(3) .node-card-slot-mark { animation-delay: 600ms; }
@keyframes node-card-slot-breathe {
  from { filter: brightness(0.82) drop-shadow(0 0 0 rgba(255, 140, 50, 0)); }
  to { filter: brightness(1.12) drop-shadow(0 0 4px rgba(255, 140, 50, 0.45)); }
}
.node-card:hover .node-card-slot::before,
.node-card.is-focused .node-card-slot::before { opacity: 1; }
.node-card:hover .node-card-slot-mark,
.node-card.is-focused .node-card-slot-mark { opacity: 1; transform: scale(1.1); }
.node-card-slot-caption {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 4px;
  transform: translateX(-50%);
  font-size: 12px;
  white-space: nowrap;
  color: var(--text-soft);
}
.node-card-footer.is-spot {
  display: flex;
  min-height: 16px;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}
.node-card-pot-tag {
  margin: -4px 0;
}
.node-card-footer-seats {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-soft);
}

.panel-empty.is-centered {
  display: grid;
  min-height: 112px;
  place-items: center;
  text-align: center;
}
.panel-placeholder {
  display: grid;
  flex: 1;
  min-height: 0;
  place-items: center;
  padding: 16px;
  text-align: center;
}
.panel-placeholder-title {
  font-size: 12px;
  font-weight: var(--black);
  color: rgb(var(--ink) / 0.84);
}
.panel-placeholder-text {
  margin-top: 4px;
  max-width: 260px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}
.panel-message {
  display: grid;
  min-height: 96px;
  place-items: center;
  font-size: 12px;
  color: var(--text-muted);
}
.panel-message.is-error {
  font-weight: 600;
  color: #ff5d5d;
}
.actions-card > .ds-card-body {
  padding: 4px;
}
.action-head-meta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  white-space: nowrap;
}
.action-head-explain { margin: -4px -4px -4px 0; }
.action-cards {
  display: grid;
  gap: 8px;
}
.action-cards.is-calm {
  grid-template-columns: repeat(auto-fit, minmax(max(112px, calc((100% - 24px) / 4)), 1fr));
}
.action-card {
  container-type: inline-size;
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: var(--surface-rail);
  padding: 12px;
  text-align: left;
  color: var(--text-strong);
  cursor: pointer;
  transition: background 200ms ease, opacity 300ms ease, box-shadow 200ms ease;
}
.action-card {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.action-card:not(.ds-bar):hover {
  background: var(--surface-raised);
}
.action-card-paint {
  position: absolute;
  inset: 0;
}
.action-cards.is-calm .action-card > :not(.action-card-paint, .action-card-ground) {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.action-cards.is-calm .action-card-combos {
  color: rgb(var(--ink) / 0.86);
}
.action-cards.is-calm .action-card-track {
  background: rgba(0, 0, 0, 0.28);
}
.action-cards.is-calm .action-card-track i {
  background: #ffffff;
}
.action-cards.is-calm .action-card.action-card-skeleton {
  background: var(--surface-panel);
  box-shadow: inset 0 0 0 1px #484848;
  cursor: default;
}
.action-cards.is-calm .action-card.action-card-skeleton > * {
  color: transparent;
  text-shadow: none;
}
.action-card-skeleton i {
  display: inline-block;
  height: 0.62em;
  overflow: hidden;
  vertical-align: middle;
  border-radius: 4px;
  background: #414141;
  font-style: normal;
}
.action-card-skeleton .action-card-combos i {
  background: #3b3b3b;
}
.action-cards.is-calm .action-card-skeleton .action-card-track {
  background: #3b3b3b;
}
.action-cards.is-loading,
.study-right.is-stale .actions-card > .ds-card-body {
  position: relative;
  overflow: hidden;
}
.action-cards.is-loading::after,
.study-right.is-stale .actions-card > .ds-card-body::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--ink) / 0.08), rgb(var(--ink) / 0.24), rgb(var(--ink) / 0.08), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: combo-grid-sheen 1100ms ease-in-out infinite;
}
.action-cards.is-calm {
  container-type: inline-size;
}
.action-cards.is-calm .action-card {
  container-type: normal;
}
.action-cards.is-calm .action-card-value {
  margin-top: 4px;
  font-size: clamp(16px, calc(((100cqw - 24px) / 4 - 24px) * 0.165), 24px);
}
.action-cards.is-calm .action-card-combos {
  font-size: 12px;
}
.action-cards.is-calm .action-card.is-on {
  box-shadow:
    inset 0 0 0 1px rgb(var(--ink) / 0.12),
    0 0 0 2px var(--pick);
}
.action-card-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.action-card-name {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: var(--heavy);
  line-height: 16px;
  text-transform: capitalize;
}
.action-card-value {
  margin-top: 4px;
  white-space: nowrap;
  font-size: clamp(20px, 22cqw, 32px);
  font-weight: var(--black);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.action-card-combos {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.action-card-track {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-page);
  margin-top: 4px;
}
.action-card-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: background 300ms ease;
}
.action-card.is-on {
  box-shadow: inset 0 0 0 2px var(--pick);
}
.action-card.is-off:not(.ds-bar) {
  opacity: 0.36;
}
.mix-bar {
  display: flex;
  height: 16px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-raised);
  margin-top: 8px;
}
.mix-bar.is-tight {
  border-radius: 4px;
  margin-top: 0;
}
.mix-bar i {
  display: block;
}
.mix-bar-empty {
  display: block;
  width: 100%;
  background: var(--surface-page);
}
.details-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.details-tabs {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
.details-tabs-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.details-tabs-body > [role="tabpanel"][data-state="active"] {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  font-size: 12px;
}
.breakdown-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
}
.breakdown-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.breakdown-value {
  color: var(--text-normal);
}
.breakdown-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.combo-scroll {
  max-height: 392px;
  overflow: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.combo-line {
  display: grid;
  grid-template-columns: 56px 56px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 4px 8px;
  font-size: 12px;
}
.combo-line-combo { color: var(--text-normal); }
.combo-line-reach { color: var(--text-muted); }
.combo-line-actions {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  color: rgb(var(--ink) / 0.68);
}
.hands-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.hands-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-top: 4px;
}
.hands-body > .panel-message {
  flex: 1;
  min-height: 0;
  padding: 16px;
  text-align: center;
}
.combo-grid {
  display: grid;
  flex: 1;
  min-height: 0;
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.combo-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #b0b0b0;
  padding: 8px;
  color: #1e1e1e;
}
.combo-tile.is-dead {
  background: #1d1d1d;
}
.combo-tile.is-dead .combo-label {
  background: #5a5a5a;
  opacity: 0.7;
}
.combo-tile.is-pending {
  background: #8c8c8c;
}
.combo-grid.is-pending,
.study-right.is-stale .combo-grid {
  position: relative;
}
.combo-grid.is-pending::after,
.study-right.is-stale .combo-grid::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--ink) / 0.08), rgb(var(--ink) / 0.24), rgb(var(--ink) / 0.08), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: combo-grid-sheen 1100ms ease-in-out infinite;
}
@keyframes combo-grid-sheen {
  from { transform: translateX(-120%) skewX(-18deg); }
  to { transform: translateX(300%) skewX(-18deg); }
}
.combo-tile.is-pending.is-blank {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.combo-tile.is-blank > i {
  display: block;
  width: 46%;
  height: 8px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.16);
}
.combo-tile.is-blank > i + i {
  width: 30%;
  height: 8px;
}
.combo-tile-fill {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.combo-tile-band {
  display: flex;
  width: 100%;
  min-height: 1px;
  flex-shrink: 0;
}
.combo-tile-band i {
  display: block;
  height: 100%;
}
.combo-tile-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}
.combo-tile-head {
  display: flex;
  height: 28px;
  flex: none;
  align-items: flex-start;
  gap: 4px;
  margin: -8px -8px 0;
}
.combo-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 0 0 4px 0;
  background: #f2f5f8;
  padding: 0 4px;
  font-size: 16px;
  font-weight: var(--heavy);
  line-height: 24px;
}
.combo-label-card.is-spade { color: #2b2f35; }
.combo-label-card.is-heart { color: #c23845; }
.combo-label-card.is-diamond { color: #2879d0; }
.combo-label-card.is-club { color: #1e8a58; }
.combo-tile.is-dead .combo-label-card { color: #d0d0d0; }
.combo-tag {
  margin-left: auto;
  padding: 4px 8px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #1e1e1e;
}
.combo-lines {
  display: flex;
  flex-direction: column;
  font-weight: 400;
  line-height: 1.15;
  color: #1e1e1e;
  font-variant-numeric: tabular-nums;
}
.combo-line-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.combo-line-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combo-line-value {
  flex: none;
  font-weight: 400;
  text-align: right;
}
.combo-metric {
  align-self: flex-end;
  font-weight: 400;
  line-height: 1;
  color: #1e1e1e;
  font-variant-numeric: tabular-nums;
}
.action-cards.is-calm .action-card:not(.ds-bar):not(.is-on):not(:active):hover { filter: brightness(0.78); }
.action-cards.is-calm .action-card:not(.ds-bar).is-on,
.action-cards.is-calm .action-card:not(.ds-bar):active {
  filter: brightness(1);
  transition: opacity 300ms ease;
}
.summary-scroll { flex: 1; min-height: 0; overflow: auto; }
.summary-panel { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 8px; }
.summary-find { flex: none; }
.summary-find > svg { left: 8px; }
.summary-find > .ds-input { padding: 0 32px 0 28px; }
.summary-find > .ds-button { position: absolute; right: 4px; }
.summary-scroll.is-centered { display: grid; place-items: center; padding: 16px; text-align: center; }
.summary-table { min-width: 432px; table-layout: fixed; }
.summary-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-page); white-space: nowrap; }
.summary-table th:first-child { width: 92px; }
.summary-table th:nth-child(2) { width: 28%; }
.summary-table .summary-strategy { padding: 0; }
.summary-table .summary-pad { pointer-events: none; }
.summary-table .summary-pad td { padding: 0; border: none; }
.summary-hand { display: inline-flex; gap: 4px; font-weight: 600; white-space: nowrap; }
.summary-card.is-spade { color: #c5c5c5; }
.summary-card.is-heart { color: #f05252; }
.summary-card.is-diamond { color: #568bff; }
.summary-card.is-club { color: #58b967; }
.summary-mix { display: flex; height: 32px; width: 100%; overflow: hidden; background: #191919; }
.summary-mix i { display: block; height: 100%; }
.blockers-scroll { flex: 1; min-height: 0; overflow: auto; }
.blockers-table {
  min-width: 360px;
  table-layout: fixed;
}
.blockers-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0 4px;
  background: var(--surface-page);
  text-align: center;
}
.blockers-table thead th:first-child { width: 56px; }
.blocker-sort-button { max-width: 100%; }
.blocker-dot { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.blocker-sort-icon { flex: none; margin-left: 0; }
.blocker-sort-icon.is-idle { opacity: 0.45; }
.blocker-head-text { min-width: 0; text-align: left; }
.blockers-table tbody th { padding: 0; }
.blockers-table tbody th .playing-card { margin: 0 auto; }
.playing-card--blocker {
  --card-width: 20px;
  --card-height: 28px;
  isolation: isolate;
}
.blockers-table td { padding: 1px; border: none;  }
.blocker-value {
  display: block;
  width: 100%;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  cursor: help;
}
.blocker-value.is-up { background: color-mix(in srgb, var(--blocker-positive) calc(12% + var(--v) * 68%), transparent); }
.blocker-value.is-down { background: color-mix(in srgb, var(--blocker-negative) calc(12% + var(--v) * 68%), transparent); }
.blocker-value.is-zero { color: var(--text-muted); text-shadow: none; }
.blocker-value:hover { box-shadow: inset 0 0 0 1px var(--line-stronger); }
.blocker-value:focus-visible { outline: 2px solid var(--text-strong); outline-offset: -4px; }
.blocker-tooltip { max-width: 320px; }
.is-blockers-scrolling .blocker-tooltip { visibility: hidden; }
.table-sort-controls { display: flex; align-items: center; gap: 4px; }
.summary-table th .ds-menu-anchor { min-width: 0; max-width: 100%; }
.summary-table th .ds-select { height: auto; min-width: 0; max-width: 100%; gap: 4px; border-radius: 0; background: none; box-shadow: none; padding: 0; color: var(--text-normal); font: inherit; text-transform: inherit; }
.table-strategy-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.summary-table .table-strategy-sort .ds-select { font-size: 12px; color: var(--text-muted); }
.summary-table th .ds-menu { text-transform: none; }
.summary-table th .ds-menu-item { padding: 0 8px 0 12px; color: var(--text-normal); font-size: 12px; font-weight: 600; line-height: 16px; }
.summary-table th .ds-menu-item:hover, .summary-table th .ds-menu-item.is-selected { color: var(--text-strong); }
.summary-scroll,
.blockers-scroll {
  scrollbar-width: none;
}
.summary-scroll::-webkit-scrollbar,
.blockers-scroll::-webkit-scrollbar {
  display: none;
}
.blockers-row.is-hand-card > :is(th, td) { background: color-mix(in srgb, var(--accent-orange) 8%, transparent); }
.blockers-row.is-hand-card > th { box-shadow: inset 2px 0 0 var(--accent-orange); }
.hand-table-head::after,
.hand-table::after {
  transition: opacity 160ms ease;
}
.panel-fold-icon {
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.is-panel-moving :is(.ds-card-body, .details-tabs-body, .ranges-chart-plot, .matrix) {
  pointer-events: none;
}
[data-fold-ghost],
[data-fold-ghost] * {
  animation: none !important;
}

.ds-bar { position: relative; overflow: hidden; border-radius: 4px; background: var(--theme-cell, var(--surface-sunken)); color: var(--theme-on-paint, var(--text-strong)); }
.ds-bar > :is(.ds-bar-ground, .ds-bar-paint) { position: absolute; }
.ds-bar > :not(.ds-bar-ground, .ds-bar-paint) { position: relative; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.ds-bar-ground { inset: 0; opacity: 0.2; }
.ds-bar-paint {
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: calc(var(--share, 0) * 100%);
  border-radius: 4px 0 0 4px;
  padding: 2px 0 2px 2px;
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), linear-gradient(#000, #000), linear-gradient(#000, #000);
  mask-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), linear-gradient(#000, #000), linear-gradient(#000, #000);
  -webkit-mask-clip: border-box, content-box, border-box;
  mask-clip: border-box, content-box, border-box;
  -webkit-mask-composite: source-over, xor;
  mask-composite: add, exclude;
}
.ds-bar.is-large { border-radius: 8px; }
.ds-bar.is-large > .ds-bar-paint { border-radius: 8px 0 0 8px; padding: 3px 0 3px 3px;  }
.ds-bar:hover { filter: brightness(1.15); }
.ds-bar.is-dim { opacity: 0.32; filter: saturate(0.15); }
.ds-bar.is-dim:hover { opacity: 1; filter: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  padding: 32px;
}
html:has(.modal-backdrop, .custom-backdrop, .news-editor-backdrop) {
  overflow: hidden;
  scrollbar-gutter: stable;
}
:where(.modal-backdrop, .custom-backdrop, .news-editor-backdrop) * {
  overscroll-behavior: contain;
}
.board-picker {
  width: min(512px, calc(100vw - 64px));
  padding: 24px;
}
.board-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.board-picker-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 20px;
  font-weight: var(--black);
  line-height: 28px;
  text-transform: capitalize;
  color: var(--text-strong);
}
.board-picker-hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.board-picker-close {
  margin: -4px -8px 0 0;
}
.modal-close {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  place-items: center;
  overflow: hidden;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}
.modal-close::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.modal-close:hover::before {
  opacity: 0.08;
}
.modal-close:active::before {
  opacity: 0.16;
}
.modal-close:focus-visible {
  outline: 2px solid var(--pick);
  outline-offset: 2px;
}
.modal-close:disabled {
  opacity: 0.4;
  cursor: default;
}
.modal-close:disabled::before {
  opacity: 0;
}
.modal-close > * {
  position: relative;
}
.board-picker-board {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.board-picker-slots {
  display: flex;
  gap: 8px;
}
.board-picker-tools {
  display: flex;
  gap: 4px;
}
.picked-slot {
  position: relative;
  display: block;
  width: 48px;
  height: 64px;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.picked-slot-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-strong);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 120ms ease, transform 120ms ease;
}
.picked-slot.is-filled:hover .picked-slot-remove,
.picked-slot.is-filled:focus-visible .picked-slot-remove {
  opacity: 1;
  transform: none;
}
.picked-slot-empty {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-sunken);
  color: var(--text-muted);
}
.picked-slot.is-active .picked-slot-empty {
  border: 2px solid var(--pick);
  background: color-mix(in srgb, var(--pick) 10%, transparent);
  color: var(--pick);
}
.picked-slot:focus-visible,
.deck-card:focus-visible {
  outline: 2px solid var(--pick);
  outline-offset: 2px;
}
.deck-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.deck-row {
  display: grid;
  grid-template-columns: repeat(13, 32px);
  justify-content: start;
  gap: 4px;
}
.deck-card {
  position: relative;
  width: 32px;
  height: 60px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}
.deck-card::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius, 8px);
  background: var(--text-strong);
  opacity: 0;
  transition: opacity 120ms ease;
}
.deck-card:hover:not(:disabled)::after {
  opacity: 0.18;
}
.deck-card:disabled {
  cursor: default;
}
.deck-card.is-taken .playing-card {
  opacity: 0.22;
  filter: grayscale(0.6);
}
.deck-card-unavailable {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  opacity: 0.55;
}
.board-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.board-picker-note {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-picker-confirm {
  min-width: 140px;
}
.sizing-explanation {
  width: min(700px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
.sizing-explanation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 20px 20px 16px;
}
.sizing-explanation-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.sizing-explanation-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.sizing-explanation-state {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  font-size: 16px;
  color: var(--text-muted);
}
.sizing-explanation-state.is-error {
  color: var(--danger);
}
.sizing-explanation-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
.sizing-explanation-context {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-muted);
  text-transform: capitalize;
}
.sizing-explanation-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sizing-candidate {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-rail);
  padding: 16px;
}
.sizing-candidate.is-selected {
  border-color: var(--pick);
  background: color-mix(in srgb, var(--pick) 10%, var(--surface-rail));
}
.sizing-candidate > span,
.sizing-candidate > small {
  font-size: 12px;
  color: var(--text-muted);
}
.sizing-candidate > strong {
  font-size: 20px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.sizing-explanation-gap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  color: var(--text-normal);
}
.sizing-explanation-gap strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 16px;
  color: var(--text-strong);
}
.sizing-explanation-gap small {
  color: var(--text-muted);
}
.sizing-explanation-reason {
  margin: 0;
  border-left: 4px solid var(--brand);
  padding: 4px 0 4px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-normal);
}
.sizing-explanation-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sizing-explanation-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  border-top: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 12px;
}
.sizing-explanation-table.is-utility .sizing-explanation-row {
  grid-template-columns: 1fr auto auto;
}
.sizing-explanation-row:first-child {
  border-top: 0;
}
.sizing-explanation-row.is-head {
  min-height: 36px;
  background: var(--surface-rail);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sizing-explanation-row em {
  margin-left: 8px;
  border-radius: 999px;
  background: var(--brand);
  padding: 0 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: var(--heavy);
  color: var(--text-on-brand);
}
.sizing-explanation-row strong {
  color: var(--text-strong);
}
.sizing-explanation-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 620px) {
  .sizing-explanation-comparison {
    grid-template-columns: 1fr;
  }
  .sizing-explanation-context {
    flex-direction: column;
    gap: 4px;
  }
}

.study-page.is-strip-bottom > .study-main > .study-strip-zone { order: 1; }
.study-page.is-side-left > .study-main > .study-columns { direction: rtl; }
.study-page.is-side-left > .study-main > .study-columns > * { direction: ltr; }
.study-page.is-side-none > .study-main > .study-columns { grid-template-columns: minmax(0, 1fr); }
.study-right:not(:has(> .details-card)) > .strength-card:not(.is-folded) { flex: 1 1 auto; }
.study-right:not(:has(> :is(.details-card, .strength-card))) > .actions-card:not(.is-folded) { flex: 1 1 auto; }
.study-columns { position: relative; }
.study-column-handle { position: absolute; z-index: 5; top: 0; bottom: 0; left: -12px; grid-row: 1; grid-column: 2; width: 16px; cursor: col-resize; touch-action: none; }
.study-page.is-side-left .study-column-handle { right: -12px; left: auto; }
.study-column-handle:focus-visible { outline: none; }
.study-column-handle::after { content: ""; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px; background: var(--line-stronger); opacity: 0; transition: opacity 120ms ease;  }
.study-page.is-side-left .study-column-handle::after { right: 6px; left: auto;  }
.study-column-handle:is(:hover, :focus-visible)::after, .study-page.is-resizing .study-column-handle::after { opacity: 1; }
.study-column-handle.is-snapped::after { background: var(--pick); }
.study-page.is-resizing { cursor: col-resize; user-select: none; }
@media (min-height: 520px) {
  :is(.theme-brand, .theme-contrast) .study-page .study-columns.has-side-width { grid-template-columns: minmax(0, 1fr) var(--study-side); }
}
@media (max-height: 519px) {
  .study-column-handle { display: none; }
}
.layout-menu-trigger.is-open { background: color-mix(in srgb, var(--pick) 16%, transparent); color: var(--pick); }
.layout-menu { width: 336px; gap: 12px; padding: 12px; }
.layout-menu-head { display: flex; height: 24px; align-items: center; justify-content: space-between; gap: 8px; }
.layout-menu-title { color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 24px; }
.layout-menu.is-cols-2 { width: 664px; }
.layout-menu.is-cols-3 { width: 992px; }
.layout-menu:is(.is-cols-2, .is-cols-3) > .layout-picker { display: grid; max-width: none; align-items: start; gap: 12px 16px; }
.layout-menu.is-cols-2 > .layout-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-menu.is-cols-3 > .layout-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-menu.is-cols-2 .layout-picker-part.is-page { grid-column: 2; grid-row: 1 / span 2; }
.layout-picker { display: flex; width: 100%; max-width: 360px; flex-direction: column; gap: 12px; }
.layout-picker-part { display: flex; flex-direction: column; gap: 12px; }
.layout-picker-group { display: flex; flex-direction: column; gap: 8px; }
.layout-picker-label { color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); line-height: 16px; text-transform: uppercase; }
.layout-picker-tiles { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; }
.layout-tile { gap: 8px; padding: 8px; }
.layout-picker-switch { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 12px; border-radius: 8px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 8px 8px 12px; color: var(--text-strong); font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.layout-picker-switch > span { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.layout-map { display: grid; width: 64px; height: 40px; grid-template-columns: minmax(0, 1fr) 20px; grid-template-rows: 8px minmax(0, 1fr); gap: 4px; }
.layout-map > i { border-radius: 4px; background: color-mix(in srgb, var(--text-strong) 18%, transparent); }
.layout-map-strip { grid-column: 1 / -1; order: 0; }
.layout-map > .layout-map-matrix { order: 2; background: color-mix(in srgb, var(--text-strong) 36%, transparent); }
.layout-map-side { order: 3; }
.layout-map.is-strip-bottom { grid-template-rows: minmax(0, 1fr) 8px; }
.layout-map.is-strip-bottom > .layout-map-strip { order: 4; }
.layout-map.is-side-left { grid-template-columns: 20px minmax(0, 1fr); }
.layout-map.is-side-left > .layout-map-side { order: 1; }
.layout-map.is-side-none { grid-template-columns: minmax(0, 1fr); }
.layout-map.is-side-none > .layout-map-side { display: none; }
.layout-tile.is-selected .layout-map > i { background: color-mix(in srgb, var(--pick) 36%, transparent); }
.layout-tile.is-selected .layout-map > .layout-map-matrix { background: color-mix(in srgb, var(--pick) 72%, transparent); }
.cells-map { display: grid; width: 64px; height: 40px; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 3px; }
.cells-map.is-gap-1 { gap: 2px; }
.cells-map.is-gap-2 { gap: 4px; }
.cells-map > i { background: color-mix(in srgb, var(--text-strong) 36%, transparent); }
.cells-map.is-grid > i:nth-child(1) { border-top-left-radius: 4px; }
.cells-map.is-grid > i:nth-child(5) { border-top-right-radius: 4px; }
.cells-map.is-grid > i:nth-child(11) { border-bottom-left-radius: 4px; }
.cells-map.is-grid > i:nth-child(15) { border-bottom-right-radius: 4px; }
.cells-map.is-tiles > i { border-radius: 3px; }
.layout-tile.is-selected .cells-map > i { background: color-mix(in srgb, var(--pick) 72%, transparent); }
.layout-panels { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.layout-panel { display: flex; height: 32px; align-items: center; gap: 4px; border-radius: 8px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); padding: 0 4px 0 12px; color: var(--text-strong); font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.layout-panel-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layout-panel.is-off .layout-panel-name { color: var(--text-muted); text-decoration: line-through; }
.layout-panel-eye.is-on { color: var(--pick); }

.line-bar {
  display: flex;
  height: 24px;
  min-width: 0;
  align-items: center;
  gap: 12px;
  border: none;
  padding: 0 8px;
  font-size: 12px;
  font-weight: var(--bold);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.line-bar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.line-bar-share { margin-left: auto; font-variant-numeric: tabular-nums; }
.line-more-face { display: grid; min-width: 0; flex: 1 1 auto; }
.line-more-face > * { grid-area: 1 / 1; }
.line-more-took { display: flex; min-width: 0; gap: 12px; }
.line-more-took > .line-bar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.line-more-took > .line-bar-share { margin-left: 0; font-variant-numeric: tabular-nums; }
.line-more-sizer { display: flex; height: 0; gap: 12px; overflow: hidden; visibility: hidden; }
.line-more-mark { display: inline-flex; flex: none; align-items: center; margin-inline: auto; color: var(--text-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.line-more-mark:last-child { margin-right: -4px; }
.line-more.is-open .line-more-mark > svg { transform: rotate(180deg); }
.line-decision-copy { position: fixed; z-index: 45; overflow: hidden; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 rgba(0, 0, 0, 0); transition: box-shadow 300ms ease, background-color 340ms ease; }
.line-decision-copy.is-grown { box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, 0.5); }
.line-decision-copy.is-focused { box-shadow: inset 0 0 0 2px var(--focus-line), 0 0 0 rgba(0, 0, 0, 0); }
.line-decision-copy.is-focused.is-grown { box-shadow: inset 0 0 0 2px var(--focus-line), 0 16px 40px rgba(0, 0, 0, 0.5); }
.line-decision-copy.is-leaving { pointer-events: none; }
.line-decision-copy .line-decision-bars { display: flex; flex-direction: column; }
.line-decision-copy .line-more + .line-bar { margin-top: 4px; }
.line-decision-copy.is-leaving:not(.is-focused) { background: var(--surface-panel); }
.line-decision-copy .line-more-mark > svg { transition: transform 340ms ease; }
.line-street-head { display: flex; height: 24px; flex: none; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; font-weight: var(--bold); white-space: nowrap; }
.line-street-name { color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); letter-spacing: 0.06em; }
.line-street-board { display: inline-flex; flex: none; border: none; background: none; padding: 0; cursor: pointer; }
.line-street-board:disabled { cursor: default; }
.line-slot { opacity: 0.8; }
.line-slot .card-back-mark { width: 12px; }
.line-street-head > .line-pot-tag { margin-left: auto; }
.line-street-pot { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.line-pot-tag + .line-street-pot { margin-left: 0; }
.line-street-head > .line-solve { margin-left: -4px; }
.line-street-head > .line-street-name + .line-solve,
.line-street-head > .line-street-board + .line-solve { margin-left: auto; }
.ds-button.line-solve { color: var(--ai-accent); }
.line-solve.is-failed { color: var(--danger, #e5484d); }
:is(.line-street-exact, .line-exact-pop) > .node-card-exact { position: static; max-width: none; transform: none; }
.line-exact.is-busy,
.line-exact.is-open { color: var(--pick); }
.line-exact.is-ready { color: var(--grade-good); }
.line-exact-pop {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  border-radius: 12px;
  background: var(--surface-raised);
  padding: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(0, 0, 0, 0.24), 0 24px 56px rgba(0, 0, 0, 0.52);
}
.line-exact-pop[hidden] { display: none; }
.line-street-pick {
  display: flex;
  height: 32px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: none;
  padding: 0 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--bold);
  white-space: nowrap;
  cursor: pointer;
}
.line-street-pick:enabled:hover { border-color: var(--pick); color: var(--text-strong); }
.line-street-pick:disabled { cursor: default; }
.line-street-seats { color: var(--text-soft); font-weight: 600; }
.line-row {
  display: flex;
  height: 24px;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border: none;
  padding: 0 8px;
  font-size: 12px;
  font-weight: var(--bold);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.line-row.is-open { filter: brightness(1.15); }
.line-row.is-folds { color: var(--text-soft); font-weight: 600; }
.line-row.is-folds > .ds-bar-ground { opacity: 0.12; }
.line-row-swatch { display: block; width: 8px; height: 8px; flex: none; border-radius: 25%; }
.line-row-action { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.line-row-share { margin-left: auto; padding-left: 8px; font-variant-numeric: tabular-nums; }
.line-decision { display: flex; flex: none; flex-direction: column; gap: 4px; border-radius: var(--theme-radius); background: var(--surface-panel); padding: 8px; cursor: pointer; }
:is(.line-decision, .line-stack).is-focused { background: var(--surface-raised); box-shadow: inset 0 0 0 2px var(--focus-line); }
.line-decision.is-focused .line-decision-seat { color: var(--focus-ink); }
.line-decision-head { display: flex; height: 24px; align-items: center; gap: 8px; padding: 0 4px; white-space: nowrap; }
:is(.line-decision-head, .line-street-head, .line-menu-head) > :is(.line-decision-seat, .line-decision-meta, .line-street-name, .line-street-pot,
  .line-menu-seat, .line-menu-street, .line-menu-meta) { align-self: baseline; line-height: 24px; }
.line-decision-seat { display: inline-flex; align-items: center; gap: 4px; color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); }
.line-decision-meta { color: var(--text-muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.line-decision-pot { margin-left: auto; }
.line-tools { display: flex; margin-left: auto; }
.line-decision-body { display: flex; gap: 4px; }
.line-decision-bars { display: grid; min-width: 0; flex: 1 1 auto; grid-template-rows: repeat(4, 24px); grid-auto-columns: minmax(max-content, 1fr); grid-auto-flow: column; gap: 4px; }
.line-decision-body > .line-tools { flex-direction: column; gap: 4px; margin: 0; }
.line-decision.has-tools { padding-right: 36px; }
.line-cards > .line-decision { min-width: 156px; }
.line-cards > .line-decision.has-tools { min-width: 184px; }
.line-cards.is-shareless > .line-decision { min-width: 112px; }
.line-cards.is-shareless > .line-decision.has-tools { min-width: 140px; }
.line-decision.has-tools .line-decision-body > .line-tools { position: absolute; top: 8px; right: 8px; }
.line-end {
  display: flex;
  width: 144px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--theme-radius);
  background: var(--surface-panel);
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.line-end > strong { color: var(--text-strong); font-weight: var(--bold); }
.line-end-kind { text-transform: uppercase; }
.line-end.is-failed { flex-direction: row; color: var(--danger, #e5484d); }
.node-strip.is-streets .node-strip-track { position: relative; align-items: stretch; isolation: isolate; }
.line-cards { display: contents; }
.line-cards > * { position: relative; }
.line-cards > :is(.line-street, .line-decision, .line-stack, .line-end, .node-card-pending):not(.is-focused) { box-shadow: inset 0 0 0 1px var(--line); }
.line-cards > .line-street:not(:first-child) { margin-left: 16px; }
.line-cards > .line-street:not(:first-child)::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; width: 2px; border-radius: 1px; background: var(--line); }
.line-street > .line-street-head > .line-street-name { color: var(--text-strong); font-size: 16px; }
.line-street.is-current { background: var(--surface-raised); }
.line-street.is-preflop { min-width: 140px; }
.line-street.is-preflop > .line-street-body { overflow: hidden; align-items: flex-start; justify-content: flex-start; }
.line-street.is-preflop > .line-street-foot { gap: 4px; }
.line-config-title { color: var(--text-normal); font-size: 12px; font-weight: var(--heavy); line-height: 16px; white-space: nowrap; }
.line-config { display: flex; flex-direction: column; color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.line-config.is-wrap { max-width: 320px; white-space: normal; }
.line-config.is-loading { gap: 8px; }
.line-config.is-loading > span { width: 88px; height: 8px; border-radius: 4px; background: var(--surface-raised); }
:is(.node-strip-track, .rail-street) > .line-ghost { position: absolute; z-index: 0; margin: 0; pointer-events: none; }
.line-street {
  display: flex;
  min-width: 96px;
  flex: none;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--theme-radius);
  background: var(--surface-panel);
  padding: 8px 12px;
}
.line-street > .line-street-head { justify-content: space-between; }
.line-street-body { display: flex; min-height: 0; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.line-board-card { --card-width: 35px; --card-height: 50px;  }
.line-street .node-card-slot { width: 35px; height: 50px;  }
.line-street-body:has(> .line-street-seats) .node-card-slot { width: 28px; height: 40px; }
.line-street-body:has(> .line-street-seats) > :is(.line-street-caption, .line-street-seats) { line-height: 16px; }
.line-street .node-card-slot-mark { width: 20px; }
.line-street-caption { white-space: nowrap; }
.line-street-body { position: relative; }
.line-street-body:not(:has(> .line-street-seats)) > .line-street-caption { position: absolute; top: calc(50% + 29px); line-height: 16px;  }
.line-street-foot { display: flex; height: 24px; flex: none; align-items: center; margin: 0 -4px; }
.line-street-toggle { margin-left: auto; }
.line-street.is-to-pick { cursor: pointer; }
.line-street.is-to-pick:hover { background: var(--surface-raised); }
.line-street.is-focused { background: var(--surface-raised); box-shadow: inset 0 0 0 2px var(--focus-line); }
.line-stack {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--theme-radius);
  background: var(--surface-panel);
  padding: 8px;
}
.line-stack-head { display: flex; height: 24px; align-items: center; padding-left: 4px; color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.line-stack-rows { display: grid; grid-template-rows: repeat(4, 24px); column-gap: 8px; row-gap: 4px; }
:is(.line-stack, .rail-rows) { cursor: pointer; }
.line-stack:not(.is-focused):hover { background: var(--surface-raised); }
.line-cards > :is(.line-street, .line-decision):not(.is-focused):hover { background: var(--surface-raised); }
.line-cards > .line-decision:not(.is-focused) { cursor: pointer; }
.line-seat {
  max-width: 112px;
  align-self: center;
  justify-self: end;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: var(--heavy);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-seat.is-folds { color: var(--text-muted); font-weight: 600; }
.line-seat-now { color: var(--focus-ink); }
.node-strip.is-streets .node-card-pending { display: block; width: 156px; height: auto; min-height: 152px; place-items: normal; border: none; padding: 8px; }
.node-strip.is-streets .node-card-pending.has-tools { width: 184px; padding-right: 36px; }
.node-strip.is-streets .line-cards.is-shareless .node-card-pending { width: 112px; }
.node-strip.is-streets .line-cards.is-shareless .node-card-pending.has-tools { width: 140px; }
.node-strip.is-streets .node-loading-skeleton { position: static; display: flex; flex-direction: column; gap: 4px; }
.line-pending-head { display: flex; height: 24px; align-items: center; gap: 8px; padding: 0 4px; }
.line-pending-head > .node-loading-heading { width: 24px; height: 12px; }
.line-pending-head > .node-loading-subheading { width: 28px; height: 8px; margin-top: 0; }
.line-pending-head > .line-pending-pot { width: 36px; margin-left: auto; }
.line-pending-tools { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; }
:is(.line-pending-tools, .line-tools.is-coming) > span { position: relative; width: 24px; height: 24px; overflow: hidden; border-radius: 4px; background: #343434; box-shadow: inset 0 0 0 1px #484848; }
:is(.line-pending-tools, .line-tools.is-coming) > span::before { content: ""; position: absolute; z-index: 1; top: -4px; bottom: -4px; left: -65%; width: 60%; pointer-events: none; background: linear-gradient(90deg, transparent, #ffffff18, #ffffff50, #ffffff18, transparent); animation: node-loading-row-sheen 700ms ease-in-out infinite; }
.node-strip.is-streets .node-loading-heading { background: #414141; }
.node-strip.is-streets .node-loading-subheading { background: #383838; }
.node-strip.is-streets .node-loading-rows { gap: 4px; margin-top: 0; }
.node-strip.is-streets .node-loading-rows > span { border-color: #484848; background: #343434; }
.node-strip.is-streets .node-card-pending :is(.node-loading-heading, .node-loading-rows > span:nth-child(1), .line-pending-tools > span)::before { animation-delay: var(--sheen-at, 0ms); }
.node-strip.is-streets .node-card-pending :is(.node-loading-subheading, .node-loading-rows > span:nth-child(2))::before { animation-delay: calc(var(--sheen-at, 0ms) + 50ms); }
.node-strip.is-streets .node-card-pending .node-loading-rows > span:nth-child(3)::before { animation-delay: calc(var(--sheen-at, 0ms) + 100ms); }
:is(.line-decision.is-pending .ds-bar, .ds-bar.line-row.is-pending) { pointer-events: none; background: #343434; box-shadow: inset 0 0 0 1px #484848; }
:is(.line-decision.is-pending .ds-bar, .ds-bar.line-row.is-pending) > * { visibility: hidden; }
:is(.line-decision.is-pending .ds-bar, .ds-bar.line-row.is-pending)::before { content: ""; position: absolute; z-index: 1; top: -4px; bottom: -4px; left: -65%; width: 60%; pointer-events: none; background: linear-gradient(90deg, transparent, #ffffff18, #ffffff50, #ffffff18, transparent); animation: node-loading-row-sheen 700ms ease-in-out infinite; }
.line-decision.is-pending { cursor: default; }
.rail-line-slot:empty { display: none; }
.rail-line-body { position: relative; display: flex; flex-direction: column; padding: 12px; }
.rail-street { position: relative; display: flex; flex-direction: column; gap: 4px; }
.rail-street .line-street-toggle svg { transform: rotate(90deg); }
.rail-rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 8px; row-gap: 4px; }
.rail-street + .rail-street { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.rail-street > .line-decision { margin: 4px -4px 0; background: var(--surface-raised); }
.rail-street > .line-decision .line-decision-bars { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
.rail-street > .line-decision.is-preview { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.rail-street > .line-decision.is-preview:hover { background: var(--surface-raised); }
.line-decision.is-preview .line-mix { min-width: 0; flex: 1; margin-left: 8px; }
.rail-line-body > .line-end { width: auto; margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 12px 0 0; }
.line-end.is-pending > i { display: block; width: 100%; height: 8px; border-radius: 4px; background: var(--surface-raised); }
.line-end.is-pending > i + i { width: 60%; }
:is(.theme-brand, .theme-contrast) .study-page:not(.is-rail-collapsed) .study-rail { overflow-y: auto; scrollbar-width: none; }
:is(.theme-brand, .theme-contrast) .study-page:not(.is-rail-collapsed) .study-rail::-webkit-scrollbar { display: none; }
:is(.theme-brand, .theme-contrast) .study-page:not(.is-rail-collapsed) .study-rail .rail-content-scroll { flex: none; overflow: visible; }
:is(.theme-brand, .theme-contrast) .study-page:not(.is-rail-collapsed) .study-rail .sidebar-account {
  position: sticky;
  z-index: 20;
  bottom: -16px;
  margin-bottom: -16px;
  padding-bottom: 8px;
  background: var(--theme-rail);
}
:is(.theme-brand, .theme-contrast) .study-rail .recent-list { max-height: none; overflow: visible; }
.study-strip-zone:empty { display: none; }
.line-menu {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  display: flex;
  min-width: 240px;
  max-width: 320px;
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  border-radius: 12px;
  background: var(--surface-raised);
  padding: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(0, 0, 0, 0.24), 0 24px 56px rgba(0, 0, 0, 0.52);
}
:is(.line-menu, .line-exact-pop) { animation: ds-menu-drop 240ms cubic-bezier(0.22, 1, 0.36, 1) both, ds-menu-show 160ms linear both; }
:is(.line-menu, .line-exact-pop)[data-from="above"] { animation-name: ds-menu-lift, ds-menu-show; }
.line-menu[data-from="right"] { animation-name: line-menu-from-left, ds-menu-show; }
.line-menu[data-from="left"] { animation-name: line-menu-from-right, ds-menu-show; }
@keyframes line-menu-from-left { from { transform: translateX(-8px); } }
@keyframes line-menu-from-right { from { transform: translateX(8px); } }
:is(.line-menu, .line-exact-pop).is-leaving { animation: ds-menu-drop-out 140ms cubic-bezier(0.4, 0, 1, 1) both, ds-hide 140ms linear both; }
:is(.line-menu, .line-exact-pop)[data-from="above"].is-leaving { animation-name: ds-menu-lift-out, ds-hide; }
.line-menu[data-from="right"].is-leaving { animation-name: line-menu-to-left, ds-hide; }
.line-menu[data-from="left"].is-leaving { animation-name: line-menu-to-right, ds-hide; }
@keyframes line-menu-to-left { to { transform: translateX(-8px); } }
@keyframes line-menu-to-right { to { transform: translateX(8px); } }
.line-menu-head { display: flex; height: 24px; flex: none; align-items: center; gap: 8px; padding: 0 4px; white-space: nowrap; }
.line-menu-head > .ds-button:first-child { margin-left: -4px; }
.line-menu-seat { color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); }
.line-menu-street { color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); letter-spacing: 0.06em; }
.line-menu-meta { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.line-menu-bars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.line-menu-steps { display: flex; flex-direction: column; }
.line-menu-step {
  display: grid;
  height: 28px;
  grid-template-columns: 48px 8px minmax(0, 1fr) 32px 48px 16px;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 4px;
  background: none;
  padding: 0 4px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.line-menu-step:hover { background: var(--surface-hover); color: var(--text-strong); }
.line-menu-step.is-focused { background: var(--theme-pick-action); color: var(--theme-pick-action-ink); }
.line-menu-step > b { overflow: hidden; color: var(--text-strong); font-weight: var(--heavy); text-overflow: ellipsis; }
.line-menu-step > span { overflow: hidden; text-overflow: ellipsis; }
.line-menu-step > em { font-style: normal; font-weight: var(--bold); text-align: right; font-variant-numeric: tabular-nums; }
.line-mix { display: flex; height: 8px; overflow: hidden; border-radius: 4px; background: var(--theme-cell); }
.line-mix > i { display: block; height: 100%; }
.line-mix > i + i { box-shadow: inset 1px 0 0 var(--surface-raised); }
.line-mix.is-dimmed > i:not(.is-took) { opacity: 0.38; }
.streets-map { display: grid; width: 64px; height: 40px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 12px minmax(0, 1fr); gap: 4px; }
.streets-map > i,
.streets-map-line > i { border-radius: 4px; background: color-mix(in srgb, var(--text-strong) 18%, transparent); }
.streets-map > .streets-map-matrix { background: color-mix(in srgb, var(--text-strong) 36%, transparent); }
.streets-map-line { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; }
.streets-map.is-compact { grid-template-rows: 8px minmax(0, 1fr); }
.streets-map.is-rail { grid-template-columns: 16px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.streets-map.is-rail > .streets-map-line { grid-auto-flow: row; grid-auto-rows: minmax(0, 1fr); }
.layout-tile.is-selected :is(.streets-map > i, .streets-map-line > i) { background: color-mix(in srgb, var(--pick) 36%, transparent); }
.layout-tile.is-selected .streets-map > .streets-map-matrix { background: color-mix(in srgb, var(--pick) 72%, transparent); }

.appearance-panel {
  min-width: 0;
}
.appearance-body {
  display: grid;
  grid-template-columns: 260px 300px minmax(280px, 1fr);
  gap: 12px;
  overflow-y: auto;
  padding: 12px 16px 16px;
}
@media (max-width: 1100px) {
  .appearance-body {
    grid-template-columns: 1fr;
  }
}
.appearance-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}
.appearance-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-page);
  padding: 12px;
}
.appearance-section-title {
  font-size: 12px;
  font-weight: var(--black);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.knob {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}
.knob-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.knob-value {
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.knob .appearance-select,
.knob .appearance-select > .ds-select {
  width: 100%;
  min-width: 0;
}
.appearance-color {
  width: 100%;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 0;
  cursor: pointer;
}
.appearance-color:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.knob-clear {
  border: none;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  text-align: right;
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-muted);
  cursor: pointer;
}
.knob-clear:hover {
  color: var(--accent-brand);
}
.suit-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.suit-row:first-of-type {
  border-top: none;
  padding-top: 0;
}
.suit-row-head {
  display: grid;
  grid-template-columns: 20px 1fr 48px;
  align-items: center;
  gap: 8px;
}
.suit-row-glyph {
  font-size: 16px;
  line-height: 1;
}
.suit-row-name {
  font-size: 12px;
  font-weight: var(--heavy);
  color: var(--text-normal);
}
.suit-sets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.suit-set-sample {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  line-height: 1;
  color: var(--text-normal);
}
.suit-set-glyph {
  font-style: normal;
}
.suit-set-glyph.is-drawn {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--text-normal);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.appearance-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: #1d1d1d;
  padding: 12px 8px;
}
.appearance-preview-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.appearance-css {
  height: 192px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
  color: var(--text-soft);
}
.appearance-actions {
  display: flex;
  gap: 8px;
}
.appearance-button {
  flex: 1;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
  place-items: center;
  padding: 24px;
  background: var(--surface-page);
}
.auth-card {
  width: 420px;
  max-width: 100%;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-panel);
  color: var(--text-strong);
  text-align: center;
}
@media (max-width: 480px) {
  .auth-card { padding: 24px; }
}
.auth-home { display: block; width: fit-content; margin: 0 auto 32px; border-radius: 8px; }
.auth-home:focus-visible { outline: 2px solid var(--pick); outline-offset: 4px; }
.auth-logo { display: flex; justify-content: center; gap: 12px; }
.auth-logo .brand-logo-mark { height: 44px; }
.auth-logo .brand-logo-word { height: 32px; }
.auth-card h1 { margin: 0; font-size: 24px; font-weight: var(--bold); line-height: 32px; }
.auth-card p { margin: 12px 0; font-size: 16px; line-height: 1.5; }
.auth-card .auth-lead { margin: 4px 0 0; color: var(--text-soft); text-wrap: balance; }
.auth-methods { display: flex; flex-direction: column; gap: 8px; margin: 24px 0 8px; }
.auth-methods .ds-button:not(.is-link) { width: 100%; padding: 0 12px; }
.auth-mark { width: 20px; height: 20px; flex-shrink: 0; background: center / contain no-repeat; }
.auth-mark.is-google { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%23ea4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/><path fill='%234285f4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/><path fill='%23fbbc05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/><path fill='%2334a853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/></svg>"); }
.auth-mark.is-telegram { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%232aabee'/><path fill='%23fff' d='M16.906 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/></svg>"); }
.auth-card .auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}
.auth-or::before,
.auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-email { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth-card .auth-email p { margin: 0; }
.auth-card .auth-email-sent { color: var(--text-soft); }
.auth-email-sent strong { color: var(--text-strong); overflow-wrap: anywhere; }
.auth-code { letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.auth-email-again { display: flex; justify-content: space-between; gap: 12px; }
.auth-card .auth-legal { margin: 4px 0 12px; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.auth-card a { color: var(--accent-brand); font-weight: 600; text-decoration: none; }
.auth-card a:hover { text-decoration: underline; }
.sidebar-account {
  flex-shrink: 0;
  margin-top: auto;
  margin-right: -16px;
  margin-bottom: -8px;
  margin-left: -16px;
  padding-top: 8px;
  padding-right: 16px;
  padding-left: 16px;
  border-top: 1px solid var(--line);
}
.sidebar-account-anchor { display: flex; width: 100%; }
.sidebar-account-open {
  display: flex;
  min-width: 0;
  min-height: 44px;
  flex: 1;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  margin: 0 -8px;
  padding: 4px 8px;
  text-align: left;
  color: var(--text-soft);
  cursor: pointer;
  transition: background-color 120ms ease;
}
.sidebar-account-open:hover,
.sidebar-account-open:focus-visible,
.sidebar-account-open.is-open { background: var(--surface-hover); color: var(--text-strong); outline: none; }
.sidebar-account-info { min-width: 0; flex: 1; }
.sidebar-account-info strong,
.sidebar-account-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-info strong { color: var(--text-strong); font-size: 12px; line-height: 16px; }
.sidebar-account-info span { margin-top: 4px; color: var(--text-muted); font-size: 12px; line-height: 16px; }
.sidebar-account-sep { width: 1px; height: 24px; flex-shrink: 0; margin: 0 4px; background: var(--line); }
.sidebar-account-tier { flex-shrink: 0; color: var(--text-soft); font-size: 12px; font-weight: var(--bold); line-height: 16px; white-space: nowrap; }
.sidebar-account-tier.is-paid { color: var(--accent-brand); }
.sidebar-account-caret { flex-shrink: 0; color: var(--text-muted); transition: transform 200ms ease; }
.sidebar-account-open.is-open .sidebar-account-caret { transform: rotate(180deg); }
.sidebar-account-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-panel);
  color: var(--accent-brand);
  font-size: 16px;
  font-weight: var(--bold);
}
.sidebar-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-account-menu { right: 0; }
.sidebar-account-menu .ds-menu-item > svg { flex-shrink: 0; color: var(--text-muted); }
.sidebar-account-who { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 8px 12px; }
.sidebar-account-who strong,
.sidebar-account-who span { overflow: hidden; font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-who strong { color: var(--text-strong); }
.sidebar-account-who span { color: var(--text-muted); }
.sidebar-account-menu .sidebar-account-plan > svg { color: var(--accent-brand); }
.sidebar-account-plan > small { color: var(--text-strong); }
.sidebar-account-plan-wait { width: 32px; height: 12px; flex-shrink: 0; border-radius: 4px; }
.sidebar-account-menu .sidebar-account-plan-wait { width: 48px; margin-left: auto; }
.sidebar-account .auth-error { margin: 8px 0 0; font-size: 12px; }
.auth-reload { margin-left: 8px; }
.app-crash {
  width: 420px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-panel);
  padding: 32px;
  text-align: center;
  color: var(--text-normal);
  animation: app-crash-in 240ms cubic-bezier(0.2, 0, 0, 1) both;
}
.app-crash h1 { margin: 0 0 8px; font-size: 20px; font-weight: var(--bold); color: var(--text-strong); }
.app-crash p { margin: 0 0 20px; font-size: 16px; line-height: 1.5; color: var(--text-dim); }
@keyframes app-crash-in {
  from { opacity: 0; transform: translateY(8px); }
}
.auth-language { margin-top: 4px; }

.solutions-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 28px; background: #000a; }
.solutions-backdrop .lv-quick { height: min(720px, calc(100vh - 56px)); height: min(720px, calc(100dvh - 56px)); }
.lv-quick { width: 960px; }
.solutions-head { display: grid; flex-shrink: 0; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.solutions-title { display: flex; min-width: 0; align-items: center; gap: 12px; }
.solutions-title > svg { flex-shrink: 0; color: var(--accent-brand); }
.solutions-title h2 { margin: 0; color: var(--text-strong); font-size: 16px; font-weight: var(--bold); line-height: 24px; }
.solutions-tabs { --n: 2; --i: 0; }
.solutions-tabs.is-custom { --i: 1; }
.solutions-tabs > .ds-segment { min-width: 128px; }
.lv-quick-wait { margin: auto; }
.lv-seats { position: relative; display: inline-block; flex-shrink: 0; border: 1px solid rgb(var(--ink) / 0.32); border-radius: 999px; background: rgba(88, 185, 103, 0.12); }
.lv-seats.is-small { width: 24px; height: 12px; }
.lv-seats.is-large { width: 60px; height: 32px; border-width: 2px; }
.lv-seats i { position: absolute; width: 4px; height: 4px; border-radius: 999px; background: var(--accent-brand); transform: translate(-50%, -50%); }
.lv-seats.is-large i { width: 8px; height: 8px; }
.lv-seats.is-2 i:nth-child(1) { top: 0; left: 50%; }
.lv-seats.is-2 i:nth-child(2) { top: 100%; left: 50%; }
.lv-seats.is-6 i:nth-child(1) { top: 0; left: 28%; }
.lv-seats.is-6 i:nth-child(2) { top: 0; left: 72%; }
.lv-seats.is-6 i:nth-child(3) { top: 50%; left: 100%; }
.lv-seats.is-6 i:nth-child(4) { top: 100%; left: 72%; }
.lv-seats.is-6 i:nth-child(5) { top: 100%; left: 28%; }
.lv-seats.is-6 i:nth-child(6) { top: 50%; left: 0; }
.lv-seats.is-3 i:nth-child(1) { top: 0; left: 50%; }
.lv-seats.is-3 i:nth-child(2) { top: 100%; left: 72%; }
.lv-seats.is-3 i:nth-child(3) { top: 100%; left: 28%; }
.lv-seats.is-4 i:nth-child(1) { top: 0; left: 50%; }
.lv-seats.is-4 i:nth-child(2) { top: 50%; left: 100%; }
.lv-seats.is-4 i:nth-child(3) { top: 100%; left: 50%; }
.lv-seats.is-4 i:nth-child(4) { top: 50%; left: 0; }
.lv-seats.is-5 i:nth-child(1) { top: 0; left: 50%; }
.lv-seats.is-5 i:nth-child(2) { top: 50%; left: 100%; }
.lv-seats.is-5 i:nth-child(3) { top: 100%; left: 72%; }
.lv-seats.is-5 i:nth-child(4) { top: 100%; left: 28%; }
.lv-seats.is-5 i:nth-child(5) { top: 50%; left: 0; }
.lv-seats.is-7 i:nth-child(1) { top: 0; left: 28%; }
.lv-seats.is-7 i:nth-child(2) { top: 0; left: 72%; }
.lv-seats.is-7 i:nth-child(3) { top: 50%; left: 100%; }
.lv-seats.is-7 i:nth-child(4) { top: 100%; left: 78%; }
.lv-seats.is-7 i:nth-child(5) { top: 100%; left: 50%; }
.lv-seats.is-7 i:nth-child(6) { top: 100%; left: 22%; }
.lv-seats.is-7 i:nth-child(7) { top: 50%; left: 0; }
.lv-seats.is-8 i:nth-child(1), .lv-seats.is-9 i:nth-child(1) { top: 0; left: 22%; }
.lv-seats.is-8 i:nth-child(2), .lv-seats.is-9 i:nth-child(2) { top: 0; left: 50%; }
.lv-seats.is-8 i:nth-child(3), .lv-seats.is-9 i:nth-child(3) { top: 0; left: 78%; }
.lv-seats.is-8 i:nth-child(4), .lv-seats.is-9 i:nth-child(4) { top: 50%; left: 100%; }
.lv-seats.is-8 i:nth-child(5) { top: 100%; left: 78%; }
.lv-seats.is-8 i:nth-child(6) { top: 100%; left: 50%; }
.lv-seats.is-8 i:nth-child(7) { top: 100%; left: 22%; }
.lv-seats.is-8 i:nth-child(8) { top: 50%; left: 0; }
.lv-seats.is-9 i:nth-child(5) { top: 100%; left: 81%; }
.lv-seats.is-9 i:nth-child(6) { top: 100%; left: 61%; }
.lv-seats.is-9 i:nth-child(7) { top: 100%; left: 39%; }
.lv-seats.is-9 i:nth-child(8) { top: 100%; left: 19%; }
.lv-seats.is-9 i:nth-child(9) { top: 50%; left: 0; }
.lv-quick-body { display: grid; flex: 1; grid-template-columns: 320px minmax(0, 1fr); min-height: 0; }
.lv-quick-steps { display: flex; flex-direction: column; gap: 12px; overflow: auto; padding: 12px 12px 16px 16px; border-right: 1px solid var(--line); background: var(--surface-sunken); }
.lv-format { display: grid; gap: 8px; }
.lv-format-tabs { --n: 2; --i: 0; display: grid; width: 100%; }
.lv-format-tabs.is-second { --i: 1; }
.lv-format-tabs .ds-segment.is-soon { color: var(--text-muted); cursor: default; }
.lv-format-tabs .ds-segment.is-soon:hover { color: var(--text-muted); }
.lv-soon.ds-badge {
  height: 16px;
  background: color-mix(in srgb, var(--accent-orange) 16%, transparent);
  padding: 0 6px;
  color: var(--accent-orange);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
}
.lv-quick-steps { scrollbar-width: none; }
.lv-quick-steps { overflow-x: hidden; overflow-y: auto; }
.lv-quick-steps::-webkit-scrollbar { display: none; }
.lv-quick-step h3 { margin: 0 0 8px; color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); line-height: 16px; letter-spacing: 1.3px; text-transform: uppercase; }
.lv-chip { width: 100%; height: 32px; min-width: 0; flex-direction: row; justify-content: center; border-radius: 8px; padding: 0 8px; }
.lv-chip.is-empty { opacity: 0.38; }
.lv-chip-label { display: flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; line-height: 16px; text-align: center; overflow-wrap: anywhere; }
.lv-quick-options { display: grid; gap: 4px; }
.lv-quick-options.is-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lv-quick-options.is-cols-6 .lv-chip { padding: 0; }
.lv-quick-options.is-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lv-quick-options.is-cols-4 .lv-chip { padding: 0 4px; }
.lv-quick-options.is-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lv-quick-options.is-cols-5 .lv-chip { padding: 0 4px; }
.lv-quick-options:is(.is-cols-5, .is-cols-6) .lv-chip:first-child { padding: 0; hyphens: auto; }
.lv-quick-options.is-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lv-quick-options.is-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lv-quick-options.is-cols-3 .lv-chip { padding: 0 4px; }
.lv-quick-options.is-cols-2 .lv-chip { justify-content: flex-start; padding-left: 8px; }
.lv-quick-options.is-cols-2.is-center .lv-chip { justify-content: center; padding: 0 8px; }
.lv-quick-options .lv-chip .lv-seats { margin-right: 4px; align-self: center; }
.lv-quick-options.is-table .lv-chip { height: 40px; justify-content: center; padding: 0 12px; }
.lv-quick-options.is-table .lv-chip-label { align-items: center; }
.lv-quick-options.is-table .lv-seats { width: 36px; height: 20px; margin-right: 8px; }
.lv-quick-options.is-table .lv-seats i { width: 4px; height: 4px; }
.lv-quick-results { display: flex; min-width: 0; min-height: 0; flex-direction: column; }
.lv-quick-summary { display: flex; flex-shrink: 0; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.lv-quick-notice { flex-shrink: 0; margin: 0; padding: 4px 16px; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 12px; line-height: 16px; }
.lv-quick-picked { overflow: hidden; margin-right: auto; color: var(--text-strong); font-weight: var(--bold); text-overflow: ellipsis; white-space: nowrap; }
.lv-quick-head, .lv-quick-row { gap: 8px; }
.lv-quick-head { display: grid; flex-shrink: 0; align-items: center; height: 32px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); line-height: 16px; text-transform: uppercase; white-space: nowrap; }
.lv-quick-head button { display: inline-flex; min-width: 0; max-width: 100%; justify-self: start; align-items: center; gap: 4px; border: none; padding: 0; background: none; color: inherit; font: inherit; text-align: left; text-transform: inherit; white-space: normal; cursor: pointer; }
.lv-quick-head > span { min-width: 0; white-space: normal; }
.lv-quick-head button:hover, .lv-quick-head button.is-sorted { color: var(--text-strong); }
.lv-quick-head > span:last-child { justify-self: end; }
.lv-quick-list { flex: 1; min-height: 0; overflow: auto; padding: 4px 8px 8px; }
.lv-quick-row { display: grid; width: 100%; border-radius: 8px; padding: 0 8px; }
.lv-quick-row > :is(.lv-quick-stack, .lv-quick-open, .lv-quick-kind, .lv-quick-when) { align-self: baseline; line-height: 40px; }
.lv-quick-row:hover, .lv-quick-row:focus-visible { background: var(--surface-hover); color: var(--text-strong); outline: none; }
.lv-quick-stack { color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); white-space: nowrap; }
.lv-quick-stack small { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.lv-quick-rake { display: block; justify-self: start; max-width: 100%; overflow: hidden; line-height: 20px; text-overflow: ellipsis; }
.lv-quick-open { overflow: hidden; color: var(--text-strong); font-weight: var(--bold); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.lv-quick-kind { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-quick-row > .lv-quick-kind.is-wrap { align-self: center; padding: 4px 0; line-height: 16px; white-space: normal; }
.lv-quick-twin { display: block; color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 16px; }
.lv-quick-rake { height: auto; white-space: normal; }
.lv-quick-row.is-mtt { padding-bottom: 8px; }
.lv-quick-row > .lv-quick-note { grid-column: 1 / -1; margin-top: -8px; color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; text-align: left; white-space: normal; }
.lv-quick-note .is-warning { color: var(--grade-warn); font-weight: var(--bold); }
.lv-quick-note-phase { color: var(--text-strong); font-weight: var(--bold); }
.lv-quick-limp { display: flex; color: var(--accent-brand); }
.lv-quick-limp > span { color: var(--text-muted); }
.lv-quick-go { color: var(--accent-brand); opacity: 0; transition: opacity 120ms ease; }
.lv-quick-row:hover .lv-quick-go, .lv-quick-row:focus-visible .lv-quick-go, .lv-quick-row.is-selected .lv-quick-go { opacity: 1; }
.lv-recent.is-selected { background: color-mix(in srgb, var(--pick) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pick) 64%, transparent); color: var(--text-strong); }
.lv-quick-head.is-recent, .lv-quick-row.is-recent { grid-template-columns: 64px minmax(40px, 0.6fr) minmax(76px, 1fr) minmax(48px, 0.6fr) minmax(0, 1.1fr) minmax(0, 1.1fr) 36px 56px; gap: 8px; }
.lv-quick-table { display: inline-flex; align-items: center; gap: 4px; color: var(--text-soft); font-weight: var(--bold); white-space: nowrap; }
.lv-quick-when { justify-self: end; color: var(--text-muted); white-space: nowrap; }
.lv-quick-body, .lv-quick-custom { animation: lv-tab-in 200ms ease-out backwards; }
@keyframes lv-tab-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.lv-quick-custom { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.lv-room { margin: 8px 0 4px; color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; }
.lv-picks { display: flex; gap: 4px; }
.lv-pick.ds-badge { height: 24px; flex-shrink: 0; gap: 4px; border: none; border-radius: 8px; background: color-mix(in srgb, var(--accent-orange) 12%, transparent); padding: 0 4px 0 8px; color: var(--text-strong); cursor: pointer; }
.lv-pick.ds-badge:hover { background: color-mix(in srgb, var(--accent-orange) 24%, transparent); }
.lv-pick svg { color: var(--text-muted); }
.lv-quick-list.is-grouped { padding-top: 0; }
.lv-group { position: sticky; z-index: 1; top: 0; background: var(--surface-panel); display: flex; align-items: baseline; gap: 4px; padding: 12px 8px 4px; color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; }
.lv-group b { color: var(--text-strong); font-size: 20px; font-weight: var(--heavy); line-height: 24px; }
.lv-quick-list.is-grouped .lv-quick-row .lv-quick-stack { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.lv-open-one.ds-button { gap: 4px; background: var(--accent-orange); color: #ffffff; }
.lv-quick .lv-quick-step h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--text-soft); font-weight: 600; letter-spacing: 0; text-transform: none; }
.lv-step-value { overflow: hidden; color: var(--accent-orange); font-weight: var(--bold); text-overflow: ellipsis; white-space: nowrap; }
.lv-step-value.is-any { color: var(--text-muted); font-weight: 600; }

.run-page { min-height: calc(100vh - 56px); background: #17191d; color: #e8eaf0; padding: 24px 32px; font-size: 12px; }
.run-title p, .run-library-note { color: #939baa; }
.run-workspace { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 28px; max-width: 1552px; margin: 28px auto; }
.run-library { background: #202329; border-radius: 12px; align-self: start; overflow: hidden; }
.run-section-title { display: flex; align-items: center; justify-content: space-between; font-weight: 600; padding: 16px; }
.run-section-title span { font-size: 12px; font-weight: 400; color: #939baa; }
.run-solution { width: 100%; flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 16px; }
.run-solution span { font-size: 12px; color: #c7cbd4; }
.run-solution small { color: #929baa; }
.run-library-note { margin: 20px 16px; font-size: 12px; line-height: 1.7; }
.run-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.run-title h2 { font-size: 20px; margin: 0 0 8px; }
.run-title p { margin: 0; font-size: 12px; }
.run-stages { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 24px 0; border: 1px solid #393d45; border-radius: 12px; overflow-x: auto; }
.run-stage { display: grid; grid-template-columns: 24px 1fr; gap: 4px 8px; padding: 16px 12px; border-right: 1px solid #393d45; color: #929baa; }
.run-stage:last-child { border-right: none; }
.run-stage strong { font-size: 12px; align-self: center; }
.run-stage small { grid-column: 2; font-size: 12px; }
.run-stage-number { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #30353f; font-size: 12px; }
.run-stage.is-done { color: #b3d8bf; background: #202b25; }
.run-stage.is-done .run-stage-number { background: #355840; }
.run-stage.is-partial { color: #e9c18c; }
.run-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.run-metrics > div { padding: 16px; border-radius: 8px; background: #22252b; }
.run-metrics span { display: block; color: #929baa; margin-bottom: 8px; font-size: 12px; }
.run-metrics strong { font-size: 24px; }
.run-metrics small { font-size: 12px; font-weight: 400; color: #929baa; }
.run-controls { margin-top: 20px; background: #22252b; border-radius: 12px; padding: 4px 4px 12px; }
.run-fields { display: grid; grid-template-columns: 132px 192px 152px 1fr; gap: 12px; align-items: end; padding: 0 16px; }
.run-fields label { color: #a4acb9; font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
.run-fields .ds-select { width: 100%; min-width: 0; }
.run-controls p { padding: 0 16px; color: #949dab; font-size: 12px; margin: 12px 0 0; }
.run-controls .run-hold { color: #d1b387; }
.run-files { padding: 16px 0; color: #aab2bf; }
.run-files summary { cursor: pointer; }
.run-files dl { background: #202329; padding: 16px; border-radius: 8px; font-size: 12px; }
.run-files dt { color: #919bad; margin-top: 12px; }
.run-files dd { margin: 4px 0; overflow-wrap: anywhere; font-family: monospace; color: #ccd2dc; }
.run-console { border: 1px solid #343941; border-radius: 12px; overflow: hidden; }
.run-console pre { background: #121519; margin: 0; padding: 20px; color: #a7b5c6; font-size: 12px; line-height: 1.9; min-height: 132px; white-space: pre-wrap; }
.run-error { background: #4a272a; padding: 16px; border-radius: 8px; }
.run-loading { color: #939baa; }
@media (max-width: 1050px) { .run-page { padding: 16px; } .run-workspace { grid-template-columns: 212px minmax(0,1fr); gap: 16px; } .run-fields { grid-template-columns: repeat(2, minmax(0,1fr)); } .run-metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .run-workspace { grid-template-columns: 1fr; } .run-title { align-items: start; flex-direction: column; } }
.run-control-buttons { display: flex; justify-content: end; gap: 8px; }
.run-fleet { max-width: 1552px; margin: 28px auto 0; background: #202329; border-radius: 12px; }
.run-section-title .run-fleet-heading { display: flex; align-items: center; gap: 8px; color: #e8eaf0; font-size: 12px; font-weight: 600; }
.run-fleet-heading i { width: 8px; height: 8px; background: #6ba980; border-radius: 50%; }
.run-fleet-heading i.is-stale { background: #d7a667; }
.run-fleet-summary { display: flex; align-items: baseline; gap: 24px; padding: 0 16px 16px; }
.run-fleet-summary strong { font-size: 20px; }
.run-fleet-summary small, .run-fleet-summary > span { font-size: 12px; color: #929baa; font-weight: 400; }
.run-fleet-summary > span { margin-left: auto; }
.run-fleet-empty { padding: 24px 16px; text-align: center; border-top: 1px solid #343942; color: #aeb7c5; }
.run-fleet-empty span { display: block; margin-top: 8px; font-size: 12px; color: #8590a1; }
.run-fleet-error { padding: 0 16px 12px; color: #d7a667; font-size: 12px; }
.run-fleet-group-head { display: flex; width: 100%; align-items: center; gap: 8px; border: none; background: transparent; padding: 4px 16px 8px;
  font-size: 12px; text-align: left; color: inherit; cursor: pointer; }
.run-fleet-group-head strong { min-width: 0; color: #e7ebf0; font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-fleet-group-head span { flex: none; color: #8993a1; font-size: 12px; }
.run-fleet-group-head:hover strong { color: #ffffff; }
.run-fleet-group-head:hover .run-fleet-group-chevron { color: #e7ebf0; }
.run-fleet-group-head:focus-visible { outline: 2px solid #6b8fd6; outline-offset: -2px; border-radius: 8px; }
.run-fleet-group-chevron { flex: none; color: #8993a1; transform: rotate(90deg); transition: transform 160ms ease; }
.run-fleet-group.is-folded .run-fleet-group-chevron { transform: none; }
.run-fleet-group.is-folded .run-fleet-group-head { padding-bottom: 12px; }
.run-fleet-hosts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; padding: 0 16px 16px; }
.run-host { padding: 12px; background: #191c21; border: 1px solid #363c45; border-radius: 8px; }
.run-host header { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.run-host header span { color: #8fb29b; }
.run-host-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.run-host-region, .run-host-tenant { flex: none; padding: 0 4px; color: #8ab4e8; background: #5b8fd629; border-radius: 4px; font-style: normal; font-weight: 600; line-height: 16px; text-transform: uppercase; white-space: nowrap; }
.run-host-note { margin: 8px 0 0; padding: 8px; color: #aeb7c2; background: #20242a; border-radius: 8px; font-size: 12px; }
.run-host-address { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; color: #8993a1; font-family: monospace; font-size: 12px; }
.run-host-task { color: #b8a489; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; margin: 8px 0; }
.run-host-gpus { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.run-gpu { padding: 8px; border-radius: 8px; background: #252a31; }
.run-gpu-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; }
.run-gpu strong { font-size: 16px; color: #9bcdac; }
.run-gpu progress { display: block; appearance: none; border: 0; width: 100%; height: 4px; margin: 8px 0; background: #39434a; border-radius: 4px; }
.run-gpu progress::-webkit-progress-bar { background: #39434a; border-radius: 4px; }
.run-gpu progress::-webkit-progress-value { background: #75ac88; border-radius: 4px; }
.run-gpu progress::-moz-progress-bar { background: #75ac88; border-radius: 4px; }
.run-gpu small { font-size: 12px; color: #99a3b1; }
.run-gpu.is-stale { opacity: .5; }
.run-host-progress { margin-top: 12px; border-radius: 4px; cursor: pointer; user-select: none; }
.run-host-progress:focus-visible { outline: 1px solid #5b8fd6; outline-offset: 4px; }
.run-host-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; }
.run-gpu .run-host-progress strong { font-size: 16px; color: #8ab4e8; }
.run-gpu .run-host-progress:hover strong { color: #aecbf0; }
.run-gpu .run-host-progress progress { display: block; appearance: none; border: 0; width: 100%; height: 4px; margin: 8px 0 0; background: #39434a; border-radius: 4px; transition: margin-bottom 220ms ease; }
.run-host-progress-details { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 220ms ease, opacity 220ms ease; }
.run-host-progress-details > div { overflow: hidden; min-height: 0; }
.run-host-progress.is-open .run-host-progress-details { grid-template-rows: 1fr; opacity: 1; }
.run-gpu .run-host-progress small { display: block; font-size: 12px; color: #99a3b1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-gpu .run-host-progress.is-open progress { margin-bottom: 8px; }
.run-gpu .run-host-progress progress::-webkit-progress-bar { background: #39434a; border-radius: 4px; }
.run-gpu .run-host-progress progress::-webkit-progress-value { background: #5b8fd6; border-radius: 4px; }
.run-gpu .run-host-progress progress::-moz-progress-bar { background: #5b8fd6; border-radius: 4px; }
.run-host-progress-card { margin-top: 8px; }
.run-host-progress-card .run-host-progress { margin-top: 0; }
.run-new-button { margin: 0 16px 16px; width: calc(100% - 32px); }
.run-modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(0,0,0,.68); padding: 20px; }
.run-modal { width: 552px; max-width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; background: #24272e; border: 1px solid #454b55; border-radius: 12px; padding: 24px; box-shadow: 0 20px 72px rgba(0,0,0,.5); }
.run-modal header { display: flex; justify-content: space-between; align-items: start; }
.run-modal h2 { margin: 0; font-size: 20px; }
.run-modal header p { color: #929baa; margin: 8px 0 20px; font-size: 12px; }
.run-new-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.run-new-fields label { display: flex; flex-direction: column; gap: 8px; color: #b1b8c5; font-size: 12px; }
.run-new-fields .run-name-field { grid-column: 1 / -1; }
.run-new-fields .ds-select:disabled { opacity: .4; cursor: not-allowed; }
.run-preset-detail { color: #9da6b5; font-size: 12px; }
.run-new-fields .run-learning-field { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 8px; padding-top: 4px; }
.run-learning-copy { display: flex; flex-direction: column; gap: 4px; }
.run-learning-copy strong { color: #e5e8ef; font-size: 12px; font-weight: 600; }
.run-learning-copy small { color: #9da6b5; font-size: 12px; line-height: 1.4; }
.run-settings-error .run-error { margin-top: 0; }
.run-recipe { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; }
.run-new-note { font-size: 12px; color: #9da6b5; line-height: 1.6; }
.run-modal footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #3e444e; margin-top: 20px; padding-top: 16px; }
.run-modal footer span { font-size: 12px; color: #8f9aab; max-width: 240px; }
.run-config-cost { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px 16px; border-radius: 8px; background: #272c32; }
.run-config-cost > div { display: flex; align-items: baseline; gap: 12px; }
.run-config-cost span { color: #a8b2bf; font-size: 12px; }
.run-config-cost strong { color: #c9ddcf; font-size: 24px; }
.run-config-cost p { margin: 0; font-size: 12px; color: #98a5b4; }
@media (max-width: 850px) { .run-config-cost { align-items: start; flex-direction: column; gap: 8px; } }
.run-stage.is-running { background: #30302b; color: #e6c28d; }
.run-stage.is-running .run-stage-number { background: #695234; color: #fff0d3; }
.run-config-id { font-family: monospace; font-size: 12px; overflow-wrap: anywhere; user-select: text; }
.run-config-identity { margin: 8px 0 16px; color: #939baa; font-size: 12px; overflow-wrap: anywhere; user-select: text; }
.run-config-identity code { color: #dddfe7; }
.run-header { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 24px; border-bottom: 1px solid #34373e; }
.run-header-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.run-header h1 { font-size: 20px; margin: 0; }
.run-header-title a { color: #c5cbd6; text-decoration: none; }
.run-header-title a:hover { color: #ffffff; }
.run-header-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 560px)); justify-content: center; gap: 16px; align-items: stretch; }
.run-money-row { display: flex; flex-direction: column; gap: 12px; margin: auto 0; }
.run-money-row > .run-balances-grid { padding-top: 12px; border-top: 1px solid #3a3f48; }
.run-hcard { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 12px 16px 16px; border: 1px solid #3a3f48; border-radius: 12px; background: linear-gradient(180deg, #23272d, #1f2227); }
.run-hcard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 16px; }
.run-hcard-head span { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #939baa; }
.run-hcard-head small { font-size: 12px; color: #7f8897; white-space: nowrap; }
.run-hcard-head small.is-warn { color: #d5b17f; }
.run-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.run-stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border-radius: 8px; background: #2a2f36; }
.run-stat span { font-size: 12px; color: #a8b2bf; white-space: nowrap; }
.run-stat strong { font-size: 20px; font-weight: 600; color: #e8eaf0; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-stat.is-low strong { color: var(--grade-bad); }
.run-storage.is-stale .run-stat { opacity: .6; }
.run-balances-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.run-balance { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border-radius: 8px; background: #2a2f36; }
.run-balance-name { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a8b2bf; white-space: nowrap; }
.run-balance-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .14); }
.run-balance-amount { font-size: 20px; font-weight: 600; color: #e8eaf0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.run-balance small { font-size: 12px; color: #8f9aab; white-space: nowrap; }
.run-balance-console { font-size: 12px; font-weight: 600; color: #c5cbd6; white-space: nowrap; text-decoration: none; }
.run-balance-console:hover { color: #ffffff; }
.run-balance.is-loading .run-balance-dot { background: #6b7280; box-shadow: none; }
.run-balance.is-loading .run-balance-amount { color: #6b7280; }
.run-balance.is-stale .run-balance-dot { background: #f2c26b; box-shadow: 0 0 0 4px rgba(242, 194, 107, .16); }
.run-balance.is-stale .run-balance-amount { color: #c9c2b2; }
.run-balance.is-error .run-balance-dot { background: #f07a6a; box-shadow: 0 0 0 4px rgba(240, 122, 106, .16); }
.run-balance.is-error .run-balance-amount { color: #8f9aab; }
.run-balance.is-no-api .run-balance-dot { background: #6b7280; box-shadow: none; }
.run-gpu-gateway.is-ready { border-color: #2f5a43; background: linear-gradient(180deg, #1f2a25, #1c2420); }
.run-gpu-gateway-status { display: flex; align-items: center; gap: 12px; min-width: 0; }
.run-gpu-gateway-dot { display: block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #6b7280; }
.run-gpu-gateway.is-ready .run-gpu-gateway-dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.run-gpu-gateway.is-busy .run-gpu-gateway-dot { background: #f2c26b; animation: run-gpu-gateway-pulse 1.2s ease-in-out infinite; }
.run-gpu-gateway.is-error .run-gpu-gateway-dot { background: #f07a6a; }
.run-gpu-gateway-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.run-gpu-gateway-text strong { color: #e5e8ef; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-gpu-gateway-text small { display: block; color: #9da6b5; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-gpu-tenant { display: flex; align-items: center; gap: 8px; }
.run-gpu-delete .run-gpu-tenant select { width: 100%; min-width: 0; }
.run-gpu-fleet-form { display: flex; flex-direction: column; gap: 12px; }
.run-gpu-fleet-table { display: grid; grid-template-columns: minmax(0, 1fr) 80px 100px auto; align-items: center; gap: 4px 8px; padding: 8px 12px; border-radius: 8px; background: #2a2f36; }
.run-gpu-fleet-table > .run-gpu-fleet-buttons { grid-column: 4; grid-row: 2 / span 2; display: flex; flex-direction: column; gap: 4px; align-self: center; }
.run-gpu-delete { width: 400px; }
.run-gpu-delete-fields { display: grid; grid-template-columns: minmax(0, 1fr) 80px; align-items: center; gap: 8px 12px; }
.run-gpu-delete-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #c5cbd6; }
.run-gpu-delete-fields small { font-weight: 400; color: #8f9aab; }
.run-gpu-fleet-table.is-single { grid-template-columns: 80px 140px auto; justify-content: start; }
.run-gpu-fleet-table.is-single > .ds-button { grid-column: 3; grid-row: 2; }
.run-gpu-fleet-col { font-size: 12px; color: #7f8897; white-space: nowrap; }
.run-gpu-fleet-kind { display: flex; flex-direction: column; gap: 0; min-width: 0; font-size: 12px; font-weight: 600; color: #c5cbd6; white-space: nowrap; }
.run-gpu-fleet-kind small { font-size: 12px; font-weight: 400; color: #8f9aab; }
.run-gpu-fleet-table input { width: 100%; }
.run-gpu-fleet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.run-gpu-fleet-foot small { font-size: 12px; color: #7f8897; }
.run-gpu-gateway-buttons { display: flex; gap: 4px; }
@keyframes run-gpu-gateway-pulse { 50% { opacity: .35; } }
@media (max-width: 1024px) { .run-header-cards { grid-template-columns: minmax(0, 560px); } }
@media (max-width: 760px) { .run-balances-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-light .run-page { background-color: #fafafa; color: rgba(0, 0, 0, 0.9); }
.theme-light .run-header { border-bottom-color: rgba(0, 0, 0, 0.1); }
.theme-light .run-title p, .theme-light .run-library-note { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-header-title a { color: rgba(0, 0, 0, 0.75); }
.theme-light .run-header-title a:hover { color: #000000; }
.theme-light .run-library { background-color: #ffffff; }
.theme-light .run-section-title span { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-solution span { color: rgba(0, 0, 0, 0.75); }
.theme-light .run-solution small { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-stages { border-color: rgba(0, 0, 0, 0.1); }
.theme-light .run-stage { border-right-color: rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.6); }
.theme-light .run-stage-number { background-color: #e6e6e6; }
.theme-light .run-stage.is-done { color: #1f7a3d; background-color: #ebf6ee; }
.theme-light .run-stage.is-done .run-stage-number { background-color: #bfe3c9; }
.theme-light .run-stage.is-partial { color: #8a5a12; }
.theme-light .run-metrics > div { background-color: #ffffff; }
.theme-light .run-metrics span { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-metrics small { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-controls { background-color: #ffffff; }
.theme-light .run-fields label { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-controls p { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-controls .run-hold { color: #8a5a12; }
.theme-light .run-files { color: rgba(0, 0, 0, 0.65); }
.theme-light .run-files dl { background-color: #ffffff; }
.theme-light .run-files dt { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-files dd { color: rgba(0, 0, 0, 0.75); }
.theme-light .run-console { border-color: rgba(0, 0, 0, 0.1); }
.theme-light .run-console pre { background-color: #f5f5f5; color: rgba(0, 0, 0, 0.7); }
.theme-light .run-error { background-color: #fde8e8; }
.theme-light .run-loading { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-fleet { background-color: #ffffff; }
.theme-light .run-section-title .run-fleet-heading { color: rgba(0, 0, 0, 0.9); }
.theme-light .run-fleet-heading i { background-color: #2f9e55; }
.theme-light .run-fleet-heading i.is-stale { background-color: #a0661a; }
.theme-light .run-fleet-summary small, .theme-light .run-fleet-summary > span { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-fleet-empty { border-top-color: rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.65); }
.theme-light .run-fleet-empty span { color: rgba(0, 0, 0, 0.5); }
.theme-light .run-fleet-error { color: #a0661a; }
.theme-light .run-fleet-group-head strong { color: rgba(0, 0, 0, 0.9); }
.theme-light .run-fleet-group-head span { color: rgba(0, 0, 0, 0.55); }
.theme-light .run-fleet-group-head:hover strong { color: #000000; }
.theme-light .run-fleet-group-head:hover .run-fleet-group-chevron { color: rgba(0, 0, 0, 0.9); }
.theme-light .run-fleet-group-head:focus-visible { outline-color: #3a78cc; }
.theme-light .run-fleet-group-chevron { color: rgba(0, 0, 0, 0.55); }
.theme-light .run-host { background-color: #fafafa; border-color: rgba(0, 0, 0, 0.1); }
.theme-light .run-host header span { color: #2d7a47; }
.theme-light .run-host-region, .theme-light .run-host-tenant { color: #1757ac; background-color: rgba(58, 120, 204, 0.12); }
.theme-light .run-host-note { color: rgba(0, 0, 0, 0.65); background-color: #f3f3f3; }
.theme-light .run-host-address { color: rgba(0, 0, 0, 0.55); }
.theme-light .run-host-task { color: #7a5a26; }
.theme-light .run-gpu { background-color: #f3f3f3; }
.theme-light .run-gpu strong { color: #1f7a3d; }
.theme-light .run-gpu progress { background-color: #e6e6e6; }
.theme-light .run-gpu progress::-webkit-progress-bar { background-color: #e6e6e6; }
.theme-light .run-gpu progress::-webkit-progress-value { background-color: #2f9e55; }
.theme-light .run-gpu progress::-moz-progress-bar { background-color: #2f9e55; }
.theme-light .run-gpu small { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-host-progress:focus-visible { outline-color: #3a78cc; }
.theme-light .run-gpu .run-host-progress strong { color: #1757ac; }
.theme-light .run-gpu .run-host-progress:hover strong { color: #0f4588; }
.theme-light .run-gpu .run-host-progress progress { background-color: #e6e6e6; }
.theme-light .run-gpu .run-host-progress small { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-gpu .run-host-progress progress::-webkit-progress-bar { background-color: #e6e6e6; }
.theme-light .run-gpu .run-host-progress progress::-webkit-progress-value { background-color: #3a78cc; }
.theme-light .run-gpu .run-host-progress progress::-moz-progress-bar { background-color: #3a78cc; }
.theme-light .run-modal-backdrop { background-color: rgba(0, 0, 0, 0.4); }
.theme-light .run-modal { background-color: #ffffff; border-color: rgba(0, 0, 0, 0.12); box-shadow: 0 20px 72px rgba(0, 0, 0, 0.14); }
.theme-light .run-modal header p { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-gpu-delete-fields label { color: rgba(0, 0, 0, 0.9); }
.theme-light .run-gpu-delete-fields small { color: rgba(0, 0, 0, 0.55); }
.theme-light .run-new-fields label { color: rgba(0, 0, 0, 0.65); }
.theme-light .run-preset-detail { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-learning-copy strong { color: rgba(0, 0, 0, 0.9); }
.theme-light .run-learning-copy small { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-new-note { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-modal footer { border-top-color: rgba(0, 0, 0, 0.12); }
.theme-light .run-modal footer span { color: rgba(0, 0, 0, 0.55); }
.theme-light .run-hcard-head small.is-warn { color: #8a5a12; }
.theme-light .run-config-cost { background-color: #f3f3f3; }
.theme-light .run-config-cost span { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-config-cost strong { color: #1f6b38; }
.theme-light .run-config-cost p { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-stage.is-running { background-color: #fbf3e4; color: #7a4e0e; }
.theme-light .run-stage.is-running .run-stage-number { background-color: #f0d9b5; color: #5a3d0c; }
.theme-light .run-config-identity { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-config-identity code { color: rgba(0, 0, 0, 0.82); }
.theme-light .run-gpu-gateway-dot { background-color: #9a9a9a; }
.theme-light .run-gpu-gateway.is-ready { border-color: #a7d8b5; background: #ebf6ee; }
.theme-light .run-gpu-gateway.is-ready .run-gpu-gateway-dot { background-color: #22a855; box-shadow: 0 0 0 4px rgba(34, 168, 85, 0.18); }
.theme-light .run-gpu-gateway.is-busy .run-gpu-gateway-dot { background-color: #d99a1e; }
.theme-light .run-gpu-gateway.is-error .run-gpu-gateway-dot { background-color: #d6453a; }
.theme-light .run-gpu-gateway-text strong { color: rgba(0, 0, 0, 0.9); }
.theme-light .run-gpu-gateway-text small { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-hcard { border-color: rgba(0, 0, 0, 0.1); background: linear-gradient(180deg, #ffffff, #fafafa); }
.theme-light .run-hcard-head span { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-hcard-head small { color: rgba(0, 0, 0, 0.47); }
.theme-light :is(.run-balance, .run-stat, .run-gpu-fleet-table) { background-color: #f3f3f3; }
.theme-light .run-money-row > .run-balances-grid { border-top-color: rgba(0, 0, 0, 0.1); }
.theme-light :is(.run-stat span, .run-gpu-fleet-kind small) { color: rgba(0, 0, 0, 0.55); }
.theme-light :is(.run-stat strong, .run-gpu-fleet-kind) { color: rgba(0, 0, 0, 0.9); }
.theme-light :is(.run-gpu-fleet-col, .run-gpu-fleet-foot small) { color: rgba(0, 0, 0, 0.47); }
.theme-light .run-balance-name { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-balance-dot { background-color: #22a855; box-shadow: 0 0 0 4px rgba(34, 168, 85, 0.14); }
.theme-light .run-balance-amount { color: rgba(0, 0, 0, 0.9); }
.theme-light .run-balance small { color: rgba(0, 0, 0, 0.55); }
.theme-light .run-balance-console { color: rgba(0, 0, 0, 0.75); }
.theme-light .run-balance-console:hover { color: #000000; }
.theme-light .run-balance.is-loading .run-balance-dot { background-color: #9a9a9a; }
.theme-light .run-balance.is-loading .run-balance-amount { color: #9a9a9a; }
.theme-light .run-balance.is-stale .run-balance-dot { background-color: #d99a1e; box-shadow: 0 0 0 4px rgba(217, 154, 30, 0.16); }
.theme-light .run-balance.is-stale .run-balance-amount { color: rgba(0, 0, 0, 0.6); }
.theme-light .run-balance.is-error .run-balance-dot { background-color: #d6453a; box-shadow: 0 0 0 4px rgba(214, 69, 58, 0.16); }
.theme-light .run-balance.is-error .run-balance-amount { color: rgba(0, 0, 0, 0.55); }
.theme-light .run-balance.is-no-api .run-balance-dot { background-color: #9a9a9a; }
.theme-light :is(.run-library, .run-metrics > div, .run-controls, .run-files dl, .run-fleet, .run-hcard, .run-modal) { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }

.study-columns.is-ranges > .matrix-panel > .toolbar > .panel-head-side > button:first-child { display: none; }
.toolbar-button.is-active { background: #383838; color: var(--text-strong); border-radius: 4px; }
.toolbar-button.is-ranges-tab.is-active {
  border-radius: 0;
  background: transparent;
  color: var(--pick);
  box-shadow: inset 0 -2px 0 var(--pick);
}
.ranges-view {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  animation: none;
}
.ranges-stats {
  container-type: inline-size;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  background: #252525;
  border: 1px solid #393939;
  border-radius: 0;
  padding: 8px 0;
  margin: 4px 0 8px;
}
.ranges-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  text-align: center;
}
.ranges-stat + .ranges-stat {
  border-left: 1px solid var(--line);
}
.ranges-stat span {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: var(--text-muted);
}
.ranges-stat strong {
  white-space: nowrap;
  font-size: clamp(12px, 3.2cqw, 16px);
  font-weight: var(--heavy);
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.ranges-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.ranges-player.matrix-panel {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  container-type: normal;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
.ranges-player-header {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ranges-view.is-ring .ranges-player-header { flex-wrap: wrap; row-gap: 4px; }
.ranges-view.is-ring .ranges-player-header > :first-child { flex-basis: 100%; min-height: 32px; align-items: center; }
.ranges-player-header { flex-wrap: wrap; row-gap: 4px; align-self: start; }
.ranges-tools { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 8px; }
.ranges-player-header strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  padding-left: 4px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.ranges-actor {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--accent-brand);
}
.ranges-modes {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 4px;
  overflow: clip;
  overflow-clip-margin: 4px;
}
.ranges-mode {
  flex: 1;
  max-width: 112px;
  justify-content: center;
}
.ranges-mode:disabled {
  opacity: 0.4;
  cursor: default;
}
.ranges-copy {
  margin-left: auto;
}
.ranges-copy.is-copied {
  background: #2c4233;
  box-shadow: inset 0 0 0 1px #44664e;
  color: #91d5a2;
}
.ranges-player .matrix-cell { min-height: 0; }
.ranges-player .matrix-cell-label { position: absolute; inset: 0; display: grid; place-items: center; }
.ranges-player.matrix-panel .matrix-cell-label { font-size: clamp(9px, 1.5cqw, 16.5px); }
.ranges-player .matrix-cell-label.is-compact { inset: 0; }
.ranges-player .matrix-cell-metric { display: none; }
.ranges-equity-chart {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-sunken);
  padding: 12px 16px 8px;
}
.ranges-equity-chart header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ranges-equity-chart h3 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.ranges-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-soft);
}
.ranges-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ranges-chart-legend i {
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: #ef5b64;
}
.ranges-chart-legend i.is-sb {
  background: #58bb77;
}
.ranges-chart-plot {
  position: relative;
  height: 260px;
  margin-left: 56px;
}
.ranges-chart-plot svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.ranges-chart-line { fill: none; stroke: #ef5b64; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; animation: ranges-line-enter 350ms ease-out both; }
.ranges-chart-line.is-sb { stroke: #58bb77; animation-delay: 40ms; }
.ranges-chart-grid { stroke: rgb(var(--ink) / 0.1); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ranges-chart-cursor { stroke: #ffffff50; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ranges-chart-y {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.ranges-chart-y-title {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -56px;
  display: flex;
  align-items: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  color: var(--text-muted);
}
.ranges-chart-x {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0 56px;
  font-size: 12px;
  color: var(--text-muted);
}
.ranges-equity-chart p {
  margin: 4px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}
.ranges-chart-tooltip strong { font-weight: var(--heavy); }
.ranges-chart-tooltip { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.ranges-chart-empty { min-height: 180px; display: grid; place-items: center; color: var(--text-muted); font-size: 12px; }
.ranges-equity-chart.is-animation-paused .ranges-chart-line { animation: none; }
@keyframes ranges-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ranges-line-enter { from { clip-path: inset(0 100% 0 0); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@media (max-width: 650px) {
  .ranges-comparison { grid-template-columns: minmax(0, 1fr); }
  .study-columns.is-ranges > .study-right { grid-template-columns: 1fr; }
  .ranges-chart-plot { height: 200px; }
}

.study-strip-zone {
  position: relative;
  min-width: 0;
}
.hf { display: grid; min-width: 0; gap: 12px; container: hand-filters / inline-size; }
.hf-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; }
.hf-switches { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px; }
.hf-switches .ds-segmented { gap: 0; overflow: hidden; border-radius: 8px; background: none; box-shadow: inset 0 0 0 1px var(--line); padding: 0; }
.hf-switches .ds-segment {
  height: 24px; border-radius: 0; box-shadow: none; padding: 0 8px; color: var(--text-soft);
  font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap;
}
.hf-switches .ds-segment + .ds-segment { box-shadow: inset 1px 0 0 var(--line); }
.hf-switches .ds-segment:hover { background: color-mix(in srgb, var(--text-strong) 8%, transparent); color: var(--text-strong); }
.hf-switches .ds-segment.is-selected { background: color-mix(in srgb, var(--pick) 20%, transparent); color: var(--text-strong); }
.hf-switches .ds-segment.is-selected + .ds-segment, .hf-switches .ds-segment + .ds-segment.is-selected { box-shadow: inset 1px 0 0 var(--line-strong); }
.hf-switches .hand-filters-suit { width: 24px; padding: 0; font-size: 16px; line-height: 1; }
.hand-filters-suit.is-s { color: #e8e8e8; }
.hand-filters-suit.is-h { color: #ef5b64; }
.hand-filters-suit.is-d { color: #4a9bf0; }
.hand-filters-suit.is-c { color: #3fbf7c; }
.hf-reset:disabled { opacity: 0.32; }
.hf-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.hf-section { display: grid; min-width: 0; }
.hf-sections.is-single { grid-template-columns: minmax(0, 1fr); }
.hf-group { display: grid; min-width: 0; }
.hf-section > h4 { margin: 0 0 4px; color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 16px; }
.hf-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(36px, 28%); align-items: center; gap: 8px;
  height: 24px; margin: 0 -4px; border-radius: 4px; padding: 0 4px;
}
.hf-pick {
  display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px;
  border: none; background: none; padding: 0; color: var(--text-strong); font: inherit; font-size: 12px; font-weight: 600; line-height: 16px; text-align: left; cursor: pointer;
}
.hf-pick::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.hf-pick:focus-visible { outline: none; }
.hf-pick:focus-visible::after { outline: 2px solid var(--pick); outline-offset: -2px; }
.hf-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-share { color: var(--text-normal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hf-bar-cell { position: relative; display: block; min-width: 0; pointer-events: none; }
.hf-bar { display: flex; height: 12px; overflow: hidden; border-radius: 4px; background: var(--surface-sunken); pointer-events: none; }
.hf-bar i { display: block; height: 100%; }
.hf-bar > i + i { box-shadow: inset 1px 0 0 var(--surface-panel); }
.hf-row:hover { background: color-mix(in srgb, var(--text-strong) 8%, transparent); }
.hf-row.is-hinted { background: color-mix(in srgb, var(--pick) 10%, transparent); }
.hf-row.is-on {
  background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 34%, transparent), color-mix(in srgb, var(--pick) 14%, transparent));
  box-shadow: inset 2px 0 0 var(--pick);
}
.hf-above {
  position: absolute; top: -4px; left: -4px; z-index: 1; display: grid; width: 20px; height: 20px; place-items: center; border: none; border-radius: 4px;
  background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line-strong); padding: 0; color: var(--text-strong); cursor: pointer; opacity: 0; pointer-events: auto;
  transition: opacity 120ms ease;
}
.hf-above svg { transform: rotate(-90deg); }
.hf-row:hover .hf-above, .hf-above:focus-visible { opacity: 1; }
.hf-above:hover { background: var(--surface-active); }
.hf-above:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.hf-row.is-skeleton { grid-template-columns: minmax(0, 1fr) minmax(36px, 28%); gap: 8px; }
.hf-row.is-skeleton i { display: block; height: 12px; border-radius: 4px; background: var(--surface-raised); opacity: 0.56; }
.hf-row.is-skeleton i:first-child { width: 72%; }
.hf-row.is-skeleton:hover { background: none; }
@container hand-filters (max-width: 439px) {
  .hf-switches .ds-segment:not(.hand-filters-suit) { padding: 0 4px; }
  .hf-row { grid-template-columns: minmax(0, 1fr) 36px; gap: 4px; }
}
@container hand-filters (max-width: 343px) {
  .hf-sections { grid-template-columns: minmax(0, 1fr); }
}

.bd-view { display: block; min-width: 0; min-height: 0; flex: 1 1 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: none; container: breakdown / inline-size; padding: 0 8px 16px; }
.bd-preflop { padding: 96px 24px; }
.bd-table { display: grid; gap: 12px; }
.bd-top { position: sticky; top: 0; z-index: 3; display: grid; gap: 12px; margin: 0 -8px; background: var(--surface-panel); padding: 0 8px; }
.bd-strip { position: relative; display: block; min-width: 0; height: 24px; border-radius: 4px; background: var(--surface-sunken); }
.bd-strip canvas { display: block; width: 100%; height: 100%; border-radius: inherit; }
.bd-strip-mark { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--text-strong); pointer-events: none; }
.bd-tip {
  position: fixed; z-index: 120; display: grid; min-width: 176px; gap: 4px; transform: translate(8px, calc(-100% - 8px));
  border-radius: 8px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.4); padding: 8px 12px;
  color: var(--text-normal); font-size: 12px; font-weight: 400; line-height: 16px; text-align: left; white-space: nowrap; pointer-events: none;
}
.bd-tip.is-left { transform: translate(calc(-100% - 8px), calc(-100% - 8px)); }
.bd-tip.is-under { transform: translate(8px, 8px); }
.bd-tip.is-under.is-left { transform: translate(calc(-100% - 8px), 8px); }
.bd-tip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.bd-tip-head b { color: var(--text-strong); font-weight: 600; }
.bd-tip em { color: var(--text-muted); font-style: normal; font-variant-numeric: tabular-nums; }
.bd-tip-kind { color: var(--text-soft); }
.bd-tip-mix { display: grid; }
.bd-tip-mix > span { display: flex; align-items: center; gap: 8px; }
.bd-tip-mix i { width: 8px; height: 8px; border-radius: 4px; }
.bd-tip-mix em { margin-left: auto; padding-left: 16px; color: var(--text-strong); }
.bd-hand { display: inline-flex; gap: 4px; }
.bd-range { display: grid; gap: 4px; }
.bd-range-strip { height: 56px; border-radius: 8px; }
.bd-axis { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.bd-no-equity { margin: 0; }
.bd-mix { display: flex; min-width: 0; height: 12px; overflow: hidden; border-radius: 4px; background: var(--surface-sunken); }
.bd-mix i { display: block; height: 100%; }
.bd-num { color: var(--text-normal); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bd-num.is-quiet { color: var(--text-muted); }
:is(.bd-row, .bd-title, .bd-sort) { border: none; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
:is(.bd-row, .bd-title, .bd-sort):focus-visible { outline: 2px solid var(--pick); outline-offset: -2px; }
.bd-table > .bd-section { margin-top: -12px; }
.bd-head, .bd-row {
  display: grid; grid-template-columns: 136px 88px 52px 52px 48px 44px minmax(0, 1fr); align-items: center; gap: 12px;
  width: calc(100% + 16px); margin-right: -8px; margin-left: -8px; padding: 0 8px;
}
.bd-head { height: 32px; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; }
.bd-head .is-num { justify-self: end; text-align: right; }
.bd-head-hands { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.bd-head-hands > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-draw-switch { flex: none; gap: 0; padding: 0; }
.bd-draw-switch .ds-segment { width: 24px; padding: 0; }
.bd-sort { display: inline-flex; align-items: center; justify-self: start; gap: 4px; font-weight: 600; }
.bd-sort:hover, .bd-sort.is-sorted { color: var(--text-strong); }
.bd-sort i { font-style: normal; }
.bd-scale { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.bd-scale em { font-style: normal; font-weight: 400; }
.bd-scale.is-marks em { font-variant-numeric: tabular-nums; }
.bd-title {
  display: flex; width: calc(100% + 16px); height: 32px; align-items: center; gap: 8px; margin: 8px -8px 0; padding: 0 8px;
  font-size: 12px; line-height: 16px;
}
.bd-title:hover { background: var(--surface-hover); }
.bd-title svg { flex: none; color: var(--text-muted); transition: transform 160ms ease; }
.bd-section:not(.is-closed) > .bd-title svg { transform: rotate(90deg); }
.bd-title b { color: var(--text-strong); font-weight: 600; white-space: nowrap; }
.bd-title em { margin-left: auto; color: var(--text-muted); font-style: normal; font-variant-numeric: tabular-nums; }
.bd-row { height: 24px; font-size: 12px; line-height: 16px; }
.bd-row:hover { background: var(--surface-hover); }
.bd-row.is-selected {
  background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 34%, transparent), color-mix(in srgb, var(--pick) 14%, transparent));
  box-shadow: inset 2px 0 0 var(--pick); color: var(--text-strong);
}
.bd-name { overflow: hidden; color: var(--text-normal); text-overflow: ellipsis; white-space: nowrap; }
.bd-row-strip { height: 20px; }
.bd-row-strip.is-scale { border-radius: 0; background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100%; box-shadow: inset -1px 0 0 var(--line); }
.bd-pending { display: grid; gap: 12px; }
.bd-pending i { display: block; height: 20px; border-radius: 4px; background: var(--surface-raised); opacity: 0.56; }
.bd-pending i.is-range { height: 56px; border-radius: 8px; }
@media (max-width: 979px), (max-height: 519px) {
  .bd-view { flex: none; overflow: visible; }
  .bd-top { position: static; }
}
@container breakdown (max-width: 800px) {
  .bd-head, .bd-row { grid-template-columns: 120px 72px 52px 48px 44px minmax(0, 1fr); gap: 8px; }
  .bd-head > :nth-child(4), .bd-row > :nth-child(4) { display: none; }
  .bd-scale:not(.is-marks) em { display: none; }
}
@container breakdown (max-width: 560px) {
  .bd-head, .bd-row { grid-template-columns: 104px 56px 44px minmax(0, 1fr); }
  .bd-head > :is(:nth-child(5), :nth-child(6)), .bd-row > :is(:nth-child(5), :nth-child(6)) { display: none; }
}

.custom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 24px;
}
.custom-shell {
  width: min(1320px, 100%);
  height: min(920px, 100%);
  color: var(--text-normal);
  font-size: 12px;
}
.custom-shell-head h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: var(--bold);
  line-height: 28px;
}
.custom-shell-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.custom-shell-body {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 268px 1fr;
}
.custom-nav {
  display: flex;
  width: auto;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 16px;
}
.custom-nav-tabs {
  margin-bottom: 8px;
}
.custom-nav-tabs .ds-segment:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.custom-nav-item {
  margin-inline: -16px;
}
.custom-nav-item:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.custom-nav-item span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  text-align: left;
}
.custom-nav-item small {
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}
.custom-main {
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 24px 28px;
}
.custom-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.custom-field {
  min-width: 0;
}
.custom-field-label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.custom-hint {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid rgb(var(--ink) / 0.24);
  border-radius: 50%;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-style: normal;
  font-weight: var(--bold);
  line-height: 1;
  color: var(--text-muted);
  cursor: help;
}
button.custom-hint:hover,
button.custom-hint:focus-visible {
  border-color: var(--accent-brand);
  color: var(--accent-brand);
  outline: none;
}
.custom-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 20px 28px;
}
.custom-top-grid.is-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 24px;
}
.custom-top-grid.is-row .custom-stepper {
  width: 160px;
}
.custom-top-grid.is-row .custom-board-button {
  min-width: 112px;
}
.custom-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-pill-row.is-right {
  justify-content: flex-end;
}
.custom-pill-row.is-wrap {
  flex-wrap: wrap;
  row-gap: 4px;
}
.custom-pill.is-selected,
.custom-round.is-selected,
.custom-iteration-button.is-selected {
  background: color-mix(in srgb, var(--pick) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pick) 64%, transparent);
  color: var(--text-strong);
}
.custom-stepper {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.custom-stepper-box {
  display: flex;
}
.custom-stepper-box.is-sm {
  height: 32px;
}
.custom-stepper-box.is-sm > input {
  font-size: 12px;
}
.custom-stepper-box > input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  text-align: right;
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
  outline: none;
}
.custom-stepper-box > em {
  padding: 0 4px;
  font-size: 12px;
  font-style: normal;
  color: var(--text-muted);
}
.custom-stepper.is-disabled {
  opacity: 0.4;
}
.custom-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
}
.custom-toggle.is-on {
  color: var(--text-strong);
}
.custom-select,
.custom-select > .ds-select {
  width: 100%;
}
.custom-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
.custom-tour { display: grid; gap: 16px; margin-bottom: 20px; }
.custom-tour-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 16px; }
.custom-tour-table :is(th, td) { padding: 4px 12px 4px 0; text-align: left; vertical-align: middle; }
.custom-tour-table thead th { color: var(--text-muted); font-weight: var(--bold); letter-spacing: 1px; text-transform: uppercase; }
.custom-tour-table tbody th { width: 64px; color: var(--text-soft); font-size: 16px; font-weight: var(--heavy); }
.custom-tour-table tbody tr.is-playing th { color: var(--text-strong); }
.custom-tour-folded { color: var(--text-muted); }
.custom-tour-table .custom-stepper { max-width: 224px; }
.custom-error {
  margin: 0;
  font-size: 12px;
}
.custom-board-button {
  display: flex;
  align-items: center;
  height: 40px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-sunken);
  padding: 0 8px;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.custom-board-button:hover {
  border-color: var(--accent-brand);
  background: var(--surface-hover);
}
.custom-board-cards .playing-card--strip {
  --card-width: 24px;
  --card-height: 32px;
}
.custom-default-stack {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.custom-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.custom-players > .custom-note {
  grid-column: 1 / -1;
}
.custom-player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  align-items: stretch;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 12px;
}
.custom-player-row > .custom-range-card {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}
.custom-player-row .custom-range-card-body {
  align-items: center;
  text-align: center;
}
.custom-range-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-sunken);
  padding: 8px 12px 8px 8px;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.custom-range-card:hover {
  border-color: var(--accent-brand);
  background: var(--surface-hover);
}
.custom-range-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.custom-range-card-combos {
  font-size: 12px;
  color: var(--text-muted);
}
.custom-range-card-combos strong {
  font-size: 12px;
  color: var(--text-normal);
}
.custom-range-card-percent {
  font-size: 20px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.custom-range-card-percent em {
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}
.custom-cell {
  min-width: 0;
}
.custom-seat-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.custom-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-sunken);
  padding: 0 12px;
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.custom-players-hinted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.custom-position-menu {
  display: flex;
  width: 100%;
}
.custom-position-menu .ds-select {
  width: 100%;
}
.custom-position-menu .ds-select > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.custom-position-menu .ds-select em {
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}
.custom-position-menu .ds-menu {
  right: 0;
  min-width: 0;
  max-height: 320px;
  overflow-y: auto;
}
.custom-profile > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-brand);
}
.range-thumb {
  display: grid;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  grid-template-columns: repeat(13, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: #1d1d1d;
}
.range-thumb {
  gap: 1px;
  padding: 2px;
}
.range-thumb-cell {
  border-radius: 1px;
  background: #313131;
}
.range-thumb-cell.is-on {
  background: var(--pick);
}
.custom-range-tab-thumb,
.custom-range-card-thumb {
  width: 68px;
  height: 68px;
}
.custom-advanced {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 4px 16px;
}
.custom-advanced > summary {
  padding: 12px 0;
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
}
.custom-advanced > summary::-webkit-details-marker {
  display: none;
}
.custom-advanced > summary::after {
  content: "▾";
  float: right;
  color: var(--text-muted);
}
.custom-advanced[open] > summary::after {
  content: "▴";
}
.custom-advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 24px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.custom-rake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(192px, 1fr));
  gap: 20px 28px;
}
.custom-preset-menu {
  position: relative;
}
.custom-preset-list {
  top: auto;
  bottom: calc(100% + 8px);
  animation-name: ds-menu-lift, ds-menu-show;
}
.custom-preset-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.custom-preset-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-preset-empty {
  padding: 8px;
}
.custom-preset-save {
  display: flex;
  gap: 4px;
  padding: 4px;
}
.custom-preset-save .ds-input {
  width: 180px;
}
.custom-rake-backdrop {
  z-index: 65;
}
.custom-rake-picker {
  width: min(940px, 100%);
  height: min(740px, 100%);
  max-height: 100%;
  color: var(--text-normal);
  font-size: 12px;
}
.custom-rake-picker-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: var(--bold);
  line-height: 28px;
}
.custom-rake-picker-body {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 192px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.custom-rake-rooms {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 12px;
}
.custom-rake-room {
  margin-inline: -12px;
}
.custom-rake-tables {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px 20px 20px;
}
.custom-rake-filter {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.custom-rake-filter-title {
  width: 44px;
  flex-shrink: 0;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.custom-rake-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.custom-rake-table {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.custom-rake-table-head,
.custom-rake-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 12px;
}
.custom-rake-table-head {
  height: 32px;
  background: var(--surface-rail);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.custom-rake-row {
  font-variant-numeric: tabular-nums;
}
.custom-rake-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-rake-empty {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 12px;
}
.custom-rake-picker-foot {
  justify-content: space-between;
}
.custom-rake-tooltip {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.custom-rake-tooltip p {
  margin: 0;
}
.custom-rake-tooltip strong {
  color: var(--text-strong);
}
.custom-street-bar {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.custom-seat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.custom-seat-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 16px 20px;
}
.custom-seat-card.is-mirrored {
  background: var(--surface-panel);
}
.custom-seat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.custom-seat-head strong {
  font-size: 16px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.custom-size-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.custom-size-row.is-disabled {
  opacity: 0.45;
}
.custom-size-row-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}
.custom-size-row-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.custom-size-row-note {
  font-size: 12px;
  color: var(--text-muted);
}
.custom-size-chip em {
  font-style: normal;
  color: var(--text-muted);
}
.custom-size-add-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.custom-size-add-inline .ds-input {
  width: 76px;
  text-align: right;
}
.custom-tree-editor-backdrop {
  z-index: 65;
}
.custom-tree-editor {
  width: min(1180px, 100%);
  max-height: 100%;
  color: var(--text-normal);
  font-size: 12px;
}
.custom-tree-editor-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--accent-brand);
}
.custom-tree-editor-title {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.custom-tree-editor-title h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: var(--bold);
  line-height: 28px;
}
.custom-tree-editor-title small {
  font-size: 12px;
  color: var(--text-muted);
}
.custom-tree-editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
}
.custom-tree-editor-setting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}
.custom-tree-strip {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  background: var(--surface-page);
  padding: 16px 20px;
}
.custom-board-card {
  cursor: default;
}
.custom-preview-card .node-actions {
  padding-bottom: 16px;
}
.custom-tree-strip .custom-preview-card {
  height: auto;
  min-height: 168px;
}
.custom-preview-card.is-editing {
  box-shadow: inset 0 0 0 1px var(--pick);
}
.custom-tree-editor-note {
  margin-right: auto;
  font-size: 12px;
  color: var(--text-muted);
}
.custom-tree-edit-button {
  margin-left: auto;
}
.custom-size-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-panel);
  padding: 12px 16px;
}
.custom-size-panel.is-empty {
  font-size: 12px;
  color: var(--text-muted);
}
.custom-size-panel-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.custom-size-panel-head strong {
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.custom-size-panel-head small {
  font-size: 12px;
  color: var(--text-muted);
}
.custom-node-sizes-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.custom-size-panel-head .custom-size-scope {
  align-self: center;
  margin-left: auto;
}
.custom-size-add {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-size-add .ds-input {
  width: 120px;
}
.custom-size-convert {
  font-size: 12px;
  color: var(--text-muted);
}
.custom-size-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.custom-shell-foot {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.custom-foot-left,
.custom-foot-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-estimate {
  font-size: 12px;
  color: var(--text-muted);
}
.custom-estimate.is-problem {
  color: #ffbe7a;
}
.custom-range-backdrop {
  z-index: 65;
}
.custom-range-panel {
  width: fit-content;
  max-height: 100%;
}
.custom-range-head-slot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.custom-range-tab {
  width: 100%;
  flex-direction: row;
  gap: 12px;
}
.custom-range-tab-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}
.custom-range-tab-title {
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.custom-range-tab-title em {
  font-size: 12px;
  font-style: normal;
  color: var(--text-muted);
}
.custom-range-tab-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.custom-range-tab-percent {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-normal);
}
.custom-range-swap svg {
  transform: rotate(90deg);
}
.custom-range-body {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 240px auto;
  gap: 20px;
  overflow: hidden;
  padding: 24px 20px 20px;
}
.custom-range-left {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}
.custom-range-note:empty {
  display: none;
}
.custom-range-note {
  margin: 0;
  font-size: 12px;
  color: var(--accent-brand);
}
.custom-range-transfer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.custom-range-transfer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.custom-range-matrix {
  width: clamp(420px, min(calc((100vh - 328px) * 1.15), calc(100vw - 392px)), 780px);
  aspect-ratio: 1.15;
  container-type: inline-size;
  touch-action: none;
  user-select: none;
}
.custom-range-matrix .matrix-cell-label {
  font-size: clamp(12px, 2cqw, 16px);
}
.matrix-cell.custom-range-cell {
  cursor:
    url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M3%2021c0-2.2%201.1-3.4%202.2-3.9l2.7%202.7C7.4%2020.9%206.2%2022%204%2022H3z'%20fill='%23ffffff'%20stroke='%23111111'%20stroke-width='1.1'%20stroke-linejoin='round'/%3E%3Cpath%20d='M9.1%2018.2%205.8%2014.9%2016.4%204.3l3.3%203.3z'%20fill='%23f0921f'%20stroke='%23111111'%20stroke-width='1.1'%20stroke-linejoin='round'/%3E%3C/svg%3E")
      3 21,
    crosshair;
}
.matrix-cell.custom-range-cell:hover {
  z-index: 10;
  filter: none;
}
.matrix-cell.custom-range-cell.is-preview .custom-range-cell-fill {
  opacity: 0.6;
}
.custom-range-cell-fill {
  width: 100%;
  background: var(--pick);
}
.custom-range-seats {
  display: flex;
  flex-direction: column;
}
.custom-range-seats .custom-range-head-slot {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.custom-range-seat-tools {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.custom-range-side {
  order: -1;
  display: flex;
  min-width: 0;
  height: 0;
  min-height: 100%;
  flex-direction: column;
  gap: 12px;
}
.custom-range-tools {
  width: 0;
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 112px;
  align-items: end;
  gap: 16px;
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 12px 12px 20px;
}
.custom-range-brush .ds-range {
  margin: -8px 0;
}
.custom-range-brush,
.custom-range-top {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}
.custom-range-top-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.custom-range-band-fields {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 4px;
}
.custom-range-band-fields em {
  font-size: 12px;
  font-style: normal;
  color: var(--text-muted);
}
.custom-range-band-input {
  width: 0;
  flex: 1;
  text-align: right;
  -moz-appearance: textfield;
}
.custom-range-band-input::-webkit-inner-spin-button,
.custom-range-band-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.custom-range-dual {
  position: relative;
  height: 8px;
  cursor: pointer;
  touch-action: none;
}
.custom-range-dual::before {
  content: "";
  position: absolute;
  inset: -8px 0;
}
.custom-range-dual-track {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  border-radius: 999px;
}
.custom-range-dual .custom-range-dual-input {
  position: absolute;
  top: -8px;
  left: 0;
  pointer-events: none;
}
.custom-range-dual .custom-range-dual-input.is-raised {
  z-index: 1;
}
.custom-range-dual-input::-webkit-slider-runnable-track {
  background: none;
}
.custom-range-dual-input::-webkit-slider-thumb {
  pointer-events: auto;
}
.custom-range-dual-input::-moz-range-thumb {
  pointer-events: auto;
}
.custom-range-dual-input::-moz-range-track,
.custom-range-dual-input::-moz-range-progress {
  background: transparent;
}
.custom-range-bulk {
  display: grid;
  gap: 4px;
}
.custom-range-saved {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}
.custom-range-saved .custom-saved-list {
  min-height: 0;
  overflow-y: auto;
}
.custom-range-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.custom-range-actions button {
  min-width: 120px;
}
.custom-range-side-head h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.custom-range-side-save {
  display: flex;
  gap: 4px;
}
.custom-saved-empty {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 16px;
}
.custom-saved-list {
  gap: 4px;
  margin: 0;
  list-style: none;
  padding: 0;
}
.custom-saved-list > li {
  display: flex;
  align-items: center;
  gap: 4px;
}
.custom-saved-row {
  min-width: 0;
  flex: 1;
}
.custom-saved-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-solution-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.custom-status {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-rail);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.custom-status strong {
  font-size: 12px;
  color: var(--text-strong);
}
.custom-status.is-done {
  border-color: color-mix(in srgb, var(--accent-brand) 50%, transparent);
}
.custom-status.is-error {
  border-color: rgba(255, 107, 107, 0.5);
}
.custom-spin {
  animation: custom-spin 900ms linear infinite;
}
@keyframes custom-spin {
  to { transform: rotate(360deg); }
}
.custom-solution-id {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}
.custom-solution-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.custom-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-raised);
}
.custom-progress-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8661f, var(--accent-brand));
  transition: width 400ms ease;
}
.custom-solution-board {
  display: flex;
  align-items: center;
  gap: 4px;
}
.custom-solution-money {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.custom-solution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.custom-action-button b {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-muted);
}
.custom-card-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.custom-table-scroll {
  overflow: auto;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.custom-table th,
.custom-table td {
  white-space: nowrap;
}
.custom-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-panel);
}
.custom-table tbody th {
  color: var(--text-strong);
  font-weight: var(--bold);
  text-transform: none;
}
.custom-table-mix {
  position: relative;
}
.custom-mix-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  opacity: 0.22;
}
.custom-table-mix > span {
  position: relative;
  z-index: 1;
}
.custom-table-mix em {
  margin-left: 8px;
  font-size: 12px;
  font-style: normal;
  color: var(--text-muted);
}
@media (max-width: 1080px) {
  .custom-backdrop { padding: 8px; }
  .custom-shell-body { grid-template-columns: 1fr; }
  .custom-nav { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .custom-nav-tabs { flex-shrink: 0; margin: 0 8px 0 0; }
  .custom-nav-item { flex-shrink: 0; margin-inline: 0; }
  .custom-players { grid-template-columns: minmax(0, 1fr); }
  .custom-seat-grid { grid-template-columns: 1fr; }
  .custom-range-panel { width: 100%; }
  .custom-range-body { grid-template-columns: 1fr; overflow-y: auto; }
  .custom-range-matrix { width: 100%; }
  .custom-main { padding: 16px; }
  .custom-rake-picker-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .custom-rake-rooms { flex-direction: row; border-right: none; border-bottom: 1px solid var(--line); }
  .custom-rake-room { margin-inline: 0; }
}
@media (max-width: 720px) {
  .custom-shell-foot { flex-direction: column; align-items: stretch; }
  .custom-foot-right { justify-content: flex-end; }
}
.custom-admin-engine {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.custom-admin-engine.is-gpu {
  color: var(--accent-brand);
}
.custom-admin-engine.is-cpu {
  color: var(--grade-warn);
}
.custom-admin-engine.is-gpu .custom-admin-engine-state {
  color: var(--grade-good);
}
.custom-admin-iterations {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}
.custom-preflop {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 16px;
}
.custom-preflop-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-preflop-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.custom-preflop-sizes {
  display: grid;
  gap: 16px;
}
.custom-preflop-raises {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.custom-lock-backdrop {
  z-index: 70;
}
.custom-lock-panel {
  width: auto;
  max-height: 100%;
  flex-direction: row;
}
.custom-lock-panel {
  user-select: none;
  -webkit-user-select: none;
}
.custom-lock-panel input,
.custom-lock-panel textarea {
  user-select: text;
  -webkit-user-select: text;
}
.custom-lock-panel.is-busy {
  pointer-events: none;
}
.custom-lock-side {
  display: flex;
  width: 300px;
  flex-shrink: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 16px;
}
.custom-lock-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-lock-side-head h3 {
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.custom-lock-hint {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  cursor: help;
}
.custom-lock-note {
  font-size: 12px;
  color: var(--text-muted);
}
.custom-lock-brush {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-sunken);
  padding: 12px;
}
.custom-lock-brush-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}
.custom-lock-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.custom-lock-bar > i {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.custom-lock-bar.is-brush {
  height: 12px;
}
.custom-lock-row {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 80px;
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 4px;
}
.custom-lock-slider {
  position: relative;
  height: 32px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.custom-lock-slider.is-dragging {
  cursor: grabbing;
}
.custom-lock-slider-track {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 24px;
  overflow: hidden;
  border-radius: 8px;
  background: #3a3a3a;
  transform: translateY(-50%);
}
.custom-lock-slider-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--lock-color) 80%, #ffffff), var(--lock-color));
  transform: scaleX(var(--v));
  transform-origin: left center;
  transition: filter 160ms ease;
}
.custom-lock-slider:hover .custom-lock-slider-fill {
  filter: brightness(1.12);
}
.custom-lock-slider.is-dragging .custom-lock-slider-fill {
  filter: brightness(1.22);
}
.custom-lock-slider-label {
  position: absolute;
  top: 50%;
  right: 8px;
  left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: var(--heavy);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transform: translateY(-50%);
}
.custom-lock-slider-rail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(calc(var(--v) * 100%));
}
.custom-lock-slider-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 16px;
  margin: -8px 0 0 -4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.custom-lock-slider:hover .custom-lock-slider-knob,
.custom-lock-slider.is-dragging .custom-lock-slider-knob,
.custom-lock-slider:has(.custom-lock-slider-input:focus-visible) .custom-lock-slider-knob {
  opacity: 1;
}
.custom-lock-slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  background: none;
  opacity: 0;
  pointer-events: none;
}
.custom-lock-slider-input::-webkit-slider-thumb {
  width: 2px;
  height: 32px;
  appearance: none;
}
.custom-lock-slider-input::-moz-range-thumb {
  width: 2px;
  height: 32px;
  border: none;
}
.custom-lock-slider:has(.custom-lock-slider-input:focus-visible) .custom-lock-slider-track {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lock-color) 70%, transparent);
}
.custom-lock-slider.is-disabled {
  opacity: 0.5;
  cursor: default;
}
.custom-lock-value .custom-edit-value.custom-lock-percent {
  padding: 0 40px 0 4px;
  font-variant-numeric: tabular-nums;
}
.custom-lock-value-unit {
  position: absolute;
  top: 50%;
  right: 28px;
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}
.custom-lock-panel .custom-lock-percent.is-invalid {
  box-shadow: inset 0 0 0 1px var(--grade-bad);
}
.custom-lock-side-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-lock-scope {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.custom-lock-scope-menu {
  display: flex;
}
.custom-lock-scope-menu .ds-select {
  width: 100%;
  min-width: 0;
}
.custom-lock-scope-menu .ds-select > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-lock-scope-menu .ds-select > svg {
  flex: none;
}
.custom-lock-scope-menu .ds-select:disabled {
  opacity: 0.4;
  cursor: default;
}
.custom-lock-scope-menu .ds-menu {
  top: auto;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 0;
  animation-name: ds-menu-lift, ds-menu-show;
}
.custom-lock-clear {
  align-self: flex-start;
}
.custom-lock-main {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px;
}
.custom-lock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.custom-lock-board {
  display: flex;
  align-items: center;
  gap: 4px;
}
.custom-lock-pot,
.custom-lock-seat {
  margin-left: 4px;
}
.custom-lock-close {
  margin-left: auto;
}
.custom-lock-body {
  display: grid;
  align-items: start;
  gap: 16px;
  grid-template-columns: auto 440px;
}
.custom-lock-pane {
  display: flex;
  height: 0;
  min-height: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}
.custom-lock-views {
  align-self: flex-start;
}
.custom-lock-current {
  display: grid;
  align-items: center;
  gap: 4px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  font-size: 12px;
  color: var(--text-muted);
}
.custom-lock-current > span {
  grid-column: 1;
}
.custom-lock-current > .custom-lock-bar {
  grid-column: 1;
}
.custom-lock-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 2;
  grid-row: 1 / span 2;
}
.ds-button.custom-lock-tool.is-on {
  box-shadow: inset 0 0 0 1px var(--pick);
  color: var(--pick);
}
.custom-lock-matrix-wrap {
  position: relative;
  width: clamp(360px, min(calc(100vh - 300px), calc(100vw - 860px)), 600px);
  container-type: inline-size;
}
.custom-lock-matrix {
  width: 100%;
  aspect-ratio: 1 / 1;
  touch-action: none;
  user-select: none;
}
.custom-lock-matrix.is-vertical .cell-fill-band {
  flex-direction: column;
}
.custom-lock-matrix-wrap.is-painting:hover .matrix-cell.has-reach {
  filter: brightness(0.86);
}
.custom-lock-matrix-wrap.is-painting .matrix-cell.has-reach:hover {
  filter: brightness(1.08);
}
.custom-lock-paint-hint {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}
.custom-lock-matrix-wrap.is-painting:hover .custom-lock-paint-hint {
  opacity: 1;
}
.matrix-cell.custom-lock-cell.is-pickable {
  cursor: pointer;
}
.custom-lock-cell.is-filtered-out .cell-fill,
.custom-lock-cell.is-filtered-out .matrix-cell-label {
  opacity: 0.25;
}
.custom-lock-waiting {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 10, 10, 0.45);
  font-size: 12px;
  font-weight: var(--bold);
  color: #ffffff;
  animation: ds-menu-show 160ms linear both;
}
.custom-lock-matrix .matrix-cell-label {
  font-size: clamp(12px, 2cqw, 20px);
}
.matrix-cell.custom-lock-cell.is-paintable,
.custom-lock-class.is-paintable,
.custom-lock-combo-strategy.is-paintable,
.custom-lock-combo-hand-cell.is-paintable {
  cursor:
    url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M3%2021c0-2.2%201.1-3.4%202.2-3.9l2.7%202.7C7.4%2020.9%206.2%2022%204%2022H3z'%20fill='%23ffffff'%20stroke='%23111111'%20stroke-width='1.1'%20stroke-linejoin='round'/%3E%3Cpath%20d='M9.1%2018.2%205.8%2014.9%2016.4%204.3l3.3%203.3z'%20fill='%23f0921f'%20stroke='%23111111'%20stroke-width='1.1'%20stroke-linejoin='round'/%3E%3C/svg%3E")
      3 21,
    crosshair;
}
.custom-lock-cell-ring {
  position: absolute;
  z-index: 15;
  inset: 0;
  box-shadow:
    inset 0 0 0 2px var(--pick),
    inset 0 0 16px color-mix(in srgb, var(--pick) 35%, transparent);
  pointer-events: none;
  animation:
    custom-lock-ring-pop 220ms cubic-bezier(0.22, 1, 0.36, 1) both,
    ds-menu-show 160ms linear both;
}
.custom-lock-cell-pin {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: none;
  border-radius: 4px;
  background: rgba(12, 12, 12, 0.6);
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
}
.custom-lock-cell:hover .custom-lock-cell-pin,
.custom-lock-cell-pin.is-on {
  opacity: 1;
}
.custom-lock-cell-pin:hover:not(:disabled) {
  color: #ffffff;
  transform: scale(1.12);
}
.custom-lock-cell-pin.is-on {
  background: var(--pick);
  color: var(--surface-page);
}
.custom-lock-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.custom-lock-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
  font-size: 12px;
  color: var(--text-muted);
}
.custom-lock-count.is-on {
  background: color-mix(in srgb, var(--pick) 16%, transparent);
  color: var(--pick);
}
@keyframes custom-lock-toast-rise {
  from { transform: translate(-50%, 10px); }
  to { transform: translate(-50%, 0); }
}
@keyframes custom-lock-ring-pop {
  from { transform: scale(0.86); }
  to { transform: scale(1); }
}
@media (max-width: 900px) {
  .custom-lock-panel {
    flex-direction: column;
    overflow-y: auto;
  }
  .custom-lock-side {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .custom-lock-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .custom-lock-matrix-wrap {
    width: 100%;
  }
  .custom-lock-pane {
    height: 520px;
    min-height: 0;
  }
}
.custom-lock-row.is-range {
  grid-template-columns: minmax(0, 1fr) 80px 24px;
}
.custom-lock-brush.is-waiting .custom-lock-row {
  opacity: 0.6;
}
.custom-lock-estimate {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}
.custom-lock-presets {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  right: 0;
  display: flex;
  gap: 4px;
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 4px;
  animation: ds-menu-show 160ms linear both;
}
.custom-lock-presets .ds-button {
  min-width: 28px;
}
.ds-button.is-link.custom-lock-text-button {
  color: var(--text-muted);
}
.ds-button.is-link.custom-lock-text-button:hover {
  color: var(--text-strong);
}
.ds-button.is-link.custom-lock-text-button.is-on {
  color: var(--pick);
}
.custom-lock-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.custom-lock-view {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}
.custom-lock-empty {
  justify-content: center;
}
.custom-lock-class-section + .custom-lock-class-section {
  margin-top: 8px;
}
.custom-lock-class-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 4px;
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.custom-lock-class-head > span:first-child {
  margin-right: auto;
}
.custom-lock-class-head .custom-lock-text-button,
.custom-lock-class-head .ds-segmented {
  letter-spacing: 0;
  text-transform: none;
}
.custom-lock-class {
  display: grid;
  height: 32px;
  align-items: center;
  gap: 8px;
  grid-template-columns: 24px 132px 24px minmax(0, 1fr) 48px;
  border-radius: 8px;
  padding: 0 4px;
}
.custom-lock-class:hover {
  background: var(--surface-hover);
}
.custom-lock-class-name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-normal);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.custom-lock-class-icon {
  opacity: 0.55;
  transition: opacity 120ms ease;
}
.custom-lock-class:hover .custom-lock-class-icon,
.custom-lock-class-icon:hover:not(:disabled),
.custom-lock-class-icon.is-on {
  opacity: 1;
}
.custom-lock-class-icon.is-on {
  color: var(--pick);
}
.custom-lock-class-icon:disabled {
  cursor: default;
  opacity: 0.25;
}
.custom-lock-class-track {
  display: block;
  min-width: 0;
}
.custom-lock-class-bar {
  display: block;
  min-width: 4px;
}
.custom-lock-class-share {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  text-align: right;
}
.custom-lock-suits {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
}
.custom-lock-suits > span {
  width: 64px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-normal);
}
.custom-lock-suit {
  width: 32px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 0;
  font-size: 16px;
  cursor: pointer;
}
.custom-lock-suit.is-s { color: #c5c5c5; }
.custom-lock-suit.is-h { color: #f05252; }
.custom-lock-suit.is-d { color: #568bff; }
.custom-lock-suit.is-c { color: #58b967; }
.custom-lock-suit:hover {
  background: var(--surface-active);
}
.custom-lock-suit.is-on {
  border-color: var(--pick);
  background: color-mix(in srgb, var(--pick) 16%, transparent);
}
.custom-lock-suit.is-exclude {
  border-color: rgb(var(--ink) / 0.18);
  background: transparent;
}
.custom-lock-suit.is-exclude.is-on {
  border-color: #ff5d5d;
  background: rgba(255, 93, 93, 0.12);
}
.custom-lock-table th {
  white-space: nowrap;
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--surface-panel);
}
.custom-lock-table tbody tr {
  cursor: default;
}
.custom-lock-combo-hand {
  display: inline-flex;
  height: 24px;
  align-items: center;
  gap: 4px;
}
.custom-lock-combo-strategy {
  width: 38%;
}
.custom-lock-bar.is-combo {
  height: 12px;
  border-radius: 4px;
}
.custom-lock-menu-list {
  z-index: 60;
  max-height: min(460px, calc(100vh - 180px));
  max-height: min(460px, calc(100dvh - 180px));
  overflow-y: auto;
}
.custom-lock-menu-list .ds-menu-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-lock-menu-list .ds-menu-item > svg {
  margin-left: auto;
}
.custom-lock-paste {
  position: absolute;
  z-index: 50;
  top: 112px;
  left: 50%;
  width: 380px;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  animation: ds-menu-show 160ms linear both;
}
.custom-lock-paste .ds-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.custom-lock-paste label {
  font-size: 12px;
  color: var(--text-muted);
}
.custom-lock-paste .ds-input.is-textarea {
  min-height: 112px;
}
.custom-lock-paste-problem {
  font-size: 12px;
  color: #ff5d5d;
}
.custom-lock-toast {
  position: absolute;
  z-index: 45;
  bottom: 72px;
  left: 50%;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  animation:
    custom-lock-toast-rise 220ms cubic-bezier(0.22, 1, 0.36, 1) both,
    ds-menu-show 160ms linear both;
}
.custom-lock-keep {
  display: inline-flex;
}
.custom-lock-history { margin-left: 4px; }
.custom-lock-history-button { gap: 8px; }
.custom-lock-history-button.is-on { box-shadow: inset 0 0 0 1px var(--accent-brand); }
.custom-lock-history-button .custom-lock-history-caret { color: var(--text-muted); transition: transform 200ms ease; }
.custom-lock-history-button.is-on .custom-lock-history-caret { transform: rotate(180deg); }
.custom-lock-history-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-hover);
  padding: 0 4px;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
}
.custom-lock-history-menu {
  width: 320px;
  max-height: 320px;
  gap: 4px;
  overflow-y: auto;
}
.custom-lock-history-menu .custom-lock-history-item {
  display: grid;
  height: auto;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  padding: 8px 8px 8px 12px;
  white-space: normal;
}
.custom-lock-history-what {
  overflow: hidden;
  grid-column: 1;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-lock-history-when {
  grid-column: 1;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.custom-lock-history-now {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.custom-lock-history-item > .ds-menu-check {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.custom-profile-menu {
  display: flex;
  width: 100%;
}
.custom-profile-menu .ds-select {
  width: 100%;
  min-width: 0;
}
.custom-profile-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.custom-profile-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}
.custom-profile-dot.is-none {
  box-shadow: inset 0 0 0 1px var(--text-muted);
}
.custom-profile-list {
  right: 0;
  min-width: 0;
  max-height: 360px;
  overflow-y: auto;
}
.custom-profile-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-profile-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 8px;
}
.custom-profile-state.is-error {
  color: var(--grade-bad);
}
.custom-profiles-backdrop {
  z-index: 65;
}
.custom-profiles {
  width: min(840px, 100%);
  height: min(640px, 100%);
  max-height: 100%;
  color: var(--text-normal);
  font-size: 12px;
}
.custom-profiles-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: var(--bold);
  line-height: 28px;
}
.custom-profiles-body {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 216px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.custom-profiles-nav {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 4px 12px 12px;
}
.custom-profiles-group {
  padding-inline: 0;
}
.custom-profiles-row {
  gap: 8px;
  margin-inline: -12px;
}
.custom-profiles-nav .custom-profile-state {
  padding-inline: 0;
}
.custom-profiles-skeleton {
  margin: 8px 0;
}
.custom-profiles-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: 16px 20px 20px;
}
.custom-profiles-form .ds-field-label small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.custom-profiles-description {
  min-height: 64px;
}
.custom-profiles-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.custom-profiles-swatch {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}
.custom-profiles-swatch.is-selected {
  box-shadow: 0 0 0 2px var(--surface-panel), 0 0 0 4px var(--pick);
}
.custom-profiles-swatch:disabled {
  cursor: default;
}
.custom-profiles-swatch:disabled:not(.is-selected) {
  opacity: 0.4;
}
.custom-profiles-incentives {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
  gap: 12px;
}
.custom-profiles-foot {
  justify-content: space-between;
  gap: 12px;
}
.custom-profiles-status,
.custom-profiles-question {
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}
.custom-profiles-question {
  color: var(--text-strong);
  font-weight: 600;
}
.custom-profiles-status.is-problem {
  color: var(--grade-bad);
}
.custom-profiles-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
@media (max-width: 1080px) {
  .custom-profiles-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .custom-profiles-nav {
    max-height: 160px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

.custom-edit-backdrop {
  z-index: 70;
}
.custom-edit-panel {
  width: min(420px, 100%);
  max-height: 100%;
}
.custom-edit-panel.is-busy {
  pointer-events: none;
}
.custom-edit-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.custom-edit-rows {
  display: flex;
  height: 216px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding-right: 4px;
}
.custom-edit-empty {
  flex: 1;
  justify-content: center;
}
.custom-edit-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.custom-edit-actions .custom-edit-add {
  flex: 1;
}
.custom-edit-actions .custom-edit-allin {
  flex: none;
  padding: 0 12px;
}
.custom-edit-row {
  display: flex;
  flex: none;
  flex-direction: column;
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 4px 8px;
}
.custom-edit-row-controls {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: 80px minmax(0, 1fr) 76px auto 20px;
}
.custom-edit-row-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-normal);
}
.custom-edit-value-box {
  position: relative;
}
.custom-edit-value-box .custom-edit-value {
  padding: 0 28px 0 8px;
  -moz-appearance: textfield;
}
.custom-edit-value-box .custom-edit-value::-webkit-outer-spin-button,
.custom-edit-value-box .custom-edit-value::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.custom-edit-stepper {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  display: flex;
  width: 20px;
  flex-direction: column;
}
.custom-edit-stepper button {
  display: grid;
  flex: 1;
  place-items: center;
  border: none;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
}
.custom-edit-stepper button:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--accent-brand);
}
.custom-edit-value {
  text-align: right;
}
.custom-edit-value.is-invalid {
  box-shadow: inset 0 0 0 1px var(--grade-bad);
}
.custom-edit-allin {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 12px;
  font-size: 12px;
  color: var(--text-normal);
  cursor: pointer;
}
.custom-edit-allin input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.custom-edit-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  border: 1px dashed rgb(var(--ink) / 0.18);
  border-radius: 12px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
}
.custom-edit-add:hover:not(:disabled) {
  border-color: var(--accent-brand);
  color: var(--text-strong);
}
.custom-edit-add:disabled {
  opacity: 0.4;
  cursor: default;
}
.custom-edit-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.custom-edit-hint.is-warning {
  color: var(--accent-brand);
}
.custom-edit-footer {
  justify-content: space-between;
}
.custom-edit-footer-actions {
  display: flex;
  gap: 8px;
}
.custom-edit-remove {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  color: #e5534b;
  cursor: pointer;
}
.custom-edit-remove svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.custom-edit-remove:hover:not(:disabled) {
  color: #ff6b63;
}
.custom-edit-remove:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 2px;
}
.custom-edit-anchor {
  position: fixed;
  z-index: 70;
  display: flex;
  width: min(420px, calc(100vw - 32px));
  flex-direction: column;
  visibility: hidden;
}
.custom-edit-anchor.is-placed {
  visibility: visible;
}
.custom-edit-anchor .custom-edit-panel {
  width: 100%;
  min-height: 0;
}
.custom-edit-arrow {
  position: absolute;
  top: -8px;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 4px 0 0 0;
  background: var(--surface-panel);
  transform: rotate(45deg);
}
.custom-edit-row.is-passive .custom-edit-row-controls {
  min-height: 32px;
}
.custom-edit-passive-track {
  grid-column: 2 / 5;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-raised);
}
.custom-edit-row.is-removed {
  background: transparent;
  outline: 1px dashed var(--line-strong);
  outline-offset: -1px;
}
.custom-edit-row.is-removed .custom-edit-row-name {
  color: var(--text-muted);
  text-decoration: line-through;
}
.custom-edit-row.is-removed .custom-edit-passive-track {
  background: transparent;
}
.custom-edit-restore {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  color: #3fb950;
  cursor: pointer;
}
.custom-edit-restore svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.custom-edit-restore:hover:not(:disabled) {
  color: #56d364;
}
.custom-edit-allin .ds-switch::after { transition: transform 260ms cubic-bezier(0.3, 1.4, 0.5, 1), filter 200ms ease; }
.custom-edit-allin:hover .ds-switch::after { transform: scale(1.12); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--pick) 75%, transparent)); }
.custom-edit-allin:hover .ds-switch.is-on::after { transform: translateX(16px) scale(1.12); }
.custom-edit-allin:active .ds-switch::after { transform: scaleX(1.35); }
.custom-edit-allin:active .ds-switch.is-on::after { transform: translateX(16px) scaleX(1.35); }

.size-edit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
  padding: 16px;
  --surface-panel: #1f1f1f;
  --surface-raised: rgb(var(--ink) / 0.15);
  --text-strong: rgb(var(--ink) / 0.93);
  --text-normal: rgb(var(--ink) / 0.93);
  --text-soft: rgb(var(--ink) / 0.57);
  --text-muted: rgb(var(--ink) / 0.4);
  --line-strong: rgb(var(--ink) / 0.2);
  --accent-brand: var(--accent-orange);
  --pick: #e3e5e9;
}
.size-edit {
  display: grid;
  width: 560px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 16px;
  background: #1f1f1f;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24), 0 24px 64px rgba(0, 0, 0, 0.48);
  color: rgb(var(--ink) / 0.93);
  font-variant-numeric: tabular-nums;
}
.size-edit.has-presets {
  width: 760px;
  grid-template-columns: 200px minmax(0, 1fr);
}
.size-edit.is-busy {
  pointer-events: none;
}
.size-edit-presets {
  display: flex;
  grid-row: 1 / 3;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
  background: #191919;
  padding: 24px 16px;
}
.size-edit-presets > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.size-edit-presets > span {
  color: rgb(var(--ink) / 0.57);
  font-size: 12px;
  line-height: 16px;
}
.size-edit-preset-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.size-edit-preset {
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgb(var(--ink) / 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  color: rgb(var(--ink) / 0.93);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}
.size-edit-preset:hover:not(:disabled) {
  background: rgb(var(--ink) / 0.1);
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.2);
}
.size-edit-preset.is-on {
  background: color-mix(in srgb, var(--accent-orange) 12%, transparent);
  box-shadow: inset 0 0 0 1px var(--accent-orange);
  color: var(--accent-orange);
}
.size-edit-preset.is-on:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent-orange) 20%, transparent);
  box-shadow: inset 0 0 0 1px var(--accent-orange);
}
.size-edit-preset:disabled {
  opacity: 0.32;
  cursor: default;
}
.size-edit-preset:focus-visible,
.size-edit-close:focus-visible,
.size-edit-add:focus-visible,
.size-edit-reset:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}
.size-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
}
.size-edit-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: var(--bold);
  line-height: 28px;
}
.size-edit-head span {
  display: block;
  color: rgb(var(--ink) / 0.57);
  font-size: 16px;
  line-height: 24px;
}
.size-edit-close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgb(var(--ink) / 0.57);
  cursor: pointer;
}
.size-edit-close:hover:not(:disabled) {
  background: rgb(var(--ink) / 0.07);
  color: rgb(var(--ink) / 0.93);
}
.size-edit-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 0 24px 24px;
}
.size-edit-rows {
  display: flex;
  height: 328px;
  flex: none;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.size-edit-row {
  position: relative;
  display: grid;
  height: 48px;
  flex: none;
  align-items: center;
  gap: 12px;
  grid-template-columns: 56px minmax(0, 1fr) 152px 64px 24px;
  border-radius: 12px;
  background: rgb(var(--ink) / 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 12px 0 16px;
}
.size-edit-name {
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.size-edit-row.is-passive {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-right: 16px;
  cursor: pointer;
}
.size-edit-row.is-off .size-edit-name {
  color: rgb(var(--ink) / 0.4);
}
.size-edit-row.is-passive input,
.size-edit-allin input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.size-edit-switch {
  position: relative;
  width: 40px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  background: rgb(var(--ink) / 0.1);
  transition: background-color 160ms ease;
}
.size-edit-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.06), 0 2px 8px rgba(0, 0, 0, 0.24);
  transition: transform 200ms cubic-bezier(0.3, 1.3, 0.5, 1);
}
.size-edit-switch.is-on {
  background: var(--accent-orange);
}
.size-edit-switch.is-on::after {
  transform: translateX(16px);
}
input:focus-visible + .size-edit-switch {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}
input:disabled + .size-edit-switch {
  opacity: 0.4;
}
.size-edit-range {
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.size-edit-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-orange) 0 calc(var(--v) * 100%), rgb(var(--ink) / 0.1) calc(var(--v) * 100%));
}
.size-edit-range::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6px;
  appearance: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.06), 0 2px 8px rgba(0, 0, 0, 0.32);
  transition: transform 120ms ease;
}
.size-edit-range:hover::-webkit-slider-thumb {
  transform: scale(1.12);
}
.size-edit-range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgb(var(--ink) / 0.1);
}
.size-edit-range::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent-orange);
}
.size-edit-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
}
.size-edit-range:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 4px;
}
.size-edit-field {
  display: flex;
  height: 36px;
  align-items: center;
  padding: 0 4px 0 8px;
}
.size-edit-field,
:is(.theme-brand, .theme-contrast) .ds-modal:is(.custom-shell, .custom-range-panel, .custom-rake-picker, .custom-tree-editor, .custom-profiles) :is(.ds-stepper, .ds-input, .ds-select, .custom-select, .custom-board-button) {
  border: none;
  border-radius: 8px;
  background: rgb(var(--ink) / 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}
.size-edit-field:hover,
.size-edit-field:focus-within,
:is(.theme-brand, .theme-contrast) .ds-modal:is(.custom-shell, .custom-range-panel, .custom-rake-picker, .custom-tree-editor, .custom-profiles) :is(.ds-stepper, .ds-input, .ds-select, .custom-select, .custom-board-button):is(:hover, :focus-within) {
  box-shadow: 0 0 0 1px var(--accent-orange), 0 0 8px 1px color-mix(in srgb, var(--accent-orange) 60%, transparent);
}
.size-edit-field.is-invalid {
  box-shadow: inset 0 0 0 1px #f17778;
}
.size-edit-value {
  width: 100%;
  min-width: 0;
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  color: rgb(var(--ink) / 0.93);
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  outline: none;
  -moz-appearance: textfield;
}
.size-edit-value::-webkit-outer-spin-button,
.size-edit-value::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.size-edit-value:disabled {
  opacity: 0.4;
}
.size-edit-stepper {
  display: flex;
  width: 16px;
  height: 28px;
  flex: none;
  flex-direction: column;
  margin: 0 4px;
}
.size-edit-stepper button {
  display: grid;
  flex: 1;
  place-items: center;
  border: none;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  color: rgb(var(--ink) / 0.4);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.size-edit-stepper button:hover:not(:disabled) {
  background: rgb(var(--ink) / 0.07);
  color: rgb(var(--ink) / 0.93);
}
.size-edit-units {
  display: flex;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: rgb(var(--ink) / 0.05);
}
.size-edit-units button {
  min-width: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 0 4px;
  color: rgb(var(--ink) / 0.57);
  font-size: 12px;
  font-weight: var(--bold);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.size-edit-units button:hover:not(:disabled) {
  color: rgb(var(--ink) / 0.93);
}
.size-edit-units button.is-on {
  background: rgb(var(--ink) / 0.15);
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.2);
  color: rgb(var(--ink) / 0.93);
}
.size-edit-track {
  height: 4px;
  border-radius: 999px;
  background: var(--accent-orange);
}
.size-edit-field.is-static,
.size-edit-field.is-static:hover {
  justify-content: flex-end;
  gap: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.08);
  padding: 0 12px;
}
.size-edit-static {
  font-size: 16px;
  font-weight: 600;
}
.size-edit-static-unit {
  color: rgb(var(--ink) / 0.57);
  font-size: 12px;
  font-weight: var(--bold);
}
.size-edit-row.is-allin {
  background: color-mix(in srgb, var(--accent-orange) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-orange) 30%, transparent);
}
.size-edit-other {
  overflow: hidden;
  color: rgb(var(--ink) / 0.57);
  font-size: 16px;
  line-height: 24px;
  text-align: right;
  white-space: nowrap;
}
.size-edit-empty {
  display: grid;
  flex: 1;
  place-items: center;
  color: rgb(var(--ink) / 0.57);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}
.size-edit-actions {
  display: grid;
  flex: none;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}
.size-edit-add {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgb(var(--ink) / 0.2);
  border-radius: 12px;
  background: transparent;
  color: rgb(var(--ink) / 0.57);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}
.size-edit-add:hover:not(:disabled) {
  border-color: rgb(var(--ink) / 0.4);
  background: rgb(var(--ink) / 0.03);
  color: rgb(var(--ink) / 0.93);
}
.size-edit-add:disabled {
  opacity: 0.4;
  cursor: default;
}
.size-edit-allin {
  position: relative;
  display: flex;
  height: 48px;
  align-items: center;
  gap: 16px;
  border-radius: 12px;
  background: rgb(var(--ink) / 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 16px;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.size-edit-allin.is-on {
  background: color-mix(in srgb, var(--accent-orange) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-orange) 40%, transparent);
}
.size-edit-allin-text {
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
}
.size-edit-allin-text strong {
  margin-right: 4px;
  font-weight: 600;
}
.size-edit-allin-text em {
  color: rgb(var(--ink) / 0.57);
  font-style: normal;
}
.size-edit-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 12px;
  background: rgb(var(--ink) / 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 12px;
}
.size-edit-presets .size-edit-notes {
  margin-top: auto;
}
.size-edit-presets .size-edit-preset-list {
  margin-bottom: 16px;
}
.size-edit-preset-list {
  flex: none;
}
.size-edit-notes p {
  margin: 0;
  color: rgb(var(--ink) / 0.57);
  font-size: 12px;
  line-height: 16px;
}
.size-edit-notes p.is-warning {
  color: #e49c06;
}
.size-edit-banner {
  border-radius: 12px;
  background: rgb(var(--ink) / 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 12px 16px;
  font-size: 16px;
  line-height: 24px;
}
.size-edit-banner.is-danger {
  background: color-mix(in srgb, #de3a3a 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #db3a3f 22%, transparent);
  color: #f17778;
}
.size-edit-foot {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 16px 24px;
}
.size-edit-foot-actions {
  display: flex;
  gap: 8px;
}
.size-edit-reset {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 0 12px;
  color: rgb(var(--ink) / 0.57);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.size-edit-reset:hover:not(:disabled) {
  background: rgb(var(--ink) / 0.07);
  color: rgb(var(--ink) / 0.93);
}
@media (max-width: 760px) {
  .size-edit-backdrop {
    padding: 8px;
  }
  .size-edit.has-presets {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }
  .size-edit-presets {
    grid-row: 2;
    border-right: none;
    background: transparent;
    padding: 0 16px 12px;
  }
  .size-edit-presets > strong,
  .size-edit-presets > span {
    display: none;
  }
  .size-edit-preset-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 0;
  }
  .size-edit-preset {
    height: 32px;
    border-radius: 8px;
    font-size: 12px;
  }
  .size-edit.has-presets .size-edit-head {
    grid-row: 1;
  }
  .size-edit-head {
    padding: 16px 16px 12px;
  }
  .size-edit-body {
    padding: 0 16px 16px;
  }
  .size-edit-row {
    gap: 8px;
    grid-template-columns: 48px minmax(0, 1fr) 152px 24px;
    padding: 0 8px 0 12px;
  }
  .size-edit-other {
    display: none;
  }
  .size-edit-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .size-edit-allin {
    justify-content: space-between;
  }
  .size-edit-foot {
    padding: 12px 16px;
  }
}

.custom-compare-backdrop {
  z-index: 70;
  padding: 20px;
}
.custom-compare-panel {
  width: min(1760px, 100%);
  height: 100%;
}
.custom-compare-panel * {
  overscroll-behavior: auto;
}
.custom-compare-panel .custom-compare-center-scroll,
.custom-compare-panel .custom-compare-body {
  overscroll-behavior: contain;
}
.custom-compare-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 8px 20px;
}
.custom-compare-head h3 {
  white-space: nowrap;
  font-size: 16px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.custom-compare-node {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.custom-compare-board {
  margin-right: 4px;
}
.custom-compare-chip {
  cursor: default;
}
.custom-compare-chip.is-seat {
  color: var(--text-strong);
}
.custom-compare-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.custom-compare-note {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  height: 24px;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-brand) 8%, transparent);
  padding: 0 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-normal);
  white-space: nowrap;
}
.custom-compare-note > span:not(.custom-compare-change-chips) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-compare-note > svg {
  flex-shrink: 0;
  color: var(--accent-brand);
}
.custom-compare-change-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-left: auto;
}
.custom-compare-skeleton-line {
  width: 220px;
}
.custom-compare-body {
  display: grid;
  min-height: 0;
  flex: 1;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  padding: 12px 20px 20px;
}
.custom-compare-slot {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
}
.custom-compare-slot-head {
  display: flex;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}
.custom-compare-slot-head strong {
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-strong);
}
.custom-compare-matrix-box {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  container-type: size;
}
.custom-compare-matrix-box > .matrix {
  width: min(100cqw, calc(100cqh * 800 / 620));
  height: min(100cqh, calc(100cqw * 1.05));
  aspect-ratio: auto;
}
.custom-compare-matrix-box > .custom-compare-missing {
  width: min(100cqw, calc(100cqh * 800 / 620));
}
.custom-compare-sheen {
  position: absolute;
  z-index: 5;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--ink) / 0.05), rgb(var(--ink) / 0.12), rgb(var(--ink) / 0.05), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: custom-compare-sheen 1100ms ease-in-out infinite;
}
@keyframes custom-compare-sheen {
  from { transform: translateX(-120%) skewX(-18deg); }
  to { transform: translateX(300%) skewX(-18deg); }
}
.custom-compare-missing {
  display: flex;
  aspect-ratio: 800 / 620;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgb(var(--ink) / 0.12);
  background: var(--surface-sunken);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}
.custom-compare-missing > svg {
  color: var(--text-muted);
}
.custom-compare-center {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
}
.custom-compare-center-bar {
  display: flex;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.custom-compare-sides {
  display: flex;
  flex-shrink: 0;
  overflow: hidden;
  scrollbar-gutter: stable both-edges;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 12px 8px;
  font-size: 12px;
  font-weight: var(--bold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.custom-compare-center-scroll {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}
.custom-compare-card {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-sunken);
  padding: 8px 12px;
}
.custom-compare-card-head {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
}
.custom-compare-card-head h4 {
  flex: 1;
  font-size: 12px;
  font-weight: var(--bold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.custom-compare-class {
  font-size: 16px;
  font-weight: var(--black);
  color: var(--text-strong);
}
.custom-compare-card-meta {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.custom-compare-message {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: var(--surface-sunken);
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-soft);
}
.custom-compare-hint {
  padding-bottom: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.custom-compare-rows {
  display: flex;
  flex-direction: column;
}
.custom-compare-rows.is-nested {
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding-top: 0;
}
.custom-compare-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}
.custom-compare-row-line,
.custom-compare-group-head {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
}
.custom-compare-value {
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: var(--heavy);
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.custom-compare-value.is-left {
  text-align: left;
}
.custom-compare-value.is-right {
  text-align: right;
}
.custom-compare-value.is-none {
  font-weight: 600;
  color: var(--text-muted);
}
.custom-compare-row-name {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}
.custom-compare-row-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-compare-swatch {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 4px;
}
.custom-compare-track {
  display: grid;
  height: 8px;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
}
.custom-compare-track > span {
  overflow: hidden;
  background: var(--surface-raised);
}
.custom-compare-track > .is-left {
  border-radius: 4px 0 0 4px;
}
.custom-compare-track > .is-right {
  border-radius: 0 4px 4px 0;
}
.custom-compare-track i {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.custom-compare-track > .is-left i {
  transform-origin: right center;
}
.custom-compare-track > .is-right i {
  transform-origin: left center;
}
.custom-compare-fill {
  background: rgb(var(--ink) / 0.42);
}
.custom-compare-delta {
  flex-shrink: 0;
  border-radius: 4px;
  padding: 0 4px;
  font-size: 12px;
  font-style: normal;
  font-weight: var(--bold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.custom-compare-delta.is-up {
  background: color-mix(in srgb, var(--grade-good) 16%, transparent);
  color: #7fd68c;
}
.custom-compare-delta.is-down {
  background: color-mix(in srgb, var(--grade-bad) 16%, transparent);
  color: #ff7d84;
}
.custom-compare-delta.is-flat {
  color: var(--text-muted);
}
.custom-compare-mixbar {
  display: grid;
  height: 12px;
  flex-shrink: 0;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
}
.custom-compare-mix-half {
  display: flex;
  overflow: hidden;
  background: var(--surface-raised);
}
.custom-compare-mix-half.is-left {
  border-radius: 4px 0 0 4px;
}
.custom-compare-mix-half.is-right {
  border-radius: 0 4px 4px 0;
}
.custom-compare-mix-half.is-empty {
  background: repeating-linear-gradient(135deg, #262626 0 4px, #303030 4px 8px);
}
.custom-compare-mix-half > i {
  height: 100%;
}
.custom-compare-groups {
  display: flex;
  flex-direction: column;
  margin-inline: -12px;
}
.custom-compare-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 12px 8px;
}
.custom-compare-group:hover {
  background: var(--surface-hover);
}
.custom-compare-group > .custom-compare-row {
  padding: 0;
}
.custom-compare-group-head {
  border: none;
  background: transparent;
  padding: 0;
  text-align: inherit;
  cursor: pointer;
}
.custom-compare-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 160ms ease;
}
.custom-compare-group.is-open .custom-compare-chevron {
  transform: rotate(90deg);
}
.custom-compare-group-head:hover .custom-compare-row-name {
  color: var(--text-strong);
}
.custom-compare-moved {
  flex-shrink: 0;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent-brand) 14%, transparent);
  padding: 0 4px;
  font-size: 12px;
  font-style: normal;
  font-weight: var(--bold);
  color: var(--accent-brand);
  font-variant-numeric: tabular-nums;
}
.custom-compare-move {
  display: grid;
  gap: 8px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  margin-inline: -12px;
}
.custom-compare-move strong {
  font-size: 12px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.custom-compare-move-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.custom-compare-skeleton {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.custom-compare-skeleton-mix {
  height: 12px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: var(--surface-raised);
}
.custom-compare-skeleton-row {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  padding: 8px 0;
}
.custom-compare-skeleton-row > span {
  height: 12px;
  border-radius: 4px;
  background: var(--surface-raised);
}
.custom-compare-skeleton-row > .is-value {
  width: 40px;
}
.custom-compare-skeleton-row > .is-value:nth-child(3) {
  justify-self: end;
}
.custom-compare-skeleton-row > .is-name {
  width: 48%;
  justify-self: center;
}
.custom-compare-skeleton-row:nth-child(3n + 2) > .is-name {
  width: 64%;
}
.custom-compare-skeleton-row:nth-child(3n) > .is-name {
  width: 36%;
}
.custom-compare-skeleton-row > .is-bar {
  height: 8px;
  grid-column: 1 / -1;
  border-radius: 4px;
}
.custom-compare-skeleton.is-groups .custom-compare-skeleton-row {
  padding: 4px 0 8px;
}
.custom-compare-skeleton.is-groups .custom-compare-skeleton-row > .is-bar {
  height: 12px;
  border-radius: 4px;
}
.custom-compare-skeleton.is-moves .custom-compare-skeleton-row {
  min-height: 32px;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  padding: 0;
}
.custom-compare-skeleton.is-moves .custom-compare-skeleton-row > .is-value {
  width: 32px;
}
.custom-compare-skeleton.is-moves .custom-compare-skeleton-row > .is-name {
  width: 72%;
  justify-self: start;
}
@media (max-width: 1360px) {
  .custom-compare-body {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 292px minmax(0, 1fr);
  }
}
@media (min-width: 761px) {
  .custom-compare-panel.is-pair .custom-compare-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1080px) {
  .custom-compare-body {
    overflow-y: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .custom-compare-center {
    order: 3;
    grid-column: 1 / -1;
  }
  .custom-compare-center-scroll {
    overflow: visible;
  }
  .custom-compare-slot:last-child {
    order: 2;
  }
  .custom-compare-matrix-box {
    flex: none;
    container-type: inline-size;
  }
  .custom-compare-matrix-box > .matrix,
  .custom-compare-matrix-box > .custom-compare-missing {
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 620;
  }
    .custom-compare-matrix .matrix-cell-metric {
    font-size: clamp(9px, 2.1cqw, 13px);
  }
}
@media (max-width: 760px) {
  .custom-compare-head {
    flex-wrap: wrap;
  }
  .custom-compare-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: var(--landing-stage);
  box-shadow: inset 0 -1px 0 var(--line), 0 12px 32px rgba(0, 0, 0, 0.35);
  padding: 0 32px;
  color: var(--text-normal);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.site-header a, .site-header button { -webkit-tap-highlight-color: transparent; }
.site-header-row {
  display: flex;
  max-width: 1120px;
  height: 56px;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}
.site-logo { display: flex; flex: none; align-items: center; gap: 8px; border-radius: 8px; }
.site-logo:focus-visible { outline: 2px solid var(--pick); outline-offset: 4px; }
.site-logo-brand { gap: 8px; }
.site-logo-brand .brand-logo-mark { height: 28px; }
.site-logo-brand .brand-logo-word { height: 20px; }
.site-nav { margin: 0 auto; }
.site-nav .ds-segment.is-selected { color: var(--pick); }
.site-nav .ds-segment:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.site-nav-pill {
  left: 0;
  pointer-events: none;
  transition: transform 460ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.site-nav.is-gliding .site-nav-pill { transition: none; }
.site-nav .ds-segment::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 4px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--action-allin) 0 22%, var(--action-raise) 22% 30.2%, var(--action-passive) 30.2% 65.6%,
    var(--action-fold) 65.6% 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 420ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
@media (hover: hover) {
  .site-nav .ds-segment:hover::after { transform: none; }
}
.site-nav .ds-segment:focus-visible::after { transform: none; }
.site-nav .ds-segment.is-held::after { transform: none; transition: none; }
.site-account { display: flex; align-items: center; gap: 12px; }
.site-language { flex-shrink: 0; }
.site-mode { flex-shrink: 0; }
.site-header .site-mode.ds-button::after { display: none; }
.site-header .site-mode.ds-button:is(:hover, :focus-visible) svg { transform: none; }
@media (max-width: 1100px) {
  .site-language .ds-select { min-width: 0; }
  .site-language .ds-select-value { display: none; }
}
@media (min-width: 701px) and (max-width: 899px) {
  .site-header { padding: 0 24px; }
  .site-header-row { gap: 12px; }
  .site-header .site-nav .ds-segment { padding: 0 4px; }
  .site-language .ds-select { padding: 0 8px; }
  .site-language .ds-select > svg { display: none; }
}
@media (min-width: 701px) and (max-width: 767px) {
  .site-logo-brand .brand-logo-word { display: none; }
}
@media (max-width: 700px) {
  .site-header { padding: 0 16px; }
  .site-header-row { flex-wrap: wrap; height: auto; gap: 8px; padding: 8px 0; }
  .site-header-row > .site-logo { margin-right: auto; }
  .site-logo-brand .brand-logo-mark { height: 24px; }
  .site-logo-brand .brand-logo-word { height: 16px; }
  .site-account { display: contents; }
  .site-account > .ds-button.is-primary { order: 1; }
  .site-header .site-nav { order: 2; flex: 1 1 calc(100% - 80px); min-width: 0; margin: 0; grid-auto-columns: minmax(max-content, 1fr); }
  .site-header .site-nav .ds-segment { padding: 0; }
  .site-account > :is(.site-mode, .site-language) { order: 3; }
  .site-language .ds-select { padding: 0 8px; }
  .site-language .ds-select > svg { display: none; }
}

.landing-page {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  padding: 0 32px;
  background: var(--surface-sunken);
  color: var(--text-normal);
}
.landing-page > *:not(.landing-skip):not(.site-header) {
  position: relative;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.landing-page > .landing-glow[aria-hidden="true"] {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  pointer-events: none;
  overflow-anchor: none;
}
.landing-page > .landing-glow[aria-hidden="true"]::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1800px;
  background:
    radial-gradient(900px 520px at 72% 104px, rgba(255, 158, 69, 0.13), transparent 70%),
    radial-gradient(700px 600px at -6% 1032px, rgba(255, 158, 69, 0.07), transparent 70%),
    radial-gradient(700px 600px at 106% 1340px, rgba(255, 158, 69, 0.06), transparent 70%);
}
.landing-glow > span {
  position: absolute;
  width: 980px;
  height: 840px;
  background: radial-gradient(700px 600px, rgba(255, 158, 69, 0.08), transparent 70%);
  transform: translate(-50%, -50%);
}
.landing-glow > span:nth-child(1) { top: 40%; left: 106%; }
.landing-glow > span:nth-child(2) { top: 56%; left: -6%; }
.landing-glow > span:nth-child(3) { top: 72%; left: 106%; }
.landing-glow > span:nth-child(4) { top: 86%; left: -6%; }
.landing-glow > span:nth-child(5) {
  top: 100%;
  left: 50%;
  width: 1260px;
  height: 560px;
  background: radial-gradient(900px 400px, rgba(255, 158, 69, 0.07), transparent 70%);
}
.landing-page > .site-header { margin: 0 -32px; }
.landing-skip {
  position: absolute;
  z-index: 60;
  top: 64px;
  left: 32px;
  display: inline-flex;
  height: 40px;
  align-items: center;
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 0 16px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: var(--bold);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-400%);
  transition: transform 240ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.landing-skip:focus-visible { transform: none; outline: 2px solid var(--pick); outline-offset: 2px; }
.landing-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:is(.landing-page, .site-header) .ds-button { transition: transform 240ms cubic-bezier(0.22, 0.8, 0.24, 1); }
:is(.landing-page, .site-header) .ds-button::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 4px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--action-allin) 0 22%, var(--action-raise) 22% 30.2%, var(--action-passive) 30.2% 65.6%,
    var(--action-fold) 65.6% 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 460ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
:is(.landing-page, .site-header) .ds-button:not(:hover):not(:active)::before { background: transparent; }
:is(.landing-page, .site-header) .ds-button.is-primary::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--action-allin) 70%, #000000) 0 22%, color-mix(in srgb, var(--action-raise) 45%, #000000) 22% 30.2%,
    color-mix(in srgb, var(--action-passive) 45%, #000000) 30.2% 65.6%, color-mix(in srgb, var(--action-fold) 70%, #000000) 65.6% 100%);
}
:is(.landing-page, .site-header) .ds-button svg { transition: transform 360ms cubic-bezier(0.22, 0.8, 0.24, 1); }
@media (hover: hover) {
  :is(.landing-page, .site-header) .ds-button:hover::after { transform: none; }
  :is(.landing-page, .site-header) .ds-button:hover svg { transform: translateX(4px); }
}
:is(.landing-page, .site-header) .ds-button:focus-visible::after { transform: none; }
:is(.landing-page, .site-header) .ds-button:focus-visible svg { transform: translateX(4px); }
:is(.landing-page, .site-header) .ds-button:active { transform: scale(0.97); }
.landing-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  color: var(--landing-accent);
  font-size: 16px;
  font-weight: var(--bold);
  line-height: 24px;
  text-decoration: none;
}
.landing-link > span { position: relative; }
.landing-link > span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 420ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.landing-link > svg { flex-shrink: 0; transition: transform 360ms cubic-bezier(0.22, 0.8, 0.24, 1); }
.landing-link.is-mail > svg { order: -1; }
@media (hover: hover) {
  .landing-link:hover > span::after { transform: none; }
  .landing-link:hover > svg { transform: translateX(4px); }
}
.landing-link:focus-visible { outline: 2px solid var(--pick); outline-offset: 4px; }
.landing-link:focus-visible > span::after { transform: none; }
.landing-rule {
  display: block;
  width: 96px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--action-allin) 0 22%, var(--action-raise) 22% 30.2%, var(--action-passive) 30.2% 65.6%,
    var(--action-fold) 65.6% 100%);
  transform-origin: 0 50%;
}
.landing-page h2 { margin: 0; color: var(--text-strong); font-size: 40px; font-weight: var(--heavy); line-height: 48px; letter-spacing: -1px; }
.landing-page :is(h1, h2, h3) { overflow-wrap: break-word; hyphens: auto; }
.landing-head > p { max-width: 600px; margin: 16px 0 0; color: var(--text-dim); font-size: 20px; line-height: 32px; }
.landing-hero {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 64px 0 96px;
}
.landing-hero:focus { outline: none; }
.landing-hero-text { grid-column: 1 / 7; grid-row: 1; align-self: end; }
.landing-hero h1 {
  margin: 0 0 0 -4px;
  color: var(--text-strong);
  font-size: 64px;
  font-weight: var(--heavy);
  line-height: 68px;
  letter-spacing: -2px;
}
.landing-title-line { display: block; }
.landing-mask { display: inline-block; overflow: clip; }
.landing-mask > span { display: inline-block; }
.landing-accent { position: relative; display: inline-block; color: var(--landing-accent); }
.landing-accent-bar {
  position: absolute;
  right: 12px;
  bottom: -4px;
  left: 4px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--action-allin) 0 22%, var(--action-raise) 22% 30.2%, var(--action-passive) 30.2% 65.6%,
    var(--action-fold) 65.6% 100%);
  transform-origin: 0 50%;
}
.landing-lead {
  max-width: 480px;
  margin: 24px 0 32px;
  color: var(--text-soft);
  font-size: 20px;
  line-height: 32px;
}
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.landing-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--accent-orange) 56%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-orange) 16%, transparent);
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
  text-wrap: balance;
  text-decoration: none;
}
a.landing-promo:hover { background: color-mix(in srgb, var(--accent-orange) 24%, transparent); }
.landing-promo svg { flex: none; }
.landing-promo-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-orange);
}
.landing-readout {
  grid-column: 1 / 7;
  grid-row: 2;
  align-self: start;
  max-width: 464px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.landing-readout-head { display: flex; align-items: flex-end; gap: 16px; }
.landing-readout-hand {
  min-width: 152px;
  color: var(--pick);
  font-size: 64px;
  font-weight: var(--heavy);
  line-height: 64px;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.landing-readout-kind { display: flex; flex-direction: column; color: var(--text-strong); font-size: 16px; font-weight: var(--bold); line-height: 24px; }
.landing-readout-kind small { color: var(--text-soft); font-size: 12px; font-weight: 600; line-height: 16px; }
.landing-readout-bar {
  position: relative;
  display: block;
  height: 8px;
  margin: 20px 0 16px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-raised);
}
.landing-readout-bar i {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transition: transform 640ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.landing-readout-bar i:nth-child(1) { z-index: 4; }
.landing-readout-bar i:nth-child(2) { z-index: 3; }
.landing-readout-bar i:nth-child(3) { z-index: 2; }
.landing-readout-bar i:nth-child(4) { z-index: 1; }
.landing-readout-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.landing-readout-list li { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.landing-readout-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  white-space: nowrap;
}
.landing-readout-list span i { width: 8px; height: 8px; flex-shrink: 0; border-radius: 999px; }
.landing-readout-list b {
  color: var(--text-strong);
  font-size: 24px;
  font-weight: var(--heavy);
  line-height: 32px;
  font-variant-numeric: tabular-nums;
}
.landing-readout-list li.is-zero b { color: var(--text-muted); }
.landing-readout-hint { margin: 12px 0 0; color: var(--text-soft); font-size: 12px; font-weight: 600; line-height: 16px; }
.landing-stage {
  position: relative;
  grid-column: 7 / 14;
  grid-row: 1 / 3;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--landing-stage);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}
.landing-page .landing-matrix-wrap.study-columns.study-columns { display: block; }
.landing-page .landing-matrix-wrap.study-columns > .matrix-panel.matrix-panel.matrix-panel { display: block; min-height: 0; border-radius: 0; }
.landing-page .landing-matrix-wrap.study-columns > .matrix-panel.matrix-panel.matrix-panel :is(.matrix, .matrix-placeholder) {
  flex: none;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
}
@container study-matrix (max-width: 379px) {
  .landing-page .landing-matrix-wrap.study-columns.study-columns > .matrix-panel .matrix-cell .matrix-cell-label.matrix-cell-label { font-size: 10px; }
}
@container study-matrix (max-width: 329px) {
  .landing-page .landing-matrix-wrap.study-columns.study-columns > .matrix-panel .matrix-cell .matrix-cell-label.matrix-cell-label { font-size: 9px; }
}
.landing-stage-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}
.landing-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.landing-legend span { display: inline-flex; align-items: center; gap: 4px; }
.landing-legend i { width: 8px; height: 8px; border-radius: 999px; }
.landing-tools {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 56px;
  padding: 32px 0 0;
}
.landing-tools > .landing-head { grid-column: 1 / 10; }
.landing-page h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--text-strong); font-size: 32px; font-weight: var(--heavy); line-height: 40px; letter-spacing: -1px; }
.landing-page h3 svg { flex-shrink: 0; color: var(--landing-accent); }
.landing-story { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: start; }
.landing-story-steps { grid-column: 1 / 5; margin: 0; padding: 0; list-style: none; }
.landing-story-step {
  position: relative;
  display: flex;
  min-height: 64vh;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid var(--line);
  padding: 0 0 0 32px;
  opacity: 0.4;
  transition: opacity 420ms ease;
}
.landing-story-step::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 2px;
  background: linear-gradient(180deg, var(--action-allin) 0 22%, var(--action-raise) 22% 30.2%, var(--action-passive) 30.2% 65.6%,
    var(--action-fold) 65.6% 100%);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 700ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.landing-story-step.is-active { opacity: 1; }
.landing-story-step.is-active::before { transform: none; }
.landing-story-num { color: color-mix(in srgb, var(--text-strong) 14%, transparent); font-size: 64px; font-weight: var(--heavy); line-height: 64px; letter-spacing: -2px; }
.landing-story-step h3 { margin: 16px 0 12px; }
.landing-story-step h3 button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 8px;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.landing-story-step h3 button:focus-visible { outline: 2px solid var(--pick); outline-offset: 4px; }
.landing-story-step > p, .landing-story-words > p { max-width: 320px; margin: 0 0 20px; color: var(--text-dim); font-size: 20px; line-height: 32px; }
.landing-story-stage { position: sticky; top: max(88px, calc(50vh - 280px)); grid-column: 5 / -1; }
.landing-story-scenes { display: grid; }
.landing-story-scene {
  display: grid;
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transition: opacity 360ms ease, transform 600ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.landing-story-scene.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.landing-story-words { display: none; }
.landing-shot { display: block; }
.landing-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-page);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.landing-how {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 48px;
  padding: 112px 0 0;
}
.landing-how > .landing-head { grid-column: 1 / 9; }
.landing-line-track { position: relative; grid-column: 1 / -1; }
.landing-line-seg {
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--action-allin) 0 22%, var(--action-raise) 22% 30.2%, var(--action-passive) 30.2% 65.6%,
    var(--action-fold) 65.6% 100%);
  transform-origin: 0 50%;
}
.landing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin: 0; padding: 0; list-style: none; }
.landing-step { position: relative; padding-top: 48px; }
.landing-step-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 2px var(--pick);
}
.landing-step-num {
  display: block;
  color: var(--surface-sunken);
  font-size: 80px;
  font-weight: var(--heavy);
  line-height: 80px;
  letter-spacing: -3px;
  -webkit-text-stroke: 2px var(--text-muted);
  paint-order: stroke fill;
}
.landing-step h3 { display: block; margin: 16px 0 8px; font-size: 24px; line-height: 32px; letter-spacing: -0.5px; }
.landing-step p { max-width: 320px; margin: 0; color: var(--text-dim); font-size: 20px; line-height: 32px; }
.landing-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 32px;
  margin-top: 112px;
  padding: 48px 0 0;
  border-top: 1px solid var(--line);
}
.landing-facts h2 { grid-column: 1 / -1; max-width: 720px; }
.landing-fact { min-width: 0; }
.landing-fact b {
  display: block;
  min-height: 88px;
  color: var(--text-strong);
  font-size: 64px;
  font-weight: var(--heavy);
  line-height: 64px;
  letter-spacing: -2.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.landing-fact b small { display: block; color: var(--text-dim); font-size: 24px; line-height: 24px; letter-spacing: -0.5px; }
.landing-fact span { display: block; margin-top: 12px; color: var(--text-dim); font-size: 20px; line-height: 32px; }
.landing-facts-mix { display: flex; grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 4px; transform-origin: 0 50%; }
.landing-facts-mix i { display: block; height: 100%; }
.landing-news { padding: 96px 0 0; }
.landing-news-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.landing-news-title p { max-width: 600px; margin: 20px 0 0; color: var(--text-dim); font-size: 20px; line-height: 32px; }
.landing-news .news-grid { margin-top: 32px; }
.landing-faq {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  column-gap: 16px;
  padding: 112px 0 64px;
}
.landing-faq-intro { grid-column: 1 / 6; align-self: start; }
.landing-faq-intro > p { margin: 16px 0 0; color: var(--text-dim); font-size: 16px; line-height: 24px; }
.landing-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: var(--heavy);
  line-height: 16px;
}
.landing-faq-contact {
  display: grid;
  gap: 4px;
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 158, 69, 0.1), rgba(255, 158, 69, 0.02) 60%), var(--surface-panel);
}
.landing-faq-contact b { color: var(--text-strong); font-size: 16px; line-height: 24px; }
.landing-faq-contact > span { color: var(--text-dim); font-size: 16px; line-height: 24px; }
.landing-faq-contact-head { margin: 0; color: var(--text-dim); font-size: 16px; line-height: 24px; }
.landing-faq-contact .landing-link { margin-top: 8px; }
.landing-faq-contact-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.landing-faq-contact-ways .ds-button { min-width: 0; padding: 0 8px; }
.landing-faq-contact-ways .ds-button:hover svg, .landing-faq-contact-ways .ds-button:focus-visible svg { transform: none; }
.landing-faq-topics { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }
.landing-faq-topic {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 12px;
  background: none;
  padding: 0 16px;
  color: var(--text-dim);
  font: inherit;
  font-size: 16px;
  font-weight: var(--bold);
  line-height: 24px;
  text-align: left;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(0.22, 0.8, 0.24, 1), color 240ms ease;
}
.landing-faq-topic span { flex: 1; min-width: 0; }
.landing-faq-topic small { color: var(--text-muted); font-size: 12px; font-weight: var(--bold); line-height: 16px; font-variant-numeric: tabular-nums; }
.landing-faq-topic:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.landing-faq-topic.is-picked {
  background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 16%, transparent), color-mix(in srgb, var(--pick) 4%, transparent));
  box-shadow: inset 2px 0 0 var(--pick);
  color: var(--text-strong);
}
.landing-faq-topic.is-picked svg { color: var(--landing-accent); }
@media (hover: hover) {
  .landing-faq-topic:hover { background: color-mix(in srgb, var(--surface-panel) 50%, transparent); color: var(--text-strong); transform: translateX(4px); }
  .landing-faq-topic.is-picked:hover {
    background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 16%, transparent), color-mix(in srgb, var(--pick) 4%, transparent));
  }
}
.landing-faq-main { display: grid; min-width: 0; grid-column: 6 / 14; align-self: start; align-items: start; }
.landing-faq-main.is-growing { overflow-y: clip; }
.landing-faq-pane { display: none; min-width: 0; grid-area: 1 / 1; flex-direction: column; gap: 24px; }
.landing-faq-pane.is-picked {
  display: flex;
  animation: landing-faq-in 360ms cubic-bezier(0.22, 0.8, 0.24, 1) both, landing-faq-show 240ms linear both;
}
.landing-faq-head { display: flex; align-items: center; gap: 16px; }
.landing-faq-head > svg { flex-shrink: 0; color: var(--landing-accent); }
.landing-faq-head div { display: flex; min-width: 0; flex-direction: column; }
.landing-faq-head b { color: var(--text-strong); font-size: 20px; font-weight: var(--heavy); line-height: 28px; }
.landing-faq-head span { color: var(--text-dim); font-size: 16px; line-height: 24px; }
@keyframes landing-faq-in { from { transform: translateY(12px); } to { transform: none; } }
@keyframes landing-faq-show { from { opacity: 0; } to { opacity: 1; } }
.landing-faq-list { display: grid; align-content: start; gap: 8px; }
.landing-faq-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-panel) 25%, transparent);
  cursor: pointer;
}
.landing-faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 158, 69, 0.07), rgba(255, 158, 69, 0) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 158, 69, 0.38), 0 12px 32px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 360ms ease;
}
.landing-faq-item.is-open { background: var(--landing-faq-open); }
.landing-faq-item.is-open::before { opacity: 1; }
.landing-faq-summary {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 12px;
  background: none;
  padding: 16px 16px 16px 20px;
  color: var(--text-normal);
  font: inherit;
  font-size: 16px;
  font-weight: var(--bold);
  line-height: 24px;
  text-align: left;
  cursor: pointer;
}
.landing-faq-summary:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.landing-faq-summary { user-select: none; }
.landing-faq-item.is-open .landing-faq-summary { color: var(--text-strong); }
.landing-faq-question { flex: 1; min-width: 0; }
.landing-faq-toggle {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--text-muted);
  color: var(--text-soft);
  transition: transform 360ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.landing-faq-item.is-open .landing-faq-toggle { background: var(--landing-picked); color: var(--landing-accent); }
.landing-faq-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--landing-accent);
  opacity: 0;
  transition: opacity 280ms ease;
}
.landing-faq-toggle svg { position: relative; transition: transform 440ms cubic-bezier(0.22, 0.8, 0.24, 1); }
.landing-faq-item.is-open .landing-faq-toggle svg { transform: rotate(180deg); }
.landing-faq-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--action-allin) 0 22%, var(--action-raise) 22% 30.2%, var(--action-passive) 30.2% 65.6%,
    var(--action-fold) 65.6% 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  transition: transform 600ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.landing-faq-item.is-open::after { transform: none; }
.landing-faq-question { transition: transform 360ms cubic-bezier(0.22, 0.8, 0.24, 1); }
@media (hover: hover) {
  .landing-faq-item:hover::after { transform: none; }
  .landing-faq-item:hover .landing-faq-question { transform: translateX(4px); }
  .landing-faq-item:hover .landing-faq-toggle { color: var(--landing-on-pick); transform: scale(1.12); }
  .landing-faq-item:hover .landing-faq-toggle::before { opacity: 1; }
}
.landing-faq-item:focus-within::after { transform: none; }
.landing-faq-summary:focus-visible .landing-faq-toggle { color: var(--landing-on-pick); transform: scale(1.12); }
.landing-faq-summary:focus-visible .landing-faq-toggle::before { opacity: 1; }
.landing-faq-body { position: relative; height: 0; overflow: hidden; }
.landing-faq-item.is-open .landing-faq-body { height: auto; }
.landing-faq-item p {
  margin: 0;
  padding: 0 64px 20px 20px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 24px;
}
.landing-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px 20px;
  margin: 0;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--landing-stage);
}
.landing-age {
  display: grid;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  place-items: center;
  border: 2px solid var(--landing-accent);
  border-radius: 999px;
  color: var(--landing-accent);
  font-size: 16px;
  font-weight: var(--heavy);
}
.landing-notice h2 { margin: 8px 0 12px; font-size: 24px; line-height: 32px; letter-spacing: -0.5px; }
.landing-notice-text p { max-width: 800px; margin: 0 0 8px; color: var(--text-dim); font-size: 16px; line-height: 24px; text-wrap: pretty; }
.landing-notice-text .landing-notice-lead { max-width: none; color: var(--text-normal); text-wrap: balance; }
.landing-notice-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.landing-notice-fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-sunken);
  padding: 4px 12px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 20px;
}
.landing-notice-fact svg { color: var(--landing-accent); }
.landing-notice-foot {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}
.landing-notice-foot .landing-link { padding: 4px 0; font-size: 12px; line-height: 16px; }
.landing-notice-foot .landing-link svg { width: 12px; height: 12px; }
.landing-footer { padding: 64px 0 40px; color: var(--text-muted); font-size: 12px; }
.landing-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.landing-legal > span { color: var(--text-muted); font-size: 12px; line-height: 16px; }
.landing-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.landing-legal-links + .landing-legal-links { margin-left: 0; flex-basis: 100%; }
.landing-legal-links a, .landing-legal-links button {
  border: none;
  border-radius: 4px;
  background: none;
  padding: 4px 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 16px;
  text-decoration: none;
  cursor: pointer;
}
.landing-legal-links a:hover, .landing-legal-links button:hover { color: var(--text-strong); text-decoration: underline; text-underline-offset: 4px; }
.landing-legal-links a:focus-visible, .landing-legal-links button:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.landing-pairs-row { display: flex; align-items: center; gap: 16px; white-space: nowrap; margin-top: 32px; color: var(--text-soft); font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.landing-pairs-row small { font-size: 12px; }
.landing-pairs { display: flex; flex: 1; gap: 4px; }
.landing-pairs-cell {
  display: flex;
  height: 8px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  transform-origin: 0 50%;
}
.landing-pairs-cell i { display: block; height: 100%; }
body:has(.landing-page), body:has(.auth-page) { min-width: 0; }
html:has(.landing-page), body:has(.landing-page) { overscroll-behavior-y: none; }
.landing-page { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.landing-page a, .landing-page button, .landing-page summary { -webkit-tap-highlight-color: transparent; }
@media (max-width: 1100px) {
  .landing-hero { row-gap: 40px; padding-bottom: 72px; }
  .landing-hero-text, .landing-readout { grid-column: 1 / -1; }
  .landing-readout { grid-row: 3; margin-top: 0; }
  .landing-stage { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: 640px; }
  .landing-tools > .landing-head, .landing-how > .landing-head { grid-column: 1 / -1; }
  .landing-story { display: block; }
  .landing-story-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .landing-story-step { min-height: 0; border: none; padding: 0; opacity: 1; }
  .landing-story-step::before, .landing-story-num, .landing-story-step > p, .landing-story-step > .landing-link { display: none; }
  .landing-story-step h3 { margin: 0; }
  .landing-story-step h3 button { width: 100%; justify-content: center; border-radius: 12px; background: var(--landing-cell); padding: 12px 8px;
    font-size: 20px; line-height: 28px; letter-spacing: 0; }
  .landing-story-step.is-active h3 button { background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .landing-story-step h3 button { flex-wrap: wrap; row-gap: 0; }
  .landing-story-stage { position: static; }
  .landing-story-scene:not(.is-shown) { display: none; }
  .landing-story-words { display: block; margin-top: 20px; }
  .landing-story-words > p { max-width: 600px; }
  .landing-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-faq-intro { display: contents; }
  .landing-faq-intro > *, .landing-faq-main { grid-column: 1 / -1; }
  .landing-faq-main { margin-top: 32px; }
  .landing-faq-contact { order: 2; }
  .landing-faq-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-faq-topic { height: auto; min-height: 48px; gap: 8px; padding: 8px 12px; }
  .landing-faq-topic span { overflow-wrap: anywhere; hyphens: auto; }
}
@media (max-width: 700px) {
  .landing-page { padding: 0 16px; }
  .landing-skip { top: 112px; left: 16px; }
  .landing-page h2 { font-size: 32px; line-height: 40px; letter-spacing: -1px; }
  .landing-page h3 { font-size: 24px; line-height: 32px; }
  .landing-page > .site-header { margin: 0 -16px; }
  .landing-faq { scroll-margin-top: 128px; }
  .landing-hero { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding: 32px 0 56px; }
  .landing-hero h1 { margin-left: -4px; font-size: 40px; line-height: 44px; letter-spacing: -1px; }
  .landing-lead { margin: 20px 0 28px; font-size: 16px; line-height: 24px; }
  .landing-head > p, .landing-story-words > p, .landing-step p, .landing-news-title p { font-size: 16px; line-height: 24px; }
  .landing-actions { flex-direction: column; }
  .landing-actions .ds-button { width: 100%; }
  .landing-stage { order: 2; padding: 4px; border-radius: 12px; }
  .landing-stage-caption { margin: 12px 4px 4px; }
  .landing-readout { order: 3; max-width: none; padding-top: 0; border-top: none; }
  .landing-readout-hand { min-width: 96px; font-size: 40px; line-height: 40px; }
  .landing-readout-list { gap: 8px; }
  .landing-readout-list b { font-size: 20px; line-height: 28px; }
  .landing-readout-list span { gap: 4px; }
  .landing-legend { display: none; }
  .landing-tools { row-gap: 32px; padding-top: 16px; }
  .landing-story-step h3 button { gap: 8px; padding: 12px 4px; font-size: 16px; line-height: 24px; }
  .landing-story-step h3 button svg { width: 16px; height: 16px; }
  .landing-how { row-gap: 40px; padding: 80px 0 0; }
  .landing-steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .landing-line-seg { top: 0; right: auto; bottom: 0; left: 12px; width: 2px; height: auto; transform-origin: 50% 0; }
  .landing-step { padding: 0 0 0 56px; }
  .landing-step-num { font-size: 64px; line-height: 64px; letter-spacing: -2px; }
  .landing-step h3 { margin-top: 12px; }
  .landing-facts { column-gap: 16px; row-gap: 24px; margin-top: 80px; padding: 40px 0 0; }
  .landing-fact b { min-height: 72px; font-size: 44px; line-height: 48px; letter-spacing: -1.5px; }
  .landing-fact:nth-of-type(-n+2) b { min-height: 48px; }
  .landing-fact b small { font-size: 16px; line-height: 24px; letter-spacing: 0; }
  .landing-fact span { margin-top: 8px; font-size: 16px; line-height: 24px; }
  .landing-news { padding-top: 56px; }
  .landing-news-title .ds-button { width: 100%; }
  .landing-faq { padding: 80px 0 64px; }
  .landing-faq-summary { min-height: 56px; padding: 12px 12px 12px 16px; }
  .landing-faq-item p { padding: 0 16px 16px 16px; }
  .landing-notice { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 16px 0 0; padding: 20px; }
  .landing-notice h2 { margin-top: 0; font-size: 20px; line-height: 28px; }
  .landing-footer { padding: 40px 0 24px; text-align: center; }
  .landing-legal { flex-direction: column; gap: 16px; }
  .landing-legal-links { justify-content: center; margin: 0; }
  .landing-legal-links + .landing-legal-links { flex-basis: auto; }
  .landing-legal-links { gap: 0 20px; }
  .landing-legal-links a, .landing-legal-links button { min-height: 32px; padding: 8px 0; }
  .landing-shot img { border-radius: 12px; }
  .landing-pairs-cell { height: 6px; }
}
@media (max-width: 400px) {
  .landing-story-step h3 button svg { display: none; }
  .landing-fact b { font-size: 40px; }
}
@media (max-width: 380px) {
  .landing-hero h1 { font-size: 32px; line-height: 36px; }
}
.landing-page.is-intro .landing-hero h1 { transform: translateY(40px); filter: blur(10px); }
.landing-page.is-intro .landing-lead { transform: translateY(24px); filter: blur(4px); }
.landing-page.is-intro .landing-hero .landing-actions, .landing-page.is-intro .landing-readout,
.landing-page.is-intro .landing-promo { transform: translateY(24px); opacity: 0; }
.landing-page.is-intro .landing-stage { transform: translateY(24px); }
.landing-page.is-intro .landing-accent-bar { transform: scaleX(0); }
.landing-page.is-intro .landing-tools > .landing-head > .landing-rule { transform: scaleX(0); }
.landing-page.is-intro .landing-tools > .landing-head .landing-mask > span { transform: translateY(110%); }
.landing-page.is-intro .landing-tools > .landing-head > p { transform: translateY(12px); opacity: 0; }
.landing-news .news-cover::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--action-allin) 0 22%, var(--action-raise) 22% 30.2%, var(--action-passive) 30.2% 65.6%,
    var(--action-fold) 65.6% 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 500ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
@media (hover: hover) {
  .landing-news .news-card:hover { border-color: var(--line-strong); }
  .landing-news .news-card:hover .news-cover::after { transform: none; }
}
.landing-news .news-card:focus-visible .news-cover::after { transform: none; }
.landing-news-title h2 { font-size: 40px; line-height: 48px; letter-spacing: -1px; }
@media (max-width: 700px) { .landing-news-title h2 { font-size: 32px; line-height: 40px; letter-spacing: -1px; } }

.landing-page, .site-header {
  --surface-page: #191919;
  --surface-panel: #1f1f1f;
  --surface-rail: #2c2c2c;
  --surface-sunken: #151515;
  --surface-raised: #303030;
  --surface-hover: #2f2f2f;
  --surface-active: #414141;
  --text-strong: rgba(255, 255, 255, 0.93);
  --text-normal: rgba(255, 255, 255, 0.93);
  --text-soft: rgba(255, 255, 255, 0.57);
  --text-dim: rgba(255, 255, 255, 0.57);
  --text-muted: rgba(255, 255, 255, 0.4);
  --theme-placeholder: #878787;
  --line: #3d3d3d;
  --line-strong: rgba(255, 255, 255, 0.2);
  --line-stronger: rgba(255, 255, 255, 0.4);
  --accent-brand: var(--accent-orange);
  --accent-brand-deep: var(--accent-orange-deep);
  --range-fill: var(--accent-orange);
  --theme-pick: #e3e5e9;
  --pick: #e3e5e9;
  --matrix-lit: #e3e5e9;
  --theme-label-ink: #f1f2f4;
  --theme-on-paint: #f4f5f7;
  --theme-cell-line: #191919;
  --theme-cell: #2a2a2a;
  --theme-card: #1f1f1f;
  --theme-radius: 10px;
  --theme-radius-card: 9px;
  --theme-radius-cell: 3px;
  --theme-radius-chip: 3px;
  --theme-ring: 2px;
  --theme-rail: linear-gradient(#1c1c1c, #191919);
  --theme-grid: transparent;
  --theme-chip: color-mix(in srgb, #191919 78%, transparent);
  --theme-card-line: var(--line);
  --theme-pick-action: color-mix(in srgb, #e3e5e9 12%, transparent);
  --theme-pick-action-ink: rgba(255, 255, 255, 0.93);
  --theme-pick-edge: 2px;
  --theme-tab-on: #303030;
  --theme-tab-on-ink: rgba(255, 255, 255, 0.93);
  --suit-ink-s: #dcdcdc;
  --suit-ink-h: #ef7b7b;
  --suit-ink-d: #73aef0;
  --suit-ink-c: #74c785;
  --blocker-neutral: #2a2a2a;
  --blocker-positive: #10a122;
  --blocker-negative: #dc3c3d;
  --theme-card-back: linear-gradient(160deg, #383838 0%, #202020 100%);
  --action-raise: var(--action-aggressive);
  --action-fold-hover: color-mix(in srgb, var(--action-fold) 86%, #ffffff);
  --action-passive-hover: color-mix(in srgb, var(--action-passive) 86%, #ffffff);
  --action-aggressive-hover: color-mix(in srgb, var(--action-aggressive) 86%, #ffffff);
  --action-allin-hover: color-mix(in srgb, var(--action-allin) 86%, #ffffff);
  --action-shade-0: var(--action-bet-light);
  --action-shade-1: color-mix(in oklch, var(--action-aggressive) 25%, var(--action-bet-light));
  --action-shade-2: color-mix(in oklch, var(--action-aggressive) 50%, var(--action-bet-light));
  --action-shade-3: color-mix(in oklch, var(--action-aggressive) 75%, var(--action-bet-light));
  --action-shade-4: var(--action-aggressive);
  --action-shade-5: color-mix(in oklch, var(--action-bet-deep) 25%, var(--action-aggressive));
  --action-shade-6: color-mix(in oklch, var(--action-bet-deep) 50%, var(--action-aggressive));
  --action-shade-7: color-mix(in oklch, var(--action-bet-deep) 75%, var(--action-aggressive));
  --action-shade-8: var(--action-bet-deep);
  --action-fold: var(--solver-fold);
  --action-passive: var(--solver-passive);
  --action-bet-light: var(--solver-bet-light);
  --action-aggressive: var(--solver-aggressive);
  --action-bet-deep: var(--solver-bet-deep);
  --action-allin: var(--solver-allin);
  --landing-stage: var(--theme-cell-line);
  --landing-cell: var(--theme-cell);
  --landing-card: var(--theme-card);
  --landing-on-paint: var(--theme-on-paint);
  --landing-picked: var(--theme-pick-action);
  --landing-pick-line: color-mix(in srgb, var(--pick) 75%, transparent);
  --landing-accent: var(--pick);
  --landing-on-pick: var(--surface-page);
  --landing-faq-open: var(--surface-hover);
  --landing-bet-small: var(--action-shade-2);
  --landing-bet-big: var(--action-shade-6);
}

.landing-old-page {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  padding: 0 32px;
  background: var(--surface-sunken);
  color: var(--text-normal);
}
.landing-old-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 72% 4%, rgba(255, 158, 69, 0.13), transparent 70%),
    radial-gradient(700px 600px at -6% 40%, rgba(255, 158, 69, 0.07), transparent 70%),
    radial-gradient(700px 600px at 106% 52%, rgba(255, 158, 69, 0.06), transparent 70%);
}
.landing-old-page > *:not(.landing-old-glow):not(.landing-old-side) {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.landing-old-page > *:not(.landing-old-glow):not(.landing-old-side):not(.landing-old-header) { position: relative; }
.landing-old-side {
  position: absolute;
  top: 300px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.landing-old-side i { display: block; width: 24px; height: 2px; margin-top: 16px; background: var(--accent-brand); }
.landing-old-side.is-left { left: 48px; }
.landing-old-side.is-right { right: 48px; top: 420px; text-align: right; }
.landing-old-side.is-right i { margin-left: auto; }
@media (max-width: 1500px) { .landing-old-side { display: none; } }
.landing-old-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  height: 56px;
  align-items: center;
  gap: 24px;
}
.landing-old-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
  background: rgba(24, 24, 24, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.landing-old-logo { display: flex; align-items: center; gap: 8px; }
.landing-old-logo-brand { gap: 8px; }
.landing-old-logo-brand .brand-logo-mark { height: 28px; }
.landing-old-logo-brand .brand-logo-word { height: 20px; }
.landing-old-nav {
  margin: 0 auto;
}
.landing-old-nav .ds-segment.is-selected { color: var(--pick); }
.landing-old-nav-pill {
  left: 0;
  pointer-events: none;
  transition: transform 460ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.landing-old-nav.is-gliding .landing-old-nav-pill { transition: none; }
.landing-old-account { display: flex; align-items: center; gap: 12px; }
.landing-old-language { flex-shrink: 0; }
.landing-old-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 48px;
  padding: 48px 0 64px;
}
.landing-old-hero h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 60px;
  font-weight: var(--bold);
  line-height: 1.05;
  letter-spacing: -1px;
}
.landing-old-accent { color: var(--accent-brand); }
.landing-old-hero-text > p { margin: 20px 0 32px; color: var(--text-soft); font-size: 16px; line-height: 1.5; }
.landing-old-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.landing-old-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: 12px;
}
.landing-old-points li { display: flex; align-items: center; gap: 8px; }
.landing-old-points svg { flex-shrink: 0; color: var(--accent-brand); }
.landing-old-preview {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-page);
  box-shadow: 0 24px 80px #000a, 0 0 0 6px rgba(255, 158, 69, 0.04);
  font-size: 9px;
  color: var(--text-normal);
}
.landing-old-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
  border-right: 1px solid var(--line);
  background: var(--surface-panel);
}
.landing-old-rail-mark { width: 24px; height: auto; margin-bottom: 6px; }
.landing-old-rail-icon {
  display: grid;
  width: 26px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  color: var(--text-muted);
}
.landing-old-rail-icon.is-active { background: var(--surface-raised); color: var(--accent-brand); }
.landing-old-rail-icon.is-tool { height: 20px; color: var(--text-dim); }
.landing-old-rail-icon.is-ai { color: #a78bfa; }
.landing-old-rail-rule { display: block; width: 22px; height: 1px; margin: 3px 0; background: var(--line-strong); }
.landing-old-study {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 186px;
  gap: 8px;
  min-width: 0;
  padding: 10px;
}
.landing-old-strip { display: flex; grid-column: 1 / -1; gap: 6px; }
.landing-old-node {
  display: flex;
  width: 92px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-panel);
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 3px 0 rgba(0, 0, 0, 0.38);
}
.landing-old-node.is-focused { outline: 2px solid var(--accent-brand); outline-offset: -2px; background: var(--surface-raised); }
.landing-old-node-head { display: flex; align-items: baseline; justify-content: space-between; }
.landing-old-node-head b { color: var(--text-normal); font-size: 11px; }
.landing-old-node-head small, .landing-old-node-pot { color: var(--text-muted); font-size: 8px; }
.landing-old-node-pot { margin: 1px 0 4px; }
.landing-old-node-action {
  display: flex;
  min-height: 15px;
  align-items: center;
  gap: 5px;
  margin-inline: -6px;
  padding: 0 6px;
  color: var(--text-soft);
  font-size: 9px;
}
.landing-old-node-action i { width: 7px; height: 7px; flex-shrink: 0; border-radius: 2px; }
.landing-old-node-action.is-picked {
  background: linear-gradient(90deg, rgba(255, 158, 69, 0.34), rgba(255, 158, 69, 0.14));
  box-shadow: inset 2px 0 0 var(--accent-brand);
  color: var(--text-strong);
}
.landing-old-node.is-next { opacity: 0.62; }
.landing-old-node-backs { display: flex; flex: 1; align-items: center; justify-content: center; gap: 3px; padding-top: 4px; }
.landing-old-back { --card-width: 20px; --card-height: 28px; --card-radius: 4px; }
.landing-old-node-pick { color: var(--text-muted); font-size: 8px; text-align: center; }
.landing-old-matrix-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
}
.landing-old-matrix-head { display: flex; height: 24px; align-items: center; gap: 12px; padding: 0 6px 0 9px; color: var(--text-muted); font-weight: var(--bold); }
.landing-old-matrix-head b { display: flex; align-items: center; gap: 3px; color: var(--text-strong); font-size: 10px; }
.landing-old-matrix-tools { display: flex; gap: 3px; margin-left: auto; }
.landing-old-matrix-tools i { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 4px; color: var(--text-dim); }
.landing-old-matrix-tools i.is-on { background: rgba(255, 158, 69, 0.2); color: var(--accent-brand); }
.landing-old-matrix-frame { position: relative; flex: 1; min-height: 0; }
.landing-old-matrix {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  grid-template-rows: repeat(13, minmax(0, 1fr));
  height: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #202020;
}
.landing-old-cell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid #333;
  border-bottom: 1px solid #333;
  background: var(--surface-panel);
  transition: filter 300ms ease;
}
.landing-old-cell:hover { z-index: 3; filter: brightness(0.78); }
.landing-old-band {
  position: absolute;
  inset: 0;
  display: flex;
  transform-origin: 50% 100%;
  animation: landing-old-rise 620ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
  animation-delay: calc(var(--d) * 22ms + 150ms);
}
.landing-old-band .action-fill, .landing-old-combo-band .action-fill, .landing-old-drawer-mix .action-fill { display: block; height: 100%; }
.landing-old-cell em {
  position: absolute;
  z-index: 2;
  top: 2px;
  left: 3px;
  color: var(--text-strong);
  font-size: 8px;
  font-style: normal;
  font-weight: var(--black);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
}
.landing-old-cell.is-picked { z-index: 4; }
.landing-old-cell.is-picked::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 2px solid var(--accent-brand);
  animation: landing-old-fade 240ms linear 1150ms both;
}
.landing-old-drawer {
  position: absolute;
  z-index: 5;
  top: calc(30.77% - 2px);
  left: calc(46.15% + 4px);
  width: 138px;
  padding: 6px 8px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(28, 28, 28, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  animation: landing-old-slide 320ms cubic-bezier(0.18, 0.78, 0.28, 1) 1150ms both, landing-old-fade 240ms linear 1150ms both;
}
.landing-old-drawer-head { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; color: var(--text-muted); }
.landing-old-drawer-head b { color: var(--text-strong); font-size: 11px; font-weight: var(--black); }
.landing-old-drawer-head span { flex: 1; font-size: 8px; }
.landing-old-drawer-mix { display: flex; height: 4px; margin-bottom: 5px; overflow: hidden; border-radius: 2px; background: #2a2a2a; }
.landing-old-drawer-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 0; color: var(--text-soft); }
.landing-old-drawer-row > span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.landing-old-drawer-row i { width: 6px; height: 6px; border-radius: 2px; }
.landing-old-drawer-row b { color: var(--text-strong); font-weight: var(--bold); font-variant-numeric: tabular-nums; }
.landing-old-drawer-row em { min-width: 20px; color: var(--text-muted); font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.landing-old-drawer-row.is-unused { opacity: 0.45; }
.landing-old-drawer-row.is-total { margin-top: 3px; border-top: 1px solid var(--line); padding-top: 4px; }
.landing-old-side-col { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.landing-old-actions-panel, .landing-old-hands-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 6px;
}
.landing-old-panel-head { display: flex; align-items: center; justify-content: space-between; margin: 1px 2px 6px; }
.landing-old-panel-head span { display: flex; align-items: center; gap: 5px; color: var(--text-strong); font-size: 10px; font-weight: var(--bold); }
.landing-old-panel-head small { color: var(--text-muted); font-size: 8px; font-weight: var(--bold); }
.landing-old-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.landing-old-tile {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 6px;
  padding: 6px 7px;
  color: var(--text-strong);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.landing-old-tile b { font-size: 9px; font-weight: var(--heavy); }
.landing-old-tile b small { font-size: 9px; font-weight: var(--heavy); }
.landing-old-tile strong { margin-top: 2px; font-size: 15px; font-weight: var(--black); line-height: 1.05; font-variant-numeric: tabular-nums; }
.landing-old-tile span { color: rgba(255, 255, 255, 0.86); font-size: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.landing-old-tile .landing-old-tile-track { display: block; height: 3px; margin-top: 3px; overflow: hidden; border-radius: 2px; background: rgba(0, 0, 0, 0.28); }
.landing-old-tile-track i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #ffffff;
  transform-origin: 0 50%;
  animation: landing-old-grow 600ms cubic-bezier(0.22, 0.8, 0.24, 1) 750ms both;
}
.landing-old-hands-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 5px; color: var(--text-muted); font-weight: var(--bold); text-align: center; }
.landing-old-hands-tabs > * { padding: 4px 0; border-radius: 5px; }
.landing-old-hands-tabs b { background: var(--surface-raised); color: var(--accent-brand); }
.landing-old-combos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 5px; background: #000; }
.landing-old-combo {
  position: relative;
  display: flex;
  height: 66px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #b0b0b0;
  color: #1e1e1e;
}
.landing-old-combo-band {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 62%;
  transform-origin: 50% 100%;
  animation: landing-old-rise 620ms cubic-bezier(0.22, 0.8, 0.24, 1) 850ms both;
}
.landing-old-combo-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; }
.landing-old-combo-head b { padding: 2px 4px; font-size: 9px; font-weight: var(--heavy); }
.landing-old-combo-label { border-radius: 0 0 4px 0; background: #f2f5f8; padding: 1px 4px; font-size: 9px; font-weight: var(--heavy); }
.landing-old-combo-label.is-s { color: #1f1f1f; }
.landing-old-combo-label.is-h { color: #c8202a; }
.landing-old-combo-label.is-d { color: #1f5fbf; }
.landing-old-combo-label.is-c { color: #1d7a37; }
.landing-old-combo-lines { position: relative; display: flex; flex-direction: column; padding: 0 4px 3px; color: #ffffff; font-size: 7px; line-height: 1.2; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); }
.landing-old-combo-lines span { display: flex; justify-content: space-between; }
.landing-old-combo-lines em { font-style: normal; }
@keyframes landing-old-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes landing-old-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes landing-old-slide { from { transform: translateX(-10px); } to { transform: translateX(0); } }
@keyframes landing-old-fade { from { opacity: 0; } to { opacity: 1; } }
.landing-old-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.landing-old-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-panel);
}
.landing-old-feature h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: var(--text-strong); font-size: 20px; overflow-wrap: anywhere; hyphens: auto; }
.landing-old-feature h3 svg { flex: none; color: var(--accent-brand); }
.landing-old-feature p { margin: 0 0 16px; color: var(--text-dim); font-size: 12px; line-height: 1.5; }
.landing-old-feature a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-brand);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.landing-old-feature a:hover { color: var(--accent-brand-hover); }
.landing-old-mini {
  align-self: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-sunken);
  color: var(--text-dim);
  font-size: 10px;
}
.landing-old-mini p { margin: 0 0 8px; color: var(--text-soft); font-weight: 600; }
.landing-old-mini-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.landing-old-mini-progress span { flex: 1; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-brand) 30%, var(--surface-raised) 30%); }
.landing-old-mini-option { display: flex; align-items: center; gap: 6px; margin-top: 5px; padding: 5px 6px; border-radius: 4px; background: var(--surface-panel); }
.landing-old-mini-dot { width: 7px; height: 7px; border-radius: 2px; }
.landing-old-mini-dot.is-call { background: var(--action-passive); }
.landing-old-mini-dot.is-bet { background: var(--action-aggressive); }
.landing-old-mini-dot.is-raise { background: var(--action-raise); }
.landing-old-mini-dot.is-allin { background: var(--action-allin); }
.landing-old-mini-tabs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; color: var(--text-muted); }
.landing-old-mini-tabs b { color: var(--accent-brand); font-weight: 600; }
.landing-old-mini-node { display: inline-block; padding: 2px 6px; border-radius: 3px; background: var(--surface-raised); color: var(--text-strong); font-weight: var(--bold); }
.landing-old-mini-branch { margin: 4px 0 0 12px; padding: 4px 6px; border-left: 2px solid var(--line-strong); background: var(--surface-panel); }
.landing-old-mini-branch.is-add { border-left-color: var(--accent-brand); color: var(--text-muted); }
.landing-old-flop-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.landing-old-flop-head b { color: var(--text-strong); font-size: 11px; }
.landing-old-flop-head small { color: var(--text-muted); font-size: 9px; }
.landing-old-flop-board { display: flex; justify-content: center; gap: 4px; margin-bottom: 10px; }
.landing-old-flop-card { --card-width: 34px; --card-height: 46px; }
.landing-old-flop-split { display: flex; height: 16px; margin-bottom: 8px; overflow: hidden; border-radius: 4px; }
.landing-old-flop-split span {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 5px;
  color: var(--text-strong);
  font-size: 9px;
  font-weight: var(--heavy);
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.landing-old-flop-split .is-call { justify-content: flex-end; }
.landing-old-flop-hand { display: grid; grid-template-columns: 38px minmax(0, 1fr) 26px; align-items: center; gap: 6px; padding: 3px 0; }
.landing-old-flop-combo { display: flex; gap: 2px; font-weight: var(--bold); white-space: nowrap; }
.landing-old-flop-combo .is-s { color: #c5c5c5; }
.landing-old-flop-combo .is-h { color: #f05252; }
.landing-old-flop-combo .is-d { color: #568bff; }
.landing-old-flop-combo .is-c { color: #58b967; }
.landing-old-flop-mix { display: flex; height: 8px; overflow: hidden; border-radius: 2px; background: #191919; }
.landing-old-flop-mix i { display: block; height: 100%; }
.landing-old-flop-hand em { color: var(--text-soft); font-style: normal; font-variant-numeric: tabular-nums; text-align: right; }
.landing-old-steps {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 28px;
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}
.landing-old-steps h2, .landing-old-faq h2, .landing-old-facts h2 { margin: 0; color: var(--text-strong); font-size: 28px; font-weight: var(--bold); }
.landing-old-steps-title p, .landing-old-faq-intro > p { margin: 8px 0 0; color: var(--text-dim); font-size: 16px; }
.landing-old-step { display: flex; align-items: flex-start; gap: 16px; }
.landing-old-step-number {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-brand);
  font-size: 16px;
  font-weight: var(--bold);
}
.landing-old-step h3 { margin: 0 0 4px; color: var(--text-strong); font-size: 16px; }
.landing-old-step p { margin: 0; color: var(--text-dim); font-size: 12px; line-height: 1.45; }
.landing-old-facts {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.landing-old-facts h2 { font-size: 20px; line-height: 1.25; }
.landing-old-fact b { display: block; color: var(--accent-brand); font-size: 24px; font-weight: var(--bold); }
.landing-old-fact span { color: var(--text-dim); font-size: 12px; }
.landing-old-faq {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.landing-old-faq-intro { align-self: start; }
.landing-old-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-brand);
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.landing-old-faq-contact {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 158, 69, 0.1), rgba(255, 158, 69, 0.02) 60%), var(--surface-panel);
}
.landing-old-faq-contact b { color: var(--text-strong); font-size: 16px; }
.landing-old-faq-contact span { color: var(--text-dim); font-size: 12px; }
.landing-old-faq-contact a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--accent-brand);
  font-size: 16px;
  font-weight: var(--bold);
  text-decoration: none;
}
.landing-old-faq-contact a:hover { color: var(--accent-brand-hover); }
.landing-old-faq-list { display: grid; gap: 8px; }
.landing-old-faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(41, 41, 41, 0.25);
  cursor: pointer;
  transition: border-color 260ms ease, background-color 260ms ease, box-shadow 260ms ease;
}
.landing-old-faq-item:hover { border-color: var(--line-strong); }
.landing-old-faq-item.is-open {
  border-color: rgba(255, 158, 69, 0.38);
  background: linear-gradient(180deg, rgba(255, 158, 69, 0.07), rgba(255, 158, 69, 0) 70%), rgba(41, 41, 41, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.landing-old-faq-summary {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: none;
  background: none;
  padding: 16px 16px 16px 20px;
  color: var(--text-normal);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.landing-old-faq-summary:hover { color: var(--text-strong); }
.landing-old-faq-question { flex: 1; min-width: 0; }
.landing-old-faq-toggle {
  display: grid;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-muted);
  transition: background-color 200ms ease, color 200ms ease;
}
.landing-old-faq-item.is-open .landing-old-faq-toggle { background: rgba(255, 158, 69, 0.16); color: var(--accent-brand); }
.landing-old-faq-item.is-open .landing-old-faq-toggle svg { transform: rotate(180deg); }
.landing-old-faq-toggle svg { transition: transform 440ms cubic-bezier(0.22, 0.8, 0.24, 1); }
.landing-old-faq-body { height: 0; overflow: hidden; }
.landing-old-faq-item.is-open .landing-old-faq-body { height: auto; }
.landing-old-faq-item p {
  margin: 0;
  padding: 0 60px 16px 20px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
}
.landing-old-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 40px;
  margin: 56px 0 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(640px 320px at 0% 0%, rgba(255, 158, 69, 0.09), transparent 70%), rgba(41, 41, 41, 0.6);
}
.landing-old-notice-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.landing-old-age {
  display: grid;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  place-items: center;
  border: 2px solid var(--accent-brand);
  border-radius: 999px;
  background: rgba(255, 158, 69, 0.08);
  color: var(--accent-brand);
  font-size: 16px;
  font-weight: var(--heavy);
}
.landing-old-notice h2 { margin: 0; color: var(--text-strong); font-size: 24px; font-weight: var(--bold); line-height: 1.2; }
.landing-old-notice-text p { margin: 0 0 12px; color: var(--text-dim); font-size: 12px; line-height: 1.65; }
.landing-old-notice-text .landing-old-notice-lead { color: var(--text-normal); font-size: 16px; font-weight: 600; line-height: 1.5; }
.landing-old-notice-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-self: start; }
.landing-old-notice-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(31, 31, 31, 0.72);
}
.landing-old-notice-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 12px;
  background: rgba(255, 158, 69, 0.12);
  color: var(--accent-brand);
}
.landing-old-notice-fact b { color: var(--text-strong); font-size: 16px; }
.landing-old-notice-fact span:last-child { color: var(--text-dim); font-size: 12px; line-height: 1.55; }
.landing-old-notice-foot {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
}
.landing-old-notice-foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-brand); font-weight: var(--bold); text-decoration: none; }
.landing-old-notice-foot a:hover { color: var(--accent-brand-hover); }
.landing-old-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 32px 0 20px; color: var(--text-muted); font-size: 12px; }
.landing-old-legal { display: flex; flex-basis: 100%; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.landing-old-legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-left: auto; }
.landing-old-legal-links a, .landing-old-legal-links button { border: none; background: none; padding: 0; color: var(--text-soft); font-size: 12px; text-decoration: none; cursor: pointer; }
.landing-old-legal-links a:hover, .landing-old-legal-links button:hover { color: var(--text-strong); }
body:has(.landing-old-page), body:has(.auth-page) { min-width: 0; }
html:has(.landing-old-page), body:has(.landing-old-page) { overscroll-behavior-y: none; }
.landing-old-page { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.landing-old-page a, .landing-old-page button, .landing-old-page summary { -webkit-tap-highlight-color: transparent; }
@media (max-width: 1100px) {
  .landing-old-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .landing-old-preview { width: 100%; max-width: 680px; margin: 0 auto; }
  .landing-old-features { grid-template-columns: minmax(0, 1fr); }
  .landing-old-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-old-steps-title { grid-column: 1 / -1; }
  .landing-old-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-old-facts h2 { grid-column: 1 / -1; }
  .landing-old-faq { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .landing-old-notice { grid-template-columns: minmax(0, 1fr); }
  .landing-old-language .ds-select { min-width: 0; }
  .landing-old-language .ds-select-value { display: none; }
}
@media (max-width: 700px) {
  .landing-old-page { padding: 0 16px; }
  .landing-old-language .ds-select { padding: 0 8px; }
  .landing-old-language .ds-select > svg { display: none; }
  .landing-old-header { flex-wrap: wrap; justify-content: space-between; height: auto; gap: 12px 16px; padding: 12px 0 8px; }
  .landing-old-logo-brand .brand-logo-mark { height: 24px; }
  .landing-old-logo-brand .brand-logo-word { height: 16px; }
  .landing-old-header .landing-old-nav { order: 3; width: 100%; margin: 0; }
  .landing-old-faq { scroll-margin-top: 128px; }
  .landing-old-header .landing-old-nav .ds-segment { padding: 0; }
  .landing-old-hero { gap: 28px; padding: 20px 0 40px; }
  .landing-old-hero h1 { font-size: 40px; letter-spacing: -0.6px; }
  .landing-old-hero-text > p { margin: 16px 0 24px; font-size: 16px; }
  .landing-old-actions { flex-direction: column; gap: 12px; }
  .landing-old-points { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 28px; font-size: 16px; }
  .landing-old-preview { grid-template-columns: minmax(0, 1fr); border-radius: 12px; }
  .landing-old-study { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .landing-old-matrix { height: auto; aspect-ratio: 800 / 620; }
  .landing-old-rail, .landing-old-strip, .landing-old-side-col, .landing-old-drawer { display: none; }
  .landing-old-cell em { font-size: 7px; }
  .landing-old-features { gap: 12px; }
  .landing-old-feature { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .landing-old-feature p { font-size: 16px; }
  .landing-old-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 44px 0 32px; }
  .landing-old-steps h2, .landing-old-faq h2 { font-size: 24px; }
  .landing-old-step p { font-size: 16px; }
  .landing-old-facts { gap: 16px; padding: 28px 0; }
  .landing-old-fact b { font-size: 20px; }
  .landing-old-faq { padding: 36px 0; }
  .landing-old-faq-summary { min-height: 48px; gap: 12px; padding: 12px 12px 12px 16px; font-size: 16px; }
  .landing-old-faq-item p { padding: 0 16px 16px 16px; font-size: 16px; }
  .landing-old-faq-contact { margin-top: 20px; }
  .landing-old-notice { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 40px 0 16px; padding: 20px; }
  .landing-old-notice h2 { font-size: 20px; }
  .landing-old-age { width: 44px; height: 44px; font-size: 16px; }
  .landing-old-notice-facts { grid-template-columns: minmax(0, 1fr); }
  .landing-old-footer { flex-direction: column; gap: 12px; padding: 28px 0 20px; text-align: center; }
  .landing-old-legal { flex-direction: column; gap: 12px; }
  .landing-old-legal-links { justify-content: center; margin: 0; }
}
@media (max-width: 380px) {
  .landing-old-hero h1 { font-size: 32px; }
  .landing-old-cell em { display: none; }
}
.landing-old-news { margin-top: 52px; scroll-margin-top: 96px; }
.landing-old-news-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.landing-old-news-title h2 { margin: 0; color: var(--text-strong); font-size: 28px; font-weight: var(--bold); }
.landing-old-news-title p { margin: 8px 0 0; color: var(--text-dim); font-size: 16px; }
html.has-site-banner .landing-old-page { min-height: calc(100vh - 36px); }
@media (max-width: 680px) {
  .landing-old-news { margin-top: 64px; }
  .landing-old-news-title { flex-direction: column; align-items: flex-start; }
  .landing-old-news-title h2 { font-size: 24px; }
}

.pricing-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--action-allin) 0 22%, var(--action-raise) 22% 30.2%, var(--action-passive) 30.2% 65.6%,
    var(--action-fold) 65.6% 100%);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.landing-page.pricing-page > .pricing-progress { position: fixed; max-width: none; margin: 0; }
.landing-page.pricing-page > :is(.pricing-hero, .pricing-plans, .pricing-compare, .pricing-billing, .landing-footer) { max-width: 1440px; }
.pricing-hero { display: flex; flex-direction: column; align-items: center; padding: 64px 0 48px; text-align: center; }
.pricing-hero h1 {
  position: relative;
  margin: 0;
  color: var(--text-strong);
  font-size: 56px;
  font-weight: var(--heavy);
  line-height: 64px;
  letter-spacing: -2px;
}
.pricing-title-line { display: inline-block; }
.pricing-hero .landing-accent-bar { right: 12px; }
.pricing-lead { position: relative; max-width: 720px; margin: 16px 0 32px; color: var(--text-dim); font-size: 20px; line-height: 32px; text-wrap: balance; }
.pricing-period { --n: 2; position: relative; }
.pricing-period .ds-segment { height: 40px; gap: 12px; padding: 0 20px; font-size: 16px; line-height: 24px; }
.pricing-period .ds-segment:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.pricing-period .ds-badge { font-size: 12px; transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.pricing-badge { background: color-mix(in srgb, var(--text-strong) 12%, transparent); color: var(--text-strong); }
.pricing-badge.is-promo { background: var(--accent-orange); color: #ffffff; }
.pricing-period .ds-segment.is-selected .ds-badge { transform: scale(1.12); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.pricing-plan {
  position: relative;
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-panel), var(--surface-sunken));
  padding: 32px;
}
.pricing-plan.is-popular {
  border-color: color-mix(in srgb, var(--text-strong) 32%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--text-strong) 6%, var(--surface-panel)), var(--surface-panel) 50%, var(--surface-sunken));
  box-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.8);
}
.pricing-plan.is-free { --plan: var(--action-passive); --plan-ink: var(--plan); }
.pricing-plan.is-pro { --plan: var(--accent-orange); --plan-ink: var(--plan); }
.pricing-plan.is-max { --plan: var(--action-allin); --plan-ink: color-mix(in srgb, var(--plan) 68%, #ffffff); }
.pricing-plan::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 32px;
  left: 32px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--plan-ink) 24%, var(--plan-ink) 76%, transparent);
  box-shadow: 0 0 16px 1px color-mix(in srgb, var(--plan) 60%, transparent);
  pointer-events: none;
}
.pricing-plan { isolation: isolate; }
.pricing-plan-edge {
  position: absolute;
  z-index: 3;
  inset: -1px;
  border: 1px solid color-mix(in srgb, var(--plan-ink) 85%, transparent);
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 0 16px -4px color-mix(in srgb, var(--plan) 45%, transparent), inset 0 0 8px -4px color-mix(in srgb, var(--plan) 35%, transparent);
  opacity: 0;
  transform: scale(1.008);
  transition: opacity 280ms ease, transform 280ms ease;
}
.pricing-plan::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: inset 0 0 40px -20px color-mix(in srgb, var(--plan) 40%, transparent), 0 0 48px -24px color-mix(in srgb, var(--plan) 40%, transparent);
  opacity: 0;
  transition: opacity 240ms ease;
}
@media (hover: hover) {
  .pricing-plan:hover .pricing-plan-edge {
    opacity: 1;
    transform: none;
    transition: opacity 520ms cubic-bezier(0.22, 0.8, 0.24, 1), transform 640ms cubic-bezier(0.22, 0.8, 0.24, 1);
  }
  .pricing-plan:hover::before { opacity: 1; transition: opacity 700ms ease 120ms; }
}
.pricing-plan:focus-within .pricing-plan-edge { opacity: 1; transform: none; }
.pricing-plan:focus-within::before { opacity: 1; }
.pricing-plan:is(.is-free, .is-pro, .is-max) {
  background-image: radial-gradient(72% 160px at 50% 0, color-mix(in srgb, var(--plan) 14%, transparent), transparent),
    linear-gradient(180deg, var(--surface-panel), var(--surface-sunken));
}
.pricing-plan.is-popular:is(.is-free, .is-pro, .is-max) {
  background-image: radial-gradient(72% 160px at 50% 0, color-mix(in srgb, var(--plan) 14%, transparent), transparent),
    linear-gradient(180deg, color-mix(in srgb, var(--text-strong) 6%, var(--surface-panel)), var(--surface-panel) 50%, var(--surface-sunken));
}
.pricing-plan-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--plan) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--plan) 32%, transparent);
  color: var(--plan-ink);
}
.pricing-plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.landing-page .pricing-plan h3 { margin: 0; font-size: 24px; line-height: 32px; letter-spacing: -0.5px; }
.pricing-plan-tagline { margin: 8px 0 0; color: var(--text-dim); font-size: 16px; line-height: 24px; }
.pricing-price { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 36px; }
.pricing-was {
  position: absolute;
  bottom: 100%;
  left: 0;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: var(--bold);
  line-height: 20px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 520ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.pricing-was.is-shown { opacity: 1; transform: none; }
.pricing-amount {
  display: inline-flex;
  height: 56px;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 56px;
  font-weight: var(--heavy);
  line-height: 56px;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.pricing-digit { display: inline-block; height: 56px; overflow: hidden; }
.pricing-digit-strip {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--d) * -10%));
  transition: transform 1100ms cubic-bezier(0.22, 0.8, 0.24, 1);
  transition-delay: calc(var(--k) * 70ms);
}
.pricing-digit-strip > span { display: block; height: 56px; }
.pricing-sign { display: inline-block; }
.pricing-per { color: var(--text-dim); font-size: 16px; line-height: 24px; }
.pricing-billed { min-height: 20px; margin: 4px 0 24px; color: var(--text-dim); font-size: 12px; line-height: 20px; animation: pricing-in 520ms cubic-bezier(0.22, 0.8, 0.24, 1) both; }
.pricing-cta { width: 100%; }
.landing-page .pricing-cta:disabled { transform: none; }
.landing-page .pricing-cta:disabled::after { display: none; }
.pricing-features { display: grid; align-content: start; gap: 12px; margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; }
.pricing-features li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-normal); font-size: 16px; line-height: 24px; }
.pricing-features svg { flex-shrink: 0; margin-top: 4px; color: var(--plan-ink, var(--grade-good)); }
.pricing-features li.is-includes { color: var(--text-strong); font-weight: var(--bold); }
.pricing-features a { border-radius: 4px; color: inherit; text-decoration: none; }
.pricing-features a:hover { text-decoration: underline; text-decoration-color: var(--text-muted); text-underline-offset: 4px; }
.pricing-features a:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.pricing-head { text-align: center; }
.landing-page .pricing-head h2 { font-size: 40px; line-height: 48px; letter-spacing: -1px; }
.pricing-compare { scroll-margin-top: 72px; padding: 80px 0 0; }
.pricing-table-wrap { position: relative; overflow: clip; margin-top: 32px; border: 1px solid var(--line); border-radius: 16px; }
.pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.pricing-table :is(th, td) { border-bottom: 1px solid var(--line); }
.pricing-table :is(th, td):not(:last-child) { border-right: 1px solid var(--line); }
.pricing-table tbody tr:last-child :is(th, td) { border-bottom-color: var(--line); }
.pricing-table tbody:last-of-type tr:last-child :is(th, td) { border-bottom: none; }
.pricing-table thead th:first-child { width: 40%; text-align: left; }
.pricing-table thead th {
  position: sticky;
  z-index: 2;
  top: 56px;
  border-bottom-color: var(--line);
  background: var(--surface-panel);
  padding: 16px;
  vertical-align: bottom;
}
.pricing-table thead th b { display: block; color: var(--text-strong); font-size: 24px; font-weight: var(--heavy); line-height: 32px; letter-spacing: -0.5px; }
.pricing-table thead th small { display: block; color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 16px; }
.pricing-table thead th.is-popular { background: color-mix(in srgb, var(--text-strong) 6%, var(--surface-panel)); }
.pricing-only { display: inline-flex; align-items: center; gap: 12px; color: var(--text-soft); font-size: 16px; font-weight: 400; line-height: 24px; cursor: pointer; }
.pricing-head-cta { width: 100%; margin-top: 12px; }
.pricing-group th {
  background: color-mix(in srgb, var(--text-strong) 4%, var(--surface-sunken));
  padding: 12px 16px;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: var(--heavy);
  line-height: 28px;
  letter-spacing: -0.3px;
  text-align: left;
}
.pricing-table tbody th[scope="row"] {
  position: relative;
  padding: 12px 16px;
  color: var(--text-normal);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}
.pricing-table td { padding: 12px 16px; text-align: center; vertical-align: middle; }
.pricing-table td.is-popular { background: color-mix(in srgb, var(--text-strong) 3%, transparent); }
@media (hover: hover) {
  .pricing-table tbody tr:not(.pricing-group):hover :is(th, td) { background-color: color-mix(in srgb, var(--text-strong) 4%, transparent); }
}
.pricing-yes, .pricing-no { display: inline-grid; width: 24px; height: 24px; place-items: center; vertical-align: middle; }
.pricing-yes { color: var(--grade-good); }
.pricing-no { color: var(--text-muted); }
.pricing-word { color: var(--text-strong); font-size: 16px; font-weight: var(--bold); line-height: 24px; }
.pricing-soon.ds-badge {
  height: 16px;
  margin-left: 8px;
  background: color-mix(in srgb, var(--accent-orange) 16%, transparent);
  padding: 0 6px;
  color: var(--accent-orange);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  vertical-align: middle;
}
.pricing-table tr.is-soon .pricing-yes { color: var(--accent-orange); }
.pricing-table tr.is-lit th[scope="row"]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 250%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--text-strong) 10%, transparent), color-mix(in srgb, var(--text-strong) 3%, transparent));
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--text-strong) 72%, transparent);
  pointer-events: none;
  animation: pricing-row-lit 2600ms ease both;
}
.pricing-billing { padding: 80px 0 0; }
.pricing-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; margin-top: 32px; }
.pricing-term {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 4px 16px;
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
}
.pricing-term-icon {
  display: grid;
  width: 40px;
  height: 40px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text-strong) 6%, transparent);
  color: var(--text-soft);
}
.pricing-term b { color: var(--text-strong); font-size: 16px; line-height: 24px; }
.pricing-term > span:last-child { grid-column: 2; color: var(--text-dim); font-size: 16px; line-height: 24px; }
.pricing-terms-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 20px;
}
.pricing-terms-foot a { border-radius: 4px; color: var(--text-soft); text-decoration: underline; text-underline-offset: 4px; }
.pricing-terms-foot a:hover { color: var(--text-strong); }
.pricing-terms-foot a:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.pricing-phone-plans { --n: 3; display: none; }
@keyframes pricing-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes pricing-row-lit {
  0% { opacity: 0; }
  12% { opacity: 1; animation-timing-function: linear; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes pricing-from-right { from { opacity: 0; transform: translateX(48px); } }
@keyframes pricing-from-left { from { opacity: 0; transform: translateX(-48px); } }
.pricing-page.is-intro .pricing-hero h1 { transform: translateY(48px); filter: blur(12px); }
.pricing-page.is-intro .pricing-lead { transform: translateY(24px); filter: blur(4px); }
.pricing-page.is-intro .pricing-period, .pricing-page.is-intro .pricing-hero .landing-promo { transform: translateY(24px); opacity: 0; }
.pricing-page.is-intro .pricing-plan { transform: perspective(1400px) translateY(96px) rotateX(14deg); transform-origin: 50% 100%; opacity: 0; }
@media (max-width: 1100px) {
  .pricing-hero h1 { font-size: 48px; line-height: 56px; letter-spacing: -1.5px; }
  .pricing-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-terms-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; gap: 24px; }
  .pricing-plan { display: flex; flex-direction: column; grid-row: auto; }
}
@media (max-width: 700px) {
  .pricing-hero { padding: 40px 0 32px; }
  .pricing-hero h1 { font-size: 40px; line-height: 48px; letter-spacing: -1.5px; }
  .pricing-hero .landing-accent-bar { right: 8px; }
  .pricing-title-line { display: block; }
  .pricing-lead { margin: 16px 0 24px; font-size: 16px; line-height: 24px; }
  .pricing-period .ds-segment { padding: 0 12px; }
  .pricing-phone-plans { display: inline-grid; width: 100%; margin-bottom: 16px; }
  .pricing-phone-plans .ds-segment { height: 40px; font-size: 16px; }
  .pricing-plan:not(.is-picked) { display: none; }
  .pricing-grid.is-from-right .pricing-plan.is-picked { animation: pricing-from-right 420ms cubic-bezier(0.22, 0.8, 0.24, 1) both; }
  .pricing-grid.is-from-left .pricing-plan.is-picked { animation: pricing-from-left 420ms cubic-bezier(0.22, 0.8, 0.24, 1) both; }
  .pricing-plan { padding: 24px 20px 20px; }
  .pricing-amount, .pricing-digit, .pricing-digit-strip > span { height: 48px; }
  .pricing-amount { font-size: 48px; line-height: 48px; letter-spacing: -1.5px; }
  .landing-page .pricing-head h2 { font-size: 32px; line-height: 40px; }
  .pricing-compare, .pricing-billing { padding-top: 56px; }
  .pricing-table-wrap { margin-top: 20px; }
  .pricing-table-wrap { border-radius: 12px; }
  .pricing-table thead th { position: relative; top: auto; padding: 12px 4px; text-align: center; }
  .pricing-table thead th:first-child { padding: 12px 8px; text-align: left; }
  .pricing-only { gap: 8px; font-size: 12px; line-height: 16px; }
  .pricing-table thead th b { font-size: 16px; line-height: 24px; letter-spacing: 0; }
  .pricing-head-cta { display: none; }
  .pricing-group th { padding: 8px; font-size: 16px; line-height: 24px; letter-spacing: 0; }
  .pricing-table tbody th[scope="row"] { padding: 12px 8px; font-size: 12px; line-height: 16px; }
  .pricing-table td { padding: 12px 4px; }
  .pricing-yes svg { width: 16px; height: 16px; }
  .pricing-word { font-size: 12px; line-height: 16px; }
  .pricing-terms { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .pricing-term { padding: 20px 0 24px; }
}

.checkout-main { max-width: 1120px; margin: 0 auto; padding: 32px 0 96px; animation: checkout-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes checkout-in {
  from { opacity: 0; transform: translateY(16px); }
}
.checkout-main.is-leaving > * { opacity: 0; pointer-events: none; transition: opacity 180ms linear; }
.checkout-back { margin: 0 0 24px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; gap: 32px; }
.checkout-card { border-radius: 16px; background: var(--surface-panel); box-shadow: inset 0 0 0 1px var(--line); padding: 32px; }
.checkout-summary { position: sticky; top: 96px; display: grid; gap: 20px; }
.checkout-eyebrow { margin: 0; color: var(--text-soft); font-size: 12px; font-weight: var(--bold); line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.checkout-summary h1 { margin: -12px 0 0; color: var(--text-strong); font-size: 32px; font-weight: var(--heavy); line-height: 40px; }
.checkout-tagline { margin: -12px 0 0; color: var(--text-soft); font-size: 16px; line-height: 24px; }
.checkout-period { --n: 2; justify-self: start; }
.checkout-period .ds-segment { height: 32px; padding: 0 16px; font-size: 16px; line-height: 24px; }
.checkout-period .ds-segment:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.checkout-badge { background: color-mix(in srgb, var(--text-strong) 12%, transparent); color: var(--text-strong); font-size: 12px; }
.checkout-lines { display: grid; gap: 8px; margin: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.checkout-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.checkout-lines dt { color: var(--text-soft); font-size: 16px; line-height: 24px; }
.checkout-lines dd { margin: 0; color: var(--text-normal); font-size: 16px; font-variant-numeric: tabular-nums; line-height: 24px; }
.checkout-amount-wait { display: inline-block; width: 64px; height: 16px; vertical-align: middle; }
.checkout-lines > .is-total { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.checkout-lines > .is-total dt, .checkout-lines > .is-total dd { color: var(--text-strong); font-size: 20px; font-weight: var(--bold); line-height: 28px; }
.checkout-renewal { margin: -8px 0 0; color: var(--text-soft); font-size: 16px; line-height: 24px; }
.checkout-notes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.checkout-notes li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; color: var(--text-soft); font-size: 12px; line-height: 20px; }
.checkout-notes svg { margin-top: 0; color: var(--text-strong); }
.checkout-seller {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 20px;
}
.checkout-seller svg { margin-top: 0; color: var(--text-strong); }
.checkout-seller a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 0; }
.checkout-pay { min-height: 480px; }
.checkout-frame-hold { position: relative; }
.checkout-frame-hold.is-loading { min-height: 592px; }
.checkout-frame-hold.is-hidden { display: none; }
.checkout-frame { width: 100%; opacity: 1; transition: opacity 160ms linear; }
.checkout-frame-hold.is-loading .checkout-frame { opacity: 0; transition: none; }
.checkout-skeleton { position: absolute; top: 0; right: 0; left: 0; display: flex; flex-direction: column; padding: 16px 0 0; opacity: 0; pointer-events: none; transition: opacity 160ms linear; }
.checkout-frame-hold.is-loading .checkout-skeleton { opacity: 1; }
.checkout-skeleton-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.checkout-skeleton-methods > i { height: 64px; }
.checkout-skeleton-label { width: 96px; margin-top: 28px; }
.checkout-skeleton-methods + .checkout-skeleton-label { margin-top: 36px; }
.checkout-skeleton-field { height: 40px; margin-top: 8px; border-radius: 8px; }
.checkout-skeleton-field.is-card { height: 80px; }
.checkout-skeleton-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin-top: 28px; }
.checkout-skeleton-pair > i { margin-top: 0; }
.checkout-skeleton-pair > .checkout-skeleton-field { width: 100%; }
.checkout-skeleton-note { width: 56%; margin-top: 8px; }
.checkout-skeleton-pay { height: 48px; margin-top: 36px; border-radius: 12px; }
.checkout-skeleton-line { width: 48%; margin: 20px auto 0; }
.checkout-skeleton-line.is-foot { width: 76%; margin-top: 36px; }
.checkout-failed { margin: 0 0 24px; }
.checkout-terms { margin: 16px 0 0; color: var(--text-soft); font-size: 16px; line-height: 24px; }
.checkout-terms a, .checkout-consent a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 0; }
.checkout-consent { align-items: flex-start; }
.checkout-consent .ds-check-box { margin-top: 4px; }
.checkout-state { display: grid; justify-items: start; gap: 16px; margin: 0; color: var(--text-soft); font-size: 16px; line-height: 24px; }
.checkout-state p { margin: 0; }
.checkout-done { display: grid; justify-items: center; gap: 24px; max-width: 560px; margin: 0 auto; padding: 40px; text-align: center; animation: checkout-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.checkout-done-mark { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--grade-good) 16%, transparent); color: var(--grade-good); }
.checkout-done.is-waiting .checkout-done-mark, .checkout-done.is-late .checkout-done-mark, .checkout-done.is-test .checkout-done-mark { background: var(--surface-raised); color: var(--text-soft); }
.checkout-done-mark .ds-spinner { width: 24px; height: 24px; }
.checkout-done h1 { margin: -8px 0 0; color: var(--text-strong); font-size: 32px; font-weight: var(--heavy); line-height: 40px; }
.checkout-done-lead { margin: -16px 0 0; color: var(--text-soft); font-size: 16px; line-height: 24px; }
.checkout-done .checkout-lines, .checkout-done-plan { width: 100%; text-align: left; }
.checkout-done .checkout-lines dt { flex-shrink: 0; }
.checkout-done .checkout-lines dd { text-align: right; }
.checkout-done .checkout-lines > .is-total { margin-top: 12px; padding-top: 20px; }
.checkout-done-plan { margin-top: -4px; }
.checkout-done-plan { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.checkout-done .checkout-notes li { grid-template-columns: 16px minmax(0, 1fr); gap: 12px; color: var(--text-normal); font-size: 16px; line-height: 24px; }
.checkout-done .checkout-notes svg { margin-top: 4px; color: var(--grade-good); }
.checkout-done-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; border-top: 1px solid var(--line); padding-top: 24px; }
.checkout-done-more, .checkout-done-actions > :only-child { grid-column: 1 / -1; justify-self: center; }
.checkout-done .checkout-fineprint { margin-top: -8px; }
.checkout-change { display: grid; gap: 20px; }
.checkout-change h2 { margin: 0; color: var(--text-strong); font-size: 24px; font-weight: var(--heavy); line-height: 32px; }
.checkout-change .checkout-lines { border-top: 0; padding-top: 0; }
.checkout-change .ds-button { justify-self: start; }
.checkout-fineprint { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 20px; }
@media (max-width: 980px) {
  .checkout-main { padding: 24px 0 64px; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .checkout-summary { position: static; }
  .checkout-card { padding: 24px; }
}
@media (max-width: 640px) {
  .checkout-card { padding: 20px 16px; }
}
.checkout-done { position: relative; overflow: hidden; }
.checkout-done-mark { position: relative; }
.checkout-done.is-waiting .checkout-notes svg { opacity: 0.32; }
.checkout-done.is-active .checkout-done-mark { animation: checkout-done-pop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.checkout-done.is-active .checkout-notes svg { animation: checkout-done-tick 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(240ms + var(--i) * 60ms); }
@keyframes checkout-done-pop { from { transform: scale(0.6); } }
@keyframes checkout-done-tick { from { opacity: 0; transform: scale(0); } }
.checkout-done-ring, .checkout-done-glow { position: absolute; opacity: 0; pointer-events: none; }
.checkout-done-ring {
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(var(--action-allin) 0 22%, var(--action-raise) 22% 30.2%, var(--action-passive) 30.2% 65.6%, var(--action-fold) 65.6% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
}
.checkout-done.is-active .checkout-done-ring { animation: checkout-done-ring 900ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes checkout-done-ring { from { opacity: 0; transform: rotate(-270deg) scale(0.6); } to { opacity: 1; transform: rotate(0deg) scale(1); } }
.checkout-done-glow {
  top: -160px;
  left: 50%;
  width: 640px;
  height: 400px;
  margin-left: -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-brand) 36%, transparent), transparent);
}
.checkout-done.is-active .checkout-done-glow { animation: checkout-done-glow-size 1600ms cubic-bezier(0.22, 1, 0.36, 1) both, checkout-done-glow-light 1600ms linear both; }
@keyframes checkout-done-glow-size { from { transform: scale(0.6); } to { transform: scale(1.08); } }
@keyframes checkout-done-glow-light { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0.4; } }

:is(.news-card, .news-article, .news-article-preview, .news-swatch, .news-pager-link).is-amber { --news-accent: var(--accent-orange); }
:is(.news-card, .news-article, .news-article-preview, .news-swatch, .news-pager-link).is-violet { --news-accent: var(--ai-accent); }
:is(.news-card, .news-article, .news-article-preview, .news-swatch, .news-pager-link).is-green { --news-accent: var(--action-passive); }
:is(.news-card, .news-article, .news-article-preview, .news-swatch, .news-pager-link).is-blue { --news-accent: var(--action-fold); }
:is(.news-card, .news-article, .news-article-preview, .news-swatch, .news-pager-link).is-red { --news-accent: var(--action-aggressive); }
:is(.news-card, .news-article, .news-article-preview) { --news-ink: color-mix(in srgb, var(--news-accent) 72%, #ffffff); }
.news-shell { padding-bottom: 112px; }
.news-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 64px 0 40px;
}
.news-hero-text { display: flex; max-width: 720px; flex-direction: column; }
.news-hero .landing-kicker { margin-bottom: 16px; }
.news-page .news-hero h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 56px;
  font-weight: var(--heavy);
  line-height: 64px;
  letter-spacing: -1.5px;
}
.news-hero p { margin: 16px 0 0; color: var(--text-dim); font-size: 20px; line-height: 32px; }
.news-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.news-topic-count { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.news-topic.is-selected .news-topic-count { color: var(--text-soft); }
.news-topic:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.news-empty { padding: 120px 24px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-panel);
  transform: translateY(0);
  transition: transform 320ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.news-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--news-accent) 55%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.news-card .news-card-text { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px 24px 24px; }
.news-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-card .news-card-title {
  display: block;
  margin: 0;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: var(--bold);
  line-height: 28px;
  letter-spacing: -0.2px;
  text-wrap: balance;
}
.news-card-link { color: inherit; text-decoration: none; }
.news-card-link::after { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: 16px; }
.news-card-link:focus-visible { outline: none; }
.news-card-link:focus-visible::after { outline: 2px solid var(--pick); outline-offset: -2px; }
.news-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 24px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.news-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.news-read { display: inline-flex; align-items: center; gap: 4px; color: var(--news-ink); font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.news-read svg { transform: translateX(0); transition: transform 320ms cubic-bezier(0.22, 0.8, 0.24, 1); }
@media (hover: hover) {
  .news-card:hover { transform: translateY(-4px); }
  .news-card:hover::before { opacity: 1; }
  .news-card:hover .news-read svg { transform: translateX(4px); }
}
.news-card:focus-within::before { opacity: 1; }
.news-card.is-large { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.news-card.is-large .news-card-text { justify-content: center; gap: 16px; padding: 48px; }
.news-card.is-large .news-card-title { font-size: 32px; line-height: 40px; letter-spacing: -0.8px; }
.news-card.is-large p { -webkit-line-clamp: 4; }
.news-card.is-placeholder { min-height: 400px; }
.news-card.is-large.is-placeholder { min-height: 400px; }
.news-tag { background: color-mix(in srgb, var(--news-accent) 16%, transparent); color: var(--news-ink); }
.news-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.news-meta svg { flex-shrink: 0; }
.news-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 -1px 0 var(--line);
}
.news-cover.is-lead { height: 100%; min-height: 400px; aspect-ratio: auto; box-shadow: inset -1px 0 0 var(--line); }
.news-cover.is-hero { aspect-ratio: 4 / 3; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.news-cover.is-placeholder { background: var(--surface-panel); }
.news-skeleton .news-hero-text, .news-skeleton .news-article-intro { gap: 16px; }
.news-skeleton .ds-skeleton.is-short { width: 96px; }
.news-skeleton .news-skeleton-title { width: 60%; height: 48px; border-radius: 8px; }
.news-skeleton .news-card { background: var(--surface-panel); }
.news-article { padding-top: 32px; }
.news-article-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 64px;
  padding: 16px 0 48px;
  box-shadow: inset 0 -1px 0 var(--line);
}
.news-article-intro { display: flex; min-width: 0; flex-direction: column; }
.news-crumbs { margin: 0 0 24px -8px; }
.news-crumbs .ds-crumb { text-decoration: none; }
.news-crumbs .ds-crumb:focus-visible { outline: 2px solid var(--pick); outline-offset: 0; }
.news-crumb-topic { color: var(--news-ink); }
.news-page .news-article-head h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 48px;
  font-weight: var(--heavy);
  line-height: 56px;
  letter-spacing: -1.2px;
  text-wrap: balance;
}
.news-lead { margin: 20px 0 0; color: var(--text-soft); font-size: 20px; line-height: 32px; text-wrap: pretty; }
.news-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 32px;
  padding-top: 20px;
  box-shadow: inset 0 1px 0 var(--line);
}
.news-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.news-dates .news-meta { font-size: 16px; line-height: 24px; }
.news-dates time.news-meta { color: var(--text-soft); }
.news-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.news-copy.is-done { color: var(--grade-good); }
.news-progress { position: fixed; z-index: 45; top: 0; right: 0; left: 0; height: 2px; max-width: none; margin: 0; pointer-events: none; }
.news-progress span {
  display: block;
  height: 2px;
  background: var(--accent-orange);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: opacity 240ms ease;
}
.news-progress span.is-shown { opacity: 1; }
.news-article-grid { display: grid; grid-template-columns: minmax(0, 720px); gap: 64px; padding-top: 48px; }
.news-article-grid.has-contents { grid-template-columns: minmax(0, 720px) 240px; justify-content: space-between; }
.news-contents { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
html.has-site-banner .news-contents { top: 132px; }
.news-contents-title { color: var(--text-muted); font-size: 12px; font-weight: var(--bold); line-height: 16px; letter-spacing: 1px; text-transform: uppercase; }
.news-contents ol { margin: 0; padding: 0; box-shadow: inset 1px 0 0 var(--line); list-style: none; }
.news-contents a {
  display: block;
  padding: 8px 0 8px 16px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: none;
}
.news-contents a:hover { color: var(--text-strong); }
.news-contents a.is-current { box-shadow: inset 2px 0 0 var(--pick); color: var(--text-strong); }
.news-contents a:focus-visible { outline: 2px solid var(--pick); outline-offset: -2px; border-radius: 4px; }
.news-body { min-width: 0; color: var(--text-normal); font-size: 20px; line-height: 32px; }
.news-body p { margin: 0 0 24px; }
.news-page .news-body h2 {
  margin: 56px 0 16px;
  color: var(--text-strong);
  font-size: 28px;
  font-weight: var(--heavy);
  line-height: 36px;
  letter-spacing: -0.6px;
  scroll-margin-top: 96px;
}
.news-page .news-body > h2:first-child { margin-top: 0; }
html.has-site-banner .news-body h2 { scroll-margin-top: 132px; }
.news-anchor {
  margin-left: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transition: opacity 160ms ease;
}
.news-body h2:hover .news-anchor, .news-anchor:focus-visible { opacity: 1; }
.news-anchor:hover { color: var(--text-strong); }
.news-anchor:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; border-radius: 4px; }
.news-page .news-body h3, .news-article-preview .news-body h3 {
  display: block;
  margin: 40px 0 12px;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: var(--bold);
  line-height: 28px;
  letter-spacing: 0;
}
.news-body ul, .news-body ol { margin: 0 0 24px; padding-left: 28px; }
.news-body li { margin: 8px 0; padding-left: 8px; }
.news-body ul > li::marker { color: var(--news-accent, var(--accent-brand)); }
.news-body ol > li::marker { color: var(--news-ink, var(--accent-brand)); font-weight: var(--bold); font-variant-numeric: tabular-nums; }
.news-body strong { color: var(--text-strong); font-weight: var(--bold); }
.news-body a {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--news-accent, var(--accent-brand)) 70%, transparent);
  text-underline-offset: 4px;
}
.news-body a:hover { text-decoration-color: var(--news-accent, var(--accent-brand)); }
.news-body a:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; border-radius: 4px; }
.news-body a.news-anchor { color: var(--text-muted); text-decoration: none; }
.news-out { display: inline-block; margin-left: 4px; color: var(--text-muted); vertical-align: middle; }
.news-body code {
  border-radius: 4px;
  background: var(--surface-raised);
  padding: 0 4px;
  color: var(--text-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
}
.news-body blockquote {
  display: flex;
  gap: 16px;
  margin: 32px 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--news-accent, var(--accent-brand)) 9%, var(--surface-panel));
  box-shadow: inset 2px 0 0 var(--news-accent, var(--accent-brand));
  padding: 20px 24px;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 28px;
}
.news-body blockquote p { margin: 0; }
.news-callout-icon { flex-shrink: 0; margin-top: 4px; color: var(--news-ink, var(--accent-brand)); }
.news-body hr { height: 1px; margin: 48px 0; border: none; background: var(--line); }
.news-table { margin: 32px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-panel); }
.news-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; }
.news-table th {
  background: var(--surface-rail);
  padding: 12px 20px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}
.news-table td { border-top: 1px solid var(--line); padding: 12px 20px; vertical-align: top; }
.news-table td:last-child { color: var(--text-strong); font-weight: 600; }
.news-table th + th, .news-table td + td { box-shadow: inset 1px 0 0 var(--line); }
.news-pager { display: grid; max-width: 720px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.news-pager-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-panel);
  padding: 20px 24px;
  color: inherit;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 320ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.news-pager-link.is-older { grid-column: 2; align-items: flex-end; text-align: right; }
.news-pager-label { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 12px; font-weight: var(--bold); line-height: 16px; letter-spacing: 1px; text-transform: uppercase; }
.news-pager-link b { color: var(--text-strong); font-size: 16px; font-weight: var(--bold); line-height: 24px; text-wrap: balance; }
.news-pager-link:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
@media (hover: hover) {
  .news-pager-link:hover { transform: translateY(-2px); }
}
.news-more { margin-top: 80px; padding-top: 48px; box-shadow: inset 0 1px 0 var(--line); }
.news-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.news-page .news-more h2 { font-size: 32px; line-height: 40px; letter-spacing: -0.8px; }
.news-spin { animation: news-spin 900ms linear infinite; }
@keyframes news-spin { to { transform: rotate(360deg); } }
.news-editor-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
}
.news-editor {
  display: flex;
  width: calc(100vw - 64px);
  max-width: 1440px;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-page);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.news-editor-head { display: flex; height: 56px; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 0 20px; }
.news-editor-head h2 { margin: 0; color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 24px; }
.news-editor-stats { margin-left: auto; color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; font-variant-numeric: tabular-nums; }
.news-editor-grid { display: grid; flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.news-editor-form { display: flex; min-height: 0; flex-direction: column; gap: 16px; overflow-y: auto; border-right: 1px solid var(--line); padding: 20px; }
.news-editor-preview { min-height: 0; overflow-y: auto; background: var(--surface-sunken); padding: 20px 32px 48px; }
.news-editor-preview-label { display: block; margin-bottom: 16px; color: var(--text-muted); font-size: 12px; font-weight: var(--bold); line-height: 16px; letter-spacing: 1px; text-transform: uppercase; }
.news-article-preview { display: flex; flex-direction: column; gap: 16px; }
.news-article-preview .news-cover { max-width: 480px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.news-article-preview h1 { margin: 0; color: var(--text-strong); font-size: 32px; font-weight: var(--heavy); line-height: 40px; letter-spacing: -0.8px; overflow-wrap: break-word; }
.news-article-preview .news-lead { margin: 0; }
.news-article-preview .news-tag { align-self: flex-start; }
.news-article-preview .news-body h2 {
  margin: 40px 0 12px;
  color: var(--text-strong);
  font-size: 24px;
  font-weight: var(--heavy);
  line-height: 32px;
}
.news-article-preview .news-body { font-size: 16px; line-height: 28px; }
.news-article-preview .news-body p { margin-bottom: 20px; }
.news-field.is-grow { display: flex; flex: 1; flex-direction: column; }
.news-field.is-grow .news-tools { margin-bottom: -8px; }
.news-field textarea.is-body {
  flex: 1;
  min-height: 320px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 20px;
}
.news-field-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.news-field-row .ds-select { min-width: 160px; }
.news-swatches { display: flex; height: 40px; align-items: center; gap: 8px; }
.news-swatch {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: var(--news-accent);
  cursor: pointer;
}
.news-swatch.is-selected { box-shadow: 0 0 0 2px var(--surface-page), 0 0 0 4px var(--pick); }
.news-swatch:focus-visible { outline: 2px solid var(--pick); outline-offset: 4px; }
.news-check { height: 40px; }
.news-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: var(--surface-panel);
  padding: 4px;
}
.news-tools-gap { width: 1px; margin: 4px; background: var(--line); }
.news-glyph { font-family: inherit; font-size: 12px; font-weight: var(--bold); font-style: normal; line-height: 16px; }
i.news-glyph { font-family: Georgia, serif; font-size: 16px; font-style: italic; }
code.news-glyph { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.news-editor-foot { display: flex; min-height: 64px; flex-shrink: 0; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 12px 20px; }
.news-editor-note { margin-right: auto; color: var(--text-muted); font-size: 12px; line-height: 16px; }
.news-editor-note kbd { border-radius: 4px; background: var(--surface-raised); padding: 0 4px; color: var(--text-soft); font: inherit; }
.news-editor-error { margin-right: auto; font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.news-editor-ask { margin-right: auto; color: var(--text-strong); font-size: 16px; font-weight: var(--bold); line-height: 24px; }
.landing-news { margin-top: 52px; scroll-margin-top: 96px; }
.landing-news-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.landing-news-title h2 { margin: 0; color: var(--text-strong); font-size: 28px; font-weight: var(--bold); }
.landing-news-title p { margin: 8px 0 0; color: var(--text-dim); font-size: 16px; }
@media (max-width: 1100px) {
  .news-article-grid.has-contents { grid-template-columns: minmax(0, 720px) 200px; gap: 32px; }
  .news-article-head { grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; }
}
@media (max-width: 1000px) {
  .news-article-grid.has-contents { grid-template-columns: minmax(0, 720px); }
  .news-aside { display: none; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card.is-large { grid-template-columns: minmax(0, 1fr); }
  .news-cover.is-lead { height: auto; min-height: 0; aspect-ratio: 16 / 9; box-shadow: inset 0 -1px 0 var(--line); }
  .news-card.is-large .news-card-text { padding: 32px; }
  .news-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .news-editor-preview { display: none; }
}
@media (max-width: 680px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .news-hero { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px 0 24px; }
  .news-page .news-hero h1 { font-size: 40px; line-height: 48px; letter-spacing: -1px; }
  .news-hero p { font-size: 16px; line-height: 24px; }
  .news-topics { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 4px; scrollbar-width: none; }
  .news-topics::-webkit-scrollbar { display: none; }
  .news-topic { flex-shrink: 0; }
  .news-card .news-card-text { padding: 16px 20px 20px; }
  .news-card.is-large .news-card-text { padding: 20px; }
  .news-card.is-large .news-card-title { font-size: 24px; line-height: 32px; letter-spacing: -0.4px; }
  .news-card.is-placeholder, .news-card.is-large.is-placeholder { min-height: 320px; }
  .news-article { padding-top: 16px; }
  .news-article-head { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding-bottom: 32px; }
  .news-cover.is-hero { aspect-ratio: 2 / 1; }
  .news-crumbs { margin-bottom: 16px; }
  .news-page .news-article-head h1 { font-size: 32px; line-height: 40px; letter-spacing: -0.8px; }
  .news-lead { margin-top: 16px; font-size: 16px; line-height: 28px; }
  .news-byline { margin-top: 24px; padding-top: 16px; }
  .news-dates .news-meta { font-size: 12px; line-height: 16px; }
  .news-article-grid { padding-top: 32px; }
  .news-body { font-size: 16px; line-height: 28px; }
  .news-body p { margin-bottom: 20px; }
  .news-page .news-body h2 { margin-top: 40px; font-size: 24px; line-height: 32px; scroll-margin-top: 120px; }
  html.has-site-banner .news-body h2 { scroll-margin-top: 156px; }
  .news-page .news-body h3 { font-size: 16px; line-height: 24px; }
  .news-body blockquote { gap: 12px; padding: 16px; }
  .news-table th, .news-table td { padding: 8px 12px; }
  .news-pager { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .news-pager-link.is-older { grid-column: auto; }
  .news-more { margin-top: 64px; padding-top: 40px; }
  .news-more-head { flex-direction: column; align-items: stretch; }
  .news-page .news-more h2 { font-size: 24px; line-height: 32px; }
  .landing-news { margin-top: 64px; }
  .landing-news-title { flex-direction: column; align-items: flex-start; }
  .landing-news-title h2 { font-size: 24px; }
  .news-editor { width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); border-radius: 16px; }
  .news-editor-form { padding: 12px; }
  .news-editor-stats { display: none; }
  .news-editor-foot { flex-wrap: wrap; padding: 12px; }
  .news-editor-note { display: none; }
}

.news-cover {
  --nc-ground: color-mix(in srgb, var(--news-accent) 5%, var(--surface-panel));
  --nc-light: color-mix(in srgb, var(--news-accent) 62%, #ffffff);
  --nc-deep: color-mix(in srgb, var(--news-accent) 56%, #101010);
  --nc-deeper: color-mix(in srgb, var(--news-accent) 34%, #101010);
  --nc-spark: #ffffff;
  --nc-roof: var(--news-accent);
  isolation: isolate;
  background:
    radial-gradient(80% 110% at 50% -20%, color-mix(in srgb, var(--news-accent) 26%, transparent), transparent 70%),
    var(--nc-ground);
}
.theme-light .news-cover {
  --nc-deep: color-mix(in srgb, var(--news-accent) 80%, #101010);
  --nc-deeper: color-mix(in srgb, var(--news-accent) 62%, #101010);
  --nc-spark: color-mix(in srgb, var(--news-accent) 62%, #101010);
}
.theme-light .nc-shade { fill: rgb(0 0 0 / 0.1); }
.theme-light .news-cover.is-skyline { --nc-roof: var(--nc-light); }
.news-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgb(var(--ink) / 0.13) 1px, transparent 1.5px) 50% 50% / 16px 16px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000000 10%, transparent 100%);
  mask-image: radial-gradient(70% 80% at 50% 50%, #000000 10%, transparent 100%);
}
.news-cover.is-placeholder::before { content: none; }
.news-cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1);
  transition: transform 640ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
@media (hover: hover) {
  .news-card:hover .news-cover-art { transform: scale(1.05); }
}
.news-cover.is-hero .news-cover-art { overflow: visible; transform: scale(0.9); }
@media (max-width: 680px) {
  .news-cover.is-hero .news-cover-art { transform: scale(1); }
}
.news-cover:not(.is-live) .news-cover-art * { animation-play-state: paused; }
.nc-accent { fill: var(--news-accent); }
.nc-accent.is-dim { opacity: 0.6; }
.nc-accent.is-wash { opacity: 0.1; }
.nc-light { fill: var(--nc-light); }
.nc-deep { fill: var(--nc-deep); }
.nc-deeper { fill: var(--nc-deeper); }
.nc-ink { fill: rgb(var(--ink) / 0.9); }
.nc-ink.is-half { fill: rgb(var(--ink) / 0.4); }
.nc-ink.is-faint { fill: rgb(var(--ink) / 0.1); }
.nc-ink.is-tile { fill: rgb(var(--ink) / 0.06); }
.nc-ink.is-wash { fill: rgb(var(--ink) / 0.04); }
.nc-shade { fill: rgb(0 0 0 / 0.24); }
.nc-shine-stop { stop-color: #ffffff; }
.nc-line { fill: none; stroke: rgb(var(--ink) / 0.5); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.nc-line.is-faint { stroke: rgb(var(--ink) / 0.13); }
.nc-line.is-soft { stroke: rgb(var(--ink) / 0.26); }
.nc-line.is-axis { stroke: rgb(var(--ink) / 0.16); }
.nc-line.is-bright { stroke: rgb(var(--ink) / 0.72); stroke-width: 1.6; }
.nc-line.is-lit { stroke: var(--news-accent); stroke-width: 2.2; }
.nc-line.is-lit.is-thin { stroke-width: 1.5; }
.nc-line.is-glow { stroke: var(--news-accent); stroke-width: 8; opacity: 0.2; }
.nc-line.is-dash { stroke: var(--nc-light); stroke-dasharray: 2 4; }
.nc-line.is-probe { stroke: rgb(var(--ink) / 0.4); stroke-dasharray: 1 4; }
.nc-node, .nc-cell { fill: var(--nc-ground); stroke: rgb(var(--ink) / 0.46); stroke-width: 1.4; }
.nc-node.is-lit, .nc-cell.is-lit { fill: var(--news-accent); stroke: var(--nc-light); }
.nc-root { fill: var(--news-accent); stroke: var(--nc-light); stroke-width: 1.5; }
.nc-leaf { fill: rgb(var(--ink) / 0.16); }
.nc-leaf.is-lit { fill: var(--news-accent); }
.nc-spark { fill: var(--nc-spark); stroke: color-mix(in srgb, var(--news-accent) 40%, transparent); stroke-width: 7; }
.nc-spark.is-lit { stroke-width: 10; }
.nc-chip { fill: color-mix(in srgb, var(--news-accent) 20%, var(--nc-ground)); stroke: var(--news-accent); stroke-width: 1.5; }
.nc-panel { fill: var(--nc-ground); stroke: rgb(var(--ink) / 0.2); stroke-width: 1; }
.nc-panel.is-back { fill: color-mix(in srgb, rgb(var(--ink)) 3%, var(--nc-ground)); stroke: rgb(var(--ink) / 0.13); }
.nc-pick { fill: none; stroke: rgb(var(--ink) / 0.95); stroke-width: 1.4; }
.nc-cursor { fill: #ffffff; stroke: #101010; stroke-width: 0.8; stroke-linejoin: round; }
.nc-slab { fill: color-mix(in srgb, rgb(var(--ink)) 9%, var(--nc-ground)); }
.nc-slab.is-top { fill: color-mix(in srgb, rgb(var(--ink)) 4%, var(--nc-ground)); stroke: rgb(var(--ink) / 0.14); stroke-width: 1; }
.nc-roof { fill: var(--nc-roof); stroke: color-mix(in srgb, var(--nc-light) 55%, transparent); stroke-width: 0.5; }
.nc-roof.is-q3 { fill: color-mix(in srgb, var(--nc-roof) 76%, var(--nc-ground)); }
.nc-roof.is-q2 { fill: color-mix(in srgb, var(--nc-roof) 54%, var(--nc-ground)); }
.nc-roof.is-q1 { fill: color-mix(in srgb, var(--nc-roof) 34%, var(--nc-ground)); }
.nc-chip-side { fill: color-mix(in srgb, rgb(var(--ink)) 15%, var(--nc-ground)); stroke: var(--nc-ground); stroke-width: 1; }
.nc-chip-inlay { fill: rgb(var(--ink) / 0.3); }
.nc-chip-top { fill: color-mix(in srgb, rgb(var(--ink)) 24%, var(--nc-ground)); stroke: rgb(var(--ink) / 0.4); stroke-width: 1; }
.nc-chip-ring { fill: none; stroke: rgb(var(--ink) / 0.4); stroke-width: 1; stroke-dasharray: 3 3; }
.nc-stack.is-chosen .nc-chip-side { fill: var(--nc-deep); }
.nc-stack.is-chosen .nc-chip-inlay { fill: var(--nc-light); }
.nc-stack.is-chosen .nc-chip-top { fill: var(--news-accent); stroke: var(--nc-light); }
.nc-stack.is-chosen .nc-chip-ring { stroke: var(--nc-light); }
.nc-ripple { fill: none; stroke: var(--news-accent); stroke-width: 1.5; }
.nc-halo {
  fill: var(--news-accent);
  opacity: 0.16;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: nc-beat 6400ms ease-in-out var(--d, 0s) infinite both;
}
.nc-halo.is-still { animation-duration: 5200ms; }
@keyframes nc-beat {
  0%, 100% { opacity: 0.14; transform: scale(0.86); }
  9% { opacity: 0.42; transform: scale(1.16); }
  34% { opacity: 0.16; transform: scale(0.9); }
}
.nc-run { animation: nc-fall 6400ms linear var(--d, 0s) infinite both; }
.nc-run-x { animation: nc-sway 6400ms linear var(--d, 0s) infinite both; }
.nc-run .nc-spark { animation: nc-life 6400ms linear var(--d, 0s) infinite both; }
@keyframes nc-fall {
  0% { transform: translateY(0); }
  36%, 100% { transform: translateY(170px); }
}
@keyframes nc-sway {
  0% { transform: translateX(0); animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 1); }
  12% { transform: translateX(var(--x1)); animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 1); }
  24% { transform: translateX(var(--x2)); animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 1); }
  36%, 100% { transform: translateX(var(--x3)); }
}
@keyframes nc-life {
  0% { opacity: 0; }
  2%, 33% { opacity: 1; }
  36%, 100% { opacity: 0; }
}
.nc-scan { animation: nc-scan 5600ms cubic-bezier(0.45, 0, 0.55, 1) infinite both; }
.nc-scan.is-edge { fill: var(--nc-light); opacity: 0.55; }
@keyframes nc-scan {
  0% { transform: translateX(0); }
  72%, 100% { transform: translateX(600px); }
}
.nc-hop { animation: nc-hop 4400ms linear var(--d, 0s) infinite both, nc-wink 4400ms linear var(--d, 0s) infinite both; }
@keyframes nc-hop {
  0% { transform: translate(0, 0); }
  16% { transform: translate(64px, var(--y1)); }
  32% { transform: translate(128px, var(--y2)); }
  48%, 100% { transform: translate(192px, var(--y3)); }
}
@keyframes nc-wink {
  0% { opacity: 0; }
  3%, 45% { opacity: 1; }
  48%, 100% { opacity: 0; }
}
.nc-pulse { fill: var(--nc-light); animation: nc-pulse 4400ms ease-in-out var(--d, 0s) infinite both; }
@keyframes nc-pulse {
  0%, 100% { opacity: 0.3; }
  14% { opacity: 1; }
  44% { opacity: 0.3; }
}
.nc-share { transform-box: fill-box; transform-origin: 0 50%; animation: nc-share 2600ms ease-in-out infinite alternate both; }
.nc-share.is-late { animation-delay: -1300ms; }
@keyframes nc-share {
  from { transform: scaleX(0.84); }
  to { transform: scaleX(1); }
}
.nc-wire { animation: nc-wire 4400ms linear var(--d, 0s) infinite both, nc-wink 4400ms linear var(--d, 0s) infinite both; }
@keyframes nc-wire {
  0% { transform: translate(var(--ax), var(--ay)); }
  24% { transform: translate(var(--bx), var(--by)); }
  36% { transform: translate(var(--cx), var(--cy)); }
  48%, 100% { transform: translate(0, 0); }
}
.nc-sweep { animation: nc-sweep 6000ms cubic-bezier(0.4, 0, 0.6, 1) infinite both; }
@keyframes nc-sweep {
  0% { transform: translateY(0); }
  62%, 100% { transform: translateY(380px); }
}
.nc-chip-hop { animation: nc-toss 4800ms linear infinite both; }
@keyframes nc-toss {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  11% { transform: translateY(-18px); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.4); }
  20%, 100% { transform: translateY(0); }
}
.nc-ripple {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: nc-ripple-grow 4800ms linear infinite both, nc-ripple-fade 4800ms linear infinite both;
}
@keyframes nc-ripple-grow {
  0%, 20% { transform: scale(1); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  52%, 100% { transform: scale(1.7); }
}
@keyframes nc-ripple-fade {
  0%, 19% { opacity: 0; }
  21% { opacity: 0.8; }
  52%, 100% { opacity: 0; }
}
.nc-probe { animation: nc-probe 7200ms ease-in-out infinite both; }
@keyframes nc-probe {
  0% { transform: translate(var(--x), var(--y)); }
  16% { transform: translate(calc(var(--x) * -0.62), calc(var(--y) * -0.62)); }
  30% { transform: translate(calc(var(--x) * 0.36), calc(var(--y) * 0.36)); }
  42% { transform: translate(calc(var(--x) * -0.18), calc(var(--y) * -0.18)); }
  52% { transform: translate(calc(var(--x) * 0.07), calc(var(--y) * 0.07)); }
  60%, 88% { transform: translate(0, 0); }
  100% { transform: translate(var(--x), var(--y)); }
}
.nc-float { animation: nc-float 5600ms ease-in-out infinite alternate both; }
.nc-float.is-late { animation-delay: -2800ms; }
@keyframes nc-float {
  from { transform: translateY(-3px); }
  to { transform: translateY(4px); }
}
.nc-cursor { animation: nc-cursor 8000ms cubic-bezier(0.5, 0, 0.3, 1) infinite both; }
@keyframes nc-cursor {
  0%, 14% { transform: translate(205px, 126px); }
  32%, 50% { transform: translate(318px, 108px); }
  68%, 82% { transform: translate(238px, 156px); }
  100% { transform: translate(205px, 126px); }
}

.settings-page {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
  background: var(--surface-page);
  color: var(--text-normal);
}
.settings-nav {
  position: sticky;
  top: 56px;
  display: flex;
  height: calc(100vh - 56px);
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
  background: var(--surface-sunken);
  padding: 24px 16px 16px;
}
.settings-back {
  align-self: flex-start;
}
.settings-nav-title {
  margin: 28px 0 8px;
  font-size: 20px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.settings-nav-list {
  --pick: var(--amber-pick);
  width: auto;
  margin-inline: -16px;
}
.settings-nav-list .settings-nav-item {
  height: auto;
  padding-block: 8px;
}
.settings-nav-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text-soft);
}
.settings-nav-item.is-current .settings-nav-icon {
  background: color-mix(in srgb, var(--pick) 22%, transparent);
  color: var(--pick);
}
.settings-nav-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  text-align: left;
}
.settings-nav-text strong {
  font-weight: var(--bold);
}
.settings-nav-text small {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--text-muted);
}
.settings-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-panel);
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--accent-brand);
}
.settings-avatar.is-large {
  width: 64px;
  height: 64px;
  font-size: 24px;
  box-shadow: 0 0 0 2px var(--surface-panel), 0 0 0 4px color-mix(in srgb, var(--accent-brand) 45%, transparent);
}
.settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.settings-main {
  min-width: 0;
  padding: 44px 48px 64px;
}
.settings-content {
  max-width: 760px;
  animation: settings-in 280ms cubic-bezier(0.2, 0, 0, 1) both;
}
.settings-content.is-wide {
  max-width: 1240px;
}
@keyframes settings-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.settings-head h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.settings-head p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-dim);
}
.settings-card {
  margin-bottom: 16px;
}
.settings-card-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-brand) 14%, transparent);
  color: var(--accent-brand);
}
.settings-card .ds-card-body > :first-child {
  border-top: none;
  padding-top: 4px;
}
.settings-hotkeys > .ds-row:first-child {
  border-top: none;
  padding-top: 0;
}
.settings-hotkeys > .ds-row {
  padding-block: 8px;
}
.settings-hotkeys .ds-row-text {
  gap: 0;
}
.settings-card .ds-row:last-child {
  padding-bottom: 0;
}
.settings-stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.settings-row-control {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
}
.settings-stacked .settings-row-control {
  display: block;
}
.settings-columns,
.settings-hotkey-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.settings-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}
.settings-column > .settings-card {
  margin-bottom: 0;
}
.settings-hotkey-columns {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas: "main side";
}
.settings-hotkey-columns > .is-main { grid-area: main; }
.settings-hotkey-columns > .is-side { grid-area: side; }
@media (max-width: 1179px) {
  .settings-columns { grid-template-columns: minmax(0, 1fr); }
  .settings-hotkey-columns { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
}
.settings-languages {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.settings-changed {
  margin-left: 8px;
}
.settings-switch:disabled {
  opacity: 0.4;
  cursor: default;
}
.settings-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
}
.settings-choice {
  height: 40px;
  flex-direction: row;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
}
.settings-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.settings-designs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.settings-design-cards {
  display: flex;
  gap: 4px;
}
.settings-design-name {
  display: flex;
  align-items: center;
  gap: 4px;
}
.settings-themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
  gap: 8px;
}
.settings-themes.is-colours .ds-tile {
  gap: 4px;
  padding: 12px 8px;
}
.settings-themes.is-colours .settings-theme-note {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.settings-theme-preview {
  display: grid;
  grid-template-columns: 22fr 8fr 35fr 34fr;
  width: 136px;
  height: 42px;
  gap: 2px;
  border-radius: 8px;
  padding: 6px;
}
.settings-theme-preview i {  border-radius: 3px; }
.settings-theme-preview.is-brand { background: #1f1f1f; }
.settings-theme-preview.is-brand i:nth-child(1) { background: var(--solver-allin); }
.settings-theme-preview.is-brand i:nth-child(2) { background: var(--solver-aggressive); }
.settings-theme-preview.is-brand i:nth-child(3) { background: var(--solver-passive); }
.settings-theme-preview.is-brand i:nth-child(4) { background: var(--solver-fold); }
.settings-theme-preview.is-contrast { background: #1f1f1f; box-shadow: inset 0 0 0 1px #3b3b3b; }
.settings-theme-preview.is-contrast i:nth-child(1) { background: var(--solver-allin); }
.settings-theme-preview.is-contrast i:nth-child(2) { background: var(--solver-aggressive); }
.settings-theme-preview.is-contrast i:nth-child(3) { background: var(--solver-passive); }
.settings-theme-preview.is-contrast i:nth-child(4) { background: var(--solver-fold); }
.settings-actions-preview {
  display: grid;
  grid-template-columns: 18fr 22fr repeat(5, 9fr) 12fr;
  width: 136px;
  height: 42px;
  gap: 2px;
  border-radius: 8px;
  background: var(--surface-sunken);
  padding: 6px;
}
.settings-actions-preview i {  border-radius: 3px; }
.settings-theme-note {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}
.settings-looks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 8px;
}
.settings-table-preview {
  position: relative;
  isolation: isolate;
  display: block;
  width: 120px;
  height: 55px;
}
.settings-table-preview .table-surface {
  top: 50%;
  transform: translate(-50%, -50%) scale(0.143);
}
.playing-card--settings {
  --card-width: 32px;
  --card-height: 44px;
}
.settings-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.settings-volume.is-muted {
  opacity: 0.45;
}
.settings-volume-value {
  width: 40px;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: var(--text-soft);
}
.settings-range {
  width: 180px;
}
.settings-range:disabled {
  cursor: default;
}
.settings-fineprint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.settings-card .ds-card-body > :not(.ds-row) + .ds-row { margin-top: 16px; }
.settings-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 4px;
}
.settings-profile-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.settings-profile-text strong {
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.settings-profile-text > span:not(.settings-chip) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-muted);
}
.settings-chip {
  margin-top: 4px;
}
.settings-card.is-plan {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-brand) 11%, var(--surface-panel)), var(--surface-panel) 62%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-brand) 30%, transparent);
}
.settings-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}
.settings-plan-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: var(--bold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.settings-plan-name {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: var(--heavy);
  line-height: 32px;
  color: var(--text-strong);
}
.settings-status i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grade-good);
}
.settings-status i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--grade-good);
  pointer-events: none;
  animation: settings-live 1.8s ease-out infinite;
}
@keyframes settings-live {
  from {
    opacity: 0.7;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(1.4);
  }
}
.settings-plan-wait {
  width: 64px;
  height: 32px;
}
.settings-plan-lead {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}
.settings-plan-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.settings-plan-list li {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}
.settings-plan-list li svg {
  flex: none;
  color: var(--accent-brand);
}
.settings-plan-list strong {
  color: var(--text-strong);
}
.settings-device {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
}
.settings-device-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text-soft);
}
.settings-device-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.settings-device-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.settings-device-text small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
  overflow-wrap: anywhere;
}
.settings-device .ds-badge,
.settings-device .ds-button {
  flex-shrink: 0;
}
.settings-device.is-large {
  gap: 16px;
  padding: 8px 0 4px;
}
.settings-device.is-large .settings-device-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-brand) 14%, transparent);
  color: var(--accent-brand);
}
.settings-device-text .ds-skeleton.is-title { width: 160px; }
.settings-device-text .ds-skeleton.is-short { width: 240px; max-width: 100%; }
.settings-sign-in.is-past .settings-device-icon { color: var(--text-dim); }
.settings-sign-in.is-past .settings-device-text strong { color: var(--text-normal); }
.settings-devices-note {
  margin: 12px 0 0;
}
.settings-card.is-off .settings-hotkeys .ds-row-text {
  opacity: 0.4;
}
.settings-hotkey-keys {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}
.settings-key-button {
  min-width: 72px;
}
.settings-key-button.is-recording {
  background: color-mix(in srgb, var(--pick) 12%, transparent);
  box-shadow: inset 0 0 0 1px var(--pick);
}
.settings-key-button.is-recording::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pick) 56%, transparent);
  pointer-events: none;
  animation: settings-recording 1.1s ease-in-out infinite alternate;
}
@keyframes settings-recording {
  from {
    opacity: 0.15;
  }
  to {
    opacity: 1;
  }
}
.settings-key-prompt {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--pick);
}
.settings-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.settings-notice {
  flex: 1;
  font-size: 12px;
  color: var(--text-dim);
}
.account-delete-backdrop {
  z-index: 100;
}
.account-delete {
}
.account-delete-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--grade-bad) 16%, transparent);
  color: var(--grade-bad);
}
.account-delete-title {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.account-delete-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: var(--bold);
  line-height: 28px;
  color: var(--text-strong);
}
.account-delete-title small {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.account-delete-body p {
  margin: 0 0 8px;
}
.account-delete-body ul {
  margin: 0 0 12px;
  padding-left: 16px;
}
.account-delete-body li {
  margin-bottom: 4px;
}
.account-delete-field {
  margin: 12px 0 4px;
}
.account-delete-field b {
  color: var(--text-strong);
  letter-spacing: 0.6px;
}
@media (max-width: 979px) {
  body:has(.settings-page) { min-width: 0; }
  .settings-page { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .settings-page :is(input, select, textarea) { font-size: 16px; }
}
.settings-card .layout-picker { display: grid; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px 16px; }
.settings-card .layout-picker-part.is-page { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 759px) {
  .settings-page { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; height: auto; gap: 8px; border-right: none; border-bottom: 1px solid var(--line); padding: 12px 12px 8px; }
  .settings-nav-title, .settings-nav .sidebar-account, .settings-nav-text small { display: none; }
  .settings-nav-list.settings-nav-list { flex-direction: row; gap: 4px; margin-inline: -12px; overflow-x: auto; padding-inline: 12px; scrollbar-width: none; }
  .settings-nav-list .settings-nav-item { flex: none; width: auto; border-radius: 8px; }
  .settings-main { padding: 20px 12px 48px; }
  .settings-head h1 { font-size: 24px; }
  .settings-range { width: 112px; }
  .settings-card .layout-picker { display: flex; }
}

.saved-spots-backdrop {
  z-index: 100;
}
.saved-spots {
  position: relative;
  width: 80vw;
  height: calc(100vh - 80px);
  height: calc(100dvh - 80px);
  max-height: 760px;
}
.saved-spots-head {
  flex-shrink: 0;
}
.saved-spots-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-brand) 15%, transparent);
  color: var(--accent-brand);
}
.saved-spots-title {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.saved-spots-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: var(--bold);
  line-height: 24px;
  color: var(--text-strong);
}
.saved-spots-title small {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.saved-add {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-brand) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-brand) 40%, transparent);
  padding: 0 12px 0 8px;
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  color: var(--accent-brand);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.saved-add:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent-brand) 26%, transparent);
}
.saved-add.is-active {
  background: var(--accent-brand);
  color: var(--text-on-brand);
}
.saved-add:disabled {
  opacity: 0.4;
  cursor: default;
}
.saved-add-icon {
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1);
}
.saved-add.is-active .saved-add-icon {
  transform: rotate(45deg);
}
.saved-shade {
  position: absolute;
  z-index: 3;
  top: 56px;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.saved-shade.is-on {
  opacity: 1;
  pointer-events: auto;
}
.saved-drawer {
  position: absolute;
  z-index: 4;
  top: 56px;
  right: 0;
  left: 0;
  padding: 12px 16px 0;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 280ms;
}
.saved-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}
.saved-drawer > .saved-current {
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(-22px) scale(0.98);
  transform-origin: top center;
  transition: opacity 200ms ease, transform 280ms cubic-bezier(0.2, 0, 0, 1);
}
.saved-drawer.is-open > .saved-current {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.saved-current {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px;
  border: 1px solid color-mix(in srgb, var(--accent-brand) 28%, transparent);
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-brand) 10%, #232323), #232323 58%);
  padding: 12px 16px;
}
.saved-current.is-saved {
  border-color: color-mix(in srgb, var(--grade-good) 30%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--grade-good) 9%, #232323), #232323 58%);
}
.saved-current-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.saved-current-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-brand);
}
.saved-current.is-saved .saved-current-eyebrow {
  color: var(--grade-good);
}
.saved-current-label {
  font-size: 16px;
  font-weight: var(--bold);
  line-height: 24px;
  color: var(--text-strong);
}
.saved-current-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.saved-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.saved-line-street {
  display: flex;
  flex-direction: column;
}
.saved-line-street small {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.saved-line-street b {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 2.5px;
  color: var(--text-strong);
}
.saved-current-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}
.saved-current-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.saved-flash {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: var(--grade-good);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0, 0, 1);
}
.saved-flash.is-on {
  opacity: 1;
  transform: translateX(0);
}
.saved-tags-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.saved-tags-editor {
  display: flex;
  min-height: 32px;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 4px 8px;
}
.saved-tags-editor:focus-within {
  box-shadow: inset 0 0 0 2px var(--pick);
}
.saved-tags-icon {
  flex: none;
  color: var(--text-muted);
}
.saved-tags-input {
  min-width: 120px;
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-strong);
  outline: none;
}
.saved-tags-input::placeholder {
  color: var(--text-muted);
}
.saved-tags-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.saved-tag {
  max-width: 100%;
}
.saved-tag button {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: -4px;
  border: none;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
}
.saved-tag button:hover {
  opacity: 1;
}
.saved-tag.is-offer {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 120ms ease;
}
.saved-tag.is-offer:hover {
  opacity: 1;
}
.saved-spots .is-tone-0 { --tone: var(--accent-brand); }
.saved-spots .is-tone-1 { --tone: var(--ai-accent); }
.saved-spots .is-tone-2 { --tone: var(--grade-good); }
.saved-spots .is-tone-3 { --tone: var(--neural-text); }
.saved-tag[class*="is-tone-"] {
  background: color-mix(in srgb, var(--tone) 16%, transparent);
  color: var(--tone);
}
.saved-delete-confirm {
  animation: saved-confirm-in 160ms ease both;
}
@keyframes saved-confirm-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.saved-tools {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px 8px;
}
.saved-search {
  width: 320px;
}
.saved-search > .ds-input {
  padding-right: 32px;
}
.saved-search > .ds-button {
  position: absolute;
  right: 4px;
}
.saved-filter {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  gap: 4px;
}
.saved-filter b {
  font-weight: var(--bold);
  color: var(--text-muted);
}
.saved-filter i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
}
.saved-error {
  flex-shrink: 0;
  margin: 0 16px 8px;
}
.saved-table {
  isolation: isolate;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.saved-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 124px minmax(0, 1.6fr) minmax(0, 1.25fr) minmax(0, 1fr) 72px 72px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  text-align: left;
}
.saved-row.is-head {
  flex-shrink: 0;
  height: 32px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: var(--heavy);
  line-height: 16px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.saved-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
}
.saved-sort:hover,
.saved-sort.is-sorted {
  color: var(--text-strong);
}
.saved-rows {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 12px;
}
.saved-rows > .saved-row:focus-visible {
  background: var(--surface-hover);
  color: var(--text-strong);
  outline: none;
}
.saved-cell-spot {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}
.saved-cell-spot strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-strong);
}
.saved-cell-spot > .ds-badge {
  flex: none;
}
.saved-cell-text {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  line-height: 1.4;
  color: var(--text-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.saved-cell-text.is-note {
  color: var(--text-normal);
}
.saved-cell-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
}
.saved-cell-time {
  color: var(--text-muted);
}
.saved-cell-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  cursor: default;
}
.saved-muted {
  color: var(--text-muted);
}
.saved-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 16px;
  border-radius: 8px;
  background: #2f2f2f;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-brand) 40%, transparent);
  padding: 12px;
  animation: saved-edit-in 200ms cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes saved-edit-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.saved-edit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-strong);
}
.saved-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.saved-skeleton {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 1.6fr;
  align-items: center;
  gap: 16px;
  height: 40px;
  padding: 0 16px;
}

.tour {
  position: fixed;
  z-index: 950;
  inset: 0;
  pointer-events: none;
  animation: tour-in 220ms ease both;
}
.tour.is-closing { animation: tour-out 160ms ease both; }
@keyframes tour-in {
  from { opacity: 0; }
}
@keyframes tour-out {
  to { opacity: 0; }
}
.tour-shade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.64);
  pointer-events: auto;
  transform-origin: 0 0;
  transition: transform 320ms cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}
.tour-ring {
  position: fixed;
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--pick), 0 0 0 8px color-mix(in srgb, var(--pick) 18%, transparent);
  pointer-events: auto;
  animation: tour-ring-in 260ms ease 200ms both;
}
@keyframes tour-ring-in {
  from { opacity: 0; }
}
.tour-card {
  position: fixed;
  top: 12px;
  left: 12px;
  width: min-content;
  min-width: 300px;
  max-width: calc(100vw - 24px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-panel);
  padding: 12px 16px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  color: var(--text-normal);
  pointer-events: auto;
  animation: tour-card-in 260ms cubic-bezier(0.2, 0, 0, 1) 120ms both;
}
.tour-card.is-measuring {
  visibility: hidden;
  animation: none;
}
@keyframes tour-card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.tour-count {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-brand);
  font-size: 12px;
  font-weight: var(--bold);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.tour-title {
  margin: 0 0 4px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: var(--bold);
  line-height: 1.3;
}
.tour-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}
.tour-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}
.tour-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: transform 200ms ease;
}
.tour-dot.is-current {
  background: var(--pick);
  transform: scale(1.35);
}
.tour-next {
  min-width: 64px;
}
@media (max-width: 430px) {
  .tour-card {
    width: calc(100vw - 24px);
    min-width: 0;
  }
  .tour-foot {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
  }
  .tour-dots {
    flex-basis: 100%;
  }
}
.recent-empty {
  margin: 0;
  padding: 0 4px 4px;
}

body:has(.legal-page) { min-width: 0; }
.legal-page {
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--text-normal);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.legal-hero,
.legal-layout,
.legal-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-hero {
  padding-top: 48px;
  padding-bottom: 36px;
  animation: legal-in 320ms cubic-bezier(0.2, 0, 0, 1) both;
}
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 24px;
}
.legal-layout {
  animation: legal-in 320ms 60ms cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes legal-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.legal-kicker {
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-brand);
}
.legal-hero h1 {
  margin: 8px 0;
  font-size: 40px;
  font-weight: var(--heavy);
  letter-spacing: -0.6px;
  color: var(--text-strong);
}
.legal-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.legal-language-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.legal-lead {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 720px);
  gap: 56px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 80px;
}
.legal-toc-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  list-style: none;
  pointer-events: none;
}
.legal-toc-box summary::-webkit-details-marker { display: none; }
.legal-toc-box summary svg { display: none; }
.legal-toc ol {
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-toc .ds-nav-link {
  display: flex;
  height: auto;
  min-height: 32px;
  margin-inline: -12px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 16px;
  text-decoration: none;
}
.legal-toc-number {
  flex: none;
  width: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.legal-article {
  min-width: 0;
  padding-bottom: 40px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}
.legal-section {
  scroll-margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 28px 0 8px;
}
.legal-section:first-child {
  border-top: none;
  padding-top: 0;
}
.legal-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: var(--bold);
  line-height: 1.3;
  color: var(--text-strong);
}
.legal-section-number {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-brand) 14%, transparent);
  font-size: 12px;
  font-weight: var(--heavy);
  color: var(--accent-brand);
}
.legal-article p { margin: 0 0 12px; }
.legal-article strong { color: var(--text-strong); }
.legal-article a {
  color: var(--accent-brand);
  font-weight: 600;
  text-decoration: none;
}
.legal-article a:hover { text-decoration: underline; }
.legal-article ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.legal-article li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
}
.legal-article li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-brand);
}
.legal-article code {
  border-radius: 4px;
  background: var(--surface-raised);
  padding: 0 4px;
  font-size: 12px;
  color: var(--text-strong);
}
.legal-table {
  width: 100%;
  margin: 4px 0 16px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.55;
}
.legal-table th {
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.6px;
  text-align: left;
  text-transform: uppercase;
  color: var(--text-muted);
}
.legal-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  vertical-align: top;
}
.legal-table td:first-child {
  font-weight: 600;
  color: var(--text-strong);
}
.legal-placeholder {
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent-brand) 14%, transparent);
  padding: 0 4px;
  font-weight: var(--bold);
  color: var(--accent-brand);
}
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 12px;
  color: var(--text-muted);
}
.legal-footer-note { flex: 1 1 240px; }
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.legal-footer-links a {
  text-decoration: none;
  color: var(--text-soft);
}
.legal-footer-links a:hover { color: var(--text-strong); }
:is(.legal-hero, .legal-layout, .legal-footer) :is(a, button):focus-visible {
  outline: 2px solid var(--pick);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .legal-hero,
  .legal-layout,
  .legal-footer {
    padding-right: 16px;
    padding-left: 16px;
  }
  .legal-hero { padding-top: 28px; padding-bottom: 24px; }
  .legal-hero h1 { font-size: 28px; }
  .legal-lead { font-size: 16px; }
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .legal-toc { position: static; }
  .legal-toc-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-panel);
    padding: 0 16px;
  }
  .legal-toc-box summary {
    min-height: 48px;
    margin: 0;
    font-size: 12px;
    pointer-events: auto;
    cursor: pointer;
  }
  .legal-toc-box summary svg {
    display: block;
    transition: transform 150ms ease;
  }
  .legal-toc-box[open] summary svg { transform: rotate(180deg); }
  .legal-toc-box ol { padding-bottom: 8px; }
  .legal-toc .ds-nav-link { margin-inline: -16px; padding: 8px 16px; font-size: 16px; line-height: 24px; }
  .legal-section { scroll-margin-top: 128px; }
  .legal-section h2 { font-size: 16px; }
  .legal-article { font-size: 16px; }
  .legal-table { display: block; overflow-x: auto; }
  .legal-footer { flex-direction: column; align-items: flex-start; }
  .legal-footer-note { flex: none; }
}

.consent-banner {
  position: fixed;
  right: 0;
  bottom: 20px;
  left: 0;
  z-index: 45;
  width: 780px;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  border-radius: 16px;
  background: var(--surface-panel);
  padding: 16px 20px;
  color: var(--text-normal);
  animation: consent-in 320ms cubic-bezier(0.2, 0, 0, 1) both;
}
.consent-banner.is-leaving {
  animation: consent-out 200ms cubic-bezier(0.4, 0, 1, 1) both;
  pointer-events: none;
}
@keyframes consent-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes consent-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(24px);
  }
}
.consent-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.consent-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-brand) 15%, transparent);
  color: var(--accent-brand);
}
.consent-text h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.consent-text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
}
.consent-text a {
  color: var(--accent-brand);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.consent-text a:hover {
  text-decoration: underline;
}
.consent-options {
  display: grid;
  gap: 8px;
  margin: 12px 0 0 52px;
  animation: consent-options-in 200ms cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes consent-options-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 12px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 8px 12px;
}
.consent-option-text strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}
.consent-option-text small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.consent-switch:disabled {
  opacity: 0.4;
  cursor: default;
}
.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.consent-customize {
  margin-right: auto;
}
.consent-text a:focus-visible {
  outline: 2px solid var(--pick);
  outline-offset: 2px;
}
.consent-spacer {
  display: none;
}
@media (max-width: 700px) {
  .consent-banner {
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
    padding: 12px;
  }
  .consent-icon {
    display: none;
  }
  .consent-text p {
    font-size: 12px;
  }
  .consent-options {
    margin-left: 0;
  }
  .consent-actions {
    flex-wrap: wrap;
  }
  .consent-banner .consent-button {
    flex: 1 1 auto;
    padding: 0 8px;
  }
  .consent-customize {
    margin-right: 0;
  }
  .consent-spacer {
    display: block;
  }
  html.has-consent-banner .auth-page {
    place-items: start center;
  }
}

html:lang(ar) * {
  unicode-bidi: plaintext;
}

.admin-page {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
  background: var(--surface-page);
  color: var(--text-normal);
}
.admin-nav {
  position: sticky;
  top: 56px;
  display: flex;
  height: calc(100vh - 56px);
  flex-direction: column;
  gap: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--line);
  background: var(--surface-sunken);
  padding: 24px 16px 16px;
}
.admin-back {
  align-self: flex-start;
}
.admin-nav-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 8px;
  font-size: 20px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.admin-nav-title svg {
  color: var(--accent-brand);
}
.admin-nav-list {
  width: auto;
  margin-inline: -16px;
}
.admin-nav-list .admin-nav-item {
  height: auto;
  padding-block: 8px;
}
.admin-nav-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text-soft);
}
.admin-nav-item.is-current .admin-nav-icon {
  background: color-mix(in srgb, var(--pick) 22%, transparent);
  color: var(--pick);
}
.admin-nav-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  text-align: left;
}
.admin-nav-text strong {
  font-weight: var(--bold);
}
.admin-nav-text small {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--text-muted);
}
.admin-nav-run {
  align-self: flex-start;
  margin-top: auto;
}
.admin-nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  margin-bottom: -4px;
  padding: 12px 0 0;
}
.admin-nav-user .admin-avatar {
  width: 36px;
  height: 36px;
}
.admin-nav-user-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.admin-nav-user-text strong,
.admin-nav-user-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-nav-user-text strong {
  font-size: 12px;
  color: var(--text-strong);
}
.admin-nav-user-text small {
  font-size: 12px;
  color: var(--text-muted);
}
.admin-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-raised);
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--accent-brand);
}
.admin-avatar.is-large {
  width: 64px;
  height: 64px;
  font-size: 24px;
  box-shadow: 0 0 0 2px var(--surface-page), 0 0 0 4px color-mix(in srgb, var(--accent-brand) 45%, transparent);
}
.admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-main {
  min-width: 0;
  padding: 32px 36px 64px;
}
.admin-content {
  max-width: 1240px;
  animation: admin-in 260ms cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes admin-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.admin-head-tools {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.admin-everyone {
  margin: 0 0 12px;
}
.admin-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-staff.ds-check {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-soft);
  white-space: nowrap;
}
.admin-refresh.is-busy svg {
  animation: admin-refresh-spin 900ms linear infinite;
}
@keyframes admin-refresh-spin {
  to { transform: rotate(360deg); }
}
.admin-head h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.admin-head p {
  max-width: 640px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
}
.admin-segments {
  display: inline-flex;
  max-width: 100%;
  flex: none;
  flex-wrap: wrap;
}
.admin-segments small {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-muted);
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.admin-stats.is-seven {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
}
.admin-stat {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-panel);
  padding: 12px 16px 8px;
}
.admin-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.admin-stat-value {
  font-size: 28px;
  font-weight: var(--heavy);
  line-height: 1.15;
  color: var(--text-strong);
}
.admin-stat-note {
  font-size: 12px;
  color: var(--text-dim);
}
.admin-spark {
  display: block;
  width: 100%;
  height: 24px;
  margin-top: auto;
  padding-top: 4px;
}
.admin-spark-line {
  fill: none;
  stroke: var(--c);
  stroke-width: 1.5px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.admin-grid > .is-wide {
  grid-column: 1 / -1;
}
.admin-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-panel);
  padding: 16px 16px 12px;
}
.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.admin-card-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.admin-card-head p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}
.admin-card-head:last-child {
  margin-bottom: 0;
}
.admin-empty {
  margin: 4px 0;
}
.is-c1 { --c: var(--chart-1); }
.is-c2 { --c: var(--chart-2); }
.is-c3 { --c: var(--chart-3); }
.is-c4 { --c: var(--chart-4); }
.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -4px 0 4px;
  font-size: 12px;
  color: var(--text-soft);
}
.admin-key {
  display: inline-block;
  width: 16px;
  height: 4px;
  margin-right: 4px;
  border-radius: 2px;
  background: var(--c);
  vertical-align: middle;
}
.admin-chart-plot {
  position: relative;
}
.admin-chart-plot svg {
  display: block;
  overflow: visible;
}
.admin-gridline {
  stroke: var(--chart-grid);
  stroke-width: 1px;
  shape-rendering: crispEdges;
}
.admin-axis {
  fill: var(--text-muted);
  font-size: 12px;
}
.admin-line {
  fill: none;
  stroke: var(--c);
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.admin-area {
  fill: var(--c);
  fill-opacity: 0.1;
  stroke: none;
}
.admin-crosshair {
  stroke: var(--line-strong);
  stroke-width: 1px;
}
.admin-dot {
  fill: var(--c);
  stroke: var(--surface-panel);
  stroke-width: 2px;
}
.admin-chart-empty {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.admin-tooltip {
  position: absolute;
  z-index: 5;
  display: flex;
  min-width: 152px;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  transform: translateX(12px);
}
.admin-tooltip.is-left {
  transform: translateX(calc(-100% - 12px));
}
.admin-tooltip strong {
  color: var(--text-strong);
}
.admin-tooltip span {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.admin-tooltip b {
  margin-left: auto;
  padding-left: 12px;
}
.admin-bars {
  margin: 0;
  padding: 0;
  list-style: none;
}
.admin-bars li + li {
  margin-top: 8px;
}
.admin-bar-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.admin-bar-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-normal);
}
.admin-bar-label small {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.admin-bar-value {
  flex: none;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.admin-bar-value small {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.admin-bar-track {
  height: 8px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-sunken);
}
.admin-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--chart-1);
}
.admin-filter-key {
  border-radius: 4px;
  background: var(--surface-raised);
  padding: 0 4px;
  font-size: 12px;
  color: var(--text-soft);
}
.admin-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 32px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.admin-loading svg {
  animation: admin-breathe 1.2s ease-in-out infinite;
}
@keyframes admin-breathe {
  50% { opacity: 0.35; }
}
.admin-loadable {
  transition: opacity 160ms ease;
}
.admin-loadable.is-refreshing {
  opacity: 0.7;
}
.admin-problem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--grade-bad) 12%, transparent);
  padding: 12px;
  font-size: 12px;
  color: var(--text-strong);
}
.admin-calm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 40px;
  font-size: 12px;
  color: var(--text-soft);
}
.admin-calm svg {
  color: var(--grade-good);
}
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.admin-error-text,
.admin-ok-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 0;
  font-size: 12px;
}
.admin-error-text {
  color: var(--grade-bad);
}
.admin-ok-text {
  color: var(--grade-good);
}
.admin-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.admin-card-head + .admin-field {
  border-top: none;
  padding-top: 0;
}
.admin-field.is-compact {
  padding: 8px 0;
}
.admin-field-text {
  min-width: 0;
}
.admin-field-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}
.admin-field-text small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}
.admin-field-value {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-strong);
}
.admin-field .ds-input {
  width: 112px;
  text-align: right;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.admin-toolbar-note {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}
.admin-search {
  width: 340px;
}
.admin-search .ds-input {
  padding-right: 32px;
}
.admin-search-clear {
  position: absolute;
  right: 4px;
}
.admin-user-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 2.4fr) 136px 104px 88px 72px 244px 72px 56px 72px 80px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1500px) {
  .admin-user-row {
    grid-template-columns: minmax(0, 2.4fr) 136px 104px 88px 72px 244px 72px 80px;
  }
  .admin-user-row > :nth-child(7),
  .admin-user-row > :nth-child(8) {
    display: none;
  }
}
.admin-user-row.is-head {
  height: 32px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: var(--heavy);
  line-height: 16px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.admin-user-row.is-off {
  opacity: 0.6;
}
.admin-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.admin-sort:hover,
.admin-sort.is-sorted {
  color: var(--text-strong);
}
.admin-span span.is-on {
  color: var(--text-strong);
}
.admin-user-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.admin-user-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.admin-user-name strong,
.admin-user-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user-name strong {
  font-size: 12px;
  color: var(--text-strong);
}
.admin-user-name small {
  font-size: 12px;
  color: var(--text-muted);
}
.admin-user-line {
  display: flex;
  min-width: 0;
  gap: 8px;
  font-size: 12px;
}
.admin-user-line em {
  flex: none;
  font-style: normal;
  color: var(--text-dim);
}
.admin-user-two {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.admin-user-two small {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user-two small.is-bad {
  color: var(--grade-bad);
}
.admin-user-plan {
  display: flex;
  min-width: 0;
}
.admin-user-plan .ds-badge {
  display: block;
  overflow: hidden;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user-cookies.is-no {
  color: var(--text-muted);
}
.admin-today {
  display: flex;
  gap: 12px;
}
.admin-today span.is-hit {
  font-weight: 600;
  color: var(--grade-warn);
}
.admin-today span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-soft);
}
.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.admin-drawer-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.admin-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 620px;
  max-width: calc(100vw - 48px);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--surface-page);
  padding: 28px 28px 40px;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
  outline: none;
  animation: admin-drawer-in 280ms cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes admin-drawer-in {
  from {
    opacity: 0;
    transform: translateX(48px);
  }
}
.admin-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.admin-detail .admin-card {
  margin-bottom: 12px;
}
.admin-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 40px 20px 4px;
}
.admin-detail-who {
  min-width: 0;
}
.admin-detail-who h2 {
  margin: 0;
  font-size: 20px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.admin-detail-who > span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-dim);
}
.admin-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.admin-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.admin-facts > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-panel);
  padding: 8px 12px;
}
.admin-facts dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
}
.admin-facts dd {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
  overflow-wrap: anywhere;
}
.admin-facts dd small {
  display: block;
  margin-top: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.admin-facts.is-small {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}
.admin-facts.is-small > div {
  background: var(--surface-sunken);
}
.admin-facts.is-small dd {
  font-size: 12px;
  font-weight: 600;
}
.admin-feed {
  max-height: 420px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.admin-feed li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.admin-feed li:first-child {
  border-top: none;
}
.admin-feed-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text-soft);
}
.admin-feed-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-normal);
}
.admin-feed time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.admin-logins {
  display: flex;
  flex-direction: column;
}
.admin-login-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-soft);
}
.admin-login-row:first-child {
  border-top: none;
}
.admin-login-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-login-event {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text-strong);
  text-transform: capitalize;
}
.admin-login-event small {
  flex-basis: 100%;
  font-weight: 400;
  color: var(--text-muted);
}
.admin-errors {
  margin: 0;
  padding: 0;
  list-style: none;
}
.admin-error {
  margin-bottom: 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #2a2a2a;
  transition: background-color 150ms ease;
}
.admin-error:hover {
  background: #313131;
}
.admin-error.is-open {
  border-color: var(--line);
  background: var(--surface-panel);
}
.admin-errors-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 12px;
}
.admin-errors-bulk .ds-check {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-soft);
}
.admin-error.is-pickable {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
}
.admin-error.is-pickable > .admin-error-detail {
  grid-column: 1 / -1;
}
.admin-error-pick.ds-check {
  justify-self: end;
}
.admin-error-line {
  display: grid;
  width: 100%;
  grid-template-columns: 120px minmax(0, 1fr) 64px 64px 92px 16px;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  padding: 8px 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.admin-kind {
  justify-self: start;
}
.admin-kind::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.admin-kind.is-js { --c: var(--chart-2); }
.admin-kind.is-auth { --c: var(--chart-1); }
.admin-kind.is-csp { --c: var(--chart-4); }
.admin-kind.is-node { --c: var(--chart-3); }
.admin-error-text-block {
  min-width: 0;
}
.admin-error-text-block strong,
.admin-error-text-block small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-error-text-block strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}
.admin-error-text-block small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.admin-error.is-resolved .admin-error-text-block strong {
  color: var(--text-dim);
}
.admin-error-count {
  text-align: right;
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.admin-error-count small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.admin-error-when {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
}
.admin-error-chevron {
  color: var(--text-muted);
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1);
}
.admin-error.is-open .admin-error-chevron {
  transform: rotate(180deg);
}
.admin-error-detail {
  padding: 0 12px 12px;
}
.admin-stack {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-sunken);
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
  white-space: pre;
}
@media (max-width: 1180px) {
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.admin-growth-table tbody tr {
  cursor: auto;
}
.admin-growth-table td {
  overflow-wrap: anywhere;
}
.admin-growth-table :is(th, td).is-num {
  white-space: nowrap;
}
.admin-facts + .admin-logins,
.admin-logins + .admin-logins {
  margin-top: 12px;
}
.admin-login-row > .admin-row-name {
  color: var(--text-strong);
}
.admin-login-row > .admin-row-text {
  grid-column: 1 / -1;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--text-normal);
}
.admin-login-row > .admin-row-wide {
  grid-column: span 2;
}
.admin-login-row.is-off {
  opacity: 0.6;
}
.admin-row-warn {
  color: var(--grade-warn);
}
.admin-row-bad {
  color: var(--grade-bad);
}
.admin-row-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-strong);
}
.admin-row-pages {
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}

.admin-perf-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-soft);
}
.admin-perf-legend p {
  flex: 1 1 360px;
  margin: 0;
  line-height: 1.45;
  color: var(--text-muted);
}
.admin-perf-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.admin-perf-key::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grade);
}
.admin-perf-key.is-good,
.admin-perf-value.is-good { --grade: var(--grade-good); }
.admin-perf-key.is-warn,
.admin-perf-value.is-warn { --grade: var(--grade-warn); }
.admin-perf-key.is-poor,
.admin-perf-value.is-poor { --grade: var(--grade-bad); }
.admin-perf-value {
  color: var(--text-strong);
  white-space: nowrap;
}
.admin-perf-value.is-good,
.admin-perf-value.is-warn,
.admin-perf-value.is-poor {
  color: var(--grade);
}
.admin-perf-tile .admin-stat-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.admin-perf-tile .admin-stat-label small {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-dim);
}
.admin-perf-tile .admin-stat-value {
  font-size: 24px;
}
.admin-perf-tile-note {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}
.admin-perf-scroll {
  overflow-x: auto;
}
.admin-perf-table th,
.admin-perf-table .is-num {
  white-space: nowrap;
}
.admin-perf-table thead :is(th, th.is-num) {
  white-space: normal;
}
.admin-perf-table :is(th, td) {
  padding-inline: 4px;
}
.admin-perf-table td {
  overflow-wrap: anywhere;
}
.admin-perf-table tbody tr {
  cursor: auto;
}
.admin-perf-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-soft);
}
.admin-perf-sub {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
}
.admin-perf-foot {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.views-fresh {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.views-fresh .admin-toolbar {
  margin-bottom: 0;
}
.views-updated {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.views-updated small {
  font-weight: 400;
  color: var(--text-muted);
}
.views-discrepancies {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 12px;
  color: var(--text-soft);
}
.views-discrepancies code {
  color: var(--text-strong);
}
.views-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.views-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.views-tile strong {
  font-size: 20px;
  line-height: 24px;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.views-summary,
.views-table {
  table-layout: fixed;
}
.views-summary th,
.views-table th {
  white-space: normal;
  vertical-align: bottom;
  padding: 4px 8px;
}
.views-summary td,
.views-table td {
  padding: 0 8px;
}
.views-summary th:first-child {
  width: 22%;
}
.views-summary td.is-full {
  color: var(--grade-good);
}
.views-summary td.views-none,
.views-table td.views-none {
  color: var(--text-muted);
}
.views-summary td strong {
  color: var(--text-strong);
}
.views-share {
  display: block;
  height: 2px;
  margin-bottom: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.views-share-bar {
  display: block;
  height: 2px;
  background: var(--grade-good);
  transform-origin: left center;
}
.views-card {
  margin-top: 16px;
  scroll-margin-top: 16px;
}
.views-filters {
  scroll-margin-top: 80px;
}
.views-table th:nth-child(1) { width: 23%; }
.views-table th:nth-child(2) { width: 14%; }
.views-table th:nth-child(3) { width: 10%; }
.views-table th:nth-child(4) { width: 20%; }
.views-table th:nth-child(5) { width: 9%; }
.views-table th:nth-child(6) { width: 8%; }
.views-table th:nth-child(7) { width: 8%; }
.views-table th:nth-child(8) { width: 8%; }
.views-game {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.views-game small {
  font-size: 12px;
  color: var(--text-muted);
}
.views-table td {
  height: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.views-name {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.views-name > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.views-name strong {
  font-weight: 600;
  color: var(--text-strong);
}
.views-name small {
  font-size: 12px;
  color: var(--text-muted);
}
.views-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transform: rotate(-90deg);
  transition: transform 160ms ease;
}
.views-table tr.is-selected .views-chevron {
  transform: rotate(0deg);
}
.views-newer {
  margin-left: 4px;
}
.views-method {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.views-method small {
  font-size: 12px;
  color: var(--text-muted);
}
.views-study .ds-button {
  text-decoration: none;
}
.views-table tbody tr.views-detail-row {
  cursor: default;
}
.views-table tbody tr.views-detail-row:hover td {
  background: none;
}
.views-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 12px 20px;
}
.views-seats {
  max-width: 560px;
}
.views-seats td.is-worst {
  color: var(--grade-warn);
  font-weight: var(--bold);
}
.views-seats tbody tr {
  cursor: default;
}
.views-holds strong {
  font-size: 12px;
  color: var(--text-strong);
}
.views-holds ul,
.views-held ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}
.views-held {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.views-held > li {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.views-held > li:last-child {
  border-bottom: none;
}
.views-held-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.views-held-head strong {
  color: var(--text-strong);
  overflow-wrap: anywhere;
}
.views-held-head small {
  color: var(--text-muted);
}
.views-held p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.views-holds small {
  font-size: 12px;
  color: var(--text-muted);
}
.views-findings {
  max-width: 640px;
  margin-top: 4px;
}
.views-findings tbody tr {
  cursor: default;
}
.views-context {
  margin-top: 4px;
  opacity: 0.6;
}
.views-check-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.views-check-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  padding: 12px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.views-check-tile:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}
.views-check-tile strong {
  font-size: 20px;
  line-height: 24px;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.views-check-tile small {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.views-check-tile.is-muted strong {
  color: var(--text-soft);
}
.ds-badge.views-dim {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-muted);
}
.views-check-facts dd {
  overflow-wrap: anywhere;
}
.views-check-filter {
  row-gap: 8px;
}
.views-check-label {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-muted);
}
.views-check-ev {
  font-size: 12px;
  line-height: 16px;
}
.views-check-sep {
  width: 1px;
  height: 16px;
  background: var(--line);
}
.views-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.views-muted {
  color: var(--text-muted);
}
.views-clean {
  color: var(--grade-good);
}
.views-bad {
  color: var(--grade-bad);
  font-weight: var(--bold);
}
.views-warn {
  color: var(--grade-warn);
}
.views-check-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.views-check-list dd small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}
.views-allin {
  max-width: none;
  table-layout: fixed;
}
.views-allin th:nth-child(1) { width: 10%; }
.views-allin th:nth-child(2) { width: 6%; }
.views-allin th:nth-child(3) { width: 6%; }
.views-allin th:nth-child(4) { width: 38%; }
.views-allin th:nth-child(5) { width: 16%; }
.views-allin th:nth-child(6) { width: 8%; }
.views-allin th:nth-child(7) { width: 8%; }
.views-allin th:nth-child(8) { width: 8%; }
.views-allin th {
  white-space: normal;
}
.views-allin td {
  overflow-wrap: anywhere;
  vertical-align: top;
}
.views-allin td small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}
.views-check-facts {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.views-check-list {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.adc-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.adc-filter-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
}
.adc-search {
  position: relative;
  width: 320px;
  max-width: 100%;
}
.adc-search .ds-input {
  width: 100%;
}
.adc-search-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 4px;
  list-style: none;
}
.adc-search-item {
  border: none;
  border-radius: 8px;
  background: none;
  padding: 4px 8px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.adc-search-item:hover,
.adc-search-item:focus-visible {
  background: var(--surface-hover);
}
.adc-search-item,
.adc-person,
.adc-person-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: left;
}
.adc-search-item {
  width: 100%;
}
:is(.adc-search-item, .adc-person, .adc-person-chip) > span:last-of-type {
  display: grid;
  min-width: 0;
}
:is(.adc-search-item, .adc-person, .adc-person-chip) strong {
  overflow: hidden;
  color: var(--text-strong);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(.adc-search-item, .adc-person, .adc-person-chip) small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adc-person-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-panel);
  padding: 4px 4px 4px 8px;
}
.adc-person-chip > span:last-of-type {
  margin-right: 8px;
}
.adc-table-wrap {
  min-width: 0;
}
.adc-table {
  table-layout: auto;
}
.adc-table :is(th, td) {
  padding-inline: 8px;
}
.adc-table td {
  overflow-wrap: anywhere;
}
.adc-table th.is-num,
.adc-table td.is-num {
  white-space: nowrap;
}
.adc-table tbody tr {
  cursor: auto;
}
.adc-table tbody tr.is-link {
  cursor: pointer;
}
.adc-table tbody tr.is-picked td {
  background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 34%, transparent), color-mix(in srgb, var(--pick) 14%, transparent));
  color: var(--text-strong);
}
.adc-table tbody tr.is-picked td:first-child {
  box-shadow: inset 2px 0 0 var(--pick);
}
.adc-sort {
  white-space: nowrap;
}
.adc-sort i {
  font-style: normal;
}
.adc-cell-bar {
  position: relative;
  display: inline-block;
  min-width: 40px;
  padding-bottom: 4px;
}
.adc-cell-bar i {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 4px;
  background: var(--chart-1);
}
.adc-more {
  margin-top: 8px;
}
.adc-config {
  display: grid;
  min-width: 0;
}
.adc-config strong {
  color: var(--text-strong);
  font-weight: 600;
}
.adc-config small,
.adc-muted {
  color: var(--text-muted);
  font-size: 12px;
}
.adc-table .prog-board {
  margin-left: 0;
}
@media (max-width: 1279px) {
  .adc-table .prog-board {
    flex-wrap: wrap;
  }
  .adc-table .adc-op,
  .adc-table .adc-area {
    height: auto;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}
.adc-moves.saved-line {
  flex-wrap: wrap;
  gap: 4px 12px;
}
@media (min-width: 1440px) {
  .adc-moves.saved-line {
    display: grid;
    grid-template-columns: 80px repeat(3, 48px);
    gap: 4px;
  }
}
.adc-moves .saved-line-street {
  min-width: 0;
}
.adc-moves .saved-line-street b {
  overflow: hidden;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adc-moves b > i {
  font-style: normal;
}
.adc-moves b > i.is-unknown {
  color: var(--text-muted);
}
.adc-op {
  white-space: nowrap;
}
.adc-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--text-strong);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.adc-streets {
  margin-bottom: 16px;
}
.adc-street {
  text-transform: capitalize;
}
.adc-sub {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}
.adc-cache {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.adc-cache-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.adc-cache-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}
.adc-cache .admin-stats,
.adc-cache .admin-grid {
  margin: 0;
}
.adc-other {
  margin: 12px 0 0;
}
.adc-parts {
  margin: 0 0 16px;
}
.adc-narrowed {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}
.adc-narrowed b {
  color: var(--text-strong);
  font-weight: 600;
}
.adc-area {
  white-space: nowrap;
}
.adc-area.is-practice {
  background: color-mix(in srgb, var(--chart-3) 20%, transparent);
  color: var(--chart-3);
}
.adc-area.is-configs {
  background: color-mix(in srgb, var(--chart-1) 20%, transparent);
  color: var(--chart-1);
}
.adc-area.is-ai {
  background: color-mix(in srgb, var(--chart-2) 20%, transparent);
  color: var(--chart-2);
}
.adc-split td {
  height: 48px;
}
.adc-split td:first-child {
  white-space: nowrap;
}
.adc-big {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 600;
}
.adc-share {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adc-share-track {
  position: relative;
  width: 160px;
  max-width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: color-mix(in srgb, var(--chart-2) 32%, transparent);
}
.adc-share-track i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--chart-1);
}
.adc-share small {
  color: var(--text-muted);
  font-size: 12px;
}
.adc-who {
  text-align: left;
}

.hh-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hh-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 0 16px 16px;
}
.hh-file {
  position: relative;
  max-width: 320px;
  overflow: hidden;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hh-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.hh-hint,
.hh-error {
  padding: 0 16px 16px;
}
.hh-uploads td,
.hh-table td {
  overflow-wrap: anywhere;
}
.hh-upload-name {
  display: block;
  color: var(--text-strong);
}
.hh-upload-at {
  display: block;
  color: var(--text-muted);
}
.hh-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--text-muted);
}
.hh-dot.is-exact {
  background: var(--grade-good);
}
.hh-dot.is-mapped {
  background: var(--grade-warn);
}
.hh-dot.is-uncovered {
  background: var(--grade-bad);
}
.hh-cards {
  display: inline-flex;
  gap: 4px;
}
.hh-view {
  color: var(--text-muted);
}
.hh-why {
  display: block;
  color: var(--text-muted);
}
.hh-chevron {
  transform: rotate(0deg);
  transition: transform 160ms ease;
}
.hh-chevron.is-open {
  transform: rotate(180deg);
}
.ds-table tbody tr.hh-detail-row {
  cursor: default;
}
.ds-table tbody tr.hh-detail-row:hover td {
  background: none;
}
.ds-table tr.hh-detail-row td {
  height: auto;
  padding: 12px 16px 16px;
}
.hh-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hh-detail-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-soft);
}
.hh-mapped {
  color: var(--grade-warn);
}
.hh-decision {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}
.hh-decision-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hh-decision-head .hh-why {
  display: inline;
}
.hh-step {
  color: var(--text-muted);
}
.hh-taken strong {
  color: var(--text-strong);
}
.hh-study {
  margin-left: auto;
}
.hh-actions {
  margin-top: 8px;
}
.hh-actions th {
  text-transform: none;
}
.ds-table.hh-actions tbody tr {
  cursor: default;
}
.hh-actions td.is-taken {
  color: var(--text-strong);
  font-weight: var(--bold);
}
.hh-actions td.is-loss {
  color: var(--grade-bad);
}
.hh-pages {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
}
.hh-row-button {
  display: block;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hh-row-button:focus-visible {
  outline: 2px solid var(--line-stronger);
  outline-offset: 2px;
}
.hh-streets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.hh-lost {
  color: var(--grade-bad);
}
.hh-links {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}

.node-error-icon.is-limit {
  background: color-mix(in srgb, var(--accent-brand) 14%, transparent);
  color: var(--accent-brand);
}
.node-error-notice-dot.is-limit {
  background: var(--accent-brand);
}
.matrix-error.node-error.is-limit .node-error-card {
  animation: usage-limit-in 320ms cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes usage-limit-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.usage-limit-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid color-mix(in srgb, var(--accent-brand) 28%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-brand) 12%, transparent), color-mix(in srgb, var(--accent-brand) 3%, transparent));
  padding: 12px 20px;
  animation: usage-limit-in 320ms cubic-bezier(0.2, 0, 0, 1) both;
}
.usage-limit-notice-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-brand) 16%, transparent);
  color: var(--accent-brand);
}
.usage-limit-notice-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.usage-limit-notice-text strong {
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.usage-limit-notice-text span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.usage-limit-notice-text b {
  font-weight: 600;
  color: var(--text-strong);
}
.usage-card .settings-card-head h2 {
  flex: 1;
}
.usage-row {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.settings-card-head + .usage-row {
  border-top: none;
  padding-top: 4px;
}
.usage-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.usage-count {
  flex: none;
  padding-top: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
}
.usage-count b {
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.usage-row.is-full .usage-count b {
  color: var(--grade-warn);
}
.usage-count-pending {
  width: 56px;
}
.usage-card.is-loading .usage-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--skeleton-sheen), transparent);
  transform: translateX(-100%);
  animation: usage-sheen 1100ms ease-in-out infinite;
}
@keyframes usage-sheen {
  to {
    transform: translateX(100%);
  }
}
.usage-bar {
  position: relative;
  display: block;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
}
.usage-bar i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-brand-deep), var(--accent-brand));
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.2, 0, 0, 1);
}
.usage-row.is-full .usage-bar i {
  background: var(--grade-warn);
}
.usage-reset b {
  font-weight: 600;
  color: var(--text-soft);
}

.progress-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--surface-page);
}
.progress-page {
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}
.prog-page { display: flex; flex-direction: column; gap: 16px; padding: 24px; color: var(--text-normal); font-size: 12px; line-height: 16px; animation: prog-in 240ms cubic-bezier(0.2, 0, 0, 1) both; }
@keyframes prog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.prog-page h1 { margin: 0; color: var(--text-strong); font-size: 24px; font-weight: var(--heavy); line-height: 32px; }
.prog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.prog-head-text { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.prog-head-text p { max-width: 760px; margin: 0; color: var(--text-dim); font-size: 12px; line-height: 16px; }
.prog-head-text p b { color: var(--text-strong); }
.prog-head-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prog-label { color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); line-height: 16px; text-transform: uppercase; }
.prog-gap { flex: 1; }
.prog-page .grade-icon { width: 16px; height: 16px; flex: none; stroke-width: 2.2; }
.prog-page .is-good:is(small, b, strong, dd, td) { color: var(--grade-good); }
.prog-page .is-bad:is(small, b, strong, dd, td) { color: var(--grade-bad); }
.prog-page .is-warn:is(small, b, strong, dd, td) { color: var(--grade-warn); }
.prog-panel-body { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.prog-panel-body.is-flush { padding: 0 0 8px; }
.prog-panel .ds-card-head { flex-wrap: wrap; }
.prog-panel .ds-card-title svg { color: var(--text-muted); }
.prog-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.prog-delta.is-good { color: var(--grade-good); }
.prog-delta.is-bad { color: var(--grade-bad); }
.prog-delta.is-flat { color: var(--text-muted); }
.prog-act { display: inline-flex; align-items: center; gap: 8px; color: var(--text-strong); font-size: 12px; font-weight: var(--bold); line-height: 16px; white-space: nowrap; }
.prog-act.is-mine { color: var(--text-soft); }
.prog-versus { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.prog-versus-arrow { flex: none; color: var(--text-muted); }
.prog-grades { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.prog-grades-bar {  display: flex; height: 8px; gap: 2px; overflow: hidden; border-radius: 4px; background: var(--surface-rail); }
.prog-grades-bar i { min-width: 2px; }
.prog-grades-bar .is-best { background: var(--grade-good); }
.prog-grades-bar .is-correct { background: color-mix(in srgb, var(--grade-good) 56%, var(--surface-panel)); }
.prog-grades-bar .is-inaccuracy { background: var(--grade-warn); }
.prog-grades-bar .is-wrong { background: color-mix(in srgb, var(--grade-bad) 64%, var(--surface-panel)); }
.prog-grades-bar .is-blunder { background: var(--grade-bad); }
.prog-grades.is-mini .prog-grades-bar {  width: 96px; height: 6px; }
.prog-cards {  display: inline-flex; flex: none; align-items: center; gap: 2px; }
.prog-board { margin-left: 8px; }
.prog-card { --card-radius: 4px; }
.prog-two-lines { display: flex; min-width: 0; flex-direction: column; }
.prog-two-lines strong { overflow: hidden; color: var(--text-strong); font-size: 12px; font-weight: var(--bold); line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.prog-two-lines strong i { color: var(--text-muted); font-style: normal; font-weight: 600; }
.prog-two-lines small { overflow: hidden; color: var(--text-muted); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.prog-two-lines.is-num { align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.prog-columns { display: flex; flex-direction: column; gap: 8px; }
.prog-columns-plot {  position: relative; display: flex; height: var(--h); align-items: flex-end; gap: 2px; box-shadow: inset 0 -1px 0 var(--line-strong); }
.prog-col { position: relative; display: flex; height: 100%; min-width: 0; flex: 1; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.prog-col > i { display: block; width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--accent-brand); opacity: 0.86; transform-origin: bottom; animation: prog-grow 420ms cubic-bezier(0.2, 0, 0, 1) both; }
@keyframes prog-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.prog-col.is-hover > i,
.prog-col:focus-visible > i { opacity: 1; }
.prog-col:focus-visible { box-shadow: inset 0 0 0 1px var(--pick); }
.prog-axis {  display: flex; gap: 2px; }
.prog-axis span { min-width: 0; flex: 1; overflow: visible; color: var(--text-muted); font-size: 12px; line-height: 16px; white-space: nowrap; }
.prog-tip {
  pointer-events: none;
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 8px);
  display: flex;
  min-width: 140px;
  flex-direction: column;
  gap: 2px;
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 8px 12px;
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
}
.prog-tip strong { color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 24px; }
.prog-tip span { color: var(--text-dim); font-size: 12px; line-height: 16px; white-space: nowrap; }
.prog-line { position: relative; height: var(--h); margin: 8px 40px 24px 0; cursor: crosshair; }
.prog-line svg { display: block; width: 100%; height: 100%; overflow: visible; }
.prog-line-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.prog-line-area { fill: var(--accent-brand); opacity: 0.1; }
.prog-line-path { fill: none; stroke: var(--accent-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.prog-line-labels span { position: absolute; right: -40px; color: var(--text-muted); font-size: 12px; line-height: 16px; transform: translateY(-50%); }
.prog-line-end,
.prog-line-dot {  position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-brand); box-shadow: 0 0 0 2px var(--surface-panel); transform: translate(-50%, -50%); }
.prog-line-cross { pointer-events: none; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.prog-line .prog-tip { bottom: auto; top: -72px; }
.prog-line-axis { position: absolute; right: 0; bottom: -24px; left: 0; height: 16px; }
.prog-line-axis span { position: absolute; color: var(--text-muted); font-size: 12px; line-height: 16px; white-space: nowrap; transform: translateX(-50%); }
.prog-line-axis span:first-child { transform: none; }
.prog-x { gap: 16px; }
.prog-x-figures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.prog-x-figure { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 16px; }
.prog-x-figure + .prog-x-figure { box-shadow: inset 1px 0 0 var(--line); }
.prog-x-figure-label { overflow: hidden; color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); line-height: 16px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.prog-x-figure strong { color: var(--text-strong); font-size: 24px; font-weight: var(--heavy); line-height: 32px; }
.prog-x-figure.is-lead strong { color: var(--accent-brand); }
.prog-x-figure-sub { overflow: hidden; color: var(--text-dim); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.prog-x-figure .prog-delta { min-height: 16px; }
.prog-x-kinds { display: flex; flex-direction: column; gap: 12px; }
.prog-x-kind { display: inline-flex; align-items: center; gap: 8px; color: var(--text-strong); font-weight: var(--bold); white-space: nowrap; }
.prog-x-spots { display: flex; flex-direction: column; }
.prog-x-row {
  display: grid;
  width: 100%;
  min-height: 40px;
  grid-template-columns: minmax(0, 2fr) 72px minmax(96px, 1fr) 72px 64px 96px 72px minmax(0, 1.4fr) 32px;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  padding: 0 16px;
  color: var(--text-soft);
  font: inherit;
  font-size: 12px;
  line-height: 16px;
  text-align: left;
}
.prog-x-row .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.prog-x-row.is-head { min-height: 32px; box-shadow: inset 0 -1px 0 var(--line); color: var(--text-muted); font-weight: var(--heavy); text-transform: uppercase; white-space: nowrap; }
.prog-x-row.is-section { min-height: 44px; box-shadow: inset 0 1px 0 var(--line); color: var(--text-strong); font-weight: var(--bold); cursor: pointer; }
.prog-x-row.is-head + .prog-x-row.is-section { box-shadow: none; }
.prog-x-row.is-section:hover { background: var(--surface-hover); }
.prog-x-row.is-section .prog-x-name { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); }
.prog-x-row.is-section .prog-x-name strong { color: var(--text-strong); font-size: 16px; line-height: 24px; }
.prog-x-row.is-section .prog-x-name small { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.prog-x-row.is-spot { box-shadow: inset 0 1px 0 var(--line); }
.prog-x-row.is-spot:hover,
.prog-x-row.is-spot.is-open { background: var(--surface-hover); }
.prog-x-row.is-spot.is-active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 34%, transparent), color-mix(in srgb, var(--pick) 14%, transparent));
  box-shadow: inset 2px 0 0 var(--pick);
}
.prog-x-row.is-spot > .prog-x-name {  display: flex; min-width: 0; min-height: 40px; align-items: center; gap: 8px; border: none; background: transparent; padding: 0 0 0 22px; color: var(--text-muted); font: inherit; text-align: left; cursor: pointer; }
.prog-x-row.is-spot .prog-two-lines strong { color: var(--text-strong); }
.prog-x-acc { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 8px; color: var(--text-strong); text-align: right; font-variant-numeric: tabular-nums; }
.prog-x-acc .prog-grades.is-mini .prog-grades-bar { width: 100%; }
.prog-x-none { color: var(--text-muted); }
.prog-x-tools { display: inline-flex; justify-content: flex-end; gap: 4px; }
.prog-x-spot-hands {  display: flex; flex-direction: column; background: var(--surface-sunken); box-shadow: inset 0 1px 0 var(--line); padding: 4px 0 4px 22px; }
.prog-x-more { height: 32px; border: none; background: transparent; padding: 0 16px; color: var(--text-dim); font: inherit; font-size: 12px; font-weight: var(--bold); text-align: left; cursor: pointer; }
.prog-x-spots > .prog-x-more {  padding-left: 54px; box-shadow: inset 0 1px 0 var(--line); }
.prog-x-more:hover { color: var(--text-strong); }
.prog-x-empty { padding: 16px; }
.prog-layout,
.prog-filters { --pick: var(--amber-pick); }
.prog-filters { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.prog-filters-head { display: flex; min-height: 32px; align-items: center; justify-content: space-between; gap: 8px; }
.prog-filters-head strong { color: var(--text-strong); font-size: 16px; font-weight: var(--bold); line-height: 24px; }
.prog-filters-fold.ds-button { display: none; }
.prog-filters-head small { color: var(--text-muted); font-size: 12px; }
.prog-filters .lv-quick-options.is-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.prog-filters .lv-quick-options.is-cols-7 .lv-chip,
.prog-filters .lv-quick-options.is-cols-5 .lv-chip { padding: 0; }
.prog-filters .lv-chip-label { white-space: nowrap; }
.prog-filters .lv-chip:disabled { cursor: default; }
.prog-filters .prog-x-kinds { gap: 8px; }
.prog-layout-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; gap: 16px; }
.prog-layout-top .prog-x-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prog-layout-top .prog-x-figure {  justify-content: center; padding: 16px 12px 16px 22px; }
.prog-layout-top .prog-x-figure:nth-child(4) { box-shadow: inset 0 1px 0 var(--line); }
.prog-layout-top .prog-x-figure:nth-child(n+5) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
.prog-layout-top .prog-panel { min-width: 0; }
.prog-layout-top .prog-x-chart .ds-card-head { flex-wrap: nowrap; gap: 8px; }
.prog-layout-top .prog-x-chart .ds-segment { padding: 0 4px; }
.prog-layout-top .prog-x-chart .ds-card-title { flex-shrink: 0; white-space: nowrap; }
.prog-layout-top .prog-x-chart .ds-card-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-layout-pots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 0 16px 16px; box-shadow: inset 0 -1px 0 var(--line); }
.prog-layout-pot { min-width: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; border-radius: 8px; padding: 12px; text-align: left; }
.prog-layout-pot.is-empty { opacity: 0.38; }
.prog-layout-pot:disabled { cursor: default; }
.prog-layout-pot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.prog-layout-pot-head b { color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 24px; }
.prog-layout-pot-head strong { color: var(--text-strong); font-size: 16px; font-weight: var(--bold); line-height: 24px; font-variant-numeric: tabular-nums; }
.prog-layout-pot .prog-grades-bar {  height: 6px; }
.prog-layout-pot-sub { display: flex; flex-direction: column; color: var(--text-dim); font-size: 12px; line-height: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prog-layout-pot-sub > span { overflow: hidden; text-overflow: ellipsis; }
.prog-ht-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px 16px; }
.prog-ht-pick.ds-select { min-width: 0; gap: 8px; }
.prog-ht-pick .ds-select-value { max-width: 144px; }
.prog-ht-pick-name { color: var(--text-muted); }
.prog-ht-pick-icon { flex: none; }
.prog-ht-pick.is-on,
.prog-ht-word.is-on { background: color-mix(in srgb, var(--pick) 12%, var(--surface-raised)); box-shadow: inset 0 0 0 1px var(--pick); }
.prog-ht-word { display: inline-flex; height: 32px; align-items: center; gap: 8px; border-radius: 8px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); padding: 0 8px 0 12px; color: var(--text-strong); font-size: 12px; font-weight: var(--bold); line-height: 16px; cursor: text; }
.prog-ht-word:focus-within { box-shadow: inset 0 0 0 2px var(--pick); }
.prog-ht-word input { width: 64px; border: none; background: transparent; padding: 0; color: var(--text-strong); font: inherit; outline: none; }
.prog-ht-word input::placeholder { color: var(--text-muted); font-weight: 600; }
.prog-ht-clear { display: grid; width: 16px; height: 16px; place-items: center; border: none; background: none; padding: 0; color: var(--text-muted); cursor: pointer; }
.prog-ht-clear:hover { color: var(--text-strong); }
.prog-ht-reset { margin-left: 4px; }
.prog-ht-menu { min-width: 176px; }
.prog-ht-menu .ds-menu-item .grade-icon { width: 16px; height: 16px; flex: none; }
.prog-ht-bar { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; box-shadow: inset 0 1px 0 var(--line); color: var(--text-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.prog-ht-bar.is-picking { background: color-mix(in srgb, var(--pick) 8%, transparent); }
.prog-ht-bar.is-foot { padding-top: 8px; }
.prog-ht-ask { display: inline-flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.prog-ht-ask strong { color: var(--text-strong); font-weight: var(--bold); }
.prog-ht-ask small { color: var(--text-dim); font-size: 12px; }
.prog-ht-pages { display: inline-flex; flex: none; align-items: center; gap: 4px; }
.prog-ht-page { min-width: 32px; height: 32px; border: none; border-radius: 8px; background: transparent; padding: 0 8px; color: var(--text-muted); font: inherit; font-size: 12px; font-weight: var(--bold); cursor: pointer; }
.prog-ht-page:hover { background: var(--surface-hover); color: var(--text-strong); }
.prog-ht-page.is-selected { background: color-mix(in srgb, var(--pick) 20%, transparent); box-shadow: inset 0 0 0 1px var(--pick); color: var(--text-strong); }
.prog-ht-gap { padding: 0 4px; color: var(--text-muted); }
.prog-ht-page { width: 36px; min-width: 0; padding: 0; text-align: center; font-variant-numeric: tabular-nums; }
.prog-ht-gap { display: inline-grid; width: 36px; place-items: center; padding: 0; }
.prog-ht-box { position: relative; overflow-x: clip; box-shadow: inset 0 1px 0 var(--line); }
.prog-ht { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto; font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.prog-ht :is(th, td) { padding: 0 4px; text-align: left; white-space: nowrap; }
.prog-ht :is(th, td):first-child { padding-left: 16px; }
.prog-ht :is(th, td):last-child { padding-right: 12px; }
.prog-ht thead th { position: sticky; z-index: 20; top: 0; height: 40px; background: var(--surface-panel); box-shadow: inset 0 -1px 0 var(--line); }
.prog-ht .is-num { text-align: right; }
.prog-ht-sort { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; padding: 0; color: var(--text-muted); font: inherit; font-weight: var(--bold); text-transform: uppercase; cursor: pointer; }
.prog-ht-sort:hover,
.prog-ht-sort.is-sorted { color: var(--text-strong); }
.prog-ht td { height: 44px; box-shadow: inset 0 -1px 0 var(--line); color: var(--text-soft); }
.prog-ht td strong { color: var(--text-strong); font-weight: var(--bold); }
.prog-ht tbody tr:hover td { background: var(--surface-hover); }
.prog-ht tbody tr.is-picked td { background: color-mix(in srgb, var(--pick) 10%, transparent); }
.prog-ht td.is-good { color: var(--grade-good); }
.prog-ht td.is-bad { color: var(--grade-bad); }
.prog-ht .is-pick { width: 40px; }
.prog-ht .is-star { width: 32px; text-align: center; }
.prog-ht th.is-star .prog-ht-sort { justify-content: center; }
.prog-ht td.is-star .prog-ht-star { margin: 0 auto; }
.prog-ht .is-date { width: 64px; }
.prog-ht .is-game { width: 48px; }
.prog-ht .is-stack { width: 48px; }
.prog-ht .is-pot { width: 48px; }
.prog-ht .is-ev { width: 56px; }
.prog-ht .is-loss { width: 64px; }
.prog-ht .is-acc { width: 48px; }
.prog-ht .is-line { width: 244px; padding-left: 8px; }
.prog-ht .is-seat { width: 48px; }
.prog-ht .is-cards { width: 56px; }
.prog-ht .is-board { width: 112px; }
.prog-ht td.is-board {  padding: 0 2px; }
.prog-ht .is-result { width: 56px; text-align: center; }
.prog-ht .is-go { width: 56px; text-align: right; }
.prog-ht td.is-go .ds-button + .ds-button { margin-left: 4px; }
.prog-ht .prog-board { margin-left: 0; }
.prog-ht-none { color: var(--text-muted); }
.prog-ht-grade { display: inline-grid; place-items: center; }
.prog-ht-tick { vertical-align: middle; }
.prog-ht-tick.is-mixed .ds-check-box { background: var(--pick); box-shadow: none; color: var(--surface-page); }
.prog-ht-line.saved-line { display: grid; max-width: 360px; grid-template-columns: minmax(80px, 5fr) repeat(3, minmax(48px, 3fr)); gap: 4px; flex-wrap: nowrap; }
.prog-ht-line .saved-line-street b { letter-spacing: 1px; }
.prog-ht-line .saved-line-street { min-width: 0; }
.prog-ht-line .saved-line-street b { overflow: hidden; text-overflow: ellipsis; }
.prog-ht-line b > i { color: var(--text-dim); font-style: normal; font-weight: 600; }
.prog-ht-line b > i.is-hero { color: var(--text-strong); font-weight: var(--heavy); }
.prog-ht-line b > i.is-hero.is-good { color: var(--grade-good); }
.prog-ht-line b > i.is-hero.is-warn { color: var(--grade-warn); }
.prog-ht-line b > i.is-hero.is-bad { color: var(--grade-bad); }
.prog-ht-star { display: grid; width: 24px; height: 24px; place-items: center; border: none; border-radius: 4px; background: transparent; padding: 0; color: var(--text-muted); cursor: pointer; }
.prog-ht-star:hover { background: var(--surface-hover); color: var(--text-strong); }
.prog-ht-star.is-on { color: var(--pick); }
.prog-ht-star.is-on svg { fill: currentColor; }
.prog-ht-empty { padding: 48px 16px; text-align: center; }
.prog-ht-menu.is-calendar { padding: 8px; }
.prog-ht-calendar { display: flex; gap: 8px; }
.prog-ht-presets {  display: flex; width: 128px; flex-direction: column; gap: 2px; padding-right: 8px; box-shadow: inset -1px 0 0 var(--line); }
.prog-ht-month { display: flex; width: 224px; flex-direction: column; gap: 8px; }
.prog-ht-month-head { display: flex; align-items: center; justify-content: space-between; }
.prog-ht-month-head strong { color: var(--text-strong); font-size: 12px; font-weight: var(--heavy); }
.prog-ht-days {  display: grid; grid-template-columns: repeat(7, 32px); row-gap: 2px; }
.prog-ht-weekday { display: grid; height: 24px; place-items: center; color: var(--text-muted); font-size: 12px; font-weight: var(--bold); }
.prog-ht-day { position: relative; height: 32px; border: none; border-radius: 8px; background: transparent; padding: 0; color: var(--text-normal); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.prog-ht-day:hover { background: var(--surface-hover); color: var(--text-strong); }
.prog-ht-day.is-out { color: var(--text-muted); }
.prog-ht-day.is-today { box-shadow: inset 0 0 0 1px var(--line-strong); }
.prog-ht-day.is-marked::after {  content: ""; position: absolute; bottom: 4px; left: 14px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-brand); }
.prog-ht-day.is-in { border-radius: 0; background: color-mix(in srgb, var(--pick) 16%, transparent); color: var(--text-strong); }
.prog-ht-day:is(.is-start, .is-end) { background: var(--pick); color: var(--text-on-brand); font-weight: var(--heavy); }
.prog-ht-day.is-start { border-radius: 8px 0 0 8px; }
.prog-ht-day.is-end { border-radius: 0 8px 8px 0; }
.prog-ht-day.is-start.is-end { border-radius: 8px; }
.prog-ht-day:is(.is-start, .is-end)::after { background: var(--text-on-brand); }
.prog-ht-range { margin: 0; color: var(--text-dim); font-size: 12px; text-align: center; }
.prog-look-leak { display: flex; min-width: 0; align-items: center; gap: 16px; border-radius: 12px; background: var(--surface-panel); box-shadow: inset 0 0 0 1px var(--line), inset 4px 0 0 var(--grade-bad); padding: 16px 16px 16px 20px; }
.prog-look-leak-icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--grade-bad) 16%, transparent); color: var(--grade-bad); }
.prog-look-leak-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.prog-look-leak-text strong { overflow: hidden; color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.prog-look-leak-text strong small { margin-left: 8px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.prog-look-leak-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--text-dim); font-size: 12px; line-height: 16px; }
.prog-look-leak-go { display: flex; flex: none; align-items: center; gap: 8px; }
.prog-look-leak-go .ds-button.is-on { color: var(--pick); }
.prog-look-value { display: flex; min-width: 0; align-items: baseline; gap: 4px; color: var(--text-strong); font-size: 24px; font-weight: var(--heavy); line-height: 32px; white-space: nowrap; }
.prog-x-figure.is-lead .prog-look-value { color: var(--accent-brand); }
.prog-look-delta { display: flex; min-height: 16px; }
.prog-look .prog-line-area { opacity: 0.05; }
.prog-line-mark { stroke: var(--text-muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.prog-line-mark.is-prev { stroke-dasharray: 4 4; }
.prog-line-mark-label { position: absolute; left: 4px; border-radius: 4px; background: var(--surface-panel); padding: 0 4px; color: var(--text-muted); font-size: 12px; line-height: 16px; pointer-events: none; transform: translateY(calc(-100% - 2px)); }
.prog-line-mark-label.is-prev { transform: translateY(2px); }
.prog-line-end-label { position: absolute; border-radius: 4px; background: var(--surface-raised); padding: 0 4px; color: var(--text-strong); font-size: 12px; font-weight: var(--heavy); line-height: 16px; pointer-events: none; transform: translate(calc(-100% - 8px), -50%); }
.prog-look .prog-x-row { grid-template-columns: minmax(0, 1.6fr) 72px minmax(96px, 1fr) 64px 72px 96px 72px minmax(0, 1.4fr) 52px; }
.prog-look .prog-x-row.is-head { min-height: 40px; text-transform: none; white-space: normal; }
.prog-look-usual .prog-versus { gap: 4px; }
.prog-look .prog-x-row.is-section { min-height: 36px; color: var(--text-dim); font-weight: 600; }
.prog-look .prog-x-row.is-section .prog-x-name strong { color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); line-height: 16px; letter-spacing: 1.3px; text-transform: uppercase; }
.prog-look-usual { min-width: 0; overflow: hidden; }
.prog-look-usual .prog-versus { flex-wrap: nowrap; white-space: nowrap; }
.prog-look .prog-x-row.is-spot.is-few > :not(.prog-x-tools) { opacity: 0.56; }
.prog-look .prog-layout-pot.is-few { opacity: 0.64; }
.prog-look-few { margin-left: 8px; border-radius: 4px; background: var(--surface-raised); padding: 0 4px; color: var(--text-muted); font-size: 12px; font-style: normal; font-weight: var(--bold); }
.prog-look-na { border-bottom: 1px dotted var(--line-strong); color: var(--text-muted); cursor: help; }
.prog-look-filter.ds-button { padding: 0 8px; }
.prog-look-filter.is-on { box-shadow: inset 0 0 0 1px var(--pick); color: var(--pick); }
.prog-look-spot-hands {  padding: 0 0 4px 22px; }
.prog-ht.is-spot td { height: 40px; }
.prog-look-grades { display: flex; flex-direction: column; }
.prog-look-grade { display: grid; height: 32px; grid-template-columns: minmax(0, 1fr) 48px 56px 40px; align-items: center; gap: 8px; margin: 0 -8px; border: none; border-radius: 8px; background: transparent; padding: 0 8px; color: var(--text-soft); font: inherit; font-size: 12px; line-height: 16px; text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; }
.prog-look-grade + .prog-look-grade:not(.is-selected) { box-shadow: inset 0 1px 0 var(--line); }
.prog-look-grade.is-head { height: auto; min-height: 24px; padding-bottom: 4px; color: var(--text-muted); font-weight: var(--heavy); text-transform: uppercase; cursor: default; }
.prog-look-grade:not(.is-head):hover { background: var(--surface-hover); }
.prog-look-grade.is-selected { background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 34%, transparent), color-mix(in srgb, var(--pick) 14%, transparent)); box-shadow: inset 2px 0 0 var(--pick); color: var(--text-strong); }
.prog-look-grade:disabled { opacity: 0.4; cursor: default; }
.prog-look-grade .is-num { text-align: right; }
.prog-look-grade .is-strong { color: var(--text-strong); font-weight: var(--bold); }
.prog-ht-chips { display: flex; flex-basis: 100%; flex-wrap: wrap; align-items: center; gap: 8px; }
.prog-ht-chip svg { margin-right: -4px; color: var(--text-muted); }
.prog-ht-more.ds-menu { width: 360px; gap: 4px; padding: 8px; }
.prog-ht-more-row { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 8px; }
.prog-ht-more-row .ds-menu-label { padding: 4px 0; }
.prog-ht-more-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.prog-ht-more-chips .ds-chip small { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.prog-ht-more-chips .ds-chip:disabled { opacity: 0.4; cursor: default; }
.prog-ht-more-row.is-words { flex-direction: row; gap: 8px; padding-top: 4px; }
.prog-ht-more-row.is-words .prog-ht-word input { width: 72px; }
.prog-ht tr.is-openable { cursor: pointer; }
.prog-ht-open.ds-button {  gap: 2px; padding: 0 4px; }
.prog-ht-open.is-open { color: var(--text-strong); }
.prog-drawer-back { --pick: var(--amber-pick); position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.32); animation: prog-fade-in 160ms linear both; }
.prog-drawer { position: absolute; top: 0; right: 0; bottom: 0; display: flex; width: min(440px, 100vw); flex-direction: column; background: var(--surface-panel); box-shadow: inset 1px 0 0 var(--line-strong), -24px 0 56px rgba(0, 0, 0, 0.4); color: var(--text-normal); font-size: 12px; line-height: 16px; animation: prog-drawer-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.prog-drawer-back.is-leaving { animation: prog-fade-out 180ms linear both; }
.prog-drawer-back.is-leaving .prog-drawer { animation: prog-drawer-out 180ms cubic-bezier(0.4, 0, 1, 1) both; }
@keyframes prog-fade-in { from { opacity: 0; } }
@keyframes prog-fade-out { to { opacity: 0; } }
@keyframes prog-drawer-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes prog-drawer-out { to { opacity: 0; transform: translateX(24px); } }
.prog-drawer .grade-icon { width: 16px; height: 16px; flex: none; stroke-width: 2.2; }
.prog-drawer .is-good:is(dd, small, i) { color: var(--grade-good); }
.prog-drawer .is-warn:is(dd, small, i) { color: var(--grade-warn); }
.prog-drawer .is-bad:is(dd, small, i) { color: var(--grade-bad); }
.prog-drawer-head { display: flex; min-height: 56px; flex: none; align-items: center; gap: 8px; padding: 0 12px 0 20px; box-shadow: inset 0 -1px 0 var(--line); }
.prog-drawer-head .prog-two-lines { flex: 1; }
.prog-drawer-head .prog-two-lines strong { font-size: 16px; line-height: 24px; }
.prog-drawer-head .prog-two-lines small { color: var(--text-dim); font-size: 12px; }
.prog-drawer-body { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 20px; overflow-y: auto; padding: 16px 20px 24px; }
.prog-drawer-cards .prog-board { margin-left: 12px; }
.prog-drawer-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.prog-drawer-figures > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 8px 12px; }
.prog-drawer-figures > div:nth-child(even) { box-shadow: inset 1px 0 0 var(--line); }
.prog-drawer-figures > div:nth-child(3) { box-shadow: inset 0 1px 0 var(--line); }
.prog-drawer-figures > div:nth-child(4) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
.prog-drawer-figures dt { color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); text-transform: uppercase; }
.prog-drawer-figures dd { margin: 0; overflow: hidden; color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.prog-drawer-result { display: flex; align-items: center; gap: 4px; }
.prog-drawer-section { display: flex; flex-direction: column; gap: 8px; }
.prog-drawer-street { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; margin: 0; color: var(--text-dim); }
.prog-drawer-street > span:first-child { color: var(--text-muted); font-weight: var(--heavy); }
.prog-drawer-street i { font-style: normal; }
.prog-drawer-street i.is-hero { color: var(--text-strong); font-weight: var(--bold); }
.prog-drawer-decision { display: flex; flex-direction: column; gap: 8px; border-radius: 8px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); padding: 12px; }
.prog-drawer-decision.is-inaccuracy {  box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--grade-warn); }
.prog-drawer-decision:is(.is-wrong, .is-blunder) {  box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--grade-bad); }
.prog-drawer-decision header { display: flex; min-width: 0; align-items: center; gap: 8px; }
.prog-drawer-decision header strong { color: var(--text-strong); font-weight: var(--heavy); }
.prog-drawer-decision header span { overflow: hidden; color: var(--text-dim); text-overflow: ellipsis; white-space: nowrap; }
.prog-drawer-decision header small { flex: none; color: var(--text-muted); font-size: 12px; font-weight: var(--bold); }
.prog-drawer-moves { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0; color: var(--text-dim); }
.prog-drawer-moves b { color: var(--text-strong); }
.prog-drawer-moves small { color: var(--text-muted); font-size: 12px; }
.prog-drawer-same { color: var(--grade-good); }
.prog-drawer-go { display: flex; gap: 8px; }
@media (max-width: 1280px) {
  .prog-x-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prog-x-figure:nth-child(4) { box-shadow: inset 0 1px 0 var(--line); }
  .prog-x-figure:nth-child(n+5) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .prog-x-row { grid-template-columns: minmax(0, 2fr) 64px minmax(80px, 1fr) 64px 56px 88px 64px 32px; }
  .prog-x-row > :nth-child(8) { display: none; }
  .prog-look .prog-x-row { grid-template-columns: minmax(0, 2fr) 64px minmax(80px, 1fr) 64px 72px 88px 64px 52px; }
  .prog-look .prog-layout-pot .prog-look-few { display: none; }
  .prog-look-leak { flex-wrap: wrap; }
}
@media (max-width: 979px) {
  .progress-shell { height: auto; min-height: 100vh; flex-direction: column; overflow: visible; }
  .progress-shell > .progress-rail { width: auto; height: auto; overflow: visible; border-right: none; border-bottom: 1px solid var(--line); }
  .progress-page { overflow: visible; }
  .prog-page { padding: 16px; }
  .prog-layout-top { grid-template-columns: minmax(0, 1fr); }
  .prog-layout-pots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prog-look-leak-go { flex-wrap: wrap; }
}
.prog-filters .lv-quick-options.is-drills .lv-chip { justify-content: flex-start; padding: 0 8px; }
.prog-filters .lv-quick-options.is-drills .lv-chip-label { overflow: hidden; text-overflow: ellipsis; }
.prog-drawer-cards { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prog-ht-go { display: inline-flex; gap: 4px; }
.prog-panel-body.is-flush {  padding: 0 1px 8px; }
.prog-filters .lv-quick-options:not(.is-drills) .lv-chip { justify-content: center; padding-right: 4px; padding-left: 4px; }
.prog-ht td.is-go.is-open-cell { padding-right: 20px; }
.prog-ht-go { justify-content: flex-end; }
.prog-ht-go .ds-button { gap: 4px; padding: 0 4px; white-space: nowrap; }
.prog-ht-box.is-no-game :is(.is-game, .is-stack) { display: none; }
.prog-ht-box.is-no-words .prog-ht-go-word { display: none; }
.prog-ht-box.is-short .is-line { width: 212px; padding-left: 8px; }
.prog-ht-box.is-short .prog-ht-line.saved-line { grid-template-columns: 72px repeat(3, 40px); }
.prog-ht-box.is-short .prog-ht-line .saved-line-street b { letter-spacing: 0; }
.prog-ht-box.is-short thead th { white-space: normal; }
.prog-ht-box.is-short .prog-ht-sort { text-align: inherit; }
.prog-ht-box.is-tight .prog-ht { table-layout: fixed; }
.prog-ht-box.is-tight thead th { white-space: nowrap; }
.prog-ht-box.is-tight .prog-ht-sort { max-width: 100%; overflow: hidden; }
.prog-ht-box.is-tight .is-star { width: 28px; }
.prog-ht-box.is-tight .is-date { width: 76px; }
.prog-ht-box.is-tight .is-pot { width: 40px; }
.prog-ht-box.is-tight .is-seat { width: 44px; }
.prog-ht-box.is-tight .is-ev { width: 48px; }
.prog-ht-box.is-tight .is-loss { width: 60px; }
.prog-ht-box.is-tight .is-acc { width: 44px; }
.prog-ht-box.is-tight .is-go { width: 84px; }
.prog-ht-box.is-tight .is-line { width: 204px; }
.prog-ht-box.is-narrow :is(.is-pot, .is-acc, .is-line) { display: none; }
.prog-ht-box.is-narrow .prog-ht { table-layout: auto; }
.prog-ht-box.is-narrow thead th { white-space: normal; }
.prog-ht-box.is-narrow .prog-ht-sort { overflow: visible; }
.prog-ht.is-spot { table-layout: fixed; }
.prog-ht.is-spot .is-line { width: auto; }
.prog-ht.is-spot .is-go { width: 252px; }
@media (max-width: 1439px) {
  .prog-ht.is-spot .is-go { width: 84px; }
  .prog-ht.is-spot .prog-ht-go-word { display: none; }
}

.drill-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-brand) 15%, transparent);
  color: var(--accent-brand);
}
.drill-icon.is-flop {
  background: color-mix(in srgb, var(--action-passive) 15%, transparent);
  color: var(--action-passive);
}
.drill-icon.is-turn {
  background: color-mix(in srgb, var(--action-fold) 18%, transparent);
  color: var(--action-fold-hover);
}
.drill-icon.is-river {
  background: color-mix(in srgb, var(--ai-accent) 16%, transparent);
  color: var(--ai-accent);
}
.rail-drills {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 8px 12px;
  text-align: left;
  color: var(--text-normal);
  cursor: pointer;
}
.rail-drills:hover {
  background: var(--surface-hover);
}
.rail-drills.is-active {
  border-color: color-mix(in srgb, var(--pick) 38%, transparent);
  background: color-mix(in srgb, var(--pick) 8%, var(--surface-panel));
}
.rail-drills-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-brand) 15%, transparent);
  color: var(--accent-brand);
}
.rail-drills-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.rail-drills-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 16px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.rail-drills-text small {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.rail-drills-arrow {
  flex: none;
  color: var(--text-muted);
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1);
}
.rail-drills:hover .rail-drills-arrow {
  transform: translateX(3px);
}
.drill-backdrop {
  z-index: 100;
}
.drill-picker,
.drill-summary {
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
}
.drill-picker {
  width: 1040px;
  height: 760px;
}
.drill-summary {
  width: 780px;
}
.drill-picker-head,
.drill-summary-head,
.drill-picker-tools,
.drill-picker-foot {
  flex-shrink: 0;
}
.drill-picker-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-brand) 15%, transparent);
  color: var(--accent-brand);
}
.drill-picker-title,
.drill-summary-title {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.drill-picker-title h2,
.drill-summary-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: var(--bold);
  line-height: 28px;
  color: var(--text-strong);
}
.drill-picker-title small,
.drill-summary-title small {
  font-size: 12px;
  color: var(--text-muted);
}
.drill-picker-head,
.drill-summary-head {
  height: auto;
  min-height: 56px;
  padding: 8px 12px 8px 24px;
}
.drill-picker-title,
.drill-summary-title {
  gap: 0;
}
.drill-picker-title h2,
.drill-summary-title h2 {
  line-height: 24px;
}
.drill-picker-title small,
.drill-summary-title small {
  line-height: 16px;
}
.drill-picker-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
}
.drill-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.drill-timer-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}
.drill-picker-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.drill-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.drill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.drill-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 12px;
  line-height: 16px;
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1);
}
.drill-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.drill-card.is-unavailable {
  opacity: 0.55;
}
.drill-card.is-unavailable:hover {
  border-color: var(--line);
  transform: none;
}
.drill-card.is-active {
  border-color: color-mix(in srgb, var(--pick) 45%, transparent);
  background: color-mix(in srgb, var(--pick) 6%, var(--surface-rail));
}
.drill-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.drill-card-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.drill-card-name h4 {
  margin: 0;
  font-size: 16px;
  font-weight: var(--heavy);
  line-height: 20px;
  color: var(--text-strong);
}
.drill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.drill-card-text {
  flex: 1;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
}
.drill-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.drill-record {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.drill-record.is-loading {
  opacity: 0.5;
}
.drill-record-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.drill-record-item i {
  font-size: 12px;
  font-style: normal;
  font-weight: var(--bold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.drill-record-item strong {
  font-size: 16px;
  font-weight: var(--heavy);
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.drill-record-new {
  color: var(--text-muted);
}
.drill-record-live {
  font-weight: var(--bold);
  color: var(--accent-brand);
}
.drill-start svg {
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1);
}
.drill-start:hover svg {
  transform: translateX(2px);
}
.drill-picker-foot {
  justify-content: flex-start;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.drill-chip {
  display: flex;
  flex: none;
  overflow: hidden;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
}
.drill-chip-open {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0 12px 0 8px;
  color: var(--text-muted);
  cursor: pointer;
}
.drill-chip-open:not(.is-static):hover {
  background: var(--surface-hover);
}
.drill-chip-open.is-static { cursor: default; }
.drill-chip .drill-icon {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: none;
}
.drill-chip > .ds-button.is-icon {
  width: 32px;
  height: auto;
  border-radius: 0;
  border-inline-start: 1px solid var(--line);
}
.drill-chip-count {
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.drill-chip-count strong {
  color: var(--text-strong);
}
.strip-end {
  display: flex;
  flex: none;
  align-self: flex-start;
  margin-left: 8px;
}
.practice-main.is-multi {
  position: relative;
}
.practice-main.is-multi > .drill-chip {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 8px;
}
.felt-preparing-veil.is-delayed .felt-preparing {
  animation-delay: 350ms;
}
.drill-summary-score {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 20px;
  padding: 16px 24px 4px;
}
.drill-ring {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 104px;
  height: 104px;
  animation: drill-ring-in 420ms cubic-bezier(0.2, 0, 0, 1) 120ms both;
}
@keyframes drill-ring-in {
  from {
    opacity: 0;
    transform: scale(0.86) rotate(-20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
.drill-ring svg {
  position: absolute;
  inset: 0;
  width: 104px;
  height: 104px;
  transform: rotate(-90deg);
}
.drill-ring-track {
  fill: none;
  stroke: var(--surface-rail);
  stroke-width: 7;
}
.drill-ring-arc {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 7;
  stroke-linecap: round;
}
.drill-ring.is-good .drill-ring-arc { stroke: var(--grade-good); }
.drill-ring.is-warn .drill-ring-arc { stroke: var(--grade-warn); }
.drill-ring.is-bad .drill-ring-arc { stroke: var(--grade-bad); }
.drill-ring-value {
  font-size: 24px;
  font-weight: var(--black);
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.drill-summary-facts {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}
.drill-best {
  align-self: flex-start;
}
.drill-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.drill-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 8px 12px;
}
.drill-tile-label {
  font-size: 12px;
  font-weight: var(--bold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.drill-tile-value {
  font-size: 16px;
  font-weight: var(--black);
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.drill-tile-sub {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.drill-worst {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px 24px 16px;
}
.drill-worst h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.drill-worst-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.drill-worst-row {
  display: grid;
  grid-template-columns: 16px auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 8px;
}
.drill-worst-cards {
  display: flex;
  align-items: center;
  gap: 4px;
}
.drill-worst-board {
  margin-left: 4px;
}
.drill-worst-card {
  --card-radius: 4px;
}
.drill-worst-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.drill-worst-text strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.drill-worst-text small {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.drill-worst-num {
  font-size: 12px;
  font-weight: var(--bold);
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
}
.drill-worst-none {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.drill-summary-foot {
  flex-shrink: 0;
}
.drill-summary-gap {
  flex: 1;
}
.decision-clock-holder {
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity 200ms linear;
}
.decision-clock-holder.is-hidden {
  opacity: 0;
}
@property --ring {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}
.decision-clock {
  --ring: var(--grade-good);
  pointer-events: none;
  position: absolute;
  z-index: 2;
  inset: -4px;
  border-radius: 999px;
  transition: opacity 200ms linear;
}
.decision-clock.is-warn { --ring: var(--grade-warn); transition: opacity 200ms linear, --ring 400ms linear; }
.decision-clock.is-low { --ring: var(--grade-bad); transition: opacity 200ms linear, --ring 400ms linear; }
.decision-clock.is-idle { opacity: 0; }
.decision-clock.is-held { opacity: 0.55; }
.decision-clock.is-running.is-low {
  animation: decision-clock-beat 1s ease-in-out infinite;
}
@keyframes decision-clock-beat {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.seat.is-hero .seat-avatar.seat-avatar:has(.decision-clock.is-running, .decision-clock.is-held) {
  border-color: rgb(var(--ink) / 0.14);
}
.seat.is-hero .seat-avatar:has(.decision-clock.is-running, .decision-clock.is-held)::before {
  opacity: 0;
}
.decision-clock-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
}
.decision-clock-half.is-right { left: 50%; }
.decision-clock-half.is-left { left: 0; }
.decision-clock-half i {
  position: absolute;
  top: 0;
  width: 200%;
  height: 100%;
  border: 4px solid transparent;
  border-radius: 999px;
  transform: rotate(45deg);
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-play-state: paused;
}
.decision-clock-half.is-right i {
  left: -100%;
  border-top-color: var(--ring);
  border-right-color: var(--ring);
  animation-name: decision-clock-right;
}
.decision-clock-half.is-left i {
  left: 0;
  border-bottom-color: var(--ring);
  border-left-color: var(--ring);
  animation-name: decision-clock-left;
}
.decision-clock.is-running .decision-clock-half i {
  animation-play-state: running;
}
@keyframes decision-clock-right {
  0% { transform: rotate(45deg); }
  50%, 100% { transform: rotate(225deg); }
}
@keyframes decision-clock-left {
  0%, 50% { transform: rotate(45deg); }
  100% { transform: rotate(225deg); }
}
.hand-time-tag,
.drill-time-tag {
  margin-left: 4px;
  vertical-align: middle;
}
.strip-step-time {
  flex: none;
  color: var(--grade-bad);
}
.drill-picker-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.drill-picker-tabs .ds-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.spot-builder {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.spot-builder-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
}
.spot-builder-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}
.spot-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spot-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}
.spot-field-label {
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.8px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.spot-builder-pair {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.spot-pots,
.spot-seats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.spot-seat {
  min-width: 48px;
  justify-content: center;
}
.spot-seat:disabled {
  cursor: default;
  opacity: 0.32;
}
.spot-seat.is-villain.is-selected {
  background: color-mix(in srgb, var(--ai-accent) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ai-accent) 64%, transparent);
}
.spot-builder-fixed {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.spot-texture {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 12px;
}
.spot-texture-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.spot-texture-row .ds-segmented {
  display: flex;
  flex-wrap: wrap;
  justify-self: start;
}
.spot-texture-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: var(--text-soft);
}
.spot-builder-preview {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-rail);
  padding: 16px;
}
.spot-mini {
  position: relative;
  height: 160px;
}
.spot-mini-felt {
  position: absolute;
  inset: 24px 32px;
  border: 4px solid var(--surface-raised);
  border-radius: 999px;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, color-mix(in srgb, var(--action-passive) 22%, var(--surface-panel)) 0%, var(--surface-panel) 100%);
}
.spot-mini-seat {
  position: absolute;
  display: grid;
  width: 48px;
  height: 24px;
  place-items: center;
  margin: -12px 0 0 -24px;
  border-radius: 999px;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px;
  font-weight: var(--heavy);
  color: var(--text-muted);
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1);
}
.spot-mini-seat.is-hero {
  background: color-mix(in srgb, var(--pick) 22%, var(--surface-raised));
  box-shadow: inset 0 0 0 2px var(--pick);
  color: var(--text-strong);
  transform: scale(1.08);
}
.spot-mini-seat.is-villain {
  background: color-mix(in srgb, var(--ai-accent) 22%, var(--surface-raised));
  box-shadow: inset 0 0 0 2px var(--ai-accent);
  color: var(--text-strong);
}
.spot-mini.is-hu .spot-mini-seat.at-0 { top: 85%; left: 50%; }
.spot-mini.is-hu .spot-mini-seat.at-1 { top: 15%; left: 50%; }
.spot-mini.is-ring .spot-mini-seat.at-0 { top: 70%; left: 12%; }
.spot-mini.is-ring .spot-mini-seat.at-1 { top: 30%; left: 12%; }
.spot-mini.is-ring .spot-mini-seat.at-2 { top: 15%; left: 50%; }
.spot-mini.is-ring .spot-mini-seat.at-3 { top: 30%; left: 88%; }
.spot-mini.is-ring .spot-mini-seat.at-4 { top: 70%; left: 88%; }
.spot-mini.is-ring .spot-mini-seat.at-5 { top: 85%; left: 50%; }
.spot-builder-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spot-builder-name strong {
  font-size: 16px;
  font-weight: var(--heavy);
  line-height: 24px;
  color: var(--text-strong);
}
.spot-builder-name span {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-dim);
}
.spot-builder-flop {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.spot-builder-flop-label {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: var(--text-soft);
}
.spot-builder-cards {
  display: flex;
  gap: 4px;
}
.spot-builder-cards em {
  font-size: 12px;
  font-style: normal;
  color: var(--grade-bad);
}
.spot-builder-card {
  --card-width: 36px;
  --card-height: 48px;
}
.spot-builder-record {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.spot-builder-start {
  width: 100%;
  justify-content: center;
}
.spot-builder-note {
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  color: var(--text-muted);
}
.spot-board {
  display: flex;
  align-items: center;
  gap: 4px;
}
.spot-board-card {
  --card-width: 32px;
  --card-height: 44px;
}
.spot-board .ds-button {
  margin-left: 8px;
}
@media (max-width: 759px) {
  .drill-picker-tools,
  .drill-picker-body {
    padding-right: 16px;
    padding-left: 16px;
  }
  .drill-picker-head {
    padding-left: 16px;
  }
  .drill-picker-tabs {
    gap: 16px;
  }
  .drill-picker-tabs .ds-tab {
    height: auto;
    min-height: 40px;
  }
  .spot-builder-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .spot-builder-preview {
    position: static;
  }
  .spot-texture-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}
@media (max-width: 759px) {
  .drill-summary-head {
    padding-left: 16px;
  }
  .drill-summary-score,
  .session-summary-body .drill-summary-score {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .drill-summary-score {
    padding-right: 16px;
    padding-left: 16px;
  }
  .drill-summary-score .drill-ring {
    align-self: center;
  }
  .drill-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .drill-worst {
    padding-right: 16px;
    padding-left: 16px;
  }
  .drill-worst-row {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    grid-template-areas: "mark cards num" "text text text" "open open open";
  }
  .drill-worst-row > :first-child { grid-area: mark; }
  .drill-worst-row > .drill-worst-cards { grid-area: cards; }
  .drill-worst-row > .drill-worst-text { grid-area: text; }
  .drill-worst-row > .drill-worst-num { grid-area: num; }
  .drill-worst-row > .ds-button { grid-area: open; justify-self: start; }
  .drill-summary-foot {
    padding-right: 16px;
    padding-left: 16px;
  }
}
@media (max-width: 359px) {
  .drill-picker-tabs .ds-tab svg {
    display: none;
  }
}

.session-settings {
  width: 720px;
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow: visible;
}
.session-line {
  display: flex;
  gap: 16px;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 32px;
}
.session-line > span {
  min-width: 0;
  flex: 1;
}
.session-line > svg {
  flex: none;
  margin-top: 8px;
  color: var(--text-muted);
}
.ds-menu-anchor.session-word-anchor {
  display: inline;
  position: relative;
}
.session-word {
  position: relative;
  border-radius: 4px;
  margin: 0 -4px;
  padding: 0 4px;
  color: var(--text-strong);
  font-weight: var(--bold);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-decoration: underline dashed rgb(var(--ink) / 0.4);
  text-underline-offset: 4px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.session-word:hover,
.session-word.is-open {
  background: rgb(var(--ink) / 0.075);
  text-decoration-color: var(--accent-orange);
}
.session-word:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}
.session-word-flash {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent-orange) 28%, transparent);
  pointer-events: none;
  animation: session-word-flash 1400ms both;
}
@keyframes session-word-flash {
  0% { opacity: 1; animation-timing-function: linear; }
  40% { opacity: 1; animation-timing-function: ease-out; }
  100% { opacity: 0; }
}
.ds-menu.session-menu {
  min-width: 280px;
  max-width: 360px;
}
.ds-menu-item.session-menu-item {
  height: auto;
  min-height: 48px;
  padding: 8px 8px 8px 12px;
  white-space: normal;
}
.session-menu-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.session-menu-text b {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
}
.session-menu-text small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.ds-menu.session-menu.is-seats {
  min-width: 160px;
}
.session-menu.is-seats .ds-menu-check {
  color: var(--accent-orange);
}
.session-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  padding: 20px 24px 8px;
}
.ds-tile:is(.session-mode, .session-preset-tile, .session-preset-new) {
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  text-align: left;
}
.session-mode-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
}
.session-mode-name > svg {
  color: var(--text-muted);
}
.ds-tile.is-selected .session-mode-name > svg {
  color: var(--accent-orange);
}
:is(.session-mode, .session-preset-tile, .session-preset-new) small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.session-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  padding: 0 24px 20px;
}
.session-presets.is-open {
  position: relative;
  z-index: 2;
}
.session-preset {
  position: relative;
  display: flex;
  min-width: 0;
}
.ds-tile.session-preset-tile {
  min-width: 0;
  flex: 1;
  padding-right: 40px;
}
.session-preset-tile .session-mode-name {
  max-width: 100%;
}
.session-preset-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-preset-tile small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ds-menu-anchor.session-preset-more {
  position: absolute;
  top: 8px;
  right: 8px;
}
.ds-tile.session-preset-new {
  background: transparent;
  box-shadow: none;
  outline: 1px dashed var(--line-strong);
  outline-offset: -1px;
}
.ds-tile.session-preset-new:hover:not(:disabled) {
  background: var(--surface-hover);
}
.ds-tile.session-preset-new:focus-visible {
  outline: 2px solid var(--pick);
  outline-offset: 0;
}
.ds-tile.session-preset-new:disabled {
  cursor: default;
}
.session-preset-new:disabled .session-mode-name {
  color: var(--text-muted);
}
.session-preset-naming {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 8px 12px;
  animation: ds-menu-show 160ms linear both;
}
.session-preset-naming > svg {
  flex: none;
  color: var(--text-muted);
}
.session-preset-naming > .ds-input {
  min-width: 0;
  flex: 1;
}
.session-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px 24px 20px;
}
.session-more {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: session-text-in 200ms cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes session-text-in {
  from { opacity: 0; transform: translateY(4px); }
}
.ds-button.session-range-link {
  display: inline;
  height: auto;
  padding: 0;
  font-size: 16px;
  line-height: 32px;
  animation: ds-menu-show 160ms linear both;
}
.ds-button.session-range-link {
  white-space: normal;
  overflow-wrap: anywhere;
}
.ds-button.session-range-link.is-leaving {
  animation: ds-hide 140ms linear both;
}
.session-settings-foot {
  align-items: center;
  justify-content: space-between;
}
.session-settings-foot small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}
.session-row-hint {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
@media (max-width: 979px), (max-height: 720px) {
  .session-settings {
    overflow-y: auto;
  }
}
.session-range-backdrop {
  z-index: 110;
}
.session-range {
  width: 880px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
}
.session-range-body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 256px;
  gap: 24px;
  overflow-y: auto;
  padding: 16px 24px 24px;
}
.range-editor {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}
.matrix.custom-range-matrix.range-editor-grid {
  width: 100%;
  border-radius: 8px;
}
.range-editor-cell {
  font: inherit;
}
.matrix-cell.range-editor-cell:focus-visible {
  z-index: 11;
  outline: 2px solid var(--pick);
  outline-offset: -2px;
}
.session-saved {
  min-width: 0;
  min-height: auto;
}
.session-saved .custom-saved-list {
  max-height: 448px;
}
.ds-list.is-dense .ds-list-item.session-saved-row {
  min-height: 44px;
  gap: 8px;
  padding: 0 8px;
}
.session-saved-row > small {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.range-thumb.session-saved-thumb {
  width: 36px;
  height: 36px;
  border-radius: 4px;
}
.range-thumb.session-saved-thumb {
  gap: 1px;
  padding: 1px;
}
.session-saved-note {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}
@media (max-width: 760px) {
  .session-range-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }
  .session-saved .custom-saved-list {
    max-height: none;
  }
  .range-editor .custom-range-tools {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 16px;
  }
  .range-editor .custom-range-bulk {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .range-editor-grid .matrix-cell-label.is-compact {
    top: 2px;
    left: 1px;
    font-size: clamp(6px, 2.6cqw, 10px);
  }
}
.range-editor-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.range-editor-share {
  min-width: 96px;
  align-self: center;
  font-size: 12px;
  font-weight: var(--bold);
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.session-summary {
  width: 820px;
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
}
.session-summary-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: 12px 24px 16px;
}
.session-summary-body .drill-summary-score {
  padding: 4px 0 0;
}
.session-summary-body .drill-worst {
  flex: none;
  overflow: visible;
  padding: 0;
}
.session-kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.session-kind {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 8px 12px;
}
.session-kind h4 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.session-kind-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-soft);
}
.session-kind-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-normal);
}
.session-kind-row strong {
  font-variant-numeric: tabular-nums;
  color: var(--grade-bad);
}
.session-kind-row strong.is-none {
  color: var(--text-muted);
}
.session-kind-row em {
  min-width: 40px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text-muted);
}
.session-best {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-soft);
}
.session-best strong {
  font-variant-numeric: tabular-nums;
  color: var(--grade-good);
}
.session-best .drill-worst-cards {
  flex: none;
}
.session-summary-note {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}
.saved-drills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.saved-drill {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-rail);
  padding: 8px;
}
.saved-drill-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.saved-drill-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.saved-drill-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-muted);
}
.saved-drill-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.saved-drill-save {
  display: flex;
  align-items: center;
  gap: 8px;
}
.saved-drill-save .ds-input {
  min-width: 0;
  flex: 1;
}
.review-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-rail);
  padding: 12px 16px;
}
.review-card-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.review-card-text h4 {
  margin: 0;
  font-size: 16px;
  font-weight: var(--bold);
  line-height: 24px;
  color: var(--text-strong);
}
.review-card-text p {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.review-card-count {
  font-size: 12px;
  font-weight: var(--bold);
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
}
.spot-builder-saved {
  grid-column: 1 / -1;
}
.spot-builder-saved .drill-group-title {
  margin: 0;
}
.saved-drill-mark {
  justify-self: center;
  color: var(--accent-brand);
}
@media (max-width: 759px) {
  .saved-drill {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-areas: "mark text text" ". tools start";
    row-gap: 8px;
  }
  .saved-drill-mark { grid-area: mark; align-self: start; margin-top: 4px; }
  .saved-drill-text { grid-area: text; }
  .saved-drill-tools { grid-area: tools; }
  .saved-drill-start { grid-area: start; }
  .saved-drill-text small {
    white-space: normal;
    line-height: 16px;
  }
  .session-modes { padding: 16px 16px 8px; }
  .session-presets { padding: 0 16px 16px; }
  .session-text { padding-right: 16px; padding-left: 16px; }
  .session-summary-body {
    padding-right: 16px;
    padding-left: 16px;
  }
  .session-kinds {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .session-best {
    flex-wrap: wrap;
  }
}

.practice-main.is-multi {
  gap: 0;
  padding: 0;
}
.multi-grid {
  display: grid;
  flex: 1;
  min-height: 0;
  align-content: center;
}
.multi-cell {
  position: relative;
  overflow: hidden;
  border: 0 solid var(--line);
}
.multi-cell.is-row { grid-column: 1 / -1; }
.multi-cell.has-line-left { border-left-width: 1px; }
.multi-cell.has-line-top { border-top-width: 1px; }
.multi-cell::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 3;
  inset: var(--cell-slack, 0px) var(--cell-slack-x, 0px);
  box-shadow: inset 0 0 0 2px var(--accent-brand);
  opacity: 0;
  transition: opacity 200ms ease;
}
.multi-cell.is-next::after {
  opacity: 1;
}
.multi-cell.is-focused:not(.is-waiting) .multi-cell-tag {
  color: var(--text-strong);
}
.multi-scale {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  transform-origin: 50% 50%;
}
.multi-table .strip {
  padding-right: var(--strip-right, 16px);
  padding-left: var(--strip-left, 16px);
}
.multi-table {
  display: flex;
  width: 880px;
  height: 652px;
  flex-direction: column;
  overflow: hidden;
}
.multi-table .practice-line {
  display: flex;
  height: 112px;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 8px 16px 0;
}
.multi-table .table-area {
  flex: none;
  gap: 8px;
  padding: 8px 16px;
}
.multi-table .action-bar {
  height: 156px;
  align-items: flex-start;
}
.multi-table .action-bar:not(.is-verdict):not(.is-review) {
  padding-top: 20px;
}
.multi-table .action-bar.is-verdict,
.multi-table .action-bar.is-review {
  align-items: center;
}
.multi-table .table-verdict {
  top: 80px;
  gap: 12px;
  padding: 4px 20px 4px 8px;
  font-size: 20px;
  line-height: 32px;
}
.multi-table .table-verdict.is-best,
.multi-table .table-verdict.is-correct {
  padding-right: 16px;
}
.multi-table .table-verdict-more {
  gap: 16px;
  padding-left: 16px;
}
.multi-table .table-verdict-best {
  font-size: 16px;
}
.multi-table .table-verdict-best b {
  padding: 0 12px;
  line-height: 32px;
}
.multi-table .table-verdict-mark {
  width: 32px;
  height: 32px;
}
.multi-table .table-verdict .grade-icon {
  width: 24px;
  height: 24px;
}
.multi-corner {
  pointer-events: none;
  position: absolute;
  z-index: 4;
  right: calc(8px + var(--cell-slack-x, 0px));
  bottom: calc(8px + var(--cell-slack, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.multi-corner.is-left {
  right: auto;
  left: calc(8px + var(--cell-slack-x, 0px));
}
.multi-corner.is-top {
  top: calc(8px + var(--cell-slack, 0px));
  bottom: auto;
  flex-direction: column-reverse;
}
.multi-cell-tag {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-raised);
  padding: 0 8px;
  font-size: 12px;
  font-weight: var(--heavy);
  line-height: 16px;
  color: var(--text-muted);
}
.multi-cell.is-waiting .multi-cell-tag {
  background: var(--accent-brand);
  color: var(--surface-page);
}
.ds-button.multi-info-button {
  pointer-events: auto;
  background: var(--surface-raised);
  color: var(--text-muted);
}
.ds-button.multi-info-button:hover,
.ds-button.multi-info-button.is-selected {
  color: var(--text-strong);
}
@media (hover: hover) {
  .ds-button.multi-info-button {
    opacity: 0;
    transition: opacity 120ms ease;
  }
  .multi-cell:hover .ds-button.multi-info-button,
  .ds-button.multi-info-button:focus-visible,
  .ds-button.multi-info-button.is-selected {
    opacity: 1;
  }
}
.ds-menu.multi-info {
  position: fixed;
  width: 392px;
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  gap: 12px;
  overflow: hidden auto;
  padding: 12px;
}
.ds-menu.multi-info > .info-head { height: 56px; flex: none; margin: -12px -12px 0; padding: 0 8px 0 12px; }
.ds-menu.multi-info:not(.is-under, .is-leaving) { animation-name: ds-menu-lift, ds-menu-show; }
.ds-menu.multi-info.is-leaving:not(.is-under) { animation-name: ds-menu-lift-out, ds-hide; }
.ds-menu.multi-info > .strength-card { flex: none; }
.multi-info > .strength-card:not(.is-folded) { min-height: 112px; }
.multi-info > .strength-card:not(.is-folded):has(.strength-group):not(:has(.strength-group:nth-child(3), .strength-row.is-open)) { flex: none; min-height: 0; }
.multi-info > .strength-card .strength-view { grid-auto-columns: auto; }
.multi-info > .strength-card > .ds-card-body:has(> .strength-list) { padding-bottom: 8px; }

.cs-list {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
.cs-bar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.cs-title {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: var(--heavy);
  line-height: 24px;
}
.cs-loading-more {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}
.cs-search {
  display: flex;
  flex: 1;
  max-width: 320px;
  height: 32px;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 8px 0 12px;
  color: var(--text-muted);
}
.cs-search:focus-within {
  box-shadow: inset 0 0 0 1px var(--pick);
}
.cs-search input {
  min-width: 0;
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-strong);
  font-size: 12px;
  line-height: 16px;
  outline: none;
}
.cs-head,
.cs-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 168px) 64px 32px;
  align-items: center;
  gap: 16px;
}
.cs-head {
  flex-shrink: 0;
  height: 32px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--heavy);
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}
.cs-rows {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  padding: 8px;
}
.cs-row {
  flex-shrink: 0;
  min-height: 64px;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
}
.cs-rows > .cs-row:nth-child(even):not(.is-skeleton) {
  background: rgb(var(--ink) / 0.04);
}
.cs-rows > .cs-row:not(.is-skeleton):hover,
.cs-rows > .cs-row:not(.is-skeleton):focus-visible {
  background: rgb(var(--ink) / 0.12);
  color: var(--text-strong);
  outline: none;
}
.cs-row.is-unavailable {
  color: var(--text-muted);
  cursor: default;
}
.cs-rows > .cs-row.is-unavailable:not(.is-skeleton):hover {
  background: transparent;
}
.cs-board {
  display: flex;
}
.cs-card {
  --card-width: 24px;
  --card-height: 32px;
}
.cs-board-wait {
  width: 84px;
  height: 32px;
  border-radius: 4px;
}
.cs-spot,
.cs-solve,
.cs-date {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.cs-spot b,
.cs-date b {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: var(--heavy);
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-spot small,
.cs-solve small,
.cs-date small,
.cs-muted {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cs-moves {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.cs-codes {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}
.cs-codes small {
  flex-shrink: 0;
  width: 32px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--heavy);
  line-height: 16px;
}
.cs-codes b {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
}
.cs-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grade-good);
}
.cs-state.is-failed i {
  background: var(--grade-bad);
}
.cs-state.is-running i {
  background: var(--text-muted);
}
.cs-row.is-skeleton {
  cursor: default;
}
.cs-skeleton {
  grid-column: 1 / -1;
  height: 32px;
  border-radius: 8px;
}
.cs-pager {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 8px 16px;
}
.cs-pager-range {
  margin-right: auto;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}
.cs-pager-page {
  min-width: 32px;
  justify-content: center;
}
.cs-pager-page.is-current {
  background: color-mix(in srgb, var(--pick) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pick) 64%, transparent);
  color: var(--text-strong);
}
.cs-pager-gap {
  min-width: 24px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}
.csb { --pick: var(--amber-pick); user-select: none; }
.csb input { user-select: text; }
.cs-bar.csb-top { gap: 16px; }
.cs-search.csb-search { width: 320px; max-width: none; flex: 0 1 320px; margin-left: 0; }
.csb-range { margin-left: auto; color: var(--text-muted); font-size: 12px; line-height: 16px; white-space: nowrap; }
.prog-ht-ask.csb-picked { flex-wrap: nowrap; margin-left: auto; font-size: 12px; line-height: 16px; white-space: nowrap; }
.csb-picked small { max-width: 144px; overflow: hidden; text-overflow: ellipsis; }
.csb-top .cs-loading-more + :is(.csb-range, .csb-picked) { margin-left: 0; }
.csb-top .cs-loading-more { margin-left: auto; }
.csb-sets { display: flex; height: 48px; flex-shrink: 0; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 0 16px; }
.csb-cap { display: flex; flex-shrink: 0; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.6px; line-height: 16px; text-transform: uppercase; }
.csb-strip { position: relative; display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; overflow-x: auto; padding: 8px 0; }
.csb-strip.is-cut-right { mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.csb-strip.is-cut-left { mask-image: linear-gradient(90deg, transparent, #000 32px); }
.csb-strip.is-cut-left.is-cut-right { mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.csb-arrow.ds-button:disabled { opacity: 0.24; }
.ds-chip.csb-chip { flex-shrink: 0; gap: 0; padding: 0; cursor: default; }
.csb-chip-name { display: inline-flex; height: 24px; align-items: center; border: none; border-radius: 999px 0 0 999px; background: none; padding: 0 4px 0 12px; color: inherit; font: inherit; cursor: pointer; }
.csb-chip-x { display: grid; width: 16px; height: 16px; place-items: center; margin: 0 4px; border: none; border-radius: 50%; background: color-mix(in srgb, var(--grade-bad) 16%, transparent); padding: 0; color: var(--grade-bad); cursor: pointer; transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.csb-chip-x:hover { background: var(--grade-bad); color: #fff; transform: scale(1.2); }
.csb-chip.is-leaving { pointer-events: none; animation: csb-chip-out 200ms cubic-bezier(0.4, 0, 1, 1) both; }
@keyframes csb-chip-out { to { opacity: 0; transform: translateY(12px) scale(0.8); } }
.csb-none { color: var(--text-muted); font-size: 12px; line-height: 16px; white-space: nowrap; }
.csb-undo-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.csb-undo { display: inline-flex; max-width: 50%; flex-shrink: 0; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; line-height: 16px; white-space: nowrap; animation: ds-menu-show 160ms linear both; }
.csb-undo .ds-button { height: 16px; padding: 0; }
.csb-total { flex-shrink: 0; }
.cs-head.csb-row, .cs-row.csb-row { grid-template-columns: 56px 88px minmax(0, 1fr) 168px 176px; }
.csb.is-practice .cs-head.csb-row, .csb.is-practice .cs-row.csb-row { grid-template-columns: 16px 56px 88px minmax(0, 1fr) 168px 144px; }
.cs-row.csb-row { min-height: 60px; }
.csb-sort.prog-ht-sort { justify-self: start; text-transform: uppercase; }
.csb-row .prog-ht-tick, .csb-tick { display: flex; }
.csb-facts { display: flex; min-width: 0; align-items: center; gap: 8px; overflow: hidden; }
.csb-facts small { flex-shrink: 0; }
.csb-facts .cs-tags { flex-wrap: nowrap; }
.csb-why { justify-self: start; text-align: left; white-space: normal; }
.csb-end { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.csb-practice.ds-button { gap: 4px; }
.csb-error { flex-shrink: 0; margin: 0; border-top: 1px solid var(--line); padding: 8px 16px; }
.csb-foot { display: grid; height: 72px; flex-shrink: 0; align-items: center; gap: 16px; grid-template-columns: auto minmax(0, 1fr) 176px 208px; border-top: 1px solid var(--line); background: var(--surface-rail); padding: 0 16px; }
.csb-run { display: flex; align-items: center; gap: 8px; }
.csb-run-cap { color: var(--text-muted); font-size: 12px; line-height: 16px; }
.csb-foot .csb-save-holder, .csb-foot .csb-save-button, .csb-go.ds-button { width: 100%; }
.csb-save-word { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csb-saved { display: flex; min-width: 0; height: 40px; align-items: center; gap: 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 12px; color: var(--text-strong); font-size: 12px; font-weight: 600; line-height: 16px; }
.csb-saved span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csb-saved svg { flex-shrink: 0; color: var(--amber-pick); }
.ds-menu.csb-save { width: 280px; gap: 8px; padding: 12px; }
.csb-save .ds-menu-label { padding: 0; }
.csb-save-buttons { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) {
  .cs-bar.csb-top { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px; }
  .cs-search.csb-search { width: 100%; height: 40px; flex: 1 0 100%; }
  .csb-top .ds-button.is-primary { order: 3; }
  .csb-range, .prog-ht-ask.csb-picked { margin-left: 0; }
  .csb-top .prog-ht-pages { margin-left: auto; }
  .csb-sets { gap: 8px; padding: 0 0 0 12px; }
  .csb-arrow, .csb-total { display: none; }
  .csb-undo { padding-right: 12px; }
  .cs-head.csb-row, .csb.is-practice .cs-head.csb-row { display: flex; gap: 12px; padding: 0 12px; }
  .cs-head.csb-row > span { display: none; }
  .cs-row.csb-row, .csb.is-practice .cs-row.csb-row { min-height: 72px; gap: 4px 12px; grid-template: "board spot date" auto "board sizes end" auto / 88px minmax(0, 1fr) auto; padding: 8px; }
  .csb.is-practice .cs-row.csb-row { grid-template: "tick board spot date" auto "tick board sizes end" auto / 16px 88px minmax(0, 1fr) auto; }
  .csb-row > .csb-tick { grid-area: tick; }
  .csb-row > .cs-board { grid-area: board; }
  .csb-row > .cs-spot { grid-area: spot; }
  .csb-row > :is(.cs-moves, .cs-muted) { grid-area: sizes; }
  .csb-row > .cs-date { flex-direction: row; gap: 4px; grid-area: date; justify-content: flex-end; }
  .csb-row > .cs-date small { display: none; }
  .csb-row > .csb-end { grid-area: end; }
  .csb-row .cs-tags { display: none; }
  .csb-sizes.cs-moves { flex-direction: row; gap: 12px; }
  .csb-practice-word { display: none; }
  .csb-foot { height: auto; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px; }
  .csb-foot > .csb-run { flex-wrap: wrap; grid-column: 1 / -1; }
  .csb-foot > .csb-run > .ds-segmented:first-child { display: grid; width: 100%; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
  .csb-foot > .csb-run > .ds-segmented:last-child { display: grid; flex: 1; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
  .csb-foot > span:empty { display: none; }
  .ds-menu.csb-save { right: auto; left: 0; }
}

.gift-window { position: relative; width: 480px; max-height: 100%; overflow-y: auto; }
.gift-cross { position: absolute; top: 12px; right: 12px; z-index: 2; }
.gift-felt {
  position: relative;
  height: 168px;
  flex: none;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 100% at 50% 100%, rgba(255, 158, 69, 0.24), transparent 70%), var(--surface-sunken);
}
.gift-card { --card-width: 72px; --card-height: 96px; position: absolute; top: 40px; left: 50%; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48); }
.gift-card.is-left { transform: translateX(-104%) rotate(-8deg); }
.gift-card.is-right { transform: translateX(4%) rotate(8deg); }
.gift-body { padding: 32px 32px 24px; text-align: center; }
.gift-eyebrow { margin: 0 0 8px; color: var(--accent-orange); font-size: 12px; font-weight: var(--bold); line-height: 16px; letter-spacing: 0.4px; text-transform: uppercase; }
.gift-title { margin: 0; color: var(--text-strong); font-size: 28px; font-weight: var(--bold); line-height: 36px; letter-spacing: -0.4px; text-wrap: balance; }
.gift-lead { margin: 12px 0 0; color: var(--text-soft); font-size: 16px; line-height: 24px; }
.gift-plans { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; margin-top: 24px; text-align: left; }
.gift-plan { border-radius: 12px 0 0 12px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); padding: 16px 24px 16px 16px; }
.gift-plan.is-max {
  position: relative;
  margin-left: -8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-orange) 10%, var(--surface-panel));
  box-shadow: inset 0 0 0 1px var(--accent-orange), 0 12px 40px rgba(255, 158, 69, 0.2);
  padding: 20px 16px;
}
.gift-plan-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 12px; color: var(--text-muted); font-size: 12px; font-weight: var(--bold); line-height: 16px; letter-spacing: 0.4px; text-transform: uppercase; }
.gift-plan.is-max .gift-plan-name { color: var(--accent-orange); }
.gift-plan-name small { color: var(--text-soft); font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: 0; text-transform: none; }
.gift-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 0 0 12px; }
.gift-price b { color: var(--text-strong); font-size: 28px; font-weight: var(--heavy); line-height: 36px; }
.gift-price s { color: var(--text-muted); font-size: 16px; font-weight: 600; line-height: 24px; text-decoration: line-through; text-decoration-color: var(--accent-orange); }
.gift-price span { width: 100%; color: var(--text-soft); font-size: 12px; line-height: 16px; }
.gift-plan ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gift-plan li { display: flex; align-items: flex-start; gap: 8px; color: var(--text-soft); font-size: 12px; line-height: 16px; }
.gift-plan.is-max li { color: var(--text-strong); font-size: 16px; font-weight: 600; line-height: 24px; }
.gift-plan li svg { flex: none; margin-top: 4px; color: var(--accent-orange); }
.gift-foot { display: flex; flex-direction: column; gap: 8px; padding: 0 32px 32px; text-align: center; }
.gift-foot .ds-button { width: 100%; }
.gift-fine { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; line-height: 16px; }
@media (max-width: 560px) {
  .modal-backdrop:has(> .gift-window) { align-items: flex-start; overflow-y: auto; padding: 12px; }
  .gift-window { max-height: none; overflow: hidden; }
  .gift-body { padding: 24px 20px 20px; }
  .gift-title { font-size: 24px; line-height: 32px; }
  .gift-plan { padding: 12px 20px 12px 12px; }
  .gift-plan.is-max { padding: 16px 12px; }
  .gift-plan.is-max li { font-size: 12px; line-height: 16px; }
  .gift-plan.is-max li svg { margin-top: 0; }
  .gift-foot { padding: 0 20px 24px; }
}

.feedback-backdrop { z-index: 100; }
.feedback-window { width: 520px; max-height: 100%; }
.feedback-body { display: flex; min-height: 0; flex-direction: column; gap: 16px; overflow-y: auto; }
.feedback-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.feedback-kind {
  display: flex;
  height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: var(--bold);
  line-height: 16px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.feedback-kind:hover { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-strong); }
.feedback-kind.is-selected {
  background: color-mix(in srgb, var(--accent-orange) 8%, transparent);
  box-shadow: inset 0 0 0 1px var(--accent-orange);
  color: var(--text-strong);
}
.feedback-kind.is-selected svg { color: var(--accent-orange); }
.feedback-kind:disabled { opacity: 0.4; cursor: default; }
.ds-input.feedback-text { min-height: 160px; max-height: 320px; font-size: 16px; line-height: 24px; }
.feedback-note { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.feedback-error { margin: 0; }
.feedback-email { display: flex; flex-direction: column; gap: 12px; border-radius: 12px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; }
.feedback-email-row { display: flex; gap: 8px; }
.feedback-email-row .ds-input { min-width: 0; flex: 1; }
.feedback-email-row .ds-button { flex: none; }
.feedback-email-sent { font-weight: 400; overflow-wrap: anywhere; }
.feedback-email-sent strong { color: var(--text-strong); font-weight: var(--bold); }
.feedback-code { letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.feedback-email-again { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 16px; }
.feedback-thanks { display: flex; min-height: 0; flex-direction: column; align-items: center; overflow-y: auto; text-align: center; }
.feedback-thanks-mark {
  display: grid;
  width: 56px;
  height: 56px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--grade-good) 16%, transparent);
  color: var(--grade-good);
  animation: feedback-mark 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes feedback-mark {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
.feedback-thanks h4 { margin: 16px 0 8px; color: var(--text-strong); font-size: 20px; font-weight: var(--bold); line-height: 28px; text-wrap: balance; }
.feedback-thanks p { margin: 0; color: var(--text-soft); font-size: 16px; line-height: 24px; overflow-wrap: anywhere; text-wrap: balance; }
.feedback-quote {
  width: 100%;
  max-height: 160px;
  flex: none;
  overflow-y: auto;
  margin: 24px 0 0;
  border-radius: 12px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 12px 16px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 16px;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 639px) {
  .feedback-backdrop { padding: 16px; }
  .feedback-kind { height: 64px; }
}

.admin-feedback-line { grid-template-columns: 72px 32px minmax(0, 1fr) 96px 92px 16px; }
.admin-kind.is-idea { --c: var(--chart-1); }
.admin-kind.is-bug { --c: var(--chart-4); }
.admin-kind.is-other { --c: var(--chart-3); }
.admin-feedback-state { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--grade-good); font-size: 12px; line-height: 16px; }
.admin-feedback-text {
  max-height: 320px;
  overflow-y: auto;
  margin: 0 0 12px;
  border-radius: 8px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 12px 16px;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin-feedback-reply { margin-top: 12px; box-shadow: inset 2px 0 0 var(--accent-orange); padding: 4px 0 4px 16px; }
.admin-feedback-reply small { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 12px; line-height: 16px; }
.admin-feedback-reply p { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-feedback-answer { width: 100%; margin-top: 12px; }
.admin-feedback-none { margin: 12px 0 0; color: var(--text-muted); font-size: 12px; line-height: 16px; }

.survey-card {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 336px;
  max-width: calc(100vw - 32px);
  border-radius: 16px;
  background: var(--surface-panel);
  padding: 16px;
  color: var(--text-normal);
  transition: border-radius 240ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: survey-card-in 360ms cubic-bezier(0.2, 0, 0, 1) both;
}
.survey-card.is-leaving { animation: survey-card-out 200ms cubic-bezier(0.4, 0, 1, 1) both; pointer-events: none; }
.survey-card.is-away { display: none; }
@keyframes survey-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes survey-card-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(16px) scale(0.98); }
}
.survey-slide { display: flex; flex-direction: column; gap: 12px; animation: survey-slide-in 280ms cubic-bezier(0.2, 0, 0, 1) both; }
.survey-slide.is-out { animation: survey-slide-out 140ms cubic-bezier(0.4, 0, 1, 1) both; pointer-events: none; }
@keyframes survey-slide-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes survey-slide-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-16px); }
}
.survey-title { min-width: 0; margin: 0; color: var(--text-strong); font-size: 16px; font-weight: var(--bold); line-height: 24px; overflow-wrap: anywhere; }
.survey-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.survey-answer {
  height: 32px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 12px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transform: scale(1);
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.survey-answer:hover { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-strong); }
.survey-answer:active { transform: scale(0.96); }
.survey-answer:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.survey-answer.is-selected {
  background: color-mix(in srgb, var(--accent-orange) 8%, transparent);
  box-shadow: inset 0 0 0 1px var(--accent-orange);
  color: var(--text-strong);
}
.survey-other { display: flex; gap: 8px; animation: survey-slide-in 280ms cubic-bezier(0.2, 0, 0, 1) both; }
.survey-other .survey-input { min-width: 0; flex: 1; }
.survey-other .ds-button { flex: none; }
.ds-input.survey-text { min-height: 72px; max-height: 160px; resize: none; font-size: 16px; line-height: 24px; }
.survey-error { margin: 0; }
.survey-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.survey-foot-note { min-width: 0; margin-right: auto; color: var(--text-muted); font-size: 12px; line-height: 16px; }
.survey-thanks { display: flex; align-items: center; gap: 12px; }
.survey-thanks p { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 16px; }
.survey-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--grade-good) 16%, transparent);
  color: var(--grade-good);
  animation: survey-mark-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes survey-mark-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
.survey-card.is-pill { width: auto; border-radius: 24px; padding: 0; transition: border-radius 240ms cubic-bezier(0.22, 1, 0.36, 1), background-color 150ms ease; }
.survey-card.is-pill:hover { background: var(--surface-raised); }
.survey-pill {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 24px;
  background: none;
  padding: 0 16px;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
  transform: scale(1);
  transition: transform 150ms ease;
}
.survey-pill:active { transform: scale(0.97); }
.survey-pill small { color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 16px; }
.survey-pill:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.survey-pill-dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent-orange); }
.survey-pill-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-orange); animation: survey-dot 1.8s ease-out 600ms 3 both; }
.survey-pill-dot.is-quiet::after { animation: none; opacity: 0; }
@keyframes survey-dot {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 0; transform: scale(3); }
}
@media (max-width: 639px) {
  .survey-card { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); max-width: none; }
  .survey-card.is-pill { width: auto; }
}
:root:has(.study-page.has-phone-tabs) .survey-card { bottom: calc(68px + var(--phone-foot)); max-height: calc(100dvh - 128px - var(--phone-foot)); overflow-y: auto; }
:root:has(.practice-page.is-phone) .survey-card { bottom: calc(76px + var(--phone-dock, 56px) + var(--phone-foot)); max-height: calc(100dvh - 136px - var(--phone-dock, 56px) - var(--phone-foot)); overflow-y: auto; }

@media (max-width: 1279px) {
  .admin-page { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .admin-nav { position: static; display: grid; height: auto; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border-right: none; border-bottom: 1px solid var(--line); padding: 12px 12px 8px; }
  html.has-site-banner .admin-page .admin-nav { height: auto; }
  .admin-nav-title, .admin-nav-user, .admin-nav-icon, .admin-nav-text small { display: none; }
  .admin-back { justify-self: start; }
  .admin-nav-run { grid-column: 2; grid-row: 1; margin-top: 0; }
  .admin-nav-list.admin-nav-list { position: relative; display: flex; grid-column: 1 / -1; flex-direction: row; gap: 4px; margin-inline: -12px; overflow-x: auto; padding-inline: 12px; scrollbar-width: none; }
  .admin-nav-list .admin-nav-item { flex: none; width: auto; border-radius: 8px; white-space: nowrap; }
  .admin-main { padding: 24px 24px 48px; }
  .admin-user-row { grid-template-columns: minmax(152px, 2fr) minmax(136px, 1fr) minmax(96px, 1fr) minmax(80px, 1fr) minmax(64px, 1fr) minmax(72px, 1fr) minmax(64px, 1fr) 80px; gap: 8px; }
  .admin-user-line { flex-direction: column; gap: 4px; }
  .admin-user-row.ds-list-item { padding-block: 8px; }
  .admin-today { gap: 8px; }
}
@media (max-width: 979px) {
  .admin-user-row { grid-template-columns: minmax(152px, 2fr) minmax(136px, 1fr) minmax(96px, 1fr) minmax(80px, 1fr) minmax(64px, 1fr) 80px; }
  .admin-user-row > :is(:nth-child(6), :nth-child(9)) { display: none; }
  body:has(.admin-page) { min-width: 0; }
  .admin-page { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .admin-page :is(input, select, textarea), .admin-drawer :is(input, select, textarea) { font-size: 16px; }
  .admin-main :has(> .ds-table) { overflow-x: auto; scrollbar-width: none; }
  .admin-main .ds-table :is(th, td) { height: auto; padding: 8px 4px; overflow-wrap: break-word; }
  .admin-main .ds-table :is(th, td):first-child { padding-left: 0; }
  .admin-main .ds-table :is(th, td):last-child { padding-right: 0; }
  .adc-share-track { width: 48px; }
}
@media (max-width: 759px) {
  .admin-main { padding: 20px 12px 48px; }
  .admin-head { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .admin-head h1 { font-size: 24px; }
  .admin-head-tools { flex-direction: row; align-items: center; justify-content: space-between; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-stat { min-height: 104px; padding: 12px; }
  .admin-card { padding: 12px; }
  .admin-search { width: 100%; }
  .admin-toolbar .admin-segments[aria-label="Plan"] { display: flex; width: 100%; flex-wrap: nowrap; }
  .admin-toolbar .admin-segments[aria-label="Plan"] .ds-segment { flex: auto; padding: 0 8px; white-space: nowrap; }
  .admin-toolbar-note { margin-left: 0; }
  .admin-user-row.is-head { display: flex; height: auto; flex-wrap: wrap; gap: 4px 16px; padding: 8px 0; }
  .admin-user-row.is-head > span { display: none; }
  .admin-user-row.is-head > .admin-sort:not(:nth-child(7), :nth-child(8)) { display: inline-flex; min-height: 24px; }
  .admin-user-row.ds-list-item { grid-template-columns: minmax(112px, auto) repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px 8px; margin: 0; padding: 12px 0; text-align: left; }
  .admin-user-row.ds-list-item > :nth-child(1) { grid-column: 1 / span 2; grid-row: 1; align-self: center; }
  .admin-user-row.ds-list-item > :nth-child(10) { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; }
  .admin-user-row.ds-list-item > :is(:nth-child(7), :nth-child(8)) { display: none; }
  .admin-user-row.ds-list-item > [data-label] { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
  .admin-user-row.ds-list-item > [data-label]::before { content: attr(data-label); font-size: 12px; font-weight: 600; line-height: 16px; color: var(--text-muted); }
  .admin-user-row.ds-list-item > .admin-today[data-label] { flex-flow: row wrap; gap: 4px 12px; }
  .admin-user-row.ds-list-item > .admin-today[data-label]::before { flex-basis: 100%; }
  .admin-user-row.ds-list-item .admin-user-two small { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
  .admin-pager { gap: 8px; }
  .admin-drawer { width: 100%; max-width: none; border-left: none; padding: 20px 12px 40px; box-shadow: none; }
  .admin-drawer-close { top: 12px; right: 12px; }
  .admin-detail-head { margin: 0 40px 16px 0; gap: 12px; }
  .admin-detail-who > span { overflow-wrap: anywhere; }
  .admin-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-facts.is-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-login-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
  .admin-error-line { grid-template-columns: minmax(0, 1fr) auto auto 16px; gap: 8px; }
  .admin-error-line > .admin-kind { grid-column: 1; grid-row: 1; }
  .admin-error-line > .admin-error-when { grid-column: 2 / span 2; grid-row: 1; }
  .admin-error-line > .admin-error-chevron { grid-column: 4; grid-row: 1; }
  .admin-error-line > .admin-error-text-block { grid-column: 1; grid-row: 2; }
  .admin-error-line > .admin-error-count { grid-row: 2; }
  .admin-error-text-block :is(strong, small) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; white-space: normal; overflow-wrap: anywhere; }
}

body:has(.study-page, .practice-page) { background: var(--surface-page); }
:root.theme-brand {
  --surface-page: #191919;
  --surface-panel: #1f1f1f;
  --surface-rail: #2c2c2c;
  --surface-sunken: #151515;
  --surface-raised: #303030;
  --surface-hover: #2f2f2f;
  --surface-active: #414141;
  --text-strong: rgba(255, 255, 255, 0.93);
  --text-normal: rgba(255, 255, 255, 0.93);
  --text-soft: rgba(255, 255, 255, 0.57);
  --text-dim: rgba(255, 255, 255, 0.57);
  --text-muted: rgba(255, 255, 255, 0.4);
  --theme-placeholder: #878787;
  --line: #3d3d3d;
  --line-strong: rgba(255, 255, 255, 0.2);
  --line-stronger: rgba(255, 255, 255, 0.4);
  --accent-brand: var(--accent-orange);
  --accent-brand-deep: var(--accent-orange-deep);
  --range-fill: var(--accent-orange);
  --theme-pick: #e3e5e9;
  --pick: #e3e5e9;
  --matrix-lit: #e3e5e9;
  --theme-label-ink: #f1f2f4;
  --theme-on-paint: #f4f5f7;
  --theme-cell-line: #191919;
  --theme-cell: #2a2a2a;
  --theme-card: #1f1f1f;
  --theme-radius: 10px;
  --theme-radius-card: 9px;
  --theme-radius-cell: 3px;
  --theme-radius-chip: 3px;
  --theme-ring: 2px;
  --theme-rail: linear-gradient(#1c1c1c, #191919);
  --theme-grid: transparent;
  --theme-chip: color-mix(in srgb, #191919 78%, transparent);
  --theme-card-line: var(--line);
  --theme-pick-action: color-mix(in srgb, #e3e5e9 12%, transparent);
  --theme-pick-action-ink: rgba(255, 255, 255, 0.93);
  --theme-pick-edge: 2px;
  --theme-tab-on: #303030;
  --theme-tab-on-ink: rgba(255, 255, 255, 0.93);
  --suit-ink-s: #dcdcdc;
  --suit-ink-h: #ef7b7b;
  --suit-ink-d: #73aef0;
  --suit-ink-c: #74c785;
  --blocker-neutral: #2a2a2a;
  --blocker-positive: #10a122;
  --blocker-negative: #dc3c3d;
  --theme-card-back: linear-gradient(160deg, #383838 0%, #202020 100%);
}
:root.theme-contrast {
  --surface-page: #191919;
  --surface-panel: #1f1f1f;
  --surface-rail: #2c2c2c;
  --surface-sunken: #151515;
  --surface-raised: #303030;
  --surface-hover: #2f2f2f;
  --surface-active: #414141;
  --text-strong: rgba(255, 255, 255, 0.93);
  --text-normal: rgba(255, 255, 255, 0.93);
  --text-soft: rgba(255, 255, 255, 0.57);
  --text-dim: rgba(255, 255, 255, 0.57);
  --text-muted: rgba(255, 255, 255, 0.4);
  --theme-placeholder: #878787;
  --line: #3d3d3d;
  --line-strong: rgba(255, 255, 255, 0.2);
  --line-stronger: rgba(255, 255, 255, 0.4);
  --accent-brand: var(--accent-orange);
  --accent-brand-deep: var(--accent-orange-deep);
  --range-fill: var(--accent-orange);
  --theme-pick: #f0f0f0;
  --pick: #f0f0f0;
  --matrix-lit: #e3e5e9;
  --theme-label-ink: #f5f5f5;
  --theme-on-paint: #f5f5f5;
  --theme-cell-line: #191919;
  --theme-cell: #2a2a2a;
  --theme-card: #1f1f1f;
  --theme-radius: 6px;
  --theme-radius-card: 6px;
  --theme-radius-cell: 0px;
  --theme-radius-chip: 2px;
  --theme-ring: 3px;
  --theme-rail: #191919;
  --theme-grid: #191919;
  --theme-chip: #191919;
  --theme-card-line: var(--line);
  --theme-pick-action: #ececec;
  --theme-pick-action-ink: #141414;
  --theme-pick-edge: 0px;
  --theme-tab-on: #ececec;
  --theme-tab-on-ink: #111111;
  --suit-ink-s: #e6e6e6;
  --suit-ink-h: #ff7a7a;
  --suit-ink-d: #6fb0ff;
  --suit-ink-c: #6fd47f;
  --blocker-neutral: #2a2a2a;
  --blocker-positive: #0e8a7c;
  --blocker-negative: #c41f40;
  --theme-card-back: linear-gradient(160deg, #383838 0%, #202020 100%);
}
:root:is(.theme-brand, .theme-contrast),
:is(.theme-brand, .theme-contrast) .action-colours {
  --action-raise: var(--action-aggressive);
  --action-fold-hover: color-mix(in srgb, var(--action-fold) 86%, #ffffff);
  --action-passive-hover: color-mix(in srgb, var(--action-passive) 86%, #ffffff);
  --action-aggressive-hover: color-mix(in srgb, var(--action-aggressive) 86%, #ffffff);
  --action-allin-hover: color-mix(in srgb, var(--action-allin) 86%, #ffffff);
  --action-shade-0: var(--action-bet-light);
  --action-shade-1: color-mix(in oklch, var(--action-aggressive) 25%, var(--action-bet-light));
  --action-shade-2: color-mix(in oklch, var(--action-aggressive) 50%, var(--action-bet-light));
  --action-shade-3: color-mix(in oklch, var(--action-aggressive) 75%, var(--action-bet-light));
  --action-shade-4: var(--action-aggressive);
  --action-shade-5: color-mix(in oklch, var(--action-bet-deep) 25%, var(--action-aggressive));
  --action-shade-6: color-mix(in oklch, var(--action-bet-deep) 50%, var(--action-aggressive));
  --action-shade-7: color-mix(in oklch, var(--action-bet-deep) 75%, var(--action-aggressive));
  --action-shade-8: var(--action-bet-deep);
}
:root:is(.theme-brand, .theme-contrast),
:is(.theme-brand, .theme-contrast) .action-colours.is-solver {
  --action-fold: var(--solver-fold);
  --action-passive: var(--solver-passive);
  --action-bet-light: var(--solver-bet-light);
  --action-aggressive: var(--solver-aggressive);
  --action-bet-deep: var(--solver-bet-deep);
  --action-allin: var(--solver-allin);
}
:root:is(.theme-brand, .theme-contrast).action-colours-classic,
:is(.theme-brand, .theme-contrast) .action-colours.is-classic {
  --action-fold: #3f7fc4;
  --action-passive: #57b85c;
  --action-bet-light: #ff8a70;
  --action-aggressive: #ea4640;
  --action-bet-deep: #ad2230;
  --action-allin: #701424;
}
:root:is(.theme-brand, .theme-contrast).action-colours-slate,
:is(.theme-brand, .theme-contrast) .action-colours.is-slate {
  --action-fold: #76808d;
  --action-passive: var(--solver-passive);
  --action-bet-light: var(--solver-bet-light);
  --action-aggressive: var(--solver-aggressive);
  --action-bet-deep: var(--solver-bet-deep);
  --action-allin: var(--solver-allin);
}
:root:is(.theme-brand, .theme-contrast).action-colours-teal,
:is(.theme-brand, .theme-contrast) .action-colours.is-teal {
  --action-fold: #4a7fd0;
  --action-passive: #1fb8a6;
  --action-bet-light: #ff8a5c;
  --action-aggressive: #ec4a4a;
  --action-bet-deep: #b52345;
  --action-allin: #7d3fc0;
}
:root:is(.theme-brand, .theme-contrast).action-colours-fire,
:is(.theme-brand, .theme-contrast) .action-colours.is-fire {
  --action-fold: #3b82c9;
  --action-passive: #4dbb62;
  --action-bet-light: #ffb23e;
  --action-aggressive: #f2711c;
  --action-bet-deep: #cf3a1d;
  --action-allin: #8e2a8a;
}
:root:is(.theme-brand, .theme-contrast).action-colours-night,
:is(.theme-brand, .theme-contrast) .action-colours.is-night {
  --action-fold: #2f6db3;
  --action-passive: #3fa355;
  --action-bet-light: #f2705c;
  --action-aggressive: #cf3636;
  --action-bet-deep: #9a1f2c;
  --action-allin: #74298f;
}
:root:is(.theme-brand, .theme-contrast).action-colours-vivid,
:is(.theme-brand, .theme-contrast) .action-colours.is-vivid {
  --action-fold: #4c94ec;
  --action-passive: #5ccd62;
  --action-bet-light: #ff9078;
  --action-aggressive: #f94f4f;
  --action-bet-deep: #c0223a;
  --action-allin: #b040c4;
}
:root:is(.theme-brand, .theme-contrast).action-colours-indigo,
:is(.theme-brand, .theme-contrast) .action-colours.is-indigo {
  --action-fold: #5565c9;
  --action-passive: #3fbf7a;
  --action-bet-light: #ff8f6b;
  --action-aggressive: #e8453f;
  --action-bet-deep: #b3262d;
  --action-allin: #b23aa6;
}
:root:is(.theme-brand, .theme-contrast).action-colours-rose,
:is(.theme-brand, .theme-contrast) .action-colours.is-rose {
  --action-fold: #3d85c8;
  --action-passive: #52ba5c;
  --action-bet-light: #ff86a0;
  --action-aggressive: #e83a6a;
  --action-bet-deep: #a81c4c;
  --action-allin: #5a2aa8;
}
:root:is(.theme-brand, .theme-contrast).action-colours-colorblind,
:is(.theme-brand, .theme-contrast) .action-colours.is-colorblind {
  --action-fold: #50a9d9;
  --action-passive: #009e73;
  --action-bet-light: #f9ad26;
  --action-aggressive: #e77413;
  --action-bet-deep: #c53a0b;
  --action-allin: #8a3785;
}
:is(.theme-brand, .theme-contrast) .action-fill:is(.is-bet, .is-raise).is-shade-0 { background-color: var(--action-shade-0); }
:is(.theme-brand, .theme-contrast) .action-fill:is(.is-bet, .is-raise).is-shade-1 { background-color: var(--action-shade-1); }
:is(.theme-brand, .theme-contrast) .action-fill:is(.is-bet, .is-raise).is-shade-2 { background-color: var(--action-shade-2); }
:is(.theme-brand, .theme-contrast) .action-fill:is(.is-bet, .is-raise).is-shade-3 { background-color: var(--action-shade-3); }
:is(.theme-brand, .theme-contrast) .action-fill:is(.is-bet, .is-raise).is-shade-4 { background-color: var(--action-shade-4); }
:is(.theme-brand, .theme-contrast) .action-fill:is(.is-bet, .is-raise).is-shade-5 { background-color: var(--action-shade-5); }
:is(.theme-brand, .theme-contrast) .action-fill:is(.is-bet, .is-raise).is-shade-6 { background-color: var(--action-shade-6); }
:is(.theme-brand, .theme-contrast) .action-fill:is(.is-bet, .is-raise).is-shade-7 { background-color: var(--action-shade-7); }
:is(.theme-brand, .theme-contrast) .action-fill:is(.is-bet, .is-raise).is-shade-8 { background-color: var(--action-shade-8); }
:is(.theme-brand, .theme-contrast) :is(.info-freq, .move-legend-item) { filter: brightness(1.45); }
:is(.theme-brand, .theme-contrast) .node-card-slot {
  background: radial-gradient(80% 45% at 50% 50%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 75%), var(--theme-card-back);
  box-shadow: inset 0 0 0 1px var(--line), 0 2px 8px rgba(0, 0, 0, 0.35);
}
:is(.theme-brand, .theme-contrast) .node-card-slot::before { border-color: rgba(255, 255, 255, 0.5); }
:is(.theme-brand, .theme-contrast) .node-card-slot::after { background: linear-gradient(105deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0) 80%); }
:is(.theme-brand, .theme-contrast) .card-back { background: var(--theme-card-back); }
:is(.theme-brand, .theme-contrast) .matrix-cell {
  border-left: 0.5px solid var(--theme-cell-line);
  border-bottom: 0.5px solid var(--theme-cell-line);
}
:is(.theme-brand, .theme-contrast) .matrix-cell.is-no-reach,
:is(.theme-brand, .theme-contrast) .matrix-cell.is-low-reach { background: var(--surface-sunken); }
:is(.theme-brand, .theme-contrast) .matrix-cell-label { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); }
:is(.theme-brand, .theme-contrast) .study-main { gap: 10px; padding: 12px; }
:is(.theme-brand, .theme-contrast) .study-columns { gap: 10px; }
:is(.theme-brand, .theme-contrast) .study-right { gap: 10px; }
:is(.theme-brand, .theme-contrast) .study-rail { background: var(--theme-rail); }
:is(.theme-brand, .theme-contrast) .practice-page > .rail { background: var(--theme-rail); }
:is(.theme-brand, .theme-contrast) .study-rail .recent-label { font-size: 13px; }
:is(.theme-brand, .theme-contrast) .study-rail .recent-meta { font-size: 12px; }
:is(.theme-brand, .theme-contrast) :is(.study-rail, .rail) .config-bullet { font-size: 13px; }
:is(.theme-brand, .theme-contrast) .study-rail :is(.rail-nav-button, .config-change-button) { font-size: 13px; }
:is(.theme-brand, .theme-contrast) .rail .rail-nav-button { font-size: 13px; }
:is(.theme-brand, .theme-contrast) .study-rail .recent-card .ds-card-title { font-size: 14px; }
:is(.theme-brand, .theme-contrast) .node-strip-track { align-items: stretch; }
:is(.theme-brand, .theme-contrast) .node-card-flop { display: flex; }
:is(.theme-brand, .theme-contrast) :is(.node-card, .node-card-center, .node-card-pending, .node-card-failed, .node-card-empty) { width: 172px; }
:is(.theme-brand, .theme-contrast) .node-card { height: auto; border-radius: var(--theme-radius); background: var(--surface-panel); padding: 10px 10px 8px; box-shadow: none; }
:is(.theme-brand, .theme-contrast) .node-card.is-expanded { width: 204px; }
:is(.theme-brand, .theme-contrast) .node-card.is-decision:not(.node-card-overlay) { max-height: 204px; }
:is(.theme-brand, .theme-contrast) .node-card.is-focused { background: var(--surface-raised); outline-width: var(--theme-ring); outline-offset: calc(var(--theme-ring) * -1); }
:is(.theme-brand, .theme-contrast) .node-card-head { align-items: baseline; gap: 6px; line-height: 20px; }
:is(.theme-brand, .theme-contrast) .node-card-seat { color: var(--text-strong); font-size: 16px; font-weight: var(--heavy); }
:is(.theme-brand, .theme-contrast) :is(.node-card-stack, .node-card-meta) { font-size: 13px; }
:is(.theme-brand, .theme-contrast) .node-card-meta { margin: 2px 0 10px; line-height: 16px; }
:is(.theme-brand, .theme-contrast) .node-action { min-height: 24px; gap: 7px; margin-inline: -10px; padding: 0 10px; color: var(--text-soft); font-size: 14px; line-height: 18px; }
:is(.theme-brand, .theme-contrast) .node-card.is-expanded .node-action { margin-inline: -10px 0; padding-inline: 10px 0; }
:is(.theme-brand, .theme-contrast) .node-action:not(.is-selected):hover { background: color-mix(in srgb, var(--text-strong) 8%, transparent); }
:is(.theme-brand, .theme-contrast) .node-card.is-focused .node-action { margin-inline: calc(var(--theme-ring) - 11px); padding-inline: calc(11px - var(--theme-ring)); }
:is(.theme-brand, .theme-contrast) .node-card.is-focused.is-expanded .node-action { margin-inline: calc(var(--theme-ring) - 11px) 0; padding-inline: calc(11px - var(--theme-ring)) 0; }
:is(.theme-brand, .theme-contrast) .node-action-share { margin-left: auto; font-size: 12px; font-weight: var(--bold); opacity: 0.8; font-variant-numeric: tabular-nums; }
:is(.theme-brand, .theme-contrast) .node-street-card { display: flex; width: 152px; flex: none; flex-direction: column; }
:is(.theme-brand, .theme-contrast) .node-street-card > .node-card-head { min-height: 24px; align-items: center; }
:is(.theme-brand, .theme-contrast) .node-street-board { display: flex; gap: 2px; margin-left: auto; border: none; background: none; padding: 0; cursor: pointer; }
:is(.theme-brand, .theme-contrast) .node-street-board:disabled { cursor: default; }
:is(.theme-brand, .theme-contrast) .playing-card--street { --card-width: 18px; --card-height: 24px; }
:is(.theme-brand, .theme-contrast) .node-street-lines { display: flex; flex-direction: column; margin-top: 8px; }
:is(.theme-brand, .theme-contrast) .node-street-line { display: flex; min-height: 24px; align-items: center; gap: 5px; margin-inline: -10px; border: none; background: none; padding: 0 10px; color: var(--text-soft); font-size: 13px; text-align: left; cursor: pointer; }
:is(.theme-brand, .theme-contrast) .node-street-line:hover { background: color-mix(in srgb, var(--text-strong) 8%, transparent); }
:is(.theme-brand, .theme-contrast) .node-street-seat { width: 22px; flex: none; color: var(--text-strong); font-weight: var(--heavy); }
:is(.theme-brand, .theme-contrast) .node-street-action { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .node-explain-button { border-color: var(--line); background: color-mix(in srgb, var(--surface-page) 55%, transparent); }
:is(.theme-brand, .theme-contrast) .node-explain-button:hover { border-color: var(--pick); background: var(--surface-raised); }
:is(.theme-brand, .theme-contrast) .node-action.is-selected { background: var(--theme-pick-action); box-shadow: inset var(--theme-pick-edge) 0 0 var(--pick); color: var(--theme-pick-action-ink); }
:is(.theme-brand, .theme-contrast) .matrix-panel { border-radius: var(--theme-radius); }
:is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel { border-bottom-left-radius: calc(var(--theme-radius-cell) + 4px); border-bottom-right-radius: calc(var(--theme-radius-cell) + 4px); }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix { container: study-matrix / inline-size; gap: 1.5px; border: none; background: var(--theme-grid); padding: 0 4px 4px; }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell { border: none; border-radius: 0; background: var(--theme-cell); padding: 0; }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-skeleton-cell { border-radius: 0; }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix > :is(.matrix-cell, .matrix-skeleton-cell):nth-child(1) { border-top-left-radius: var(--theme-radius-cell); }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix > :is(.matrix-cell, .matrix-skeleton-cell):nth-child(13) { border-top-right-radius: var(--theme-radius-cell); }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix > :is(.matrix-cell, .matrix-skeleton-cell):nth-child(157) { border-bottom-left-radius: var(--theme-radius-cell); }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix > :is(.matrix-cell, .matrix-skeleton-cell):nth-child(169) { border-bottom-right-radius: var(--theme-radius-cell); }
:is(.theme-brand, .theme-contrast) .study-page.is-cells-tiles :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) :is(.matrix-cell, .matrix-skeleton-cell) { border-radius: var(--theme-radius-cell); }
:is(.theme-brand, .theme-contrast) .study-page.is-gap-1 :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix { gap: 1px; }
:is(.theme-brand, .theme-contrast) .study-page.is-gap-2 :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix { gap: 2px; }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix.is-canvas:not(:is(.is-cells-tiles, .is-gap-2) .matrix) { gap: 0; --matrix-line: cut; }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix.is-canvas:has(> .matrix-skeleton-cell):not(:is(.is-cells-tiles, .is-gap-2) .matrix) { gap: 1px; }
@media (min-resolution: 2dppx) {
  :is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix.is-canvas:has(> .matrix-skeleton-cell):not(:is(.is-cells-tiles, .is-gap-2) .matrix) { gap: 0.5px; }
}
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell:is(.is-no-reach, .is-low-reach) { background: var(--theme-cell); }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell:is(.is-no-reach, .is-low-reach) .matrix-cell-label { opacity: 0.42; text-shadow: none; }
:is(.theme-brand, .theme-contrast) .matrix-cell.has-reach:is(:hover, :focus-visible, .is-selected, .is-lifted) { filter: brightness(1.12); outline: 1px solid color-mix(in srgb, var(--matrix-lit) 75%, transparent); outline-offset: -1px; }
:is(.theme-brand, .theme-contrast) .matrix-cell.is-active { filter: none; }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell .matrix-cell-label.matrix-cell-label {
  inset: auto;
  top: 4px;
  left: 4px;
  display: block;
  border-radius: 0;
  background: none;
  padding: 0;
  color: var(--theme-label-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell .matrix-cell-metric { color: var(--theme-label-ink); }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell-selection { display: none; }
@media (max-height: 519px) {
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel :is(.matrix, .matrix-placeholder) { box-sizing: content-box; width: auto; aspect-ratio: 1 / 1; }
}
@media (min-height: 520px) and (max-height: 699px) {
  :is(.theme-brand, .theme-contrast) .study-page:not(.is-ranges) { height: 100vh; overflow: hidden; }
  :is(.theme-brand, .theme-contrast) .study-page:not(.is-ranges) .study-rail { overflow-y: auto; }
  :is(.theme-brand, .theme-contrast) .study-page:not(.is-ranges) .study-main { min-height: 0; }
  :is(.theme-brand, .theme-contrast) .study-page:not(.is-ranges) .study-columns { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  :is(.theme-brand, .theme-contrast) .study-page:not(.is-ranges) .matrix-panel { display: flex; min-height: 0; flex-direction: column; }
  :is(.theme-brand, .theme-contrast) .study-page:not(.is-ranges) .matrix-error { flex: 1; min-height: 0; }
  :is(.theme-brand, .theme-contrast) .study-page:not(.is-ranges) .study-right { min-height: 100%; }
}
@media (max-height: 759px) {
  :is(.theme-brand, .theme-contrast) .node-card { padding: 6px 10px 4px; }
  :is(.theme-brand, .theme-contrast) .node-card-exact { top: 28px; }
  :is(.theme-brand, .theme-contrast) .node-card-meta { margin: 0 0 4px; }
  :is(.theme-brand, .theme-contrast) .node-action { min-height: 18px; }
  :is(.theme-brand, .theme-contrast) .node-actions { padding-bottom: 4px; }
  :is(.theme-brand, .theme-contrast) .node-card.is-decision:not(.node-card-overlay) { max-height: 156px; }
}
@media (min-height: 520px) {
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel { container: study-panel / inline-size; }
  :is(.theme-brand, .theme-contrast) .study-columns { grid-template-columns: minmax(0, 1fr) clamp(340px, 38%, 760px); }
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel { display: flex; min-height: 0; flex-direction: column; }
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel :is(.matrix, .matrix-placeholder) { flex: 1 1 0; min-height: 0; }
}
@container study-panel (max-width: 479px) {
  :is(.theme-brand, .theme-contrast) .matrix-panel > .panel-head,
  :is(.theme-brand, .theme-contrast) .matrix-panel > .panel-head > .panel-head-main { gap: 8px; }
  :is(.theme-brand, .theme-contrast) .matrix-panel > .toolbar .toolbar-chip-label { display: none; }
  :is(.theme-brand, .theme-contrast) .matrix-panel > .panel-head .panel-head-title { font-size: 14px; }
  :is(.theme-brand, .theme-contrast) .matrix-panel > .toolbar .toolbar-button.is-ranges-tab { font-size: 13px; }
}
@container study-matrix (max-width: 459px) {
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-label.matrix-cell-label { font-size: 11px; font-weight: 600; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35); }
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-metric[data-short] { font-size: 0; text-overflow: clip; }
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-metric[data-short]::after { content: attr(data-short); font-size: 11px; font-weight: 600; }
}
@container study-matrix (max-width: 379px) {
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-label.matrix-cell-label.matrix-cell-label { top: 3px; left: 3px; font-size: 10px;  }
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-metric.matrix-cell-metric { right: 3px; bottom: 3px;  }
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-metric.matrix-cell-metric[data-short]::after { font-size: 10px; }
}
@container study-matrix (max-width: 339px) {
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-label.matrix-cell-label.matrix-cell-label { top: 2px; left: 2px; font-size: 9px;  }
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-metric.matrix-cell-metric { right: 2px; bottom: 2px;  }
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-metric.matrix-cell-metric[data-short]::after { font-size: 9px; }
}
@container study-matrix (min-width: 900px) {
  :is(.theme-brand, .theme-contrast) .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-label.matrix-cell-label {
    font-size: max(16px, calc((100vw - 124px - min(760px, (100vw - 88px) * 0.38)) * 0.00816 + (100vh - 256px) * 0.01076));
  }
}
@media (min-width: 1401px) {
  :is(.theme-brand, .theme-contrast) .study-page .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-metric {
    font-size: max(clamp(12px, calc((100vw - 346px) * 61.4 / 112 * 0.016), 16px),
      calc((100vw - 124px - min(760px, (100vw - 88px) * 0.38)) * 0.00612 + (100vh - 256px) * 0.00807));
  }
}
@media (min-width: 1801px) {
  :is(.theme-brand, .theme-contrast) .study-page .study-columns:not(.is-ranges) > .matrix-panel .matrix-cell .matrix-cell-metric {
    font-size: max(clamp(12px, calc((100vw - 346px) * 67 / 112 * 0.016), 16px),
      calc((100vw - 124px - min(760px, (100vw - 88px) * 0.38)) * 0.00612 + (100vh - 256px) * 0.00807));
  }
}
:is(.theme-brand, .theme-contrast) .study-columns.is-ranges { gap: 10px; }
:is(.theme-brand, .theme-contrast) .ranges-stats { gap: 4px; margin: 0 0 8px; border: none; background: none; padding: 0; }
:is(.theme-brand, .theme-contrast) .ranges-stat { gap: 2px; border-radius: calc(var(--theme-radius) - 4px); background: var(--theme-cell); padding: 4px 6px; }
:is(.theme-brand, .theme-contrast) .ranges-stat + .ranges-stat { border-left: none; }
:is(.theme-brand, .theme-contrast) .ranges-stat span { overflow: hidden; color: var(--text-muted); font-size: 11px; font-weight: var(--bold); line-height: normal; text-overflow: ellipsis; text-transform: uppercase; }
:is(.theme-brand, .theme-contrast) .ranges-stat strong { color: var(--text-strong); font-size: 14px; font-weight: var(--heavy); }
:is(.theme-brand, .theme-contrast) .ranges-equity-chart { border: none; border-radius: var(--theme-radius); background: var(--surface-panel); padding: 10px 12px 8px; }
:is(.theme-brand, .theme-contrast) .ranges-equity-chart h3 { font-size: 15px; line-height: normal; }
:is(.theme-brand, .theme-contrast) .ranges-equity-chart:has(> .ranges-chart-empty) { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
:is(.theme-brand, .theme-contrast) .ranges-equity-chart:has(> .ranges-chart-empty) > header { display: contents; }
:is(.theme-brand, .theme-contrast) .ranges-equity-chart:has(> .ranges-chart-empty) .ranges-chart-legend { order: 2; margin-left: auto; }
:is(.theme-brand, .theme-contrast) .ranges-equity-chart > .ranges-chart-empty { order: 1; min-height: 0; color: var(--text-muted); font-size: 13px; font-weight: 600; }
:is(.theme-brand, .theme-contrast) .ranges-equity-chart.is-folded { padding: 10px 12px; }
:is(.theme-brand, .theme-contrast) .ranges-equity-chart.is-folded > header { margin-bottom: 0; }
:is(.theme-brand, .theme-contrast) .ranges-equity-chart.is-folded .panel-fold-icon { transform: rotate(-90deg); }
@media (min-width: 651px) {
  :is(.theme-brand, .theme-contrast) .ranges-equity-chart:has(> .ranges-chart-plot) { position: relative; }
  :is(.theme-brand, .theme-contrast) .ranges-equity-chart:has(> .ranges-chart-plot) > header { position: absolute; top: 10px; left: 76px; z-index: 1; justify-content: flex-start; gap: 24px; margin: 0; background: var(--surface-panel); padding: 2px 12px 2px 0; pointer-events: none; }
  :is(.theme-brand, .theme-contrast) .ranges-equity-chart:has(> .ranges-chart-plot) > header .panel-fold { pointer-events: auto; }
  :is(.theme-brand, .theme-contrast) .ranges-equity-chart:has(> .ranges-chart-plot) > p { position: absolute; right: 12px; bottom: 32px; margin: 0; background: var(--surface-panel); padding-left: 8px; pointer-events: none; }
  :is(.theme-brand, .theme-contrast) .ranges-equity-chart:has(> .ranges-chart-plot) .ranges-chart-tooltip { top: auto; bottom: 8px; }
  :is(.theme-brand, .theme-contrast) .ranges-equity-chart:has(.ranges-chart-tooltip) > p { visibility: hidden; }
}
:is(.theme-brand, .theme-contrast) .ranges-chart-y { top: -8px; bottom: -8px; line-height: 16px; }
:is(.theme-brand, .theme-contrast) .ranges-chart-x { line-height: 16px; }
@media (min-height: 520px) {
  :is(.theme-brand, .theme-contrast) .study-page.is-ranges { height: 100vh; overflow: hidden; }
  :is(.theme-brand, .theme-contrast) .study-page.is-ranges :is(.study-rail, .ranges-view) { overflow-y: auto; }
  :is(.theme-brand, .theme-contrast) .study-page.is-ranges .study-main { min-height: 0; }
  :is(.theme-brand, .theme-contrast) .study-page.is-ranges .study-columns { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  :is(.theme-brand, .theme-contrast) .study-page.is-ranges .study-right { min-height: 100%; }
  :is(.theme-brand, .theme-contrast) .study-columns.is-ranges > .matrix-panel { display: flex; min-height: 0; flex-direction: column; }
  :is(.theme-brand, .theme-contrast) .study-columns.is-ranges .ranges-view { flex: 1; min-height: 0; }
  :is(.theme-brand, .theme-contrast) .study-columns.is-ranges .ranges-comparison { flex: none; justify-content: center; }
  :is(.theme-brand, .theme-contrast) .study-columns.is-ranges .ranges-player :is(.matrix, .matrix-placeholder) { max-height: var(--ranges-matrix-cap, none); }
  :is(.theme-brand, .theme-contrast) .study-columns.is-ranges .ranges-view.is-chart-folded .ranges-player :is(.matrix, .matrix-placeholder) { height: var(--ranges-matrix-cap); aspect-ratio: auto; }
  :is(.theme-brand, .theme-contrast) .study-columns.is-ranges .ranges-view.is-chart-folded > .ranges-equity-chart { margin-top: auto; }
  :is(.theme-brand, .theme-contrast) .study-columns.is-ranges .ranges-equity-chart:not(.is-folded):not(:has(> .ranges-chart-empty)) { display: flex; flex: 1 0 auto; flex-direction: column; }
  :is(.theme-brand, .theme-contrast) .study-columns.is-ranges .ranges-equity-chart .ranges-chart-plot { height: auto; min-height: 128px; flex: 1; }
  :is(.theme-brand, .theme-contrast) .study-columns.is-ranges .ranges-chart-plot svg { position: absolute; inset: 0; }
}
:is(.theme-brand, .theme-contrast) .matrix-skeleton-cell { border: none; border-radius: var(--theme-radius-cell); background: var(--theme-cell); }
:is(.theme-brand, .theme-contrast) .matrix-skeleton-label { top: 2px; left: 2px; width: 24px; height: 15px; border-radius: var(--theme-radius-chip); background: color-mix(in srgb, var(--text-strong) 8%, transparent); }
:is(.theme-brand, .theme-contrast) .matrix-skeleton-metric { display: none; }
:is(.theme-brand, .theme-contrast) .matrix-loading-veil { background: color-mix(in srgb, var(--surface-panel) 45%, transparent); }
:is(.theme-brand, .theme-contrast) .matrix-wave { position: absolute; inset: 0; z-index: 31; display: grid; grid-template-columns: inherit; grid-template-rows: inherit; gap: inherit; padding: inherit; pointer-events: none; }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-loading-veil { inset: 0 4px 4px; }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-wave > i { border-radius: 0; }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-wave > i:nth-child(1) { border-top-left-radius: var(--theme-radius-cell); }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-wave > i:nth-child(13) { border-top-right-radius: var(--theme-radius-cell); }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-wave > i:nth-child(157) { border-bottom-left-radius: var(--theme-radius-cell); }
:is(.theme-brand, .theme-contrast) :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-wave > i:nth-child(169) { border-bottom-right-radius: var(--theme-radius-cell); }
:is(.theme-brand, .theme-contrast) .study-page.is-cells-tiles :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-wave > i { border-radius: var(--theme-radius-cell); }
:is(.theme-brand, .theme-contrast) .matrix-loader-panel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .matrix-loader-panel { border: 1px solid var(--theme-card-line); border-radius: var(--theme-radius-card); background: var(--theme-card); padding: 9px 11px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
:is(.theme-brand, .theme-contrast) .matrix-loader-mark { background: var(--surface-raised); }
:is(.theme-brand, .theme-contrast) .matrix-loader-ring { border-color: var(--line); }
:is(.theme-brand, .theme-contrast) .matrix-loader-spinner { color: var(--pick); }
:is(.theme-brand, .theme-contrast) .matrix-loader-title { color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .node-card-pending { height: auto; min-height: 120px; border-color: var(--line); border-radius: var(--theme-radius); background: var(--surface-panel); box-shadow: none; }
:is(.theme-brand, .theme-contrast) :is(.node-loading-heading, .node-loading-subheading) { background: var(--surface-raised); }
:is(.theme-brand, .theme-contrast) .node-loading-rows > span { border-color: var(--line); background: var(--theme-cell); }
:is(.theme-brand, .theme-contrast) .action-card-skeleton i,
:is(.theme-brand, .theme-contrast) .action-card-skeleton .action-card-combos i { background: var(--surface-raised); }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card.action-card-skeleton :is(.action-card-name, .action-card-value, .action-card-combos.action-card-combos) { color: transparent; text-shadow: none; }
:is(.theme-brand, .theme-contrast) .matrix-hand-drawer { width: 248px; border: 1px solid var(--theme-card-line); border-radius: var(--theme-radius-card); background: var(--theme-card); padding: 9px 11px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
:is(.theme-brand, .theme-contrast) .matrix-hand-drawer.matrix-hand-drawer.is-under { width: 248px; max-width: 100%; margin: 4px 0; }
:is(.theme-brand, .theme-contrast) .matrix-hand-drawer.is-under:not(.is-closing) { animation-name: hand-drawer-open-under, hand-drawer-fade; }
:is(.theme-brand, .theme-contrast) .hand-drawer-head { gap: 7px; margin-bottom: 7px; color: var(--text-muted); }
:is(.theme-brand, .theme-contrast) .hand-drawer-label { color: var(--text-strong); font-size: 17px; font-weight: var(--black); }
:is(.theme-brand, .theme-contrast) .hand-drawer-range { font-size: 13px; }
:is(.theme-brand, .theme-contrast) .hand-drawer-row { gap: 6px; margin-inline: 0; padding: 3px 0; color: var(--text-soft); font-size: 14px; }
:is(.theme-brand, .theme-contrast) .hand-drawer-row:hover { background: none; }
:is(.theme-brand, .theme-contrast) .hand-drawer-name { gap: 6px; font-size: 14px; }
:is(.theme-brand, .theme-contrast) .hand-drawer-values { gap: 6px; font-size: 14px; }
:is(.theme-brand, .theme-contrast) .hand-drawer-values strong { width: 56px; font-size: 14px; color: var(--text-strong); text-align: right; }
:is(.theme-brand, .theme-contrast) .hand-drawer-values em { width: 44px; font-size: 13px; text-align: right; }
:is(.theme-brand, .theme-contrast) .hand-drawer-row.is-total { margin-top: 3px; padding-top: 4px; }
:is(.theme-brand, .theme-contrast) .hand-drawer-bars { display: flex; flex-direction: column; gap: 4px; }
:is(.theme-brand, .theme-contrast) .hand-drawer-bar-row { display: flex; align-items: center; gap: 8px; }
:is(.theme-brand, .theme-contrast) .hand-drawer-bar { flex: 1 1 auto; cursor: default; }
:is(.theme-brand, .theme-contrast) .hand-drawer-bar:hover { filter: none; }
:is(.theme-brand, .theme-contrast) .hand-drawer-ev { width: 44px; flex: none; color: var(--text-muted); font-size: 13px; font-style: normal; font-variant-numeric: tabular-nums; text-align: right; }
:is(.theme-brand, .theme-contrast) .panel-head { height: 44px; min-height: 44px; flex-shrink: 0; flex-wrap: nowrap; gap: 12px; margin: 0; padding: 0 12px; }
:is(.theme-brand, .theme-contrast) .panel-head { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto; grid-auto-flow: column; align-content: center; align-items: center; }
:is(.theme-brand, .theme-contrast) .actions-card > .panel-head > * { align-self: baseline; }
:is(.theme-brand, .theme-contrast) .panel-head-main > :not(.panel-fold, .panel-head-title, .action-head-range, .toolbar-button.is-ranges-tab, .ds-chip) { align-self: center; }
:is(.theme-brand, .theme-contrast) .panel-head-main > :is(.panel-fold, .ds-chip) { align-items: baseline; }
:is(.theme-brand, .theme-contrast) .panel-head-main > :is(.panel-fold, .ds-chip) > svg { align-self: center; }
:is(.theme-brand, .theme-contrast) .study-right .panel-head { margin: 0 -12px; }
:is(.theme-brand, .theme-contrast) .panel-head-main { display: flex; min-width: 0; flex: 1 1 auto; align-items: baseline; gap: 12px; color: var(--text-muted); font-size: 14px; font-weight: var(--bold); }
:is(.theme-brand, .theme-contrast) .panel-head-main > * { flex: none; }
:is(.theme-brand, .theme-contrast) .panel-head-side { display: flex; flex: none; align-items: center; gap: 4px; margin-left: auto; color: var(--text-muted); font-size: 12px; font-weight: var(--bold); white-space: nowrap; }
:is(.theme-brand, .theme-contrast) :is(.panel-head-title, .panel-head-main > .panel-fold) { color: var(--text-strong); font-size: 15px; font-weight: var(--heavy); line-height: 24px; white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .panel-head-title .ds-select.is-sm {
  height: auto;
  min-width: 0;
  justify-content: flex-start;
  gap: 4px;
  background: none;
  box-shadow: none;
  padding: 0;
  color: inherit;
  font: inherit;
}
:is(.theme-brand, .theme-contrast) .panel-head-title .ds-select.is-sm svg { width: 14px; height: 14px; }
:is(.theme-brand, .theme-contrast) .panel-head-title.is-off .ds-select.is-sm { color: var(--text-muted); }
:is(.theme-brand, .theme-contrast) .panel-head-main > :is(.toolbar-button.is-ranges-tab, button.ds-chip) {
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  color: inherit;
  font: inherit;
}
:is(.theme-brand, .theme-contrast) .panel-head-main > .toolbar-button.is-ranges-tab::before { display: none; }
:is(.theme-brand, .theme-contrast) .panel-head-main > :is(.toolbar-button.is-ranges-tab, button.ds-chip):hover,
:is(.theme-brand, .theme-contrast) .panel-head-main > .toolbar-button.is-ranges-tab.is-active,
:is(.theme-brand, .theme-contrast) .panel-head-main > button.ds-chip.is-selected { color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .panel-head-side .ds-button.is-sm { height: 30px; border-radius: 6px; }
:is(.theme-brand, .theme-contrast) .toolbar > .panel-head-side { margin-right: -4px; }
:is(.theme-brand, .theme-contrast) .panel-head-side .ds-button.is-sm.is-icon { width: 30px; }
:is(.theme-brand, .theme-contrast) .panel-head-side .ds-button.is-sm svg { width: 15px; height: 15px; }
:is(.theme-brand, .theme-contrast) .panel-head-side .ds-button.is-sm:not(.is-selected, .is-copied) { color: var(--text-muted); }
:is(.theme-brand, .theme-contrast) .panel-head-side .ds-button.is-sm:not(.is-selected, .is-copied):hover { color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .study-right > .ds-card { border-radius: var(--theme-radius); padding: 0 12px 12px; }
:is(.theme-brand, .theme-contrast) .study-right > .ds-card > .ds-card-body { padding: 0; }
:is(.theme-brand, .theme-contrast) .details-tabs > .ds-card-head .ds-segmented { flex: 1 1 auto; min-width: 0; grid-auto-columns: auto; gap: 8px; margin-left: -8px; border-radius: 0; background: none; box-shadow: none; padding: 0; }
:is(.theme-brand, .theme-contrast) .details-tabs > .ds-card-head .ds-segment { height: auto; border-radius: 7px; padding: 7px 16px; color: var(--text-muted); font-size: 14px; font-weight: var(--bold); line-height: normal; }
:is(.theme-brand, .theme-contrast) .details-tabs > .ds-card-head { container: details-head / inline-size; }
@container details-head (max-width: 459px) {
  :is(.theme-brand, .theme-contrast) .details-tabs > .ds-card-head .ds-segmented { gap: 4px; }
  :is(.theme-brand, .theme-contrast) .details-tabs > .ds-card-head .ds-segment { padding: 7px 8px; }
}
@container details-head (max-width: 379px) {
  :is(.theme-brand, .theme-contrast) .details-tabs > .ds-card-head .ds-segmented { gap: 0; }
  :is(.theme-brand, .theme-contrast) .details-tabs > .ds-card-head .ds-segment { padding: 7px 4px; }
}
:is(.theme-brand, .theme-contrast) .details-tabs .ds-segment[data-state="active"] { background: var(--theme-tab-on); box-shadow: none; color: var(--theme-tab-on-ink); }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm { grid-template-columns: minmax(0, 1fr); gap: 6px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card {
  height: 46px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--theme-cell);
  padding: 0 10px 0 12px;
  color: var(--theme-on-paint);
}
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card:not(.is-on) { box-shadow: none; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card.is-on { box-shadow: none; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-cell { display: inline-grid; justify-items: end; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-cell > * { grid-area: 1 / 1; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-sizer { visibility: hidden; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-ev.is-none { visibility: hidden; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-name { flex: none; font-size: 14px; font-weight: var(--bold); line-height: normal; white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-value { margin: 0 4px 0 auto; font-size: 19px; font-weight: var(--bold); line-height: normal; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-combos.action-card-combos { color: var(--text-soft); font-size: 11px; font-weight: 500; text-shadow: none; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-track { display: none; }
:is(.theme-brand, .theme-contrast) .combo-look { display: flex; flex: 1; min-height: 0; flex-direction: column; overflow-y: auto; }
:is(.theme-brand, .theme-contrast) .combo-look-title { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 10px; color: var(--text-strong); font-size: 17px; font-weight: var(--heavy); }
:is(.theme-brand, .theme-contrast) .combo-look-title small { color: var(--text-muted); font-size: 13px; font-weight: 600; }
:is(.theme-brand, .theme-contrast) .combo-look-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -4px 2px 10px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
:is(.theme-brand, .theme-contrast) .combo-look-step { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .combo-look-step + .combo-look-step::before { content: "›"; margin-right: 2px; color: var(--text-muted); }
:is(.theme-brand, .theme-contrast) .combo-look-step b { color: var(--text-strong); font-weight: var(--heavy); font-variant-numeric: tabular-nums; }
:is(.theme-brand, .theme-contrast) .combo-look-title em { margin-left: auto; color: var(--text-soft); font-size: 14px; font-style: normal; font-weight: var(--bold); }
:is(.theme-brand, .theme-contrast) .combo-look .combo-label { position: relative; z-index: 1; gap: 2px; border-radius: 0; background: none; padding: 0; font-size: 14px; font-weight: var(--heavy); line-height: normal; font-variant-numeric: tabular-nums; }
:is(.theme-brand, .theme-contrast) .combo-look .combo-label-card.is-spade { color: var(--suit-ink-s); }
:is(.theme-brand, .theme-contrast) .combo-look .combo-label-card.is-heart { color: var(--suit-ink-h); }
:is(.theme-brand, .theme-contrast) .combo-look .combo-label-card.is-diamond { color: var(--suit-ink-d); }
:is(.theme-brand, .theme-contrast) .combo-look .combo-label-card.is-club { color: var(--suit-ink-c); }
:is(.theme-brand, .theme-contrast) .combo-look-stats { display: flex; min-width: 0; gap: 12px; margin: 0 0 0 auto; }
:is(.theme-brand, .theme-contrast) .combo-look-stats > div { display: flex; min-width: 0; align-items: baseline; gap: 6px; }
:is(.theme-brand, .theme-contrast) .combo-look-stats dt { color: var(--text-muted); font-size: 11px; font-weight: var(--bold); text-transform: uppercase; }
:is(.theme-brand, .theme-contrast) .combo-look-stats dd { margin: 0; color: var(--text-strong); font-size: 14px; font-weight: var(--heavy); font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .combo-grid.is-pending { background: none; gap: 4px; }
:is(.theme-brand, .theme-contrast) .combo-tile.is-pending { border-radius: 6px; background: var(--theme-cell); }
:is(.theme-brand, .theme-contrast) .hand-table { container: hand-table / inline-size; display: flex; flex: 1 1 0; min-height: 112px; flex-direction: column; gap: 2px; overflow-y: auto; }
:is(.theme-brand, .theme-contrast) .hand-table-head { position: sticky; z-index: 2; top: 0; background: var(--surface-panel); }
:is(.theme-brand, .theme-contrast) .hand-table-head::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 40px; background: linear-gradient(to bottom, var(--surface-panel), transparent); pointer-events: none; opacity: 0; }
:is(.theme-brand, .theme-contrast) .hand-table::after { content: ""; position: sticky; z-index: 3; bottom: 0; height: 40px; flex: none; margin-top: -42px; background: linear-gradient(to bottom, transparent, var(--surface-panel)); pointer-events: none; opacity: 0; }
:is(.theme-brand, .theme-contrast) .hand-table.is-more-above > .hand-table-head::after,
:is(.theme-brand, .theme-contrast) .hand-table.is-more-below::after { opacity: 1; }
:is(.theme-brand, .theme-contrast) :is(.hand-table-head, .hand-table-row) { display: grid; flex: none; grid-template-columns: 68px repeat(var(--hand-cols), minmax(0, 1fr)); gap: 2px; }
:is(.theme-brand, .theme-contrast) .hand-table-action { position: relative; display: flex; min-width: 0; align-items: flex-start; justify-content: center; overflow: hidden; padding: 8px 2px 4px; color: var(--text-soft); font-size: 12px; font-weight: var(--bold); line-height: 14px; text-align: center; text-transform: capitalize; }
:is(.theme-brand, .theme-contrast) .hand-table-swatch { position: absolute; top: 0; right: 2px; left: 2px; height: 3px; border-radius: 2px; }
:is(.theme-brand, .theme-contrast) .hand-table-row { min-height: 36px; }
:is(.theme-brand, .theme-contrast) .hand-table-name { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 2px; padding-left: 2px; }
:is(.theme-brand, .theme-contrast) .hand-table-name > b { color: var(--text-strong); font-size: 15px; font-weight: var(--heavy); }
:is(.theme-brand, .theme-contrast) .hand-table-name > small { color: var(--text-muted); font-size: 11px; font-weight: var(--bold); font-variant-numeric: tabular-nums; }
:is(.theme-brand, .theme-contrast) .hand-table-cell { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 1px; overflow: hidden; border-radius: 4px; background: var(--theme-cell); padding: 3px 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .hand-table-cell > i { position: absolute; inset: 0; }
:is(.theme-brand, .theme-contrast) .hand-table-cell > :is(b, small) { position: relative; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
:is(.theme-brand, .theme-contrast) .hand-table-cell b { color: var(--text-strong); font-size: 14px; font-weight: var(--heavy); line-height: 16px; }
:is(.theme-brand, .theme-contrast) .hand-table-cell small { color: var(--text-soft); font-size: 12px; font-weight: 600; line-height: 14px; }
:is(.theme-brand, .theme-contrast) .hand-table-cell.is-zero b { color: var(--text-muted); font-weight: 600; }
:is(.theme-brand, .theme-contrast) .hand-table-cell.is-best small { color: var(--text-strong); font-weight: var(--heavy); }
:is(.theme-brand, .theme-contrast) .hand-table-pct { font-size: 11px; }
:is(.theme-brand, .theme-contrast) .hand-table-alike { margin: 0 2px 4px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
:is(.theme-brand, .theme-contrast) .combo-look.is-pending .hand-table { opacity: 0.56; }
:is(.theme-brand, .theme-contrast) .hand-table.is-many .hand-table-action { font-size: 11px; line-height: 13px; }
:is(.theme-brand, .theme-contrast) .hand-table.is-many .hand-table-cell b { font-size: 13px; }
:is(.theme-brand, .theme-contrast) .hand-table.is-many .hand-table-cell small { font-size: 11px; }
@container hand-table (max-width: 420px) {
  :is(.theme-brand, .theme-contrast) .hand-table.is-many .hand-table-pct { display: none; }
}
:is(.theme-brand, .theme-contrast) .summary-table { min-width: 0; }
:is(.theme-brand, .theme-contrast) .summary-table :is(th, td) { padding: 0 4px; }
:is(.theme-brand, .theme-contrast) .summary-table :is(th, td):first-child { padding-left: 6px; }
:is(.theme-brand, .theme-contrast) .summary-table :is(th, td):last-child { padding-right: 6px; }
:is(.theme-brand, .theme-contrast) .summary-table th { background: var(--surface-panel); }
:is(.theme-brand, .theme-contrast) .summary-table td { font-size: 13px; }
:is(.theme-brand, .theme-contrast) .summary-table th { font-size: 11px; }
:is(.theme-brand, .theme-contrast) .summary-table td { height: 36px; }
:is(.theme-brand, .theme-contrast) .summary-table th:first-child { width: 84px; }
:is(.theme-brand, .theme-contrast) .summary-table th:nth-child(2) { width: auto; }
:is(.theme-brand, .theme-contrast) .summary-table th:nth-child(3) { width: 50px; }
:is(.theme-brand, .theme-contrast) .summary-table th:nth-child(4) { width: 46px; }
:is(.theme-brand, .theme-contrast) .summary-table th:nth-child(5) { width: 44px; }
:is(.theme-brand, .theme-contrast) .summary-table th:nth-child(6) { width: 42px; }
:is(.theme-brand, .theme-contrast) .table-strategy-sort { flex-wrap: nowrap; min-width: 0; align-items: baseline;  }
:is(.theme-brand, .theme-contrast) .table-strategy-sort > button { flex: none; }
:is(.theme-brand, .theme-contrast) .table-strategy-sort .ds-select { text-transform: none; }
:is(.theme-brand, .theme-contrast) .summary-table .summary-strategy { padding: 0 6px; }
:is(.theme-brand, .theme-contrast) .summary-mix { height: 14px; border-radius: 4px; }
:is(.theme-brand, .theme-contrast) .blockers-table thead th { background: var(--surface-panel); }
:is(.theme-brand, .theme-contrast) .blockers-table :is(th, td) { font-size: 13px; }
:is(.theme-brand, .theme-contrast) .blockers-table { min-width: 0; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-many thead th { padding: 0 2px; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-many thead th:first-child { width: 40px; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-many .blocker-dot { position: absolute; top: 0; left: 2px; right: 2px; width: auto; height: 3px; border-radius: 0 0 2px 2px; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-many .blocker-sort-icon.is-idle { display: none; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-many :is(.blocker-sort-button, .blocker-value) { font-size: 11px; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-many .blocker-value { overflow: hidden; padding: 0 1px; }
:is(.theme-brand, .theme-contrast) .blockers-table tbody tr:nth-child(even):not(.is-hand-card) > :is(th, td) { background: rgb(var(--ink) / 0.04); }
:is(.theme-brand, .theme-contrast) .blockers-table.is-many .blocker-head-text { overflow: hidden; text-overflow: ellipsis; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-stacked thead th:not(:first-child) { height: 40px; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-many thead th:not(:first-child) { padding-top: 6px; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-stacked .blocker-head-text { display: flex; min-width: 0; min-height: 28px; flex-direction: column; justify-content: flex-start; line-height: 14px; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-stacked :is(.blocker-head-word, .blocker-head-size) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-stacked .blocker-head-size { color: var(--text-soft); }
:is(.theme-brand, .theme-contrast) .blockers-table.is-many .blocker-value { padding: 0; }
:is(.theme-brand, .theme-contrast) .blockers-table.is-many td { padding: 1px 0 1px 1px; }
:is(.theme-brand, .theme-contrast) .blockers-top { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
:is(.theme-brand, .theme-contrast) .blockers-top-title { color: var(--text-muted); font-size: 12px; font-weight: var(--heavy); line-height: 16px; text-transform: uppercase; }
:is(.theme-brand, .theme-contrast) .blockers-top-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
:is(.theme-brand, .theme-contrast) .blockers-top-item { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 4px; border-radius: 8px; background: rgb(var(--ink) / 0.04); padding: 8px 4px; cursor: default; }
:is(.theme-brand, .theme-contrast) .blockers-top .playing-card--blocker { --card-width: 24px; --card-height: 32px; }
:is(.theme-brand, .theme-contrast) .blockers-top-value { font-size: 13px; font-weight: var(--heavy); line-height: 16px; font-variant-numeric: tabular-nums; }
:is(.theme-brand, .theme-contrast) .blockers-top-item.is-up .blockers-top-value { color: var(--grade-good); }
:is(.theme-brand, .theme-contrast) .blockers-top-item.is-down .blockers-top-value { color: var(--grade-bad); }
:is(.theme-brand, .theme-contrast) .blockers-top-action { display: flex; max-width: 100%; align-items: center; gap: 4px; color: var(--text-soft); font-size: 11px; font-weight: var(--bold); line-height: 12px; }
:is(.theme-brand, .theme-contrast) .blockers-top-action > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .blockers-top-action > span::first-letter { text-transform: uppercase; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-ev { font-size: 13px; font-weight: var(--bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-side { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 1px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-ev { line-height: 20px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-combos.action-card-combos { line-height: 16px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-reply { display: flex; width: 64px; flex: none; flex-direction: column; gap: 1px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-reply.is-end { color: var(--text-muted); font-size: 12px; font-weight: var(--bold); text-shadow: none; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-reply-seat { color: var(--text-soft); font-size: 11px; font-weight: var(--bold); line-height: 20px; text-shadow: none; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-reply-bar { display: flex; height: 10px; overflow: hidden; margin: 3px 0; border-radius: 3px; background: var(--theme-cell); }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm .action-card-reply-bar i { display: block; height: 100%; }
:is(.theme-brand, .theme-contrast) .strength-card { flex: 0 1 auto; min-height: 0; }
:is(.theme-brand, .theme-contrast) .strength-card > .ds-card-body { min-height: 0; overflow-y: auto; }
:is(.theme-brand, .theme-contrast) .study-right > .details-card:not(.is-folded) { min-height: 96px; }
:is(.theme-brand, .theme-contrast) .strength-card .ds-card-title { font-size: 15px; font-weight: var(--heavy); white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .panel-fold { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
:is(.theme-brand, .theme-contrast) .panel-fold-icon { flex: none; color: var(--text-muted); }
:is(.theme-brand, .theme-contrast) .ds-card.is-folded .panel-fold-icon { transform: rotate(-90deg); }
:is(.theme-brand, .theme-contrast) .study-right > .ds-card.is-folded { flex: none; }
:is(.theme-brand, .theme-contrast) .study-right > .ds-card.is-folded { padding-bottom: 0; }
:is(.theme-brand, .theme-contrast) .details-card.is-folded .details-tabs-body { display: none; }
:is(.theme-brand, .theme-contrast) .actions-card .action-head-range { display: flex; min-width: 0; height: 20px; flex: 0 100 auto; flex-wrap: wrap; gap: 0 4px; overflow: hidden; line-height: 20px; white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .panel-head-main > .filter-chips { display: flex; min-width: 0; flex: 0 1 auto; align-items: center; gap: 4px; }
:is(.theme-brand, .theme-contrast) .filter-chips-list { display: flex; min-width: 0; flex: 0 1 auto; gap: 4px; overflow-x: auto; scrollbar-width: none; }
:is(.theme-brand, .theme-contrast) .filter-chips-list::-webkit-scrollbar { display: none; }
:is(.theme-brand, .theme-contrast) :is(.filter-chips-list > *, .filter-chips-clear) { flex: none; }
:is(.theme-brand, .theme-contrast) .filter-chips .filter-chips-clear { font-size: 12px; line-height: 16px; }
:is(.theme-brand, .theme-contrast) .details-tabs > .ds-card-head .panel-fold { align-self: stretch; }
:is(.theme-brand, .theme-contrast) .strength-card .panel-empty { min-height: 66px; }
:is(.theme-brand, .theme-contrast) .strength-view { margin-left: auto; }
:is(.theme-brand, .theme-contrast) .strength-list { container: strength-list / inline-size; display: flex; flex-direction: column; gap: 1px; }
:is(.theme-brand, .theme-contrast) .strength-group { display: flex; min-width: 0; flex-direction: column; }
:is(.theme-brand, .theme-contrast) .strength-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 44px 96px;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  margin-inline: -4px;
  border: none;
  border-radius: 6px;
  background: none;
  padding: 0 4px;
  color: var(--text-soft);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
:is(.theme-brand, .theme-contrast) .strength-row:hover { background: color-mix(in srgb, var(--text-strong) 8%, transparent); }
:is(.theme-brand, .theme-contrast) .study-right > .strength-card > .ds-card-body { margin-inline: -4px; padding: 0 4px; }
:is(.theme-brand, .theme-contrast) .strength-row.is-on { background: var(--theme-pick-action); box-shadow: inset var(--theme-pick-edge) 0 0 var(--pick); color: var(--theme-pick-action-ink); }
:is(.theme-brand, .theme-contrast) .strength-name { display: flex; min-width: 0; align-items: center; gap: 4px; color: inherit; font-weight: var(--bold); }
:is(.theme-brand, .theme-contrast) .strength-name-text { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
:is(.theme-brand, .theme-contrast) .strength-row.is-hinted:not(.is-on) { background: color-mix(in srgb, var(--pick) 10%, transparent); }
:is(.theme-brand, .theme-contrast) .strength-hint { flex: none; border-radius: 4px; background: var(--pick); padding: 0 4px; color: var(--surface-page); font-size: 12px; font-style: normal; font-weight: var(--heavy); line-height: 16px; }
:is(.theme-brand, .theme-contrast) .strength-row:not(.is-on) .strength-name { color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .strength-open-icon { flex: none; color: var(--text-muted); }
:is(.theme-brand, .theme-contrast) .strength-row.is-open .strength-open-icon { transform: rotate(90deg); }
:is(.theme-brand, .theme-contrast) .strength-share { font-size: 13px; font-weight: var(--bold); text-align: right; opacity: 0.8; font-variant-numeric: tabular-nums; }
:is(.theme-brand, .theme-contrast) .strength-bar { display: flex; height: 14px; overflow: hidden; border-radius: 4px; background: var(--theme-cell); }
:is(.theme-brand, .theme-contrast) .strength-bar i { display: block; height: 100%; }
:is(.theme-brand, .theme-contrast) .strength-lead {
  overflow: hidden;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 13px;
  font-weight: var(--bold);
  text-align: right;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}
:is(.theme-brand, .theme-contrast) .strength-lead.is-fold { background: none; color: var(--text-muted); }
:is(.theme-brand, .theme-contrast) .strength-lead.action-fill {
  background-image: linear-gradient(rgb(var(--ink) / 0.3), rgb(var(--ink) / 0.3));
  -webkit-background-clip: text;
  background-clip: text;
}
:is(.theme-brand, .theme-contrast) .strength-ev { display: none; font-size: 13px; font-weight: var(--bold); text-align: right; opacity: 0.85; font-variant-numeric: tabular-nums; white-space: nowrap; }
@container strength-list (min-width: 380px) {
  :is(.theme-brand, .theme-contrast) .strength-row { grid-template-columns: 150px 40px minmax(0, 1fr) 100px; }
}
@container strength-list (min-width: 480px) {
  :is(.theme-brand, .theme-contrast) .strength-row { grid-template-columns: 160px 40px minmax(0, 1fr) 60px 100px; }
  :is(.theme-brand, .theme-contrast) .strength-ev { display: block; }
}
:is(.theme-brand, .theme-contrast) .strength-unfold.is-moving { overflow: hidden; }
:is(.theme-brand, .theme-contrast) .strength-classes { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0 6px 16px; }
:is(.theme-brand, .theme-contrast) .strength-class { display: flex; width: 54px; flex-direction: column; gap: 4px; border: none; border-radius: 4px; background: var(--theme-cell); padding: 4px 5px 5px; color: var(--text-strong); font-size: 12px; line-height: 1; cursor: pointer; }
:is(.theme-brand, .theme-contrast) .strength-class:hover { background: var(--surface-raised); }
:is(.theme-brand, .theme-contrast) .strength-class.is-focus { box-shadow: inset 0 0 0 1px var(--pick); }
:is(.theme-brand, .theme-contrast) .strength-class b { font-weight: var(--heavy); }
:is(.theme-brand, .theme-contrast) .strength-class-bar { display: flex; height: 6px; overflow: hidden; border-radius: 2px; background: var(--surface-raised); }
:is(.theme-brand, .theme-contrast) .strength-class-bar i { display: block; height: 100%; }
:is(.theme-brand, .theme-contrast) .strength-row.is-skeleton { cursor: default; }
:is(.theme-brand, .theme-contrast) .strength-row.is-skeleton:hover { background: none; }
:is(.theme-brand, .theme-contrast) .strength-row.is-skeleton i { display: block; height: 14px; border-radius: 4px; background: var(--surface-raised); }
:is(.theme-brand, .theme-contrast) .strength-row.is-skeleton i:nth-child(1) { width: 64%; }
:is(.theme-brand, .theme-contrast) .strength-row.is-skeleton:nth-child(3n + 2) i:nth-child(1) { width: 48%; }
:is(.theme-brand, .theme-contrast) .strength-row.is-skeleton:nth-child(3n) i:nth-child(1) { width: 76%; }
:is(.theme-brand, .theme-contrast) .strength-row.is-skeleton i:nth-child(2) { width: 24px; justify-self: end; }
:is(.theme-brand, .theme-contrast) .strength-row.is-skeleton i:nth-child(3) { background: var(--theme-cell); }
:is(.theme-brand, .theme-contrast) .strength-row.is-skeleton i:nth-child(4) { width: 48px; justify-self: end; }
:is(.theme-brand, .theme-contrast) .strength-panel.is-bare { display: flex; flex: 1; min-height: 0; flex-direction: column; overflow-y: auto; padding-top: 4px; }
:is(.theme-brand, .theme-contrast) .strength-bare-head { display: flex; margin-bottom: 8px; }
:is(.theme-brand, .theme-contrast) .sidebar-account-avatar { background: var(--surface-raised); color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .config-title { color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .appearance-preview { background: var(--surface-sunken); }
:is(.theme-brand, .theme-contrast) .panel-placeholder-title { color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .summary-mix { background: var(--theme-cell); }
:is(.theme-brand, .theme-contrast) :is(.summary-card.is-spade, .hand-filters-suit.is-s) { color: var(--suit-ink-s); }
:is(.theme-brand, .theme-contrast) :is(.summary-card.is-heart, .hand-filters-suit.is-h) { color: var(--suit-ink-h); }
:is(.theme-brand, .theme-contrast) :is(.summary-card.is-diamond, .hand-filters-suit.is-d) { color: var(--suit-ink-d); }
:is(.theme-brand, .theme-contrast) :is(.summary-card.is-club, .hand-filters-suit.is-c) { color: var(--suit-ink-c); }
:is(.theme-brand, .theme-contrast) .hand-filters-suit:hover { border-color: var(--line-strong); }
:is(.theme-brand, .theme-contrast) .saved-spots-icon { background: color-mix(in srgb, var(--pick) 15%, transparent); color: var(--pick); }
:is(.theme-brand, .theme-contrast) .saved-add { background: rgb(var(--ink) / 0.15); box-shadow: none; color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .saved-add:is(:hover:not(:disabled), .is-active) { background: rgb(var(--ink) / 0.22); }
:is(.theme-brand, .theme-contrast) .lv-quick-go { color: var(--accent-orange); }
:is(.theme-brand, .theme-contrast) .solutions-title > svg { color: var(--accent-orange); }
:is(.theme-brand, .theme-contrast) .ranges-actor { color: var(--pick); }
:is(.theme-brand, .theme-contrast) .lv-quick-summary .ds-badge.is-brand { background: color-mix(in srgb, var(--accent-orange) 14%, transparent); color: var(--accent-orange); }
:is(.theme-brand, .theme-contrast) :is(.strength-bar, .summary-mix, .action-card-reply-bar, .strength-class-bar) > i + i { box-shadow: inset 1px 0 0 var(--surface-panel); }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 6px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card { height: 36px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-value { font-size: 17px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-name { font-size: 14px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-side { gap: 0; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-ev { line-height: 16px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-combos.action-card-combos { line-height: 12px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-reply { gap: 0; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-reply-seat { line-height: 16px; }
:is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-reply-bar { margin: 1px 0; }
:is(.theme-brand, .theme-contrast) .actions-card > .ds-card-body { container-type: inline-size; }
@container (min-width: 386px) {
  :is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--bar-rows), auto); grid-auto-flow: column; }
  :is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-reply { display: none; }
  :is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-name { font-size: 13px; }
}
@container (min-width: 386px) and (max-width: 499px) {
  :is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-combos { display: none; }
}
@container (min-width: 386px) and (max-width: 519px) {
  :is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-ev-word { display: none; }
}
@media (max-height: 759px) {
  :is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card { height: 30px; }
  :is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-value { font-size: 15px; }
  :is(.theme-brand, .theme-contrast) .action-cards.is-calm.is-many .action-card-combos.action-card-combos { display: none; }
}
:is(.theme-brand, .theme-contrast) .ranges-mode { padding-inline: 4px; }
:is(.theme-brand, .theme-contrast) .ranges-mode { border: none; background: rgb(var(--ink) / 0.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-soft); }
:is(.theme-brand, .theme-contrast) .ranges-mode:hover:not(:disabled) { background: rgb(var(--ink) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.2); color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .ranges-mode.is-selected { background: color-mix(in srgb, var(--accent-orange) 12%, transparent); box-shadow: inset 0 0 0 1px var(--accent-orange); color: var(--accent-orange); }
:is(.theme-brand, .theme-contrast) .ranges-mode.is-selected:hover:not(:disabled) { background: color-mix(in srgb, var(--accent-orange) 20%, transparent); box-shadow: inset 0 0 0 1px var(--accent-orange); color: var(--accent-orange); }
:is(.theme-brand, .theme-contrast) .ranges-player-header strong { align-items: center; padding-left: 4px; }
:is(.theme-brand, .theme-contrast) .ranges-seat { --seat: #ef5b64; display: inline-flex; height: 24px; align-items: center; gap: 6px; border-radius: 6px; background: color-mix(in srgb, var(--seat) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--seat) 40%, transparent); padding: 0 8px 0 7px; color: var(--text-strong); font-size: 13px; font-weight: var(--heavy); letter-spacing: 0.02em; line-height: 1; }
:is(.theme-brand, .theme-contrast) .ranges-seat.is-sb { --seat: #58bb77; }
:is(.theme-brand, .theme-contrast) .ranges-seat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--seat); box-shadow: 0 0 6px color-mix(in srgb, var(--seat) 70%, transparent); }
:is(.theme-brand, .theme-contrast) .ranges-player-header .ranges-actor { border-radius: 6px; background: color-mix(in srgb, var(--accent-orange) 14%, transparent); padding: 4px 8px; color: var(--accent-orange); font-size: 12px; line-height: 16px; }
:is(.theme-brand, .theme-contrast) .ranges-copy { margin-right: 4px; }
:is(.theme-brand, .theme-contrast) .ranges-chart-area { fill: #ef5b64; opacity: 0.08; }
:is(.theme-brand, .theme-contrast) .ranges-chart-area.is-sb { fill: #58bb77; }
:is(.theme-brand, .theme-contrast) .ranges-chart-half { stroke: rgb(var(--ink) / 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
:is(.theme-brand, .theme-contrast) .ranges-chart-line { stroke-width: 2.5; }
:is(.theme-brand, .theme-contrast) .ranges-chart-dot { position: absolute; top: 0; left: 0; z-index: 2; width: 10px; height: 10px; margin: -5px 0 0 -5px; will-change: transform; border-radius: 50%; background: #ef5b64; box-shadow: 0 0 0 2px var(--surface-panel), 0 0 8px rgba(239, 91, 100, 0.6); pointer-events: none; }
:is(.theme-brand, .theme-contrast) .ranges-chart-dot.is-sb { background: #58bb77; box-shadow: 0 0 0 2px var(--surface-panel), 0 0 8px rgba(88, 187, 119, 0.6); }
:is(.theme-brand, .theme-contrast) .ranges-chart-cursor-line { position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: 1px; background: rgb(var(--ink) / 0.31); pointer-events: none; will-change: transform; }
:is(.theme-brand, .theme-contrast) .study-columns.is-ranges .ranges-view { padding-inline: 8px; }
:is(.theme-brand, .theme-contrast) .ranges-chart-key { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #ef5b64; }
:is(.theme-brand, .theme-contrast) .ranges-chart-key.is-sb { background: #58bb77; }
:is(.theme-brand, .theme-contrast) .study-page.is-rail-collapsed .study-rail.study-rail { overflow: visible; }
@media (max-height: 599px) {
  :is(.theme-brand, .theme-contrast) .study-page.is-rail-collapsed .study-rail.study-rail { overflow: hidden auto; }
}
:is(.theme-brand, .theme-contrast) .ranges-player.matrix-panel .matrix .matrix-cell .matrix-cell-label.matrix-cell-label { top: 3px; left: 3px; font-size: clamp(9px, 2.6cqw, 13px); }
@media (max-width: 1799px) {
  :is(.theme-brand, .theme-contrast) .ranges-player.matrix-panel .matrix .matrix-cell .matrix-cell-label.matrix-cell-label { font-size: clamp(9px, calc(2.6cqw - 1px), 12px); }
}
@container study-matrix (max-width: 317px) {
  :is(.theme-brand, .theme-contrast) .ranges-player.matrix-panel .matrix .matrix-cell .matrix-cell-label.matrix-cell-label {
    top: 2px; left: 2px; font-size: clamp(7px, calc(3.2cqw - 1px), 9px);
  }
}
:root:is(.theme-brand, .theme-contrast) :is(.ds-input, .saved-tags-input)::placeholder { color: var(--theme-placeholder); }
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-tooltip, .ds-toast, .line-menu, .line-exact-pop, .matrix-hand-drawer,
  .matrix-loader-panel, .compare-float, .tour-card, .hover-hint, .custom-lock-scope-menu,
  .saved-current) {
  --surface-panel: #303030;
  --theme-card: #303030;
  --surface-sunken: #303030;
  --surface-rail: #3a3a3a;
  --theme-cell: #3a3a3a;
  --surface-raised: #3e3e3e;
  --surface-hover: #4f4f4f;
  --surface-active: #4f4f4f;
  --text-muted: rgba(255, 255, 255, 0.57);
  background: #303030;
}
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-toast, .line-menu, .line-exact-pop, .custom-lock-scope-menu) {
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.2);
}
:is(.theme-brand, .theme-contrast) :is(.matrix-hand-drawer, .matrix-loader-panel, .tour-card, .saved-current),
:is(.theme-brand, .theme-contrast) .study-page.is-rail-collapsed .compare-float {
  border-color: var(--line);
  background: #303030;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.2);
}
:is(.theme-brand, .theme-contrast) .matrix-hand-drawer {
  --surface-panel: inherit;
  --theme-card: inherit;
  --surface-sunken: inherit;
  --surface-rail: inherit;
  --theme-cell: inherit;
  --surface-raised: inherit;
  --surface-hover: inherit;
  --surface-active: inherit;
  --line: inherit;
  margin-left: 16px;
  background: var(--surface-panel);
  padding: 12px;
}
:is(.theme-brand, .theme-contrast) .matrix-hand-drawer.is-left { margin: 0 16px 0 0; }
:is(.theme-brand, .theme-contrast) .matrix-hand-drawer .hand-drawer-row.is-total { border-top: none; }
:is(.theme-brand, .theme-contrast) .matrix-hand-drawer { border-color: transparent; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.56), 0 4px 12px rgba(0, 0, 0, 0.36); }
:is(.theme-brand, .theme-contrast) :is(.ds-tooltip, .hover-hint),
:is(.theme-brand, .theme-contrast) .study-page .study-rail [data-rail-label]::after {
  background: #303030;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(11, 11, 11, 0.06), 0 2px 8px rgba(0, 0, 0, 0.24);
}
:is(.theme-brand, .theme-contrast) .ds-menu .ds-menu-item.is-selected { background: transparent; box-shadow: none; }
:is(.theme-brand, .theme-contrast) .ds-menu .ds-menu-item.is-selected:hover { background: var(--surface-hover); }
:is(.theme-brand, .theme-contrast) .ds-menu .ds-menu-check { color: var(--accent-orange); }
:is(.theme-brand, .theme-contrast) .ds-menu:has(> .ds-menu-item > .menu-bar) { gap: 4px; }
:is(.theme-brand, .theme-contrast) .ds-menu .ds-menu-item:has(> .menu-bar) { height: 24px; background: none; padding: 0; }
:is(.theme-brand, .theme-contrast) .ds-menu .ds-menu-item:has(> .menu-bar):not(.is-selected)::after { content: ""; width: 16px; flex: none; }
:is(.theme-brand, .theme-contrast) .menu-bar { display: flex; height: 24px; min-width: 0; flex: 1 1 auto; align-items: center; gap: 12px; padding: 0 8px; font-weight: var(--bold); }
:is(.theme-brand, .theme-contrast) .ds-menu-item:hover > .menu-bar { filter: brightness(1.15); }
:is(.theme-brand, .theme-contrast) .menu-bar-share { margin-left: auto; font-variant-numeric: tabular-nums; }
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-tooltip, .hover-hint, .ui-tooltip) .ds-kbd { box-shadow: none; }
:is(.theme-brand, .theme-contrast) .ds-menu .ds-menu-item.is-danger { color: #f17778; }
:is(.theme-brand, .theme-contrast) .ds-modal {
  --surface-sunken: #191919;
  --text-muted: rgba(255, 255, 255, 0.57);
  background: #1f1f1f;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.06), 0 2px 8px rgba(0, 0, 0, 0.24);
}
:is(.theme-brand, .theme-contrast) .lv-group { background: #1f1f1f; }
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-modal) :is(.ds-input, .saved-tags-editor) { background: rgb(var(--ink) / 0.05); box-shadow: inset 0 0 0 1px var(--line); }
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-modal) :is(.ds-input:focus, .saved-tags-editor:focus-within) { box-shadow: 0 0 0 1px var(--accent-orange), 0 0 6px 1px color-mix(in srgb, var(--accent-orange) 60%, transparent); }
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-modal) .ds-button:not(.is-primary, .is-outline, .is-ghost, .is-danger, .is-danger-solid, .is-link) {
  background: rgb(var(--ink) / 0.15);
}
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-modal) .ds-segmented { background: rgb(var(--ink) / 0.05); box-shadow: none; }
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-modal) :is(.ds-segment.is-selected, .ds-segment[data-state="active"], .ds-segmented-pill) {
  background: rgb(var(--ink) / 0.1);
  box-shadow: 0 0 0 1px rgb(var(--ink) / 0.2);
}
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-modal) .ds-segmented.is-sliding :is(.ds-segment.is-selected, .ds-segment[data-state="active"]) { background: transparent; box-shadow: none; }
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-modal) :is(.ds-chip.is-selected, .ds-list-item.is-selected) { background: rgb(var(--ink) / 0.15); box-shadow: none; }
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-modal) .ds-list-item.is-selected:hover { background: rgb(var(--ink) / 0.22); }
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-modal) .ds-button.is-link { color: var(--accent-orange); }
:is(.theme-brand, .theme-contrast) .layout-menu {
  --surface-panel: #1f1f1f;
  --theme-card: #1f1f1f;
  --surface-sunken: #191919;
  --surface-rail: #2c2c2c;
  --theme-cell: #2a2a2a;
  --surface-raised: #303030;
  --surface-hover: #2f2f2f;
  --surface-active: #414141;
  border: 1px solid var(--line);
  background: #1f1f1f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.2);
}
:is(.theme-brand, .theme-contrast) :is(.layout-menu, .settings-card .layout-picker) .layout-tile.is-selected :is(.layout-map > .layout-map-matrix, .streets-map > .streets-map-matrix, .cells-map > i) {
  background: var(--accent-orange);
}
:is(.theme-brand, .theme-contrast) .settings-card .layout-picker {
  --surface-sunken: #191919;
  --surface-hover: #2f2f2f;
}
:is(.theme-brand, .theme-contrast) .ds-switch { background: rgb(var(--ink) / 0.1); box-shadow: none; }
:is(.theme-brand, .theme-contrast) .ds-switch.is-on { background: var(--accent-orange); }
:is(.theme-brand, .theme-contrast) .ds-switch::after { background: #ffffff; box-shadow: 0 1px 2px rgba(11, 11, 11, 0.06), 0 2px 8px rgba(0, 0, 0, 0.24); }
:is(.theme-brand, .theme-contrast) .ds-switch:focus-visible { outline-color: var(--accent-orange); }
:is(.theme-brand, .theme-contrast) .ds-tile.is-selected {
  background: color-mix(in srgb, var(--accent-orange) 8%, transparent);
  box-shadow: inset 0 0 0 1px var(--accent-orange);
  color: var(--text-strong);
}
:is(.theme-brand, .theme-contrast) :is(.ds-tab.is-selected, .ds-tab[data-state="active"]) { box-shadow: inset 0 -2px 0 var(--accent-orange); }
:is(.theme-brand, .theme-contrast) :is(.ds-menu, .ds-modal) :is(.lv-quick-row.is-selected, .lv-recent.is-selected) {
  background: color-mix(in srgb, var(--accent-orange) 8%, transparent);
  box-shadow: inset 0 0 0 1px var(--accent-orange);
  color: var(--text-strong);
}
:is(.theme-brand, .theme-contrast) .ds-modal .lv-quick-row.is-selected:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--accent-orange) 14%, transparent); }
:is(.theme-brand, .theme-contrast) .lv-quick-steps { border-right-color: var(--line); }
:is(.theme-brand, .theme-contrast) .lv-quick .lv-chip:not(.is-selected) { background: rgb(var(--ink) / 0.04); box-shadow: none; }
:is(.theme-brand, .theme-contrast) .lv-quick .lv-chip:not(.is-selected):hover { background: rgb(var(--ink) / 0.075); }
:is(.theme-brand, .theme-contrast) .lv-quick-list > :is(.lv-quick-row, .lv-custom-row):nth-child(even):not(.is-selected) { background: rgb(var(--ink) / 0.04); }
:is(.theme-brand, .theme-contrast) .lv-quick .lv-quick-row:not(.is-selected):is(:hover, :focus-visible) { background: rgb(var(--ink) / 0.12); }
:is(.theme-brand, .theme-contrast) .lv-quick .lv-custom-row:not(.is-unavailable):is(:hover, :focus-visible) { background: rgb(var(--ink) / 0.075); }
:is(.theme-brand, .theme-contrast) .custom-progress-bar > i { background: linear-gradient(90deg, var(--accent-orange-deep), var(--accent-orange)); }
:is(.theme-brand, .theme-contrast) :is(.custom-board-button, .custom-range-card, .custom-edit-add:not(:disabled)):hover { border-color: var(--line-strong); }
:is(.theme-brand, .theme-contrast) .custom-edit-stepper button:hover:not(:disabled) { color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .saved-current:not(.is-saved) .saved-current-eyebrow { color: var(--text-muted); }
:is(.theme-brand, .theme-contrast) :is(.modal-backdrop, .solutions-backdrop, .custom-backdrop) { background: rgba(0, 0, 0, 0.5); }
@media (max-width: 759px) {
  :is(.theme-brand, .theme-contrast) :is(.modal-backdrop, .solutions-backdrop, .custom-backdrop) { background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); }
}
:root:is(.theme-brand, .theme-contrast) { --strip-fade-soft: color-mix(in srgb, var(--surface-page) 70%, transparent); }
:is(.theme-brand, .theme-contrast) .combo-tile.is-dead { background: var(--surface-sunken); }
:is(.theme-brand, .theme-contrast) .saved-current.is-saved { background: linear-gradient(135deg, color-mix(in srgb, var(--grade-good) 9%, var(--surface-raised)), var(--surface-raised) 58%); }
:is(.theme-brand, .theme-contrast) .range-thumb { background: var(--theme-cell-line); }
:is(.theme-brand, .theme-contrast) .range-thumb-cell:not(.is-on) { background: var(--theme-cell); }
:is(.theme-brand, .theme-contrast) .custom-lock-slider-track { background: var(--surface-rail); }
:is(.theme-brand, .theme-contrast) .custom-compare-mix-half.is-empty { background: repeating-linear-gradient(135deg, var(--surface-panel) 0 4px, var(--surface-rail) 4px 8px); }
:is(.theme-brand, .theme-contrast) .custom-shell-head { padding-block: 16px; }
:is(.theme-brand, .theme-contrast) .custom-shell-head h1 { font-size: 20px; font-weight: var(--heavy); letter-spacing: -0.01em; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-nav { gap: 4px; border-right-color: var(--line); background: #191919; padding: 16px 12px; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-nav-tabs { margin-bottom: 12px; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-nav-item { height: auto; min-height: 52px; gap: 12px; margin-inline: 0; border-radius: 10px; background: transparent; box-shadow: none; padding: 8px 10px; color: var(--text-soft); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-nav-item > svg { box-sizing: content-box; flex: none; border-radius: 8px; background: rgb(var(--ink) / 0.06); padding: 8px; color: var(--text-soft); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-nav-item strong { color: var(--text-strong); font-size: 14px; font-weight: var(--bold); line-height: 20px; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-nav-item small { line-height: 16px; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-nav-item:hover:not(:disabled) { background: rgb(var(--ink) / 0.05); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-nav-item.is-current { background: rgb(var(--ink) / 0.1); box-shadow: none; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-nav-item.is-current > svg { background: color-mix(in srgb, var(--accent-orange) 16%, transparent); color: var(--accent-orange); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-main { padding: 24px 28px 28px; }
:is(.theme-brand, .theme-contrast) .custom-shell .ds-field-label { color: var(--text-soft); font-size: 12px; font-weight: var(--bold); letter-spacing: 0.01em; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-hint { border-color: rgb(var(--ink) / 0.18); color: var(--text-muted); }
:is(.theme-brand, .theme-contrast) .ds-modal:is(.custom-shell, .custom-range-panel, .custom-rake-picker, .custom-tree-editor, .custom-profiles) :is(.custom-pill, .custom-round, .custom-iteration-button, .ds-button.is-pill, .ds-button.is-outline, .ds-chip) { border: none; background: rgb(var(--ink) / 0.04); box-shadow: none; color: var(--text-soft); }
:is(.theme-brand, .theme-contrast) .ds-modal:is(.custom-shell, .custom-range-panel, .custom-rake-picker, .custom-tree-editor, .custom-profiles) :is(.custom-pill, .custom-round, .custom-iteration-button, .ds-button.is-pill, .ds-button.is-outline, .ds-chip):hover:not(:disabled) { background: rgb(var(--ink) / 0.075); color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .ds-modal:is(.custom-shell, .custom-range-panel, .custom-rake-picker, .custom-tree-editor, .custom-profiles) :is(.custom-pill, .custom-round, .custom-iteration-button, .ds-button.is-pill, .ds-button.is-outline, .ds-chip).is-selected { background: color-mix(in srgb, var(--accent-orange) 8%, transparent); box-shadow: inset 0 0 0 1px var(--accent-orange); color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .ds-modal:is(.custom-shell, .custom-range-panel, .custom-rake-picker, .custom-tree-editor, .custom-profiles) :is(.custom-pill, .custom-round, .custom-iteration-button, .ds-button.is-pill, .ds-button.is-outline, .ds-chip).is-selected:hover:not(:disabled) { background: color-mix(in srgb, var(--accent-orange) 14%, transparent); }
:is(.theme-brand, .theme-contrast) .custom-shell :is(.custom-pill, .custom-round, .custom-iteration-button) { height: 32px; border-radius: 8px; padding-inline: 12px; font-size: 13px; font-weight: var(--bold); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-round { width: 32px; padding: 0; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-iteration-button { height: 24px; border-radius: 6px; padding-inline: 8px; font-size: 12px; }
:is(.theme-brand, .theme-contrast) .custom-shell :is(.custom-pill, .custom-round):disabled { opacity: 0.35; }
:is(.theme-brand, .theme-contrast) .ds-modal:is(.custom-shell, .custom-range-panel, .custom-rake-picker, .custom-tree-editor, .custom-profiles) .ds-stepper > .ds-button { background: transparent; box-shadow: none; color: var(--text-soft); }
:is(.theme-brand, .theme-contrast) .ds-modal:is(.custom-shell, .custom-range-panel, .custom-rake-picker, .custom-tree-editor, .custom-profiles) .ds-stepper > .ds-button:hover:not(:disabled) { background: rgb(var(--ink) / 0.08); color: var(--text-strong); }
:is(.theme-brand, .theme-contrast) .ds-modal:is(.custom-shell, .custom-range-panel, .custom-rake-picker, .custom-tree-editor, .custom-profiles) .ds-stepper > input { background: transparent; }
:is(.theme-brand, .theme-contrast) .custom-shell .ds-stepper > .ds-button { width: 40px; height: 40px; font-size: 18px; }
:is(.theme-brand, .theme-contrast) .custom-board-cards .playing-card--strip { --card-width: 21.6px; --card-height: 28.8px; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell) { --cx: 0; --cy: 0; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 2) { --cx: 1; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 3) { --cx: 2; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 4) { --cx: 3; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 5) { --cx: 4; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 6) { --cx: 5; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 7) { --cx: 6; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 8) { --cx: 7; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 9) { --cx: 8; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 10) { --cx: 9; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 11) { --cx: 10; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 12) { --cx: 11; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(13n + 13) { --cx: 12; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 14) { --cy: 1; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 27) { --cy: 2; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 40) { --cy: 3; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 53) { --cy: 4; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 66) { --cy: 5; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 79) { --cy: 6; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 92) { --cy: 7; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 105) { --cy: 8; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 118) { --cy: 9; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 131) { --cy: 10; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 144) { --cy: 11; }
:is(.theme-brand, .theme-contrast) :is(.range-thumb-cell, .custom-range-cell):nth-child(n + 157) { --cy: 12; }
:is(.theme-brand, .theme-contrast) :is(.custom-range-cell-fill, .range-thumb-cell.is-on) {
  background: linear-gradient(135deg, #ffb37c 0%, #fb9454 32%, var(--accent-orange) 58%, var(--accent-orange-deep) 100%) calc(var(--cx) * 100% / 12) calc(var(--cy) * 100% / 12) / 1300% 1300% no-repeat;
}
:is(.theme-brand, .theme-contrast) .custom-shell :is(.custom-player-row, .custom-seat-card, .custom-preflop, .custom-advanced) { border: none; border-radius: 14px; background: rgb(var(--ink) / 0.03); box-shadow: inset 0 0 0 1px var(--line); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-advanced > summary { color: var(--text-strong); font-size: 14px; font-weight: var(--bold); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-range-card { border: none; border-radius: 10px; background: rgb(var(--ink) / 0.05); box-shadow: inset 0 0 0 1px var(--line); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-range-card:hover { background: rgb(var(--ink) / 0.08); box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.16); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-note { color: var(--text-muted); font-size: 12px; line-height: 18px; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-shell-foot { gap: 16px; border-top-color: var(--line); background: #191919; padding: 12px 20px; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-foot-left { gap: 12px; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-admin-engine { display: inline-flex; align-items: center; gap: 10px; border-radius: 10px; background: rgb(var(--ink) / 0.04); box-shadow: inset 0 0 0 1px var(--line); padding: 6px 10px; font-size: 12px; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-admin-iterations { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-estimate:not(:empty) { border-radius: 8px; background: rgb(var(--ink) / 0.04); padding: 6px 10px; color: var(--text-soft); font-size: 12px; line-height: 16px; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-estimate.is-problem:not(:empty) { background: color-mix(in srgb, var(--accent-orange) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-orange) 30%, transparent); color: #f7b58c; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-foot-right { gap: 8px; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-foot-right > .ds-button { height: 40px; border-radius: 10px; padding-inline: 18px; font-size: 14px; font-weight: var(--bold); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-foot-right > .ds-button:not(.is-primary) { background: rgb(var(--ink) / 0.1); box-shadow: inset 0 0 0 1px var(--line); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-foot-right > .ds-button.is-primary { background: var(--accent-orange); box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-orange) 35%, transparent); color: #ffffff; }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-foot-right > .ds-button.is-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent-orange) 88%, #ffffff); }
:is(.theme-brand, .theme-contrast) .custom-shell .custom-foot-right > .ds-button:disabled { box-shadow: none; opacity: 0.45; }
:is(.theme-brand, .theme-contrast) :is(.study-page, .line-decision-copy, .line-menu) { -webkit-user-select: none; user-select: none; }
:is(.theme-brand, .theme-contrast) :is(.study-page, .line-decision-copy, .line-menu) :is(input, textarea, [contenteditable="true"]) { -webkit-user-select: text; user-select: text; }

@media (max-width: 979px) {
  :is(.theme-brand, .theme-contrast) body:has(.study-page) { min-width: 0; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page {
    height: auto; overflow: visible; grid-template-columns: minmax(0, 1fr); align-content: start; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  }
  :is(.theme-brand, .theme-contrast) .study-phone-bar {
    position: sticky; z-index: 40; top: 0; display: flex; height: 48px; min-width: 0; align-items: center; gap: 4px;
    border-bottom: 1px solid var(--line); background: var(--surface-page); padding: 0 8px 0 4px;
  }
  :is(.theme-brand, .theme-contrast) .study-phone-menu { flex: none; color: var(--text-strong); }
  :is(.theme-brand, .theme-contrast) .study-phone-burger { display: flex; width: 20px; flex-direction: column; gap: 4px; }
  :is(.theme-brand, .theme-contrast) .study-phone-burger > i { display: block; height: 2px; border-radius: 999px; background: currentColor; }
  :is(.theme-brand, .theme-contrast) .study-phone-config {
    display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; border: none; background: none; padding: 0 4px; color: var(--text-strong);
    text-align: left; cursor: pointer;
  }
  :is(.theme-brand, .theme-contrast) .study-phone-config strong { flex: none; font-size: 16px; font-weight: var(--heavy); line-height: 24px; white-space: nowrap; }
  :is(.theme-brand, .theme-contrast) .study-phone-config small {
    min-width: 0; overflow: hidden; color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; text-overflow: ellipsis; white-space: nowrap;
  }
  :is(.theme-brand, .theme-contrast) .study-phone-config svg { flex: none; color: var(--text-muted); }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-rail.study-rail {
    position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: min(312px, 88vw); height: auto; min-height: 0; overflow-y: auto;
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.5); transform: translateX(-100%); visibility: hidden; transition: transform 240ms ease, visibility 0s linear 240ms;
  }
  :is(.theme-brand, .theme-contrast) .study-page.is-drawer-open .study-rail.study-rail { transform: none; visibility: visible; transition: transform 240ms ease; }
  :is(.theme-brand, .theme-contrast) .study-drawer-shade { position: fixed; z-index: 79; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.56));  }
  :is(.theme-brand, .theme-contrast):has(.study-page.is-drawer-open) { overflow: hidden; }
  :is(.theme-brand, .theme-contrast) .matrix-panel > .toolbar.toolbar { height: auto; min-height: 44px; flex-wrap: wrap; row-gap: 4px; padding-block: 4px; }
  :is(.theme-brand, .theme-contrast) .matrix-panel > .toolbar > .panel-head-main { min-width: 0; flex-wrap: wrap; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-columns { flex: none; min-height: 0; grid-template-rows: auto; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-columns { grid-template-columns: minmax(0, 1fr) clamp(300px, 40%, 400px); }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-columns.is-ranges { grid-template-columns: minmax(0, 1fr); }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-columns.is-ranges > .study-right { height: auto; min-height: 0; gap: 8px; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-columns.is-ranges > .study-right > .details-card { flex: none; height: 560px; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-columns.is-ranges > .study-right > .details-card.is-folded { height: auto; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-columns.is-ranges > .study-right > .details-card:has(.combo-look) { height: auto; max-height: 560px; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-columns.is-ranges > .study-right > :is(.actions-card, .strength-card) { flex: none; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-columns:not(.is-ranges) > .matrix-panel :is(.matrix, .matrix-placeholder) {
    flex: none; min-height: 0; box-sizing: content-box; width: auto; aspect-ratio: 1 / 1;
  }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .matrix-error { flex: none; min-height: 320px; }
  :is(.theme-brand, .theme-contrast) .details-tabs > .ds-card-head .ds-segmented.ds-segmented { gap: 4px; }
  :is(.theme-brand, .theme-contrast) .details-tabs > .ds-card-head .ds-segment.ds-segment { font-size: 12px; }
  :is(.theme-brand, .theme-contrast) body:has(.study-page) :is(input, select, textarea) { font-size: 16px; }
  :is(.theme-brand, .theme-contrast) .study-page :is(button, a, [role="button"]) { -webkit-tap-highlight-color: transparent; }
}
@container study-panel (max-width: 479px) {
  :is(.theme-brand, .theme-contrast) .matrix-panel > .toolbar .range-filter-value { display: none; }
  :is(.theme-brand, .theme-contrast) .matrix-panel > .toolbar .range-filter-trigger { width: 32px; padding: 0; }
}
@media (max-width: 759px) {
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-main { gap: 8px; padding: 8px; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-columns.study-columns { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-right { height: auto; min-height: 0; gap: 8px; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-right > .details-card { flex: none; height: 560px; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-right > .details-card.is-folded { height: auto; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-right > .details-card:has(.combo-look) { height: auto; max-height: 560px; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-right > .details-card:has(.combo-look) .hand-table { flex: 0 1 auto; }
  :is(.theme-brand, .theme-contrast) .study-page.study-page .study-right > :is(.actions-card, .strength-card) { flex: none; }
}
@media (max-width: 759px) {
  :is(.theme-brand, .theme-contrast) .solutions-backdrop { padding: 0; }
  :is(.theme-brand, .theme-contrast) .solutions-backdrop .lv-quick { width: 100%; height: 100%; max-height: none; border: none; border-radius: 0; box-shadow: none; }
  :is(.theme-brand, .theme-contrast) .solutions-backdrop .lv-quick.lv-quick { background: linear-gradient(var(--surface-panel), var(--surface-panel)); }
  :is(.theme-brand, .theme-contrast) .lv-quick-summary:has(> .lv-picks) { height: auto; min-height: 40px; flex-wrap: wrap; gap: 8px 4px; padding-block: 8px; }
  :is(.theme-brand, .theme-contrast) .lv-quick-summary > .lv-picks { flex: 1 0 100%; flex-wrap: wrap; }
  :is(.theme-brand, .theme-contrast) .lv-quick-summary > .lv-picks ~ .ds-button.is-link { margin-left: auto; }
  :is(.theme-brand, .theme-contrast) .solutions-head.solutions-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 0 8px 0 16px; }
  :is(.theme-brand, .theme-contrast) .solutions-title h2 { display: none; }
  :is(.theme-brand, .theme-contrast) .solutions-tabs { justify-self: center; }
  :is(.theme-brand, .theme-contrast) .solutions-tabs > .ds-segment { min-width: 0; padding: 0 8px; line-height: 16px; text-align: center; white-space: normal; }
  :is(.theme-brand, .theme-contrast) .lv-quick-body.lv-quick-body { display: block; overflow: auto; }
  :is(.theme-brand, .theme-contrast) .lv-quick-steps { overflow: visible; border-right: none; border-bottom: 1px solid var(--line); padding: 12px 16px 16px; }
  :is(.theme-brand, .theme-contrast) .lv-quick-results { min-height: 0; }
  :is(.theme-brand, .theme-contrast) .lv-quick-list { overflow: visible; }
  :is(.theme-brand, .theme-contrast) :is(.lv-quick-head, .lv-quick-row).lv-quick-row,
  :is(.theme-brand, .theme-contrast) .lv-quick-head { grid-template-columns: 52px minmax(0, 1fr) 36px minmax(0, 1fr) minmax(0, 1fr) 28px 12px; gap: 8px; padding-inline: 12px; }
  :is(.theme-brand, .theme-contrast) .lv-quick-head.lv-quick-head { white-space: normal; line-height: 12px; padding-inline: 20px; }
  :is(.theme-brand, .theme-contrast) .lv-quick-head.lv-quick-head { position: sticky; z-index: 2; top: 0; background: var(--surface-panel); }
  :is(.theme-brand, .theme-contrast) .lv-quick-list > .lv-group { top: 32px; }
  :is(.theme-brand, .theme-contrast) :is(.lv-custom-head, .lv-custom-row) { grid-template-columns: 56px auto minmax(0, 1fr) 16px; gap: 12px; }
  :is(.theme-brand, .theme-contrast) :is(.lv-custom-head, .lv-custom-row) > :is(:nth-child(4), :nth-child(5)) { display: none; }
}
@media (max-width: 759px) {
  :is(.theme-brand, .theme-contrast) .board-picker.board-picker { width: 100%; max-width: none; padding: 0 16px 16px; }
  :is(.theme-brand, .theme-contrast) .board-picker-head { position: sticky; z-index: 3; top: 0; margin-bottom: 0; background: inherit; padding: 16px 0 12px; }
  :is(.theme-brand, .theme-contrast) .board-picker-close { margin: -4px -4px 0 0; }
  :is(.theme-brand, .theme-contrast) .board-picker-board { flex-direction: column; align-items: stretch; gap: 12px; }
  :is(.theme-brand, .theme-contrast) .board-picker-slots { justify-content: center; }
  :is(.theme-brand, .theme-contrast) .board-picker-tools { gap: 8px; }
  :is(.theme-brand, .theme-contrast) .board-picker-tools > .ds-button { flex: 1 1 0; }
  :is(.theme-brand, .theme-contrast) .deck-row { grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
  :is(.theme-brand, .theme-contrast) .deck-card { width: auto; height: 40px; }
  :is(.theme-brand, .theme-contrast) .deck-card .playing-card--picker { --card-width: 100%; --card-height: 40px; }
  :is(.theme-brand, .theme-contrast) .board-picker-footer { margin: 16px -16px 0; padding: 16px 16px 0; }
  :is(.theme-brand, .theme-contrast) .board-picker-note { display: none; }
  :is(.theme-brand, .theme-contrast) .board-picker-footer > .modal-actions { flex: 1; }
  :is(.theme-brand, .theme-contrast) .board-picker-footer > .modal-actions > * { min-width: 0; flex: 1 1 0; }
  :is(.theme-brand, .theme-contrast) .board-picker-footer > .modal-actions > .board-picker-confirm { flex-grow: 2; }
}
@media (max-width: 759px) {
  :is(.theme-brand, .theme-contrast) .saved-spots.saved-spots { width: 100%; max-width: none; }
  :is(.theme-brand, .theme-contrast) .saved-row.saved-row { grid-template-columns: minmax(0, 1fr) auto 56px 72px; gap: 8px; padding: 0 12px; }
  :is(.theme-brand, .theme-contrast) .saved-row > :is(:nth-child(3), :nth-child(4), :nth-child(5)) { display: none; }
  :is(.theme-brand, .theme-contrast) .saved-current.saved-current { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 979px) {
  body:has(.practice-page) { min-width: 0; }
  .board-mark { transition-delay: 560ms; }
  .practice-page.practice-page {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
    overflow: visible;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .practice-page > .rail:not(.is-right) {
    position: fixed;
    z-index: 80;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(312px, 88vw);
    height: auto;
    background: var(--surface-page);
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 240ms ease, visibility 0s linear 240ms;
  }
  .practice-page.is-drawer-open > .rail:not(.is-right) { transform: none; visibility: visible; transition: transform 240ms ease; }
  .practice-drawer-shade { position: fixed; z-index: 79; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.56));  }
  html:has(.practice-page.is-drawer-open) { overflow: hidden; }
  .practice-page > .practice-main { flex: none; overflow: visible; }
  .practice-page .table-area { min-width: 0; }
  .practice-page .practice-body { flex: none; overflow: visible; }
  .practice-page > .rail.is-right {
    width: auto;
    height: auto;
    overflow: visible;
    border-top: 1px solid var(--line);
    border-left: none;
  }
}
@media (max-width: 639px) {
  .practice-page .table-area { min-width: 0; padding: 0 8px calc(72px + env(safe-area-inset-bottom)); gap: 4px; }
  .practice-page.is-phone > .practice-main { min-height: 100svh; }
  .practice-page.is-phone .practice-body { flex: 1 0 auto; }
  .practice-page.is-phone .table-area { justify-content: center; }
  .practice-page .strip { padding: 4px; }
  .practice-page .strip-viewport { margin: 0 -4px; }
  .practice-page .strip-track { padding: 0 4px; }
  .practice-page .strip-step { min-width: 88px; padding: 4px 8px 0; }
  .practice-page .strip-step-action { height: 32px; }
  .practice-page .table-stack {
    position: relative;
    display: block;
    width: min(100%, 440px, calc((100svh - 308px) * 0.8));
    min-width: 244px;
    aspect-ratio: 4 / 5;
    margin: 12px auto calc(36px - 13.75%);
  }
  .practice-page .felt {
    position: absolute;
    inset: 0;
    justify-content: center;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .practice-page .felt > .table-surface.table-surface {
    top: calc(7% - 5px);
    right: calc(12% - 5px);
    bottom: calc(11% - 5px);
    left: calc(12% - 5px);
    width: auto;
    height: auto;
    transform: none;
  }
  .practice-page .felt > .table-surface.table-surface:not(.is-table-modern) { border-radius: 9999px; }
  .practice-page .felt > .table-surface.is-table-modern { border-radius: 48px; }
  .practice-page .table-stack > .seat,
  .practice-page .felt > .seat.is-at-left,
  .practice-page .felt > .seat.is-at-right {
    position: absolute;
    margin: -32px 0 0 -32px;
  }
  .practice-page .table-stack > .seat-gap { display: none; }
  .practice-page .table-stack > .seat.is-top { top: 7%; left: 50%; }
  .practice-page .table-stack > .seat.is-bottom { top: 89%; left: 50%; }
  .practice-page .felt > .seat.is-at-left { left: 12%; }
  .practice-page .felt > .seat.is-at-right { left: 88%; }
  .practice-page .felt > .seat.is-top.is-at-left,
  .practice-page .felt > .seat.is-top.is-at-right { top: 33%; }
  .practice-page .felt > .seat.is-bottom.is-at-left,
  .practice-page .felt > .seat.is-bottom.is-at-right { top: 63%; }
  .practice-page .felt > .seat.is-on-left,
  .practice-page .felt > .seat.is-on-right {
    position: absolute;
    top: 16%;
    margin: -32px 0 0 -32px;
  }
  .practice-page .felt > .seat.is-on-left { left: 23%; }
  .practice-page .felt > .seat.is-on-right { left: 77%; }
  .practice-page .felt > .seat.is-mid.is-at-left { top: 48%; left: 12%; }
  .practice-page .felt > .seat.is-mid.is-at-right { top: 48%; left: 88%; }
  .practice-page .seat-action { padding: 4px 8px; font-size: 11px; }
  .practice-page .seat { --flash-from: -8px; }
  .practice-page .seat:not(.is-hero) .seat-cards { margin-left: 2px; }
  .practice-page .felt > .seat.is-at-right .seat-cards { right: 100%; left: auto; margin-right: 2px; margin-left: 0; }
  .practice-page .felt > .seat.is-on-left .seat-cards { right: 100%; left: auto; margin-right: 2px; margin-left: 0; }
  .practice-page .felt > .seat.is-on-left .seat-hand { right: 0; left: auto; }
  .practice-page .seat:not(.is-hero) .seat-card { --card-width: 22px; --card-height: 30px; --card-radius: 4px; }
  .practice-page .seat:not(.is-hero) .seat-card + .seat-card { margin-left: -5px; }
  .practice-page .seat:not(.is-hero) .seat-card.playing-card { --card-width: 35px; --card-height: 46px; --card-radius: inherit; }
  .practice-page .seat:not(.is-hero) .seat-card.playing-card + .seat-card.playing-card { margin-left: -6px; }
  .practice-page .seat-card.is-played { translate: 0 -4px; }
  .practice-page .seat-hand.is-up { animation-name: seat-hand-in, phone-seat-hand-up; }
  .practice-page .table-stack .seat .seat-dealer { top: calc(100% + 4px); right: auto; bottom: auto; left: 44px; width: 20px; height: 20px; font-size: 10px; }
  .practice-page .table-stack .felt > .seat.is-at-right .seat-dealer { left: 0; }
  .practice-page .table-stack .felt > .seat.is-on-left .seat-dealer { left: 0; }
  .practice-page .table-stack > .seat.is-top .seat-dealer { top: 50px; left: -26px; }
  .practice-page .table-stack > .seat.is-bottom .seat-dealer { top: -6px; left: -26px; }
  .practice-page .table-stack > .seat.is-top .seat-bet { top: 100%; left: 50%; margin-top: 8px; }
  .practice-page .table-stack > .seat.is-bottom .seat-bet { bottom: 100%; left: 50%; margin-bottom: 8px; }
  .practice-page .felt > .seat.is-at-left .seat-bet,
  .practice-page .felt > .seat.is-at-right .seat-bet { top: 50%; bottom: auto; margin: -12px 0 0; }
  .practice-page .felt > .seat.is-top:is(.is-at-left, .is-at-right) .seat-bet { margin-top: -28px; }
  .practice-page .felt > .seat.is-bottom:is(.is-at-left, .is-at-right) .seat-bet { margin-top: 4px; }
  .practice-page .felt > .seat.is-at-left .seat-bet { left: calc(50% + 100px); }
  .practice-page .felt > .seat.is-at-right .seat-bet { left: calc(50% - 100px); }
  .practice-page .felt > .seat.is-mid.is-at-left .seat-bet,
  .practice-page .felt > .seat.is-mid.is-at-right .seat-bet { margin-top: 46px; }
  .practice-page .felt > .seat.is-mid.is-at-left .seat-bet { left: calc(50% + 84px); }
  .practice-page .felt > .seat.is-mid.is-at-right .seat-bet { left: calc(50% - 116px); }
  .practice-page .felt > .seat.is-on-left .seat-bet,
  .practice-page .felt > .seat.is-on-right .seat-bet { top: 100%; bottom: auto; margin: -8px 0 0; }
  .practice-page .felt > .seat.is-on-left .seat-bet { left: calc(50% + 48px); }
  .practice-page .felt > .seat.is-on-right .seat-bet { left: calc(50% - 48px); }
  .practice-page .seat-bet-chips { width: 22px; }
  .practice-page .seat-bet-amount { padding: 2px 6px; font-size: 11px; }
  .practice-page .table-stack > .seat.is-top .seat-bet.is-sweeping { animation: phone-sweep-top 460ms cubic-bezier(0.5, 0, 0.3, 1) both, seat-bet-gone 460ms ease-in both; }
  .practice-page .table-stack > .seat.is-bottom .seat-bet.is-sweeping { animation: phone-sweep-hero 460ms cubic-bezier(0.5, 0, 0.3, 1) both, seat-bet-gone 460ms ease-in both; }
  .practice-page .felt > .seat.is-top.is-at-left .seat-bet.is-sweeping { animation: phone-sweep-upper-left 460ms cubic-bezier(0.5, 0, 0.3, 1) both, seat-bet-gone 460ms ease-in both; }
  .practice-page .felt > .seat.is-bottom.is-at-left .seat-bet.is-sweeping { animation: phone-sweep-lower-left 460ms cubic-bezier(0.5, 0, 0.3, 1) both, seat-bet-gone 460ms ease-in both; }
  .practice-page .felt > .seat.is-top.is-at-right .seat-bet.is-sweeping { animation: phone-sweep-upper-right 460ms cubic-bezier(0.5, 0, 0.3, 1) both, seat-bet-gone 460ms ease-in both; }
  .practice-page .felt > .seat.is-bottom.is-at-right .seat-bet.is-sweeping { animation: phone-sweep-lower-right 460ms cubic-bezier(0.5, 0, 0.3, 1) both, seat-bet-gone 460ms ease-in both; }
  .practice-page .felt > .seat.is-top.is-on-left .seat-bet.is-sweeping { animation: phone-sweep-on-left 460ms cubic-bezier(0.5, 0, 0.3, 1) both, seat-bet-gone 460ms ease-in both; }
  .practice-page .felt > .seat.is-top.is-on-right .seat-bet.is-sweeping { animation: phone-sweep-on-right 460ms cubic-bezier(0.5, 0, 0.3, 1) both, seat-bet-gone 460ms ease-in both; }
  .practice-page .felt > .seat.is-mid.is-at-left .seat-bet.is-sweeping { animation: phone-sweep-mid-left 460ms cubic-bezier(0.5, 0, 0.3, 1) both, seat-bet-gone 460ms ease-in both; }
  .practice-page .felt > .seat.is-mid.is-at-right .seat-bet.is-sweeping { animation: phone-sweep-mid-right 460ms cubic-bezier(0.5, 0, 0.3, 1) both, seat-bet-gone 460ms ease-in both; }
  .practice-page .pot { min-height: 22px; padding: 2px 8px; font-size: 12px; line-height: 16px; }
  .practice-page .pot { transform: translateY(98px); }
  .practice-page .board { min-height: 50px; margin-top: 8px; transform: translateY(6px); }
  .practice-page .board-card { --card-width: 38px; --card-height: 50px; }
  .practice-page .pot-chips { height: 60px; margin-top: 4px; }
  .practice-page .pot-pile { bottom: -15px; margin-right: 4px; }
  .practice-page .table-message-slot { min-height: 24px; margin-top: 4px; }
  .practice-page .table-message { max-width: 220px; padding: 4px 8px; font-size: 12px; text-align: center; }
  .practice-page .table-verdict { top: calc(100% + 8px); width: max-content; max-width: 260px; flex-wrap: wrap; justify-content: center;
    gap: 0 8px; border-radius: 16px; padding: 4px 12px; font-size: 12px; white-space: normal; }
  .practice-page .table-verdict-more { flex-wrap: wrap; justify-content: center; gap: 0 8px; margin-left: 0; border-left: 0; padding-left: 0; font-size: 12px; }
  .practice-page .table-verdict-best b { line-height: 16px; }
  .practice-page .action-button-key { display: none; }
  .practice-page .rail-table-count { display: none; }
  .practice-page .strip-arrow { display: none; }
  .practice-page .action-bar { max-width: none; min-height: 56px; gap: 4px; }
  .practice-page .hand-verdict { margin-top: 0; }
  .practice-page .action-skeleton { gap: 4px; }
  .practice-page .action-skeleton-pill.ds-skeleton { max-width: none; height: 52px; }
  .practice-page .action-button.ds-action-button { height: 52px; padding: 0 4px; font-size: 15px; white-space: nowrap; }
  .practice-page .action-button.is-move { max-width: none; }
  .practice-page .action-button.is-next,
  .practice-page .action-button.is-continue { flex: 1 1 auto; }
  .practice-page .action-bar.is-verdict,
  .practice-page .action-bar.is-review { min-width: 0; gap: 0; }
  .practice-page .move-options { flex-wrap: wrap; gap: 4px; }
  .practice-page .move-option { flex: 1 1 140px; padding: 0 8px; }
  .practice-page .move-review-foot .review-button { min-width: 0; padding: 0 8px; white-space: nowrap; }
  .practice-page .review-arrow { width: 28px; height: 64px; }
  .practice-page .hand-verdict,
  .practice-page .move-review { min-width: 0; flex: 1; padding: 4px 4px 8px; }
  .practice-page .action-bar.is-verdict .review-arrow { display: none; }
  .practice-page .action-bar.is-verdict .hand-verdict { max-width: none; padding: 8px 4px; }
  .practice-page .hand-verdict-top { gap: 12px; }
  .practice-page .hand-fact { flex: 1 1 auto; }
  .practice-page .hand-fact.is-mid,
  .practice-page .hand-fact.is-end { flex: none; text-align: right; }
  .practice-page .hand-fact-label { overflow: hidden; letter-spacing: 0.04em; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
  .practice-page .hand-fact-value { font-size: 14px; line-height: 20px; }
  .practice-page .hand-streets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 8px; border-top: none; padding: 0 0 8px; }
  .practice-page .hand-street { min-width: 0; gap: 4px; padding: 4px 2px; font-size: 10px; letter-spacing: 0; }
  .practice-page .hand-verdict-actions .action-button { min-width: 0; flex: 1 1 0; height: 48px; padding: 0 8px; white-space: nowrap; }
  .practice-page .action-key { display: none; }
}
@media (max-width: 639px) {
  .practice-page .table-stack:is(.is-seats-7, .is-seats-8, .is-seats-9) { container-type: inline-size; }
}
@container (max-width: 341px) {
  .practice-page .table-stack.is-seats-9 > .seat,
  .practice-page .table-stack.is-seats-9 .felt > .seat { margin: -26px 0 0 -26px; }
  .practice-page .table-stack.is-seats-9 .seat-avatar { width: 52px; height: 52px; }
  .practice-page .table-stack.is-seats-9 .seat-avatar-text { gap: 6px; }
  .practice-page .table-stack.is-seats-9 .seat-name { font-size: 14px; }
  .practice-page .table-stack.is-seats-9 .seat-stack { font-size: 12px; }
}
@container (max-width: 277px) {
  .practice-page .table-stack.is-seats-9 > .seat,
  .practice-page .table-stack.is-seats-9 .felt > .seat { margin: -22px 0 0 -22px; }
  .practice-page .table-stack.is-seats-9 .seat-avatar { width: 44px; height: 44px; }
  .practice-page .table-stack.is-seats-9 .seat-avatar-text { gap: 4px; }
  .practice-page .table-stack.is-seats-9 .seat-name { font-size: 12px; }
  .practice-page .table-stack.is-seats-9 .seat-stack { font-size: 11px; }
}
@container (max-width: 267px) {
  .practice-page .table-stack:is(.is-seats-7, .is-seats-8) > .seat,
  .practice-page .table-stack:is(.is-seats-7, .is-seats-8) .felt > .seat { margin: -26px 0 0 -26px; }
  .practice-page .table-stack:is(.is-seats-7, .is-seats-8) .seat-avatar { width: 52px; height: 52px; }
  .practice-page .table-stack:is(.is-seats-7, .is-seats-8) .seat-avatar-text { gap: 6px; }
  .practice-page .table-stack:is(.is-seats-7, .is-seats-8) .seat-name { font-size: 14px; }
  .practice-page .table-stack:is(.is-seats-7, .is-seats-8) .seat-stack { font-size: 12px; }
}
@keyframes phone-seat-hand-up {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}
@keyframes phone-sweep-top {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-48px, 178px) scale(0.7); }
}
@keyframes phone-sweep-hero {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-48px, -102px) scale(0.7); }
}
@keyframes phone-sweep-upper-left {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-6px, 124px) scale(0.7); }
}
@keyframes phone-sweep-lower-left {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-6px, -48px) scale(0.7); }
}
@keyframes phone-sweep-upper-right {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-90px, 124px) scale(0.7); }
}
@keyframes phone-sweep-lower-right {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-90px, -48px) scale(0.7); }
}
@keyframes phone-sweep-on-left {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(5px, 150px) scale(0.7); }
}
@keyframes phone-sweep-on-right {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-101px, 150px) scale(0.7); }
}
@keyframes phone-sweep-mid-left {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(10px, -12px) scale(0.7); }
}
@keyframes phone-sweep-mid-right {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to { transform: translateX(-50%) translate(-74px, -12px) scale(0.7); }
}

:root { --phone-foot: max(0px, env(safe-area-inset-bottom) - 18px);  }
.phone-tabs {
  position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; display: flex; height: calc(56px + var(--phone-foot));
  border-top: 1px solid var(--line); background: var(--surface-page); padding: 0 0 var(--phone-foot);
}
.phone-tab {
  position: relative; display: flex; min-width: 0; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: none; background: none; padding: 0; color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.phone-tab > svg { flex: none; }
.phone-tab-burger { display: flex; width: 20px; height: 20px; flex: none; flex-direction: column; justify-content: center; gap: 4px; }
.phone-tab-burger > i { display: block; width: 16px; height: 2px; margin: 0 auto; border-radius: 999px; background: currentColor; }
.phone-tab > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-tab.is-selected { color: var(--accent-orange); }
.phone-tabs:has(> .phone-tab:nth-child(6)) .phone-tab { font-size: 11px;  }
.phone-sheet {
  position: fixed; z-index: 50; right: 0; bottom: calc(56px + var(--phone-foot)); left: 0; display: flex; height: 52dvh;
  flex-direction: column; overflow: hidden; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; background: var(--surface-page);
  transform: translateY(calc(100% + 32px)); visibility: hidden;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 240ms;
}
.phone-sheet.is-up { transform: none; visibility: visible; transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
.phone-sheet { max-height: calc(100dvh - 56px - var(--phone-foot)); }
.phone-sheet.is-tall { top: 0; height: auto; border-top: none; border-radius: 0; }
.phone-sheet.is-tall.is-riding { border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.phone-sheet-shade { z-index: 39; pointer-events: none; box-shadow: 0 -16px 32px rgba(0, 0, 0, 0.4); }
.phone-sheet-head { display: flex; height: 40px; flex: none; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 4px 0 16px; }
.phone-sheet-head > b { flex: none; margin-right: 8px; color: var(--text-strong); font-size: 12px; font-weight: var(--bold); line-height: 16px; }
.phone-sheet-about { min-width: 0; flex: 1; overflow: hidden; color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.phone-sheet > .phone-sheet-body.phone-sheet-body.phone-sheet-body.phone-sheet-body.phone-sheet-body {
  position: static; display: flex; width: auto; height: auto; min-height: 0; flex: 1 1 0; flex-direction: column; gap: 0; overflow-x: hidden;
  overflow-y: auto; border: none; background: none; box-shadow: none; padding: 0; transform: none; visibility: visible;
  animation: phone-panel-fade 100ms linear both, phone-panel-rise 140ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.phone-sheet > .phone-sheet-body.phone-sheet-body.phone-sheet-body.phone-sheet-body.phone-sheet-body.phone-sheet-peek {
  position: absolute; right: 0; bottom: 0; left: 0; animation: none; pointer-events: none;
}
.phone-sheet > .phone-sheet-body.phone-sheet-body.phone-sheet-body.phone-sheet-body.phone-sheet-body.is-swiped { animation: none; }
@keyframes phone-panel-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes phone-panel-rise { from { transform: translateY(4px); } to { transform: none; } }
.phone-sheet .phone-sheet-body .ds-card.ds-card.ds-card { border: none; border-radius: 0; background: none; box-shadow: none; }
.phone-sheet .phone-sheet-body .panel-fold { display: none; }
.phone-sheet .phone-sheet-body .details-head { display: none; }
.phone-sheet .phone-sheet-body .actions-card > .panel-head > .panel-head-side { display: none; }
.phone-sheet > .phone-sheet-body.phone-sheet-body.phone-sheet-body.phone-sheet-body.phone-sheet-body > .details-card.details-card {
  height: auto; max-height: none; min-height: 0; flex: 1 1 auto; padding: 0;
}
.phone-sheet .phone-sheet-body .details-tabs-body.details-tabs-body { margin-bottom: 0; padding-bottom: 0; }
.phone-sheet .phone-sheet-body :is(.summary-panel, .strength-panel.is-bare) { padding-top: 12px; }
.phone-sheet .phone-sheet-body .combo-look.combo-look { padding-top: 4px; }
.phone-sheet .combo-look-title.combo-look-title { flex-wrap: wrap; gap: 12px 8px; margin: 0 16px 12px; }
.phone-sheet .combo-look-title.combo-look-title small { white-space: nowrap; }
.phone-sheet .combo-look-stats.combo-look-stats { display: grid; flex: 1 0 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.phone-sheet .combo-look-stats.combo-look-stats > div { flex-direction: column; align-items: flex-start; gap: 0; border-radius: 8px; background: var(--surface-panel); padding: 4px 8px; }
.phone-sheet .combo-look-stats.combo-look-stats dt { font-size: 12px; line-height: 16px; }
.phone-sheet .combo-look-stats.combo-look-stats dd { font-size: 16px; line-height: 24px; }
.phone-sheet .combo-look .combo-look-path { margin-right: 16px; margin-left: 16px; }
.phone-sheet .combo-look .hand-table { padding-right: 16px; padding-left: 16px; }
.phone-sheet .hand-table-head.hand-table-head { background: var(--surface-page); }
.phone-sheet .summary-find.summary-find { margin-right: 16px; margin-left: 16px; }
.phone-sheet .summary-find.summary-find { position: relative; z-index: 2; }
.phone-sheet .summary-find.summary-find::after { content: ""; pointer-events: none; position: absolute; top: 100%; right: -16px; left: -16px; height: 8px; background: var(--surface-page); }
.phone-sheet .summary-scroll.summary-scroll { padding: 0 0 12px; }
.phone-sheet .summary-table.summary-table th:first-child { width: 108px; }
.phone-sheet .summary-table.summary-table :is(th, td):first-child { padding-left: 16px; }
.phone-sheet .summary-table.summary-table :is(th, td):last-child { padding-right: 16px; }
.phone-sheet .phone-sheet-body .strength-panel.is-bare { padding-right: 16px; padding-left: 16px; }
.phone-sheet .blockers-scroll.blockers-scroll { padding: 0 0 12px; }
.phone-sheet .blockers-scroll > :first-child { margin-top: 12px; }
.phone-sheet .blockers-top.blockers-top { margin-right: 16px; margin-left: 16px; }
.phone-sheet .blockers-table.blockers-table thead th { height: 40px; padding: 0; background: var(--surface-page); font-weight: 600; }
.phone-sheet .blockers-table.blockers-table thead th:first-child { z-index: 2; width: 56px; padding-left: 4px; text-align: center; }
.phone-sheet .blockers-table.blockers-table tbody th { padding-left: 4px; }
.phone-sheet .blockers-table.blockers-table :is(th, td):last-child { padding-right: 4px; }
.phone-sheet .blockers-table .blocker-sort-button.blocker-sort-button {
  width: 100%; align-items: center; justify-content: center; gap: 4px; font-size: 12px; line-height: 16px; letter-spacing: 0; text-transform: capitalize;
}
.phone-sheet .blockers-table thead .blocker-dot { position: absolute; top: 4px; right: 8px; left: 8px; width: auto; height: 4px; border-radius: 999px; }
.phone-sheet .blockers-table.blockers-table .blocker-head-text { display: block; min-height: 0; overflow: hidden; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.phone-sheet .blockers-table.blockers-table :is(.blocker-head-word, .blocker-head-size) { display: inline; overflow: visible; color: inherit; }
.phone-sheet .blockers-table thead th:first-child .blocker-sort-button.blocker-sort-button { position: relative; width: auto; }
.phone-sheet .blockers-table thead th:first-child .blocker-sort-icon { position: absolute; top: 50%; left: 100%; margin-left: 4px; transform: translateY(-50%); }
.phone-sheet .strength-card > .panel-head.panel-head.panel-head { display: flex; justify-content: center; }
.phone-sheet .strength-card > .panel-head > .panel-head-main { display: none; }
.phone-sheet .strength-card > .panel-head.panel-head.panel-head:not(:has(> .panel-head-side)) { display: none; }
.phone-sheet .phone-sheet-body .strength-card > .panel-head:not(:has(> .panel-head-side)) + .ds-card-body.ds-card-body.ds-card-body { padding-top: 12px; }
.phone-sheet .strength-card > .panel-head > .panel-head-side.panel-head-side { flex: none; margin: 0; }
:is(.theme-brand, .theme-contrast) .study-page.study-page.has-phone-tabs .study-main { padding-bottom: calc(64px + var(--phone-foot)); }
:is(.theme-brand, .theme-contrast) .study-page.study-page.has-phone-tabs:has(> .phone-sheet.is-up) .study-main { padding-bottom: calc(64px + 52dvh + var(--phone-foot)); }
.practice-page.is-phone .table-area.table-area { padding-bottom: calc(80px + var(--phone-dock, 56px) + var(--phone-foot)); }
.practice-page.is-phone .action-bar.action-bar {
  position: fixed; z-index: 61; right: 8px; bottom: calc(64px + var(--phone-foot)); left: 8px; width: auto; margin: 0 auto;
}
.practice-page.is-phone > .phone-tabs::before {
  content: ""; position: absolute; top: calc(-16px - var(--phone-dock, 56px)); right: 0; bottom: 0; left: 0; border-top: 1px solid var(--line);
  background: var(--surface-page);
}
.practice-page.is-phone .table-verdict.table-verdict { top: auto; bottom: calc(100% + 16px); }
.practice-page.is-phone > .phone-sheet { bottom: calc(72px + var(--phone-dock, 56px) + var(--phone-foot)); max-height: calc(100dvh - 72px - var(--phone-dock, 56px) - var(--phone-foot)); }
.practice-page.is-phone > .phone-sheet > .phone-sheet-head { height: 48px; padding-left: 12px; }
.practice-page.is-phone > .phone-sheet > .phone-sheet-head > b { display: none; }
.practice-page.is-phone > .phone-sheet .phone-sheet-about { overflow: visible; }
.practice-page.is-phone > .phone-sheet .phone-sheet-about > .info-head { height: 40px; margin: 0; border: none; padding: 0; }
:root:has(.phone-tabs) .modal-backdrop { z-index: 70; }

@media (max-width: 979px) {
  body:has(.progress-shell) { min-width: 0; }
  .progress-shell { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
}
@media (max-width: 760px) {
  .progress-shell > .progress-rail { padding: 12px 16px; }
  .prog-page { padding: 16px 12px 32px; }
  .prog-filters { gap: 12px; }
  .prog-filters-head { justify-content: flex-start; }
  .prog-filters-fold.ds-button { display: inline-grid; order: 3; margin-left: auto; }
  .prog-filters-fold svg { transition: transform 160ms ease; }
  .prog-filters-fold.is-open svg { transform: rotate(180deg); }
  .prog-filters .lv-quick-options:is(.is-cols-3, .is-cols-5, .is-cols-6, .is-cols-7) { display: flex; flex-wrap: wrap; }
  .prog-filters .lv-quick-options:is(.is-cols-3, .is-cols-5, .is-cols-6, .is-cols-7) > * { flex: 1 0 auto; }
  .prog-filters .lv-quick-options:is(.is-cols-3, .is-cols-5, .is-cols-6, .is-cols-7) .lv-chip.lv-chip { width: auto; padding: 0 4px; }
  .prog-filters .prog-look-grade { grid-template-columns: minmax(0, 1fr) 56px 56px 48px; }
  .prog-filters .prog-look-grade > .prog-x-kind { white-space: nowrap; }
  .prog-filters:not(.is-open) > :not(.prog-filters-head) { display: none; }
  .prog-layout-top .prog-x-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog-layout-top .prog-x-figure { padding: 12px; }
  .prog-layout-top .prog-x-figure:nth-child(n) { box-shadow: none; }
  .prog-layout-top .prog-x-figure:nth-child(even) { box-shadow: inset 1px 0 0 var(--line); }
  .prog-layout-top .prog-x-figure:nth-child(n+3) { box-shadow: inset 0 1px 0 var(--line); }
  .prog-layout-top .prog-x-figure:nth-child(n+3):nth-child(even) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .prog-layout-top .prog-x-chart .ds-card-head { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 8px; }
  .prog-layout-pot-sub { white-space: normal; }
  .prog-layout-pots { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 12px 12px; }
  .prog-ht-filterbar { padding: 0 12px 12px; }
  .prog-ht-bar { flex-wrap: wrap; gap: 4px 12px; padding: 8px 12px; }
  .prog-ht-more.ds-menu { width: min(360px, calc(100vw - 48px)); }
  .prog-ht, .prog-ht.is-spot { display: block; }
  .prog-ht :is(thead, tbody) { display: block; }
  .prog-ht thead { position: sticky; z-index: 20; top: 0; background: var(--surface-panel); box-shadow: inset 0 -1px 0 var(--line); }
  .prog-ht thead tr { display: flex; height: 40px; align-items: center; gap: 12px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
  .prog-ht thead tr::-webkit-scrollbar { display: none; }
  .prog-ht-box .prog-ht.prog-ht thead th { position: static; width: auto; height: auto; flex: none; box-shadow: none; padding: 0; background: none; }
  .prog-ht-box .prog-ht thead :is(.is-star, .is-game, .is-stack, .is-pot, .is-seat, .is-cards, .is-board, .is-line, .is-go) { display: none; }
  .prog-ht tbody tr { display: grid; grid-template: "pick date seat result ev" auto "star cards board board loss" auto ". line line line go" auto / 24px 64px 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; box-shadow: inset 0 -1px 0 var(--line); padding: 12px; }
  .prog-ht.prog-ht tbody tr > td { width: auto; height: auto; box-shadow: none; padding: 0; }
  .prog-ht tbody tr:hover > td, .prog-ht tbody tr.is-picked > td { background: none; }
  .prog-ht tbody tr.is-picked { background: color-mix(in srgb, var(--pick) 10%, transparent); }
  .prog-ht tbody tr > :is(.is-game, .is-stack, .is-pot, .is-acc) { display: none; }
  .prog-ht tbody tr > .is-pick { grid-area: pick; }
  .prog-ht tbody tr > .is-star { grid-area: star; text-align: left; }
  .prog-ht tbody tr > .is-star .prog-ht-star { margin: 0 -4px; }
  .prog-ht tbody tr > .is-date { grid-area: date; }
  .prog-ht tbody tr > .is-seat { grid-area: seat; }
  .prog-ht tbody tr > .is-result { grid-area: result; text-align: left; }
  .prog-ht tbody tr > .is-ev { grid-area: ev; font-size: 16px; font-weight: 600; line-height: 24px; }
  .prog-ht tbody tr > .is-cards { grid-area: cards; }
  .prog-ht tbody tr > td.is-board { grid-area: board; padding: 0; }
  .prog-ht tbody tr > .is-loss { grid-area: loss; color: var(--text-strong); }
  .prog-ht tbody tr > .is-loss::before { content: attr(data-label); display: block; color: var(--text-muted); }
  .prog-ht tbody tr > .is-line { grid-area: line; }
  .prog-ht-line.saved-line { grid-template-columns: 72px repeat(3, minmax(40px, 1fr)); }
  .prog-ht tbody tr > td.is-go.is-open-cell { grid-area: go; align-self: end; padding: 0; }
  .prog-ht .prog-ht-go-word, .prog-ht.is-spot .prog-ht-go-word { display: none; }
  .prog-ht.is-spot tbody tr { grid-template: "date seat result ev" auto "cards board board loss" auto "line line line go" auto / 64px 40px minmax(0, 1fr) auto; padding: 12px; }
  .prog-x-spot-hands { padding: 4px 0; }
  .prog-look .prog-x-row { grid-template-columns: 72px minmax(0, 1fr) 72px; gap: 4px 12px; padding: 8px 12px; }
  .prog-look .prog-x-row > :first-child { grid-column: 1 / -1; min-height: 24px; }
  .prog-look .prog-x-row > :is(:nth-child(4), :nth-child(6), :nth-child(7), :nth-child(8), :nth-child(9)) { display: none; }
  .prog-look .prog-x-row > .is-num:nth-child(2) { text-align: left; }
  .prog-look .prog-x-row.is-head > :first-child { display: none; }
  .prog-look .prog-x-row.is-spot > .prog-x-name { padding-left: 0; }
  .prog-look .prog-x-row.is-section { min-height: 40px; }
  .prog-look .prog-x-row.is-section > :nth-child(n+2) { display: none; }
  .prog-x-spots > .prog-x-more { padding-left: 12px; }
}

:root.theme-light {
  color-scheme: light;
  --ink: 0 0 0;
  --surface-page: #fafafa;
  --surface-panel: #ffffff;
  --surface-rail: #ececec;
  --surface-sunken: #f3f3f3;
  --surface-raised: #ffffff;
  --surface-hover: #f0f0f0;
  --surface-active: #e6e6e6;
  --skeleton-sheen: rgba(255, 255, 255, 0.7);
  --text-strong: rgba(0, 0, 0, 0.9);
  --text-normal: rgba(0, 0, 0, 0.9);
  --text-soft: rgba(0, 0, 0, 0.6);
  --text-dim: rgba(0, 0, 0, 0.6);
  --text-muted: rgba(0, 0, 0, 0.47);
  --theme-placeholder: #878787;
  --line: #e0e0e0;
  --line-strong: rgba(0, 0, 0, 0.2);
  --line-stronger: rgba(0, 0, 0, 0.4);
  --theme-pick: #191919;
  --pick: #191919;
  --matrix-lit: #191919;
  --focus-ink: rgba(0, 0, 0, 0.9);
  --theme-label-ink: rgba(0, 0, 0, 0.86);
  --theme-on-paint: rgba(0, 0, 0, 0.86);
  --accent-orange: #e8692d;
  --remove-ink: #a42528;
  --accent-orange-deep: #d0561e;
  --theme-cell-line: #ffffff;
  --theme-cell: #f0f0f0;
  --theme-card: #ffffff;
  --theme-rail: #fafafa;
  --theme-grid: transparent;
  --theme-chip: color-mix(in srgb, #ffffff 78%, transparent);
  --theme-card-line: var(--line);
  --theme-pick-action: color-mix(in srgb, #191919 8%, transparent);
  --theme-pick-action-ink: rgba(0, 0, 0, 0.9);
  --theme-tab-on: #ffffff;
  --theme-tab-on-ink: rgba(0, 0, 0, 0.9);
  --suit-ink-s: #3d3d3d;
  --suit-ink-h: #d03b3b;
  --suit-ink-d: #2a6acc;
  --suit-ink-c: #1f8139;
  --blocker-neutral: #f0f0f0;
  --theme-card-back: linear-gradient(160deg, #f3f3f3 0%, #dadada 100%);
  --neural-text: #1757ac;
  --ai-accent: #5437b8;
  --grade-good: #1f9a3a;
  --grade-warn: #b7791f;
  --grade-bad: #dc3c3d;
  --chart-grid: #e6e6e6;
  --background: #fafafa;
  --foreground: rgba(0, 0, 0, 0.9);
  --card: #ffffff;
  --card-foreground: rgba(0, 0, 0, 0.9);
  --popover: #ffffff;
  --popover-foreground: rgba(0, 0, 0, 0.9);
  --secondary: #f0f0f0;
  --secondary-foreground: rgba(0, 0, 0, 0.75);
  --muted: #f3f3f3;
  --muted-foreground: rgba(0, 0, 0, 0.47);
  --accent: #ececec;
  --accent-foreground: rgba(0, 0, 0, 0.9);
  --input: rgba(0, 0, 0, 0.12);
}
:root.theme-contrast.theme-light {
  --theme-pick: #0b0b0b;
  --pick: #0b0b0b;
  --theme-grid: #ffffff;
  --theme-pick-action: #191919;
  --theme-pick-action-ink: #ffffff;
  --theme-tab-on: #191919;
  --theme-tab-on-ink: #ffffff;
}
.theme-light :is(.landing-page, .site-header) {
  --surface-page: #fafafa;
  --surface-panel: #ffffff;
  --surface-rail: #ececec;
  --surface-sunken: #f3f3f3;
  --surface-raised: #ffffff;
  --surface-hover: #f0f0f0;
  --surface-active: #e6e6e6;
  --text-strong: rgba(0, 0, 0, 0.9);
  --text-normal: rgba(0, 0, 0, 0.9);
  --text-soft: rgba(0, 0, 0, 0.6);
  --text-dim: rgba(0, 0, 0, 0.6);
  --text-muted: rgba(0, 0, 0, 0.47);
  --theme-placeholder: #878787;
  --line: #e0e0e0;
  --line-strong: rgba(0, 0, 0, 0.2);
  --line-stronger: rgba(0, 0, 0, 0.4);
  --theme-pick: #191919;
  --pick: #191919;
  --matrix-lit: #191919;
  --theme-label-ink: rgba(0, 0, 0, 0.86);
  --theme-on-paint: rgba(0, 0, 0, 0.86);
  --theme-cell-line: #ffffff;
  --theme-cell: #f0f0f0;
  --theme-card: #ffffff;
  --theme-rail: #fafafa;
  --theme-chip: color-mix(in srgb, #ffffff 78%, transparent);
  --theme-card-line: var(--line);
  --theme-pick-action: color-mix(in srgb, #191919 8%, transparent);
  --theme-pick-action-ink: rgba(0, 0, 0, 0.9);
  --theme-tab-on: #ffffff;
  --theme-tab-on-ink: rgba(0, 0, 0, 0.9);
  --suit-ink-s: #3d3d3d;
  --suit-ink-h: #d03b3b;
  --suit-ink-d: #2a6acc;
  --suit-ink-c: #1f8139;
  --blocker-neutral: #f0f0f0;
  --theme-card-back: linear-gradient(160deg, #f3f3f3 0%, #dadada 100%);
}
.theme-light .brand-logo-mark { background: url("/assets/maxgto-mark-light-CRdnV4mz.webp") center / contain no-repeat; object-position: -9999px 0; }
.theme-light .brand-logo-word { background: url("/assets/maxgto-word-light-oWpT93cj.svg") center / contain no-repeat; object-position: -9999px 0; }
.theme-light :is(.matrix-panel, .study-right > .ds-card, .node-card, .node-card-pending, .ranges-equity-chart) { box-shadow: 0 0 0 1px var(--theme-card-line); }
.theme-light .node-card.is-focused { box-shadow: none; }
.theme-light :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell .matrix-cell-label.matrix-cell-label,
.theme-light :is(.matrix-cell-label, .matrix-cell-metric, .blocker-value, .ds-cell em, .hand-table-cell > :is(b, small)),
.theme-light :is(.ds-bar > :not(.ds-bar-ground, .ds-bar-paint), .ds-action-card > :not(.ds-action-card-paint)),
.theme-light .action-cards.is-calm .action-card > :not(.action-card-paint, .action-card-ground),
.theme-light .practice-info .matrix-cell-label { text-shadow: none; }
.theme-light .matrix-cell.is-band-high .matrix-cell-label,
.theme-light :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell.is-band-high .matrix-cell-label.matrix-cell-label,
.theme-light .matrix-cell.has-reach:not(.is-faint, .is-band-low) .matrix-cell-metric,
.theme-light :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell.has-reach:not(.is-faint, .is-band-low) .matrix-cell-metric {
  color: #f4f5f7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.theme-light .matrix { background: var(--theme-cell-line); }
.theme-light .ranges-chart-area { opacity: 0.045; }
.theme-light .matrix.is-summary-preview .matrix-cell:not(.is-summary-focus) { filter: opacity(0.28); }
.theme-light .matrix.is-summary-preview .matrix-cell.is-summary-focus { filter: opacity(1); }
.theme-light .matrix-cell.has-reach:is(:hover, :focus-visible, .is-selected, .is-lifted) { filter: none; outline-color: rgba(255, 255, 255, 0.9); }
.theme-light :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-cell::after { box-shadow: inset 0 0 0 var(--theme-ring) #ffffff; }
.theme-light :is(.study-columns:not(.is-ranges) > .matrix-panel, .custom-compare-slot, .ranges-player, .practice-info) .matrix-glow { box-shadow: 0 6px 18px 2px rgba(0, 0, 0, 0.18); }
.theme-light :is(.ds-menu, .ds-tooltip, .ds-toast, .line-menu, .line-exact-pop, .matrix-hand-drawer,
  .matrix-loader-panel, .compare-float, .tour-card, .hover-hint, .custom-lock-scope-menu,
  .saved-current) {
  --surface-panel: #ffffff;
  --theme-card: #ffffff;
  --surface-sunken: #ffffff;
  --surface-rail: #f3f3f3;
  --theme-cell: #f3f3f3;
  --surface-raised: #f2f2f2;
  --surface-hover: #e6e6e6;
  --surface-active: #e6e6e6;
  --text-muted: rgba(0, 0, 0, 0.6);
  background: #ffffff;
}
.theme-light :is(.ds-menu, .ds-toast, .line-menu, .line-exact-pop, .custom-lock-scope-menu) {
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.theme-light :is(.matrix-hand-drawer, .matrix-loader-panel, .tour-card, .saved-current),
.theme-light .study-page.is-rail-collapsed .compare-float {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.theme-light .matrix-hand-drawer { background: var(--surface-panel); box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08); }
.theme-light :is(.ds-tooltip, .hover-hint),
.theme-light .study-page .study-rail [data-rail-label]::after {
  --ink: 255 255 255;
  --surface-panel: #0b0b0b;
  --surface-raised: #2c2c2c;
  --surface-hover: #383838;
  --text-strong: rgba(255, 255, 255, 0.93);
  --text-normal: rgba(255, 255, 255, 0.93);
  --text-soft: rgba(255, 255, 255, 0.57);
  --text-dim: rgba(255, 255, 255, 0.57);
  --text-muted: rgba(255, 255, 255, 0.57);
  --line: #3d3d3d;
  background: #0b0b0b;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.06), 0 2px 8px rgba(11, 11, 11, 0.08);
  color: rgba(255, 255, 255, 0.93);
}
.theme-light .ds-menu .ds-menu-item.is-danger { color: #a42528; }
.theme-light .ds-modal {
  --surface-sunken: #fafafa;
  --text-muted: rgba(0, 0, 0, 0.6);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.06), 0 2px 8px rgba(11, 11, 11, 0.08);
}
.theme-light .lv-group { background: #ffffff; }
.theme-light :is(.ds-menu, .ds-modal) :is(.ds-input, .saved-tags-editor) { background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 0 0 1px var(--line); }
.theme-light :is(.ds-menu, .ds-modal) .ds-button:not(.is-primary, .is-outline, .is-ghost, .is-danger, .is-danger-solid, .is-link) { background: rgba(0, 0, 0, 0.05); }
.theme-light :is(.ds-menu, .ds-modal) .ds-segmented { background: rgba(11, 11, 11, 0.05); }
.theme-light :is(.ds-menu, .ds-modal) :is(.ds-segment.is-selected, .ds-segment[data-state="active"], .ds-segmented-pill) {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(11, 11, 11, 0.05);
}
.theme-light :is(.ds-menu, .ds-modal) .ds-segmented.is-sliding :is(.ds-segment.is-selected, .ds-segment[data-state="active"]) { background: transparent; box-shadow: none; }
.theme-light :is(.ds-menu, .ds-modal) :is(.ds-chip.is-selected, .ds-list-item.is-selected) { background: rgba(0, 0, 0, 0.1); }
.theme-light :is(.ds-menu, .ds-modal) .ds-list-item.is-selected:hover { background: rgba(0, 0, 0, 0.14); }
.theme-light .ds-switch { background: rgba(11, 11, 11, 0.2); }
.theme-light .ds-switch.is-on { background: var(--accent-orange); }
.theme-light .ds-switch::after { box-shadow: 0 1px 2px rgba(11, 11, 11, 0.06), 0 2px 8px rgba(11, 11, 11, 0.12); }
.theme-light .layout-menu {
  --surface-panel: #ffffff;
  --theme-card: #ffffff;
  --surface-sunken: #fafafa;
  --surface-rail: #ececec;
  --theme-cell: #f0f0f0;
  --surface-raised: #ffffff;
  --surface-hover: #f0f0f0;
  --surface-active: #e6e6e6;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.theme-light .settings-card .layout-picker {
  --surface-sunken: #fafafa;
  --surface-hover: #f0f0f0;
}
.theme-light :is(.modal-backdrop, .solutions-backdrop, .custom-backdrop) { background: rgba(0, 0, 0, 0.4); }
@media (max-width: 759px) {
  .theme-light :is(.modal-backdrop, .solutions-backdrop, .custom-backdrop) { background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)); }
}
.theme-light .size-edit-backdrop { --surface-panel: #ffffff; --pick: #191919; background: rgba(0, 0, 0, 0.4); }
.theme-light .size-edit { background: #ffffff; box-shadow: 0 2px 8px rgba(11, 11, 11, 0.08), 0 24px 64px rgba(0, 0, 0, 0.14); }
.theme-light .size-edit-presets { background: #fafafa; }
.theme-light .size-edit-switch:not(.is-on) { background: rgba(11, 11, 11, 0.2); }
.theme-light .size-edit-field.is-invalid { box-shadow: inset 0 0 0 1px #a42528; }
.theme-light .size-edit-banner.is-danger { color: #a42528; }
.theme-light .size-edit-notes p.is-warning { color: #794c02; }
.theme-light .custom-shell :is(.custom-nav, .custom-shell-foot) { background: #fafafa; }
.theme-light .custom-shell .custom-estimate.is-problem:not(:empty) { color: color-mix(in srgb, var(--accent-orange) 64%, #000000); }
.theme-light :is(.ds-sidenav .ds-nav-link.is-current, .ds-list-item.is-selected, .ds-node-action.is-selected) {
  background: linear-gradient(90deg, color-mix(in srgb, var(--pick) 12%, transparent), color-mix(in srgb, var(--pick) 5%, transparent));
}
.theme-light :where(.ds-button:not(.is-primary, .is-ghost, .is-outline, .is-danger, .is-danger-solid, .is-link)) { background: rgba(0, 0, 0, 0.05); }
.theme-light .saved-add { background: rgba(0, 0, 0, 0.05); }
.theme-light .saved-add:is(:hover:not(:disabled), .is-active) { background: rgba(0, 0, 0, 0.1); }
.theme-light .ds-tile.is-selected { background: color-mix(in srgb, var(--accent-orange) 8%, transparent); }
.theme-light .site-header { box-shadow: inset 0 -1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, 0.05); }
.theme-light .practice-main { --strip-fade: var(--surface-page); --strip-fade-soft: color-mix(in srgb, var(--surface-page) 70%, transparent); background: var(--surface-page); }
.theme-light .move-option { background: var(--surface-panel); }
.theme-light .strip-step { background: var(--surface-panel); box-shadow: 0 0 0 1px var(--theme-card-line); }
.theme-light .history-amount.is-flat { color: var(--text-soft); }
.theme-light .ds-bar { --bar-hue: #000000; color: color-mix(in oklab, var(--bar-hue) 50%, #000000); }
.theme-light .ds-bar:has(> .ds-bar-ground.is-fold) { --bar-hue: var(--action-fold); }
.theme-light .ds-bar:has(> .ds-bar-ground.is-call) { --bar-hue: var(--action-passive); }
.theme-light .ds-bar:has(> .ds-bar-ground:is(.is-bet, .is-raise)) { --bar-hue: var(--action-aggressive); }
.theme-light .ds-bar:has(> .ds-bar-ground.is-shade-0) { --bar-hue: var(--action-shade-0); }
.theme-light .ds-bar:has(> .ds-bar-ground.is-shade-1) { --bar-hue: var(--action-shade-1); }
.theme-light .ds-bar:has(> .ds-bar-ground.is-shade-2) { --bar-hue: var(--action-shade-2); }
.theme-light .ds-bar:has(> .ds-bar-ground.is-shade-3) { --bar-hue: var(--action-shade-3); }
.theme-light .ds-bar:has(> .ds-bar-ground.is-shade-5) { --bar-hue: var(--action-shade-5); }
.theme-light .ds-bar:has(> .ds-bar-ground.is-shade-6) { --bar-hue: var(--action-shade-6); }
.theme-light .ds-bar:has(> .ds-bar-ground.is-shade-7) { --bar-hue: var(--action-shade-7); }
.theme-light .ds-bar:has(> .ds-bar-ground.is-shade-8) { --bar-hue: var(--action-shade-8); }
.theme-light .ds-bar:has(> .ds-bar-ground.is-allin) { --bar-hue: var(--action-allin); }
.theme-light .ds-bar > :not(.ds-bar-ground, .ds-bar-paint) { color: inherit; }
.theme-light .hand-table-cell:has(> .is-fold) { --bar-hue: var(--action-fold); }
.theme-light .hand-table-cell:has(> .is-call) { --bar-hue: var(--action-passive); }
.theme-light .hand-table-cell:has(> :is(.is-bet, .is-raise)) { --bar-hue: var(--action-aggressive); }
.theme-light .hand-table-cell:has(> .is-shade-0) { --bar-hue: var(--action-shade-0); }
.theme-light .hand-table-cell:has(> .is-shade-1) { --bar-hue: var(--action-shade-1); }
.theme-light .hand-table-cell:has(> .is-shade-2) { --bar-hue: var(--action-shade-2); }
.theme-light .hand-table-cell:has(> .is-shade-3) { --bar-hue: var(--action-shade-3); }
.theme-light .hand-table-cell:has(> .is-shade-5) { --bar-hue: var(--action-shade-5); }
.theme-light .hand-table-cell:has(> .is-shade-6) { --bar-hue: var(--action-shade-6); }
.theme-light .hand-table-cell:has(> .is-shade-7) { --bar-hue: var(--action-shade-7); }
.theme-light .hand-table-cell:has(> .is-shade-8) { --bar-hue: var(--action-shade-8); }
.theme-light .hand-table-cell:has(> .is-allin) { --bar-hue: var(--action-allin); }
.theme-light .hand-table-cell.hand-table-cell > b { color: color-mix(in oklab, var(--bar-hue, #000000) 50%, #000000); }
.theme-light .hand-table-cell.hand-table-cell > small { color: color-mix(in srgb, color-mix(in oklab, var(--bar-hue, #000000) 50%, #000000) 72%, transparent); }
.theme-light .hand-table-cell.is-zero > :is(b, small) { color: var(--text-muted); }
.theme-light .hand-table-cell.is-solid > :is(b, small) { color: #f4f5f7; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.theme-light .action-cards.is-calm .action-card.ds-bar { color: color-mix(in oklab, var(--bar-hue) 50%, #000000); }
.theme-light .action-cards.is-calm .action-card.ds-bar .action-card-combos.action-card-combos { color: color-mix(in srgb, color-mix(in oklab, var(--bar-hue) 50%, #000000) 72%, transparent); }
.theme-light .custom-lock-slider-label { color: rgba(0, 0, 0, 0.86); text-shadow: none; }
.theme-light { --card-foot: 0 4px 0 rgba(0, 0, 0, 0.16); --card-foot-deep: 0 4px 0 rgba(0, 0, 0, 0.2); }
.theme-light :is(.line-board-card, .playing-card--strip, .playing-card--street, .strip-step-card) {
  --card-foot: 0 1px 2px rgba(0, 0, 0, 0.16);
  --card-foot-deep: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.theme-light :where(.playing-card) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--card-foot); }
.theme-light .playing-card.design-studio { box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08), var(--card-foot); }
.theme-light .playing-card:is(.design-flat, .design-outline, .design-soft, .design-stripe) { box-shadow: var(--card-foot); }
.theme-light .playing-card.design-midnight { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--card-foot-deep); }
.theme-light .playing-card.design-vintage { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), var(--card-foot); }
.theme-light .playing-card.design-traditional { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06), var(--card-foot); }
.theme-light .playing-card.design-aurora { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), var(--card-foot); }
.theme-light .card-back { box-shadow: var(--card-foot); }
.theme-light .card-chip { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12); }
.theme-light .seat-card { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16); }
.theme-light :is(.node-loading-heading, .node-strip.is-streets .node-loading-heading) { background: #e6e6e6; }
.theme-light :is(.node-loading-subheading, .node-strip.is-streets .node-loading-subheading) { background: #ececec; }
.theme-light :is(.node-loading-rows > span, .node-strip.is-streets .node-loading-rows > span, :is(.line-pending-tools, .line-tools.is-coming) > span) {
  border-color: rgba(0, 0, 0, 0.08);
  background: #f3f3f3;
  box-shadow: none;
}
.theme-light .toolbar-button.is-active { background: var(--surface-active); }
.theme-light .summary-mix { background: var(--theme-cell); }
.theme-light .combo-tile.is-dead .combo-label-card { color: var(--text-muted); }
.theme-light .matrix-wave > i { background: rgba(0, 0, 0, 0.4); }
.theme-light :is(.custom-lock-suit, .hand-filters-suit).is-s, .theme-light .summary-card.is-spade { color: var(--suit-ink-s); }
.theme-light :is(.custom-lock-suit, .hand-filters-suit).is-h, .theme-light .summary-card.is-heart { color: var(--suit-ink-h); }
.theme-light :is(.custom-lock-suit, .hand-filters-suit).is-d, .theme-light .summary-card.is-diamond { color: var(--suit-ink-d); }
.theme-light :is(.custom-lock-suit, .hand-filters-suit).is-c, .theme-light .summary-card.is-club { color: var(--suit-ink-c); }
.theme-light .line-decision-copy.is-grown { box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, 0.14); }
.theme-light .line-decision-copy.is-focused.is-grown { box-shadow: inset 0 0 0 2px var(--focus-line), 0 16px 40px rgba(0, 0, 0, 0.14); }
.theme-light .node-card-overlay.is-grown { box-shadow: 0 0 0 1px var(--theme-card-line), 0 20px 40px rgba(0, 0, 0, 0.14); }
.theme-light .news-editor { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14); }
.theme-light :is(.ds-backdrop, .news-editor-backdrop, .saved-shade, .tour-shade) { background: rgba(0, 0, 0, 0.4); }
.theme-light :is(.announce-field input, .announce-line input, .announce-icon-pick select) { color-scheme: light; }
.theme-light .loader-lab-sections { background: var(--surface-sunken); }
.theme-light :is(.loader-lab-stage, .ll-loader) {
  --ink: 255 255 255;
  --surface-page: #191919;
  --surface-panel: #1f1f1f;
  --surface-raised: #303030;
  --text-strong: rgba(255, 255, 255, 0.93);
  --text-normal: rgba(255, 255, 255, 0.93);
  --text-soft: rgba(255, 255, 255, 0.57);
  --text-muted: rgba(255, 255, 255, 0.4);
  --line: #3d3d3d;
}

.matrix.is-canvas > .matrix-key { min-width: 0; min-height: 0; border: none; border-radius: 0; background: none; padding: 0; outline: none; cursor: default; }
.matrix.is-canvas > .matrix-key:enabled { cursor: pointer; }
.matrix.is-canvas > .matrix-canvas { position: absolute; display: block; pointer-events: none; }
.matrix.is-canvas > .matrix-canvas-lifts { position: absolute; z-index: 21; inset: 0; pointer-events: none; }
.matrix-canvas-lifts > .matrix-canvas-lift { position: absolute; display: block; }
.matrix.is-canvas > .matrix-probe { position: absolute; inset: 0; display: grid; grid-template-columns: inherit; grid-template-rows: inherit; gap: inherit; padding: inherit; visibility: hidden; pointer-events: none; }
.matrix.is-canvas > .matrix-probe > .matrix-cell:not([data-probe="motion"]) { transition: none; }
.matrix.is-canvas > .matrix-probe > :is(.matrix-lifts, .matrix-probe-corner) { position: absolute; top: 0; left: 0; }
.matrix-probe-base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.matrix-probe-grain { position: absolute; top: 0; left: 0; display: block; height: 1px; }

.settings-layout {
  display: grid;
  grid-template-columns: minmax(360px, 400px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.settings-content.is-wide:has(> .settings-layout) {
  max-width: 1720px;
}
.settings-layout.is-large {
  grid-template-columns: minmax(0, 1fr);
}
.settings-layout.is-large > .settings-preview {
  position: static;
  order: -1;
}
.settings-layout-main {
  min-width: 0;
  container: settings-layout / inline-size;
}
@container settings-layout (max-width: 619px) {
  .settings-card .layout-picker.layout-picker { display: flex; max-width: none; align-items: stretch; }
}
@container settings-layout (max-width: 519px) {
  .settings-card .ds-row:not(.settings-stacked) { flex-wrap: wrap; gap: 12px 24px; }
  .settings-card .ds-row:not(.settings-stacked) > .ds-row-text { flex: 1 1 240px; }
  .settings-card .ds-row:not(.settings-stacked) > .settings-row-control:has(> .ds-segmented) { flex: 1 1 100%; }
  .settings-card .ds-row:not(.settings-stacked) > .settings-row-control > .ds-segmented { width: 100%; }
}
.settings-tabs {
  margin-bottom: 16px;
}
.settings-preview {
  position: sticky;
  top: 80px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  border-radius: 12px;
  background: var(--surface-panel);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 12px;
}
.settings-preview-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 24px;
}
.settings-preview-head svg {
  flex: none;
  color: var(--text-muted);
}
.settings-preview-head small {
  overflow: hidden;
  margin-left: auto;
  flex: 0 1 auto;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-preview-fit {
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
}
.settings-preview .settings-preview-stage.study-page.study-page {
  height: auto;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  zoom: 0.54;
  transition: none;
}
.settings-preview .settings-preview-stage.study-page.study-page.is-streets-rail {
  grid-template-columns: 280px minmax(0, 1fr);
}
.settings-preview .settings-preview-stage .settings-preview-rail {
  position: static;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}
.settings-preview .settings-preview-stage .study-main.study-main {
  min-height: 0;
}
.settings-preview .settings-preview-stage .study-columns.study-columns {
  flex: none;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto;
}
.settings-preview .settings-preview-stage.is-side-none .study-columns.study-columns {
  grid-template-columns: minmax(0, 1fr);
}
.settings-preview .settings-preview-stage .study-columns.study-columns > .matrix-panel.matrix-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
}
.settings-preview .settings-preview-stage .study-columns.study-columns > .matrix-panel.matrix-panel :is(.matrix, .matrix-placeholder) {
  flex: none;
  height: auto;
  min-height: 0;
  aspect-ratio: 800 / 620;
}
.settings-preview .settings-preview-stage .study-columns.study-columns > .matrix-panel.matrix-panel .matrix-cell .matrix-cell-label.matrix-cell-label {
  font-size: 16px;
}
.settings-preview .settings-preview-stage .study-columns.study-columns > .matrix-panel.matrix-panel .matrix-cell .matrix-cell-metric.matrix-cell-metric {
  font-size: 12px;
}
.settings-preview .settings-preview-practice.practice-page {
  height: auto;
  min-height: 0;
  zoom: 0.54;
}
.settings-preview .settings-preview-practice .practice-body {
  overflow: visible;
}
@media (max-width: 1179px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-preview { position: static; order: -1; }
}
@media (max-width: 759px) {
  .settings-tabs { flex-wrap: wrap; gap: 0 16px; }
}

.site-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunken);
  padding: 0 44px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-normal);
  animation: site-banner-in 260ms cubic-bezier(0.2, 0, 0, 1) both;
}
.site-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 8%, color-mix(in srgb, var(--accent-brand) 11%, transparent) 50%, transparent 92%);
}
.site-banner.is-warning {
  border-bottom-color: color-mix(in srgb, var(--grade-warn) 28%, transparent);
  background: color-mix(in srgb, var(--grade-warn) 9%, var(--surface-sunken));
}
.site-banner.is-warning::before {
  background: linear-gradient(90deg, transparent 8%, color-mix(in srgb, var(--grade-warn) 12%, transparent) 50%, transparent 92%);
}
.site-banner.is-maintenance {
  border-bottom-color: color-mix(in srgb, var(--grade-bad) 30%, transparent);
  background: color-mix(in srgb, var(--grade-bad) 10%, var(--surface-sunken));
}
.site-banner.is-maintenance::before {
  background: linear-gradient(90deg, transparent 8%, color-mix(in srgb, var(--grade-bad) 13%, transparent) 50%, transparent 92%);
}
.site-banner.is-leaving {
  animation: site-banner-out 180ms cubic-bezier(0.4, 0, 1, 1) both;
  pointer-events: none;
}
@keyframes site-banner-in {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
}
@keyframes site-banner-out {
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}
.site-banner-inner {
  position: relative;
  display: flex;
  min-width: 0;
  max-width: 1200px;
  align-items: center;
  gap: 8px;
}
.site-banner-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-brand) 16%, transparent);
  color: var(--accent-brand);
}
.site-banner.is-warning .site-banner-icon {
  background: color-mix(in srgb, var(--grade-warn) 18%, transparent);
  color: var(--grade-warn);
}
.site-banner.is-maintenance .site-banner-icon {
  background: color-mix(in srgb, var(--grade-bad) 18%, transparent);
  color: var(--grade-bad);
}
.site-banner-text {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  color: var(--text-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-banner-close {
  position: absolute;
  right: 8px;
}
.site-banner.is-preview {
  position: relative;
  z-index: auto;
}
@media (max-width: 700px) {
  .site-banner {
    height: auto;
    min-height: 36px;
    justify-content: flex-start;
    padding: 8px 44px 8px 12px;
  }
  .site-banner-inner {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .site-banner-text {
    flex: 1 1 200px;
    white-space: normal;
  }
}
html.has-site-banner .study-page {
  min-height: calc(100vh - 36px);
}
html.has-site-banner .study-rail {
  top: 36px;
  height: calc(100vh - 36px);
  min-height: calc(100vh - 36px);
}
@media (min-height: 700px) {
  html.has-site-banner .study-page:not(.is-ranges) {
    height: calc(100vh - 36px);
  }
}
html.has-site-banner .practice-page,
html.has-site-banner .rail {
  height: calc(100vh - 36px);
}
html.has-site-banner .landing-page,
html.has-site-banner .legal-page,
html.has-site-banner .page-fallback,
html.has-site-banner .auth-page {
  min-height: calc(100vh - 36px);
}
html.has-site-banner .site-header {
  top: 36px;
}
html.has-site-banner .settings-nav,
html.has-site-banner .admin-nav {
  top: 92px;
  height: calc(100vh - 92px);
}
html.has-site-banner .settings-page,
html.has-site-banner .admin-page,
html.has-site-banner .progress-page,
html.has-site-banner .run-page,
html.has-site-banner .not-found-root .not-found-page {
  min-height: calc(100vh - 92px);
}
html.has-site-banner .legal-toc {
  top: 116px;
}
html.has-site-banner .pricing-table thead th {
  top: 92px;
}
.signin-notice {
  align-items: flex-start;
  margin: 16px 0 4px;
  text-align: left;
  animation: whatsnew-fade 240ms ease-out both;
}
.signin-notice.is-info { --c: var(--accent-brand); }
.signin-notice.is-maintenance { --c: var(--grade-bad); }
.signin-notice p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.whatsnew-backdrop {
  z-index: 90;
  padding: 24px;
  animation: whatsnew-fade 200ms ease-out both;
}
.whatsnew-backdrop.is-leaving {
  animation: whatsnew-fade-out 180ms ease-in both;
  pointer-events: none;
}
@keyframes whatsnew-fade {
  from {
    opacity: 0;
  }
}
@keyframes whatsnew-fade-out {
  to {
    opacity: 0;
  }
}
.whatsnew {
  position: relative;
  width: 520px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  animation: whatsnew-in 340ms cubic-bezier(0.2, 0, 0, 1) both;
}
.whatsnew-backdrop.is-leaving .whatsnew {
  animation: whatsnew-out 180ms cubic-bezier(0.4, 0, 1, 1) both;
}
@keyframes whatsnew-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}
@keyframes whatsnew-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}
.whatsnew-hero {
  position: relative;
  flex: none;
  overflow: hidden;
}
.whatsnew-glow {
  position: absolute;
  top: -88px;
  left: -60px;
  width: 300px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-brand) 30%, transparent), transparent);
  pointer-events: none;
  animation: whatsnew-glow 4200ms ease-in-out infinite alternate;
}
@keyframes whatsnew-glow {
  from {
    opacity: 0.55;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0.9;
    transform: translateX(46px) scale(1.12);
  }
}
.whatsnew-mark {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-brand) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-brand) 30%, transparent);
  color: var(--accent-brand);
}
.whatsnew-heading {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.whatsnew-heading span {
  font-size: 16px;
  font-weight: var(--heavy);
  color: var(--text-strong);
}
.whatsnew-heading small {
  font-size: 12px;
  color: var(--text-muted);
}
.whatsnew-body {
  min-height: 0;
  overflow-y: auto;
  animation: whatsnew-fade 220ms ease-out both;
}
.whatsnew-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.whatsnew-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: var(--heavy);
  line-height: 1.3;
  color: var(--text-strong);
}
.whatsnew-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.whatsnew-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: whatsnew-item-in 380ms cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: calc(120ms + var(--i, 0) * 50ms);
}
@keyframes whatsnew-item-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.whatsnew-item-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--accent-brand);
}
.whatsnew-item-text {
  padding-top: 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-normal);
}
.whatsnew-link {
  margin-bottom: 16px;
}
.whatsnew-foot {
  flex: none;
  justify-content: space-between;
}
.whatsnew-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.whatsnew-history-row {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-panel);
}
.whatsnew-history-head {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 8px 12px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.whatsnew-history-head:hover {
  background: var(--surface-hover);
}
.whatsnew-history-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.whatsnew-history-text strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whatsnew-history-text small {
  font-size: 12px;
  color: var(--text-muted);
}
.whatsnew-chevron {
  flex: none;
  color: var(--text-muted);
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1);
}
.whatsnew-history-row.is-open .whatsnew-chevron {
  transform: rotate(180deg);
}
.whatsnew-history-body {
  border-top: 1px solid var(--line);
  padding: 12px;
  animation: whatsnew-item-in 260ms cubic-bezier(0.2, 0, 0, 1) both;
}
.whatsnew-history-body .whatsnew-meta {
  display: none;
}
.whatsnew-history-body .whatsnew-title {
  margin-bottom: 12px;
  font-size: 16px;
}
.whatsnew-history-body .whatsnew-items {
  gap: 8px;
  margin-bottom: 12px;
}
.whatsnew-empty {
  margin: 20px 0 16px;
  text-align: center;
}
.whatsnew-note > :last-child {
  margin-bottom: 0;
}
.whatsnew.is-preview {
  width: 100%;
  max-height: none;
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px rgba(0, 0, 0, 0.45);
}
.whatsnew.is-preview .whatsnew-close,
.whatsnew.is-preview .whatsnew-done,
.whatsnew.is-preview .whatsnew-link {
  pointer-events: none;
}
.announce {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.announce-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.announce-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}
.announce-field {
  min-width: 0;
}
.announce-label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.announce-label small {
  margin-left: auto;
  font-weight: 600;
  color: var(--text-muted);
}
.announce-field input,
.announce-line input,
.announce-icon-pick select {
  color-scheme: dark;
}
.announce-toggle:disabled {
  opacity: 0.4;
  cursor: default;
}
.announce-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.announce-pair.is-narrow-first {
  grid-template-columns: 172px minmax(0, 1fr);
}
.announce-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.announce-field .admin-segments {
  align-self: flex-start;
}
.announce-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.announce-switch-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.announce-switch-text strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}
.announce-switch-text small {
  font-size: 12px;
  color: var(--text-muted);
}
.announce-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.announce-line {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
}
.announce-icon-pick {
  position: relative;
  display: block;
}
.announce-icon-tile {
  position: absolute;
  top: 4px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--accent-brand);
  pointer-events: none;
}
.announce-icon-pick select.ds-input {
  padding-left: 32px;
  cursor: pointer;
}
.announce-add {
  align-self: flex-start;
}
.announce-preview {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}
.announce-preview-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: var(--heavy);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.announce-preview-page {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-page);
}
.announce-preview-shell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 92px;
  grid-template-rows: 24px 120px;
  gap: 8px;
  padding: 0 8px 8px 0;
}
.announce-preview-shell i {
  border-radius: 8px;
  background: var(--surface-panel);
}
.announce-preview-shell .is-rail {
  grid-row: 1 / 3;
  border-radius: 0;
  background: var(--surface-rail);
}
.announce-preview-shell .is-strip {
  grid-column: 2 / 4;
  margin-top: 8px;
}
.announce-preview-shell .is-matrix {
  background: linear-gradient(135deg, color-mix(in srgb, var(--action-aggressive) 30%, var(--surface-panel)),
    color-mix(in srgb, var(--action-passive) 26%, var(--surface-panel)) 55%, color-mix(in srgb, var(--action-fold) 30%, var(--surface-panel)));
  opacity: 0.8;
}
.announce-preview-signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-panel);
  padding: 16px 20px;
  text-align: center;
}
.announce-preview-signin strong {
  font-size: 16px;
  font-weight: var(--bold);
  color: var(--text-strong);
}
.announce-preview-signin .signin-notice {
  align-self: stretch;
  margin: 12px 0;
}
.announce-preview-google {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}
.announce-editor {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-sunken);
  padding: 16px;
  animation: whatsnew-item-in 240ms cubic-bezier(0.2, 0, 0, 1) both;
}
.announce-releases {
  display: flex;
  flex-direction: column;
}
.announce-release {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto 32px auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.announce-release:first-child {
  border-top: none;
}
.announce-release.is-editing {
  opacity: 0.5;
}
.announce-release .admin-badge {
  justify-self: start;
}
.announce-release-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.announce-release-text strong {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
}
.announce-release-text small {
  overflow: hidden;
  font-size: 12px;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announce-release-time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.beta-features {
  display: flex;
  flex-direction: column;
}
.beta-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.beta-feature:first-child {
  border-top: none;
  padding-top: 0;
}
.beta-feature-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ai-accent) 16%, transparent);
  color: var(--ai-accent);
}
.beta-feature-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.beta-feature-text strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}
.beta-feature-text small {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}
@media (max-width: 1100px) {
  .announce-split {
    grid-template-columns: minmax(0, 1fr);
  }
}
