/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg: #f2f5fa;
  --ink: #24324c;
  --muted: #738099;
  --blue: #315cdf;
  --line: #dfe6f0;
  --f0: #f5dbe3;
  --f1: #e9e0f6;
  --f2: #dce8fb;
  --f3: #dbf0e8;
  --f8: #f5e8cb;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-family: Segoe UI, ui-sans-serif, system-ui, sans-serif;
}

button, select, textarea {
  font: inherit;
}

button, select {
  cursor: pointer;
}

button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 36px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  height: 102px;
  display: flex;
}

.brand {
  color: var(--ink);
  letter-spacing: -1px;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 750;
  text-decoration: none;
  display: flex;
}

.brand-light {
  font-weight: 400;
}

.brand-mark {
  background: var(--blue);
  color: #fff;
  letter-spacing: -2px;
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  font-size: 25px;
  display: flex;
}

.brand-mark span {
  opacity: .65;
}

.top-note {
  color: var(--muted);
  align-items: center;
  gap: 9px;
  font-size: 13px;
  display: flex;
}

.dot {
  background: #76ad99;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.intro {
  justify-content: space-between;
  align-items: center;
  margin: 43px 0 27px;
  display: flex;
}

.intro h1 {
  letter-spacing: -1.5px;
  margin: 0 0 8px;
  font-size: 37px;
  font-weight: 650;
}

.intro p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.lesson-picker {
  color: var(--muted);
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  display: flex;
}

.lesson-picker select {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 9px;
  min-width: 220px;
  padding: 10px 34px 10px 12px;
  font-size: 13px;
}

.practice {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.practice-top {
  color: var(--muted);
  justify-content: space-between;
  padding: 23px 30px 0;
  font-size: 12px;
  display: flex;
}

.lesson-count {
  color: #9aa5b6;
}

.text-area {
  cursor: text;
  margin: 28px 30px 29px;
  position: relative;
}

.sample {
  letter-spacing: .15px;
  color: #8a96a9;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  pointer-events: none;
  margin: 0;
  font-family: Cascadia Code, SFMono-Regular, Consolas, monospace;
  font-size: 25px;
  line-height: 1.95;
}

.sample .correct {
  color: #277560;
}

.sample .incorrect {
  color: #ad274a;
  background: #ffe2e6;
  border-radius: 3px;
  -webkit-text-decoration: underline #db6a83;
  text-decoration: underline #db6a83;
}

.sample .current {
  color: var(--ink);
  border-left: 2px solid var(--blue);
  background: #e9efff;
  border-radius: 3px;
  margin-left: -2px;
}

.typing-input {
  opacity: 0;
  resize: none;
  cursor: text;
  border: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  font-size: 16px;
  position: absolute;
  inset: 0;
}

.text-area:focus-within {
  outline-offset: 12px;
  border-radius: 4px;
  outline: 2px solid #d9e3ff;
}

.practice-bottom {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 30px 20px;
  font-size: 12px;
  display: flex;
}

.status {
  align-items: center;
  gap: 8px;
  display: flex;
}

.status-dot {
  background: #a7b1c2;
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.status-dot.running, .status-dot.done {
  background: #50a987;
}

.status-dot.paused {
  background: #d5a247;
}

.progress-track {
  background: #eef2f8;
  height: 3px;
}

.progress-track > div {
  background: var(--blue);
  height: 100%;
  transition: width .15s;
}

.stats {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 0;
  margin-bottom: 23px;
  padding: 24px 8px;
  display: flex;
}

.stat {
  border-right: 1px solid var(--line);
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 0 25px;
  display: flex;
}

.stat:first-child {
  padding-left: 8px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  letter-spacing: -.7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 26px;
  font-weight: 600;
}

.stat small {
  letter-spacing: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.stat:nth-child(4) {
  border: 0;
}

.actions {
  gap: 10px;
  padding-left: 16px;
  display: flex;
}

.icon-button {
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  color: var(--muted);
  background: none;
  border-radius: 9px;
  font-size: 23px;
}

.main-button {
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
  border: 0;
  border-radius: 9px;
  align-items: center;
  gap: 18px;
  padding: 13px 17px;
  font-size: 13px;
  display: flex;
}

.main-button:hover {
  background: #254ac2;
}

.icon-button:hover {
  background: #e6ecf6;
}

.keyboard-heading {
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 18px;
  display: flex;
}

.keyboard-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.keyboard-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.keyboard {
  background: #e7ecf4;
  border: 1px solid #dce3ee;
  border-radius: 14px;
  min-width: 640px;
  padding: 15px;
}

.key-row {
  gap: 7px;
  margin-bottom: 7px;
  display: flex;
}

.key-row:last-child {
  margin-bottom: 0;
}

.key {
  color: #43516a;
  border: 1px solid #00000009;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  min-width: 0;
  height: 48px;
  font-size: 13px;
  transition: transform 80ms, background 80ms;
  display: flex;
  position: relative;
  box-shadow: 0 3px #a0acc033;
}

.neutral {
  color: #8090a8;
  background: #f7f9fc;
  font-size: 11px;
}

.finger-0, .finger-7 {
  background: var(--f0);
}

.finger-1, .finger-6 {
  background: var(--f1);
}

.finger-2, .finger-5 {
  background: var(--f2);
}

.finger-3, .finger-4 {
  background: var(--f3);
}

.finger-8 {
  background: var(--f8);
}

.key i {
  opacity: .45;
  background: currentColor;
  border-radius: 2px;
  width: 11px;
  height: 2px;
  position: absolute;
  bottom: 8px;
}

.key.expected {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  color: #244bbf;
  z-index: 1;
}

.key.pressed {
  box-shadow: none;
  color: #374151;
  background: #d1d5db;
  transform: translateY(3px);
}

.legend {
  color: var(--muted);
  justify-content: space-between;
  gap: 15px;
  margin: 20px 4px 0;
  font-size: 11px;
  display: flex;
}

.finger-legend {
  flex-wrap: wrap;
  gap: 20px;
  display: flex;
}

.legend span {
  align-items: center;
  gap: 7px;
  display: flex;
}

.legend i {
  border: 1px solid #00000009;
  border-radius: 3px;
  width: 11px;
  height: 11px;
  display: inline-block;
}

.expected-legend i {
  outline: 1.5px solid var(--blue);
  outline-offset: 1px;
}

footer {
  color: var(--muted);
  align-items: center;
  gap: 10px;
  padding: 26px 0 32px;
  font-size: 11px;
  display: flex;
}

footer p {
  margin: 0;
  line-height: 1.7;
}

footer strong {
  color: #556780;
  font-weight: 600;
}

.tip-icon {
  color: #8497b8;
  font-size: 20px;
}

.footer-note {
  white-space: nowrap;
  margin-left: auto;
}

.completed {
  border-color: #a5cbbd;
}

@media (min-width: 1400px) {
  .shell {
    padding-top: 18px;
  }

  .intro {
    margin-top: 55px;
  }

  .text-area {
    margin-top: 36px;
    margin-bottom: 36px;
  }

  .sample {
    font-size: 27px;
  }

  .key {
    height: 53px;
  }
}

@media (max-width: 900px) {
  .stat {
    padding: 0 15px;
  }

  .stats {
    flex-wrap: wrap;
    row-gap: 20px;
  }

  .actions {
    margin-left: auto;
  }

  .footer-note {
    display: none;
  }

  .main-button {
    gap: 10px;
  }

  .sample {
    font-size: 23px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 18px;
  }

  .topbar {
    height: 76px;
  }

  .top-note {
    display: none;
  }

  .intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin: 28px 0 22px;
  }

  .intro h1 {
    font-size: 31px;
  }

  .lesson-picker {
    width: 100%;
  }

  .practice-top {
    padding: 18px 20px 0;
  }

  .lesson-count {
    display: none;
  }

  .text-area {
    margin: 24px 20px;
  }

  .sample {
    font-size: 20px;
    line-height: 1.85;
  }

  .practice-bottom {
    flex-wrap: wrap;
    padding: 0 20px 18px;
  }

  .stats {
    padding: 20px 0;
  }

  .stat {
    flex: 25%;
    padding: 0 8px;
  }

  .stat:first-child {
    padding-left: 0;
  }

  .stat strong {
    font-size: 23px;
  }

  .stat small {
    font-size: 10px;
    display: block;
  }

  .actions {
    justify-content: flex-end;
    width: 100%;
    padding: 0;
  }

  .keyboard-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .keyboard-scroll {
    margin: 0 -4px;
    padding: 4px 4px 7px;
    overflow: auto;
  }

  .legend {
    flex-direction: column;
    margin-top: 16px;
  }

  .finger-legend {
    gap: 13px;
  }

  .key {
    height: 43px;
  }

  .key-row {
    gap: 5px;
  }

  footer {
    padding-top: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

button:disabled, select:disabled, input:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.nav {
  gap: 6px;
  display: flex;
}

.nav button, .account button, .storage-bar button, .row-actions button, .pagination button, .panel-heading > button, .custom-controls button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: none;
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 12px;
}

.nav button.active {
  background: #e3eaf6;
  border-color: #d2dced;
}

.account {
  align-items: center;
  gap: 10px;
  font-size: 12px;
  display: flex;
}

.account > span {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 135px;
  overflow: hidden;
}

.storage-bar {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  font-size: 11px;
  display: flex;
}

.storage-state {
  align-items: center;
  gap: 7px;
  display: flex;
}

.storage-bar > div {
  gap: 7px;
  display: flex;
}

.storage-bar button {
  padding: 5px 8px;
  font-size: 11px;
}

.notice {
  color: #465872;
  background: #e8edf5;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.6;
  display: flex;
}

.notice button {
  color: inherit;
  background: none;
  border: 0;
  font-size: 20px;
}

.intro {
  margin-top: 24px;
}

.course-label {
  color: var(--muted);
  font-size: 12px;
}

.training-controls, .custom-controls {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 15px;
  display: flex;
}

.training-controls label, .custom-controls label, .filter-row label {
  color: var(--muted);
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  display: flex;
}

.training-controls select, .training-controls input[type="number"], .custom-controls input, .filter-row select {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
}

.training-controls input[type="number"], .custom-controls input[type="number"] {
  width: 65px;
}

.training-controls .check-label {
  color: var(--ink);
  flex-direction: row;
  align-self: center;
  align-items: center;
  margin-top: 17px;
}

.check-label input {
  accent-color: #78859b;
}

.custom-controls {
  background: #e9eef6;
  border-radius: 10px;
  padding: 16px;
}

.custom-controls input:not([type="number"]) {
  max-width: 180px;
}

.custom-controls button {
  background: #fff;
  height: 36px;
}

.mode-hint {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 11px;
  line-height: 1.7;
}

.status-dot.completed {
  background: #50a987;
}

.adaptive-note {
  align-items: baseline;
  gap: 15px;
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.7;
  display: flex;
}

.adaptive-note > span {
  white-space: nowrap;
  font-weight: 600;
}

.adaptive-note p {
  color: var(--muted);
  margin: 0;
}

.adaptive-note code {
  color: var(--ink);
  background: #e3eaf6;
  border-radius: 4px;
  margin: 0 3px;
  padding: 1px 6px;
  display: inline-block;
}

.history-view {
  padding: 28px 0 45px;
}

.history-heading {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  display: flex;
}

.history-heading h1 {
  letter-spacing: -1px;
  margin: 0 0 8px;
  font-size: 30px;
}

.history-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.filter-row {
  gap: 10px;
  display: flex;
}

.filter-row select {
  max-width: 200px;
}

.summary-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 22px 0;
  display: grid;
}

.summary-strip > div {
  flex-direction: column;
  gap: 7px;
  display: flex;
}

.summary-strip span {
  color: var(--muted);
  font-size: 12px;
}

.summary-strip strong {
  font-size: 24px;
  font-weight: 600;
}

.trends {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
  display: grid;
}

.trend {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  margin: 0;
  padding: 18px;
}

.trend figcaption {
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}

.trend figcaption span {
  color: var(--muted);
  font-weight: 400;
}

.trend svg {
  width: 100%;
  margin-top: 15px;
}

.trend text {
  fill: #738099;
  font-size: 10px;
}

.analysis-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  margin-top: 22px;
  padding: 22px;
}

.analysis-panel h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.analysis-panel h3 {
  margin: 22px 0 12px;
  font-size: 13px;
  font-weight: 600;
}

.panel-heading {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.panel-heading h2 {
  margin: 0;
}

.hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.segmented {
  background: #eef2f7;
  border-radius: 7px;
  gap: 3px;
  padding: 3px;
  display: flex;
}

.segmented button {
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 12px;
}

.segmented button.active {
  color: var(--ink);
  background: #fff;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 12px;
}

th {
  color: var(--muted);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
}

th, td {
  border-bottom: 1px solid #e9eef5;
  padding: 13px 10px;
  line-height: 1.5;
}

th:first-child, td:first-child {
  padding-left: 0;
}

td code {
  background: #eef2f7;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 13px;
}

.needs-practice {
  color: #89632f;
}

.muted {
  color: var(--muted);
}

.confusions {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.confusions > span {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  font-size: 11px;
}

.confusions b {
  color: #89632f;
  margin-left: 9px;
}

.row-actions {
  gap: 6px;
  display: flex;
}

.row-actions button {
  padding: 5px 7px;
  font-size: 10px;
}

.pagination {
  color: var(--muted);
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 11px;
  display: flex;
}

.saved-text {
  overflow-wrap: anywhere;
  background: #f3f6fa;
  padding: 16px;
  font-family: Consolas, monospace;
  line-height: 1.9;
}

.detail-metrics {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  display: grid;
}

.detail-metrics dt {
  color: var(--muted);
  font-size: 11px;
}

.detail-metrics dd {
  margin: 7px 0 0;
  font-size: 17px;
}

input:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #315cdf;
}

.details td {
  white-space: nowrap;
  font-size: 10px;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
    min-height: 100px;
    padding: 20px 0;
  }

  .account {
    margin-left: auto;
  }

  .history-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .training-controls {
    gap: 12px;
  }

  .training-controls label {
    flex: 25%;
  }

  .training-controls .check-label {
    flex: 0 auto;
  }

  .adaptive-note {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 118px;
  }

  .brand {
    font-size: 20px;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .account {
    max-width: 180px;
  }

  .account > span {
    display: none;
  }

  .account button {
    padding: 7px;
    font-size: 10px;
  }

  .storage-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .training-controls label {
    flex: 40%;
  }

  .training-controls select, .training-controls input[type="number"] {
    width: 100%;
  }

  .intro p {
    font-size: 13px;
    line-height: 1.7;
  }

  .practice-top {
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.7;
  }

  .custom-controls label {
    flex: 35%;
  }

  .trends {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  .summary-strip strong {
    font-size: 21px;
  }

  .analysis-panel {
    padding: 16px;
  }

  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .filter-row {
    flex-wrap: wrap;
    width: 100%;
  }

  .filter-row label {
    flex: 1;
  }

  .filter-row select {
    width: 100%;
    max-width: none;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8plh8sv.css.map*/