:root {
  --bg: #f3f7ff;
  --panel: rgba(255, 255, 255, .72);
  --ink: #152033;
  --muted: #697386;
  --line: rgba(255, 255, 255, .72);
  --blue: #3578ff;
  --blue-deep: #2458d8;
  --blue-soft: #e8f0ff;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #dc2626;
  --reading: #22c55e;
  --reading-soft: #dcfce7;
  --listening: #fb923c;
  --listening-soft: #ffedd5;
  --speaking: #ec4899;
  --speaking-soft: #fce7f3;
  --writing: #06b6d4;
  --writing-soft: #cffafe;
  --glass: rgba(255, 255, 255, .68);
  --shadow: 0 22px 60px rgba(44, 64, 110, 0.12);
  --body-copy-size: 14px;
  --body-copy-weight: 400;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(122, 223, 255, .34), transparent 32%),
    radial-gradient(circle at 78% 14%, rgba(196, 167, 255, .32), transparent 30%),
    radial-gradient(circle at 55% 92%, rgba(255, 214, 165, .38), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 48%, #f8f3ff 100%);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.hidden { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 560px) 390px;
  gap: clamp(42px, 5vw, 92px);
  align-items: center;
  justify-content: center;
  padding: 56px clamp(24px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(37, 99, 235, .92), rgba(21, 32, 51, .66)),
    radial-gradient(circle at 20% 20%, #ffffff 0, transparent 26%),
    #1d4ed8;
  color: #fff;
}

.brand-kicker { display: flex; gap: 10px; margin-bottom: 28px; }
.brand-kicker span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .08em;
}
.brand-title { max-width: 520px; font-size: clamp(76px, 10vw, 132px); line-height: .86; font-weight: 850; margin: 0; }
.brand-copy { margin-top: 28px; font-size: 22px; color: rgba(255,255,255,.86); }
.login-card {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.login-card h2 { margin: 0 0 6px; font-size: 25px; }
.login-card p { margin: 0 0 22px; color: var(--muted); }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}
.field textarea.answer-textarea {
  min-height: 220px;
  max-height: 48vh;
  overflow: auto;
  resize: vertical;
  line-height: 1.55;
}
.primary, .secondary {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 750;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}
.primary {
  background: linear-gradient(135deg, #2f73ff, #6b5cff);
  color: #fff;
  box-shadow: 0 12px 24px rgba(53, 120, 255, .22);
}
.secondary {
  background: rgba(255,255,255,.62);
  color: var(--blue);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}
button.danger {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 750;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 26px rgba(220, 38, 38, .2);
}
button.danger:disabled {
  cursor: default;
  opacity: .72;
}
.full { width: 100%; }
.error { color: var(--red); font-size: 13px; min-height: 18px; }

.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(160deg, #3a78ff 0%, #3158e8 52%, #2439b8 100%);
  color: #eaf1ff;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.side-title { font-size: 24px; font-weight: 850; margin-bottom: 22px; }
.nav { display: grid; gap: 8px; align-content: start; }
.nav button {
  text-align: left;
  color: #dbeafe;
  background: transparent;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 720;
}
.nav button.active, .nav button:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.side-user {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.24);
  color: #eaf1ff;
  font-size: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
}
.side-user-copy { min-width: 0; }
.side-user-copy strong,
.side-user-copy div {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-button {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px;
  font-weight: 720;
}
.logout-button:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.logout-icon-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.18);
}
.logout-icon-button svg {
  width: 18px;
  height: 18px;
}
.logout-icon-button:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.main { padding: 26px clamp(18px, 3vw, 42px) 52px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
.topbar h1 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); }
.topbar p { margin: 6px 0 0; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.task-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.task-card, .step-card, .method-card, .feedback-panel, .recommendation-card, .knowledge-card { align-content: start; }
.task-card { min-height: 220px; display: grid; gap: 10px; align-content: start; }
.task-card .secondary { margin-top: 10px; }
.step-card p, .method-card p, .feedback-panel p, .recommendation-card p, .knowledge-card p, .review-item p { color: var(--muted); line-height: 1.55; }
.action-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  display: grid;
  gap: 9px;
  align-content: start;
  text-align: left;
  width: 100%;
}
.action-card::before,
.practice-mode-card::before { display: none; }
.action-card:hover {
  border-color: var(--section-color, var(--blue));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--section-color, var(--blue)) 18%, transparent);
}
.action-card h3 { margin: 0; font-size: 22px; line-height: 1.2; color: var(--ink); }
.action-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.action-card small { color: var(--muted); line-height: 1.45; }
.action-card b { color: var(--section-color, var(--blue)); align-self: end; }
.practice-mode-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(88px, 1fr) auto;
  gap: 12px;
  min-height: 330px;
  align-content: stretch;
}
.section-reading {
  --section-color: var(--reading);
  --section-soft: var(--reading-soft);
  --section-grad: linear-gradient(135deg, rgba(187, 247, 208, .96) 0%, rgba(240, 253, 244, .84) 48%, rgba(255,255,255,.7) 100%);
}
.section-listening {
  --section-color: var(--listening);
  --section-soft: var(--listening-soft);
  --section-grad: linear-gradient(135deg, rgba(254, 215, 170, .96) 0%, rgba(255, 247, 237, .84) 48%, rgba(255,255,255,.7) 100%);
}
.section-speaking {
  --section-color: var(--speaking);
  --section-soft: var(--speaking-soft);
  --section-grad: linear-gradient(135deg, rgba(251, 207, 232, .96) 0%, rgba(253, 242, 248, .84) 48%, rgba(255,255,255,.7) 100%);
}
.section-writing {
  --section-color: var(--writing);
  --section-soft: var(--writing-soft);
  --section-grad: linear-gradient(135deg, rgba(165, 243, 252, .96) 0%, rgba(236, 254, 255, .84) 48%, rgba(255,255,255,.7) 100%);
}
.section-status-card,
.practice-mode-card {
  background:
    radial-gradient(circle at 86% 10%, rgba(255,255,255,.78), transparent 34%),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--section-color, var(--blue)) 26%, transparent), transparent 42%),
    var(--section-grad, linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.68)));
}
.section-status-card .tag,
.practice-mode-card .tag {
  background: var(--section-soft, #eef2ff);
  color: color-mix(in srgb, var(--section-color, var(--blue)) 70%, #111827);
}
.section-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.section-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--section-color, var(--blue)) 88%, white);
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 12px 24px color-mix(in srgb, var(--section-color, var(--blue)) 30%, transparent);
}
.section-icon svg,
.task-icon svg {
  width: 25px;
  height: 25px;
}
.practice-mode-card .secondary {
  background: var(--section-soft, var(--blue-soft));
  color: color-mix(in srgb, var(--section-color, var(--blue)) 72%, #111827);
}
.practice-mode-card .primary {
  background: var(--section-color, var(--blue));
}
.practice-mode-card h3,
.mock-card h3 {
  margin: 0;
}
.practice-mode-card p {
  min-height: 78px;
  align-self: start;
}
.practice-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}
.practice-actions .primary,
.practice-actions .secondary {
  width: 100%;
  min-height: 48px;
  height: 48px;
  padding: 0 14px;
  white-space: nowrap;
}
.mock-card {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.set-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 4px;
}
.set-progress span { color: var(--muted); }
.countdown {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  color: var(--ink) !important;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.countdown.danger {
  border-color: rgba(220, 38, 38, .28);
  background: #fff1f2;
  color: var(--red) !important;
}
.set-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.workflow-note {
  margin-top: 16px;
  display: grid;
  gap: 6px;
  background: #f8fbff;
}
.workflow-note p { margin: 0; color: var(--muted); line-height: 1.55; }
.weekly-panel {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.58)),
    radial-gradient(circle at 8% 20%, rgba(74, 222, 128, .22), transparent 30%);
}
.weekly-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.weekly-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.today-focus-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  align-content: center;
  max-width: none;
  width: 100%;
  color: var(--ink);
  text-align: left;
  background:
    radial-gradient(circle at 86% 10%, rgba(255,255,255,.82), transparent 34%),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--section-color, #6b5cff) 24%, transparent), transparent 42%),
    var(--section-grad, linear-gradient(135deg, rgba(207, 250, 254, .92), rgba(238, 242, 255, .78), rgba(255,255,255,.68)));
}
.today-focus-card h3 {
  margin: 0;
  font-size: 24px;
}
.today-focus-card .primary {
  justify-self: end;
  align-self: center;
}
.task-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.32), transparent 44%),
    color-mix(in srgb, var(--section-color, #6b5cff) 88%, #36d7ff);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(77, 116, 255, .24);
}
.bank-rule-panel,
.rules-panel,
.ai-bank-panel {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  background: #f8fbff;
}
.bank-rule-panel p,
.rules-panel p,
.ai-bank-panel p,
.lifecycle-card p,
.practice-mode-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.ai-bank-panel h3,
.lifecycle-card h3 {
  margin: 0;
}
.recommendation-card { display: grid; gap: 9px; }
.recommendation-card h3, .knowledge-card h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.recommendation-card p, .knowledge-card p, .review-item p { margin: 0; }
.recommendation-card small, .knowledge-card small { color: var(--muted); line-height: 1.45; }
.answer-panel { display: grid; align-content: start; gap: 14px; }
.question-stem {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  padding: 12px 14px;
}
.feedback-panel { grid-column: 1 / -1; border-color: rgba(22, 163, 74, .35); background: #f3fbf6; }
.embedded-feedback {
  grid-column: auto;
  border: 1px solid rgba(22, 163, 74, .35);
  border-radius: 12px;
  background: #f3fbf6;
  padding: 14px;
}
.feedback-block {
  border: 1px solid rgba(22, 163, 74, .18);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  padding: 10px;
  margin-top: 9px;
}
.feedback-block b { display: block; margin-bottom: 4px; }
.feedback-block p { margin: 0; color: var(--ink); }
.training-drill h3 { margin: 12px 0 8px; font-size: 24px; }
.training-drill p { color: var(--muted); line-height: 1.6; }
.official-guide {
  border-left: 4px solid var(--blue);
  background: #f8fbff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0 12px;
  line-height: 1.45;
  font-weight: 700;
}
.media-audio { width: 100%; margin: 10px 0; }
.media-image { display: block; max-width: 100%; max-height: 320px; object-fit: contain; margin: 10px 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.drill-material { background: #f8fbff; }
.stimulus-panel {
  display: grid;
  gap: 12px;
  background: #f8fbff;
}
.speaker-visual {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.speaker-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}
.speaker-visual p { margin: 0; color: var(--ink); }
.one-time-audio {
  display: flex;
  align-items: center;
  gap: 12px;
}
.audio-play {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 10px 22px;
  font-weight: 850;
  cursor: pointer;
}
.audio-play:disabled {
  cursor: default;
  opacity: .68;
}
.audio-status {
  color: var(--muted);
  font-weight: 750;
}
.discussion-panel {
  display: grid;
  gap: 10px;
  background: #f8fbff;
}
.discussion-post {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.discussion-post b { color: var(--blue); }
.discussion-post p { margin: 6px 0 0; color: var(--ink); }
.complete-material { white-space: pre-wrap; }
.inline-blank {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin: 0 2px;
  color: var(--blue);
  font-weight: 850;
  white-space: nowrap;
}
.inline-blank-line {
  letter-spacing: .08em;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.inline-blank-index {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  line-height: 1;
  vertical-align: super;
}
.article-panel { display: grid; gap: 10px; }
.article-paragraph { margin: 0; color: var(--ink) !important; }
.selectable-paragraph {
  display: grid;
  gap: 8px;
}
.selectable-sentence {
  display: inline;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  line-height: 1.6;
  padding: 6px 8px;
  cursor: pointer;
}
.selectable-sentence:hover,
.selectable-sentence.active {
  border-color: rgba(37, 99, 235, .35);
  background: #eef4ff;
}
.sentence-number {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 850;
  font-size: 12px;
}
.insert-marker {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  margin: 0 5px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  vertical-align: middle;
  cursor: pointer;
}
.insert-marker:hover,
.insert-marker.active {
  background: var(--blue);
  color: #fff;
}
.build-sentence-panel,
.email-panel {
  background: #fff;
}
.build-sentence-stem {
  color: var(--ink) !important;
  font-size: 22px;
  font-weight: 800;
}
.email-panel p {
  margin: 8px 0 0;
  color: var(--ink) !important;
}
.article-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.paragraph-number {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
}
.interaction-panel {
  border: 1px solid rgba(47, 103, 232, .24);
  background: #f8fbff;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
}
.interaction-panel p { margin: 0; color: var(--ink); }
.interaction-panel small { color: var(--muted); font-weight: 700; }
.choice-list, .choice-picker { display: grid; gap: 9px; }
.choice-row, .choice-pick {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  text-align: left;
}
.choice-row p, .choice-pick span { margin: 0; color: var(--ink); line-height: 1.5; min-width: 0; }
.choice-name, .choice-pick strong {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 850;
}
.choice-pick:hover { border-color: var(--blue); background: #f8fbff; }
.choice-pick.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 2px rgba(47, 103, 232, .12);
}
.selected-answer {
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}
.empty-bank p { color: var(--muted); line-height: 1.6; max-width: 760px; }
.metric {
  display: grid;
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.62)),
    radial-gradient(circle at 100% 0%, rgba(53, 120, 255, .14), transparent 34%);
}
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { font-size: 28px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 12px; }
.section-title h2 { margin: 0; font-size: 20px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border-radius: 999px; padding: 6px 10px; background: #eef2ff; color: #3730a3; font-size: 13px; font-weight: 700; }
.source-label { display: inline-block; margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.form-chip-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.form-chip {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 11px;
  text-align: left;
  display: grid;
  align-content: space-between;
  gap: 5px;
}
.form-chip span { color: var(--muted); font-size: 12px; font-weight: 750; }
.form-chip strong { color: var(--ink); font-size: 14px; line-height: 1.25; }
.form-chip em { color: var(--blue); font-style: normal; font-size: 12px; font-weight: 850; }
.form-chip:hover { border-color: var(--blue); background: #f8fbff; }
.list { display: grid; gap: 10px; }
.item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}
.item strong { display: block; margin-bottom: 5px; }
.item small { color: var(--muted); }
.progress { height: 9px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.progress.danger i { background: var(--orange); }
.review-strip { grid-column: 1 / -1; display: grid; gap: 12px; }
.review-strip h3 { margin: 0; }
.review-strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.review-chip {
  min-height: 76px;
  display: grid;
  gap: 5px;
  align-content: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}
.review-chip strong { color: var(--ink); line-height: 1.25; }
.review-chip span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.review-chip.active, .review-chip:hover { border-color: var(--blue); background: #f8fbff; }
.review-item { display: grid; gap: 9px; }
.review-item .secondary { justify-self: start; }
.review-item-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.review-actions .primary,
.review-actions .secondary {
  min-height: 40px;
}
.ai-focus-actions {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}
.ai-focus-actions .primary,
.ai-focus-actions .secondary {
  width: 100%;
  min-height: 46px;
}
.ai-generation-message {
  display: inline-flex;
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 750;
}
.ai-generation-message.loading { background: var(--blue-soft); color: var(--blue); }
.ai-generation-message.success { background: #dcfce7; color: #15803d; }
.ai-generation-message.error { background: #fee2e2; color: var(--red); }
.ai-bank-panel .primary,
.ai-bank-panel .secondary {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 850;
}
.ai-bank-panel .secondary {
  background: #fff;
  border: 1px solid rgba(47, 103, 232, .22);
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(47, 103, 232, .08);
}
.result-metrics {
  margin-bottom: 24px;
}
.result-analysis-panel {
  margin-top: 20px;
}
.result-wrong-list {
  gap: 18px;
}
.result-wrong-card {
  position: relative;
  border: 1px solid rgba(47, 103, 232, .18);
  border-left: 5px solid var(--blue);
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 34px rgba(21, 32, 51, .08);
  padding: 18px 18px 18px 20px;
}
.result-wrong-card:nth-child(even) {
  background: #f8fbff;
}
.result-line {
  margin: 9px 0 0;
  line-height: 1.55;
}
.answer-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.answer-chip {
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-weight: 800;
  padding: 6px 10px;
  font-size: 13px;
}
.result-question-index {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 9px;
  margin-bottom: 8px;
}
.training-overview {
  display: grid;
  gap: 16px;
}
.training-overview-main {
  max-width: 720px;
}
.training-overview h3 {
  margin: 8px 0 6px;
}
.training-overview p {
  margin: 0;
  color: var(--muted);
}
.overview-card {
  border: 1px solid rgba(47, 103, 232, .12);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  padding: 12px;
  min-height: 118px;
}
.overview-focus {
  display: grid;
  gap: 6px;
}
.overview-focus strong {
  font-size: 16px;
}
.overview-focus small,
.overview-type span {
  color: var(--muted);
}
.overview-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.overview-type {
  display: grid;
  gap: 8px;
}
.overview-type strong {
  line-height: 1.25;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.blank-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.source-tile {
  min-height: 86px;
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  display: grid;
  align-content: space-between;
  box-shadow: 0 8px 20px rgba(21, 32, 51, .08);
}
.source-tile strong { font-size: 18px; }
.source-tile span { font-weight: 800; opacity: .9; }
.source-tile.reading { background: linear-gradient(135deg, #4ade80, #22c55e); }
.source-tile.listening { background: linear-gradient(135deg, #fdba74, #fb923c); }
.source-tile.speaking { background: linear-gradient(135deg, #f9a8d4, #ec4899); }
.source-tile.writing { background: linear-gradient(135deg, #67e8f9, #06b6d4); }
.mobile-top { display: none; }

.topbar p,
.login-card p,
.action-card p,
.action-card small,
.step-card p,
.method-card p,
.feedback-panel p,
.recommendation-card p,
.recommendation-card small,
.knowledge-card p,
.knowledge-card small,
.review-item p,
.bank-rule-panel p,
.rules-panel p,
.ai-bank-panel p,
.lifecycle-card p,
.practice-mode-card p,
.mock-card p,
.workflow-note p,
.weekly-copy p,
.empty-bank p,
.item small,
.metric span,
.review-chip span,
.form-chip span,
.interaction-panel small,
.audio-status,
.source-label {
  font-size: var(--body-copy-size);
  font-weight: var(--body-copy-weight);
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; gap: 28px; padding: 38px 18px; }
  .brand-title { font-size: clamp(58px, 20vw, 92px); }
  .shell { display: block; }
  .sidebar { display: none; }
  .mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 3;
  }
  .mobile-menu { position: fixed; inset: 58px 12px auto; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; z-index: 4; }
  .mobile-menu .nav button { color: var(--ink); }
  .main { padding: 18px 14px 42px; }
  .cols-4, .cols-3, .cols-2, .task-grid, .form-grid, .source-grid, .form-chip-grid, .review-strip-grid { grid-template-columns: 1fr; }
  .overview-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-focus-actions { grid-template-columns: 1fr; }
  .blank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .overview-card-grid { grid-template-columns: 1fr; }
}
