@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=IBM+Plex+Sans+KR:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");
@import url("./training-content.css");
@import url("./training-document.css");

:root {
  --paper: #ffffff;
  --paper-strong: #f3f7fb;
  --paper-mint: #edf7f1;
  --paper-lilac: #f2effa;
  --paper-peach: #fbf0e7;
  --desk: #f7f6f2;
  --ink: #1c252d;
  --body: #313943;
  --muted: #6e746f;
  --line: #e2ded6;
  --line-dark: #cfc8bc;
  --accent: #2f405f;
  --accent-soft: #e7edf7;
  --accent-ink: #21395f;
  --inquiry: #f6e27f;
  --evidence: #9dd8eb;
  --growth: #bde8b5;
  --caution: #f2a39a;
  --focus-a: #8eb5df;
  --focus-b: #8fc9b0;
  --focus-c: #b9a5df;
  --focus-d: #e1ab83;
  --notion-purple: #6c5ce0;
  --notion-sky: #dcecfa;
  --notion-rose: #fde0ec;
  --notion-yellow: #fef7d6;
}

* { box-sizing: border-box; }
html {
  height: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(84, 91, 142, .42) rgba(255, 255, 255, .22);
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  border: 3px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(124, 201, 191, .72), rgba(181, 159, 228, .72));
  box-shadow: inset 0 0 0 1px rgba(47, 64, 95, .12);
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(124, 201, 191, .9), rgba(181, 159, 228, .9));
}
body {
  margin: 0;
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(243, 247, 251, .92), rgba(247, 246, 242, 0) 260px),
    var(--desk);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 12px;
}
.skip-link:focus { top: 12px; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(247, 250, 248, .94);
  backdrop-filter: blur(14px);
  padding: 18px max(24px, calc((100vw - 1360px) / 2));
}
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  width: 210px;
  min-width: 0;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 210px;
  height: auto;
}
.overline {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.view-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.view-tabs button,
.view-tabs .nav-link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  color: var(--ink);
  border-radius: 7px;
  min-height: 38px;
  padding: 7px 12px;
  font-weight: 800;
  text-decoration: none;
}
.view-tabs button:hover,
.view-tabs button:focus,
.view-tabs .nav-link-button:hover,
.view-tabs .nav-link-button:focus,
.view-tabs .active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  outline: 2px solid rgba(47, 64, 95, .12);
}

.reader {
  width: 100%;
  max-width: 1360px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 auto;
  padding: 22px 24px 44px;
}
.reader-header {
  border-bottom: 1px solid var(--line);
  padding: 10px 0 18px;
  margin-bottom: 16px;
  background: transparent;
}
body[data-view="home"] .reader-header,
body[data-view="writing"] .reader-header {
  display: none;
}
.reader-header h1 {
  margin: 0 0 8px;
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 800;
}
.reader-header p { max-width: 76ch; margin: 0; color: var(--muted); font-weight: 600; }
.analysis-notice {
  margin: -4px 0 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--paper-soft);
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.analysis-notice.danger {
  border-color: rgba(180, 48, 48, .32);
  border-left-color: #b43030;
  background: #fff4f3;
  color: #b43030;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 12px;
  font-weight: 700;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-strong);
  padding: 6px 8px;
}
mark {
  color: var(--ink);
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 850;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
mark.tone-inquiry { background: var(--inquiry); }
mark.tone-evidence { background: var(--evidence); }
mark.tone-growth { background: var(--growth); }
mark.tone-caution { background: var(--caution); color: #fff; }
body.highlights-off mark {
  background: transparent;
  color: inherit;
  padding: 0;
  font-weight: inherit;
}
body.highlights-off .record-highlight {
  background: transparent;
  padding: 0;
  font-weight: inherit;
}

.view-controls { margin-bottom: 14px; }
.view-controls:empty { display: none; }
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}
.control-row {
  grid-template-columns: minmax(220px, 390px) minmax(220px, 390px) minmax(360px, 1fr);
  align-items: end;
}
.controls-only {
  display: grid;
  grid-template-columns: minmax(360px, 1fr);
}
.source-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}
.source-mode-tabs button {
  min-height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  padding: 7px 12px;
  font-weight: 850;
}
.source-mode-tabs button.active,
.source-mode-tabs button:hover,
.source-mode-tabs button:focus {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.filters label {
  display: grid;
  gap: 6px;
  color: var(--body);
  font-size: 12px;
  font-weight: 800;
}
.filters select, .filters input {
  width: 100%;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  color: var(--ink);
  border-radius: 7px;
  min-height: 40px;
  padding: 9px 10px;
}
.tone-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  grid-column: -2 / -1;
}
.highlight-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  padding: 7px 10px;
  font-weight: 850;
}
.highlight-toggle.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.tone-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  font-weight: 850;
}
.tone-key span {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 5px 7px;
}

.results { display: grid; gap: 16px; }
.pdf-modal[hidden] { display: none; }
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}
.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 37, 45, .42);
  backdrop-filter: blur(3px);
}
.pdf-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, calc(100vw - 48px));
  height: min(860px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--paper);
}
.pdf-modal-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
}
.pdf-modal-panel strong {
  font-size: 14px;
  line-height: 1.4;
}
.pdf-modal-panel button {
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: var(--paper-strong);
  color: var(--ink);
  min-height: 34px;
  padding: 6px 11px;
  font-weight: 800;
}
.pdf-object,
.pdf-modal-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper-strong);
}
.pdf-object {
  display: block;
}
.pdf-fallback {
  margin: 16px;
  color: var(--muted);
  font-weight: 700;
}
body.pdf-modal-open { overflow: hidden; }
.line-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  color: var(--accent-ink);
}
.home-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff, #eef6ff 58%, #fff1e8);
  padding: 24px;
}
.home-hero-panel h2 {
  max-width: 860px;
  margin: 0 0 10px;
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.38;
}
.home-hero-panel p {
  max-width: 78ch;
  margin: 0;
  color: var(--body);
  font-weight: 650;
}
.home-principle {
  display: grid;
  gap: 8px;
  align-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  padding: 18px;
}
.home-principle strong {
  font-size: 18px;
}
.home-principle span {
  color: var(--muted);
  font-weight: 750;
}
.site-main-panel {
  border-bottom: 1px solid var(--line);
  padding: 10px 0 24px;
}
.site-main-copy h2 {
  max-width: 900px;
  margin: 0 0 12px;
  font-family: "Gowun Batang", "IBM Plex Sans KR", serif;
  font-size: 30px;
  line-height: 1.32;
  color: var(--ink-deep);
}
.site-main-copy p {
  max-width: 80ch;
  margin: 0;
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
}
.site-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.site-map-grid article {
  display: grid;
  gap: 9px;
  align-content: start;
  border: 1px solid var(--line);
  border-top: 3px solid var(--focus-a);
  border-radius: 4px;
  background: var(--paper);
  padding: 16px;
}
.site-map-grid article:nth-child(2) { border-top-color: var(--focus-b); }
.site-map-grid article:nth-child(3) { border-top-color: var(--focus-c); }
.site-map-grid article:nth-child(4) { border-top-color: var(--focus-d); }
.site-map-grid h3 {
  margin: 0;
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink-deep);
}
.site-map-grid p {
  margin: 0;
  color: var(--body);
}
.common-lens-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.common-lens-card,
.training-source-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 16px;
}
.common-lens-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 230px;
}
.common-lens-card h3,
.training-source-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.42;
}
.common-lens-card p,
.training-source-card p {
  margin: 0;
  color: var(--body);
}
.tone-card-0 { border-top: 3px solid var(--focus-a); background: linear-gradient(180deg, #f5f9fd, #fff); }
.tone-card-1 { border-top: 3px solid var(--focus-b); background: linear-gradient(180deg, #f4fbf8, #fff); }
.tone-card-2 { border-top: 3px solid var(--focus-c); background: linear-gradient(180deg, #f8f5fd, #fff); }
.tone-card-3 { border-top: 3px solid var(--focus-d); background: linear-gradient(180deg, #fdf7f2, #fff); }
.tone-card-4 { border-top: 3px solid #9bc5d8; background: linear-gradient(180deg, #f4fbfd, #fff); }
.common-expression-caution {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(180, 48, 48, .24);
  border-left: 4px solid #b43030;
  border-radius: 4px;
  background: #fff8f7;
  padding: 16px 18px;
  margin: 12px 0;
}
.common-expression-caution h4 {
  margin: 0;
  color: #8d2929;
  font-size: 18px;
  line-height: 1.4;
}
.training-source-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 18px;
}
.training-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.training-source-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}
.training-source-card strong {
  display: inline-block;
  margin: 2px 0 6px;
  color: var(--accent-ink);
}
.writing-guide-shell { display: block; }
.writing-tabs-form {
  grid-template-columns: 1fr;
}
.writing-mode-tabs {
  grid-column: 1 / -1;
}
.writing-guide-intro {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #fbfaf6, #f1e4c8);
  padding: 22px 24px;
}
.writing-guide-intro h2 {
  max-width: 900px;
  margin: 0 0 8px;
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 27px;
  line-height: 1.38;
}
.writing-guide-intro p {
  max-width: 78ch;
  margin: 0;
  color: var(--body);
  font-weight: 600;
}
.writing-guide-frame {
  width: 100%;
  min-height: 1200px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: #fbfaf6;
  overflow: hidden;
}
.reference-hero {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: linear-gradient(135deg, var(--paper), var(--paper-strong));
  padding: 22px 24px;
}
.reference-hero h2 {
  max-width: 880px;
  margin: 0;
  color: var(--ink-deep);
  font-size: 28px;
  line-height: 1.38;
  font-weight: 800;
}
.reference-hero p {
  max-width: 82ch;
  margin: 0;
  color: var(--body);
  font-size: 15px;
  font-weight: 550;
}
.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.reference-card {
  display: grid;
  gap: 16px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  padding: 20px;
}
.reference-card-download {
  background: linear-gradient(180deg, #f4fbf8, var(--paper));
  border-top: 3px solid var(--focus-b);
}
.reference-card-link {
  background: linear-gradient(180deg, #f5f9fd, var(--paper));
  border-top: 3px solid var(--focus-a);
}
.reference-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.reference-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.reference-card h3 {
  margin: 0;
  color: var(--ink-deep);
  font-size: 22px;
  line-height: 1.35;
}
.reference-card p {
  max-width: 68ch;
  margin: 0;
  color: var(--body);
  font-size: 15px;
}
.reference-points {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--body);
}
.reference-points li::marker {
  color: var(--accent-ink);
}
.reference-action {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--paper);
  color: var(--accent-ink);
  padding: 8px 13px;
  text-decoration: none;
  font-weight: 850;
}
.reference-action.primary {
  background: var(--accent);
  color: #fff;
}
.reference-action:hover,
.reference-action:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(47, 64, 95, .12);
  outline: 2px solid rgba(47, 64, 95, .14);
}
.empty {
  border: 1px dashed var(--line-dark);
  border-radius: 10px;
  background: var(--paper);
  padding: 20px;
  color: var(--muted);
  font-weight: 800;
}
.source-button,
.record-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  padding: 6px 11px;
  text-decoration: none;
  font-weight: 800;
}
.source-button { cursor: pointer; }

.component-legend,
.component-example-panel,
.record-lens-panel,
.expression-dictionary-panel,
.record-evidence-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  padding: 18px;
}
.component-legend-grid,
.component-example-grid,
.record-lens-grid,
.expression-dictionary-grid,
.record-evidence-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.carousel-shell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}
.carousel-track {
  min-width: 0;
}
.record-lens-panel .record-lens-grid.carousel-track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, calc((100% - 20px) / 3));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 2px 2px 8px;
}
.record-lens-panel .record-lens-card {
  scroll-snap-align: start;
}
.carousel-button {
  inline-size: 42px;
  block-size: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent-ink);
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}
.carousel-button:hover,
.carousel-button:focus {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.component-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line-dark);
  border-left-width: 5px;
  border-radius: 4px;
  background: var(--paper-warm);
  padding: 6px 10px;
  font-weight: 850;
}
.component-mark {
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 850;
}
.component-observation_evidence { border-left-color: #9dd8eb; background: #eef9fd; }
.component-curriculum_concept { border-left-color: #f6e27f; background: #fff9d9; }
.component-inquiry_process { border-left-color: #8fc9b0; background: #eef8f4; }
.component-student_response { border-left-color: #b9a5df; background: #f3effb; }
.component-growth_change { border-left-color: #bde8b5; background: #f0faed; }
.component-teacher_judgment { border-left-color: #e1ab83; background: #fff2e9; }
.component-example-card,
.comparison-card,
.record-lens-card,
.expression-card,
.record-evidence-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  padding: 14px;
}
.component-sentence {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}
.comparison-card h4,
.record-lens-card h4,
.expression-card h4,
.record-evidence-card h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}
.comparison-card p,
.record-lens-card p,
.expression-card p,
.record-evidence-card p {
  margin: 0;
}
.caution-chip {
  border-color: rgba(176, 100, 66, .42);
  background: #fff2e9;
}
.record-evidence-panel {
  margin: 8px 0 16px;
  background: linear-gradient(180deg, #f4fbf8, var(--paper));
}
.record-evidence-card {
  border-top: 3px solid var(--focus-b);
}
.compact-evidence {
  max-height: 7.2em;
  overflow: auto;
  border-left: 3px solid var(--line-dark);
  padding-left: 10px;
}

[hidden] { display: none !important; }

@media (max-width: 960px) {
  .app-header { position: static; grid-template-columns: 1fr; align-items: start; }
  .view-tabs { justify-content: flex-start; }
  .filters, .control-row { grid-template-columns: 1fr 1fr; }
  .tone-tools { justify-content: flex-start; grid-column: 1 / -1; }
  .tone-key { justify-content: flex-start; }
  .site-map-grid { grid-template-columns: 1fr; }
  .home-hero-panel, .training-source-grid { grid-template-columns: 1fr; }
  .common-expression-caution { grid-template-columns: 1fr; }
  .reference-grid { grid-template-columns: 1fr; }
  .common-lens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-lens-panel .record-lens-grid.carousel-track {
    grid-auto-columns: minmax(280px, calc((100% - 10px) / 2));
  }
}
@media (max-width: 640px) {
  *::-webkit-scrollbar {
    width: 7px;
    height: 7px;
  }
  .app-header {
    padding: 14px;
    gap: 12px;
  }
  .brand-logo-link,
  .brand-logo {
    width: 168px;
  }
  .view-tabs {
    gap: 6px;
  }
  .view-tabs button,
  .view-tabs .nav-link-button {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 13px;
  }
  .reader { padding: 14px; }
  .reader-header h1 { font-size: 24px; }
  .filters { grid-template-columns: 1fr; }
  .common-lens-grid { grid-template-columns: 1fr; }
  .component-example-grid,
  .record-lens-grid,
  .expression-dictionary-grid,
  .record-evidence-grid,
  .comparison-grid { grid-template-columns: 1fr; }
  .carousel-shell {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
  }
  .carousel-button {
    inline-size: 36px;
    block-size: 36px;
    font-size: 22px;
  }
  .record-lens-panel .record-lens-grid.carousel-track {
    grid-auto-columns: minmax(240px, 88%);
  }
}

:root {
  --paper-warm: #fbfaf6;
  --rule-warm: #d6d2c4;
  --ink-deep: #1f2c44;
}
body {
  background:
    linear-gradient(180deg, rgba(251, 250, 246, .94), rgba(247, 250, 248, 0) 300px),
    var(--desk);
}
.app-header {
  border-bottom: 2px solid var(--ink);
  background: rgba(251, 250, 246, .96);
  padding-top: 22px;
  padding-bottom: 22px;
}
.site-main-copy h2 {
  font-family: "Gowun Batang", "IBM Plex Sans KR", serif;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: 0;
}
.reader-header p {
  font-weight: 500;
}
.overline {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.reader {
  padding-top: 24px;
}
.reader-header,
.view-controls,
.home-hero-panel,
.writing-guide-intro {
  border-radius: 4px;
}
.view-controls {
  background: rgba(251, 250, 246, .78);
}
.home-hero-panel {
  background: linear-gradient(135deg, var(--paper-warm), #eef6ff 58%, #fff1e8);
}
.view-tabs button,
.view-tabs .nav-link-button,
.filters select,
.filters input,
.highlight-toggle,
.tone-key span,
.icon-badge,
.common-lens-card,
.training-source-card,
.training-source-panel,
.empty,
.source-button,
.record-head a,
.school-picker,
.school-analysis,
.school-hero,
.interpretation-card,
.focus-block,
.keyword-filter-panel,
.keyword-row,
.source-item,
.dictionary-term-card,
.writing-guide-frame {
  border-radius: 4px;
}
.icon-badge {
  background: var(--paper-warm);
}
.common-lens-card h3,
.training-source-card h3 {
  font-size: 20px;
}
.panel-heading h3,
.interpretation-board h3,
.special-panel h3,
.overview-keywords h3,
.keyword-filter-panel h3,
.sentence-legend h3 {
  font-weight: 700;
}
.badge,
.keyword-chip,
.section-label,
.source-line,
.source-note {
  font-family: "IBM Plex Sans KR", system-ui, sans-serif;
  font-weight: 700;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 18px;
  border-top: 1px solid var(--rule-warm);
  background: var(--paper-warm);
  color: var(--muted);
  padding: 14px max(24px, calc((100vw - 1360px) / 2)) 18px;
  font-size: 12px;
  font-weight: 600;
}
.footer-credit,
.footer-visits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.footer-visits {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}
.footer-visits strong {
  color: var(--ink-deep);
  font-weight: 700;
}
.site-footer a {
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-ink);
}
