:root {
  --bg: #f3efe4;
  --panel: rgba(255, 251, 244, 0.88);
  --panel-strong: #fffaf0;
  --ink: #132024;
  --muted: #57666b;
  --line: rgba(19, 32, 36, 0.12);
  --accent: #1d5c63;
  --accent-soft: #d9ebe9;
  --accent-strong: #0e3f4a;
  --warm: #a86839;
  --warm-soft: #f3e0cf;
  --danger: #812f2a;
  --shadow: 0 22px 60px rgba(19, 32, 36, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(29, 92, 99, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(168, 104, 57, 0.16), transparent 22%),
    linear-gradient(180deg, #efe8d7 0%, var(--bg) 38%, #e5ece8 100%);
  min-height: 100vh;
}

.shell {
  width: min(1300px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.print-root {
  display: none;
}

body.printing-active .shell {
  display: none;
}

body.printing-active .print-root {
  display: block;
  position: static;
  left: auto;
  top: auto;
  width: auto;
  background: transparent;
  z-index: auto;
}

body.printing-active .print-progress {
  display: none !important;
}

body.print-preparing .print-root {
  display: block;
  position: absolute;
  left: -200vw;
  top: 0;
  width: 210mm;
  background: #fff;
  z-index: -1;
}

.print-progress {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(19, 32, 36, 0.32);
  backdrop-filter: blur(10px);
  z-index: 50;
}

body.print-busy .print-progress {
  display: flex;
}

.print-progress-card {
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.print-progress-bar {
  margin: 16px 0 10px;
  height: 12px;
  border-radius: 999px;
  background: rgba(19, 32, 36, 0.08);
  overflow: hidden;
}

.print-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  transition: width 220ms ease;
}

.hero,
.panel {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: 30px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.eyebrow,
.kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--warm);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 0.95;
  max-width: 11ch;
}

.intro {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.save-status {
  margin-top: 14px;
  color: var(--accent-strong);
  font-size: 0.94rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  width: min(360px, 100%);
}

button,
.file-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

button:hover,
.file-button:hover {
  transform: translateY(-1px);
}

button {
  background: var(--accent);
  color: #fff;
}

.secondary {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.danger {
  background: #f4dbd7;
  color: var(--danger);
}

.file-button input {
  display: none;
}

.tab-bar {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 24px;
  background: rgba(243, 239, 228, 0.82);
  backdrop-filter: blur(12px);
}

.tab-section {
  display: grid;
  gap: 10px;
}

.tab-section-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
}

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

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

.tab {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(19, 32, 36, 0.1);
  color: var(--ink);
}

.day-tab {
  display: grid;
  gap: 4px;
  min-height: 106px;
  border-radius: 22px;
  padding: 14px 16px;
  text-align: left;
  align-content: start;
}

.day-tab-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
}

.day-tab-date {
  font-size: 1rem;
  line-height: 1.15;
}

.day-tab-title {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.tool-tab {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  font-weight: 700;
}

.tab.active {
  background: var(--accent-strong);
  color: #fff;
}

.tab.active .day-tab-kicker,
.tab.active .day-tab-title {
  color: rgba(255, 255, 255, 0.82);
}

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

.panel {
  border-radius: var(--radius);
  padding: 22px;
}

.panel-collapsible {
  padding: 0;
  overflow: hidden;
}

.panel.wide {
  grid-column: span 8;
}

.panel-grid > .panel:not(.wide) {
  grid-column: span 4;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.panel-toggle {
  display: block;
}

.panel-toggle[open] .panel-toggle-summary {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(29, 92, 99, 0.04), rgba(29, 92, 99, 0.01));
}

.panel-toggle-summary {
  list-style: none;
  cursor: pointer;
  padding: 22px;
  transition: background 160ms ease;
}

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

.panel-toggle-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.panel-toggle-copy {
  display: grid;
  gap: 6px;
}

.panel-toggle-copy .kicker {
  margin-bottom: 0;
}

.panel-toggle-title {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
}

.panel-toggle-summary::after {
  content: "Mehr anzeigen";
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29, 92, 99, 0.08);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.panel-toggle[open] .panel-toggle-summary::after {
  content: "Weniger anzeigen";
}

.panel-toggle-body {
  padding: 0 22px 22px;
}

.summary-meta {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 92, 99, 0.08);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.overview-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.focus-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 255, 255, 0.72));
}

.focus-label {
  margin: 0 0 6px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 700;
}

.focus-value {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
}

.focus-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.4;
}

.legend,
.meta-chip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dot.fixed {
  background: var(--accent);
}

.dot.editable {
  background: var(--warm);
}

.map-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 20px;
  align-items: center;
}

.map-mode-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.map-mode-canvas,
.map-mode-side {
  display: grid;
  gap: 14px;
}

.real-route-map {
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(19, 32, 36, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.overview-map {
  margin-bottom: 18px;
  min-height: 380px;
}

.day-route-map {
  margin: 0 0 16px;
  min-height: 320px;
}

.map-fallback {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 22px;
  color: var(--muted);
  background: linear-gradient(180deg, #dce7e5 0%, #eef5f3 100%);
  border: 1px solid rgba(19, 32, 36, 0.08);
  text-align: center;
}

.day-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#route-map {
  width: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(29, 92, 99, 0.15), transparent 25%),
    linear-gradient(180deg, #dce7e5 0%, #eef5f3 100%);
  border-radius: 22px;
  border: 1px solid rgba(19, 32, 36, 0.08);
  padding: 16px;
}

.route-steps,
.card-list,
.fact-grid,
.checklist,
.timeline-list,
.stats-grid {
  display: grid;
  gap: 12px;
}

.route-step,
.stop-card,
.fact-card,
.check-item,
.custom-card,
.base-card,
.snapshot-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}

.route-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-step button {
  padding: 8px 12px;
}

.compact {
  gap: 10px;
}

.stop-card h3,
.fact-card h3,
.custom-card h3,
.base-card h3,
.snapshot-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.stop-card p,
.fact-card p,
.custom-card p,
.base-card p,
.snapshot-card p,
.lead {
  color: var(--muted);
  line-height: 1.5;
}

.guide-stop-card {
  overflow: hidden;
  padding: 0;
}

.guide-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 700;
  background: rgba(29, 92, 99, 0.05);
}

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

.compact-button {
  padding: 8px 12px;
}

.agenda-stop-card {
  padding: 0;
}

.agenda-stop-card.drag-over {
  outline: 3px dashed rgba(29, 92, 99, 0.45);
  outline-offset: 4px;
}

.agenda-stop-card.dragging {
  opacity: 0.55;
}

.agenda-summary-copy {
  display: grid;
  gap: 4px;
}

.agenda-summary-actions {
  display: flex;
  gap: 8px;
}

.agenda-stop-body {
  padding: 0 0 18px;
}

.transfer-card {
  margin: -2px 8px 8px;
  padding: 12px 16px;
  border-left: 4px solid rgba(29, 92, 99, 0.35);
  color: var(--muted);
  background: rgba(29, 92, 99, 0.05);
  border-radius: 12px;
  font-size: 0.95rem;
}

.agenda-planning-grid {
  display: grid;
  gap: 12px;
  padding: 18px;
}

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

.stop-photo {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #dfe7e2, #f3efe4);
}

.stop-content {
  padding: 18px;
}

.guide-copy {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.guide-copy p {
  margin-bottom: 0;
}

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

.guide-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(29, 92, 99, 0.04);
}

.guide-panel strong {
  display: block;
  margin-bottom: 6px;
}

.wiki-snippet {
  border-left: 4px solid var(--warm);
  padding-left: 12px;
  color: var(--muted);
}

.outlander-block {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(168, 104, 57, 0.12), rgba(29, 92, 99, 0.06));
  border: 1px solid rgba(168, 104, 57, 0.18);
}

.outlander-block h4 {
  margin: 6px 0 8px;
  font-size: 1rem;
}

.fan-angle {
  font-weight: 600;
  color: var(--accent-strong);
}

.timeline-add-form {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr auto;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(29, 92, 99, 0.05);
  border: 1px solid rgba(19, 32, 36, 0.08);
}

.timeline-card {
  display: grid;
  grid-template-columns: 170px 1fr 140px;
  gap: 14px;
  align-items: start;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}

.timeline-time {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.timeline-main {
  display: grid;
  gap: 10px;
}

.inline-select {
  border: 1px solid rgba(19, 32, 36, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.timeline-main textarea {
  min-height: 84px;
}

.timeline-actions {
  display: grid;
  gap: 8px;
}

.timeline-actions button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.agenda-checks {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.agenda-checks label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.agenda-checks input {
  width: 16px;
  height: 16px;
}

.agenda-guide {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.agenda-guide summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

.agenda-guide .guide-stop-card {
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.opening-warning {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(29, 92, 99, 0.08);
  color: var(--accent-strong);
  font-weight: 600;
}

.opening-warning.error {
  background: rgba(129, 47, 42, 0.14);
  color: var(--danger);
  border: 1px solid rgba(129, 47, 42, 0.24);
}

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

.stat-value {
  font-size: 1.65rem;
  line-height: 1;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 8px;
}

.stop-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.pill.warn {
  background: var(--warm-soft);
  color: #7d4a22;
}

.source-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.source-links a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.stack-form,
.inline-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(19, 32, 36, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fffdf8;
  color: var(--ink);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

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

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.status {
  font-size: 0.82rem;
  color: var(--muted);
}

.map-label {
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink);
}

.map-sub {
  font-size: 11px;
  fill: var(--muted);
}

.map-point {
  cursor: pointer;
}

.map-point circle {
  fill: var(--accent);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 5;
}

.map-point.active circle {
  fill: var(--warm);
}

.map-point.focus circle {
  fill: var(--warm);
  stroke: rgba(255, 255, 255, 1);
  stroke-width: 7;
}

.map-line {
  fill: none;
  stroke: rgba(29, 92, 99, 0.55);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 14;
}

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

.remove {
  background: #efe2de;
  color: var(--danger);
  padding: 8px 12px;
}

.snapshot-head,
.snapshot-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ghost {
  background: rgba(29, 92, 99, 0.08);
  color: var(--accent-strong);
}

.route-detail-card,
.transfer-detail-card,
.booking-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 16px 18px;
}

.transfer-detail-card {
  background: linear-gradient(135deg, rgba(29, 92, 99, 0.07), rgba(255, 255, 255, 0.8));
}

.transfer-badge {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.booking-line-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.booking-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.booking-line a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.print-map-wrap {
  border-radius: 5mm;
  overflow: hidden;
  border: 0.35mm solid rgba(14, 40, 65, 0.14);
  background: #f8fbff;
}

.print-map-wrap svg,
.print-map-wrap .leaflet-container {
  width: 100%;
  display: block;
}

.print-static-map-image {
  display: block;
  width: 100%;
  height: auto;
}

.print-static-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.print-day-map {
  margin-bottom: 12px;
}

.print-day-map .leaflet-container,
.print-day-map {
  min-height: 68mm;
}

.print-transfer-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.print-transfer-card {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(14, 40, 65, 0.12);
  background: rgba(248, 251, 255, 0.92);
}

.print-transfer-card strong {
  display: block;
  margin-bottom: 4px;
}

.print-transfer-card p {
  margin: 0;
}

@media (max-width: 1024px) {
  .panel.wide,
  .panel-grid > .panel:not(.wide) {
    grid-column: span 12;
  }

  .map-wrap {
    grid-template-columns: 1fr;
  }

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

  .overview-tools-grid {
    grid-template-columns: 1fr;
  }

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

  .tab-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .real-route-map,
  .map-fallback {
    min-height: 320px;
  }

  .hero {
    flex-direction: column;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
  }

  .hero,
  .panel {
    border-radius: 22px;
    padding: 18px;
  }

  .tab-bar {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
  }

  .tab-calendar-grid,
  .tab-tool-grid {
    grid-template-columns: 1fr;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

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

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .timeline-add-form,
  .timeline-card,
  .focus-strip {
    grid-template-columns: 1fr;
  }

  .booking-line {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .panel-toggle-summary,
  .panel-toggle-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .summary-meta {
    align-self: flex-start;
  }

  .panel-toggle-head {
    flex-direction: column;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: #fff;
    color: #16222c;
  }

  .shell {
    display: none;
  }

  .print-root {
    display: block;
    position: static;
    left: auto;
    top: auto;
    width: auto;
    background: transparent;
    z-index: auto;
  }

  body.print-preparing .print-root {
    display: block;
    position: static;
    left: auto;
    top: auto;
    width: auto;
    background: transparent;
    z-index: auto;
  }

  .print-progress {
    display: none !important;
  }

  .print-document {
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    color: #16222c;
  }

  .print-cover,
  .print-summary-grid,
  .print-summary-card,
  .print-day-head,
  .print-hero,
  .print-agenda-item,
  .print-spotlight,
  .print-check {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-page {
    page-break-after: auto;
    break-after: auto;
    padding: 8mm 2mm 0;
  }

  .print-page.break-before {
    page-break-before: always;
    break-before: page;
  }

  .print-cover {
    display: grid;
    align-content: start;
    gap: 6mm;
    padding-top: 8mm;
  }

  .print-cover-head {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 8mm;
    align-items: end;
  }

  .print-cover-side {
    display: grid;
    gap: 3mm;
    padding-bottom: 2mm;
    font-size: 10pt;
    color: #42515a;
  }

  .print-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 8.5pt;
    color: #0E2841;
    font-weight: 700;
  }

  .print-cover h1,
  .print-page h2 {
    margin: 0 0 4mm;
    font-size: 30pt;
    line-height: 0.92;
    color: #0E2841;
    max-width: 120mm;
  }

  .print-page h2 {
    font-size: 22pt;
    margin-bottom: 2mm;
  }

  .print-lead,
  .print-day-summary {
    font-size: 11.8pt;
    line-height: 1.65;
    color: #42515a;
    margin: 0;
    max-width: 155mm;
  }

  .print-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5mm;
  }

  .print-summary-card {
    border: 0.28mm solid rgba(14, 40, 65, 0.1);
    border-radius: 5mm;
    padding: 5mm 5.5mm;
    background: #ffffff;
  }

  .print-summary-card h3,
  .print-section h3 {
    margin: 0 0 2.5mm;
    font-size: 10.5pt;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0E2841;
  }

  .print-summary-card p,
  .print-section p,
  .print-route-intro li,
  .print-check {
    margin: 0;
    font-size: 10.2pt;
    line-height: 1.55;
    color: #3f4c54;
  }

  .print-route-intro ol,
  .print-agenda,
  .print-checklist,
  .print-facts {
    display: grid;
    gap: 2.2mm;
    margin: 0;
    padding: 0;
  }

  .print-route-intro ol {
    padding-left: 5mm;
  }

  .print-route-intro {
    display: grid;
    gap: 4mm;
    border-top: 0.7mm solid #0E2841;
    padding-top: 5mm;
    break-inside: auto;
    page-break-inside: auto;
  }

  .print-route-intro.compact {
    gap: 3mm;
    padding-top: 4mm;
  }

  .print-route-intro.compact li {
    line-height: 1.4;
  }

  .print-route-intro h2,
  .print-section h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .print-page > .print-section,
  .print-page > .print-day-summary,
  .print-page > .print-day-head,
  .print-page > .print-hero {
    margin-bottom: 4.5mm;
  }

  .print-page + .print-page:not(.break-before) {
    margin-top: 6mm;
  }

  .print-section {
    break-inside: auto;
    page-break-inside: auto;
    padding-top: 3mm;
    border-top: 0.35mm solid rgba(14, 40, 65, 0.16);
  }

  .print-day-head {
    display: flex;
    justify-content: space-between;
    gap: 8mm;
    align-items: start;
    margin-bottom: 4mm;
  }

  .print-meta {
    font-size: 10pt;
    color: #0E2841;
    border: 0.35mm solid rgba(14, 40, 65, 0.16);
    border-radius: 999px;
    padding: 2.5mm 4mm;
    font-weight: 700;
  }

  .print-agenda-item {
    display: grid;
    grid-template-columns: 30mm 1fr;
    gap: 4mm;
    align-items: start;
    padding-bottom: 3mm;
    border-bottom: 0.3mm solid rgba(14, 40, 65, 0.09);
  }

  .print-agenda-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .print-time {
    font-size: 9.5pt;
    font-weight: 700;
    color: #0E2841;
  }

  .print-inline-meta {
    color: #66747d;
    font-size: 9pt;
  }

  .print-check {
    border: 0.3mm solid rgba(14, 40, 65, 0.12);
    border-radius: 4mm;
    padding: 2.5mm 4mm;
  }

  .print-check.done {
    background: rgba(14, 40, 65, 0.06);
  }

  .print-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 6mm;
    align-items: stretch;
  }

  .print-hero-copy {
    display: grid;
    gap: 3.5mm;
    align-content: start;
    padding: 6mm 0;
    border-top: 0.8mm solid #0E2841;
  }

  .print-hero-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 8.5pt;
    color: #0C58F9;
    font-weight: 700;
  }

  .print-hero-accent {
    display: grid;
    gap: 1.8mm;
    padding-left: 4mm;
    border-left: 1.2mm solid #0C58F9;
  }

  .print-hero-accent strong {
    font-size: 12pt;
    color: #0E2841;
  }

  .print-hero-media {
    min-height: 56mm;
  }

  .print-hero-photo {
    width: 100%;
    height: 100%;
    min-height: 56mm;
    object-fit: cover;
    border-radius: 5mm;
    display: block;
  }

  .print-map-page .print-map-wrap.large {
    min-height: auto;
    width: 78%;
    max-width: 152mm;
    margin: 0 auto 5mm;
  }

  .print-map-page .print-map-wrap.large svg,
  .print-map-page .print-map-wrap.large .leaflet-container {
    max-height: 138mm;
    min-height: 138mm;
  }

  .compact-card {
    padding-top: 4mm;
    padding-bottom: 4mm;
  }

  .print-spotlight {
    display: grid;
    grid-template-columns: 46mm 1fr;
    gap: 4mm;
    align-items: start;
  }

  .print-spotlight-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4mm;
    border: 0.3mm solid rgba(14, 40, 65, 0.12);
  }

  .print-spotlight-copy {
    display: grid;
    gap: 1.6mm;
  }

  .print-compact-stops {
    margin-top: 3mm;
  }

  .print-compact-stops ul {
    margin: 1.5mm 0 0;
    padding-left: 5mm;
    display: grid;
    gap: 1.5mm;
  }

  .print-spotlight-copy h4 {
    margin: 0 0 1.6mm;
    font-size: 11pt;
    color: #0E2841;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
  }

  .print-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-table td,
  .print-table th {
    padding: 2.2mm 0;
    vertical-align: top;
    text-align: left;
    border-bottom: 0.25mm solid rgba(14, 40, 65, 0.1);
  }

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

  .print-table th {
    width: 34mm;
    color: #0E2841;
    font-weight: 700;
    padding-right: 4mm;
  }

  .agenda-table .print-time-cell {
    width: 28mm;
    color: #0E2841;
    font-weight: 700;
    white-space: nowrap;
    padding-right: 4mm;
  }

  .agenda-table .print-meta-cell {
    width: 28mm;
    color: #66747d;
    font-size: 8.7pt;
    padding-left: 4mm;
  }

  .print-cover::before {
    content: "";
    display: block;
    width: 16mm;
    height: 62mm;
    border-radius: 999px;
    background: linear-gradient(180deg, #0C0BF9 0%, #5509F9 38%, #A40AF9 70%, #F209F9 100%);
    margin-bottom: 2mm;
  }
}
