:root {
  color-scheme: light;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --ink: #172629;
  --muted: #536568;
  --subtle: #68777a;
  --line: #d8dedb;
  --line-soft: #e8ece9;
  --teal: #075f68;
  --teal-dark: #044951;
  --teal-soft: #e8f2f0;
  --coral: #a84e40;
  --coral-soft: #f8eee9;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { width: 100%; margin: 0; min-width: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.025em; }
[hidden], .view[hidden] { display: none !important; }
::selection { background: #b7dcda; color: #102a2d; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #e67e66; outline-offset: 3px; }
h1[tabindex="-1"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }
input::placeholder { color: #657477; opacity: 1; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 10px 15px; background: var(--ink); color: white; }
.skip-link:focus { top: 10px; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(245,247,246,.98); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 38px; max-width: 1416px; min-height: 68px; margin: auto; padding: 0 34px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; white-space: nowrap; }
.brand-name { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: 25px; font-weight: 700; letter-spacing: -.035em; }
.brand-name span { font-family: "PingFang SC", "Hiragino Sans GB", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.detail-page-active .brand { display: none; }
.detail-topbar-context:not([hidden]) { display: flex; align-items: center; gap: 11px; min-width: 0; flex: none; }
.detail-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--teal); padding: 6px 10px; font-size: 14px; font-weight: 720; white-space: nowrap; }
.detail-back:hover { background: var(--teal-soft); }
.detail-back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-topbar-title { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 1px solid var(--line); padding-left: 12px; color: var(--ink); font-size: 13px; font-weight: 650; }
.main-nav { display: flex; align-self: stretch; align-items: stretch; gap: 8px; }
.main-nav a { display: inline-flex; align-items: center; padding: 0 11px; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }
.topbar-year { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.install-shortcut { display: none; }
.main-content { max-width: 1416px; min-height: calc(100vh - 120px); margin: auto; padding: 38px 34px 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin: 0 0 30px; }
.page-heading h1 { font-size: clamp(28px,3vw,39px); line-height: 1.2; margin: 0 0 10px; font-weight: 760; }
.page-subtitle { max-width: 72ch; color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.heading-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.heading-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--teal); vertical-align: middle; }
.heading-divider { padding: 0 4px; }
.overline { display: none; }
.section-note { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 11px 0 0; }
.progress-track { height: 5px; background: #dde5e2; border-radius: 10px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--teal); }

.workspace-grid { display: block; }
.catalogue { min-width: 0; max-width: 1240px; }
.catalogue-controls { padding-bottom: 4px; }
.search-wrap label, .filter-grid label { display: block; color: var(--muted); font-size: 12px; font-weight: 650; margin-bottom: 7px; }
.search-wrap { max-width: 570px; }
.search-input-wrap { position: relative; }
.search-input-wrap svg { position: absolute; top: 50%; left: 16px; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-input-wrap input { width: 100%; height: 46px; border: 1px solid #b9c7c3; border-radius: 24px; background: var(--surface); color: var(--ink); padding: 0 18px 0 45px; font-size: 14px; }
.filter-grid { margin-top: 14px; max-width: 280px; }
.filter-grid select { width: 100%; height: 42px; border: 1px solid #b9c7c3; border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0 12px; font-size: 14px; }
.advanced-toggle { display: none; }
.region-filters { display: flex; gap: 7px; overflow-x: auto; padding: 15px 0 8px; scrollbar-width: thin; }
.region-chip { flex: none; min-height: 38px; border: 0; border-radius: 22px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; padding: 6px 13px; white-space: nowrap; }
.region-chip span { margin-left: 6px; font-size: 12px; opacity: .8; }
.region-chip:hover { background: var(--teal-soft); color: var(--teal); }
.region-chip[aria-pressed="true"] { background: var(--teal); color: white; }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0 14px; color: var(--muted); font-size: 12px; }
.list-tools > div { display: flex; gap: 14px; }
.plain-button { border: 0; background: none; color: var(--teal); font-size: 12px; font-weight: 700; padding: 7px 0; }
.plain-button:hover { text-decoration: underline; }
.plain-button[aria-pressed="true"] { color: var(--coral); }
.list-head { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(115px,.8fr) minmax(100px,.6fr) 48px; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 650; }
.list-head span:last-child { text-align: center; }
.program-row { display: grid; grid-template-columns: minmax(0,1fr) 48px; align-items: stretch; border-bottom: 1px solid var(--line-soft); }
.program-row:hover { background: #eff5f2; }
.program-row.is-selected { background: var(--teal-soft); }
.program-select { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(115px,.8fr) minmax(100px,.6fr); gap: 10px; align-items: center; width: 100%; min-width: 0; min-height: 94px; padding: 12px 0; border: 0; background: transparent; color: var(--ink); text-align: left; text-decoration: none; }
.program-select:hover .program-name { color: var(--teal); text-decoration: underline; }
.program-cell { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.program-school { font-size: 14px; font-weight: 700; }
.program-school span { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.program-name { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.program-sub { color: var(--muted); font-size: 12px; }
.mobile-date { display: none; }
.mobile-date em { color: var(--muted); font-style: normal; font-weight: 500; }
.date-cell, .lang-cell { font-size: 12px; line-height: 1.35; color: var(--muted); }
.date-cell strong, .lang-cell strong { color: var(--ink); font-size: 13px; font-weight: 650; }
.row-action { display: grid; place-items: center; }
.save-button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }
.save-button:hover, .save-button[aria-pressed="true"] { color: var(--coral); background: var(--coral-soft); }
.empty-state { padding: 52px 10px; text-align: center; }
.empty-state strong { font-size: 17px; }
.empty-state p { color: var(--muted); margin: 7px 0 17px; }
.button-secondary { min-height: 42px; border: 1px solid var(--teal); border-radius: 10px; background: transparent; color: var(--teal); padding: 8px 14px; font-weight: 700; }

.program-detail-page { max-width: 1080px; margin: 0 auto; }
.detail-page-active .install-reminder { display: none !important; }
.detail-page-top { display: flex; justify-content: flex-end; align-items: center; min-height: 22px; margin-bottom: 22px; }
.detail-position { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.detail-hero { padding: 0 0 26px; }
.detail-hero h1 { font-size: clamp(34px,4.3vw,51px); line-height: 1.18; margin-bottom: 11px; font-weight: 760; }
.detail-en { max-width: 26ch; font-size: clamp(21px,2.35vw,29px); line-height: 1.35; margin-bottom: 17px; overflow-wrap: anywhere; font-weight: 580; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 11px; border-radius: 16px; background: #e9eeea; color: #43575a; font-size: 12px; font-weight: 650; }
.detail-summary { display: grid; grid-template-columns: 1fr 1.45fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-summary > div { padding: 17px 23px 18px 0; min-width: 0; }
.detail-summary > div + div { border-left: 1px solid var(--line); padding-left: 23px; }
.detail-summary span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.detail-summary strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.detail-jump { position: sticky; top: 68px; z-index: 10; display: flex; gap: 26px; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--paper); scrollbar-width: none; }
.detail-jump::-webkit-scrollbar { display: none; }
.detail-jump button { flex: none; min-height: 53px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 10px 2px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.detail-jump button:hover, .detail-jump button[aria-current="location"] { color: var(--teal); border-bottom-color: var(--teal); }
.detail-body { padding-top: 8px; }
.detail-chapter { display: grid; grid-template-columns: 206px minmax(0,1fr); gap: 40px; padding: 36px 0 42px; border-bottom: 1px solid var(--line); scroll-margin-top: 138px; }
.detail-chapter h2 { font-size: 24px; line-height: 1.35; margin: 0; }
.detail-chapter-content { min-width: 0; max-width: 800px; }
.detail-deadline { padding: 0 0 24px; }
.detail-deadline span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.detail-deadline strong { font-size: 15px; line-height: 1.55; font-weight: 650; }
.date-reference { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.date-reference strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.55; }
.date-source-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 7px; }
.date-source-links a { color: var(--teal); font-size: 12px; font-weight: 700; text-decoration: none; }
.date-source-links a:hover { text-decoration: underline; }
.detail-section { padding: 23px 0; border-top: 1px solid var(--line-soft); }
.detail-section:first-child { padding-top: 0; border-top: 0; }
.detail-section h3 { color: var(--ink); font-size: 17px; margin: 0 0 10px; font-weight: 720; }
.detail-section p, .detail-section dd { font-size: 15px; line-height: 1.75; margin: 0; }
.detail-section dl { margin: 0; }
.detail-section dl div + div { margin-top: 17px; }
.detail-section dt { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.detail-section .tuition-value { color: var(--ink); font-weight: 720; font-size: 19px; }
.detail-section .detail-context { margin-top: 12px; color: var(--muted); font-size: 13px; }
.detail-section > a { display: inline-flex; margin-top: 10px; color: var(--teal); font-size: 13px; font-weight: 700; text-decoration: none; }
.detail-section > a:hover { text-decoration: underline; }
.detail-section .detail-followup { margin-top: 9px; }
.budget-section { padding-top: 27px; }
.budget-highlight { margin: 10px 0 17px; padding: 0 0 15px; border-bottom: 1px solid var(--line-soft); }
.budget-highlight > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.budget-highlight .budget-total { display: block; color: var(--teal-dark); font-size: clamp(25px,3vw,34px); line-height: 1.3; font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.budget-highlight .budget-total + span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 6px; }
.budget-breakdown div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 10px; align-items: baseline; }
.budget-breakdown dt { font-size: 13px; }
.budget-breakdown dd { text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.budget-breakdown small { display: block; grid-column: 1 / -1; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.55; text-align: left; }
.budget-section .detail-context { line-height: 1.6; }
.cost-source-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.cost-source-links a { color: var(--teal); font-size: 12px; font-weight: 700; text-decoration: none; }
.cost-source-links a:hover { text-decoration: underline; }
.requirements-note { margin: 0 0 20px; padding: 13px 16px; border-radius: 9px; background: var(--teal-soft); color: #37585a; font-size: 13px; line-height: 1.65; }
.admission-cases article { padding: 11px 0; }
.admission-cases article + article { border-top: 1px solid var(--line-soft); }
.admission-cases article strong { font-size: 13px; }
.admission-cases article p { margin: 5px 0; font-size: 13px; }
.admission-cases article a { color: var(--teal); font-size: 12px; font-weight: 700; text-decoration: none; }
.admission-cases article a:hover { text-decoration: underline; }
.admission-cases .case-context { margin-top: 4px; color: var(--muted); font-size: 11px; }
.detail-warning { color: #694235; background: var(--coral-soft); border-radius: 10px; padding: 13px 15px; margin: 18px 0; font-size: 13px; line-height: 1.6; }
.source-links { display: flex; flex-wrap: wrap; gap: 9px; }
.source-links a, .inline-link { display: inline-flex; align-items: center; min-height: 44px; gap: 4px; color: var(--teal); text-decoration: none; font-size: 13px; font-weight: 700; }
.source-links a { padding: 8px 13px; border-radius: 9px; background: var(--teal-soft); }
.source-links a:first-child { background: var(--teal); color: white; }
.source-links a:hover, .inline-link:hover { text-decoration: underline; }
.official-evidence { margin-top: 19px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.official-evidence summary { cursor: pointer; color: var(--teal); font-size: 13px; font-weight: 700; line-height: 1.5; }
.official-evidence summary span { color: var(--muted); font-size: 11px; font-weight: 500; margin-left: 6px; }
.official-evidence summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 2px; }
.official-evidence figure { margin: 13px 0 0; }
.official-evidence figure > a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.official-evidence img { display: block; width: 100%; height: auto; }
.official-evidence figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.official-evidence figcaption a { color: var(--teal); text-decoration: underline; }

.notice-inline { padding: 14px 17px; margin-bottom: 22px; border-radius: 12px; background: var(--teal-soft); color: #2e5356; font-size: 14px; line-height: 1.6; }
.notice-inline strong { color: var(--teal-dark); }
.timeline-layout, .materials-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 52px; align-items: start; }
.timeline-month { padding: 22px 0 9px; margin: 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); font-weight: 700; }
.timeline-month:first-child { padding-top: 4px; }
.timeline-entry { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 19px; align-items: start; padding: 19px 0; border-bottom: 1px solid var(--line-soft); }
.timeline-date { font-size: 14px; font-weight: 720; line-height: 1.5; overflow-wrap: anywhere; }
.timeline-entry h3 { font-size: 15px; margin-bottom: 4px; }
.timeline-entry p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.timeline-entry a { display: inline-flex; align-items: center; min-height: 40px; color: var(--teal); font-size: 13px; font-weight: 700; text-decoration: none; }
.timeline-entry a:hover { text-decoration: underline; }
.timeline-side, .input-sheet { position: sticky; top: 94px; padding-left: 24px; border-left: 1px solid var(--line); }
.timeline-side h2, .input-sheet h2 { font-size: 19px; margin-bottom: 15px; }
.timeline-side ol, .input-sheet ol { padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.timeline-side li + li, .input-sheet li + li { margin-top: 10px; }
.timeline-side .inline-link { margin-top: 8px; }
.progress-box { width: 190px; }
.progress-box > span { color: var(--muted); font-size: 12px; }
.progress-box strong { display: block; margin: 4px 0 9px; font-size: 19px; font-variant-numeric: tabular-nums; }
.materials-list { display: grid; gap: 34px; }
.material-block { border-top: 1px solid var(--line); }
.block-heading { display: flex; gap: 16px; padding: 17px 0 7px; }
.block-heading > span { color: var(--teal); font-family: Georgia,serif; font-size: 18px; }
.block-heading h2 { font-size: 19px; margin-bottom: 4px; }
.block-heading p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.check-list label { display: flex; align-items: start; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.check-list label:hover { background: #eff5f2; }
.check-list input { width: 20px; height: 20px; accent-color: var(--teal); margin: 2px 0 0; flex: none; }
.check-list strong { display: block; font-size: 14px; margin-bottom: 4px; }
.check-list small { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
.input-sheet .small-label { display: none; }
.input-sheet-head p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.input-sheet li strong { color: var(--ink); }
.button-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--teal); border-radius: 10px; background: var(--teal); color: white; padding: 9px 15px; text-decoration: none; font-size: 13px; font-weight: 700; }
.button-primary:hover { background: var(--teal-dark); }
.copy-feedback { min-height: 18px; color: var(--teal); font-size: 12px; margin: 8px 0 0; }
.privacy-note { border-top: 1px solid var(--line); padding-top: 15px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.sample-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 45px; align-items: start; }
.sample-index { position: sticky; top: 94px; border-top: 1px solid var(--line); }
.sample-index button { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 4px 8px; width: 100%; border: 0; border-bottom: 1px solid var(--line-soft); padding: 15px 6px 15px 0; background: transparent; text-align: left; color: var(--ink); }
.sample-index button:hover, .sample-index button[aria-current="true"] { background: var(--teal-soft); }
.sample-index button span { grid-row: 1 / 3; color: var(--teal); font-size: 12px; }
.sample-index button strong { font-size: 14px; }
.sample-index button small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.sample-article { max-width: 910px; }
.sample-article h2 { font-size: 25px; margin-bottom: 8px; }
.sample-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 17px; }
.sample-meta span { color: var(--muted); font-size: 12px; }
.sample-meta span + span::before { content: "·"; margin-right: 7px; }
.sample-context { color: var(--muted); font-size: 14px; line-height: 1.7; }
.sample-paper { max-width: 800px; padding: 26px 29px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: #23383a; }
.sample-paper h3 { font-size: 16px; margin-bottom: 6px; }
.paper-sub { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.sample-paper ul { padding-left: 21px; font-size: 14px; line-height: 1.75; }
.sample-paper li + li { margin-top: 7px; }
.sample-paper.prose p { font: 15px/1.82 Georgia,"Times New Roman",serif; margin: 0; }
.sample-paper.prose p + p { margin-top: 17px; }
.reference-paper dl, .portfolio-paper dl { margin: 0; }
.reference-paper dl div, .portfolio-paper dl div { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; border-top: 1px solid var(--line-soft); padding: 11px 0; }
.reference-paper dt, .portfolio-paper dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.reference-paper dd, .portfolio-paper dd { font-size: 14px; line-height: 1.7; margin: 0; }
.paper-kicker { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--teal); }
.sample-inputs { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.sample-inputs h3 { font-size: 16px; margin-bottom: 10px; }
.sample-inputs ul { padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.sample-official { color: var(--teal); font-weight: 700; }
.footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1416px; margin: auto; padding: 0 34px 35px; color: var(--muted); font-size: 12px; }
.mobile-nav { display: none; }
.noscript { max-width: 900px; margin: 20px auto; padding: 15px; background: #fff2df; }

.install-reminder { position: relative; display: grid; grid-template-columns: 52px minmax(0,1fr); column-gap: 14px; align-items: start; max-width: 650px; margin-bottom: 24px; padding: 18px 18px 16px; border-radius: 14px; background: #104d52; color: #fff; box-shadow: 0 9px 22px rgba(9,65,70,.14); }
.install-reminder-icon, .install-guide-icon { display: block; object-fit: cover; border-radius: 11px; }
.install-reminder-icon { width: 52px; height: 52px; }
.install-reminder-copy { display: grid; gap: 5px; min-width: 0; padding-right: 47px; }
.install-reminder-copy strong { font-size: 17px; line-height: 1.35; letter-spacing: -.02em; }
.install-reminder-copy span { color: #d8ecea; font-size: 13px; line-height: 1.55; }
.install-action { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; margin-top: 18px; border: 0; border-radius: 9px; background: #fff; color: #104d52; padding: 0 15px; font-size: 15px; font-weight: 750; }
.install-action:hover { background: #eff7f5; }
.install-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.install-dismiss { position: absolute; top: 9px; right: 9px; min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: #d8ecea; padding: 0 6px; font-size: 12px; font-weight: 700; }
.install-dismiss:hover { background: rgba(255,255,255,.12); }
.install-guide { width: min(420px,calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); padding: 24px; box-shadow: 0 18px 58px rgba(12,45,47,.22); }
.install-guide::backdrop { background: rgba(17,36,38,.52); }
.install-guide-head { display: flex; align-items: center; gap: 11px; }
.install-guide-icon { width: 44px; height: 44px; }
.install-guide-head p { color: var(--muted); font-size: 12px; margin: 0 0 3px; }
.install-guide h2 { margin: 0; font-size: 20px; }
.install-guide-lead, .install-guide-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.install-guide-lead { margin: 18px 0; }
.install-guide ol { padding-left: 22px; font-size: 14px; line-height: 1.7; }
.install-guide li + li { margin-top: 9px; }
.install-guide-official { display: inline-flex; min-height: 44px; align-items: center; color: var(--teal); font-size: 13px; font-weight: 700; margin: 0 0 12px; }
.install-guide .button-primary { width: 100%; }

@media (max-width: 1180px) {
  .timeline-layout, .materials-layout { gap: 30px; }
}
@media (max-width: 900px) {
  .topbar-inner { padding: 0 22px; gap: 16px; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 0 9px; font-size: 13px; }
  .topbar-year { display: none; }
  .install-shortcut:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin-left: auto; border: 0; border-radius: 9px; background: var(--teal); color: #fff; padding: 0 12px; font-size: 12px; font-weight: 750; white-space: nowrap; }
  .install-shortcut:hover { background: var(--teal-dark); }
  .main-content { padding: 31px 22px 60px; }
  .detail-chapter { grid-template-columns: 150px minmax(0,1fr); gap: 25px; }
}
@media (max-width: 700px) {
  .topbar { padding-top: env(safe-area-inset-top); }
  .topbar-inner { min-height: 57px; padding: 5px 17px; justify-content: space-between; }
  .brand-name { font-size: 23px; }
  .brand-name span { font-size: 16px; }
  .main-nav { display: none; }
  .install-shortcut:not([hidden]) { min-height: 42px; padding: 0 11px; }
  .main-content { padding: 26px 17px calc(105px + env(safe-area-inset-bottom)); }
  .page-heading { display: block; margin-bottom: 22px; }
  .page-heading h1 { font-size: 30px; margin-bottom: 8px; }
  .page-subtitle { font-size: 13px; }
  .heading-note { display: block; margin-top: 10px; white-space: normal; }
  .timeline-layout, .materials-layout, .sample-layout { display: block; }
  .search-wrap { max-width: none; }
  .search-input-wrap input { min-height: 48px; font-size: 16px; }
  .filter-grid select { min-height: 46px; font-size: 16px; }
  .advanced-toggle { display: block; min-height: 44px; border: 0; background: none; color: var(--teal); font-size: 13px; font-weight: 700; padding: 11px 0 0; }
  .filter-grid { display: none; max-width: none; margin-top: 8px; }
  .filter-grid.is-open { display: block; }
  .region-filters { gap: 3px; margin-top: 5px; scroll-snap-type: x proximity; }
  .region-chip { min-height: 43px; scroll-snap-align: start; }
  .list-tools { flex-wrap: wrap; gap: 5px; }
  .list-tools > div { width: 100%; justify-content: space-between; }
  .plain-button { min-height: 40px; }
  .list-head { display: none; }
  .program-select { min-height: 80px; grid-template-columns: 1fr; gap: 0; }
  .program-row { grid-template-columns: minmax(0,1fr) 48px; }
  .program-cell.date-cell, .program-cell.lang-cell { display: none; }
  .program-school { font-size: 14px; }
  .program-name { font-size: 14px; }
  .mobile-date { display: block; margin-top: 2px; color: var(--teal); font-size: 12px; font-weight: 650; }
  .save-button { width: 44px; height: 44px; }
  .detail-topbar-context:not([hidden]) { flex: 1 1 auto; gap: 4px; }
  .detail-back { padding: 6px 4px; font-size: 13px; }
  .detail-topbar-title { max-width: 110px; padding-left: 8px; font-size: 12px; }
  .detail-page-top { margin-bottom: 14px; }
  .detail-position { font-size: 12px; }
  .detail-hero { padding-bottom: 15px; }
  .detail-hero h1 { font-size: 32px; }
  .detail-en { font-size: 21px; max-width: none; }
  .detail-badges { margin-bottom: 20px; }
  .detail-summary { display: block; border-bottom: 0; }
  .detail-summary > div, .detail-summary > div + div { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: baseline; gap: 12px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line-soft); }
  .detail-summary span { margin: 0; line-height: 1.45; }
  .detail-summary strong { font-size: 14px; }
  .detail-jump { top: calc(57px + env(safe-area-inset-top)); gap: 22px; margin: 0 -17px; padding: 0 17px; scroll-snap-type: x proximity; }
  .detail-jump button { min-height: 49px; font-size: 13px; scroll-snap-align: start; }
  .detail-chapter { display: block; padding: 28px 0 31px; scroll-margin-top: calc(120px + env(safe-area-inset-top)); }
  .detail-chapter h2 { font-size: 22px; margin-bottom: 18px; }
  .detail-deadline { padding-bottom: 20px; }
  .detail-section { padding: 20px 0; }
  .detail-section h3 { font-size: 16px; }
  .source-links a { min-height: 44px; }
  .timeline-entry { grid-template-columns: 92px minmax(0,1fr); gap: 10px; padding: 16px 0; }
  .timeline-date { font-size: 13px; }
  .timeline-entry a { justify-self: start; }
  .timeline-side, .input-sheet { position: static; margin-top: 30px; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .progress-box { width: 100%; margin-top: 15px; }
  .material-block { margin-bottom: 0; }
  .check-list label { min-height: 61px; }
  .check-list input { width: 22px; height: 22px; }
  .sample-index { position: static; display: flex; gap: 5px; overflow-x: auto; margin-bottom: 24px; border-top: 0; scroll-snap-type: x proximity; }
  .sample-index button { flex: none; width: 175px; min-height: 78px; scroll-snap-align: start; }
  .sample-index button small { display: none; }
  .sample-article h2 { font-size: 21px; }
  .sample-paper { padding: 20px 16px; }
  .reference-paper dl div, .portfolio-paper dl div { grid-template-columns: 1fr; gap: 3px; }
  .footer { display: block; padding: 0 17px calc(95px + env(safe-area-inset-bottom)); line-height: 1.7; }
  .footer span { display: block; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); min-height: calc(65px + env(safe-area-inset-bottom)); padding: 4px 5px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -5px 22px rgba(12,45,47,.06); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 55px; border-radius: 11px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 650; }
  .mobile-nav a[aria-current="page"] { color: var(--teal); background: var(--teal-soft); }
  .mobile-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}
@media (max-width: 390px) {
  .detail-topbar-title { display: none; }
  .section-heading h2 { font-size: 19px; }
  .section-heading a { font-size: 12px; }
  .install-reminder { grid-template-columns: 44px minmax(0,1fr); column-gap: 10px; padding: 16px; }
  .install-reminder-icon { width: 44px; height: 44px; }
  .install-reminder-copy { padding-right: 30px; }
  .install-reminder-copy strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
