:root {
  color-scheme: light;
  --page: #f3f3ef;
  --paper: #fcfcfa;
  --white: #fff;
  --ink: #303b40;
  --ink-soft: #556368;
  --muted: #939d9b;
  --line: #e8eae5;
  --green: #608d7c;
  --green-dark: #467563;
  --green-faint: #e9f1ec;
  --green-wash: #f1f6f2;
  --lilac: #eceaf3;
  --lilac-strong: #b8b1cb;
  --peach: #f5e9df;
  --gold: #c7a96a;
  --shadow: 0 12px 34px rgba(51, 69, 62, .055);
  font-family: 'DM Sans', 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { height: 100vh; min-height: 720px; position: sticky; top: 0; display: flex; flex-direction: column; padding: 27px 17px 17px; background: #f9faf6; border-right: 1px solid #e9ebe5; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 10px 54px; text-decoration: none; color: inherit; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; place-items: center; background: #e9f0eb; color: #648575; font-size: 14px; line-height: 1; transform: rotate(-3deg); }
.brand-mark span:nth-child(2) { color: #ba8183; }.brand-mark span:nth-child(3) { color: #bb9b64; }.brand-mark span:nth-child(4) { color: #809a8a; }
.brand-copy { display: grid; line-height: 1.1; }.brand-copy strong { font: 800 22px 'Manrope', sans-serif; letter-spacing: -.07em; }.brand-copy small { margin-top: 4px; font: 500 9px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.sidebar-label { padding: 0 11px; margin: 0 0 11px; color: #a1aaa5; font: 500 9px 'DM Mono', monospace; letter-spacing: .12em; }.range-label { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; }
.tiny-add { border: 0; background: transparent; color: #7c9184; font-size: 19px; line-height: 1; padding: 2px 6px; border-radius: 6px; }.tiny-add:hover { background: var(--green-faint); }
.nav-link { height: 42px; width: 100%; padding: 0 11px; display: flex; gap: 11px; align-items: center; position: relative; background: transparent; color: #74807f; border: 0; border-radius: 9px; text-align: left; font-size: 13px; font-weight: 600; }.nav-link:hover { background: #f1f3ee; }.nav-link.active { background: #eaf1ec; color: #497764; }.nav-icon { width: 17px; color: #8e9b95; font-size: 16px; text-align: center; }.active .nav-icon { color: #648a78; }.nav-current-dot { display: none; margin-left: auto; width: 5px; height: 5px; background: #78a18a; border-radius: 50%; }.active .nav-current-dot { display: block; }
.sidebar-ranges { display: grid; gap: 3px; max-height: 38vh; overflow-y: auto; }.side-range { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 11px; text-align: left; border: 0; background: transparent; border-radius: 8px; color: #7f8987; font-size: 12px; }.side-range:hover, .side-range.selected { background: #f0f2ed; color: #526b5e; }.side-range-mark { color: #9aa9a0; font-size: 12px; }.side-range-count { margin-left: auto; font: 10px 'DM Mono', monospace; color: #9ca7a2; }
.sidebar-spacer { flex: 1; min-height: 30px; }.side-note { padding: 15px 15px 16px; background: #f0f2ec; border-radius: 11px; color: #697872; }.note-spark { display: block; margin-bottom: 8px; color: #b29c6e; font-size: 16px; }.side-note strong { display: block; color: #56645f; font-size: 12px; line-height: 1.55; }.side-note > span:last-child { display: block; margin-top: 6px; color: #919c96; font-size: 10px; line-height: 1.55; }.sidebar-bottom { display: flex; align-items: center; gap: 7px; margin: 16px 3px 0; color: #a0a9a3; font-size: 9px; }.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #8eb39c; flex: 0 0 auto; }
.main-area { min-width: 0; }.topbar { height: 59px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid #e7e9e4; color: #98a19e; background: rgba(249, 250, 246, .64); font-size: 11px; }.breadcrumb span { padding: 0 8px; color: #c1c7c1; }.breadcrumb strong { color: #687472; font-weight: 600; }.topbar-right { display: flex; align-items: center; gap: 9px; }.avatar { display: grid; width: 24px; height: 24px; place-items: center; color: #648675; background: #e7eee9; border-radius: 8px; font-size: 11px; }.topbar-caption { color: #7e8985; }.topbar-menu { margin-left: 7px; border: 0; background: transparent; color: #929c97; letter-spacing: 2px; font-size: 18px; }
.page-content { width: min(1230px, 100%); padding: 32px 42px 19px; margin: 0 auto; }.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }.eyebrow, .range-kicker, .tools-kicker { display: flex; align-items: center; gap: 7px; color: #8c9992; font: 500 9px 'DM Mono', monospace; letter-spacing: .13em; }.eyebrow-line { display: inline-block; width: 16px; height: 1px; background: #9bb0a2; }.page-heading h1 { margin: 8px 0 4px; color: #344044; font: 700 clamp(23px, 2.45vw, 32px) 'Manrope', sans-serif; letter-spacing: -.045em; }.page-heading p { margin: 0; color: #909b98; font-size: 12px; }.heading-badge { display: flex; align-items: center; gap: 10px; margin: 0 2px 3px 0; padding: 9px 13px; border: 1px solid #e7e9e3; border-radius: 9px; background: rgba(252, 252, 250, .75); }.badge-flower { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #f4f0e5; color: #b39c69; font-size: 16px; }.heading-badge strong, .heading-badge small { display: block; }.heading-badge strong { color: #60706a; font-size: 10px; font-weight: 600; }.heading-badge small { margin-top: 3px; color: #9ba49f; font-size: 9px; }
.training-layout { display: grid; grid-template-columns: minmax(400px, 1.45fr) minmax(305px, .87fr); align-items: start; gap: 18px; }.left-column { display: grid; gap: 15px; }.exercise-card, .bottom-tools, .range-card { border: 1px solid #e8eae5; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); }.exercise-card { padding: 21px 22px 18px; }.exercise-topline { display: flex; justify-content: space-between; align-items: center; }.exercise-label { color: #8d9a93; font: 500 9px 'DM Mono', monospace; letter-spacing: .12em; }.pulse-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #80aa92; box-shadow: 0 0 0 3px #edf4ee; }.icon-button { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #eaede7; border-radius: 8px; background: #fbfcf9; color: #7d9284; font-size: 16px; }.icon-button:hover { color: var(--green-dark); background: var(--green-faint); }.exercise-title-row { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 17px; }.exercise-title-row h2 { margin: 0; color: #364246; font: 700 19px 'Manrope', sans-serif; letter-spacing: -.035em; }.exercise-subtitle { margin: 4px 0 0; color: #9aa39f; font-size: 11px; }.exercise-doodle { margin-right: 11px; color: #c8b67e; font-size: 21px; }
.scenario-box { padding: 15px 15px 14px; border: 1px solid #edf0e9; border-radius: 10px; background: #f7f8f4; }.scenario-head { display: flex; align-items: center; gap: 8px; color: #8d9992; font: 500 8px 'DM Mono', monospace; letter-spacing: .1em; }.scenario-icon { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; color: #738d7e; background: #e8f0e9; font-size: 13px; }.mode-tag { margin-left: auto; color: #9caa9f; font-size: 8px; letter-spacing: .08em; }.scenario-copy { margin-top: 14px; color: #929c98; font-size: 11px; }.range-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin-top: 4px; }.range-line strong { color: #3b4849; font: 700 16px 'Manrope', sans-serif; letter-spacing: -.025em; }.range-syntax { padding: 3px 7px; color: #557763; background: #e6efe8; border-radius: 5px; font: 500 10px 'DM Mono', monospace; }.class-count { color: #a0a9a4; font-size: 10px; }.board-area { margin-top: 14px; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid #e9ede6; }.board-caption { color: #a0aaa4; font: 500 8px 'DM Mono', monospace; letter-spacing: .1em; }.board-cards { display: flex; gap: 4px; }.playing-card { display: grid; place-items: center; min-width: 31px; height: 41px; border-radius: 5px; background: white; border: 1px solid #e5e8e2; box-shadow: 0 1px 2px #394c3e0b; font: 600 12px 'Manrope', sans-serif; }.playing-card.red { color: #bd7d78; }.playing-card.black { color: #48575a; }.board-hint { margin-left: auto; color: #9ea9a2; font-size: 9px; }
.answer-block { margin-top: 17px; }.answer-block > label { display: block; margin-bottom: 8px; color: #85928b; font: 500 9px 'DM Mono', monospace; letter-spacing: .09em; }.answer-block > label span { margin-left: 5px; color: #a5aeaa; font: 400 9px 'DM Sans', sans-serif; letter-spacing: 0; }.answer-entry { display: flex; height: 47px; padding: 4px; align-items: center; border: 1px solid #e5e9e2; border-radius: 8px; background: #fff; transition: border-color .18s, box-shadow .18s; }.answer-entry:focus-within { border-color: #a8c1b0; box-shadow: 0 0 0 3px #edf4ee; }.answer-entry input { min-width: 0; flex: 1; height: 100%; padding: 0 9px; border: 0; outline: 0; color: #394648; background: transparent; font: 600 15px 'DM Mono', monospace; }.answer-entry input::placeholder { color: #c1c8c2; font: 400 12px 'DM Sans', sans-serif; }.answer-entry input::-webkit-inner-spin-button { appearance: none; }.entry-suffix { padding-right: 11px; color: #adb5b0; font-size: 10px; }.check-button, .save-button { height: 36px; padding: 0 13px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 6px; color: white; background: #698e79; font-size: 10px; font-weight: 600; transition: background .15s, transform .15s; }.check-button:hover, .save-button:hover { background: #527d65; transform: translateY(-1px); }.check-button span, .save-button span { font-size: 13px; }.feedback { min-height: 0; color: #6c8b78; font-size: 11px; }.feedback:not(:empty) { margin-top: 8px; }.feedback.error { color: #b97870; }.feedback.correct { color: #568267; }.feedback.incorrect { color: #b97870; }.answer-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: #a6afaa; font-size: 9px; }.feedback:not(:empty) + .answer-footer { margin-top: 7px; }kbd { padding: 2px 4px; border: 1px solid #e5e8e2; border-radius: 3px; background: #f9faf7; color: #818d85; font: 9px 'DM Mono', monospace; }.text-button { padding: 3px 0; border: 0; background: transparent; color: #82948a; font-size: 10px; }.text-button:hover { color: #4f765f; }.text-button span { margin-left: 4px; font-size: 12px; }
.bottom-tools { padding: 17px 20px 13px; }.tools-heading { display: flex; justify-content: space-between; align-items: start; }.tools-kicker { font-size: 8px; }.tools-heading h3 { margin: 5px 0 0; color: #4c5959; font: 700 13px 'Manrope', sans-serif; letter-spacing: -.02em; }.tools-star { margin-right: 4px; color: #c1ad78; font-size: 16px; }.tool-controls { display: grid; grid-template-columns: minmax(145px,1fr) auto auto; align-items: end; gap: 11px; margin-top: 13px; }.select-control > span, .mode-control > span { display: block; margin-bottom: 5px; color: #96a09b; font-size: 9px; }.select-control select { width: 100%; height: 33px; padding: 0 25px 0 9px; appearance: none; background: #fbfcf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='m2 4 3 3 3-3' fill='none' stroke='%2395a298' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 9px center; border: 1px solid #e7eae4; border-radius: 6px; color: #596862; font-size: 10px; outline: 0; }.select-control select:focus { border-color: #a8c1b0; }.segmented { height: 33px; display: flex; padding: 2px; border: 1px solid #e8ebe5; border-radius: 6px; background: #f8f9f6; }.segment { min-width: 38px; border: 0; border-radius: 4px; color: #929d97; background: transparent; font-size: 9px; }.segment.active { color: #587b65; background: #e8f0e9; box-shadow: 0 1px 2px #34493d14; }.new-task-button { height: 33px; padding: 0 10px; white-space: nowrap; border: 1px solid #dae7de; border-radius: 6px; color: #547761; background: #edf3ee; font-size: 9px; font-weight: 600; }.new-task-button:hover { background: #e4eee6; }.new-task-button span { margin-right: 2px; font-size: 13px; }.tool-footnote { display: flex; align-items: center; gap: 7px; margin-top: 11px; color: #a0aaa4; font-size: 9px; }
.session-stats { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; padding: 11px 10px; border: 1px solid #e8eae5; background: rgba(252, 252, 250, .72); border-radius: 10px; }.session-stat { display: flex; align-items: center; gap: 7px; padding: 0 8px; border-right: 1px solid #ebede8; }.stat-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }.stat-icon.mint { color: #69937a; background: #e9f1eb; }.stat-icon.peach { color: #ad8b70; background: #f5ede3; }.stat-icon.lilac { color: #8e86a6; background: #efedf4; }.session-stat strong, .session-stat small { display: block; }.session-stat strong { color: #56635e; font: 700 12px 'Manrope', sans-serif; }.session-stat small { margin-top: 1px; color: #a2aaa6; font-size: 8px; }.stat-encouragement { padding-left: 11px; color: #a2aaa5; font-size: 8px; white-space: nowrap; }.stat-encouragement span { margin-right: 4px; color: #c0aa75; }
.range-card { position: sticky; top: 20px; padding: 20px 19px 17px; }.range-card-heading { display: flex; align-items: center; justify-content: space-between; }.range-kicker { font-size: 8px; }.range-card-heading h3 { margin: 5px 0 0; color: #3e4b4d; font: 700 16px 'Manrope', sans-serif; letter-spacing: -.03em; }.matrix-info { width: 19px; height: 19px; border: 1px solid #e6e9e3; border-radius: 50%; background: transparent; color: #a2aca5; font: 600 10px Georgia, serif; }.matrix-info:hover { color: #597b65; border-color: #b8cdbd; }.matrix-description { margin: 5px 0 13px; color: #9ca6a1; font-size: 10px; }.hand-matrix { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px; }.matrix-cell { min-width: 0; aspect-ratio: 1 / 1; display: grid; place-items: center; border: 1px solid #edf0eb; border-radius: 3px; color: #a2aaa5; background: #f7f8f5; font: 500 clamp(6px, .66vw, 8px) 'DM Mono', monospace; letter-spacing: -.08em; transition: all .14s; }.matrix-cell.pair { background: #f1f1eb; }.matrix-cell.suited { background: #eff4ef; }.matrix-cell.offsuit { background: #f3f2f6; }.matrix-cell.selected { color: #476e57; border-color: #d5e5d8; background: #dfece1; box-shadow: inset 0 0 0 1px #e7f0e8; font-weight: 500; }.matrix-cell.selected.suited { background: #dcebe1; }.matrix-cell.selected.offsuit { color: #6f698a; border-color: #e1ddec; background: #ebe8f2; }.matrix-cell.selected.pair { color: #6e775d; border-color: #e2e4d4; background: #eaeddf; }.matrix-cell.blocked { position: relative; }.matrix-cell.blocked::after { position: absolute; right: 1px; bottom: 1px; width: 3px; height: 3px; content: ''; border-radius: 50%; background: #c6a572; }.matrix-legend { display: flex; justify-content: center; gap: 16px; margin: 11px 0 13px; color: #9da7a2; font-size: 9px; }.matrix-legend span { display: flex; align-items: center; gap: 5px; }.matrix-legend i { width: 8px; height: 8px; display: inline-block; border-radius: 2px; }.legend-suited { background: #dcebe1; }.legend-off { background: #ebe8f2; }.legend-pair { background: #eaeddf; }.matrix-divider { border-top: 1px solid #eceee9; }.total-label { margin-top: 14px; color: #98a29d; font: 500 8px 'DM Mono', monospace; letter-spacing: .11em; }.total-count-row { display: flex; align-items: baseline; gap: 8px; margin: 1px 0 10px; }.total-count-row strong { color: #374348; font: 800 36px 'Manrope', sans-serif; letter-spacing: -.065em; }.total-count-row > span { color: #9da6a2; font-size: 10px; }.blocked-summary { display: flex; justify-content: space-between; margin: -4px 0 10px; color: #9ca6a0; font-size: 9px; }.blocked-summary strong { color: #b08b5e; font-weight: 600; }.math-breakdown { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid #f0f1ed; color: #99a29e; font-size: 9px; }.math-breakdown strong { color: #6a7671; font: 500 10px 'DM Mono', monospace; }.range-tip { display: flex; gap: 9px; margin-top: 11px; padding: 10px; border: 1px solid #eeeadd; border-radius: 7px; background: #f8f6f0; color: #8e948d; font-size: 9px; line-height: 1.55; }.tip-icon { color: #b49e67; font-size: 13px; }.range-tip strong { display: block; margin-bottom: 1px; color: #767966; font-size: 9px; }
.page-footer { display: flex; justify-content: space-between; margin-top: 15px; padding: 0 1px; color: #a1aaa5; font-size: 9px; }.page-footer i { color: #758d7d; font-style: normal; }
.range-dialog { width: min(450px, calc(100vw - 28px)); padding: 23px; border: 1px solid #e6e9e2; border-radius: 14px; color: var(--ink); background: #fcfcfa; box-shadow: 0 24px 80px #2d3a3340; }.range-dialog::backdrop { background: #29363056; backdrop-filter: blur(3px); }.dialog-top { display: flex; align-items: start; justify-content: space-between; }.dialog-top h2 { margin: 7px 0 0; color: #3d4a4b; font: 700 21px 'Manrope', sans-serif; letter-spacing: -.04em; }.dialog-close { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #e8ebe5; border-radius: 8px; color: #85918b; background: white; font-size: 19px; }.dialog-description { margin: 9px 0 18px; color: #929d97; font-size: 11px; line-height: 1.55; }.field-label { display: block; margin: 13px 0 6px; color: #85928b; font: 500 9px 'DM Mono', monospace; letter-spacing: .06em; }.dialog-input { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #e5e9e2; border-radius: 7px; outline: 0; color: #4f5d57; background: white; font-size: 11px; }.dialog-input:focus { border-color: #a8c1b0; box-shadow: 0 0 0 3px #edf4ee; }.dialog-input::placeholder { color: #c0c8c1; }.notation-input { font: 500 12px 'DM Mono', monospace; }.notation-help { margin-top: 8px; color: #9da6a0; font-size: 9px; line-height: 1.7; }.notation-help code { color: #668271; }.range-preview { min-height: 50px; display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 9px 11px; border: 1px solid #e8eee6; border-radius: 7px; background: #f5f8f4; color: #88968d; font-size: 10px; line-height: 1.45; }.range-preview.invalid { border-color: #f0e1dc; background: #fcf5f2; color: #ad7b72; }.range-preview.valid { color: #5e816b; }.preview-mark { color: #b39f70; font-size: 13px; }.dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 18px; }.cancel-button, .save-button { height: 37px; padding: 0 13px; border-radius: 6px; font-size: 10px; }.cancel-button { border: 1px solid #e7eae4; color: #7f8a84; background: white; }.cancel-button:hover { background: #f7f8f5; }.save-button { border: 0; color: white; background: #698e79; font-weight: 600; }.save-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }.toast { position: fixed; z-index: 5; left: 50%; bottom: 22px; padding: 10px 15px; transform: translate(-50%, 18px); opacity: 0; border: 1px solid #dfe9e0; border-radius: 8px; color: #5c7966; background: #f5f9f4; box-shadow: var(--shadow); font-size: 11px; pointer-events: none; transition: opacity .2s, transform .2s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1500px) { .page-content { padding-top: 42px; }.training-layout { gap: 22px; }.exercise-card { padding: 24px 26px 21px; }.range-card { padding: 23px 22px 20px; }.page-heading { margin-bottom: 29px; } }
@media (max-width: 1180px) { .app-shell { grid-template-columns: 205px minmax(0,1fr); }.sidebar { padding-inline: 13px; }.page-content { padding-inline: 28px; }.topbar { padding-inline: 28px; }.training-layout { grid-template-columns: minmax(350px,1.3fr) minmax(275px,.9fr); gap: 13px; }.exercise-card { padding-inline: 17px; }.range-card { padding-inline: 15px; }.tool-controls { grid-template-columns: minmax(120px,1fr) auto; }.new-task-button { grid-column: 1 / -1; }.stat-encouragement { display: none; }.session-stats { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px) { .app-shell { grid-template-columns: 68px minmax(0,1fr); }.sidebar { padding: 21px 9px 14px; align-items: center; }.brand { margin: 0 0 42px; }.brand-copy,.sidebar-label,.nav-link:not(.active),.nav-link.active { font-size: 0; }.nav-link { width: 45px; justify-content: center; padding: 0; margin-bottom: 6px; }.nav-icon { font-size: 17px; }.nav-current-dot { position: absolute; right: 4px; top: 8px; }.sidebar-ranges,.side-note,.sidebar-bottom { display: none; }.range-label { display: none; }.sidebar-spacer { flex: 1; }.page-content { padding: 25px 22px 18px; }.topbar { padding-inline: 22px; }.training-layout { grid-template-columns: minmax(0,1.15fr) minmax(260px,.85fr); }.heading-badge { display: none; } }
@media (max-width: 680px) { .app-shell { display: block; padding-bottom: 63px; }.sidebar { z-index: 4; position: fixed; inset: auto 0 0; width: 100%; height: 58px; min-height: 0; flex-direction: row; justify-content: center; padding: 6px 12px; border: 0; border-top: 1px solid #e7eae4; background: rgba(250,251,247,.96); backdrop-filter: blur(10px); }.brand,.sidebar-spacer,.range-label,.sidebar-ranges,.side-note,.sidebar-bottom { display: none; }.nav-link { width: min(47vw, 200px); height: 42px; margin: 0 3px; justify-content: center; gap: 8px; font-size: 11px !important; }.nav-icon { font-size: 14px; }.nav-current-dot { display: none !important; }.main-area { padding-top: 0; }.topbar { height: 48px; padding-inline: 17px; }.page-content { padding: 22px 14px 15px; }.page-heading { margin-bottom: 17px; }.page-heading h1 { font-size: 24px; }.page-heading p { font-size: 11px; }.training-layout { grid-template-columns: minmax(0,1fr); }.range-card { position: static; }.hand-matrix { gap: 4px; }.matrix-cell { font-size: clamp(8px, 2vw, 11px); border-radius: 4px; }.range-card { padding: 18px; }.range-card .hand-matrix { max-width: 410px; margin-inline: auto; }.session-stats { margin-bottom: 2px; }.page-footer { gap: 8px; font-size: 8px; }.exercise-card { padding: 18px 15px 15px; }.exercise-title-row h2 { font-size: 17px; }.tool-controls { grid-template-columns: 1fr 1fr; }.new-task-button { grid-column: auto; }.select-control { min-width: 0; }.mode-control { justify-self: end; }.new-task-button { grid-column: 1 / -1; }.board-hint { display: none; } }
@media (max-width: 390px) { .page-content { padding-inline: 11px; }.topbar-caption { display: none; }.scenario-head { font-size: 7px; }.mode-tag { font-size: 7px; }.range-line strong { font-size: 14px; }.answer-block > label span { display: block; margin: 4px 0 0; }.session-stat { padding-inline: 5px; }.page-footer span:last-child { text-align: right; }.matrix-legend { gap: 10px; } }

.range-manager-list { display: grid; gap: 6px; max-height: min(52vh, 390px); overflow-y: auto; padding-right: 2px; }
.manager-range { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 10px; border: 1px solid #e9ece6; border-radius: 7px; background: #fff; }
.manager-range-placeholder { min-width: 0; border: 1px dashed #829b88; border-radius: 7px; background: #eef4ef; }
.manager-range-drag-ghost { position: fixed; z-index: 10000; pointer-events: none; opacity: .98; border-color: #829b88; box-shadow: 0 12px 28px #17231d45; transform: rotate(1deg) scale(1.02); }
.manager-range-drag { flex: 0 0 auto; color: #a5ada8; font-size: 17px; line-height: 1; cursor: grab; touch-action: none; user-select: none; }
.manager-range-drag:active { cursor: grabbing; }
.manager-range:hover { border-color: #d8e5da; background: #fafcf9; }
.manager-range-main { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; }
.manager-range-main strong, .manager-range-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-range-main strong { color: #5a6b62; font-size: 10px; font-weight: 600; }
.manager-range-main small { margin-top: 3px; color: #9ba69f; font: 9px 'DM Mono', monospace; }
.manager-range-count { flex: 0 0 auto; color: #8c9b91; font: 9px 'DM Mono', monospace; }
.manager-range-edit { flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid #e1e1e0; border-radius: 7px; color: #85878a; background: transparent; font-size: 15px; }
.manager-range-edit:hover { color: #5c7664; border-color: #c9d8cb; background: #f3f7f3; }
.manager-empty { padding: 22px 10px; border: 1px dashed #e4e8e0; border-radius: 8px; color: #97a19b; text-align: center; font-size: 10px; line-height: 1.6; }
.theme-toggle { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #e5e9e2; border-radius: 8px; color: #7f9186; background: #fbfcf9; font-size: 15px; transition: background .15s, border-color .15s, transform .15s; }
.theme-toggle:hover { background: #edf3ee; border-color: #d8e4da; transform: translateY(-1px); }

body[data-theme="dark"] { color-scheme: dark; color: #d7dfda; background: #202929; }
body[data-theme="dark"] .sidebar { background: #222d2d; border-color: #35403e; }
body[data-theme="dark"] .topbar { background: rgba(35, 45, 45, .88); border-color: #35403e; }
body[data-theme="dark"] .exercise-card,
body[data-theme="dark"] .bottom-tools,
body[data-theme="dark"] .range-card,
body[data-theme="dark"] .session-stats,
body[data-theme="dark"] .heading-badge,
body[data-theme="dark"] .range-dialog { background: #293433; border-color: #3a4643; box-shadow: 0 12px 34px rgba(4, 12, 10, .13); }
body[data-theme="dark"] .scenario-box { background: #232e2e; border-color: #394440; }
body[data-theme="dark"] .brand-mark,
body[data-theme="dark"] .avatar { background: #314039; }
body[data-theme="dark"] .nav-link.active,
body[data-theme="dark"] .side-range:hover,
body[data-theme="dark"] .side-range.selected { background: #304039; }
body[data-theme="dark"] .side-note { background: #2c3732; }
body[data-theme="dark"] .select-control select,
body[data-theme="dark"] .segmented,
body[data-theme="dark"] .answer-entry,
body[data-theme="dark"] .dialog-input,
body[data-theme="dark"] .manager-range,
body[data-theme="dark"] .cancel-button,
body[data-theme="dark"] .icon-button,
body[data-theme="dark"] .theme-toggle { color: #d0d9d3; background-color: #222d2d; border-color: #3a4642; }
body[data-theme="dark"] .segment.active { color: #bad0c0; background: #34473c; }
body[data-theme="dark"] .answer-entry input { color: #e0e7e2; }
body[data-theme="dark"] .answer-entry input::placeholder,
body[data-theme="dark"] .dialog-input::placeholder { color: #76837d; }
body[data-theme="dark"] .matrix-cell { color: #97a49c; background: #232e2d; border-color: #37423e; }
body[data-theme="dark"] .matrix-cell.pair { background: #30382f; }
body[data-theme="dark"] .matrix-cell.suited { background: #27362f; }
body[data-theme="dark"] .matrix-cell.offsuit { background: #2d2b38; }
body[data-theme="dark"] .matrix-cell.selected,
body[data-theme="dark"] .matrix-cell.selected.suited { color: #c1dbc7; background: #385444; border-color: #4a6a53; }
body[data-theme="dark"] .matrix-cell.selected.offsuit { color: #d0c8e3; background: #49435b; border-color: #605775; }
body[data-theme="dark"] .matrix-cell.selected.pair { color: #d2d8b4; background: #444936; border-color: #5a6045; }
body[data-theme="dark"] .matrix-divider,
body[data-theme="dark"] .math-breakdown { border-color: #394440; }
body[data-theme="dark"] .range-tip { color: #b1b6a8; background: #34352f; border-color: #4b4839; }
body[data-theme="dark"] .stat-icon.mint { color: #a8cdb2; background: #34473b; }
body[data-theme="dark"] .stat-icon.peach { color: #d2b196; background: #473a32; }
body[data-theme="dark"] .stat-icon.lilac { color: #c3badb; background: #403b4b; }
body[data-theme="dark"] .range-syntax { color: #b9d3c0; background: #34483b; }
body[data-theme="dark"] .scenario-icon { color: #bad0c0; background: #34443a; }
body[data-theme="dark"] .heading-badge { background: #293433; }
body[data-theme="dark"] .badge-flower { color: #dac58e; background: #3b3a31; }
body[data-theme="dark"] .playing-card { color: #384342; background: #f8f8f3; border-color: #e5e8e2; }
body[data-theme="dark"] .playing-card.red { color: #bd7d78; }
body[data-theme="dark"] .check-button,
body[data-theme="dark"] .save-button { color: #f4f7f2; background: #60866f; }
body[data-theme="dark"] .check-button:hover,
body[data-theme="dark"] .save-button:hover { background: #71977e; }
body[data-theme="dark"] .new-task-button { color: #c2d8c8; background: #314338; border-color: #465c4c; }
body[data-theme="dark"] .new-task-button:hover { background: #3a4e40; }
body[data-theme="dark"] .range-preview { color: #b4c8b8; background: #29392f; border-color: #405347; }
body[data-theme="dark"] .range-preview.invalid { color: #d0a59b; background: #3a2c2a; border-color: #573b36; }
body[data-theme="dark"] .manager-range:hover { background: #2e3b37; border-color: #4a5b50; }
body[data-theme="dark"] .manager-empty { color: #9eaaa3; border-color: #48534e; }
body[data-theme="dark"] .toast { color: #c5dccb; background: #2d3e34; border-color: #49614f; }
body[data-theme="dark"] kbd { color: #c0cbc3; background: #2b3632; border-color: #45514b; }
body[data-theme="dark"] :is(.page-heading h1, .exercise-title-row h2, .range-line strong, .range-card-heading h3, .tools-heading h3, .total-count-row strong) { color: #e0e7e2; }
body[data-theme="dark"] :is(.breadcrumb strong, .nav-link, .side-range, .heading-badge strong, .scenario-head, .total-count-row > span, .math-breakdown strong, .session-stat strong, .range-tip strong, .manager-range-main strong, .select-control select) { color: #c2cdc6; }
body[data-theme="dark"] :is(.page-heading p, .breadcrumb, .exercise-subtitle, .scenario-copy, .class-count, .board-hint, .answer-block > label, .answer-footer, .select-control > span, .mode-control > span, .tool-footnote, .matrix-description, .matrix-legend, .total-label, .math-breakdown, .page-footer, .range-kicker, .tools-kicker, .sidebar-label, .sidebar-bottom, .side-note > span:last-child, .dialog-description, .field-label, .notation-help, .manager-range-main small, .manager-range-count, .topbar-caption, .entry-suffix) { color: #9eaaa3; }
body[data-theme="dark"] .nav-icon { color: #a8b8ae; }
body[data-theme="dark"] .feedback.correct { color: #a6d4ad; }
body[data-theme="dark"] .feedback.incorrect, body[data-theme="dark"] .feedback.error { color: #d8a095; }
body[data-theme="dark"] .theme-toggle { color: #d7c995; }

/* More comfortable reading sizes for longer practice sessions. */
.brand-copy small,
.eyebrow,
.sidebar-label,
.sidebar-bottom,
.side-note > span:last-child,
.side-range-count,
.heading-badge small,
.exercise-label,
.scenario-head,
.mode-tag,
.board-caption,
.answer-block > label,
.answer-block > label span,
.tools-kicker,
.range-kicker,
.select-control > span,
.mode-control > span,
.math-breakdown,
.total-label,
.range-tip,
.range-tip strong,
.dialog-description,
.field-label,
.notation-help,
.manager-range-count,
.manager-range-main small { font-size: 11px; }
.nav-link,
.side-range,
.topbar,
.page-heading p,
.heading-badge strong,
.exercise-subtitle,
.scenario-copy,
.class-count,
.range-syntax,
.board-hint,
.entry-suffix,
.check-button,
.feedback,
.answer-footer,
.text-button,
.tool-footnote,
.matrix-description,
.matrix-legend,
.total-count-row > span,
.page-footer,
.dialog-input,
.notation-input,
.range-preview,
.dialog-actions button,
.manager-range-main strong,
.manager-empty,
.toast { font-size: 13px; }
.eyebrow,
.exercise-label,
.scenario-head,
.answer-block > label,
.tools-kicker,
.range-kicker,
.total-label,
.field-label { letter-spacing: .08em; }
.side-range { min-height: 40px; }
.select-control select,
.segment,
.new-task-button,
.cancel-button,
.save-button,
.manager-range-count { font-size: 12px; }
.page-heading p,
.exercise-subtitle { font-size: 14px; }
.scenario-copy,
.class-count { font-size: 13px; }
.matrix-cell { font-size: clamp(8px, .75vw, 10px); }
.range-tip { line-height: 1.55; }
.session-stat small { font-size: 10px; }
.stat-encouragement { font-size: 10px; }
.board-hint { font-size: 11px; }
.dialog-top .range-kicker { font-size: 11px; }
.dialog-actions button { min-height: 40px; }
.theme-toggle { font-size: 17px; }

@media (max-width: 680px) {
  .nav-link { font-size: 13px !important; }
  .matrix-cell { font-size: clamp(9px, 2.7vw, 12px); }
  .page-heading p,
  .exercise-subtitle { font-size: 13px; }
  .page-footer { font-size: 10px; }
}

.app-view { display: none; }
.app-view.is-visible { display: block; }
.ranges-heading { align-items: center; gap: 16px; }
.ranges-heading .new-task-button { flex: 0 0 auto; height: 40px; padding-inline: 14px; font-size: 12px; }
.range-library-list { max-height: min(68vh, 620px); gap: 8px; margin-top: 15px; }
.manager-range.selected { border-color: #d5e5d8; background: #f5f9f5; }
.manager-selected { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; color: #5b7b65; background: #eaf2eb; font-size: 10px; }

.range-dialog { max-height: calc(100vh - 24px); overflow-y: auto; }
.notation-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.notation-entry .notation-input { min-width: 0; }
.apply-range-button { padding: 0 12px; border: 0; border-radius: 6px; color: #f4f4f2; background: #626468; font-size: 11px; font-weight: 600; transition: background .15s, transform .15s; }
.apply-range-button:hover { background: #737579; transform: translateY(-1px); }
.apply-range-button:focus-visible { outline: 2px solid #8d9da8; outline-offset: 2px; }
.editor-matrix-heading { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 8px; margin-top: 15px; color: #85928b; font: 500 10px 'DM Mono', monospace; letter-spacing: .08em; }
.editor-matrix-heading small { grid-column: 1; color: #9da6a0; font: 11px 'DM Sans', sans-serif; letter-spacing: 0; }
.editor-matrix-heading strong { grid-column: 2; grid-row: 1 / span 2; color: #789080; font: 11px 'DM Mono', monospace; }
.range-editor-matrix { gap: 3px; margin-top: 8px; user-select: none; }
.range-editor-cell { padding: 0; cursor: pointer; font-size: clamp(6px, 1.5vw, 10px); }
.range-editor-cell:hover { z-index: 1; border-color: #98b59f; transform: scale(1.08); }
.editor-matrix-hint { margin-top: 8px; color: #9da6a0; font-size: 11px; line-height: 1.5; }
.range-dialog .range-preview { margin-top: 10px; }

body[data-theme="dark"] .editor-matrix-heading,
body[data-theme="dark"] .editor-matrix-hint { color: #9eaaa3; }
body[data-theme="dark"] .editor-matrix-heading strong { color: #bad0c0; }

/* Soft charcoal palette inspired by poker analysis tools. */
:root {
  --green: #686a6e;
  --green-dark: #505257;
  --green-faint: #e9e9e8;
  --green-wash: #f2f2f1;
  --shadow: 0 12px 34px rgba(20, 21, 23, .08);
}

.brand-mark { color: #626469; background: #e8e8e7; }
.brand-mark span:nth-child(2) { color: #a98282; }
.brand-mark span:nth-child(3) { color: #a28d6c; }
.brand-mark span:nth-child(4) { color: #77797c; }
.nav-link.active { color: #505257; background: #e8e8e7; }
.active .nav-icon { color: #686a6e; }
.nav-current-dot,
.pulse-dot,
.online-dot { background: #85878a; }
.pulse-dot { box-shadow: 0 0 0 3px #eeeeed; }
.side-note { background: #eeeeed; }
.side-range:hover,
.side-range.selected { color: #55575b; background: #e9e9e8; }
.icon-button:hover { color: #505257; background: #e9e9e8; }
.answer-entry:focus-within,
.dialog-input:focus { border-color: #a7a8aa; box-shadow: 0 0 0 3px #eeeeed; }
.check-button,
.save-button { background: #64666a; }
.check-button:hover,
.save-button:hover { background: #53555a; }
.feedback.correct,
.text-button:hover { color: #5e6064; }
.stat-icon.mint { color: #65676b; background: #e9e9e8; }
.segment.active { color: #55575b; background: #e9e9e8; }
.new-task-button { color: #55575b; background: #eeeeed; border-color: #dededd; }
.new-task-button:hover { background: #e6e6e5; }
.select-control select:focus { border-color: #a7a8aa; }
.matrix-info:hover { color: #55575b; border-color: #bdbebf; }
.matrix-cell.selected { color: #45474b; border-color: #c9cacc; background: #e1e2e2; box-shadow: inset 0 0 0 1px #eeeeed; }
.matrix-cell.selected.suited { color: #4e5556; border-color: #c7cccc; background: #dfe3e3; }
.matrix-cell.selected.offsuit { color: #56545a; border-color: #d0ced1; background: #e5e3e6; }
.matrix-cell.selected.pair { color: #55564f; border-color: #d0d0c8; background: #e5e5df; }
.legend-suited { background: #dfe3e3; }
.legend-off { background: #e5e3e6; }
.legend-pair { background: #e5e5df; }
.range-syntax { color: #55575b; background: #e9e9e8; }
.scenario-icon { color: #5e6064; background: #e9e9e8; }
.notation-help code { color: #55575b; }
.range-preview.valid { color: #5b5d61; }
.manager-range.selected { border-color: #c9cacc; background: #f0f0ef; }
.manager-selected { color: #55575b; background: #e9e9e8; }
.toast { color: #55575b; background: #f0f0ef; border-color: #dededd; }
.theme-toggle:hover { background: #e9e9e8; border-color: #d6d6d5; }

body[data-theme="dark"] {
  color-scheme: dark;
  color: #d5d5d3;
  background: #252629;
}
body[data-theme="dark"] .sidebar { background: #292a2d; border-color: #3a3b3f; }
body[data-theme="dark"] .topbar { background: rgba(41, 42, 45, .94); border-color: #3a3b3f; }
body[data-theme="dark"] .exercise-card,
body[data-theme="dark"] .bottom-tools,
body[data-theme="dark"] .range-card,
body[data-theme="dark"] .session-stats,
body[data-theme="dark"] .heading-badge,
body[data-theme="dark"] .range-dialog { background: #303135; border-color: #414247; box-shadow: 0 12px 34px rgba(0, 0, 0, .14); }
body[data-theme="dark"] .scenario-box { background: #292a2d; border-color: #414247; }
body[data-theme="dark"] .brand-mark,
body[data-theme="dark"] .avatar { color: #d1d1cf; background: #38393d; }
body[data-theme="dark"] .brand-mark span:nth-child(2) { color: #c18b8b; }
body[data-theme="dark"] .brand-mark span:nth-child(3) { color: #c1a878; }
body[data-theme="dark"] .brand-mark span:nth-child(4) { color: #b6b7b8; }
body[data-theme="dark"] .nav-link.active,
body[data-theme="dark"] .side-range:hover,
body[data-theme="dark"] .side-range.selected { color: #dededc; background: #3a3b3f; }
body[data-theme="dark"] .nav-icon { color: #b9b9b7; }
body[data-theme="dark"] .side-note { background: #333438; }
body[data-theme="dark"] .select-control select,
body[data-theme="dark"] .segmented,
body[data-theme="dark"] .answer-entry,
body[data-theme="dark"] .dialog-input,
body[data-theme="dark"] .manager-range,
body[data-theme="dark"] .cancel-button,
body[data-theme="dark"] .icon-button,
body[data-theme="dark"] .theme-toggle { color: #d0d0ce; background-color: #292a2d; border-color: #414247; }
body[data-theme="dark"] .segment.active { color: #e0e0de; background: #414247; }
body[data-theme="dark"] .answer-entry input { color: #e4e4e2; }
body[data-theme="dark"] .answer-entry input::placeholder,
body[data-theme="dark"] .dialog-input::placeholder { color: #929294; }
body[data-theme="dark"] .matrix-cell { color: #b5b5b3; background: #292a2d; border-color: #414247; }
body[data-theme="dark"] .matrix-cell.pair { background: #37383a; }
body[data-theme="dark"] .matrix-cell.suited { background: #323638; }
body[data-theme="dark"] .matrix-cell.offsuit { background: #363438; }
body[data-theme="dark"] .matrix-cell.selected,
body[data-theme="dark"] .matrix-cell.selected.suited { color: #f0f0ee; background: #55575b; border-color: #707276; }
body[data-theme="dark"] .matrix-cell.selected.offsuit { color: #f0eef1; background: #514f54; border-color: #6c6a70; }
body[data-theme="dark"] .matrix-cell.selected.pair { color: #f0f0ec; background: #50514d; border-color: #6b6c67; }
body[data-theme="dark"] .matrix-divider,
body[data-theme="dark"] .math-breakdown { border-color: #414247; }
body[data-theme="dark"] .range-tip { color: #cbc6b5; background: #393833; border-color: #504d43; }
body[data-theme="dark"] .stat-icon.mint { color: #d0d0ce; background: #3b3c40; }
body[data-theme="dark"] .stat-icon.peach { color: #d2b196; background: #473a32; }
body[data-theme="dark"] .stat-icon.lilac { color: #c3badb; background: #403b4b; }
body[data-theme="dark"] .range-syntax,
body[data-theme="dark"] .scenario-icon { color: #dededc; background: #3d3e42; }
body[data-theme="dark"] .heading-badge { background: #303135; }
body[data-theme="dark"] .badge-flower { color: #dac58e; background: #3b3a31; }
body[data-theme="dark"] .playing-card { color: #38393b; background: #eeeeeb; border-color: #c9c9c6; }
body[data-theme="dark"] .playing-card.red { color: #a66a68; }
body[data-theme="dark"] .check-button,
body[data-theme="dark"] .save-button { color: #f4f4f2; background: #626468; }
body[data-theme="dark"] .check-button:hover,
body[data-theme="dark"] .save-button:hover { background: #737579; }
body[data-theme="dark"] .new-task-button { color: #e0e0de; background: #3b3c40; border-color: #505156; }
body[data-theme="dark"] .new-task-button:hover { background: #45464a; }
body[data-theme="dark"] .range-preview { color: #d2d2d0; background: #333438; border-color: #494a4f; }
body[data-theme="dark"] .range-preview.valid { color: #d2d2d0; }
body[data-theme="dark"] .range-preview.invalid { color: #d0a59b; background: #3a2c2a; border-color: #573b36; }
body[data-theme="dark"] .manager-range:hover { background: #38393d; border-color: #55565b; }
body[data-theme="dark"] .manager-range-placeholder { border-color: #92949a; background: #38393d; }
body[data-theme="dark"] .manager-range-drag-ghost { border-color: #a6b9aa; box-shadow: 0 12px 28px #0009; }
body[data-theme="dark"] .manager-range.selected { border-color: #5c5d62; background: #38393d; }
body[data-theme="dark"] .manager-range-drag { color: #919295; }
body[data-theme="dark"] .manager-range-edit { color: #c0c0be; border-color: #505156; }
body[data-theme="dark"] .manager-range-edit:hover { color: #c1dbc7; border-color: #5c7561; background: #303b33; }
body[data-theme="dark"] .manager-selected { color: #e0e0de; background: #414247; }
body[data-theme="dark"] .manager-empty { color: #b0b0ae; border-color: #55565b; }
body[data-theme="dark"] .toast { color: #e0e0de; background: #38393d; border-color: #55565b; }
body[data-theme="dark"] kbd { color: #d0d0ce; background: #35363a; border-color: #505156; }
body[data-theme="dark"] .feedback.correct { color: #d4d4d2; }
body[data-theme="dark"] .theme-toggle { color: #d7c995; }
body[data-theme="dark"] .theme-toggle:hover { background: #3a3b3f; border-color: #55565b; }
body[data-theme="dark"] .editor-matrix-heading,
body[data-theme="dark"] .editor-matrix-hint { color: #b7b7b5; }
body[data-theme="dark"] .editor-matrix-heading strong { color: #e0e0de; }

@media (max-width: 680px) {
  .ranges-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .ranges-heading .new-task-button { width: 100%; justify-content: center; }
}

/* Keep the training view focused on its section title. */
#trainingView .page-heading { margin-bottom: 0; }
#trainingView .page-heading > div > :not(h1),
#trainingView .heading-badge { display: none !important; }
#trainingSession[hidden] { display: none !important; }

.training-setup { margin-top: 18px; padding: 21px 22px 18px; border: 1px solid #e8eae5; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.training-setup-heading h2 { margin: 7px 0 4px; color: #364246; font: 700 19px 'Manrope', sans-serif; letter-spacing: -.035em; }
.training-setup-heading p { margin: 0; color: #929c98; font-size: 11px; }
.training-range-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: min(48vh, 380px); margin: 17px 0 14px; overflow-y: auto; }
.training-range-group { display: grid; grid-column: 1 / -1; gap: 7px; min-width: 0; }
.training-range-group-heading { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 4px 1px; }
.training-range-group-heading strong { overflow: hidden; color: #59655e; font: 700 13px 'Manrope', sans-serif; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.training-range-group-heading small { flex: 0 0 auto; color: #858e88; font-size: 10px; }
.training-range-group-select { margin-left: auto; padding: 4px 7px; border: 1px solid #dededd; border-radius: 5px; color: #66686b; background: transparent; font-size: 10px; cursor: pointer; }
.training-range-group-select:hover { background: #e9e9e8; }
.training-range-group-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.training-range-option { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #e8eae5; border-radius: 8px; background: #fafaf9; cursor: pointer; }
.training-range-option:hover { border-color: #c9cacc; background: #f1f1f0; }
.training-range-option input { width: 15px; height: 15px; margin: 0; flex: 0 0 auto; accent-color: #626468; }
.training-range-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.training-range-copy strong { overflow: hidden; color: #45474b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.training-range-copy small { overflow: hidden; color: #85878a; font: 10px 'DM Mono', monospace; text-overflow: ellipsis; white-space: nowrap; }
.training-range-source { padding: 3px 5px; border-radius: 4px; color: #707276; background: #e9e9e8; font: 8px 'DM Mono', monospace; }
.training-range-combos { flex: 0 0 auto; color: #85878a; font: 9px 'DM Mono', monospace; }
.training-setup-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid #e8eae5; }
.training-selection-count { color: #85878a; font-size: 10px; }
.training-setup-actions .new-task-button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 0; border-radius: 7px; cursor: pointer; }
.training-setup-actions .new-task-button:disabled { opacity: .45; cursor: not-allowed; }
.training-empty { grid-column: 1 / -1; padding: 14px; border: 1px dashed #c9cacc; border-radius: 8px; color: #85878a; font-size: 11px; }
.training-session-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 10px; color: #85878a; font: 500 9px 'DM Mono', monospace; letter-spacing: .1em; }

body[data-theme="dark"] .training-setup { border-color: #414247; background: #303135; }
body[data-theme="dark"] .training-setup-heading h2 { color: #e0e0de; }
body[data-theme="dark"] .training-setup-heading p { color: #b7b7b5; }
body[data-theme="dark"] .training-range-option { border-color: #414247; background: #292a2d; }
body[data-theme="dark"] .training-range-option:hover { border-color: #5c5d62; background: #38393d; }
body[data-theme="dark"] .training-range-group-heading strong { color: #e0e0de; }
body[data-theme="dark"] .training-range-group-heading small { color: #b7b7b5; }
body[data-theme="dark"] .training-range-group-select { color: #d0d0ce; border-color: #505156; }
body[data-theme="dark"] .training-range-group-select:hover { background: #3a3b3f; }
body[data-theme="dark"] .training-range-option input { accent-color: #a8a9ac; }
body[data-theme="dark"] .training-range-copy strong { color: #e0e0de; }
body[data-theme="dark"] .training-range-copy small,
body[data-theme="dark"] .training-range-combos { color: #b7b7b5; }
body[data-theme="dark"] .training-range-source { color: #d0d0ce; background: #414247; }
body[data-theme="dark"] .training-setup-actions { border-color: #414247; }
body[data-theme="dark"] .training-selection-count,
body[data-theme="dark"] .training-session-toolbar { color: #b7b7b5; }
body[data-theme="dark"] .training-empty { color: #b7b7b5; border-color: #55565b; }

@media (max-width: 680px) {
  .training-setup { padding: 18px 15px 15px; }
  .training-range-list { grid-template-columns: minmax(0, 1fr); max-height: 45vh; }
  .training-range-group-options { grid-template-columns: minmax(0, 1fr); }
  .training-range-option { gap: 8px; }
  .training-range-combos { font-size: 8px; }
}

.training-library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.training-library-heading .training-setup-heading { min-width: 0; }
.training-library-heading .new-task-button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 0; border-radius: 7px; cursor: pointer; }
.training-list { display: grid; gap: 9px; margin-top: 18px; }
.training-list-empty { display: grid; gap: 5px; padding: 19px; border: 1px dashed #c9cacc; border-radius: 8px; color: #85878a; text-align: center; }
.training-list-empty strong { color: #55575b; font-size: 12px; }
.training-list-empty span { font-size: 10px; }
.training-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid #e1e1e0; border-radius: 8px; background: #fafaf9; }
.training-item-copy { min-width: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; }
.training-item-copy h3 { overflow: hidden; margin: 0; color: #45474b; font: 700 13px 'Manrope', sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.training-item-copy > span { color: #85878a; font: 9px 'DM Mono', monospace; }
.training-item-copy p { grid-column: 1 / -1; overflow: hidden; margin: 0; color: #85878a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.training-item-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.training-start { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 11px; border: 0; border-radius: 6px; color: #f4f4f2; background: #626468; font-size: 10px; font-weight: 600; text-align: center; cursor: pointer; }
.training-start:hover { background: #53555a; }
.training-start:disabled { opacity: .45; cursor: not-allowed; }
.training-delete { width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid #e1e1e0; border-radius: 7px; color: #85878a; background: transparent; font-size: 17px; }
.training-delete:hover { color: #a46156; border-color: #e3c3bc; background: #f7e9e4; }
.range-dialog.training-dialog { width: min(570px, calc(100vw - 28px)); }
.training-dialog .training-range-list { max-height: min(40vh, 310px); }
body[data-theme="dark"] .training-dialog { color: #d5d5d3; }
body[data-theme="dark"] .training-dialog .dialog-top h2 { color: #e0e0de; }
body[data-theme="dark"] .training-dialog .field-label { color: #b7b7b5; }

body[data-theme="dark"] .training-list-empty { color: #b7b7b5; border-color: #55565b; }
body[data-theme="dark"] .training-list-empty strong { color: #e0e0de; }
body[data-theme="dark"] .training-item { border-color: #414247; background: #292a2d; }
body[data-theme="dark"] .training-item-copy h3 { color: #e0e0de; }
body[data-theme="dark"] .training-item-copy > span,
body[data-theme="dark"] .training-item-copy p { color: #b7b7b5; }
body[data-theme="dark"] .training-start { color: #f4f4f2; background: #626468; }
body[data-theme="dark"] .training-start:hover { background: #737579; }
body[data-theme="dark"] .training-delete { color: #c0c0be; border-color: #505156; }
body[data-theme="dark"] .training-delete:hover { color: #e2b2a8; border-color: #74534c; background: #3a2c2a; }

.training-window:not([open]) { display: none; }
.training-window[open] { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; color: #303b40; background: #f3f3ef; box-shadow: none; }
.training-window::backdrop { background: rgba(15, 15, 17, .82); backdrop-filter: blur(3px); }
.training-window-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 10px 26px; border-bottom: 1px solid #dededd; background: #fcfcfa; }
.training-window-header > div { display: grid; gap: 3px; min-width: 0; }
.training-window-header > div > span { color: #85878a; font: 500 8px 'DM Mono', monospace; letter-spacing: .12em; }
.training-window-header strong { overflow: hidden; color: #45474b; font: 700 14px 'Manrope', sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.training-window-close { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 34px; padding: 0 11px; border: 1px solid #dededd; border-radius: 7px; color: #55575b; background: transparent; font-size: 10px; cursor: pointer; }
.training-window-close:hover { background: #e9e9e8; }
.training-window-close span { font-size: 17px; line-height: 1; }
.training-window-content { width: min(1230px, 100%); min-height: 0; overflow-y: auto; padding: 27px 32px 20px; margin: 0 auto; }
.training-window .training-layout { margin-top: 0; }
.training-window .page-footer { margin-bottom: 8px; }
body[data-theme="dark"] .training-window[open] { color: #d5d5d3; background: #252629; }
body[data-theme="dark"] .training-window-header { border-color: #414247; background: #292a2d; }
body[data-theme="dark"] .training-window-header strong { color: #e0e0de; }
body[data-theme="dark"] .training-window-close { color: #d0d0ce; border-color: #505156; }
body[data-theme="dark"] .training-window-close:hover { background: #3a3b3f; }

@media (max-width: 680px) {
  .training-library-heading { align-items: flex-start; flex-direction: column; }
  .training-library-heading .new-task-button { width: 100%; justify-content: center; }
  .training-item { align-items: stretch; flex-direction: column; }
  .training-item-actions { width: 100%; }
  .training-start { flex: 1; justify-content: center; }
  .training-window-header { padding-inline: 14px; }
  .training-window-content { padding: 18px 14px 16px; }
}

.training-mode-fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0; padding: 0; border: 0; }
.training-mode-fieldset legend { grid-column: 1 / -1; margin-bottom: 7px; padding: 0; color: #85878a; font-size: 10px; font-weight: 600; }
.training-mode-choice { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 10px; border: 1px solid #e1e1e0; border-radius: 8px; background: #fafaf9; cursor: pointer; }
.training-mode-choice:has(input:checked) { border-color: #85878a; background: #f0f0ee; }
.training-mode-choice input { width: 14px; height: 14px; flex: 0 0 auto; margin: 2px 0 0; accent-color: #626468; }
.training-mode-choice > span { display: grid; gap: 3px; min-width: 0; }
.training-mode-choice strong { color: #45474b; font-size: 10px; }
.training-mode-choice small { color: #85878a; font-size: 9px; line-height: 1.4; }
body[data-theme="dark"] .training-mode-fieldset legend { color: #b7b7b5; }
body[data-theme="dark"] .training-mode-choice { border-color: #414247; background: #292a2d; }
body[data-theme="dark"] .training-mode-choice:has(input:checked) { border-color: #77787c; background: #38393d; }
body[data-theme="dark"] .training-mode-choice input { accent-color: #aaa; }
body[data-theme="dark"] .training-mode-choice strong { color: #e0e0de; }
body[data-theme="dark"] .training-mode-choice small { color: #b7b7b5; }

@media (max-width: 560px) {
  .training-mode-fieldset { grid-template-columns: minmax(0, 1fr); }
}

/* Larger cards and hand grid for easier reading during practice. */
.board-area {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px 12px;
  padding-top: 15px;
}
.board-area[hidden] { display: none; }
.board-caption { font-size: 12px; }
.board-cards { gap: 8px; }
.playing-card {
  box-sizing: border-box;
  width: 72px;
  min-width: 72px;
  flex: 0 0 72px;
  height: 102px;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  border: 2px solid #c8c9cb;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 0 #a8a9ab;
}
.card-rank {
  align-self: end;
  font: 900 43px/.98 Georgia, 'Times New Roman', serif;
  -webkit-text-stroke: .55px currentColor;
}
.card-suit {
  align-self: start;
  font: 900 44px/.92 Georgia, 'Times New Roman', serif;
  -webkit-text-stroke: .65px currentColor;
}
.playing-card.suit-spades { color: #111214; }
.playing-card.suit-hearts { color: #d21f2b; }
.playing-card.suit-diamonds { color: #239fe8; }
.playing-card.suit-clubs { color: #00b968; }
body[data-theme="dark"] .playing-card.suit-spades { color: #111214; }
body[data-theme="dark"] .playing-card.suit-hearts { color: #d21f2b; }
body[data-theme="dark"] .playing-card.suit-diamonds { color: #239fe8; }
body[data-theme="dark"] .playing-card.suit-clubs { color: #00b968; }
.matrix-info { width: 25px; height: 25px; }
.board-hint { grid-column: 1 / -1; margin-left: 0; font-size: 13px; }
.training-layout { grid-template-columns: minmax(400px, 1.32fr) minmax(335px, .96fr); }
.hand-matrix { gap: 4px; }
.matrix-cell { font-size: clamp(11px, .95vw, 13px); border-radius: 4px; }
.range-card { padding: 22px 21px 19px; }
.range-card-heading h3 { font-size: 18px; }
.matrix-description,
.matrix-legend { font-size: 13px; }

/* Lift the small interface labels and controls across both sections. */
.brand-copy small,
.sidebar-label,
.sidebar-bottom,
.side-range-count,
.heading-badge small,
.exercise-label,
.scenario-head,
.mode-tag,
.answer-block > label,
.answer-block > label span,
.tools-kicker,
.range-kicker,
.select-control > span,
.mode-control > span,
.math-breakdown,
.total-label,
.range-tip,
.dialog-description,
.field-label,
.notation-help,
.manager-range-count,
.manager-range-main small,
.session-stat small,
.training-window-header > div > span,
.training-mode-fieldset legend,
.training-mode-choice small,
.training-range-copy small,
.training-range-source,
.training-range-combos,
.training-selection-count,
.training-item-copy > span {
  font-size: 12px;
}
.nav-link,
.side-range,
.topbar,
.page-heading p,
.heading-badge strong,
.exercise-subtitle,
.scenario-copy,
.class-count,
.range-syntax,
.entry-suffix,
.check-button,
.feedback,
.answer-footer,
.text-button,
.tool-footnote,
.total-count-row > span,
.page-footer,
.select-control select,
.segment,
.new-task-button,
.side-note strong,
.cancel-button,
.save-button,
.dialog-input,
.notation-input,
.apply-range-button,
.range-preview,
.dialog-actions button,
.manager-range-main strong,
.manager-empty,
.manager-selected,
.toast,
.training-list-empty,
.training-item-copy p,
.training-start,
.training-delete,
.training-window-close,
.range-tip strong,
.matrix-info,
.training-mode-choice strong,
.training-range-copy strong,
.training-mode-fieldset legend {
  font-size: 14px;
}
.eyebrow,
.exercise-label,
.scenario-head,
.answer-block > label,
.tools-kicker,
.range-kicker,
.total-label,
.field-label { letter-spacing: .06em; }
.answer-entry { height: 49px; }
.check-button,
.save-button,
.cancel-button,
.dialog-actions button { min-height: 42px; }
.training-window-header strong { font-size: 17px; }
.training-setup-heading h2 { font-size: 21px; }
.training-setup-heading p,
.training-mode-choice strong { font-size: 14px; }
.answer-entry .check-button { justify-content: center; gap: 0; min-width: 112px; min-height: 39px; }
.answer-footer { justify-content: flex-end; }
.session-stat strong { font-size: 16px; }
.stat-encouragement { font-size: 12px; }

@media (max-width: 1180px) {
  .training-layout { grid-template-columns: minmax(350px, 1.12fr) minmax(300px, .95fr); }
}
@media (max-width: 900px) {
  .training-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); }
}
@media (max-width: 680px) {
  .nav-link { font-size: 14px !important; }
  .training-layout { grid-template-columns: minmax(0, 1fr); }
  .matrix-cell { font-size: clamp(11px, 2.7vw, 14px); }
  .playing-card { width: 64px; min-width: 64px; flex-basis: 64px; height: 91px; }
  .card-rank { font-size: 38px; }
  .card-suit { font-size: 39px; }
  .board-area { grid-template-columns: auto minmax(0, 1fr); }
  .training-window-content { padding: 20px 14px 18px; }
  .page-footer { font-size: 12px; }
}
@media (max-width: 390px) {
  .scenario-head { font-size: 12px; }
  .mode-tag { font-size: 11px; }
  .range-line strong { font-size: 16px; }
  .answer-block > label span { display: inline; margin: 0 0 0 5px; }
}

.training-ranges-heading { grid-template-columns: minmax(0, 1fr) auto auto; }
.training-ranges-heading .training-select-all {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  padding: 5px 8px;
  border: 1px solid #dededd;
  border-radius: 6px;
  color: #55575b;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.training-ranges-heading .training-select-all:hover { background: #e9e9e8; }
.training-ranges-heading .training-select-all:disabled { opacity: .5; cursor: not-allowed; }
body[data-theme="dark"] .training-ranges-heading .training-select-all { color: #d0d0ce; border-color: #505156; }
body[data-theme="dark"] .training-ranges-heading .training-select-all:hover { background: #3a3b3f; }

.sessions-heading { margin-bottom: 18px; }
.sessions-history-card .tools-heading h3 { font-size: 17px; }
.training-history-list { display: grid; gap: 8px; margin-top: 15px; }
.training-history-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: stretch; gap: 8px; }
.training-history-empty { padding: 15px; border: 1px dashed #c9cacc; border-radius: 8px; color: #85878a; font-size: 13px; text-align: center; }
.training-history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid #e1e1e0; border-radius: 8px; background: #fafaf9; }
.training-history-copy { min-width: 0; display: grid; gap: 4px; }
.training-history-copy strong { overflow: hidden; color: #45474b; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.training-history-copy span,
.training-history-item time { color: #85878a; font-size: 12px; }
.training-history-item time { flex: 0 0 auto; }
.training-history-item { width: 100%; font: inherit; text-align: left; color: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.training-history-item:hover { border-color: #b7b9bc; background: #f1f1f0; }
.training-history-item:focus-visible,
.session-filter:focus-visible,
.session-back-button:focus-visible { outline: 2px solid #8d9da8; outline-offset: 2px; }
.training-history-menu { position: relative; display: grid; place-items: center; }
.training-history-menu-toggle { display: grid; place-items: center; width: 38px; min-height: 38px; padding: 0 0 4px; border: 1px solid #e1e1e0; border-radius: 8px; color: #707276; background: #fafaf9; font-size: 20px; line-height: 1; letter-spacing: 1px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.training-history-menu-toggle:hover,
.training-history-menu-toggle[aria-expanded="true"] { color: #45474b; border-color: #b7b9bc; background: #f1f1f0; }
.training-history-menu-toggle:focus-visible,
.training-history-delete:focus-visible { outline: 2px solid #8d9da8; outline-offset: 2px; }
.training-history-menu-popover { position: absolute; z-index: 5; top: calc(100% + 4px); right: 0; display: grid; min-width: 132px; padding: 4px; border: 1px solid #e1e1e0; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / 14%); }
.training-history-menu-popover[hidden] { display: none !important; }
.training-history-delete { width: 100%; padding: 8px 10px; border: 0; border-radius: 5px; color: #a75f58; background: transparent; font: 600 12px 'DM Sans', sans-serif; text-align: left; cursor: pointer; transition: background .15s; }
.training-history-delete:hover { background: #f8eeec; }
.training-history-open { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: #626468; font-size: 12px; font-weight: 600; }
.session-detail-panel { padding: 19px; border: 1px solid #e1e1e0; border-radius: 10px; background: #fafaf9; }
.session-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.session-back-button { padding: 6px 9px; border: 1px solid #dededd; border-radius: 6px; color: #626468; background: transparent; font-size: 12px; }
.session-back-button:hover { background: #f0f0ef; }
.session-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 17px 0; }
.session-detail-heading h2 { margin: 0; color: #45474b; font: 700 21px 'Manrope', sans-serif; }
.session-detail-heading time { display: block; margin-top: 5px; color: #85878a; font-size: 12px; }
.session-detail-mode { padding: 6px 9px; border: 1px solid #e1e1e0; border-radius: 6px; color: #707276; font-size: 11px; white-space: nowrap; }
.session-detail-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.session-detail-stats > div { display: grid; gap: 6px; min-width: 0; padding: 12px; border: 1px solid #e1e1e0; border-radius: 7px; background: #fff; }
.session-detail-stats > div > span { color: #85878a; font: 500 10px 'DM Mono', monospace; letter-spacing: .04em; }
.session-detail-stats strong { color: #45474b; font: 700 20px 'Manrope', sans-serif; }
.session-detail-filters { display: flex; gap: 7px; margin: 18px 0 11px; }
.session-filter { padding: 7px 10px; border: 1px solid #dededd; border-radius: 6px; color: #707276; background: transparent; font-size: 12px; }
.session-filter:hover { background: #f0f0ef; }
.session-filter.active { color: #fff; border-color: #626468; background: #626468; }
.session-answer-list { display: grid; gap: 6px; }
.session-answer-item { padding: 6px 9px; border: 1px solid #e1e1e0; border-left: 3px solid #8d9a91; border-radius: 7px; background: #fff; }
.session-answer-item[role="button"] { cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.session-answer-item[role="button"]:hover { border-color: #aeb0b2; background: #fafaf9; transform: translateY(-1px); }
.session-answer-item[role="button"]:focus-visible { outline: 2px solid #89969f; outline-offset: 2px; }
.session-answer-item.wrong { border-left-color: #bd7770; }
.session-answer-item.skipped { border-left-color: #b19a6b; }
.session-answer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #85878a; font: 500 10px 'DM Mono', monospace; letter-spacing: .06em; }
.session-answer-actions { display: flex; align-items: center; gap: 6px; }
.session-answer-replay { color: #85878a; font: 600 10px 'DM Sans', sans-serif; letter-spacing: 0; text-transform: none; }
.session-answer-item[role="button"]:hover .session-answer-replay,
.session-answer-item[role="button"]:focus-visible .session-answer-replay { color: #45474b; }
.session-answer-status { padding: 3px 6px; border-radius: 4px; color: #587861; background: #e9f1eb; font: 600 10px 'DM Sans', sans-serif; letter-spacing: 0; }
.session-answer-status.wrong { color: #a75f58; background: #f5e9e6; }
.session-answer-status.skipped { color: #927c50; background: #f4efdf; }
.session-answer-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .8fr); align-items: center; gap: 9px; margin-top: 5px; }
.session-answer-prompt { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 7px; min-width: 0; }
.session-answer-prompt h3 { margin: 0; color: #45474b; font: 700 13px 'Manrope', sans-serif; }
.session-answer-prompt > code { display: inline-block; max-width: min(60vw, 380px); overflow: hidden; color: #707276; font: 11px/1.2 'DM Mono', monospace; text-overflow: ellipsis; white-space: nowrap; }
.session-answer-cards { display: flex; gap: 3px; margin: 0; }
.session-answer-cards .playing-card { box-sizing: border-box; width: 32px; min-width: 32px; flex: 0 0 32px; height: 44px; grid-template-rows: 1fr 1fr; gap: 0; border-width: 1px; border-radius: 4px; box-shadow: 0 1px 0 #a8a9ab; }
.session-answer-cards .card-rank { font-size: 16px; line-height: 1; -webkit-text-stroke: .25px currentColor; }
.session-answer-cards .card-suit { font-size: 16px; line-height: 1; -webkit-text-stroke: .25px currentColor; }
.session-answer-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; padding: 5px 6px; border: 1px solid #e1e1e0; border-radius: 6px; background: #f6f6f5; }
.session-answer-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.session-answer-values > div { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; min-width: 0; padding: 3px 6px; border: 1px solid #e1e1e0; border-radius: 4px; background: #fff; }
.session-answer-values > div > span { color: #85878a; font: 500 11px 'DM Mono', monospace; letter-spacing: .02em; white-space: nowrap; }
.session-answer-values strong { color: #45474b; font: 700 18px 'Manrope', sans-serif; }
.session-answer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; min-height: 0; margin: 0; font-size: 11px; }
.session-answer-difference { color: #a75f58; font-size: 11px; font-weight: 600; line-height: 1.25; white-space: normal; }
.session-answer-time { flex: 0 0 auto; margin-left: auto; }
.session-answer-difference.is-zero { color: #64816b; }
.session-answer-time { color: #85878a; }
.session-detail-unavailable { margin-top: 17px; padding: 15px; border: 1px dashed #c9cacc; border-radius: 8px; color: #85878a; font-size: 13px; line-height: 1.55; }
body[data-theme="dark"] .training-history-copy strong { color: #e0e0de; }
body[data-theme="dark"] .training-history-empty { color: #b7b7b5; border-color: #55565b; }
body[data-theme="dark"] .training-history-menu-toggle { color: #b7b7b5; border-color: #414247; background: #292a2d; }
body[data-theme="dark"] .training-history-menu-toggle:hover,
body[data-theme="dark"] .training-history-menu-toggle[aria-expanded="true"] { color: #e0e0de; border-color: #626368; background: #343539; }
body[data-theme="dark"] .training-history-menu-popover { border-color: #414247; background: #303135; box-shadow: 0 8px 24px rgb(0 0 0 / 35%); }
body[data-theme="dark"] .training-history-delete { color: #e0aaa3; }
body[data-theme="dark"] .training-history-delete:hover { background: #493432; }
body[data-theme="dark"] .training-history-item { border-color: #414247; background: #292a2d; }
body[data-theme="dark"] .training-history-item:hover { border-color: #626368; background: #343539; }
body[data-theme="dark"] .training-history-copy span,
body[data-theme="dark"] .training-history-item time { color: #b7b7b5; }
body[data-theme="dark"] .training-history-open { color: #dededc; }
body[data-theme="dark"] .session-detail-panel { border-color: #414247; background: #292a2d; }
body[data-theme="dark"] .session-back-button,
body[data-theme="dark"] .session-detail-mode,
body[data-theme="dark"] .session-filter { color: #c0c0be; border-color: #505156; }
body[data-theme="dark"] .session-back-button:hover,
body[data-theme="dark"] .session-filter:hover { background: #38393d; }
body[data-theme="dark"] .session-detail-heading h2,
body[data-theme="dark"] .session-detail-stats strong,
body[data-theme="dark"] .session-answer-prompt h3,
body[data-theme="dark"] .session-answer-values strong { color: #e0e0de; }
body[data-theme="dark"] .session-detail-heading time,
body[data-theme="dark"] .session-detail-stats > div > span,
body[data-theme="dark"] .session-answer-top,
body[data-theme="dark"] .session-answer-prompt > code,
body[data-theme="dark"] .session-answer-values > div > span,
body[data-theme="dark"] .session-answer-time { color: #b7b7b5; }
body[data-theme="dark"] .session-detail-stats > div,
body[data-theme="dark"] .session-answer-item { border-color: #414247; background: #303135; }
body[data-theme="dark"] .session-answer-result { border-color: #414247; background: #292a2d; }
body[data-theme="dark"] .session-answer-values > div { border-color: #414247; background: #36373b; }
body[data-theme="dark"] .session-answer-item.wrong { border-left-color: #cb8178; }
body[data-theme="dark"] .session-answer-item.skipped { border-left-color: #c2aa72; }
body[data-theme="dark"] .session-answer-item[role="button"]:hover { border-color: #626368; background: #37383c; }
body[data-theme="dark"] .session-answer-replay { color: #b7b7b5; }
body[data-theme="dark"] .session-answer-item[role="button"]:hover .session-answer-replay,
body[data-theme="dark"] .session-answer-item[role="button"]:focus-visible .session-answer-replay { color: #f0f0ee; }
body[data-theme="dark"] .session-filter.active { color: #f4f4f2; border-color: #626468; background: #626468; }
body[data-theme="dark"] .session-detail-unavailable { color: #b7b7b5; border-color: #55565b; }
body[data-theme="dark"] .session-answer-status { color: #c1d6c6; background: #35453b; }
body[data-theme="dark"] .session-answer-status.wrong { color: #e0aaa3; background: #493432; }
body[data-theme="dark"] .session-answer-status.skipped { color: #d9c798; background: #484333; }
body[data-theme="dark"] .session-answer-difference { color: #dfa098; }
body[data-theme="dark"] .session-answer-difference.is-zero { color: #b6d0bd; }
@media (max-width: 680px) {
  .training-history-item { align-items: flex-start; flex-direction: column; gap: 6px; }
  .nav-link { flex: 1 1 0; width: auto; min-width: 0; margin: 0 2px; padding: 0 3px; gap: 5px; font-size: clamp(9px, 2.7vw, 12px) !important; white-space: nowrap; }
  .nav-icon { width: auto; }
  .session-detail-panel { padding: 14px; }
  .session-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-detail-heading { align-items: flex-start; flex-direction: column; }
  .session-detail-filters { overflow-x: auto; padding: 2px; }
  .session-filter { flex: 0 0 auto; }
  .session-answer-body { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .session-answer-result { max-width: none; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .session-answer-body { grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr); gap: 9px; }
}
#rangeDialog #saveRange { justify-content: center; text-align: center; }
body[data-theme="dark"] .apply-range-button { color: #f4f4f2; background: #626468; }
.range-card-heading { margin-bottom: 14px; }
.range-card-heading h3 { margin-top: 0; }
.matrix-divider { margin-top: 13px; }
.ranges-library-card .tools-heading { align-items: center; justify-content: flex-start; gap: 14px; }
.range-folder-create { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #dae7de; border-radius: 6px; color: #547761; background: #edf3ee; font-size: 10px; font-weight: 600; }
.range-folder-create:hover { background: #e4eee6; }
.range-manager-list.range-library-list { display: grid; gap: 10px; }
.range-unfiled-zone { display: grid; min-width: 0; }
.range-unfiled-zone > .range-folder-dropzone:empty { min-height: 8px; }
.range-unfiled-zone.is-drop-target > .range-folder-dropzone:empty { min-height: 34px; padding: 6px 8px; border: 1px dashed #89a98f; border-radius: 7px; background: #f0f6f1; }
.range-unfiled-zone.is-drop-target > .range-folder-dropzone:empty::after { content: 'Переместить в начало списка'; color: #718578; font-size: 10px; text-align: center; }
.range-folder-section { display: grid; gap: 6px; min-width: 0; padding: 8px; border: 1px solid #e7eae5; border-radius: 9px; background: #fafbf9; transition: background .15s, border-color .15s, box-shadow .15s; }
.range-folder-section.is-collapsed { gap: 0; }
.range-folder-section.is-drop-target { border-color: #89a98f; background: #f0f6f1; box-shadow: 0 0 0 2px #e3eee5; }
.range-folder-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 1px 2px; }
.range-folder-toggle { display: flex; align-items: center; gap: 7px; flex: 1 1 auto; min-width: 0; padding: 3px 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.range-folder-toggle:hover strong { color: #547761; }
.range-folder-chevron { flex: 0 0 12px; color: #89958d; font-size: 13px; line-height: 1; transition: transform .16s ease; }
.range-folder-section.is-collapsed .range-folder-chevron { transform: rotate(-90deg); }
.range-folder-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.range-folder-heading strong { overflow: hidden; color: #58685e; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.range-folder-heading small { flex: 0 0 auto; color: #9ba69f; font-size: 9px; }
.range-folder-actions { display: flex; gap: 4px; }
.range-folder-action { width: 25px; height: 24px; padding: 0; border: 1px solid #e1e5df; border-radius: 5px; color: #858d88; background: transparent; font-size: 13px; }
.range-folder-action:hover { color: #587461; border-color: #c9d8cb; background: #f3f7f3; }
.range-folder-remove:hover { color: #a75f58; border-color: #ead2ce; background: #fbf3f2; }
.range-folder-dropzone { display: grid; gap: 6px; min-height: 34px; }
.range-folder-dropzone[hidden] { display: none; }
.range-folder-empty { display: grid; min-height: 34px; place-items: center; border: 1px dashed #e1e6df; border-radius: 6px; color: #a2aaa5; font-size: 9px; }
body[data-theme="dark"] .range-folder-create { color: #e0e0de; border-color: #505156; background: #3b3c40; }
body[data-theme="dark"] .range-folder-create:hover { background: #45464a; }
body[data-theme="dark"] .range-folder-section { border-color: #414247; background: #292a2d; }
body[data-theme="dark"] .range-folder-section.is-drop-target { border-color: #899f8d; background: #333b35; box-shadow: 0 0 0 2px #414d43; }
body[data-theme="dark"] .range-unfiled-zone.is-drop-target > .range-folder-dropzone:empty { border-color: #899f8d; background: #333b35; }
body[data-theme="dark"] .range-unfiled-zone.is-drop-target > .range-folder-dropzone:empty::after { color: #a9b8ac; }
body[data-theme="dark"] .range-folder-heading strong { color: #d0d0ce; }
body[data-theme="dark"] .range-folder-heading small { color: #a0a09e; }
body[data-theme="dark"] .range-folder-toggle:hover strong { color: #c1dbc7; }
body[data-theme="dark"] .range-folder-action { color: #c0c0be; border-color: #505156; }
body[data-theme="dark"] .range-folder-action:hover { color: #c1dbc7; border-color: #5c7561; background: #303b33; }
body[data-theme="dark"] .range-folder-remove:hover { color: #e0aaa3; border-color: #694b47; background: #493432; }
body[data-theme="dark"] .range-folder-empty { color: #a0a09e; border-color: #505156; }
body[data-theme="dark"] .apply-range-button:hover { background: #737579; }

.topbar-right { display: flex; align-items: center; gap: 8px; }
.account-button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 10px 4px 5px; border: 1px solid #dfe5df; border-radius: 18px; color: #52665a; background: #fff; font-size: 11px; font-weight: 600; cursor: pointer; }
.account-button:hover { border-color: #b9cbbd; background: #f6f9f6; }
.account-button .avatar { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #547761; background: #edf3ee; font-size: 13px; }
.account-dialog { width: min(440px, calc(100vw - 28px)); max-height: min(88vh, 680px); overflow-y: auto; }
.account-dialog::backdrop { background: rgb(22 27 24 / 48%); backdrop-filter: blur(2px); }
.account-dialog form { display: grid; gap: 16px; }
.account-dialog .dialog-top { margin-bottom: 0; }
.account-description { margin: 0; color: #78827b; font-size: 12px; line-height: 1.55; }
.account-description a { color: #547761; }
.account-submit { width: 100%; justify-content: center; }
.account-user-card { display: grid; gap: 5px; padding: 12px; border: 1px solid #e5eae5; border-radius: 9px; background: #f8faf8; }
.account-user-card > span, .account-user-card small { color: #7e8780; font-size: 10px; }
.account-user-card strong { overflow-wrap: anywhere; color: #43584a; font-size: 12px; }
.account-message { min-height: 16px; color: #587461; font-size: 11px; line-height: 1.45; }
.account-message.is-error { color: #a75f58; }
.account-backup { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid #e8ece8; }
.account-backup > strong { color: #5b675e; font-size: 11px; }
.account-backup > small { color: #858d87; font-size: 10px; line-height: 1.45; }
.account-backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body[data-theme="dark"] .account-button { color: #dededc; border-color: #505156; background: #292a2d; }
body[data-theme="dark"] .account-button:hover { border-color: #69756b; background: #343539; }
body[data-theme="dark"] .account-button .avatar { color: #d0e0d4; background: #354239; }
body[data-theme="dark"] .account-description,
body[data-theme="dark"] .account-user-card > span,
body[data-theme="dark"] .account-user-card small,
body[data-theme="dark"] .account-backup > small { color: #b7b7b5; }
body[data-theme="dark"] .account-description a { color: #c1dbc7; }
body[data-theme="dark"] .account-user-card { border-color: #414247; background: #292a2d; }
body[data-theme="dark"] .account-user-card strong,
body[data-theme="dark"] .account-backup > strong { color: #e0e0de; }
body[data-theme="dark"] .account-backup { border-color: #414247; }
body[data-theme="dark"] .account-message { color: #c1dbc7; }
body[data-theme="dark"] .account-message.is-error { color: #e0aaa3; }
@media (max-width: 680px) {
  .topbar-right { gap: 5px; }
  .account-button { min-height: 32px; gap: 5px; padding-right: 7px; font-size: 10px; }
}
