:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101416;
  color: #e9efed;
  --canvas: #101416;
  --surface: #171d20;
  --surface-strong: #20282c;
  --edge: #324047;
  --edge-soft: #273239;
  --ink-muted: #9aabae;
  --amber: #e8bd58;
  --amber-strong: #f3cf72;
  --green: #3dba7c;
  --green-deep: #226a4d;
  --blue: #3b78b5;
  --red: #b6484e;
  --range-fold: #8b949b;
  --range-call: #43b95a;
  --range-raise: #efb33f;
  --range-all-in: #d9453e;
}

* { box-sizing: border-box; }
body { min-width: 0; margin: 0; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--amber-strong); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; }
.muted { color: var(--ink-muted); line-height: 1.55; }
.eyebrow { margin-bottom: 6px; color: var(--amber); font-size: 11px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.local-preview-badge { display: inline-block; margin-left: 8px; padding: 2px 6px; border: 1px solid #4d9c78; border-radius: 3px; color: #b8e5cb; font-size: 10px; font-weight: 800; letter-spacing: 0; text-transform: none; vertical-align: 1px; }
.hidden { display: none !important; }

.login {
  width: min(760px, calc(100% - 32px));
  margin: max(9vh, 56px) auto;
  padding: 30px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: linear-gradient(180deg, #1b2225 0%, #151b1e 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}
.login-top, .brand-row, .page-head, .panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.login h1 { margin-bottom: 0; color: #f4f6f5; font-size: clamp(29px, 4vw, 42px); }
.test-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 25px; }
.test-accounts button {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: #20292d;
  color: #e4ece9;
  text-align: left;
}
.test-accounts button:hover { border-color: #5e9d82; background: #263337; }

.layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
  padding: 20px 13px;
  border-right: 1px solid var(--edge);
  background: #161c1f;
}
.brand { min-width: 0; color: #f0f4f3; font-size: 21px; font-weight: 800; line-height: 1.15; }
.brand small { display: block; margin-top: 7px; color: var(--ink-muted); font-size: 11px; font-weight: 500; }
.language-switch { display: inline-flex; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--edge); border-radius: 5px; background: #101517; }
.language-switch button { min-width: 48px; padding: 6px 8px; border: 0; border-left: 1px solid var(--edge); background: transparent; color: var(--ink-muted); font-size: 12px; }
.language-switch button:first-child { border-left: 0; }
.language-switch button.active { background: #2b553f; color: #f2f8f5; }
.nav { display: grid; gap: 7px; margin-top: 31px; }
.nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #2d393f;
  border-radius: 5px;
  background: #20282c;
  color: #dbe3e1;
  text-align: left;
}
.nav button:hover { border-color: #5e8576; background: #253237; }
.nav button.active { border-color: #4b9a72; background: #214a39; color: #f3faf6; }
.nav-dot { width: 6px; height: 6px; border-radius: 999px; background: #708184; }
.nav button.active .nav-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(232, 189, 88, .14); }
.account-menu { display: grid; gap: 7px; margin-top: auto; padding-top: 24px; }
.account-menu button { overflow-wrap: anywhere; padding: 9px 10px; border: 1px solid var(--edge-soft); border-radius: 5px; background: #1d2529; color: #cbd7d4; text-align: left; }
.account-menu button:last-child { color: var(--ink-muted); }

.content { min-width: 0; width: 100%; max-width: 1640px; padding: 31px 38px 58px; }
.page-head { align-items: center; margin-bottom: 21px; }
.page-head h1 { margin-bottom: 0; color: #f2f5f4; font-size: clamp(26px, 3vw, 34px); }
.page-detail { max-width: 680px; margin: 7px 0 0; }
.page-language { display: none; }
.panel, .tool-panel, .result-shell, .guidance-result {
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .12);
}
.panel { padding: 18px; margin-bottom: 16px; }
.tool-panel { padding: 15px; }
.panel-title { align-items: center; margin-bottom: 15px; color: #e8efec; font-size: 14px; font-weight: 760; }
.panel-title small { color: var(--ink-muted); font-size: 11px; font-weight: 500; }

.query-workspace { display: grid; grid-template-columns: minmax(264px, 334px) minmax(0, 1fr); gap: 17px; align-items: start; }
.query-controls { position: sticky; top: 20px; padding: 0; overflow: hidden; }
.query-controls .tool-panel { border: 0; border-radius: 0; box-shadow: none; }
.query-output { min-width: 0; }
.seat-map-panel { padding: 15px; background: #151b1e; }
.seat-role-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.seat-role { min-width: 96px; padding: 7px 9px; border: 1px solid #405058; border-radius: 4px; background: #20292d; color: #dce6e2; text-align: left; }
.seat-role strong, .seat-role span { display: block; }.seat-role strong { font-size: 12px; }.seat-role span { margin-top: 2px; color: var(--ink-muted); font-size: 11px; }
.seat-role.active { border-color: #d7ad45; background: #44381d; color: #fff0be; }
.poker-table-map { position: relative; height: 280px; overflow: hidden; border: 1px solid #334045; border-radius: 7px; background: radial-gradient(ellipse at center, #1b4e39 0%, #153527 52%, #11191a 100%); }
.poker-table-map .table-rail { position: absolute; inset: 32px 9%; border: 4px solid rgba(205, 180, 111, .45); border-radius: 50%; box-shadow: inset 0 0 0 11px rgba(10, 18, 16, .38); }
.board-mark { position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%); color: rgba(232, 189, 88, .36); font-size: 26px; font-weight: 850; letter-spacing: .08em; }
.table-seat { position: absolute; z-index: 2; min-width: 62px; min-height: 47px; padding: 5px; border: 2px solid #526168; border-radius: 6px; background: #1b2427; color: #dce6e2; transform: translate(-50%, -50%); }
.table-seat strong, .table-seat span { display: block; }.table-seat strong { font-size: 12px; }.table-seat span { margin-top: 2px; color: #d8b85c; font-size: 10px; font-weight: 800; }
.table-seat:hover { border-color: #aabcc0; }.table-seat.hero { border-color: #50bc86; background: #1f4838; }.table-seat.villain { border-color: #d66a5b; }.table-seat.caller { border-color: #4c8bc8; }.table-seat.opener { border-color: #d4ab45; }
.form-grid { display: grid; gap: 11px; }
label { display: grid; gap: 6px; color: #b6c4c1; font-size: 12px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #3a4a50; border-radius: 4px; padding: 10px; background: #111719; color: #edf4f1; }
input:hover, select:hover, textarea:hover { border-color: #5b7177; }
textarea { min-height: 78px; resize: vertical; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 42px; }
.input-suffix span { position: absolute; top: 50%; right: 11px; color: var(--amber); font-size: 12px; font-weight: 760; transform: translateY(-50%); }
.actions { display: grid; gap: 9px; margin-top: 17px; }
.primary, .danger, .admin-actions button, .device-item button, .dialog-actions button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #cf9f34;
  border-radius: 4px;
  background: #b4872d;
  color: #15120c;
  font-weight: 800;
}
.primary:hover { background: #d4a643; }
.danger { border-color: #c04d53; background: #9d3d44; color: #fff; }
.danger:hover { background: #b7474e; }
.status { min-height: 19px; color: var(--amber-strong); font-size: 13px; line-height: 1.45; }

.result-shell, .guidance-result { overflow: hidden; }
.spot-summary { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); border-bottom: 1px solid var(--edge); background: #1c2428; }
.spot-summary > div { display: grid; gap: 4px; min-width: 0; padding: 13px 16px; border-right: 1px solid var(--edge); }
.spot-summary > div:last-child { border-right: 0; }
.spot-summary .spot-line { grid-column: 1 / -1; border-top: 1px solid var(--edge); }
.spot-summary span { color: var(--ink-muted); font-size: 11px; }
.spot-summary strong { color: #e7ecea; font-size: 14px; overflow-wrap: anywhere; }
.result-grid { display: grid; grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr); gap: 16px; padding: 16px; }
.recommendation-card { display: flex; flex-direction: column; justify-content: center; min-height: 230px; border-color: #41534c; background: linear-gradient(180deg, #1e2b28 0%, #192321 100%); }
.hand-name, .guidance-action { color: var(--amber-strong); font-size: clamp(33px, 5vw, 50px); line-height: 1; }
.recommendation-card dl, .account-card dl { margin: 20px 0 0; }
.recommendation-card dl > div, .account-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(121, 151, 140, .2); }
dt { color: var(--ink-muted); } dd { margin: 0; color: #eef4f1; font-weight: 700; }
.matrix-panel { margin-bottom: 0; background: #151c1f; }
.matrix-scroll, .table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.parity-result-matrix { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px; width: 100%; min-width: 0; }
.parity-cell { border: 1px solid rgba(255, 255, 255, .15); border-radius: 3px; color: #f3f7f4; font-weight: 800; text-shadow: 0 1px 1px rgba(0, 0, 0, .32); }
.parity-cell:hover { filter: brightness(1.15); }.parity-cell.selected { outline: 3px solid #fff; outline-offset: 1px; position: relative; z-index: 1; }
.parity-result-cell { display: flex; min-height: clamp(31px, 4vw, 46px); padding: clamp(3px, .45vw, 5px); flex-direction: column; justify-content: space-between; text-align: left; font-size: clamp(8px, .9vw, 11px); }
.parity-result-cell strong { font-size: clamp(9px, 1vw, 12px); line-height: 1; }.parity-result-cell span { color: rgba(255, 255, 255, .86); font-size: clamp(7px, .8vw, 10px); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: var(--ink-muted); font-size: 12px; }
.parity-legend > span { display: inline-flex; align-items: center; font-weight: 700; }
.parity-legend > span::before { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; content: ""; }
.parity-legend-fold { color: var(--range-fold); }.parity-legend-fold::before { background: var(--range-fold); }
.parity-legend-raise { color: var(--range-raise); }.parity-legend-raise::before { background: var(--range-raise); }
.parity-legend-call { color: var(--range-call); }.parity-legend-call::before { background: var(--range-call); }
.parity-legend-all_in { color: var(--range-all-in); }.parity-legend-all_in::before { background: var(--range-all-in); }
.parity-legend-mixed { color: #c7b3eb; }.parity-legend-mixed::before { background: linear-gradient(135deg, var(--range-call) 0 48%, var(--range-raise) 48% 70%, var(--range-fold) 70%); }
.result-message { padding: 18px; color: #c9d4d2; }.result-message.loading { color: var(--amber-strong); }.result-message.error-message { color: #f0b7ba; }

.hand-picker { padding: 15px; border-top: 1px solid var(--edge); background: #141a1d; }
.picker-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.parity-picker-grid { position: relative; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px; width: 100%; overflow: visible; }
.parity-picker-cell { min-width: 0; min-height: 23px; padding: 2px 0; font-size: clamp(6px, .68vw, 9px); line-height: 1; transform-origin: center; transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease; }
.parity-picker-cell:hover { z-index: 4; transform: scale(1.85); border-color: #a7d5ff; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.parity-picker-cell.pair { background: #8d6d29; }.parity-picker-cell.suited { background: #23704f; }.parity-picker-cell.offsuit { background: #3a596c; }
.action-breakdown { display: grid; gap: 5px; margin: 16px 0 0; padding: 0; list-style: none; }
.action-breakdown li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; padding-top: 7px; border-top: 1px solid rgba(121, 151, 140, .2); font-size: 12px; }
.action-breakdown small { color: var(--ink-muted); }

.guidance-workspace { display: grid; gap: 16px; }.guidance-controls { margin-bottom: 0; }.guidance-controls .tool-panel { padding: 0; border: 0; box-shadow: none; }.guidance-controls .form-grid { grid-template-columns: repeat(4, minmax(130px, 1fr)); }.guidance-heading { padding: 20px 20px 0; }.guidance-heading h2 { margin-bottom: 0; font-size: 22px; }.guidance-grid { display: grid; grid-template-columns: minmax(190px, .65fr) repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px; }.guidance-grid .panel { margin-bottom: 0; }.guidance-grid h3 { margin-bottom: 11px; font-size: 15px; }
.coach-live-fields { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 11px; margin-top: 12px; }
.toggle-field { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 10px; border: 1px solid #3a4a50; border-radius: 4px; background: #111719; }
.toggle-field input { width: auto; }.coach-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 15px 15px; }.coach-toolbar button, .coach-action-menu button { min-height: 34px; padding: 7px 10px; border: 1px solid #476069; border-radius: 4px; background: #243439; color: #e9f1ef; font-weight: 700; }
.coach-action-choice { margin: 0 15px 15px; }.coach-actions { margin-bottom: 16px; }.coach-action-seats { display: flex; flex-wrap: wrap; gap: 8px; }.coach-opponent { min-width: 76px; padding: 8px; border: 1px solid #405058; border-radius: 4px; background: #20292d; color: #dce6e2; text-align: left; }.coach-opponent strong, .coach-opponent span { display: block; }.coach-opponent span { margin-top: 3px; color: var(--ink-muted); font-size: 11px; }.coach-opponent.active { border-color: #d7ad45; background: #44381d; color: #fff0be; }.coach-action-menu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--edge-soft); }.coach-action-menu strong { margin-right: 3px; }.guidance-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--edge); background: var(--edge); }.guidance-plan-grid > article { min-width: 0; padding: 15px 20px; background: #182023; }.guidance-plan-grid h3 { margin-bottom: 8px; font-size: 14px; }.guidance-plan-grid p { margin-bottom: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.55; }.coach-plan-item { display: grid; gap: 5px; padding: 9px 10px; border: 1px solid #314248; border-left: 3px solid #3a9e78; border-radius: 4px; background: #121a1d; }.coach-plan-item + .coach-plan-item { margin-top: 7px; }.coach-plan-item h4 { margin: 0; color: #dce9e4; font-size: 12px; line-height: 1.3; }.coach-plan-item p { margin: 0; }.coach-plan-recommendation { color: #c7d5d0; font-size: 12px !important; line-height: 1.55; }.coach-plan-action { color: #f3ca63; font-size: 15px; font-weight: 820; }.coach-plan-frequency { color: #8ed7ae; font-size: 13px; font-weight: 800; }.coach-plan-ev { color: #a7d5ff; font-weight: 800; }.coach-plan-line { color: #8fa3a6; font-size: 10px !important; line-height: 1.45; }

.radar-list, .audit-list, .device-list { display: grid; gap: 12px; }
.radar-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }.radar-tags span { padding: 3px 7px; border: 1px solid #356a55; border-radius: 999px; color: #9bd7b6; font-size: 10px; }.radar-points { margin: 10px 0 0; padding-left: 18px; color: #c8d7d3; font-size: 12px; }
.radar-item, .audit-item, .device-item { padding: 18px; border: 1px solid var(--edge); border-radius: 6px; background: var(--surface); }
.radar-item { border-left: 3px solid var(--amber); }.radar-item h2 { margin-bottom: 10px; font-size: 19px; }.radar-meta { margin-bottom: 11px; color: #90a6a5; font-size: 12px; }.radar-original { margin: 12px 0; padding: 9px 11px; border-left: 2px solid #4c6265; background: #1c2528; color: #cbd7d4; }.radar-original span, .radar-copy strong { display: block; margin-bottom: 4px; color: var(--amber); font-size: 11px; }.radar-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.radar-copy > div { padding: 11px; border: 1px solid var(--edge-soft); border-radius: 4px; background: #151c1f; }.radar-copy p { margin-bottom: 0; line-height: 1.55; }.radar-extended { margin: 14px 0 0; color: var(--ink-muted); font-size: 13px; }
.account-card { max-width: 840px; }.account-card h2 { margin-top: 28px; font-size: 19px; }.device-item button { display: block; margin-top: 10px; border-color: #466f7a; background: #29414a; color: #e8f2ef; }.badge { display: inline-block; margin-left: 7px; padding: 2px 6px; border: 1px solid #4caa7d; border-radius: 3px; color: #a9e6c4; font-size: 11px; }
.account-password { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(121, 151, 140, .28); }.account-password-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; max-width: 760px; }.account-password-form .status { grid-column: 1 / -1; }
.support-contact { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(121, 151, 140, .28); }.support-contact p { max-width: 640px; }.support-link { display: inline-flex; align-items: center; margin-top: 4px; text-decoration: none; }.support-handle { margin: 14px 0 8px; color: #d9e9e0; font-weight: 700; }.support-qr { display: block; width: min(320px, 100%); height: auto; margin-top: 10px; border: 1px solid #355147; border-radius: 6px; background: #fff; }.text-link { margin-top: 14px; padding: 0; border: 0; background: transparent; color: #9fd7bc; text-decoration: underline; }

.inline { display: flex; gap: 10px; align-items: center; }.inline input { flex: 1; }.inline button { flex: 0 0 auto; }
.admin-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid var(--edge-soft); text-align: left; }.admin-table th { color: var(--ink-muted); font-size: 11px; text-transform: uppercase; }.admin-table button { padding: 6px 9px; border: 1px solid #476069; border-radius: 4px; background: #243439; color: #e9f1ef; }
.admin-columns, .stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 16px 0; }.admin-columns > div, .stats-grid > div { min-height: 80px; padding: 12px; border: 1px solid var(--edge-soft); border-radius: 4px; background: #151b1e; }.admin-columns p, .stats-grid p { margin: 9px 0 0; font-size: 13px; }.admin-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; }.admin-actions button { border-color: #466f7a; background: #29414a; color: #e8f2ef; }.admin-actions .danger { border-color: #c04d53; background: #9d3d44; color: #fff; }
.grant-form { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; align-items: end; padding-top: 17px; border-top: 1px solid var(--edge); }.grant-form .primary { min-height: 40px; }.full-row { grid-column: 1 / -1; }.date-error { grid-column: 1 / -1; min-height: 18px; color: #f2b5b8; }
.confirm-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .68); }.confirm-dialog { width: min(480px, 100%); padding: 22px; border: 1px solid #566d72; border-radius: 7px; background: #182023; box-shadow: 0 18px 54px rgba(0, 0, 0, .48); }.confirm-dialog h2 { margin-bottom: 14px; }.confirm-dialog p { white-space: pre-line; line-height: 1.62; }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }.dialog-actions button:first-child { border: 1px solid #476069; background: #293b40; color: #edf4f2; }

@media (max-width: 1050px) {
  .query-workspace { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); }
  .guidance-controls .form-grid, .coach-live-fields { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .spot-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .login { width: 100%; min-height: 100vh; margin: 0; padding: 24px 16px; border: 0; border-radius: 0; }.test-accounts { grid-template-columns: 1fr; }
  .layout { display: block; }.sidebar { min-height: 0; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--edge); }.brand-row { align-items: center; }.brand small { margin-top: 4px; }.nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 16px; }.nav button { justify-content: center; padding-inline: 7px; font-size: 13px; }.account-menu { grid-template-columns: minmax(0, 1fr) auto; margin-top: 12px; padding-top: 0; }.account-menu button { min-width: 0; }
  .content { padding: 22px 16px 38px; }.page-head { align-items: flex-start; margin-bottom: 17px; }.page-head h1 { font-size: 26px; }.page-language { display: none; }.query-workspace { grid-template-columns: 1fr; }.query-controls, .guidance-controls { position: static; }.guidance-controls .form-grid, .coach-live-fields, .form-grid, .grant-form, .admin-columns, .stats-grid, .result-grid, .guidance-grid, .guidance-plan-grid { grid-template-columns: 1fr; }.spot-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.spot-summary .spot-line { grid-column: 1 / -1; }.spot-summary > div { padding: 11px; }.result-grid, .guidance-grid { padding: 14px; }.recommendation-card { min-height: 0; }.radar-copy { grid-template-columns: 1fr; }.inline { align-items: stretch; flex-direction: column; }.inline button { width: 100%; }.matrix-scroll { margin-inline: -2px; }.table-scroll { margin-inline: -14px; padding-inline: 14px; }.actions .primary { width: 100%; }.confirm-dialog { padding: 18px; }.dialog-actions { flex-direction: column-reverse; }.dialog-actions button { width: 100%; }.poker-table-map { height: 250px; }.table-seat { min-width: 53px; min-height: 42px; }.table-seat strong { font-size: 10px; }.table-seat span { font-size: 9px; }
  .parity-result-matrix { grid-template-columns: repeat(13, 46px); width: max-content; min-width: 630px; }.parity-result-cell { min-height: 46px; padding: 5px; font-size: 11px; }.parity-result-cell strong { font-size: 12px; }.parity-result-cell span { font-size: 10px; }
}

/*
 * Local Edition visual parity.  Online keeps its authenticated API and safe
 * DTOs; this layer only gives the three public poker workspaces the same
 * dense tool hierarchy as the established Local Edition.
 */
:root {
  --canvas: #0e1417;
  --surface: #121a1e;
  --surface-strong: #1b252a;
  --edge: #2d3b42;
  --edge-soft: #243138;
  --ink-muted: #92a3a8;
  --amber: #e4ba50;
  --amber-strong: #f0cd78;
  --green: #38ac75;
  --green-deep: #1d7051;
  --blue: #3f8ed1;
}

body { background: #0d1316; }
.online-local-shell { min-height: 100vh; background: #0d1316; }
.online-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 12px 16px; border-bottom: 1px solid #26343a; background: #11191d; }
.online-topbar h1 { margin: 0; color: #f2f5f4; font-size: 17px; }.online-topbar span { display: block; margin-top: 2px; color: #809296; font-size: 10px; }.online-topbar-actions { display: inline-flex; align-items: center; gap: 7px; }
.layout { grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 58px); background: #0d1316; }
.sidebar {
  min-height: calc(100vh - 58px);
  padding: 14px 12px;
  border-right-color: #26343a;
  background: #11191d;
}
.language-switch { border-color: #314047; background: #172126; }
.language-switch button { min-width: 37px; padding: 5px 7px; font-size: 10px; }
.language-switch button.active { background: #23563f; }
.local-module-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 0; }
.nav button {
  min-width: 0;
  min-height: 35px;
  justify-content: center;
  padding: 7px 8px;
  border-color: #2b383e;
  border-radius: 5px;
  background: #1b252a;
  font-size: 12px;
  text-align: center;
}
.nav button.active { border-color: #3f8ed1; background: #1c3547; }
.nav-dot { display: none; }
.sidebar-boundary {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #2c3940;
  border-radius: 5px;
  background: #10171a;
  color: #9eb0b3;
  font-size: 10px;
  line-height: 1.35;
}
.sidebar-boundary strong { color: #d7e0de; font-size: 11px; }
.account-menu { padding-top: 16px; }
.account-menu button { min-height: 32px; padding: 7px 9px; border-radius: 4px; font-size: 11px; }

.content { max-width: none; padding: 16px 18px 50px; }
.page-head { min-height: 47px; align-items: flex-start; margin-bottom: 13px; padding: 0 2px 12px; border-bottom: 1px solid #243238; }
.page-head h1 { font-size: 20px; }
.eyebrow { margin-bottom: 4px; font-size: 10px; color: #caa64b; letter-spacing: .06em; }
.page-detail { margin-top: 4px; font-size: 12px; }
.panel, .tool-panel, .result-shell, .guidance-result {
  border-color: #2d3a40;
  border-radius: 6px;
  background: #131c20;
  box-shadow: none;
}
.panel { padding: 13px; margin-bottom: 12px; }
.panel-title { margin-bottom: 10px; font-size: 13px; }
.panel-title small { font-size: 10px; }

.local-query-workspace { grid-template-columns: minmax(390px, 448px) minmax(0, 1fr); gap: 12px; }
.query-controls { top: 12px; border-radius: 6px; background: #151e22; }
.tool-panel { padding: 12px; }
.interactive-controls .form-grid { gap: 8px; }
.query-tool-panel .form-grid { grid-template-columns: 1fr; }
.coach-tool-panel .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { gap: 5px; color: #a9b9bb; font-size: 11px; }
input, select, textarea { min-height: 33px; padding: 7px 9px; border-color: #304047; border-radius: 4px; background: #11181b; font-size: 12px; }
input:hover, select:hover, textarea:hover { border-color: #5d7e89; }
.actions { gap: 7px; margin-top: 12px; }
.primary, .danger, .admin-actions button, .device-item button, .dialog-actions button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 4px;
  background: #267d5d;
  border-color: #3aa578;
  color: #f3faf6;
  font-size: 12px;
}
.primary:hover { background: #31956d; }
.danger { background: #91434b; border-color: #b2575e; }
.status { font-size: 11px; }
.hand-picker { padding: 11px; border-top-color: #293940; background: #11191d; }
.hand-picker .panel-title { margin-bottom: 8px; }
.query-controls .hand-picker { padding: 13px; }
.query-controls .parity-picker-grid { gap: 4px; }
.query-controls .parity-picker-cell { min-height: 31px; border-radius: 3px; font-size: clamp(8px, .78vw, 10px); }
.parity-picker-grid { gap: 3px; }
.parity-picker-cell { min-height: 25px; border-radius: 3px; font-size: 7px; }
.parity-picker-cell.pair { background: #7552a7; }.parity-picker-cell.suited { background: #1c5c46; }.parity-picker-cell.offsuit { background: #253238; }
.parity-picker-cell.selected { outline-color: #e8f0ed; }

.local-query-output { display: grid; gap: 12px; align-content: start; }
.seat-map-panel { padding: 12px; background: #121a1e; }
.seat-role-bar { margin-bottom: 9px; }
.seat-role { min-width: 86px; padding: 6px 8px; border-color: #35434a; background: #1b252a; font-size: 11px; }
.seat-role.active { border-color: #3e8fd1; background: #1c3547; color: #e7f3ff; }
.poker-table-map { height: 206px; border-color: #26363a; border-radius: 5px; background: radial-gradient(ellipse at center, #1b563e 0%, #123325 55%, #0f1718 100%); }
.poker-table-map .table-rail { inset: 27px 10%; border-width: 3px; border-color: rgba(199, 171, 92, .42); box-shadow: inset 0 0 0 8px rgba(8, 17, 15, .5); }
.board-mark { color: rgba(225, 182, 69, .4); font-size: 21px; }
.table-seat { min-width: 52px; min-height: 38px; padding: 4px; border-width: 1px; border-radius: 4px; background: #1c272c; }
.table-seat strong { font-size: 10px; }.table-seat span { margin-top: 1px; font-size: 8px; }
.query-result-slot:empty::before {
  display: block;
  padding: 14px;
  border: 1px dashed #2c3a40;
  border-radius: 6px;
  color: #839498;
  content: attr(data-empty-text);
  font-size: 12px;
}
.spot-summary { grid-template-columns: repeat(4, minmax(90px, 1fr)); border-bottom-color: #2d3b41; background: #182126; }
.spot-summary > div { padding: 10px 12px; border-right-color: #2d3b41; }
.spot-summary span { font-size: 10px; }.spot-summary strong { font-size: 12px; }
.result-grid { grid-template-columns: minmax(188px, .48fr) minmax(0, 1.52fr); gap: 12px; padding: 12px; }
.recommendation-card { min-height: 0; border-color: #365248; background: #17251f; }
.hand-name, .guidance-action { color: #e5c15d; font-size: 38px; }
.recommendation-card dl { margin-top: 13px; }.recommendation-card dl > div { padding: 6px 0; }
.action-breakdown { margin-top: 10px; }.action-breakdown li { padding-top: 5px; font-size: 11px; }
.matrix-panel { padding: 11px; background: #101719; }
.parity-result-matrix { gap: 3px; }
.parity-result-cell { min-height: clamp(30px, 3.4vw, 44px); border-radius: 3px; }
.legend { gap: 9px; margin-top: 9px; font-size: 10px; }

.local-guidance-workspace {
  display: grid;
  grid-template-columns: minmax(350px, .9fr) minmax(430px, 1.1fr);
  grid-template-areas: "hero initial" "table advanced";
  gap: 12px;
  align-items: start;
}
.coach-hero-card { grid-area: hero; margin-bottom: 0; overflow: hidden; }
.coach-initial-card { grid-area: initial; min-width: 0; }
.coach-table-card { grid-area: table; min-width: 0; }
.coach-advanced-card { grid-area: advanced; min-width: 0; margin-bottom: 0; }
.guidance-controls .tool-panel { padding: 12px; }
.guidance-controls .coach-live-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.toggle-field { min-height: 33px; padding: 7px; border-color: #304047; border-radius: 4px; background: #11181b; font-size: 11px; }
.coach-toolbar { justify-content: flex-end; padding: 0 12px 9px; }.coach-toolbar button, .coach-action-menu button { min-height: 29px; padding: 5px 8px; border-radius: 4px; font-size: 11px; }
.coach-action-choice { margin: 0 12px 12px; }
.coach-plan-slot { overflow: hidden; border: 1px solid #2d3a40; border-radius: 6px; background: #131c20; }
.coach-plan-empty { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 142px; padding: 14px; }.coach-plan-empty h2 { margin-bottom: 7px; color: #dce6e2; font-size: 17px; }.coach-plan-empty p { margin-bottom: 0; font-size: 12px; }
.coach-state { min-width: 50px; height: 24px; border-radius: 99px; font-size: 10px; }
.coach-actions { padding: 12px; }.coach-action-seats { gap: 6px; }.coach-opponent { min-width: 65px; padding: 6px; border-radius: 4px; font-size: 10px; }.coach-opponent span { font-size: 9px; }
.guidance-result { border: 0; border-radius: 0; background: transparent; }
.guidance-heading { padding: 14px 14px 0; }.guidance-heading h2 { font-size: 18px; }
.guidance-grid { grid-template-columns: minmax(135px, .65fr) repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }.guidance-grid .panel { padding: 11px; }.guidance-grid h3 { margin-bottom: 7px; font-size: 12px; }.guidance-grid p { font-size: 11px; }
.guidance-plan-grid { grid-template-columns: 1fr 1fr; }.guidance-plan-grid > article { padding: 12px 14px; background: #182226; }.guidance-plan-grid > article:last-child { grid-column: 1 / -1; border-top: 1px solid #2d3b41; }.guidance-plan-grid h3 { font-size: 12px; }.guidance-plan-grid p { font-size: 11px; }.coach-plan-item { padding: 8px 9px; }.coach-plan-action { font-size: 14px; }
.coach-feedback-card, .coach-boundary-card { background: #151e22; }

.radar-workspace { max-width: 1120px; padding: 0; overflow: hidden; }
.radar-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; border-bottom: 1px solid #2d3a40; background: #182126; }.radar-workspace-head h2 { margin: 0; font-size: 17px; }.radar-cache { padding: 3px 7px; border: 1px solid #356a55; border-radius: 999px; color: #9bd7b6; font-size: 10px; }
.radar-controls { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #29383e; background: #121a1e; }.radar-controls label { width: min(210px, 100%); }.radar-controls p { margin: 0; color: #93a6a9; font-size: 11px; }.radar-source-link { display: inline-flex; margin-top: 11px; color: #b8d9ff; font-size: 12px; text-decoration: none; }.radar-source-link:hover { color: #e4c768; text-decoration: underline; }
.radar-list { gap: 0; }.radar-item { padding: 16px; border: 0; border-bottom: 1px solid #29383e; border-left: 3px solid #b9963f; border-radius: 0; background: #131c20; }.radar-item:last-child { border-bottom: 0; }.radar-item h2 { margin-bottom: 8px; font-size: 16px; }.radar-meta { font-size: 10px; }.radar-original { font-size: 12px; }.radar-copy > div { padding: 9px; background: #101719; }

.icon-button {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #47575e;
  border-radius: 4px;
  background: #243138;
  color: #e7eeeb;
  font-weight: 800;
  line-height: 1;
}
.icon-button:hover { border-color: #7ca5b1; background: #2a3b43; }
.mini-opponent { min-width: 46px; padding: 5px; border: 1px solid #3a4b52; border-radius: 4px; background: #1c272c; color: #dce5e2; text-align: left; }.mini-opponent strong, .mini-opponent span { display: block; }.mini-opponent strong { font-size: 9px; }.mini-opponent span { margin-top: 2px; color: #97aaad; font-size: 8px; }.mini-opponent.active { border-color: #d0ab45; background: #42391e; color: #fff1c1; }.mini-opponent:disabled { opacity: .42; cursor: not-allowed; }

.coach-popup-notice { margin: -5px 15px 12px; color: #e4c36c; font-size: 11px; line-height: 1.4; }
.coach-popup-page { min-width: 520px; margin: 0; background: #0b1113; color: #dce7e3; }.coach-popup-app { min-height: 100vh; }.coach-popup-disconnected { display: grid; gap: 8px; min-height: 100vh; place-content: center; padding: 28px; color: #9eb0ae; text-align: center; }.coach-popup-disconnected h1 { margin: 0; color: #e6ece9; font-size: 22px; }.coach-popup-disconnected p { margin: 0; font-size: 13px; }
.coach-popup-shell { min-height: 100vh; border: 1px solid #34454b; background: #10181c; }.coach-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 9px 12px; border-bottom: 1px solid #34454b; background: #1b272c; }.coach-popup-header strong, .coach-popup-header span { display: block; }.coach-popup-header strong { color: #edf3f0; font-size: 16px; }.coach-popup-header span { margin-top: 2px; color: #9aacaf; font-size: 11px; }.coach-popup-body { display: grid; gap: 10px; padding: 12px; }.popup-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }.popup-fields label { font-size: 11px; }.popup-fields select, .popup-fields input { min-height: 34px; padding: 6px 7px; font-size: 12px; }.popup-toggle { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 7px; border: 1px solid #304047; border-radius: 4px; background: #11181b; }.popup-toggle input { width: auto; min-height: auto; }.popup-toggle span { font-size: 11px; }.popup-hand-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 10px; border: 1px solid #34454b; border-radius: 4px; background: #172126; color: #b9c9c5; font-size: 12px; }.popup-hand-toolbar strong { color: #e7f0ec; font-size: 14px; }.popup-hand-toolbar button { min-height: 30px; padding: 5px 10px; border: 1px solid #40535a; border-radius: 4px; background: #213138; color: #e7efec; font-weight: 700; }
.popup-hand-picker { gap: 4px; padding: 10px; border: 1px solid #304047; border-radius: 5px; background: #101719; }.popup-hand-picker .parity-picker-cell { min-height: 34px; padding: 3px 0; font-size: 10px; }.popup-selected-action { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr); align-items: center; gap: 9px; font-size: 12px; }.popup-selected-action select { min-height: 34px; padding: 6px 7px; }.popup-opponents { padding: 10px; border: 1px solid #304047; border-radius: 4px; background: #121b1f; }.popup-opponents > small { display: block; margin-bottom: 7px; color: #9cadad; font-size: 11px; }.popup-opponent-seats { display: flex; flex-wrap: wrap; gap: 6px; }.popup-action-menu { margin-top: 8px; padding-top: 8px; }.popup-submit { width: 100%; }.popup-plan-state { padding: 14px; border: 1px solid #304047; border-radius: 4px; color: #9eadab; font-size: 12px; }.popup-plan-state.error { color: #f0b7ba; }.popup-plan-result { overflow: hidden; border: 1px solid #304047; border-radius: 5px; background: #131d21; }.popup-primary-action { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 9px; padding: 12px; border-bottom: 1px solid #304047; }.popup-primary-action span { color: #9cadad; font-size: 11px; }.popup-primary-action strong { color: #f1ca63; font-size: 22px; }.popup-primary-action small { color: #9bd7b6; font-weight: 800; }.popup-plan-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #304047; }.popup-plan-columns > section { min-width: 0; padding: 10px; background: #182226; }.popup-plan-columns h2 { margin: 0 0 8px; color: #e1ece8; font-size: 13px; }.popup-empty { margin: 0; color: #9cadad; font-size: 11px; }

@media (max-width: 1120px) {
  .local-query-workspace { grid-template-columns: minmax(310px, 340px) minmax(0, 1fr); }
  .query-controls .hand-picker { padding: 11px; }
  .query-controls .parity-picker-grid { gap: 3px; }
  .query-controls .parity-picker-cell { min-height: 26px; font-size: 7px; }
  .local-guidance-workspace { grid-template-columns: minmax(300px, .85fr) minmax(360px, 1.15fr); }
  .coach-tool-panel .form-grid, .guidance-controls .coach-live-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .online-topbar { min-height: 52px; padding: 10px 12px; }.layout { display: block; min-height: 0; }.sidebar { min-height: auto; padding: 12px; border-right: 0; border-bottom: 1px solid #26343a; }.local-module-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }.sidebar-boundary { display: none; }.account-menu { grid-template-columns: minmax(0, 1fr) auto; margin-top: 10px; padding-top: 0; }
  .content { padding: 14px 12px 36px; }.page-head { min-height: 0; }.page-head h1 { font-size: 19px; }
  .local-query-workspace, .local-guidance-workspace { grid-template-columns: 1fr; grid-template-areas: "hero" "initial" "table" "advanced"; }
  .query-controls { position: static; }.coach-tool-panel .form-grid, .guidance-controls .coach-live-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poker-table-map { height: 225px; }.result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .local-module-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }.nav button { font-size: 11px; }.brand { font-size: 17px; }
  .coach-tool-panel .form-grid, .guidance-controls .coach-live-fields, .account-password-form { grid-template-columns: 1fr; }.spot-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.spot-summary .spot-line { grid-column: 1 / -1; }
  .poker-table-map { height: 210px; }.table-seat { min-width: 47px; min-height: 35px; }.table-seat strong { font-size: 9px; }.table-seat span { font-size: 7px; }
  .guidance-grid, .guidance-plan-grid { grid-template-columns: 1fr; }.guidance-plan-grid > article:last-child { grid-column: auto; border-top: 0; }.parity-result-matrix { grid-template-columns: repeat(13, 42px); min-width: 546px; }.parity-result-cell { min-height: 42px; }
  .coach-popup-page { min-width: 0; }.popup-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }.popup-hand-picker .parity-picker-cell { min-height: 29px; font-size: 8px; }.popup-plan-columns { grid-template-columns: 1fr; }
  .radar-controls { align-items: stretch; flex-direction: column; }.radar-controls label { width: 100%; }
}
