:root {
  --blue-900: #184f98;
  --blue-800: #1f63b7;
  --blue-100: #edf4fb;
  --blue-050: #f6f9fd;
  --ink-900: #18212d;
  --ink-700: #4b5a69;
  --ink-500: #728091;
  --line: #d9e3ee;
  --panel: #ffffff;
  --gold-050: #fbf5e2;
  --green-050: #edf7ef;
  --shadow: 0 14px 36px rgba(24, 52, 87, 0.07);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: linear-gradient(180deg, #f5f8fb 0%, #eef3f8 100%);
  color: var(--ink-900);
  font-family: "Noto Sans SC", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(61, 112, 181, 0.14), transparent 34%),
    linear-gradient(180deg, #f4f7fb 0%, #ebf1f7 100%);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
}

h3,
h4 {
  font-family: "Noto Sans SC", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}

select,
input,
textarea,
button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: #fff;
  padding: 26px 34px 0;
}

.hero-banner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
}

.hero-banner-centered {
  justify-content: center;
}

.hero-copy {
  max-width: 920px;
}

.hero-copy-centered {
  max-width: 1160px;
  text-align: center;
}

.brand-kicker,
.section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-kicker {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}

.hero-banner h1 {
  font-size: 44px;
  line-height: 1.12;
}

.hero-summary {
  margin-top: 12px;
  max-width: 840px;
  font-size: 18px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.9);
}

.hero-copy-centered .hero-summary {
  margin-left: auto;
  margin-right: auto;
}

.hero-project-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.7;
}

.main-nav {
  display: flex;
  gap: 10px;
  padding-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  border: 0;
  border-radius: 14px 14px 0 0;
  padding: 13px 22px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.nav-tab.is-active {
  background: #fff;
  color: var(--blue-900);
}

.main-content {
  max-width: 1660px;
  margin: 0 auto;
  padding: 24px 28px 52px;
}

.home-hero,
.home-levels,
.home-features,
.home-modules {
  margin-bottom: 24px;
}

.home-copy-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 28px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 34px 38px;
  text-align: left;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.home-copy-main {
  max-width: 760px;
}

.home-copy-card h2 {
  font-size: 33px;
  line-height: 1.26;
}

.home-copy-card p:last-child {
  margin-top: 12px;
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.72;
}

.home-copy-side {
  display: grid;
  gap: 12px;
  align-content: center;
}

.home-quick-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f5f8fc;
  border: 1px solid var(--line);
}

.home-quick-item strong {
  display: block;
  font-size: 17px;
  color: var(--ink-900);
}

.home-quick-item span {
  display: block;
  margin-top: 6px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.6;
}

.section-headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-headline h2 {
  font-size: 28px;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.level-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}

.level-card:hover {
  transform: translateY(-2px);
  border-color: #93b7de;
}

.level-card h3 {
  font-size: 22px;
}

.level-card p {
  margin-top: 8px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.55;
}

.featured-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.featured-grid::-webkit-scrollbar {
  display: none;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.featured-rail {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
}

.rail-button {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-900);
  font-size: 28px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.featured-card,
.module-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.featured-card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  min-height: 314px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  scroll-snap-align: start;
}

.featured-card img {
  width: 100%;
  aspect-ratio: 1.32;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f6f9fc;
}

.featured-card .featured-level {
  margin-top: 12px;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-card h3 {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.featured-card p {
  margin-top: 4px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.52;
}

.featured-card .featured-title {
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.login-shell {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 28px;
  align-items: stretch;
}

.login-hero,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.login-hero {
  padding: 42px 44px;
  background:
    linear-gradient(140deg, rgba(24, 79, 152, 0.98), rgba(31, 99, 183, 0.92)),
    #1f63b7;
  color: #fff;
}

.login-hero h1 {
  font-size: 44px;
  line-height: 1.12;
}

.login-summary {
  margin-top: 16px;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.75;
}

.login-panel {
  padding: 34px 32px;
}

.login-panel h2 {
  font-size: 30px;
  line-height: 1.2;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form span {
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
}

.featured-card .featured-meta {
  margin-top: auto;
  padding-top: 10px;
  color: var(--ink-500);
  font-size: 13px;
}

.module-card {
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: #a9c4e3;
  box-shadow: 0 16px 36px rgba(24, 79, 152, 0.1);
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef4fa;
  color: var(--blue-900);
  font-weight: 700;
}

.module-card h3 {
  margin-top: 14px;
  font-size: 21px;
  line-height: 1.35;
}

.module-card p {
  margin-top: 10px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.62;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.module-intro-card,
.filter-panel,
.results-panel,
.can-do-card,
.content-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.module-intro-card {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 22px 24px;
}

.section-kicker {
  color: var(--blue-800);
  margin-bottom: 10px;
}

.module-intro-card h2 {
  font-size: 28px;
  line-height: 1.3;
}

.module-intro-card p:last-child,
.module-summary {
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.65;
}

.module-summary {
  max-width: 320px;
  text-align: right;
}

.filter-panel {
  margin-top: 16px;
  padding: 16px 18px;
}

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

.filter-grid-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.filter-grid label {
  display: grid;
  gap: 8px;
}

.filter-grid span {
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
}

select,
input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #c9d7e6;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 99, 183, 0.18);
  border-color: #7fa9d8;
}

textarea {
  width: 100%;
  min-height: 180px;
  border: 1px solid #c9d7e6;
  border-radius: 14px;
  padding: 14px 16px;
  resize: vertical;
  background: #fff;
  line-height: 1.7;
}

.outline-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.results-panel {
  padding: 18px;
  position: sticky;
  top: 16px;
}

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

.panel-heading h3 {
  font-size: 22px;
  line-height: 1.3;
}

.meta-number {
  color: var(--blue-800);
  font-size: 28px;
  font-weight: 700;
}

.active-path,
.detail-meta,
.detail-english,
.drawer-note {
  color: var(--ink-500);
}

.active-path {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.results-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: calc(100vh - 240px);
  overflow: auto;
}

.result-card {
  padding: 14px 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--blue-050);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.result-card:hover {
  transform: translateY(-1px);
  border-color: #b3cae4;
}

.result-card.active {
  border-color: #7fa9d8;
  box-shadow: 0 8px 24px rgba(25, 83, 148, 0.12);
  background: #f8fbff;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-050);
  color: #2f6c47;
  font-size: 12px;
  font-weight: 700;
}

.result-card h4 {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.38;
}

.result-card .result-english {
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.5;
}

.result-card .result-meta {
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 14px;
}

.detail-stage {
  display: grid;
  gap: 16px;
}

.can-do-card {
  padding: 22px 24px;
  text-align: center;
}

.can-do-card h3 {
  font-size: 38px;
  line-height: 1.28;
}

.detail-english {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.58;
}

.detail-meta {
  margin-top: 12px;
  font-size: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.main-stack,
.reference-stack,
.assistant-grid {
  display: grid;
  gap: 16px;
}

.content-card {
  padding: 18px 20px;
  height: fit-content;
}

.sample-card .panel-heading,
.content-card .panel-heading {
  margin-bottom: 10px;
}

.sample-media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.sample-thumb {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f6f8fb;
}

.corpus-block {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--gold-050);
  font-size: 16px;
  line-height: 1.72;
}

.sample-caption {
  margin: 2px 0 12px;
  font-weight: 600;
  line-height: 1.5;
}

.corpus-block p {
  margin: 0 0 8px;
}

.corpus-block p:last-child {
  margin-bottom: 0;
}

.corpus-block a {
  color: var(--blue-800);
  text-decoration: underline;
}

.embedded-media {
  display: block;
  width: min(100%, 720px);
  max-height: 460px;
  object-fit: contain;
  margin: 8px auto 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.embedded-table {
  width: 100%;
  margin: 10px 0 16px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d8e3ef;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.embedded-table td,
.embedded-table th {
  padding: 10px 12px;
  border-right: 1px solid #dfe7f1;
  border-bottom: 1px solid #dfe7f1;
  vertical-align: top;
  line-height: 1.55;
}

.embedded-table tr:last-child td,
.embedded-table tr:last-child th {
  border-bottom: 0;
}

.embedded-table td:last-child,
.embedded-table th:last-child {
  border-right: 0;
}

.embedded-table p {
  margin: 0 0 6px;
  line-height: 1.5;
}

.embedded-table p:last-child {
  margin-bottom: 0;
}

.embedded-table .embedded-media {
  width: min(100%, 300px);
  max-height: 220px;
  margin: 4px auto 8px;
}

.vocab-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 15px;
  line-height: 1.35;
}

.term-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7fafc;
  color: var(--ink-700);
}

.resource-stack {
  display: grid;
  gap: 8px;
}

.resource-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.resource-item h4 {
  font-size: 15px;
  color: var(--blue-900);
}

.resource-item p {
  margin-top: 8px;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.55;
}

.comparison-list {
  display: grid;
  gap: 8px;
}

.comparison-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfd;
}

.comparison-card h4 {
  font-size: 18px;
}

.comparison-card p {
  margin-top: 8px;
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.6;
}

.tool-layout,
.assistant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

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

.assistant-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.assistant-card h3 {
  font-size: 21px;
  line-height: 1.35;
}

.tool-form {
  display: grid;
  gap: 12px;
}

.primary-button {
  width: fit-content;
  min-width: 138px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--blue-800);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(31, 99, 183, 0.2);
  background: #215fa9;
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.analysis-panel {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
}

.analysis-panel.empty-copy {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed #c8d7e8;
  background: #f7fbff;
}

.lookup-group,
.token-group {
  display: grid;
  gap: 10px;
}

.lookup-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfd;
}

.lookup-card h4 {
  font-size: 18px;
}

.lookup-lines {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.lookup-line {
  color: var(--ink-700);
}

.level-bars {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.level-bar-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
}

.level-bar-label {
  font-weight: 600;
}

.level-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e7eef6;
  overflow: hidden;
}

.level-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-800), #6da3db);
}

.token-cloud {
  display: grid;
  gap: 10px;
}

.token-group-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f7fb;
  border: 1px solid var(--line);
}

.token-group-card h4 {
  font-size: 16px;
}

.token-list {
  margin-top: 8px;
  color: var(--ink-700);
  line-height: 1.65;
  font-size: 14px;
}

.assistant-card p {
  margin-top: 10px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.62;
}

.assistant-workbench {
  margin-top: 18px;
  padding-top: 2px;
}

.assistant-tabs {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 18px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

.assistant-tabs::-webkit-scrollbar {
  display: none;
}

.assistant-tab {
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--ink-700);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.assistant-tab.is-active {
  background: var(--blue-900);
  color: #fff;
  border-color: var(--blue-900);
}

.assistant-pane {
  display: none;
}

.assistant-pane.is-active {
  display: block;
  padding-top: 4px;
}

.drawer-note {
  margin: 12px 0 0;
}

.assistant-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.assistant-form-grid label {
  display: grid;
  gap: 8px;
}

.assistant-form-grid span {
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
}

.assistant-span-2 {
  grid-column: span 2;
}

.assistant-pane .primary-button {
  margin-top: 14px;
}

.assistant-result-card h4 {
  font-size: 18px;
}

.assistant-result-card .lookup-line {
  line-height: 1.7;
}

.assistant-document {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 12px 28px rgba(24, 79, 152, 0.06);
}

.assistant-source-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.assistant-document-title {
  font-size: 29px;
  line-height: 1.28;
  margin-bottom: 14px;
}

.assistant-document-overview {
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.assistant-doc-section + .assistant-doc-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e4ebf3;
}

.assistant-doc-section h4 {
  font-size: 24px;
  margin-bottom: 12px;
}

.assistant-doc-items {
  display: grid;
  gap: 10px;
}

.assistant-doc-item {
  color: var(--ink-900);
  line-height: 1.85;
  padding-left: 0;
}

.assistant-matrix-wrap {
  margin-bottom: 18px;
  overflow-x: auto;
}

.assistant-matrix {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.assistant-matrix th,
.assistant-matrix td {
  padding: 12px 14px;
  border-bottom: 1px solid #e4ebf3;
  border-right: 1px solid #e4ebf3;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.assistant-matrix th:last-child,
.assistant-matrix td:last-child {
  border-right: 0;
}

.assistant-matrix tr:last-child td {
  border-bottom: 0;
}

.assistant-matrix th {
  background: #f5f8fc;
  font-size: 14px;
  color: var(--ink-700);
}

.empty-copy {
  color: var(--ink-500);
}

.site-footer {
  max-width: 1580px;
  margin: 0 auto;
  padding: 0 26px 42px;
}

.message-board {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.message-summary {
  cursor: pointer;
  list-style: none;
}

.message-summary::-webkit-details-marker {
  display: none;
}

.message-note {
  color: var(--ink-700);
  line-height: 1.7;
}

.message-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.message-form textarea {
  min-height: 120px;
}

.message-status {
  color: var(--ink-700);
  min-height: 24px;
}

@media (max-width: 1200px) {
  .level-grid,
  .module-grid,
  .filter-grid,
  .tool-layout,
  .assistant-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .assistant-form-grid {
    grid-template-columns: 1fr;
  }

  .assistant-span-2 {
    grid-column: auto;
  }

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

  .featured-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .results-panel {
    position: static;
  }

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

  .home-copy-card {
    grid-template-columns: 1fr;
  }

  .home-copy-main {
    max-width: none;
  }
}

@media (max-width: 760px) {
  body {
    line-height: 1.58;
  }

  .site-header {
    padding: 18px 14px 0;
  }

  .hero-banner {
    gap: 14px;
    padding-bottom: 16px;
  }

  .hero-banner h1,
  .login-hero h1 {
    font-size: 30px;
    line-height: 1.18;
  }

  .hero-summary,
  .home-copy-card p:last-child,
  .module-intro-card p:last-child,
  .module-summary,
  .hero-project-note,
  .drawer-note {
    font-size: 14px;
    line-height: 1.72;
  }

  .main-content,
  .site-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .main-content {
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .home-hero,
  .home-levels,
  .home-features,
  .home-modules {
    margin-bottom: 18px;
  }

  .main-nav {
    gap: 8px;
    padding-bottom: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .nav-tab {
    width: auto;
    padding: 10px 16px;
    border-radius: 12px 12px 0 0;
    font-size: 14px;
    flex: 0 0 auto;
  }

  .home-copy-card,
  .module-intro-card,
  .content-card,
  .results-panel,
  .filter-panel,
  .can-do-card,
  .login-panel,
  .login-hero,
  .message-board {
    padding-left: 15px;
    padding-right: 15px;
  }

  .home-copy-card {
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 22px;
    gap: 16px;
  }

  .home-copy-card h2,
  .module-intro-card h2 {
    font-size: 25px;
    line-height: 1.32;
  }

  .home-copy-side {
    gap: 10px;
  }

  .home-quick-item {
    padding: 14px 14px 15px;
    border-radius: 16px;
  }

  .home-quick-item strong {
    font-size: 16px;
  }

  .home-quick-item span {
    font-size: 13px;
  }

  .section-headline h2,
  .panel-heading h3 {
    font-size: 22px;
  }

  .module-grid,
  .assistant-grid,
  .tool-layout,
  .detail-grid,
  .level-grid,
  .filter-grid,
  .filter-grid-compact,
  .assistant-form-grid {
    grid-template-columns: 1fr;
  }

  .assistant-span-2 {
    grid-column: auto;
  }

  .module-intro-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-card,
  .level-card {
    padding: 16px 16px 18px;
    border-radius: 18px;
  }

  .level-card h3,
  .module-card h3 {
    font-size: 21px;
  }

  .featured-rail {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px;
  }

  .rail-button {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .featured-card {
    flex-basis: 78vw;
    min-height: 0;
    scroll-snap-align: start;
  }

  .featured-card .featured-title,
  .featured-card h3 {
    font-size: 19px;
    line-height: 1.35;
  }

  .result-card h4 {
    font-size: 18px;
    line-height: 1.42;
  }

  .detail-english,
  .detail-meta,
  .active-path,
  .result-card p,
  .assistant-card p {
    font-size: 14px;
  }

  .can-do-card {
    text-align: left;
  }

  .can-do-card h3 {
    font-size: 26px;
    line-height: 1.3;
  }

  .corpus-block,
  .analysis-panel,
  .vocab-block,
  .resource-stack,
  .assistant-document,
  .assistant-document-overview,
  .assistant-doc-item,
  .token-list {
    font-size: 14px;
    line-height: 1.72;
  }

  .assistant-document {
    padding: 16px 16px 18px;
    border-radius: 16px;
  }

  .assistant-document-title {
    font-size: 24px;
  }

  .assistant-doc-section h4 {
    font-size: 20px;
  }

  .assistant-matrix th,
  .assistant-matrix td {
    padding: 10px 11px;
    font-size: 13px;
    line-height: 1.6;
  }

  .assistant-tabs {
    margin-top: 14px;
    margin-bottom: 14px;
    gap: 8px;
  }

  .assistant-tab {
    padding: 9px 14px;
    font-size: 14px;
  }

  .primary-button {
    width: 100%;
    justify-content: center;
  }

  .login-body {
    padding: 14px;
  }

  .message-form textarea {
    min-height: 108px;
  }

  .level-bar-row {
    grid-template-columns: 98px minmax(0, 1fr) 38px;
  }
}
