/* Shared study workspace and interaction tokens. */
:root {
  --ink: #102f51;
  --paper: #fbfaf7;
  --soft: #eaf1f5;
  --slate: #486175;
  --edge: #d5dfe4;
  --round: 20px;
  --lift: 0 16px 40px #142e4810;
  --space: clamp(18px, 3vw, 34px);
  --ease: 190ms ease-out;
}
[hidden] {
  display: none !important;
}
body {
  color: var(--ink);
  text-rendering: optimizeLegibility;
}
.profile-page,
.studio-page {
  background: var(--paper);
}
.container {
  width: min(1180px, calc(100% - 40px));
}
.site-header {
  background: #fff;
}
.header-inner {
  min-height: 64px;
}
.brand {
  letter-spacing: -0.055em;
}
.learning-nav-inner {
  gap: 8px;
  width: min(1180px, calc(100% - 40px));
}
.learning-nav-label {
  display: none;
}
.learning-nav-links a {
  padding: 10px 8px;
}
.site-header:has(#learning-navigation) .header-inner {
  flex-wrap: nowrap;
}
.site-header #learning-navigation {
  min-width: 0;
  flex: 1;
}
.site-header #learning-navigation .learning-nav-inner {
  width: auto;
}
.site-header #learning-navigation .learning-nav-bar {
  border: 0;
}
.site-header .brand-ai {
  color: #276bbb;
}
.studio-shell {
  max-width: 1060px;
  padding-block: clamp(28px, 5vw, 70px);
}
.studio-title {
  margin-bottom: 28px;
}
.studio-title .eyebrow,
.studio-shell .sheet > small,
.home-sample small {
  font:
    650 0.76rem/1.5 "Segoe UI",
    sans-serif;
  letter-spacing: 0.11em;
  color: #2d6a73;
  text-transform: uppercase;
}
.studio-title h1 {
  margin: 5px 0 8px;
  font-size: clamp(2.25rem, 5vw, 3.9rem);
  letter-spacing: -0.065em;
}
.studio-title > p:last-child,
.sheet p,
.legend-note {
  color: var(--slate);
}
#studio {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.sheet,
.numbers,
.profile-card,
.panel,
.feature-card,
.resource-card {
  border: 1px solid var(--edge);
  border-radius: var(--round);
  background: white;
  box-shadow: 0 4px 14px #15314904;
}
.sheet {
  padding: var(--space);
  min-width: 0;
  overflow-wrap: anywhere;
}
.sheet h2 {
  font-size: clamp(1.24rem, 2.4vw, 1.75rem);
  margin: 0 0 10px;
}
.sheet h3 {
  margin: 4px 0;
}
.sheet p {
  margin: 8px 0 16px;
}
.feature-sheet {
  background: #e9f3ef;
  border-color: #ccdfd8;
}
.studio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.numbers {
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}
.numbers > div {
  padding: clamp(14px, 2vw, 24px);
  border-right: 1px solid var(--edge);
}
.numbers dt {
  font-size: 0.85rem;
  color: var(--slate);
}
.numbers dd {
  margin: 4px 0 0;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 2.1rem);
  font-variant-numeric: tabular-nums;
}
.studio-grid .sheet {
  height: 100%;
}
.trail,
.actions,
.section-top,
.compact,
.checkline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.trail,
.section-top {
  justify-content: space-between;
}
.trail > span,
small {
  font-size: 0.84rem;
}
.section-top {
  gap: 16px;
}
.sheet label:not(.checkline):not(.file-label) {
  display: block;
  font-weight: 600;
}
.sheet input:not([type="checkbox"]):not([type="radio"]),
.sheet textarea,
.sheet select {
  display: block;
  width: min(100%, 360px);
  min-height: 44px;
  font: inherit;
  color: var(--ink);
  background: white;
  border: 1px solid #9aadb9;
  border-radius: 9px;
  padding: 8px 12px;
  margin: 5px 0 12px;
}
.sheet textarea {
  width: 100%;
  min-height: 75px;
}
.sheet .checkline {
  margin: 14px 0;
}
.checkline input,
.question input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}
.sheet progress {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: #258379;
  margin: 10px 0 22px;
}
.solid,
.soft,
.options button,
.file-label {
  line-height: 1.45;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  padding: 9px 16px;
  border: 1px solid #c5d4dd;
  background: white;
  color: var(--navy);
  cursor: pointer;
}
.solid {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.soft:hover,
.options button:hover:not(:disabled) {
  background: #e7f0f5;
}
.compact label {
  flex: 1;
}
.compact input {
  margin: 4px 0 !important;
}
.actions {
  margin-top: 12px;
}
.word-card {
  border-top: 4px solid var(--mint);
}
.word-card h2 {
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.phonetic {
  font-size: 1.15rem;
}
.word-card blockquote {
  margin: 22px 0 4px;
  border-left: 3px solid var(--mint);
  padding-left: 14px;
  font-family: Georgia, serif;
  font-size: 1.25rem;
}
.player {
  background: #f0f5f7;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
}
.wave {
  color: #327976;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  line-height: 1;
}
.player small {
  display: block;
  margin: 9px 0;
  color: var(--slate);
}
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.options button {
  justify-content: flex-start;
}
.options .correct,
.result {
  background: #e9f6ee;
}
.result {
  padding: 15px;
  border-radius: 12px;
  margin: 14px 0;
}
.lesson-list article {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--edge);
  padding: 18px 0;
}
.lesson-list article div {
  flex: 1;
  min-width: 0;
}
.lesson-list article h3 {
  font-size: 1.05rem;
}
.track {
  font: italic 1.35rem Georgia;
  color: #406a78;
}
.question {
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--edge);
  padding: 15px 0;
  margin: 15px 0;
}
.question legend {
  font-weight: 700;
  padding: 0 8px 0 0;
}
.question label {
  padding: 9px;
  background: #f5f7f8;
  border-radius: 7px;
  margin: 5px 0;
  cursor: pointer;
}
.question input {
  vertical-align: middle;
}
.detail-list dd {
  margin: 4px 0 15px;
}
.detail-list dt {
  color: var(--slate);
  font-size: 0.8rem;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin: 15px 0;
  text-align: center;
}
.calendar-grid button {
  position: relative;
  border: 0;
  background: #f1f5f7;
  border-radius: 9px;
  min-height: 46px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.calendar-grid button[aria-pressed="true"] {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
  font-weight: bold;
  background: #e0edf4;
}
.calendar-grid button.off {
  color: #687579;
}
.calendar-grid .logged:after,
.calendar-grid .scheduled:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23806f;
}
.calendar-grid .scheduled:after {
  height: 3px;
  width: 9px;
  background: #3679b7;
}
.chart {
  display: grid;
  gap: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 65px 1fr 75px;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.bar-row div {
  height: 9px;
  background: #edf2f4;
  border-radius: 5px;
}
.bar-row i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #438888;
}
.file-label {
  display: block;
  max-width: 100%;
}
.file-label input {
  max-width: 100%;
  font-size: 0.8rem !important;
}
.skeleton {
  min-height: 180px;
  border-radius: 20px;
  background: linear-gradient(100deg, #e7edef, #f6f8f9, #e7edef);
  padding: 25px;
  color: var(--slate);
  animation: pulse 850ms ease-out 2 alternate;
}
.load-error {
  border-color: #bb736c;
}
#studio-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 11px 20px;
  border-radius: 12px;
  z-index: 15;
  max-width: 90vw;
  width: max-content;
  box-shadow: var(--lift);
}
:focus-visible {
  outline: 3px solid #2167ac;
  outline-offset: 3px;
}
.hero {
  background: var(--paper);
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.9rem);
  line-height: 1.11;
}
.hero-copy h1 .accent {
  color: #28665e;
}
.home-sample {
  position: relative;
  background: #183e4c;
  color: #f4f5e9;
  border-radius: 26px;
  padding: clamp(24px, 4vw, 54px);
  box-shadow: var(--lift);
  overflow: hidden;
}
.home-sample:before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  top: -145px;
  border: 1px solid #aecdb850;
  border-radius: 50%;
  box-shadow:
    0 0 0 22px #aaccc214,
    0 0 0 45px #aaccc210,
    0 0 0 70px #aaccc209;
  pointer-events: none;
}
.home-sample small {
  color: #b2ddc9;
}
.home-sample h2 {
  font:
    italic clamp(2.9rem, 6vw, 5.6rem)/1.2 Georgia,
    serif;
  color: #fff8e9;
  letter-spacing: -0.05em;
  margin: 30px 0 4px;
}
.home-sample blockquote {
  font:
    1.25rem/1.6 Georgia,
    serif;
  margin: 24px 0 20px;
  border-top: 1px solid #527580;
  padding-top: 20px;
}
.home-sample a {
  font-weight: 600;
  border-bottom: 1px solid #a7d5c4;
  color: white;
}
.hero-tags {
  display: none;
}
.profile-shell #studio {
  margin: 24px 0;
}
.sheet .legend-note {
  font-size: 0.8rem;
}
.brand-stamp {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--navy);
  border-radius: 8px;
  color: white;
  font: italic 700 21px Georgia;
}
.profile-footer {
  margin-top: 16px;
}
@media (min-width: 901px) {
  .site-header #learning-navigation {
    max-width: 930px;
  }
  .site-header #learning-navigation .learning-nav-links {
    justify-content: flex-end;
    gap: 5px;
  }
}
@media (max-width: 900px) {
  .site-header #learning-navigation .learning-nav-inner {
    justify-content: flex-end;
    min-height: 60px;
  }
  .site-header .learning-nav-links {
    display: none !important;
  }
  .site-header .learning-nav-toggle {
    display: block;
    min-height: 44px;
    margin: 0;
  }
  .site-header .learning-nav-links.open {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px 20px;
    background: white;
    box-shadow: var(--lift);
    border-bottom: 1px solid var(--edge);
  }
  .site-header .learning-nav-links a {
    white-space: normal;
    min-height: 44px;
  }
  .learning-nav-inner {
    position: static;
  }
}
@media (max-width: 650px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .numbers {
    grid-template-columns: 1fr 1fr;
  }
  .container {
    width: calc(100% - 32px);
  }
  .sheet {
    padding: 18px;
  }
  .options {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    gap: 2px;
  }
  .calendar-grid button {
    padding: 0;
  }
  .trail > span {
    font-size: 0.78rem;
  }
  .section-top label {
    width: 100%;
  }
  .lesson-list article {
    gap: 9px;
  }
  .bar-row {
    grid-template-columns: 55px 1fr 65px;
  }
  .hero-grid {
    gap: 22px;
  }
  .hero {
    padding: 34px 0;
  }
  .hero-copy h1 {
    margin: 14px 0;
    font-size: clamp(2.35rem, 9vw, 3.4rem);
  }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 220ms;
  }
  main {
    animation: arrive 220ms ease-out;
  }
  button,
  .button,
  .resource-card,
  .learning-shortcuts a {
    transition:
      background var(--ease),
      transform var(--ease),
      box-shadow var(--ease);
  }
  button:active,
  .button:active {
    transform: scale(0.98);
  }
  @media (hover: hover) {
    .resource-card:hover,
    .learning-shortcuts a:hover {
      transform: translateY(-2px);
      box-shadow: var(--lift);
    }
  }
}
@keyframes arrive {
  from {
    opacity: 0.78;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse {
  to {
    opacity: 0.66;
  }
}
.quiet *,
.quiet::view-transition-group(*) {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*) {
    animation: none !important;
  }
}

.home-visual {
  min-width: 0;
}
.home-visual.has-image .home-sample {
  display: none;
}
.future-portrait {
  margin: 0;
  position: relative;
}
.future-portrait img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 24px;
}
.future-portrait figcaption {
  background: white;
  border-radius: 12px;
  padding: 8px 16px;
  position: absolute;
  bottom: 16px;
  left: 16px;
}
.word-card [data-do=learn],.options .correct{background:#e4f4e9;color:#195d3f}.word-card [data-do=fuzzy]{background:#fff0d8;color:#76460d}.word-card [data-do=forgot],.options .wrong{background:#fae6e5;color:#8a3033}.word-card [data-do=learn]:before{content:"✓　"}.word-card [data-do=fuzzy]:before{content:"≈　"}.word-card [data-do=forgot]:before{content:"↻　"}.word-card .stress{font-size:.9rem;color:#476372}.hero-copy h1{font-size:clamp(2.35rem,4.15vw,3.65rem)}
.calendar-grid .is-today{font-weight:800;text-decoration:underline}.calendar-grid .plan-complete:before{content:"✓";color:#1f685a;margin-right:2px}


.locale-switch{display:flex;flex:none;gap:2px}.locale-switch button{min-height:40px;padding:5px 7px;font:inherit;font-size:.78rem;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--slate)}.locale-switch [aria-pressed=true]{background:#e7f1ec;color:#173d50;border-color:#bccdc6}html[lang=en] .learning-nav-links a{white-space:normal;font-size:.8rem;line-height:1.2}html[lang=en] .header-inner{gap:8px}html[lang=en] .hero-copy h1{letter-spacing:-.045em}html[lang=en] .sheet,html[lang=en] .metric{overflow-wrap:anywhere}@media(max-width:600px){.header-inner{gap:5px}.locale-switch button{padding-inline:4px}.site-header .learning-nav-toggle{font-size:.76rem}.site-header .brand{font-size:1.1rem}}
.sentence-sheet{margin:20px 0;border-inline-start:4px solid #38877d}.sentence-sheet blockquote{margin:16px 0;font:1.55rem/1.5 Georgia,serif;color:var(--ink)}.sentence-sheet audio{max-width:100%}

