:root {
  --bg: #f7f6ef; --paper: #fffefa; --ink: #202d27; --muted: #4c5c53;
  --line: #dedfd4; --accent: #245642; --accent-dark: #173a2e; --soft: #e9efe6;
  --gold: #e9c17d; --shadow: 0 5px 16px rgb(27 45 36 / 6%);
  --nav-offset: 16px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-offset); }
body {
  margin: 0; font-family: Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6;
  word-break: keep-all; overflow-wrap: anywhere;
}
h1, h2, h3, h4, h5, p, figure, ol, ul { margin: 0; }
a { color: var(--accent); text-underline-offset: .19em; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible { outline: 3px solid #b7822e; outline-offset: 3px; }
#view-title:focus, .schedule-card h3:focus { outline: none; }
.wrap { width: min(100% - 64px, 1216px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; inset: 8px auto auto 8px; z-index: 30; padding: 10px; background: white; }
.btn {
  display: inline-flex; gap: .55em; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px;
  font-weight: 760; font-size: 14px; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: white; border-color: #becdc3; color: var(--accent); }
.btn-outline:disabled { background: var(--soft); cursor: default; }

.masthead { background: linear-gradient(105deg, #142b23, #21483a); color: #f9f8ef; border-bottom: 1px solid #364a40; }
.masthead-inner { min-height: 59px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 780; letter-spacing: -.035em; }
.brand, .header-records { color: inherit; text-decoration: none; }
.brand-icon { width: 27px; height: 27px; background: url("./icon.svg") center / 135%; border: 1px solid #557267; border-radius: 7px; }
.brand-divider { width: 1px; height: 13px; background: #61766a; }
.brand-subtitle { color: #c9d5cc; font-size: 13px; }
.header-records { color: #e4eae2; font-size: 13px; font-weight: 700; padding: 10px 0 10px 5px; }
.header-records span { color: var(--gold); margin-left: 4px; }

.app-shell { display: grid; grid-template-columns: 157px minmax(0, 1fr); gap: 25px; align-items: start; }
.topbar { position: sticky; top: 15px; margin-top: 27px; border: 1px solid #d7dfd2; border-radius: 14px; z-index: 10; background: #f1f4eb; box-shadow: 0 4px 14px rgb(27 45 36 / 5%); }
.navwrap { width: 100%; display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px; }
.tab {
  display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 45px;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink);
  font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap;
}
.tab:hover { border-color: #a5b9a9; background: #fffefa; }
.tab span { color: var(--muted); font-size: 12px; font-weight: 620; }
.tab.active { background: var(--accent); border-color: var(--accent); color: white; }
.tab.active span { color: #e4f2e9; }
.tab .tab-count { border: 1px solid #ced9cf; background: var(--soft); border-radius: 99px; padding: 0 7px; color: var(--accent-dark); }
.tab.active .tab-count { background: #11382c; border-color: #7f9c8d; }

.main-content { width: 100%; min-width: 0; min-height: 400px; padding-block: 24px 65px; }
.view-header { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 19px; }
.kicker { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .01em; margin-bottom: 2px; }
.view-header h1, .view-header h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.052em; line-height: 1.2; }
.view-description { color: var(--muted); margin-top: 7px; font-size: 15px; }
.schedule-caption { font-size: 12px; font-weight: 700; color: #4f5d54; border: 1px solid #cfd3c8; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.panel, .card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.panel { padding: 21px; }
.panel h3, .card h3 { letter-spacing: -.034em; }
.home-days { display: grid; gap: 25px; align-items: start; }
.home-day { min-width: 0; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--route, var(--accent)); border-radius: 13px; background: #f9f9f2; }
.home-day .view-header { align-items: center; margin-bottom: 11px; }
.home-day .view-header h3 { color: var(--route, var(--ink)); font-size: 23px; letter-spacing: -.035em; }
.home-day .view-header .btn { font-size: 12px; min-height: 36px; }
.schedule-jumps, .course-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.schedule-jumps a, .course-tabs a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 5px 12px; gap: 5px; color: var(--accent);
  background: var(--paper); border: 1px solid #cbd7cc; border-radius: 8px; font-size: 13px;
  font-weight: 730; text-decoration: none;
}
.schedule-jumps a span { color: var(--muted); font-size: 11px; }
.course-tabs a[aria-current="page"] { background: var(--route, var(--accent)); border-color: var(--route, var(--accent)); color: white; }
.schedule-jumps a:hover, .course-tabs a:hover { border-color: #54856e; }
.day-view .view-header { align-items: start; }
.day-view .back-link { flex: none; padding-top: 6px; }
.day-view .mission-panel { margin-top: 14px; }
.mission-panel { background: #eaf0e7; border-color: #d7e0d4; }
.mission-panel h3 { font-size: 17px; }
.mission-panel p { margin: 4px 0; color: #395447; font-size: 14px; }
.home-heading { align-items: center; }
.home-heading h1 { color: #193b30; font-size: clamp(29px, 4.15vw, 54px); font-weight: 800; letter-spacing: -.065em; }
.home-heading .kicker { margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.home-heading .btn { min-height: 42px; flex: none; background: #f1ead9; border-color: #e2d7ba; color: #533d1f; }
.home-schedules { margin-top: 27px; padding-top: 20px; border-top: 1px solid #dfdfd3; }
.day-timetable { margin-top: 17px; }
.place-sections { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 11px; padding: 5px; background: #ebf0e7; border: 1px solid #dce6d9; border-radius: 11px; }
.place-sections a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 5px 11px; font-size: 13px;
  font-weight: 735; color: var(--accent); text-decoration: none; background: transparent;
  border: 1px solid transparent; border-radius: 7px;
}
.place-sections a:hover { border-color: #adbdaf; }
.place-sections a[aria-current="page"] { background: var(--accent); color: white; border-color: var(--accent); }
.worksheet-panel { max-width: 780px; border-left: 3px solid var(--route, var(--accent)); }
.worksheet-panel .activity-link { margin-top: 9px; }
.worksheet-panel h3 { font-size: 17px; }
#place-panel-title:focus { outline: none; }
.route-map { color: var(--ink); border: 1px solid #d0d9c9; border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.map-frame-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 9px;
  padding: 8px 14px; background: #f1f3e9; color: #315749; border-bottom: 1px solid #d9e1d2;
}
.map-frame-bar strong { font-size: 14px; letter-spacing: -.025em; }
.map-frame-bar span { font-size: 12px; color: #4c5f55; }
.route-canvas { display: flex; justify-content: center; background: #edf1e6; border-bottom: 1px solid #d0d9c9; }
.route-svg { display: block; width: min(100%, 910px); height: auto; }
.map-ground { fill: #edf1e6; }
.map-grid-dot { fill: #b6c6ad; opacity: .52; }
.map-land { fill: #e3eadb; opacity: .55; }
.map-hills { fill: #e3eadc; }
.map-contour { fill: none; stroke: #c1d3bd; stroke-width: 1.5; }
.map-contour-faint { opacity: .6; }
.map-river { fill: none; stroke: #c9dfd9; stroke-width: 6; }
.map-lake { fill: #c9dfd9; stroke: #accdc4; stroke-width: 1.4; }
.map-north { fill: none; stroke: #527064; stroke-width: 1.8; }
.map-landmarks text, .map-marker text { text-anchor: middle; font-weight: 750; }
.map-landmarks text { fill: #506a60; font-size: 15px; }
.map-marker text { fill: #243f34; paint-order: stroke; stroke: #edf1e6; stroke-width: 4px; font-size: 18px; }
.map-hit { fill: transparent; }
.map-point { fill: #263f34; stroke: #fffefa; stroke-width: 3; }
.map-marker:not(.fixed-marker):hover .map-point, .map-marker:focus-visible .map-point { fill: #f2c786; stroke: #263f34; }
.map-marker:not(.fixed-marker):hover text, .map-marker:focus-visible text { fill: #87461a; }
.day-1 { --route: #176654; }
.day-2 { --route: #694488; }
.day-3 { --route: #a6541b; }
.map-line { stroke: var(--route); stroke-width: 3.6; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .89; }
.map-line.day-2 { stroke-dasharray: 9 5; }
.map-line.day-3 { stroke-dasharray: 2 6; stroke-width: 4; }
.overview-routes > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 8px 14px;
  min-height: 43px; list-style: none;
}
.overview-routes > summary::-webkit-details-marker { display: none; }
.overview-routes > summary:focus-visible { outline-offset: -4px; }
.overview-routes[open] > summary { border-bottom: 1px solid var(--line); }
.overview-map-legend { display: flex; gap: 10px; align-items: center; }
.overview-map-legend > span { display: inline-flex; align-items: center; gap: 5px; color: var(--route); font-size: 13px; font-weight: 780; }
.overview-map-legend .route-swatch { width: 14px; }
.route-detail-label { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 12px; font-weight: 730; }
.route-detail-label i { width: 6px; height: 6px; border-right: 1.6px solid; border-bottom: 1.6px solid; transform: translateY(-2px) rotate(45deg); }
.overview-routes[open] .route-detail-label i { transform: translateY(2px) rotate(225deg); }
.route-keys { display: grid; gap: 0; }
.route-key { padding: 11px 15px; }
.route-key + .route-key { border-top: 1px solid var(--line); }
.route-key h4 { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.route-key h4 a { color: var(--route); font-weight: 780; text-decoration: none; }
.route-key h4 a:hover { text-decoration: underline; }
.route-key h4 > span:last-child { color: var(--muted); font-weight: 650; font-size: 11px; }
.route-swatch { width: 24px; border-top: 3px solid var(--route); }
.day-2 .route-swatch { border-top-style: dashed; }
.day-3 .route-swatch { border-top-style: dotted; }
.route-key ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; list-style: none; padding: 0; margin-top: 4px; }
.route-key li { font-size: 13px; }
.route-key li a { color: inherit; text-decoration-color: #92a59b; }
.route-key li small { color: var(--muted); margin-left: 3px; }
.route-arrow { color: var(--route); margin-right: 6px; }
.map-transfer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; color: var(--muted); margin-top: 4px; font-size: 12px; }
.map-transfer ol { margin: 0; }
.map-transfer li { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.map-transfer li + li::before { content: ""; display: block; width: 18px; border-top: 2px dashed var(--route); }
.map-caption { color: var(--muted); margin-top: 7px; font-size: 12px; }
.meeting-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; margin-bottom: 17px; background: #f1e9f3; border-radius: 10px; border: 1px solid #dcc9e2; color: #552b60; }
.meeting-banner strong { display: inline-block; }
.meeting-label { font-size: 12px; font-weight: 740; margin-right: 10px; }
.meeting-banner a { color: #552b60; font-size: 13px; font-weight: 750; flex: none; }

.timeline { list-style: none; padding: 0; display: grid; gap: 11px; }
.timeline-row { --type-fg: #245041; --type-bg: #e8f0e7; --type-dot: #528572; position: relative; display: grid; grid-template-columns: 125px minmax(0, 1fr); align-items: start; }
.type-meal { --type-fg: #794318; --type-bg: #f9ead8; --type-dot: #b97847; }
.type-move { --type-fg: #344d65; --type-bg: #e8eef4; --type-dot: #667f98; }
.type-meet { --type-fg: #633675; --type-bg: #f1e6f4; --type-dot: #8c62a0; }
.type-experience { --type-fg: #19566a; --type-bg: #e3f1f3; --type-dot: #448a9b; }
.type-stay { --type-fg: #584726; --type-bg: #f2eddf; --type-dot: #947d52; }
.timeline-row:not(:last-child)::before { content: ""; position: absolute; top: 24px; bottom: -34px; left: 109px; border-left: 1px solid #cdd5ca; }
.timeline-time {
  position: relative; padding: 15px 20px 0 0; color: #303e36; font-size: 14px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -.025em; line-height: 1.35;
}
.timeline-time span { white-space: nowrap; }
.timeline-time small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 650; }
.timeline-time::after { content: ""; position: absolute; top: 18px; left: 105px; width: 9px; height: 9px; border-radius: 50%; background: var(--type-dot); box-shadow: 0 0 0 3px var(--bg); }
.schedule-card { padding: 13px 17px 11px; }
.schedule-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.kind, .schedule-status, .record-pill {
  display: inline-flex; align-items: center; min-height: 20px; padding: 1px 7px; border-radius: 4px;
  color: var(--type-fg, #315a47); background: var(--type-bg, var(--soft)); font-size: 11px; font-weight: 780;
}
.schedule-status { color: #70470f; background: #f5eddc; }
.schedule-card h3 { font-size: 17px; line-height: 1.35; }
.location-block { margin-top: 2px; }
.location-name { display: block; color: #343f36; font-size: 13px; font-weight: 700; }
.location-block address, .location-context { display: block; color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.55; }
.location-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.text-button {
  appearance: none; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 3px 0;
  background: none; border: 0; color: var(--accent); font-size: 12px; font-weight: 740; text-decoration: none; cursor: pointer;
}
.schedule-note { color: #47564c; margin-top: 4px; font-size: 13px; }
.schedule-card > .location-block ~ .location-block { margin-top: 7px; padding-left: 10px; border-left: 2px solid var(--line); }
.activity-link { display: inline-flex; align-items: center; gap: 6px; min-height: 37px; }
.schedule-card > .activity-link { margin-top: 4px; }
.operation { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: start; gap: 7px; margin-top: 7px; padding: 7px 9px; border-radius: 6px; color: #654b2c; background: #f8f0e1; font-size: 12px; }
.operation-known { color: #315446; background: #edf2e9; }
.operation-label { font-weight: 790; }
.operation-source, .operation time { white-space: nowrap; font-size: 11px; color: inherit; }
.operation time { margin-left: 3px; }
.stop-index { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #ebf1e9; color: #285340; font-weight: 800; font-size: 12px; }
.night-route { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 8px; }
.route-stop { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; padding: 8px; border: 1px solid #e3e5db; border-radius: 9px; }
.route-stop h4 { font-size: 14px; }
.route-stop h4 a { color: inherit; }

.back-link { display: inline-flex; margin-bottom: 12px; }
.place-view .view-header { align-items: start; }
.place-view .location-block { margin-top: 5px; }
.activity-card + .activity-card { margin-top: 19px; }
.activity-card h3, .record-card h3, .conclusion-panel h3 { font-size: 18px; margin-bottom: 5px; }
.activity-card p, .callout { font-size: 15px; }
.question-card { padding: 12px 14px; background: #eaf0e7; border-radius: 9px; }
.question-card h3 { color: var(--accent); }
.callout { margin-top: 12px; padding: 9px 12px; border-left: 3px solid #c9a467; background: #f8f1e4; }
.callout strong { display: block; margin-bottom: 3px; }
.structure-diagram { margin-top: 13px; padding: 12px; background: #f6f4ec; border: 1px solid #e2ded0; border-radius: 9px; }
.structure-diagram figcaption strong, .structure-diagram figcaption span { display: block; }
.structure-diagram figcaption span { color: var(--muted); font-size: 13px; }
.structure-plan { display: flex; align-items: center; justify-content: center; margin: 12px 0; }
.structure-plan span { display: grid; place-items: center; min-height: 49px; padding: 0 8px; border: 2px solid #637669; background: #e5ece2; font-size: 12px; }
.structure-plan span:nth-child(2) { border-inline: 0; min-height: 29px; background: #f6f4ec; }
.structure-plan span:nth-child(3) { border-radius: 50%; width: 67px; min-height: 67px; }
.activity-sources, .optional-records { margin-top: 13px; color: var(--muted); font-size: 13px; }
.activity-sources ul, .optional-records ul { margin: 6px 0 0; padding-left: 18px; }
summary { cursor: pointer; }
.source-link { font-weight: 700; font-size: 13px; }
.place-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 17px; }
.place-navigation div:last-child { text-align: right; }
.place-navigation a { display: inline-block; font-size: 14px; font-weight: 750; padding: 6px 0; }
.record-card label, .daily-record label, .conclusion-panel label { display: block; font-size: 14px; font-weight: 780; margin: 9px 0 4px; }
textarea, select, #copy-value { width: 100%; background: #fff; border: 1px solid #bfc9be; border-radius: 8px; color: var(--ink); padding: 8px 10px; }
textarea { display: block; resize: vertical; min-height: 87px; line-height: 1.55; }
select { min-height: 42px; }
.save-state { margin: 7px 0 5px; color: var(--muted); font-size: 12px; }
.record-card .activity-link { margin-top: 4px; }

.record-progress { display: flex; gap: 14px; align-items: center; margin: 0 0 13px; color: var(--accent); font-size: 14px; }
.record-progress progress { accent-color: var(--accent); width: min(190px, 45%); height: 10px; }
.daily-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.daily-record { padding: 15px; }
.daily-head { display: flex; align-items: start; justify-content: space-between; gap: 7px; }
.daily-head h3 { font-size: 16px; }
.daily-head h3 span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.record-pill { white-space: nowrap; }
.record-pill.complete { background: #dceede; color: #1f6936; }
.fixed-place { font-size: 15px; font-weight: 730; margin-top: 10px; }
.conclusion-panel, .print-panel { margin-top: 15px; }
.conclusion-question { font-size: 18px; font-weight: 750; color: var(--accent-dark); margin-bottom: 3px; }
.conclusion-panel > p:not(.conclusion-question) { color: var(--muted); }
.conclusion-panel > p:not(.save-state, .conclusion-question) { font-size: 14px; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.evidence-preview { margin: 7px 0 0; padding: 8px 10px; background: var(--soft); border-radius: 7px; font-size: 13px; }
.evidence-preview dt { font-weight: 780; }
.evidence-preview dd { margin: 0; white-space: pre-wrap; }
.evidence-preview dd + dt { margin-top: 5px; }
.print-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.print-panel h3 { font-size: 17px; }
.print-panel p { font-size: 13px; color: var(--muted); }
.print-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; flex: none; }
.reset-button { color: #804232; }
.sources-list { list-style: none; padding: 0; }
.sources-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.sources-list p, .sources-view .panel > p { font-size: 13px; color: var(--muted); }
.sources-view .panel > p { padding-top: 12px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; padding-block: 15px; }
.footer-inner div { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-inner a { text-decoration: none; font-weight: 700; }
#offline-state:empty { display: none; }
.toast { position: fixed; max-width: calc(100% - 24px); bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 12; display: none; padding: 8px 14px; border-radius: 8px; background: #202e27; color: white; font-size: 14px; }
.toast.show { display: block; }
#copy-dialog { max-width: calc(100% - 30px); padding: 17px; border: 1px solid var(--line); border-radius: 12px; }
#copy-dialog form { display: grid; gap: 9px; }
#copy-dialog .btn { justify-self: end; }
#copy-dialog::backdrop { background: rgb(18 33 27 / 55%); }

@media (max-width: 800px) {
  :root { --nav-offset: 73px; }
  .wrap { width: calc(100% - 36px); }
  .app-shell.wrap { display: block; width: 100%; }
  .topbar { top: 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #f5f7ef; }
  .navwrap { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 7px 0; }
  .daily-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 480px) {
  :root { --nav-offset: 73px; }
  .wrap { width: calc(100% - 28px); }
  .masthead-inner { min-height: 50px; }
  .brand { gap: 6px; }
  .brand-subtitle, .header-records { font-size: 12px; }
  .navwrap { gap: 5px; padding-block: 6px; }
  .tab { border-color: #d8dfd1; flex-direction: column; gap: 0; min-height: 44px; font-size: 13px; }
  .tab span { font-size: 10px; line-height: 1.3; }
  .tab .tab-count { padding: 0 4px; }
  .main-content { padding-block: 23px 40px; }
  .view-header { align-items: start; margin-bottom: 13px; gap: 7px; }
  .view-description { font-size: 14px; }
  .home-heading { align-items: center; }
  .home-heading .btn { font-size: 12px; padding-inline: 8px; }
  .home-heading .kicker { font-size: 11px; }
  .place-sections a { font-size: 12px; padding-inline: 8px; }
  .schedule-caption { font-size: 10px; padding: 2px 6px; }
  .timeline-row { grid-template-columns: 88px minmax(0, 1fr); }
  .timeline-time { padding-right: 7px; font-size: 11px; }
  .timeline-row:not(:last-child)::before { left: 78px; }
  .timeline-time::after { left: 74px; top: 16px; width: 8px; height: 8px; }
  .schedule-card { padding: 10px 10px 8px; }
  .schedule-card h3 { font-size: 16px; }
  .location-actions { column-gap: 10px; }
  .operation { grid-template-columns: 1fr; gap: 2px; }
  .operation-source { margin-right: 2px; }
  .meeting-banner { padding: 8px 11px; }
  .meeting-label { display: block; }
  .meeting-banner a { font-size: 12px; }
  .evidence-grid { grid-template-columns: minmax(0, 1fr); }
  .mission-panel { padding-block: 9px; }
  .mission-panel h3 { font-size: 14px; }
  .mission-panel p { margin-block: 2px; font-size: 13px; }
  .home-day { padding: 10px; }
  .home-day .view-header h3 { font-size: 19px; }
  .course-tabs a { min-height: 38px; padding-inline: 8px; font-size: 12px; }
  .schedule-jumps { gap: 5px; }
  .schedule-jumps a { padding-inline: 7px; font-size: 12px; }
  .route-key { padding-inline: 10px; }
  .map-frame-bar, .overview-routes > summary { padding-inline: 10px; }
  .map-frame-bar span { font-size: 11px; }
  .map-marker text { font-size: 19px; }
  .panel { padding: 14px; }
  .print-panel, .footer-inner { flex-direction: column; align-items: start; }
  .place-status { flex: none; }
}

@media (min-width: 1120px) {
  .overall-map .route-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overall-map .route-key + .route-key { border-top: 0; border-left: 1px solid var(--line); }
  .home-days { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .home-day { padding: 12px; }
  .home-day .view-header { align-items: start; }
  .home-day .view-header .btn { padding-inline: 8px; }
  .timeline-row { grid-template-columns: 88px minmax(0, 1fr); }
  .timeline-time { padding-right: 7px; font-size: 11px; }
  .timeline-row:not(:last-child)::before { left: 78px; }
  .timeline-time::after { left: 74px; top: 16px; width: 8px; height: 8px; }
  .schedule-card { padding-inline: 11px; }
  .operation { grid-template-columns: 1fr; gap: 2px; }
  .meeting-banner { gap: 6px; padding-inline: 9px; }
  .meeting-label { display: block; }
  .meeting-banner a { font-size: 11px; }
}

#print-report { display: none; }
@page { size: A4; margin: 14mm 12mm; }
@media print {
  html { scroll-padding: 0; }
  body { color: #111; background: #fff; font-size: 11pt; line-height: 1.45; word-break: normal; }
  body > :not(#print-report) { display: none !important; }
  #print-report { display: block; }
  #print-report header { padding-bottom: 3mm; border-bottom: 1pt solid #333; }
  #print-report h1 { font-size: 23pt; }
  #print-report h2 { font-size: 16pt; margin-top: 6mm; }
  #print-report h3 { font-size: 12pt; margin-top: 3mm; }
  #print-report h4 { font-size: 11pt; }
  #print-report h5 { font-size: 10pt; }
  #print-report h1, #print-report h2, #print-report h3, #print-report h4, #print-report h5 { break-after: avoid; }
  #print-report p { white-space: pre-wrap; overflow-wrap: anywhere; orphans: 2; widows: 2; }
  .print-note { border-top: .5pt solid #bbb; margin-top: 2mm; padding-top: 2mm; }
  .print-field { margin-block: 1.5mm; }
  .print-conclusion > p { margin-top: 2mm; }
}
