body[data-practice-layout] {
  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F1F5F9;
  --border-subtle: #E2E8F0;
  --border-focus: #93C5FD;
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --brand-primary: #2563EB;
  --brand-primary-hover: #1D4ED8;
  --brand-tint: #EFF6FF;
  --state-answered-bg: #ECFDF5;
  --state-answered-border: #6EE7B7;
  --state-answered-text: #047857;
  --state-flagged-bg: #FFFBEB;
  --state-flagged-border: #FCD34D;
  --state-flagged-text: #B45309;
  --state-danger-bg: #FEF2F2;
  --state-danger-text: #DC2626;
  --practice-ease: cubic-bezier(0.22, 1, 0.36, 1);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-canvas);
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0;
}
.dark body[data-practice-layout] {
  --bg-canvas: #090D16;
  --bg-surface: #111827;
  --bg-elevated: #1E293B;
  --border-subtle: #1F2937;
  --border-focus: #3B82F6;
  --text-main: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #64748B;
  --brand-primary: #3B82F6;
  --brand-primary-hover: #2563EB;
  --brand-tint: rgba(59, 130, 246, 0.15);
  --state-answered-bg: rgba(16, 185, 129, 0.15);
  --state-answered-border: #059669;
  --state-answered-text: #34D399;
  --state-flagged-bg: rgba(245, 158, 11, 0.15);
  --state-flagged-border: #D97706;
  --state-flagged-text: #FBBF24;
  --state-danger-bg: rgba(239, 68, 68, 0.15);
  --state-danger-text: #F87171;
  color-scheme: dark;
}
body[data-practice-layout]::before, body[data-practice-layout]::after { display: none; }
body[data-practice-layout] *, body[data-practice-layout] *::before, body[data-practice-layout] *::after { box-sizing: border-box; letter-spacing: 0; }
body[data-practice-layout] [hidden], body[data-practice-layout] .hidden { display: none !important; }
body[data-practice-layout] :is(h1, h2, h3, .font-bold) { font-family: inherit; }
body[data-practice-layout] :is(button, summary, a) { -webkit-tap-highlight-color: transparent; transition: background 180ms var(--practice-ease), border-color 180ms var(--practice-ease), transform 180ms var(--practice-ease); }
body[data-practice-layout] :is(button, summary, a):active { transform: scale(0.985); }
body[data-practice-layout] :focus-visible { outline: 3px solid var(--border-focus); outline-offset: 3px; }
body[data-practice-layout] button { font-family: inherit; cursor: pointer; }
body[data-practice-layout] button:disabled { cursor: not-allowed; opacity: 0.4; }
body[data-practice-layout] .lucide { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.75; }
.practice-header { height: 64px; flex: 0 0 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface); z-index: 30; }
.practice-header-left, .practice-header-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.practice-header-left { flex: 1; }
.practice-header-right { justify-content: flex-end; flex: 1; }
.practice-header h1 { font-size: 17px; font-weight: 700; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.practice-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; padding: 0; border: 1px solid var(--border-subtle); border-radius: 10px; color: var(--text-body); background: var(--bg-elevated); }
.practice-icon-button:hover { border-color: var(--border-focus); color: var(--text-main); }
#btn-exit-exam:hover { background: #FEE2E2; border-color: #FCA5A5; color: #DC2626; }
#btn-exit-exam:hover .lucide { transform: translateX(-2px); }
#theme-toggle { background: transparent; border-color: transparent; }
#theme-toggle:hover .lucide { transform: rotate(-15deg) scale(1.1); }
.dark #theme-toggle .lucide { color: #FBBF24; }
.dark #theme-toggle:hover .lucide { transform: rotate(45deg); }
.practice-tracked { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 3px 8px; border: 1px solid var(--border-focus); border-radius: 999px; color: var(--brand-primary); background: var(--brand-tint); font-size: 11px; font-weight: 600; animation: practice-pop 280ms var(--practice-ease); }
.practice-tracked .lucide { width: 13px; height: 13px; stroke-width: 2; }
.practice-header-progress { display: flex; align-items: center; justify-content: center; gap: 10px; width: 180px; flex-shrink: 0; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.practice-progress-track { width: 110px; height: 5px; background: var(--border-subtle); border-radius: 99px; overflow: hidden; }
.practice-progress-track > span, .practice-mobile-progress > span { display: block; width: 0; height: 100%; background: var(--brand-primary); transition: width 280ms var(--practice-ease); }
.practice-timer { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; min-width: 100px; padding: 0 14px; border: 1px solid var(--border-subtle); border-radius: 999px; color: var(--text-main); background: var(--bg-canvas); font-family: 'JetBrains Mono', monospace !important; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
#timer-icon { display: inline-flex; color: var(--text-muted); }
#timer-icon .lucide { width: 16px; height: 16px; }
.practice-timer.is-warning { color: var(--state-flagged-text); background: var(--state-flagged-bg); border-color: var(--state-flagged-border); }
.practice-timer.is-warning #timer-icon { color: #D97706; }
.practice-timer.is-warning .lucide { stroke-width: 2; }
.practice-timer.is-critical { color: var(--state-danger-text); background: var(--state-danger-bg); border-color: #FCA5A5; animation: practice-critical 1s infinite; }
.practice-timer.is-critical #timer-icon { color: var(--state-danger-text); }
.practice-timer.is-critical .lucide { stroke-width: 2; }
.practice-timer.is-warning-once .lucide { animation: practice-wiggle 600ms ease; }
.practice-profile { position: relative; flex-shrink: 0; }
.practice-profile summary { display: flex; align-items: center; gap: 6px; max-width: 160px; height: 36px; padding: 0 10px; border: 1px solid var(--border-subtle); border-radius: 999px; color: var(--brand-primary); background: var(--brand-tint); cursor: pointer; list-style: none; }
.practice-profile summary::-webkit-details-marker { display: none; }
.practice-profile summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.practice-profile summary .lucide:first-child { width: 16px; height: 16px; }
.practice-profile summary .lucide:last-child { width: 14px; height: 14px; color: var(--text-muted); transition: transform 180ms var(--practice-ease); }
.practice-profile[open] summary .lucide:last-child { transform: rotate(180deg); }
.practice-profile-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 210px; padding: 6px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-surface); box-shadow: 0 12px 36px rgba(15, 23, 42, 0.15); }
.practice-profile-menu :is(a, button) { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text-body); font-size: 13px; text-decoration: none; text-align: left; }
.practice-profile-menu :is(a, button):hover { background: var(--bg-elevated); }
.practice-mobile-progress, .practice-ribbon, .practice-tablet-submit, .practice-map-trigger { display: none; }
.practice-workspace { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; }
.practice-sidebar { min-height: 0; padding: 24px 20px; border-right: 1px solid var(--border-subtle); background: var(--bg-surface); overflow-y: auto; }
.practice-sidebar h2 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 20px; font-size: 15px; font-weight: 700; }
.practice-sidebar h2 span { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.practice-question-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.practice-question-number { position: relative; height: 42px; width: 42px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-canvas); color: var(--text-body); font-size: 14px; font-weight: 600; }
.practice-question-number:hover { border-color: var(--border-focus); }
.practice-question-number.is-answered { color: var(--state-answered-text); background: var(--state-answered-bg); border-color: var(--state-answered-border); }
.practice-question-number.is-flagged { color: var(--state-flagged-text); background: var(--state-flagged-bg); border-color: var(--state-flagged-border); }
.practice-question-number.is-current { color: #FFFFFF; background: var(--brand-primary); border-color: var(--brand-primary); }
.practice-question-number.is-flagged::after { content: ''; position: absolute; right: 3px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 0 1px var(--bg-surface); }
.practice-legend { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-muted); font-size: 10px; white-space: nowrap; }
.practice-legend span { display: inline-flex; align-items: center; gap: 4px; }
.practice-legend span::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--brand-primary); }
.practice-legend .answered::before { background: #10B981; }
.practice-legend .flagged::before { background: #F59E0B; }
.practice-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border-subtle); border-radius: 8px; color: var(--text-body); background: var(--bg-surface); font-size: 14px; font-weight: 600; line-height: 1.2; }
.practice-button:hover:not(:disabled) { border-color: var(--border-focus); background: var(--bg-elevated); }
.practice-primary { color: #FFFFFF; border-color: var(--brand-primary); background: var(--brand-primary); }
.practice-primary:hover:not(:disabled) { color: #FFFFFF; background: var(--brand-primary-hover); border-color: var(--brand-primary-hover); }
.practice-sidebar > .practice-button { width: 100%; }
.practice-exam { min-width: 0; min-height: 0; }
.practice-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.practice-stage-wrap { width: 100%; max-width: 740px; padding: 32px 24px; margin: 0 auto; }
.practice-question-stage { padding: 28px 32px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--bg-surface); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03); }
.practice-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.practice-guest-notice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 12px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); color: var(--text-body); font-size: 13px; line-height: 1.5; }
.practice-guest-notice .lucide { flex-shrink: 0; margin-top: 2px; color: var(--brand-primary); }
.practice-guest-notice p { margin: 0; }
.practice-guest-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 14px 16px; }
.practice-question-counter { padding: 5px 12px; border-radius: 8px; color: var(--brand-primary); background: var(--brand-tint); font-size: 12px; font-weight: 700; text-transform: uppercase; }
#btn-flag { min-height: 34px; padding: 0 12px; font-size: 13px; }
#btn-flag .lucide { width: 15px; height: 15px; }
#btn-flag.is-flagged { background: var(--state-flagged-bg); border-color: #F59E0B; color: var(--state-flagged-text); }
#btn-flag.is-flagged .lucide { fill: #F59E0B; stroke: #D97706; stroke-width: 2; animation: practice-pop 180ms var(--practice-ease); }
.practice-instruction { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; margin: 0 0 18px; border: 1px solid var(--border-subtle); border-left: 3.5px solid var(--brand-primary); border-radius: 8px; background: var(--bg-canvas); color: var(--text-body); font-family: 'Inter', sans-serif; font-size: 14px; font-style: normal; line-height: 1.45; }
.practice-instruction .lucide { color: var(--brand-primary); width: 16px; height: 16px; margin-top: 2px; stroke-width: 2; }
.practice-instruction strong { color: var(--text-main); }
#question-text { margin: 0 0 22px; font-size: 21px; font-weight: 700; line-height: 1.4; color: var(--text-main); overflow-wrap: anywhere; }
#question-text .question-main { line-height: inherit; }
#options-container { display: flex; flex-direction: column; gap: 12px; }
.option-card { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; border: 1px solid var(--border-subtle); border-radius: 12px; color: var(--text-body); background: var(--bg-surface); font-size: 16px; font-weight: 500; text-align: left; user-select: none; }
.option-card:hover { border-color: var(--border-focus); }
.option-keycap { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; color: var(--text-muted); background: var(--bg-elevated); font-size: 14px; font-weight: 700; }
.option-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.option-indicator { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; border: 1.5px solid #CBD5E1; border-radius: 50%; }
.option-card:hover .option-indicator { border-color: #60A5FA; }
.option-card[aria-checked="true"] { border-color: var(--brand-primary); background: var(--brand-tint); box-shadow: 0 0 0 1px var(--brand-primary), 0 4px 12px rgba(37, 99, 235, 0.12); }
.option-card[aria-checked="true"] .option-keycap { background: var(--brand-primary); color: #FFFFFF; }
.option-card[aria-checked="true"] .option-indicator { border: 0; background: var(--brand-primary); color: #FFFFFF; }
.option-indicator .lucide { width: 20px; height: 20px; stroke-width: 2.25; animation: practice-pop 150ms var(--practice-ease); }
.option-card.key-pressed { transform: scale(0.985); }
.option-card.key-pressed .option-keycap { background: var(--brand-primary-hover); color: #FFFFFF; }
.practice-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.practice-controls > .practice-button { min-width: 100px; }
.practice-controls > .practice-map-trigger, .practice-header .practice-tablet-submit { display: none; }
.practice-controls .lucide { stroke-width: 2; }
#prev-btn:hover:not(:disabled) .lucide { transform: translateX(-2px); }
#next-btn:hover .lucide { transform: translateX(2px); }
.practice-keyboard { display: flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 10px; }
.practice-keyboard .lucide { width: 15px; height: 15px; stroke-width: 1.75; color: #94A3B8; }
.practice-keyboard kbd { padding: 2px 4px; border: 1px solid var(--border-subtle); border-radius: 4px; font: inherit; }
.practice-keyboard span { margin-right: 3px; }
#practice-save-status { min-height: 16px; margin: 10px 0 0; font-size: 11px; color: var(--text-muted); }
.practice-dialog { width: min(440px, calc(100% - 32px)); margin: auto; padding: 24px; max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); color: var(--text-main); box-shadow: 0 20px 70px rgba(15, 23, 42, 0.2); }
.practice-dialog::backdrop, .practice-map::backdrop { background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); }
.practice-dialog h2 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.practice-dialog p { margin: 0 0 20px; color: var(--text-body); font-size: 14px; line-height: 1.5; }
.practice-dialog-actions { display: flex; gap: 10px; }
.practice-dialog-actions > button { flex: 1; }
.practice-submit-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.practice-submit-summary > div { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--border-subtle); padding-left: 10px; }
.practice-submit-summary strong { font-size: 24px; }
.practice-submit-summary span { font-size: 12px; color: var(--text-muted); }
.practice-results-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; font-size: 13px; color: var(--brand-primary); }
.practice-map { position: fixed; inset: auto 0 0; width: 100%; max-width: 560px; max-height: 75dvh; margin: 0 auto; padding: 12px 20px calc(28px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 20px 20px 0 0; background: var(--bg-surface); color: var(--text-main); overflow-y: auto; }
.practice-map[open] { animation: practice-sheet-in 280ms var(--practice-ease); }
.practice-map.is-closing { animation: practice-sheet-out 150ms ease forwards; }
.practice-map-handle { display: flex; justify-content: center; padding: 4px 0 16px; touch-action: none; cursor: grab; }
.practice-map-handle span { width: 40px; height: 4px; border-radius: 999px; background: #CBD5E1; }
.practice-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.practice-map-heading h2 { font-size: 17px; font-weight: 700; margin: 0; }
#map-answered { margin: 5px 0 0; font-size: 12px; color: var(--text-muted); }
.practice-map .practice-question-grid { gap: 10px; }
.practice-map .practice-question-number { width: 100%; height: 48px; }
.practice-map > .practice-primary { width: 100%; margin-top: 20px; min-height: 48px; border-radius: 12px; }
body[data-exam-status="configuring"] :is(.practice-sidebar, .practice-ribbon, .practice-tablet-submit, .practice-header-progress), body[data-exam-status="completed"] :is(.practice-sidebar, .practice-ribbon, .practice-tablet-submit, .practice-header-progress) { display: none; }
body:not([data-exam-status="in_progress"]) .practice-workspace { grid-template-columns: minmax(0, 1fr); }
#results-view { min-height: 0; grid-column: 1 / -1; }
#results-view .p-4.flex { flex-wrap: wrap; }
.install-help-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.install-help-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); }
.install-help-panel { position: relative; padding: 24px; width: min(420px, 100%); background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 12px; }
.install-help-header { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin-bottom: 12px; }
.install-help-close { font-size: 24px; }
.install-help-copy { font-size: 14px; color: var(--text-body); }
.practice-config-label { display: flex; align-items: center; gap: 8px; }
body[data-practice-layout] .subject-btn .lucide { width: 24px; height: 24px; color: var(--brand-primary); }
@keyframes practice-pop { from { transform: scale(0.5); } to { transform: scale(1); } }
@keyframes practice-critical { 50% { opacity: 0.7; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); } }
@keyframes practice-wiggle { 25%, 75% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes practice-sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes practice-sheet-out { to { transform: translateY(100%); opacity: 0; } }
@media (min-width: 768px) {
  @media not all and (min-width: 1024px) {
    .practice-header { height: 60px; flex-basis: 60px; padding: 0 24px; gap: 12px; }
    .practice-header-left, .practice-header-right { flex: initial; }
    .practice-header-progress { display: none; }
    .practice-header h1 { max-width: 160px; }
    .practice-tracked { font-size: 10px; padding: 3px 6px; }
    .practice-profile summary { max-width: 110px; }
    .practice-header-right { gap: 7px; }
    .practice-timer { min-width: 90px; padding: 0 10px; }
    .practice-header .practice-tablet-submit { display: inline-flex; min-height: 36px; padding: 0 10px; font-size: 12px; }
    .practice-workspace { grid-template-columns: minmax(0, 1fr); }
    .practice-sidebar { display: none; }
    .practice-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; flex: 0 0 52px; padding: 0 24px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface); }
    .practice-ribbon .practice-question-grid { display: flex; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
    .practice-ribbon .practice-question-grid::-webkit-scrollbar { display: none; }
    .practice-ribbon .practice-question-grid.is-scrollable { justify-content: flex-start; }
    .practice-ribbon .practice-question-number { flex: 0 0 36px; width: 36px; height: 36px; }
    .practice-ribbon .practice-legend { gap: 8px; flex-shrink: 0; }
    .practice-stage-wrap { max-width: 680px; padding: 24px; }
    .practice-question-stage { padding: 24px; }
    #question-text { font-size: 19px; }
    .option-card { min-height: 64px; padding: 16px 20px; }
    .practice-keyboard { display: none; }
    #prev-btn { width: 120px; }
    #next-btn, #submit-btn { width: 140px; }
  }
}
@media not all and (min-width: 768px) {
  body[data-practice-layout] { min-height: 100dvh; height: auto; overflow: auto; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body[data-practice-layout]:not([data-exam-status="in_progress"]) { padding-bottom: 0; }
  .practice-header { position: sticky; top: 0; height: 54px; flex-basis: 54px; gap: 8px; padding: 0 12px; }
  .practice-header-left { gap: 7px; }
  .practice-header-right { flex: 0 0 auto; gap: 7px; }
  .practice-header h1 { max-width: 160px; font-size: 15px; }
  #btn-exit-exam { width: 34px; height: 34px; }
  .practice-header-progress, .practice-tracked, #theme-toggle { display: none; }
  .practice-timer { min-width: 80px; height: 32px; padding: 0 10px; font-size: 13px; gap: 5px; }
  #timer-icon .lucide { width: 15px; height: 15px; }
  .practice-profile summary { width: 32px; height: 32px; padding: 0; justify-content: center; }
  .practice-profile summary span, .practice-profile summary .lucide:last-child { display: none; }
  .practice-profile summary .lucide:first-child { width: 20px; height: 20px; }
  .practice-mobile-progress { display: block; position: sticky; top: 54px; height: 3px; flex: 0 0 3px; z-index: 29; background: var(--border-subtle); }
  .practice-workspace { display: block; flex: 1; overflow: visible; }
  .practice-sidebar, .practice-ribbon, .practice-tablet-submit { display: none; }
  .practice-scroll { height: auto; overflow: visible; }
  .practice-stage-wrap { max-width: 580px; padding: 16px 16px 24px; }
  .practice-question-stage { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .practice-meta { margin-bottom: 12px; }
  .practice-question-counter { font-size: 11px; padding: 5px 8px; }
  #btn-flag { min-height: 32px; padding: 0 10px; }
  .practice-instruction { padding: 8px 12px; margin-bottom: 12px; font-size: 13px; line-height: 1.4; }
  #question-text { font-size: 18px; line-height: 1.35; margin-bottom: 16px; }
  #options-container { gap: 10px; }
  .option-card { min-height: 56px; padding: 12px 14px; font-size: 15px; gap: 12px; }
  .option-keycap { width: 28px; height: 28px; font-size: 13px; }
  .option-indicator .lucide { width: 18px; height: 18px; }
  .practice-controls { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); min-height: 68px; border-top: 1px solid var(--border-subtle); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); }
  .dark .practice-controls { background: rgba(17, 24, 39, 0.92); }
  .practice-controls > .practice-button { min-width: 0; height: 46px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
  .practice-controls > .practice-map-trigger { display: inline-flex; position: relative; padding: 0 14px; background: var(--bg-elevated); font-size: 13px; }
  .practice-map-trigger .lucide { width: 16px; height: 16px; color: var(--brand-primary); }
  #map-flag-dot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #F59E0B; }
  .practice-keyboard { display: none; }
  #prev-btn { grid-column: 1; }
  #menu-toggle { grid-column: 2; }
  #next-btn, #submit-btn { grid-column: 3; grid-row: 1; }
  #results-view { overflow-y: visible; height: auto; }
  .practice-dialog { padding: 20px; }
  .practice-dialog-actions { flex-wrap: wrap; }
  .practice-dialog-actions > button { min-width: 110px; }
}