:root {
  --typing-shadow: 0 22px 56px rgba(2, 6, 23, 0.18);
}

.typing-shell {
  --typing-bg: linear-gradient(180deg, rgba(10, 17, 31, 0.96), rgba(7, 13, 24, 0.92));
  --typing-panel: rgba(9, 16, 31, 0.94);
  --typing-panel-soft: rgba(14, 23, 43, 0.82);
  --typing-surface: rgba(17, 28, 52, 0.92);
  --typing-surface-strong: rgba(21, 35, 64, 0.98);
  --typing-text: #eef5ff;
  --typing-text-soft: #c6d6eb;
  --typing-muted: #8ea5c0;
  --typing-line: rgba(146, 176, 214, 0.16);
  --typing-line-strong: rgba(146, 176, 214, 0.28);
  --typing-accent: #58c8ff;
  --typing-accent-strong: #0ea5e9;
  --typing-accent-soft: rgba(88, 200, 255, 0.12);
  --typing-success: #34d399;
  --typing-danger: #f87171;
  --typing-warning: #fbbf24;
  --typing-correct-bg: rgba(52, 211, 153, 0.18);
  --typing-correct-text: #dcfce7;
  --typing-error-bg: rgba(248, 113, 113, 0.18);
  --typing-error-text: #fee2e2;
  --typing-current-bg: rgba(88, 200, 255, 0.18);
  --typing-key-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--typing-text);
}

.typing-shell[data-typing-theme="light"] {
  --typing-bg:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(232, 241, 252, 0.96));
  --typing-panel: rgba(255, 255, 255, 0.94);
  --typing-panel-soft: rgba(245, 250, 255, 0.98);
  --typing-surface: rgba(234, 243, 252, 0.98);
  --typing-surface-strong: rgba(248, 251, 255, 0.98);
  --typing-text: #12223b;
  --typing-text-soft: #314661;
  --typing-muted: #5e7290;
  --typing-line: rgba(15, 23, 42, 0.1);
  --typing-line-strong: rgba(15, 23, 42, 0.18);
  --typing-accent: #0284c7;
  --typing-accent-strong: #0369a1;
  --typing-accent-soft: rgba(2, 132, 199, 0.1);
  --typing-success: #059669;
  --typing-danger: #dc2626;
  --typing-warning: #d97706;
  --typing-correct-bg: rgba(16, 185, 129, 0.16);
  --typing-correct-text: #065f46;
  --typing-error-bg: rgba(239, 68, 68, 0.12);
  --typing-error-text: #991b1b;
  --typing-current-bg: rgba(2, 132, 199, 0.12);
  --typing-key-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.typing-shell .typing-surface {
  border: 1px solid var(--typing-line);
  border-radius: 26px;
  background: var(--typing-bg);
  box-shadow: var(--typing-shadow);
}

.typing-shell .typing-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px;
}

.typing-shell .typing-privacy,
.typing-shell .typing-storage-warning,
.typing-shell .typing-side-card,
.typing-shell .typing-stat-card,
.typing-shell .typing-dash-card,
.typing-shell .typing-panel-card,
.typing-shell .typing-result-card,
.typing-shell .typing-finger-card,
.typing-shell .typing-keyboard-card,
.typing-shell .typing-link-card {
  border: 1px solid var(--typing-line);
  border-radius: 22px;
  background: var(--typing-panel);
  box-shadow: var(--typing-shadow);
}

.typing-shell .typing-privacy,
.typing-shell .typing-storage-warning,
.typing-shell .typing-panel-card,
.typing-shell .typing-result-card,
.typing-shell .typing-keyboard-card,
.typing-shell .typing-link-card {
  padding: 18px;
}

.typing-shell .typing-privacy {
  display: grid;
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.1), transparent 58%),
    var(--typing-panel);
}

.typing-shell .typing-privacy strong,
.typing-shell .typing-storage-warning strong,
.typing-shell .typing-dash-title,
.typing-shell .typing-side-card strong,
.typing-shell .typing-result-card h2,
.typing-shell .typing-panel-card h2,
.typing-shell .typing-panel-card h3,
.typing-shell .typing-link-card h2 {
  margin: 0;
  color: var(--typing-text);
  font-size: 17px;
  letter-spacing: -0.03em;
}

.typing-shell .typing-privacy p,
.typing-shell .typing-storage-warning p,
.typing-shell .typing-dash-copy,
.typing-shell .typing-side-copy,
.typing-shell .typing-panel-copy,
.typing-shell .typing-result-copy,
.typing-shell .typing-link-card p {
  margin: 0;
  color: var(--typing-text-soft);
  line-height: 1.7;
}

.typing-shell .typing-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
  justify-content: end;
}

.typing-shell .typing-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--typing-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.typing-shell .typing-chip,
.typing-shell .typing-link-pill,
.typing-shell .typing-small-button {
  appearance: none;
  border: 1px solid var(--typing-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--typing-text-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.typing-shell .typing-chip,
.typing-shell .typing-link-pill {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.typing-shell .typing-small-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}

.typing-shell .typing-chip:hover,
.typing-shell .typing-chip[aria-pressed="true"],
.typing-shell .typing-link-pill:hover,
.typing-shell .typing-small-button:hover {
  transform: translateY(-1px);
  border-color: var(--typing-line-strong);
  background: var(--typing-accent-soft);
  color: var(--typing-text);
}

.typing-shell .typing-chip[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--typing-accent), var(--typing-accent-strong));
  color: #03131f;
}

.typing-shell .typing-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.typing-shell .typing-dashboard {
  display: grid;
  gap: 16px;
}

.typing-shell .typing-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.typing-shell .typing-dash-card {
  padding: 18px;
  background: var(--typing-panel-soft);
}

.typing-shell .typing-dash-label {
  color: var(--typing-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.typing-shell .typing-dash-value {
  margin-top: 10px;
  color: var(--typing-text);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.typing-shell .typing-dash-copy {
  margin-top: 8px;
  font-size: 13px;
}

.typing-shell .typing-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.typing-shell .typing-most-mistyped {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.typing-shell .typing-weak-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--typing-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--typing-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.typing-shell .typing-weak-pill strong {
  color: var(--typing-text);
  font-size: 13px;
}

.typing-shell .typing-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 18px;
}

.typing-shell .typing-main-stack {
  display: grid;
  gap: 18px;
}

.typing-shell .typing-sidebar {
  padding: 18px;
  border: 1px solid var(--typing-line);
  border-radius: 24px;
  background: var(--typing-panel);
  box-shadow: var(--typing-shadow);
}

.typing-shell .typing-sidebar-header {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.typing-shell .typing-sidebar-header h2,
.typing-shell .typing-side-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.typing-shell .typing-sidebar-header p,
.typing-shell .typing-side-card p {
  margin: 0;
  color: var(--typing-text-soft);
  line-height: 1.62;
}

.typing-shell .typing-lesson-list {
  display: grid;
  gap: 10px;
}

.typing-shell .typing-lesson-button {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--typing-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.typing-shell .typing-lesson-button:hover,
.typing-shell .typing-lesson-button[aria-current="true"] {
  transform: translateY(-1px);
  border-color: rgba(88, 200, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(88, 200, 255, 0.12), transparent 68%),
    rgba(255, 255, 255, 0.04);
}

.typing-shell .typing-lesson-button[aria-current="true"] {
  box-shadow: 0 0 0 1px rgba(88, 200, 255, 0.16);
}

.typing-shell .typing-lesson-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.typing-shell .typing-lesson-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--typing-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.typing-shell .typing-lesson-button.is-complete .typing-lesson-status {
  background: rgba(52, 211, 153, 0.16);
  color: var(--typing-correct-text);
}

.typing-shell .typing-lesson-summary {
  color: var(--typing-text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.typing-shell .typing-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.typing-shell .typing-progress-bar {
  height: 100%;
  width: var(--typing-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(135deg, var(--typing-success), var(--typing-accent));
}

.typing-shell .typing-side-card {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
  background: var(--typing-panel-soft);
}

.typing-shell .typing-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.typing-shell .typing-stat-card {
  padding: 16px;
  background: var(--typing-panel-soft);
}

.typing-shell .typing-stat-card .typing-dash-value {
  margin-top: 8px;
}

.typing-shell .typing-panel-card {
  display: grid;
  gap: 16px;
  background: var(--typing-panel);
}

.typing-shell .typing-practice-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.typing-shell .typing-practice-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.04em;
}

.typing-shell .typing-practice-copy {
  display: grid;
  gap: 8px;
}

.typing-shell .typing-practice-copy p {
  margin: 0;
  color: var(--typing-text-soft);
  line-height: 1.68;
}

.typing-shell .typing-helper-row,
.typing-shell .typing-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.typing-shell .typing-helper-row {
  color: var(--typing-text-soft);
  font-size: 14px;
}

.typing-shell .typing-helper-row strong {
  color: var(--typing-text);
}

.typing-shell .typing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--typing-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--typing-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.typing-shell .typing-pill.is-live {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.12);
  color: var(--typing-correct-text);
}

.typing-shell .typing-prompt-shell {
  position: relative;
  min-height: 196px;
  padding: 18px;
  border: 1px solid var(--typing-line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(88, 200, 255, 0.06), transparent 58%),
    var(--typing-surface);
}

.typing-shell .typing-prompt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.typing-shell .typing-prompt-status {
  color: var(--typing-muted);
  font-size: 13px;
  font-weight: 700;
}

.typing-shell .typing-focus-hint {
  color: var(--typing-text-soft);
  font-size: 14px;
}

.typing-shell .typing-prompt {
  min-height: 112px;
  color: var(--typing-text-soft);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.82;
  letter-spacing: 0.01em;
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", ui-monospace, monospace;
  word-break: break-word;
  white-space: pre-wrap;
}

.typing-shell .typing-prompt .typing-char {
  padding: 2px 0;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.typing-shell .typing-prompt .typing-char.is-correct {
  color: var(--typing-correct-text);
  background: var(--typing-correct-bg);
}

.typing-shell .typing-prompt .typing-char.is-incorrect {
  color: var(--typing-error-text);
  background: var(--typing-error-bg);
}

.typing-shell .typing-prompt .typing-char.is-current {
  color: var(--typing-text);
  background: var(--typing-current-bg);
  box-shadow: inset 0 -2px 0 var(--typing-accent);
}

.typing-shell .typing-prompt .typing-char.is-space {
  min-width: 0.46em;
  display: inline-block;
}

.typing-shell .typing-prompt .typing-char.is-ellipsis {
  color: var(--typing-muted);
  padding: 0 8px;
}

.typing-shell .typing-capture {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.typing-shell .typing-focus-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed var(--typing-line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.typing-shell .typing-focus-shell.is-focused {
  border-color: rgba(88, 200, 255, 0.48);
  background: var(--typing-accent-soft);
}

.typing-shell .typing-focus-copy {
  display: grid;
  gap: 4px;
}

.typing-shell .typing-focus-copy strong {
  color: var(--typing-text);
  font-size: 15px;
}

.typing-shell .typing-focus-copy span {
  color: var(--typing-text-soft);
  font-size: 13px;
}

.typing-shell .typing-session-note {
  padding: 14px 16px;
  border: 1px solid var(--typing-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--typing-text-soft);
  line-height: 1.68;
}

.typing-shell .typing-session-note strong {
  color: var(--typing-text);
}

.typing-shell .typing-session-note.is-success {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.1);
}

.typing-shell .typing-session-note.is-warning {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.08);
}

.typing-shell .typing-keyboard-grid {
  display: grid;
  gap: 18px;
}

.typing-shell .typing-keyboard-card {
  background: var(--typing-panel);
}

.typing-shell .typing-keyboard-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.typing-shell .typing-keyboard-topbar p {
  margin: 0;
  color: var(--typing-text-soft);
  line-height: 1.6;
}

.typing-shell .typing-keyboard {
  display: grid;
  gap: 10px;
}

.typing-shell .typing-keyboard-row {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.typing-shell .typing-key {
  flex: var(--typing-key-width, 1) 1 0;
  min-width: 0;
  min-height: 56px;
  padding: 8px 8px 10px;
  border: 1px solid var(--typing-line);
  border-radius: 16px;
  background: var(--typing-surface);
  box-shadow: var(--typing-key-shadow);
  color: var(--typing-text);
  display: grid;
  align-content: space-between;
  gap: 6px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.typing-shell .typing-key span {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.typing-shell .typing-key small {
  display: block;
  color: var(--typing-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.typing-shell .typing-key[data-finger="left-pinky"],
.typing-shell .typing-finger-chip[data-finger="left-pinky"] {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), var(--typing-surface));
}

.typing-shell .typing-key[data-finger="left-ring"],
.typing-shell .typing-finger-chip[data-finger="left-ring"] {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), var(--typing-surface));
}

.typing-shell .typing-key[data-finger="left-middle"],
.typing-shell .typing-finger-chip[data-finger="left-middle"] {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), var(--typing-surface));
}

.typing-shell .typing-key[data-finger="left-index"],
.typing-shell .typing-finger-chip[data-finger="left-index"] {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.1), var(--typing-surface));
}

.typing-shell .typing-key[data-finger="right-index"],
.typing-shell .typing-finger-chip[data-finger="right-index"] {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.1), var(--typing-surface));
}

.typing-shell .typing-key[data-finger="right-middle"],
.typing-shell .typing-finger-chip[data-finger="right-middle"] {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.1), var(--typing-surface));
}

.typing-shell .typing-key[data-finger="right-ring"],
.typing-shell .typing-finger-chip[data-finger="right-ring"] {
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.1), var(--typing-surface));
}

.typing-shell .typing-key[data-finger="right-pinky"],
.typing-shell .typing-finger-chip[data-finger="right-pinky"] {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.1), var(--typing-surface));
}

.typing-shell .typing-key[data-finger="thumbs"],
.typing-shell .typing-finger-chip[data-finger="thumbs"] {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.1), var(--typing-surface));
}

.typing-shell .typing-key.is-next {
  border-color: rgba(88, 200, 255, 0.44);
  box-shadow: 0 0 0 1px rgba(88, 200, 255, 0.22), 0 0 0 6px rgba(88, 200, 255, 0.08);
  transform: translateY(-1px);
}

.typing-shell .typing-key.is-pressed {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.16);
  transform: translateY(1px) scale(0.99);
}

.typing-shell .typing-finger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.typing-shell .typing-finger-chip {
  padding: 14px;
  border: 1px solid var(--typing-line);
  border-radius: 18px;
  background: var(--typing-panel-soft);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.typing-shell .typing-finger-chip.is-active {
  border-color: rgba(88, 200, 255, 0.42);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(88, 200, 255, 0.08);
}

.typing-shell .typing-finger-chip strong {
  display: block;
  color: var(--typing-text);
  font-size: 14px;
}

.typing-shell .typing-finger-chip span {
  display: block;
  margin-top: 6px;
  color: var(--typing-text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.typing-shell .typing-prompt .typing-char.is-error-hint {
  box-shadow: inset 0 -2px 0 var(--typing-danger);
  animation: typing-key-flash 0.35s ease;
}

.typing-shell [data-typing-fingers].typing-finger-grid {
  display: block;
  order: -1;
}

.typing-shell .typing-key {
  position: relative;
  overflow: hidden;
}

.typing-shell .typing-key-label,
.typing-shell .typing-key-finger,
.typing-shell .typing-key-home-label {
  position: relative;
  z-index: 1;
}

.typing-shell .typing-key-home-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--typing-text);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.typing-shell .typing-key[data-finger="left-thumb"],
.typing-shell .typing-finger-chip[data-finger="left-thumb"],
.typing-shell .typing-hand-finger[data-finger="left-thumb"] {
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.14), var(--typing-surface));
}

.typing-shell .typing-key[data-finger="right-thumb"],
.typing-shell .typing-finger-chip[data-finger="right-thumb"],
.typing-shell .typing-hand-finger[data-finger="right-thumb"] {
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.14), var(--typing-surface));
}

.typing-shell .typing-key[data-finger="thumbs"] {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.12), var(--typing-surface));
}

.typing-shell .typing-hand-finger[data-finger="left-pinky"] {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), var(--typing-surface));
}

.typing-shell .typing-hand-finger[data-finger="left-ring"] {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), var(--typing-surface));
}

.typing-shell .typing-hand-finger[data-finger="left-middle"] {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), var(--typing-surface));
}

.typing-shell .typing-hand-finger[data-finger="left-index"] {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.1), var(--typing-surface));
}

.typing-shell .typing-hand-finger[data-finger="right-index"] {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.1), var(--typing-surface));
}

.typing-shell .typing-hand-finger[data-finger="right-middle"] {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.1), var(--typing-surface));
}

.typing-shell .typing-hand-finger[data-finger="right-ring"] {
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.1), var(--typing-surface));
}

.typing-shell .typing-hand-finger[data-finger="right-pinky"] {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.1), var(--typing-surface));
}

.typing-shell .typing-key.is-support {
  border-style: dashed;
  border-color: rgba(251, 191, 36, 0.38);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.08);
}

.typing-shell .typing-key.is-hit {
  animation: typing-key-hit 0.24s ease;
}

.typing-shell .typing-key.is-error {
  animation: typing-key-error 0.34s ease;
}

.typing-shell .typing-key.is-flash {
  animation: typing-key-flash 0.42s ease;
}

.typing-shell .typing-finger-chip.is-pressing,
.typing-shell .typing-hand-finger.is-pressing {
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.typing-shell .typing-finger-chip.is-locked,
.typing-shell .typing-hand-finger.is-locked {
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.typing-shell .typing-placement-guide {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(88, 200, 255, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(88, 200, 255, 0.1), transparent 62%),
    rgba(255, 255, 255, 0.03);
}

.typing-shell .typing-placement-guide strong,
.typing-shell .typing-guide-copy strong {
  color: var(--typing-text);
  font-size: 16px;
}

.typing-shell .typing-placement-guide p,
.typing-shell .typing-guide-copy p {
  margin: 0;
  color: var(--typing-text-soft);
  line-height: 1.68;
}

.typing-shell .typing-placement-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.typing-shell .typing-placement-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--typing-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--typing-text-soft);
}

.typing-shell .typing-placement-list strong {
  font-size: 13px;
}

.typing-shell .typing-placement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.typing-shell .typing-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--typing-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.typing-shell .typing-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--typing-accent-strong);
}

.typing-shell.typing-placement-active .typing-prompt-shell,
.typing-shell.typing-placement-active .typing-session-note {
  border-color: rgba(88, 200, 255, 0.22);
}

.typing-shell .typing-guide-shell {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--typing-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(88, 200, 255, 0.08), transparent 58%),
    var(--typing-panel-soft);
}

.typing-shell .typing-guide-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.typing-shell .typing-guide-copy {
  display: grid;
  gap: 6px;
}

.typing-shell .typing-guide-placement {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.typing-shell .typing-guide-placement span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--typing-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--typing-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.typing-shell .typing-hand-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.typing-shell .typing-hand {
  position: relative;
  min-height: 184px;
  padding: 10px 14px 0;
  border: 1px solid var(--typing-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.03);
}

.typing-shell .typing-hand-palm {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 10px;
  height: 72px;
  border: 1px solid var(--typing-line);
  border-radius: 32px 32px 24px 24px;
  background: rgba(255, 255, 255, 0.05);
}

.typing-shell .typing-hand-finger {
  --finger-shift-x: 0px;
  --finger-shift-y: 0px;
  --finger-rotate: 0deg;
  position: absolute;
  bottom: 72px;
  width: 16%;
  padding: 10px 6px;
  border: 1px solid var(--typing-line);
  border-radius: 18px 18px 12px 12px;
  background: var(--typing-surface);
  color: var(--typing-text);
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  box-shadow: var(--typing-key-shadow);
  transform: translate(var(--finger-shift-x), var(--finger-shift-y)) rotate(var(--finger-rotate));
  transform-origin: center bottom;
  transition: transform 0.22s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.typing-shell .typing-hand-name,
.typing-shell .typing-hand-home {
  display: block;
}

.typing-shell .typing-hand-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.typing-shell .typing-hand-home {
  color: var(--typing-muted);
  font-size: 10px;
  font-weight: 700;
}

.typing-shell .typing-hand-finger.is-active {
  border-color: rgba(88, 200, 255, 0.48);
  animation: typing-finger-pulse 1.05s ease-in-out infinite;
}

.typing-shell .typing-hand-finger.is-pressing {
  border-color: rgba(52, 211, 153, 0.48);
}

.typing-shell .typing-hand-finger.is-locked {
  border-color: rgba(248, 113, 113, 0.52);
}

.typing-shell .typing-finger-grid[data-guide-legend] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.typing-shell .typing-finger-chip {
  display: grid;
  gap: 6px;
}

.typing-shell .typing-finger-chip.is-active {
  border-color: rgba(88, 200, 255, 0.42);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(88, 200, 255, 0.08);
}

.typing-shell .typing-guide-shell[data-guide-collapsed="true"] .typing-guide-placement,
.typing-shell .typing-guide-shell[data-guide-collapsed="true"] .typing-finger-grid[data-guide-legend] {
  display: none;
}

.typing-shell .typing-guide-shell[data-guide-collapsed="true"] .typing-hand {
  min-height: 138px;
}

.typing-shell .typing-guide-shell[data-guide-collapsed="true"] .typing-hand-finger {
  bottom: 52px;
}

.typing-shell .typing-hand-left [data-finger="left-pinky"] {
  left: 2%;
  height: 78px;
  --finger-rotate: -7deg;
}

.typing-shell .typing-hand-left [data-finger="left-ring"] {
  left: 18%;
  height: 94px;
  --finger-rotate: -4deg;
}

.typing-shell .typing-hand-left [data-finger="left-middle"] {
  left: 34%;
  height: 108px;
  --finger-rotate: -2deg;
}

.typing-shell .typing-hand-left [data-finger="left-index"] {
  left: 50%;
  height: 100px;
  --finger-rotate: 1deg;
}

.typing-shell .typing-hand-left [data-finger="left-thumb"] {
  left: 55%;
  bottom: 24px;
  width: 22%;
  height: 52px;
  --finger-rotate: -32deg;
}

.typing-shell .typing-hand-right [data-finger="right-index"] {
  left: 10%;
  height: 100px;
  --finger-rotate: -1deg;
}

.typing-shell .typing-hand-right [data-finger="right-middle"] {
  left: 28%;
  height: 108px;
  --finger-rotate: 2deg;
}

.typing-shell .typing-hand-right [data-finger="right-ring"] {
  left: 46%;
  height: 94px;
  --finger-rotate: 4deg;
}

.typing-shell .typing-hand-right [data-finger="right-pinky"] {
  left: 64%;
  height: 78px;
  --finger-rotate: 7deg;
}

.typing-shell .typing-hand-right [data-finger="right-thumb"] {
  left: 20%;
  bottom: 24px;
  width: 22%;
  height: 52px;
  --finger-rotate: 32deg;
}

@keyframes typing-key-hit {
  0% {
    transform: translateY(0) scale(1);
  }

  45% {
    transform: translateY(2px) scale(0.97);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes typing-key-error {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

@keyframes typing-key-flash {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
  }

  40% {
    box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.12);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(88, 200, 255, 0.08);
  }
}

@keyframes typing-finger-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(88, 200, 255, 0.14);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(88, 200, 255, 0.08);
  }
}

.typing-shell .typing-speed-center {
  display: grid;
  gap: 18px;
}

.typing-shell .typing-control-panel {
  display: grid;
  gap: 18px;
}

.typing-shell .typing-control-cluster {
  display: grid;
  gap: 10px;
}

.typing-shell .typing-control-cluster h3,
.typing-shell .typing-custom-box h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.typing-shell .typing-control-cluster p,
.typing-shell .typing-custom-box p {
  margin: 0;
  color: var(--typing-text-soft);
  line-height: 1.62;
}

.typing-shell .typing-control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.typing-shell .typing-custom-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--typing-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.typing-shell .typing-custom-box textarea {
  width: 100%;
  min-height: 124px;
  padding: 14px;
  border: 1px solid var(--typing-line);
  border-radius: 16px;
  background: var(--typing-surface);
  color: var(--typing-text);
  resize: vertical;
  outline: none;
}

.typing-shell .typing-custom-box textarea:focus {
  border-color: rgba(88, 200, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(88, 200, 255, 0.08);
}

.typing-shell .typing-result-card {
  display: grid;
  gap: 14px;
  animation: typing-fade-up 0.24s ease;
}

.typing-shell .typing-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.typing-shell .typing-result-metric {
  padding: 14px;
  border: 1px solid var(--typing-line);
  border-radius: 18px;
  background: var(--typing-panel-soft);
}

.typing-shell .typing-result-metric span {
  display: block;
  color: var(--typing-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.typing-shell .typing-result-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--typing-text);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.typing-shell .typing-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.typing-shell .typing-link-card {
  display: grid;
  gap: 12px;
}

.typing-shell .typing-link-card .typing-inline-links {
  margin-top: 2px;
}

.typing-shell .typing-link-card a {
  color: var(--typing-accent);
  font-weight: 700;
}

.typing-shell .typing-hidden {
  display: none !important;
}

.typing-shell .typing-storage-warning {
  display: grid;
  gap: 8px;
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.08);
}

.typing-shell .typing-storage-warning strong {
  color: var(--typing-text);
}

@keyframes typing-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typing-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.typing-page-main--tutor {
  padding: 8px 0 24px;
  background:
    radial-gradient(circle at top center, rgba(79, 147, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #07101c 0%, #091322 24%, #08111e 100%);
}

body:has(.typing-page-main--tutor) {
  background: #08111e;
}

.typing-page-main--tutor .typing-stage-section {
  padding-top: 0;
}

.typing-page-main--tutor .typing-stage-container {
  max-width: min(1480px, calc(100vw - 40px));
}

.typing-tutor-shell {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(79, 147, 255, 0.14), transparent 22%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.82), transparent 34%),
    linear-gradient(180deg, #09111f, #0c1626 52%, #08111e);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

.typing-tutor-shell .typing-layout.typing-studio-layout {
  grid-template-columns: 316px minmax(0, 1fr);
  gap: 24px;
}

.typing-tutor-shell .typing-sidebar--studio {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(10, 18, 31, 0.92)),
    rgba(7, 13, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.typing-tutor-shell .typing-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.typing-tutor-shell .typing-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4f93ff, #2457de);
  color: #f8fbff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.34);
}

.typing-tutor-shell .typing-brand-copy {
  display: grid;
  gap: 4px;
}

.typing-tutor-shell .typing-brand-copy h1,
.typing-tutor-shell .typing-brand-copy strong {
  margin: 0;
  color: #f8fbff;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.typing-tutor-shell .typing-brand-copy span {
  color: rgba(226, 232, 240, 0.72);
  font-size: 14px;
}

.typing-tutor-shell .typing-sidebar-header h2 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.typing-tutor-shell .typing-sidebar-header p {
  color: rgba(203, 213, 225, 0.7);
  font-size: 13px;
}

.typing-tutor-shell .typing-lesson-list {
  gap: 12px;
}

.typing-tutor-shell .typing-lesson-button {
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  border-color: rgba(148, 163, 184, 0.1);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.42)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.typing-tutor-shell .typing-lesson-button:hover,
.typing-tutor-shell .typing-lesson-button[aria-current="true"] {
  border-color: rgba(96, 165, 250, 0.26);
  background:
    linear-gradient(135deg, rgba(79, 147, 255, 0.34), rgba(48, 86, 231, 0.82)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18);
}

.typing-tutor-shell .typing-lesson-button[aria-current="true"] .typing-lesson-summary,
.typing-tutor-shell .typing-lesson-button[aria-current="true"] .typing-lesson-status {
  color: rgba(248, 250, 252, 0.88);
}

.typing-tutor-shell .typing-lesson-title {
  font-size: 20px;
}

.typing-tutor-shell .typing-lesson-summary {
  color: rgba(203, 213, 225, 0.78);
}

.typing-tutor-shell .typing-side-card--progress,
.typing-tutor-shell .typing-side-card--privacy {
  padding: 18px;
  border-radius: 22px;
  border-color: rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(10, 18, 31, 0.9)),
    rgba(255, 255, 255, 0.03);
}

.typing-tutor-shell .typing-summary-list {
  display: grid;
  gap: 12px;
}

.typing-tutor-shell .typing-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(226, 232, 240, 0.8);
  font-size: 14px;
}

.typing-tutor-shell .typing-summary-item strong {
  color: #f8fbff;
  font-size: 15px;
}

.typing-tutor-shell .typing-side-copy {
  color: rgba(203, 213, 225, 0.64);
  font-size: 13px;
}

.typing-tutor-shell .typing-main-stack--studio {
  gap: 14px;
}

.typing-tutor-shell .typing-stage-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.typing-tutor-shell .typing-stage-copy {
  display: grid;
  gap: 10px;
}

.typing-tutor-shell .typing-stage-kicker {
  color: rgba(226, 232, 240, 0.82);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.typing-tutor-shell .typing-stage-copy h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(34px, 3.3vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.typing-tutor-shell .typing-stage-copy p {
  margin: 0;
  color: rgba(203, 213, 225, 0.76);
  font-size: 17px;
  max-width: 760px;
}

.typing-tutor-shell .typing-stage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 14px;
}

.typing-tutor-shell .typing-stage-actions .typing-segmented {
  padding: 6px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.typing-tutor-shell .typing-stage-actions .typing-chip {
  min-width: 92px;
  min-height: 50px;
  border-radius: 14px;
  font-size: 14px;
}

.typing-tutor-shell .typing-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  color: rgba(226, 232, 240, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.typing-tutor-shell .typing-progress-pill strong {
  color: #f8fbff;
  font-size: 18px;
}

.typing-tutor-shell .typing-progress-ring {
  --typing-progress: 0%;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: conic-gradient(#5aa8ff var(--typing-progress), rgba(255, 255, 255, 0.08) 0);
}

.typing-tutor-shell .typing-progress-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #0c1524;
}

.typing-tutor-shell .typing-helper-row {
  gap: 12px;
}

.typing-tutor-shell .typing-pill {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: rgba(226, 232, 240, 0.78);
}

.typing-tutor-shell .typing-pill.is-live {
  background: rgba(37, 99, 235, 0.24);
  color: #e0edff;
}

.typing-tutor-shell .typing-board-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.typing-tutor-shell .typing-prompt-shell--studio {
  min-height: 0;
  padding: 28px 30px 24px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(11, 19, 33, 0.96)),
    rgba(15, 23, 42, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.typing-tutor-shell .typing-prompt-toolbar {
  margin-bottom: 24px;
}

.typing-tutor-shell .typing-prompt-status,
.typing-tutor-shell .typing-focus-hint {
  color: rgba(203, 213, 225, 0.74);
}

.typing-tutor-shell .typing-prompt {
  min-height: 148px;
  color: rgba(226, 232, 240, 0.38);
  text-align: center;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.8;
  letter-spacing: 0.2em;
}

.typing-tutor-shell .typing-prompt .typing-char {
  padding: 4px 2px;
  background: transparent;
}

.typing-tutor-shell .typing-prompt .typing-char.is-correct {
  color: #f8fbff;
  background: transparent;
}

.typing-tutor-shell .typing-prompt .typing-char.is-incorrect {
  color: rgba(248, 113, 113, 0.9);
  background: transparent;
}

.typing-tutor-shell .typing-prompt .typing-char.is-current {
  color: #f8fbff;
  background: transparent;
  box-shadow: inset 0 -3px 0 #4f93ff;
}

.typing-tutor-shell .typing-prompt .typing-char:not(.is-correct):not(.is-incorrect):not(.is-current) {
  color: rgba(226, 232, 240, 0.34);
}

.typing-tutor-shell .typing-focus-shell {
  margin-top: 24px;
}

.typing-tutor-shell .typing-board-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 20px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
}

.typing-tutor-shell .typing-board-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.typing-tutor-shell .typing-board-legend-item i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.typing-tutor-shell .typing-board-legend-item i.is-correct {
  background: #8ad790;
}

.typing-tutor-shell .typing-board-legend-item i.is-wrong {
  background: #f87171;
}

.typing-tutor-shell .typing-board-legend-item i.is-current {
  background: #4f93ff;
}

.typing-tutor-shell .typing-board-legend-item i.is-upcoming {
  background: rgba(255, 255, 255, 0.28);
}

.typing-tutor-shell .typing-placement-guide {
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(25, 35, 54, 0.88)),
    rgba(15, 23, 42, 0.76);
}

.typing-tutor-shell .typing-placement-guide p {
  max-width: 780px;
}

.typing-tutor-shell .typing-placement-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.typing-tutor-shell .typing-placement-list li {
  min-height: 72px;
  align-items: center;
}

.typing-tutor-shell .typing-placement-actions {
  margin-top: 2px;
}

.typing-tutor-shell .typing-stat-grid--studio {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.typing-tutor-shell .typing-stat-card {
  padding: 18px 20px;
  border-radius: 22px;
  border-color: rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(11, 19, 33, 0.94)),
    rgba(15, 23, 42, 0.72);
}

.typing-tutor-shell .typing-stat-card .typing-dash-copy {
  color: rgba(203, 213, 225, 0.68);
}

.typing-tutor-shell .typing-most-mistyped--session {
  margin-top: -4px;
}

.typing-tutor-shell .typing-keyboard-card--studio {
  padding: 18px;
  overflow: visible;
  border-radius: 28px;
  border-color: rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(10, 18, 31, 0.98)),
    rgba(15, 23, 42, 0.76);
}

.typing-tutor-shell .typing-keyboard-topbar--studio {
  margin-bottom: 12px;
}

.typing-tutor-shell .typing-keyboard-topbar--studio h2 {
  font-size: 18px;
}

.typing-tutor-shell .typing-keyboard-grid--studio {
  position: relative;
  padding: 14px 14px 118px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fbff, #dce4ed 86%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 24px 40px rgba(15, 23, 42, 0.22);
  overflow: visible;
}

.typing-tutor-shell .typing-keyboard {
  position: relative;
  z-index: 1;
  gap: 8px;
}

.typing-tutor-shell .typing-keyboard-row {
  gap: 8px;
}

.typing-tutor-shell .typing-key {
  min-height: 62px;
  padding: 10px 8px;
  border-color: #cad5e3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #edf2f8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 16px rgba(51, 65, 85, 0.12);
  color: #12223b;
}

.typing-tutor-shell .typing-key .typing-key-finger {
  display: none !important;
}

.typing-tutor-shell .typing-key-home-label {
  background: rgba(79, 147, 255, 0.12);
  color: #12223b;
}

.typing-tutor-shell .typing-key[data-code="KeyA"],
.typing-tutor-shell .typing-key[data-code="KeyS"],
.typing-tutor-shell .typing-key[data-code="KeyD"],
.typing-tutor-shell .typing-key[data-code="KeyF"] {
  background: linear-gradient(180deg, #eef8e5, #dcefd0);
}

.typing-tutor-shell .typing-key[data-code="KeyJ"],
.typing-tutor-shell .typing-key[data-code="KeyK"],
.typing-tutor-shell .typing-key[data-code="KeyL"],
.typing-tutor-shell .typing-key[data-code="Semicolon"] {
  background: linear-gradient(180deg, #eef4ff, #dbe8ff);
}

.typing-tutor-shell .typing-key.is-next {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #4f93ff, #2457de);
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.2),
    0 18px 26px rgba(37, 99, 235, 0.34);
  color: #f8fbff;
}

.typing-tutor-shell .typing-key.is-next .typing-key-home-label {
  background: rgba(255, 255, 255, 0.16);
  color: #f8fbff;
}

.typing-tutor-shell .typing-key.is-pressed {
  border-color: #2563eb;
  background: linear-gradient(180deg, #72a6ff, #3266eb);
  color: #f8fbff;
}

.typing-tutor-shell [data-typing-fingers].typing-finger-grid {
  position: absolute;
  inset: auto 0 -112px 0;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.typing-tutor-shell .typing-guide-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.typing-tutor-shell .typing-guide-toolbar,
.typing-tutor-shell .typing-guide-placement,
.typing-tutor-shell .typing-finger-grid[data-guide-legend] {
  display: none !important;
}

.typing-tutor-shell .typing-hand-stage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.typing-tutor-shell .typing-hand {
  min-height: 320px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.typing-tutor-shell .typing-hand-palm {
  left: 17%;
  right: 17%;
  bottom: 0;
  height: 142px;
  border: 0;
  border-radius: 48px 48px 30px 30px;
  background: linear-gradient(180deg, rgba(252, 219, 204, 0.74), rgba(203, 144, 124, 0.48));
  box-shadow:
    inset 0 10px 20px rgba(255, 255, 255, 0.22),
    0 28px 42px rgba(15, 23, 42, 0.22);
  filter: blur(0.2px);
  opacity: 0.74;
}

.typing-tutor-shell .typing-hand-finger {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(252, 223, 210, 0.82), rgba(214, 157, 137, 0.48));
  box-shadow:
    inset 0 12px 18px rgba(255, 255, 255, 0.22),
    0 22px 32px rgba(15, 23, 42, 0.18);
  color: rgba(15, 23, 42, 0.54);
  opacity: 0.78;
}

.typing-tutor-shell .typing-hand-name,
.typing-tutor-shell .typing-hand-home {
  display: none;
}

.typing-tutor-shell .typing-hand-finger.is-active {
  border-color: rgba(96, 165, 250, 0.86);
  box-shadow:
    0 0 0 4px rgba(96, 165, 250, 0.18),
    0 24px 34px rgba(37, 99, 235, 0.18);
}

.typing-tutor-shell .typing-bottom-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 24px;
  border-color: rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(10, 18, 31, 0.96)),
    rgba(15, 23, 42, 0.72);
}

.typing-tutor-shell .typing-bottom-bar .typing-session-note {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.typing-tutor-shell .typing-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px;
}

.typing-tutor-shell .typing-bottom-actions .btn,
.typing-tutor-shell .typing-dashboard-actions .btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
}

.typing-tutor-shell .typing-bottom-actions .btn.btn-primary,
.typing-tutor-shell .typing-dashboard-actions .btn.btn-primary {
  background: linear-gradient(135deg, #5aa8ff, #2457de);
  border-color: transparent;
  color: #f8fbff;
  box-shadow: 0 18px 28px rgba(37, 99, 235, 0.22);
}

.typing-tutor-shell .typing-bottom-actions .btn.btn-secondary,
.typing-tutor-shell .typing-dashboard-actions .btn.btn-secondary {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  color: #e5eefc;
}

@media (max-width: 1100px) {
  .typing-tutor-shell .typing-layout.typing-studio-layout {
    grid-template-columns: 1fr;
  }

  .typing-tutor-shell .typing-stat-grid--studio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .typing-shell .typing-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .typing-shell .typing-layout {
    grid-template-columns: 1fr;
  }

  .typing-shell .typing-sidebar {
    padding: 16px;
  }

  .typing-shell .typing-lesson-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 860px) {
  .typing-tutor-shell {
    padding: 16px;
  }

  .typing-tutor-shell .typing-stage-topbar,
  .typing-tutor-shell .typing-bottom-bar {
    grid-template-columns: 1fr;
  }

  .typing-tutor-shell .typing-placement-list {
    grid-template-columns: 1fr;
  }

  .typing-tutor-shell .typing-stage-actions,
  .typing-tutor-shell .typing-bottom-actions {
    justify-content: start;
  }

  .typing-tutor-shell .typing-stat-grid--studio {
    grid-template-columns: 1fr 1fr;
  }

  .typing-tutor-shell .typing-prompt {
    font-size: clamp(26px, 6vw, 42px);
    letter-spacing: 0.12em;
  }

  .typing-shell .typing-header-grid,
  .typing-shell .typing-dashboard-grid,
  .typing-shell .typing-stat-grid,
  .typing-shell .typing-finger-grid,
  .typing-shell .typing-result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .typing-shell .typing-header-actions {
    justify-content: start;
  }

  .typing-shell .typing-hand-stage {
    grid-template-columns: 1fr;
  }

  .typing-shell .typing-finger-grid[data-guide-legend] {
    grid-template-columns: 1fr 1fr;
  }

  .typing-shell .typing-placement-actions {
    display: grid;
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .typing-tutor-shell {
    padding: 12px;
    border-radius: 24px;
  }

  .typing-tutor-shell .typing-sidebar--studio {
    padding: 18px;
  }

  .typing-tutor-shell .typing-stage-copy h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .typing-tutor-shell .typing-stage-copy p {
    font-size: 15px;
  }

  .typing-tutor-shell .typing-stage-actions {
    display: grid;
    justify-content: stretch;
  }

  .typing-tutor-shell .typing-progress-pill {
    justify-content: space-between;
  }

  .typing-tutor-shell .typing-prompt-shell--studio {
    padding: 20px 18px 18px;
  }

  .typing-tutor-shell .typing-board-legend {
    gap: 14px;
    font-size: 13px;
  }

  .typing-tutor-shell .typing-stat-grid--studio {
    grid-template-columns: 1fr;
  }

  .typing-tutor-shell .typing-keyboard-grid--studio {
    padding: 12px 10px 86px;
    overflow-x: auto;
  }

  .typing-tutor-shell .typing-keyboard {
    min-width: 760px;
  }

  .typing-tutor-shell [data-typing-fingers].typing-finger-grid {
    inset: auto -36px -84px -36px;
  }

  .typing-tutor-shell .typing-hand {
    min-height: 220px;
  }

  .typing-tutor-shell .typing-bottom-actions .btn,
  .typing-tutor-shell .typing-dashboard-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .typing-shell .typing-header-grid,
  .typing-shell .typing-dashboard-grid,
  .typing-shell .typing-stat-grid,
  .typing-shell .typing-finger-grid,
  .typing-shell .typing-result-grid {
    grid-template-columns: 1fr;
  }

  .typing-shell .typing-segmented {
    width: 100%;
    border-radius: 20px;
  }

  .typing-shell .typing-chip,
  .typing-shell .typing-link-pill,
  .typing-shell .typing-small-button {
    width: 100%;
    justify-content: center;
  }

  .typing-shell .typing-header-grid,
  .typing-shell .typing-privacy,
  .typing-shell .typing-panel-card,
  .typing-shell .typing-result-card,
  .typing-shell .typing-keyboard-card,
  .typing-shell .typing-link-card,
  .typing-shell .typing-sidebar {
    padding: 16px;
  }

  .typing-shell .typing-practice-header,
  .typing-shell .typing-focus-shell,
  .typing-shell .typing-prompt-toolbar {
    display: grid;
  }

  .typing-shell .typing-prompt {
    font-size: 20px;
    line-height: 1.7;
  }

  .typing-shell .typing-key {
    min-height: 48px;
    padding: 7px 6px 8px;
  }

  .typing-shell .typing-key span {
    font-size: 12px;
  }

  .typing-shell .typing-key small {
    font-size: 10px;
  }

  .typing-shell .typing-key-finger,
  .typing-shell .typing-key-home-label,
  .typing-shell .typing-hand-name,
  .typing-shell .typing-hand-home {
    display: none;
  }

  .typing-shell .typing-guide-toolbar,
  .typing-shell .typing-placement-actions {
    display: grid;
  }

  .typing-shell .typing-guide-shell,
  .typing-shell .typing-placement-guide {
    padding: 14px;
  }

  .typing-shell .typing-guide-placement {
    gap: 8px;
  }

  .typing-shell .typing-guide-placement span {
    width: 100%;
    justify-content: center;
  }

  .typing-shell .typing-hand {
    min-height: 124px;
  }

  .typing-shell .typing-hand-finger {
    bottom: 46px;
    width: 15%;
    padding: 8px 4px;
  }

  .typing-shell .typing-finger-grid[data-guide-legend] {
    grid-template-columns: 1fr;
  }
}

.typing-tutor-shell .typing-sidebar-brand {
  justify-content: space-between;
}

.typing-tutor-shell .typing-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.typing-tutor-shell .typing-sidebar-menu {
  display: inline-grid;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  align-content: center;
  justify-items: center;
}

.typing-tutor-shell .typing-sidebar-menu span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.92);
}

.typing-tutor-shell .typing-sidebar-menu span:nth-child(2) {
  width: 12px;
}

.typing-tutor-shell .typing-sidebar-menu span:nth-child(3) {
  width: 18px;
}

.typing-tutor-shell .typing-lesson-button {
  padding: 16px 18px 14px;
}

.typing-tutor-shell .typing-lesson-leading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
}

.typing-tutor-shell .typing-lesson-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: rgba(248, 250, 252, 0.96);
  font-size: 16px;
  font-weight: 800;
}

.typing-tutor-shell .typing-lesson-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.typing-tutor-shell .typing-lesson-title {
  font-size: 16px;
  line-height: 1.3;
}

.typing-tutor-shell .typing-lesson-summary {
  color: rgba(203, 213, 225, 0.72);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.typing-tutor-shell .typing-lesson-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.typing-tutor-shell .typing-lesson-button[aria-current="true"] .typing-lesson-check,
.typing-tutor-shell .typing-lesson-button.is-complete .typing-lesson-check {
  opacity: 1;
  transform: scale(1);
}

.typing-tutor-shell .typing-stage-kicker {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.typing-tutor-shell .typing-stage-copy h2 {
  font-size: clamp(34px, 3.5vw, 44px);
  line-height: 1.02;
}

.typing-tutor-shell .typing-stage-copy p {
  max-width: none;
  font-size: 16px;
}

.typing-tutor-shell .typing-helper-row {
  margin-top: 6px;
}

.typing-tutor-shell .typing-helper-row [data-typing-next-key],
.typing-tutor-shell .typing-helper-row [data-typing-next-finger] {
  display: none;
}

.typing-tutor-shell .typing-pill {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.typing-tutor-shell .typing-prompt-shell--studio {
  position: relative;
  min-height: 220px;
}

.typing-tutor-shell .typing-prompt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.typing-tutor-shell .typing-prompt-status,
.typing-tutor-shell .typing-focus-hint {
  font-size: 13px;
  font-weight: 700;
}

.typing-tutor-shell .typing-prompt {
  min-height: 86px;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.35;
  letter-spacing: 0.18em;
}

.typing-tutor-shell .typing-prompt .typing-char {
  padding: 2px 1px;
}

.typing-tutor-shell .typing-board-legend {
  margin-top: 10px;
  gap: 18px;
}

.typing-tutor-shell .typing-focus-shell {
  display: none;
}

.typing-tutor-shell .typing-placement-guide {
  gap: 12px;
}

.typing-tutor-shell.typing-placement-active .typing-placement-guide {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 6;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.42);
}

.typing-tutor-shell.typing-placement-active .typing-prompt-toolbar,
.typing-tutor-shell.typing-placement-active .typing-prompt,
.typing-tutor-shell.typing-placement-active .typing-board-legend,
.typing-tutor-shell.typing-placement-active .typing-focus-shell {
  opacity: 0.18;
  filter: blur(1.5px);
  pointer-events: none;
}

.typing-tutor-shell .typing-stat-grid--studio {
  gap: 12px;
}

.typing-tutor-shell .typing-stat-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 14px 16px;
}

.typing-tutor-shell .typing-stat-card::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(10, 18, 31, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.typing-tutor-shell .typing-stat-card::after {
  grid-column: 1;
  grid-row: 1 / span 3;
  justify-self: center;
  align-self: center;
  font-size: 24px;
  font-weight: 700;
}

.typing-tutor-shell .typing-stat-card:nth-child(1)::after {
  content: "◷";
  color: #7da3ff;
}

.typing-tutor-shell .typing-stat-card:nth-child(2)::after {
  content: "⌁";
  color: #f4c84f;
}

.typing-tutor-shell .typing-stat-card:nth-child(3)::after {
  content: "◎";
  color: #8ad790;
}

.typing-tutor-shell .typing-stat-card:nth-child(4)::after {
  content: "✕";
  color: #f87171;
}

.typing-tutor-shell .typing-stat-card:nth-child(5)::after {
  content: "↻";
  color: #7296ff;
}

.typing-tutor-shell .typing-stat-card .typing-dash-label,
.typing-tutor-shell .typing-stat-card .typing-dash-value,
.typing-tutor-shell .typing-stat-card .typing-dash-copy {
  grid-column: 2;
}

.typing-tutor-shell .typing-stat-card .typing-dash-copy {
  margin: 0;
}

.typing-tutor-shell .typing-most-mistyped--session {
  display: none;
}

.typing-tutor-shell .typing-keyboard-card--studio {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.typing-tutor-shell .typing-keyboard-grid--studio {
  padding: 12px 12px 54px;
  border-radius: 22px;
}

.typing-tutor-shell .typing-keyboard-row {
  gap: 8px;
}

.typing-tutor-shell .typing-key {
  min-height: 54px;
  border-radius: 12px;
}

.typing-tutor-shell [data-typing-fingers].typing-finger-grid {
  inset: auto 0 -90px 0;
}

.typing-tutor-shell .typing-guide-shell {
  position: relative;
}

.typing-tutor-shell .typing-hand-stage {
  position: relative;
  min-height: 276px;
}

.typing-tutor-shell .typing-hand-stage::before {
  content: "";
  position: absolute;
  inset: 8px 8% -86px 8%;
  background: url("../img/hand.png") center bottom / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.typing-tutor-shell .typing-hand {
  position: relative;
  min-height: 276px;
  padding: 0;
  z-index: 2;
}

.typing-tutor-shell .typing-hand-palm {
  display: none;
}

.typing-tutor-shell .typing-hand-finger {
  width: 18%;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1;
}

.typing-tutor-shell .typing-hand-finger::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(79, 147, 255, 0.48) 0%, rgba(79, 147, 255, 0.18) 34%, rgba(79, 147, 255, 0) 72%);
  opacity: 0;
  transform: scale(0.82);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.typing-tutor-shell .typing-hand-finger.is-active::after {
  opacity: 1;
  transform: scale(1);
}

.typing-tutor-shell .typing-hand-finger.is-pressing::after {
  opacity: 1;
  transform: scale(0.94);
  background: radial-gradient(circle, rgba(52, 211, 153, 0.54) 0%, rgba(52, 211, 153, 0.14) 38%, rgba(52, 211, 153, 0) 72%);
}

.typing-tutor-shell .typing-hand-finger.is-locked::after {
  opacity: 1;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.48) 0%, rgba(248, 113, 113, 0.14) 34%, rgba(248, 113, 113, 0) 72%);
}

.typing-tutor-shell .typing-hand-finger.is-active {
  box-shadow: none;
}

.typing-tutor-shell .typing-hand-left [data-finger="left-pinky"] {
  left: 5%;
  bottom: 104px;
  height: 86px;
}

.typing-tutor-shell .typing-hand-left [data-finger="left-ring"] {
  left: 21%;
  bottom: 96px;
  height: 104px;
}

.typing-tutor-shell .typing-hand-left [data-finger="left-middle"] {
  left: 37%;
  bottom: 92px;
  height: 116px;
}

.typing-tutor-shell .typing-hand-left [data-finger="left-index"] {
  left: 53%;
  bottom: 96px;
  height: 108px;
}

.typing-tutor-shell .typing-hand-left [data-finger="left-thumb"] {
  left: 60%;
  bottom: 50px;
  width: 22%;
  height: 72px;
}

.typing-tutor-shell .typing-hand-right [data-finger="right-index"] {
  left: 8%;
  bottom: 98px;
  height: 108px;
}

.typing-tutor-shell .typing-hand-right [data-finger="right-middle"] {
  left: 25%;
  bottom: 92px;
  height: 116px;
}

.typing-tutor-shell .typing-hand-right [data-finger="right-ring"] {
  left: 42%;
  bottom: 96px;
  height: 104px;
}

.typing-tutor-shell .typing-hand-right [data-finger="right-pinky"] {
  left: 59%;
  bottom: 104px;
  height: 86px;
}

.typing-tutor-shell .typing-hand-right [data-finger="right-thumb"] {
  left: 20%;
  bottom: 50px;
  width: 22%;
  height: 72px;
}

.typing-tutor-shell .typing-bottom-bar {
  padding: 12px 16px;
  border-radius: 18px;
}

.typing-tutor-shell .typing-bottom-bar .typing-session-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(241, 245, 249, 0.92);
  font-size: 15px;
}

.typing-tutor-shell .typing-bottom-bar .typing-session-note strong {
  color: #f8d34e;
}

.typing-tutor-shell .typing-bottom-actions {
  gap: 10px;
}

.typing-tutor-shell .typing-bottom-actions .btn {
  min-width: 132px;
}

@media (max-width: 1100px) {
  .typing-tutor-shell .typing-sidebar-menu {
    display: none;
  }

  .typing-tutor-shell .typing-lesson-button {
    min-width: 240px;
  }
}

@media (max-width: 860px) {
  .typing-tutor-shell .typing-helper-row [data-typing-next-key],
  .typing-tutor-shell .typing-helper-row [data-typing-next-finger] {
    display: inline-flex;
  }

  .typing-tutor-shell.typing-placement-active .typing-placement-guide {
    position: static;
    box-shadow: none;
  }

  .typing-tutor-shell.typing-placement-active .typing-prompt-toolbar,
  .typing-tutor-shell.typing-placement-active .typing-prompt,
  .typing-tutor-shell.typing-placement-active .typing-board-legend,
  .typing-tutor-shell.typing-placement-active .typing-focus-shell {
    opacity: 1;
    filter: none;
    pointer-events: auto;
  }

  .typing-tutor-shell .typing-keyboard-grid--studio {
    padding-bottom: 62px;
  }

  .typing-tutor-shell [data-typing-fingers].typing-finger-grid {
    inset: auto -28px -92px -28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-shell *,
  .typing-shell *::before,
  .typing-shell *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .typing-shell .typing-hand-finger {
    transform: rotate(var(--finger-rotate)) !important;
  }
}
