:root {
  color-scheme: light;
  --navy: #1d4ed8;
  --navy-dark: #102d62;
  --navy-soft: #edf3ff;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #1f2937;
  --muted: #4b5563;
  --muted-2: #6b7280;
  --line: #e5e7eb;
  --good: #10b981;
  --bad: #ef4444;
  --warn: #f59e0b;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 10px 24px rgba(29, 78, 216, 0.12);
  --radius: 20px;
  --radius-control: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Noto Sans", "Noto Sans JP", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  overflow-wrap: anywhere;
}

button:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.16);
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.tab-button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-weight: 700;
  min-width: 0;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tab-button.active {
  background: #fff;
  color: var(--navy);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.language-menu {
  position: relative;
  max-width: 100%;
}

.language-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--navy-dark);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

.language-trigger::-webkit-details-marker {
  display: none;
}

.language-trigger::after {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.language-menu[open] .language-trigger::after {
  transform: rotate(225deg);
}

.language-trigger span,
.language-option > span:first-of-type {
  min-width: 0;
  overflow-wrap: anywhere;
}

.language-flag {
  flex: 0 0 24px;
  width: 24px;
  height: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 3px;
  object-fit: cover;
}

.language-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 236px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}

.language-option:hover,
.language-option[aria-pressed="true"] {
  background: var(--navy-soft);
  color: var(--navy);
}

.language-choice {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-left: auto;
  border: 1px solid #94a3b8;
  border-radius: 50%;
}

.language-option[aria-pressed="true"] .language-choice {
  border: 5px solid var(--navy);
}

.premium-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-control);
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
  padding: 12px 0;
}

.page-head > div,
.exam-layout > *,
.question-list,
.exam-card,
.article-row,
.article-view {
  min-width: 0;
}

.page-kicker {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.page-title {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--navy-dark);
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.page-copy {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.stat {
  padding: 14px 12px;
  border-left: 1px solid #cbd5e1;
}

.stat-value {
  display: block;
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.karimen {
  --exam-accent: #1d4ed8;
  --exam-tint: #edf3ff;
}

.honmen {
  --exam-accent: #0f766e;
  --exam-tint: #eaf8f4;
}

.gentsuki {
  --exam-accent: #b45309;
  --exam-tint: #fff4e6;
}

.exam-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.exam-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--navy-dark);
  text-decoration: none;
}

.exam-shortcut span {
  display: grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: var(--exam-tint);
  color: var(--exam-accent);
  font-size: 14px;
}

.exam-shortcut:hover {
  border-color: var(--exam-accent);
  color: var(--exam-accent);
  text-decoration: none;
}

.exam-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 184px;
}

.exam-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.exam-section-head > div {
  min-width: 0;
  padding-left: 16px;
  border-left: 4px solid var(--exam-accent);
}

.exam-section-head h2 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 26px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.exam-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.exam-section-count {
  color: var(--muted);
  font-size: 16px;
}

.search {
  flex: 1;
  min-width: min(240px, 100%);
  max-width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.search:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.12);
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.exam-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.exam-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--exam-accent);
}

.exam-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 54, 93, 0.35);
  box-shadow: var(--shadow-hover);
}

.exam-type {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--exam-tint);
  color: var(--exam-accent);
  font-size: 13px;
  font-weight: 800;
}

.exam-title {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.exam-meta {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  align-self: end;
  margin-top: 8px;
  flex-wrap: wrap;
}

.score-pill,
.start-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.score-pill {
  background: var(--surface-soft);
  color: var(--muted);
}

.start-pill {
  background: var(--navy);
  color: #fff;
}

.exam-layout {
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  gap: 18px;
}

.question-nav {
  position: sticky;
  top: 112px;
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  max-height: calc(100dvh - 140px);
  display: flex;
  flex-direction: column;
}

.exam-header {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.exam-header strong {
  color: var(--navy-dark);
  font-size: 20px;
}

.timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.timer {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 900;
}

.question-list {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.question-list summary {
  min-height: 44px;
  padding: 6px 4px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
}

.question-list summary span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.question-dots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 6px;
  padding: 4px;
}

.dot {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.dot:hover {
  background: var(--navy-soft);
  color: var(--navy);
}

.dot.current {
  background: var(--navy);
  color: #fff;
  outline: 3px solid rgba(26, 54, 93, 0.16);
}

.dot.answered {
  background: var(--navy-soft);
  color: var(--navy);
}

.dot.current.answered {
  background: var(--navy);
  color: #fff;
}

.dot.good {
  background: #d1fae5;
  color: #047857;
}

.dot.bad {
  background: #fee2e2;
  color: #b91c1c;
}

.question-panel {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.question-title {
  margin: 0 0 16px;
  color: var(--navy-dark);
  font-size: 24px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.question-title:focus {
  outline: none;
}

.question-images {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 20px;
  margin: 0 0 24px;
}

.article-image {
  max-width: min(100%, 460px);
  max-height: 300px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  height: auto;
}

.question-images img {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 800px;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 12px;
}

.answer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.answer-button {
  min-height: 72px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--navy-dark);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.answer-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(26, 54, 93, 0.35);
  box-shadow: var(--shadow-hover);
}

.answer-button:disabled {
  cursor: default;
}

.answer-button.selected {
  border-color: var(--navy);
  background: var(--navy-soft);
  color: var(--navy);
  box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.12);
}

.answer-button.correct {
  border-color: var(--good);
  background: #d1fae5;
  color: #047857;
}

.answer-button.incorrect {
  border-color: var(--bad);
  background: #fee2e2;
  color: #b91c1c;
}

.choice-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.choice-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.choice-text {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

.question-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.question-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-control);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.button:hover {
  background: var(--navy-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.button.secondary:hover {
  background: var(--surface-soft);
}

.button.warn {
  background: var(--warn);
  color: #111827;
}

.button.warn:hover {
  background: #d97706;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.result-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.result-box p {
  margin: 0;
}

.result-score {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
}

.explanation {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 5px solid var(--navy);
  border-radius: 0 16px 16px 0;
  background: var(--navy-soft);
  color: var(--text);
  line-height: 1.65;
}

.knowledge-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.knowledge-count {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}

.knowledge-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.knowledge-search {
  max-width: 640px;
  box-shadow: none;
}

.knowledge-results {
  color: var(--muted);
  font-size: 16px;
}

.knowledge-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.location-row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease;
}

.article-row:last-child {
  border-bottom: 0;
}

.article-row:hover:not(:disabled),
.article-row:focus-visible {
  background: #f3f7ff;
}

.article-row:focus-visible {
  outline-offset: -3px;
}

.article-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}

.article-summary {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.article-row-title {
  color: var(--navy-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.article-excerpt {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.article-arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--navy);
  border-top: 2px solid var(--navy);
  transform: rotate(45deg);
}

.article-row:disabled {
  background: var(--surface-soft);
  cursor: default;
}

.article-row:disabled .article-number {
  background: var(--line);
  color: var(--muted);
}

.article-row:disabled .article-arrow {
  visibility: hidden;
}

.location-row h3 {
  margin: 0 0 9px;
  color: var(--navy-dark);
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.location-row p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.65;
}

.article-view {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-view h1 {
  max-width: 44ch;
  margin: 24px 0;
  color: var(--navy-dark);
  font-size: 28px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.article-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.article-toolbar > span {
  color: var(--muted);
  font-size: 16px;
}

.article-body {
  color: #374151;
  font-size: 18px;
  line-height: 1.75;
}

.article-body > .article-block,
.article-block-list {
  max-width: 80ch;
}

.article-block {
  margin: 0 0 18px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

h1.article-block,
h2.article-block,
h3.article-block {
  margin: 28px 0 12px;
  color: var(--navy-dark);
  font-size: 24px;
  line-height: 1.5;
}

h3.article-block {
  font-size: 20px;
}

.article-block-list {
  padding-left: 24px;
  margin: 0 0 20px;
}

.article-block-list .article-block {
  margin-bottom: 10px;
  padding-left: 4px;
}

.article-block-list li::marker {
  color: var(--navy);
}

.article-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.article-gallery img {
  min-width: 0;
}

.content-language {
  color: var(--muted);
  font-size: 16px;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}

.article-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.article-table th,
.article-table td {
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  min-width: 120px;
}

.article-table img {
  max-width: min(100%, 280px);
}

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

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

.article-table th {
  background: var(--surface-soft);
}

.locations-list {
  display: grid;
  gap: 12px;
}

.location-row {
  border-left: 5px solid var(--navy);
}

.empty-state,
.loading,
.error {
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.error {
  color: var(--bad);
}

@media (max-width: 1100px) {
  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .nav-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tab-button {
    flex: 1;
  }

  .page-head {
    grid-template-columns: 1fr;
  }

  .question-nav {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .exam-layout {
    display: block;
  }

  .question-nav {
    margin-bottom: 14px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .topbar-inner {
    padding: 12px 16px;
  }

  .topbar {
    position: static;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-subtitle {
    display: none;
  }

  .premium-chip {
    display: none;
  }

  .language-trigger {
    width: 152px;
  }

  .tab-button {
    padding: 10px 8px;
  }

  .main {
    padding: 18px 16px 48px;
  }

  .question-panel,
  .article-view {
    padding: 18px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-copy {
    font-size: 16px;
  }

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

  .stat {
    padding: 12px 8px;
  }

  .stat-value {
    font-size: 22px;
  }

  .article-row {
    grid-template-columns: 36px minmax(0, 1fr) 10px;
    gap: 12px;
    padding: 20px 16px;
  }

  .article-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
  }

  .article-row-title {
    font-size: 18px;
  }

  .article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .knowledge-search {
    min-width: 100%;
  }

  .knowledge-toolbar {
    gap: 8px;
  }

  .article-view h1 {
    font-size: 24px;
  }

  .article-body {
    font-size: 17px;
  }

  .exam-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .exam-card {
    padding: 16px 12px;
    gap: 8px;
  }

  .exam-title {
    font-size: 20px;
    line-height: 1.35;
  }

  .card-bottom {
    gap: 6px;
  }

  .score-pill,
  .start-pill {
    padding: 0 8px;
  }

  .exam-section {
    margin-top: 28px;
    padding-top: 24px;
    scroll-margin-top: 16px;
  }

  .exam-shortcuts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }

  .exam-shortcut {
    justify-content: space-between;
    padding: 10px 16px;
  }

  .answer-actions {
    gap: 10px;
  }

  .answer-button {
    padding: 12px 8px;
    font-size: 20px;
  }

  .question-title {
    font-size: 20px;
  }

  .question-footer {
    align-items: stretch;
  }

  .question-footer > div,
  .question-footer .button {
    flex: 1 1 auto;
  }

  .question-list[open] .question-dots {
    max-height: 260px;
    overflow-y: auto;
  }
}

@media (max-width: 360px) {
  .exam-grid {
    grid-template-columns: 1fr;
  }
}
