@font-face {
  font-family: Noto;
  src: url("/assets/vendor/noto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Noto;
  src: url("/assets/vendor/noto-greek.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0370-03FF;
}
:root {
  --paper: #f5f7fa;
  --white: #fff;
  --ink: #152840;
  --muted: #526278;
  --blue: #214ecf;
  --blue-hover: #183b9e;
  --teal: #126b62;
  --amber: #f3c66b;
  --line: #dce3ed;
  --soft-blue: #eaf0ff;
  --soft-teal: #e9f4f1;
  --error: #a72e3b;
  --radius: 20px;
  --small-radius: 12px;
  --shadow: 0 14px 45px #15284008;
  --font: Noto, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #bf7900;
  outline-offset: 4px;
}
::selection {
  background: #d4e0ff;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.2;
  letter-spacing: -1.6px;
  font-weight: 650;
  margin-bottom: 14px;
}
h2 {
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.6px;
  font-weight: 650;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
}
p {
  max-width: 70ch;
}
svg.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  border-radius: 7px;
  background: var(--soft-blue);
  color: var(--blue);
  padding: 5px 10px;
}
.pill.teal {
  background: var(--soft-teal);
  color: var(--teal);
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 11px;
  padding: 11px 20px;
  background: var(--blue);
  color: white;
  font-weight: 600;
  line-height: 1.5;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.btn:hover {
  background: var(--blue-hover);
  box-shadow: 0 5px 15px #214ecf20;
}
.btn.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.secondary:hover {
  background: var(--soft-blue);
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
}
.btn.ghost:hover {
  background: var(--soft-blue);
  color: var(--blue);
  box-shadow: none;
}
.btn.light {
  background: white;
  color: var(--blue);
}
.btn.danger {
  color: var(--error);
  background: #fff0f0;
}
.btn.full {
  width: 100%;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--soft-blue);
  color: var(--blue);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--blue);
  min-height: 44px;
  background: none;
  padding: 0;
}
.stack {
  display: grid;
  gap: 22px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.page-heading {
  margin-bottom: 32px;
}
.page-heading p {
  color: var(--muted);
  margin-bottom: 0;
}
.page-heading .pill {
  margin-bottom: 16px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 18px;
}
.section-head h2 {
  margin: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 1000;
  background: white;
  padding: 14px;
}
.skip-link:focus {
  top: 10px;
}
.loading {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 750;
}
.brand-mark {
  font-size: 33px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 44px;
  background: var(--blue);
  color: white;
  border-radius: 13px;
  font-weight: 750;
  letter-spacing: -3px;
  padding: 0 4px 4px 0;
}
.brand-dot {
  color: #7297ff;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 34px 21px 22px;
  z-index: 30;
}
.sidebar .brand {
  padding-left: 12px;
}
.sidebar .tagline {
  font-size: 11px;
  color: var(--muted);
  margin: 9px 0 44px 13px;
  letter-spacing: 0.1px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav a {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 49px;
  font-size: 14px;
  font-weight: 550;
  border-radius: 10px;
  color: var(--muted);
}
.nav a:hover {
  color: var(--blue);
  background: #f4f7ff;
}
.nav a.active {
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 650;
}
.nav a.active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  margin-left: auto;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-note {
  background: var(--paper);
  padding: 17px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-note .small-title {
  color: var(--ink);
  font-weight: 650;
  display: block;
  margin-bottom: 5px;
}
.profile {
  padding: 16px 9px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8edf7;
  color: var(--blue);
  font-weight: 650;
  flex-shrink: 0;
}
.profile strong {
  font-size: 13px;
}
.profile small {
  font-size: 11px;
  display: block;
  color: var(--muted);
}
.shell {
  margin-left: 235px;
}
.topbar {
  height: 87px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: #ffffffb3;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language-select {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 13px;
  min-height: 44px;
  padding: 6px;
}
.header-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}
.mobile-brand {
  display: none;
}
.main {
  padding: 38px 42px 60px;
  max-width: 1540px;
  margin: auto;
  min-height: calc(100vh - 87px);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
}
.hero-lesson {
  background: var(--blue);
  border: 0;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 34px;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-lesson:after {
  content: "ß";
  position: absolute;
  font-size: 260px;
  line-height: 1;
  right: 14px;
  bottom: -31px;
  font-weight: 700;
  opacity: 0.09;
  transform: rotate(-12deg);
  pointer-events: none;
}
.hero-lesson .pill {
  background: #ffffff20;
  color: white;
  border: 1px solid #ffffff30;
}
.hero-lesson h2 {
  font-size: 32px;
  max-width: 400px;
  margin: 22px 0 11px;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}
.hero-lesson p {
  color: #e5ecff;
  max-width: 390px;
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.hero-lesson .btn {
  margin-top: 10px;
  z-index: 1;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 0;
  font-size: 12px;
  color: #e5ecff;
}
.phrase-panel {
  border: 0;
  background: #edf2fb;
  padding: 30px;
  position: relative;
}
.phrase-panel .quote {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.35;
  margin: 30px 0 15px;
  max-width: 240px;
}
.phrase-panel .phrase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.phrase-panel .icon-btn {
  background: white;
  color: var(--blue);
}
.tiny-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 550;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 23px 14px;
  margin: 24px 0;
}
.stat {
  padding: 0 17px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat:last-child {
  border: 0;
}
.stat strong {
  font-size: 24px;
  font-weight: 650;
  display: block;
  line-height: 1.3;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.stat .icon {
  color: var(--blue);
  width: 24px;
  height: 24px;
}
.progress-circle {
  width: 130px;
  height: 130px;
  margin: 20px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--teal) var(--pct), #e6edea 0);
}
.progress-circle > div {
  width: 110px;
  height: 110px;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.progress-circle strong {
  font-size: 25px;
}
.goal-card {
  text-align: center;
}
.goal-card h3 {
  margin-bottom: 0;
}
.goal-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.lesson-list {
  display: grid;
  gap: 0;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.lesson-row:last-child {
  border: 0;
}
.lesson-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--soft-blue);
  color: var(--blue);
  flex-shrink: 0;
}
.lesson-icon.teal {
  background: var(--soft-teal);
  color: var(--teal);
}
.lesson-icon.amber {
  background: #fff5dd;
  color: #78520c;
}
.lesson-row .lesson-info {
  flex: 1;
  min-width: 0;
}
.lesson-row h3 {
  margin: 0 0 4px;
}
.lesson-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.lesson-row .arrow {
  color: var(--muted);
}
.lesson-row:hover h3 {
  color: var(--blue);
}
.track-card {
  background: var(--soft-teal);
  border: 0;
  position: relative;
}
.track-card .track-icon {
  color: var(--teal);
  margin-bottom: 16px;
}
.track-card h3 {
  font-size: 20px;
  max-width: 230px;
}
.track-card p {
  font-size: 13px;
  color: #365c57;
}
.track-card .text-link {
  color: var(--teal);
  font-size: 12px;
}
.conversation-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: white;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.conversation-card h3 {
  margin-bottom: 6px;
}
.conversation-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter {
  padding: 10px 17px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.course-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 265px;
  transition: border-color 0.2s;
}
.course-card:hover {
  border-color: #8fa7e5;
}
.course-card .lesson-icon {
  margin: 5px 0 20px;
}
.course-card h3 {
  font-size: 19px;
}
.course-card p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}
.course-card .row {
  font-size: 12px;
  color: var(--muted);
}
.course-card .icon-btn {
  width: 34px;
  height: 34px;
  background: var(--soft-blue);
  color: var(--blue);
}
.course-card .row .icon {
  width: 17px;
  height: 17px;
}
.narrow {
  max-width: 780px;
  margin: auto;
}
.form-card {
  max-width: 620px;
  margin: 0 auto;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
}
.field label,
.field legend {
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
input.text-input,
textarea.text-input {
  width: 100%;
  background: white;
  border: 1px solid #a9b7c9;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  min-height: 48px;
}
textarea {
  resize: vertical;
}
.field textarea {
  min-height: 110px;
}
.field small {
  color: var(--muted);
}
.field input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  accent-color: var(--blue);
}
.check-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.error {
  color: var(--error);
  background: #fff0f1;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 16px;
  font-size: 13px;
}
.notice {
  color: #234773;
  background: var(--soft-blue);
  border: 1px solid #c6d5f7;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.7;
}
.success {
  background: var(--soft-teal);
  color: var(--teal);
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-art {
  background: #183cac;
  color: white;
  padding: 45px 65px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.login-art .brand-mark {
  background: white;
  color: var(--blue);
}
.login-art .brand {
  font-size: 30px;
}
.login-art h1 {
  font-size: clamp(38px, 4.4vw, 65px);
  max-width: 560px;
  line-height: 1.13;
  margin: 80px 0 20px;
  letter-spacing: -2.7px;
}
.login-art p {
  color: #d7e3ff;
  font-size: 16px;
  max-width: 380px;
}
.login-art .german-word {
  font-size: clamp(80px, 13vw, 180px);
  letter-spacing: -10px;
  font-weight: 750;
  line-height: 1.3;
  color: #91aeff;
  margin: 28px -14px 0;
  position: relative;
}
.login-art .art-caption {
  margin-top: auto;
  font-size: 12px;
  color: #d7e3ff;
  padding-top: 40px;
}
.login-form-area {
  padding: 28px 60px;
  display: flex;
  flex-direction: column;
}
.login-tools {
  display: flex;
  justify-content: flex-end;
}
.login-form {
  width: 100%;
  max-width: 390px;
  margin: auto;
}
.login-form h2 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
.login-form > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 34px;
}
.login-form .btn {
  margin-top: 8px;
}
.login-footer {
  text-align: center;
  margin-top: 30px;
  color: var(--muted);
  font-size: 11px;
}
.login-form details {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
.login-form summary {
  cursor: pointer;
  padding: 8px 0;
}
.login-form details p {
  padding: 10px 0;
}
.login-art .floating-phrase {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid #ffffff40;
  background: #ffffff0b;
  border-radius: 14px;
  margin-top: 12px;
  width: fit-content;
}
.floating-phrase strong {
  font-size: 19px;
}
.floating-phrase small {
  display: block;
  color: #d7e3ff;
}
.onboard-progress {
  display: flex;
  gap: 7px;
  margin: 0 0 28px;
}
.onboard-progress span {
  height: 4px;
  flex: 1;
  background: var(--line);
  border-radius: 3px;
}
.onboard-progress span.active {
  background: var(--blue);
}
.exercise-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.progress-track {
  height: 7px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 10px;
}
.exercise-card {
  padding: 38px;
  min-height: 400px;
}
.exercise-card h2 {
  font-size: 25px;
  margin: 20px 0 26px;
}
.german-prompt {
  font-size: 27px;
  line-height: 1.5;
  font-weight: 550;
  background: var(--paper);
  padding: 22px;
  border-radius: 12px;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.choices {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid #a9b7c9;
  background: white;
  border-radius: 12px;
  text-align: left;
  min-height: 58px;
  color: var(--ink);
}
.choice:hover {
  background: var(--soft-blue);
  border-color: var(--blue);
}
.choice.selected {
  background: var(--soft-blue);
  border: 2px solid var(--blue);
  padding: 14px 17px;
}
.choice .choice-number {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}
.exercise-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
}
.feedback {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  background: var(--soft-teal);
  color: var(--teal);
}
.feedback.wrong {
  background: #fff6e3;
  color: #72500c;
}
.feedback p {
  margin-bottom: 5px;
}
.feedback h3 {
  margin-bottom: 8px;
}
.token-zone {
  min-height: 80px;
  border: 1px dashed #a9b7c9;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.token-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 60px;
}
.token {
  padding: 10px 15px;
  background: white;
  color: var(--ink);
  border: 1px solid #a9b7c9;
  border-radius: 9px;
  min-height: 44px;
}
.token-zone .token {
  background: var(--soft-blue);
  border-color: #8fa7e5;
}
.phrase-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.phrase-row strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
}
.phrase-row small {
  color: var(--muted);
}
.result {
  text-align: center;
  padding: 48px 32px;
}
.result-emblem {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: var(--soft-teal);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  font-size: 38px;
  font-weight: 700;
}
.result-emblem .icon {
  width: 44px;
  height: 44px;
}
.result p {
  margin-left: auto;
  margin-right: auto;
}
.result-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 28px 0;
}
.result-stats strong {
  display: block;
  font-size: 30px;
}
.result-stats span {
  font-size: 12px;
  color: var(--muted);
}
.result .row {
  justify-content: center;
}
.answers-review {
  text-align: left;
  margin: 25px 0;
}
.answers-review summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  color: var(--blue);
}
.answer-review {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.answer-review p {
  font-size: 13px;
}
.review-card {
  text-align: center;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.review-card .review-phrase {
  font-size: 32px;
  line-height: 1.5;
  max-width: 560px;
  letter-spacing: -0.7px;
  margin: 28px 0;
}
.review-card .translation {
  font-size: 20px;
  color: var(--muted);
}
.review-ratings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 26px;
}
.review-ratings .btn {
  flex-direction: column;
  gap: 2px;
}
.review-ratings small {
  font-weight: 400;
  font-size: 11px;
}
.empty {
  padding: 40px;
  text-align: center;
}
.empty .lesson-icon {
  margin: 0 auto 22px;
}
.empty p {
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 14px;
}
.chat-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
}
.chat-history {
  padding: 20px;
  align-self: start;
}
.chat-history h3 {
  font-size: 13px;
  margin: 25px 0 12px;
}
.history-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  min-height: 44px;
}
.history-item.active {
  color: var(--blue);
  font-weight: 600;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
}
.chat-toolbar {
  border-bottom: 1px solid var(--line);
  padding: 13px 20px;
}
.chat-messages {
  padding: 28px;
  flex: 1;
  max-height: 550px;
  overflow-y: auto;
}
.chat-empty {
  padding: 28px 10px;
  text-align: center;
}
.chat-empty .brand-mark {
  margin-bottom: 22px;
}
.chat-empty h2 {
  font-size: 23px;
}
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}
.scenario {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  padding: 17px;
  color: var(--ink);
  font-size: 13px;
  min-height: 65px;
}
.scenario:hover {
  border-color: var(--blue);
}
.message {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.message .avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.message.user {
  flex-direction: row-reverse;
}
.message .bubble {
  background: var(--paper);
  padding: 16px 19px;
  border-radius: 0 14px 14px 14px;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 85%;
}
.message.user .bubble {
  background: var(--soft-blue);
  border-radius: 14px 0 14px 14px;
}
.chat-compose {
  padding: 20px;
  border-top: 1px solid var(--line);
}
.chat-compose form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-compose textarea {
  min-height: 52px;
  max-height: 180px;
}
.chat-compose .btn {
  width: 49px;
  padding: 12px;
  flex-shrink: 0;
}
.chat-compose p {
  font-size: 10px;
  color: var(--muted);
  margin: 10px 0 0;
}
.chart {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  height: 190px;
  margin: 30px 0 15px;
}
.chart-col {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.chart-bar {
  height: var(--height);
  min-height: 4px;
  background: #bdcef8;
  border-radius: 7px 7px 0 0;
  margin: 9px auto;
  width: 70%;
  max-width: 50px;
}
.chart-col.today .chart-bar {
  background: var(--blue);
}
.chart-col span {
  font-size: 11px;
  color: var(--muted);
}
.chart-col strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 25px;
}
.account-line {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.account-line:last-child {
  border: 0;
}
.audio-controls {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.audio-controls .btn {
  font-size: 13px;
}
.settings-grid details {
  margin-top: 20px;
}
.settings-grid summary {
  cursor: pointer;
  min-height: 44px;
  color: var(--blue);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(500px, 90vw);
  padding: 14px 22px;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 8px 40px #15284030;
  display: none;
}
#toast.visible {
  display: block;
}
.mobile-nav {
  display: none;
}
.result .pill {
  margin-bottom: 20px;
}
.header-date {
  font-size: 12px;
  color: var(--muted);
}
.onboarding-head {
  padding: 26px 40px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.standalone {
  padding: 45px 20px 70px;
}
.text-input {
  font-size: 18px;
}
.lesson-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
@media (min-width: 1550px) {
  .main {
    padding-top: 48px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .hero-lesson {
    min-height: 330px;
  }
  .hero-lesson h2 {
    font-size: 38px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding: 28px 14px;
  }
  .shell {
    margin-left: 205px;
  }
  .main {
    padding: 30px 27px 50px;
  }
  .topbar {
    padding: 0 27px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
  }
  .hero-lesson {
    padding: 28px;
  }
  .hero-lesson h2 {
    font-size: 28px;
  }
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    gap: 8px;
    padding: 0 10px;
  }
  .stat .icon {
    display: none;
  }
  .login-art {
    padding: 40px;
  }
  .login-form-area {
    padding: 28px 40px;
  }
  .chat-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .chat-messages {
    padding: 20px;
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 950px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .dashboard-aside .track-card {
    grid-column: 1/-1;
  }
  .phrase-panel .quote {
    max-width: none;
  }
  .phrase-panel .quote {
    margin-top: 22px;
    font-size: 25px;
  }
  .goal-card {
    padding: 22px;
  }
  .progress-circle {
    margin: 14px auto;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .chat-history {
    display: none;
  }
  .login-art h1 {
    font-size: 43px;
  }
  .login-art {
    padding: 32px;
  }
  .login-form-area {
    padding: 22px 30px;
  }
  .login-art .german-word {
    font-size: 100px;
  }
  .login-art .floating-phrase {
    padding: 14px;
  }
  .login-art .floating-phrase strong {
    font-size: 15px;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 14px;
  }
  .sidebar {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 76px;
    padding: 0 20px;
  }
  .breadcrumb,
  .header-date,
  .header-divider {
    display: none;
  }
  .mobile-brand {
    display: flex;
    font-size: 24px;
  }
  .mobile-brand .brand-mark {
    width: 33px;
    height: 35px;
    font-size: 27px;
    border-radius: 10px;
  }
  .header-tools {
    gap: 6px;
  }
  .header-tools .avatar {
    width: 32px;
    height: 32px;
  }
  .main {
    padding: 28px 20px 105px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffffff5;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    z-index: 40;
    justify-content: space-around;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    padding: 5px 3px;
    min-width: 50px;
    min-height: 48px;
    color: var(--muted);
  }
  .mobile-nav a.active {
    color: var(--blue);
  }
  .mobile-nav .icon {
    width: 22px;
    height: 22px;
  }
  h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .page-heading {
    margin-bottom: 25px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .hero-lesson {
    padding: 28px;
    min-height: 280px;
  }
  .hero-lesson h2 {
    font-size: 29px;
  }
  .hero-lesson:after {
    font-size: 220px;
  }
  .dashboard-aside {
    gap: 16px;
  }
  .card {
    padding: 23px;
  }
  .phrase-panel .quote {
    font-size: 22px;
  }
  .goal-card h3 {
    font-size: 15px;
  }
  .progress-circle {
    width: 110px;
    height: 110px;
  }
  .progress-circle > div {
    width: 92px;
    height: 92px;
  }
  .stats-row {
    margin: 20px 0;
    padding: 18px 3px;
  }
  .stat {
    padding: 0 12px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat span {
    font-size: 10px;
  }
  .section-head {
    margin-top: 27px;
    gap: 10px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .section-head .text-link {
    font-size: 11px;
  }
  .course-grid {
    gap: 15px;
  }
  .course-card {
    padding: 20px;
    min-height: 250px;
  }
  .course-card h3 {
    font-size: 17px;
  }
  .filters {
    gap: 6px;
  }
  .filter {
    font-size: 12px;
    padding: 9px 13px;
  }
  .exercise-card {
    padding: 24px;
  }
  .exercise-card h2 {
    font-size: 22px;
  }
  .exercise-actions {
    flex-wrap: wrap;
  }
  .german-prompt {
    font-size: 23px;
    padding: 18px;
  }
  .onboarding-head {
    padding: 20px;
  }
  .standalone {
    padding: 30px 18px;
  }
  .login-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .login-art {
    padding: 25px 28px 32px;
    min-height: 240px;
  }
  .login-art h1 {
    font-size: 35px;
    letter-spacing: -1px;
    margin: 30px 0 12px;
    max-width: 460px;
  }
  .login-art p {
    font-size: 13px;
    margin: 0;
    max-width: 400px;
  }
  .login-art .german-word,
  .login-art .floating-phrase,
  .login-art .art-caption {
    display: none;
  }
  .login-form-area {
    padding: 16px 28px 28px;
  }
  .login-tools {
    margin-bottom: 12px;
  }
  .login-form {
    max-width: 460px;
  }
  .login-form h2 {
    font-size: 25px;
  }
  .login-form > p {
    margin-bottom: 24px;
  }
  .login-footer {
    margin-top: 20px;
  }
  .chat-panel {
    min-height: 500px;
  }
  .chat-messages {
    padding: 20px;
    max-height: 55vh;
  }
  .chat-compose {
    padding: 15px;
  }
  .chat-empty {
    padding: 20px 0;
  }
  .scenario {
    font-size: 12px;
    padding: 14px;
  }
  .message .bubble {
    max-width: 88%;
    font-size: 13px;
    padding: 13px;
  }
  .message .avatar {
    display: none;
  }
  .review-card .review-phrase {
    font-size: 27px;
  }
  .review-ratings {
    gap: 7px;
  }
  .review-ratings .btn {
    padding: 10px 5px;
    font-size: 13px;
  }
  .result {
    padding: 34px 23px;
  }
  .chart {
    gap: 8px;
  }
  .chart-col span {
    font-size: 10px;
  }
  #toast {
    bottom: 90px;
  }
  .lesson-row {
    gap: 12px;
  }
  .lesson-row h3 {
    font-size: 15px;
  }
  .lesson-row p {
    font-size: 11px;
  }
  .lesson-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
  }
  .conversation-card {
    padding: 22px;
  }
  .result-stats {
    gap: 25px;
  }
}
@media (max-width: 420px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  .course-card {
    min-height: 220px;
  }
  .dashboard-aside {
    grid-template-columns: 1fr;
  }
  .dashboard-aside .track-card {
    grid-column: auto;
  }
  .phrase-panel .quote {
    max-width: 250px;
  }
  .goal-card {
    text-align: left;
  }
  .goal-card .progress-circle {
    float: right;
    margin: 0 0 12px 15px;
  }
  .goal-card:after {
    content: "";
    display: block;
    clear: both;
  }
  .stat {
    padding: 0 9px;
  }
  .stat strong {
    font-size: 22px;
  }
  .hero-lesson h2 {
    font-size: 27px;
  }
  .exercise-actions > .btn {
    flex: 1;
  }
  .review-ratings small {
    font-size: 10px;
  }
  .header-tools .avatar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
body.reduce-motion *,
body.reduce-motion *:before,
body.reduce-motion *:after {
  transition: none !important;
  animation: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mobile-history {
  display: none;
}
@media (max-width: 950px) {
  .mobile-history {
    display: block;
    margin-top: 20px;
  }
  .mobile-history summary {
    padding: 12px 0;
    cursor: pointer;
  }
}

html {
  scroll-padding-bottom: 100px;
}
button,
a,
input,
textarea,
select {
  scroll-margin-top: 18px;
  scroll-margin-bottom: 100px;
}

.writing-review {
  text-align: start;
  margin-block: 1.5rem;
}
.writing-review blockquote, .writing-review .review-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.writing-review blockquote {
  margin: .5rem 0 1rem;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--line);
}

.choice-audio-row, .spoken-line {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.choice-audio-row .choice, .spoken-line > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.word-audio-pair { display: inline-flex; align-items: center; }
.exercise-speaker { color: var(--blue); background: var(--soft-blue); }

.sentence-translation {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
}
