:root {
  --navy: #18233a;
  --blue: #1e5aa8;
  --teal: #0b6e75;
  --mango: #f3b347;
  --coral: #c54f3d;
  --mist: #f4f7f6;
  --paper: #fffdf8;
  --ink: #172032;
  --muted: #617084;
  --line: #d9e0df;
  --shadow: 0 18px 55px rgba(24, 35, 58, 0.12);
  font-family: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--mist);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--mist); }
button, input { font: inherit; }
a { color: inherit; }

.lock-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.07) 50%, transparent 50.2%),
    var(--navy);
}

.lock-card {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 42px;
  padding: 56px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border-top: 8px solid var(--mango);
}

.lock-mark {
  align-self: start;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  color: white;
  background: var(--teal);
  border-radius: 50%;
  text-align: center;
  font-size: 38px;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
}
.lock-mark span { font-size: 13px; letter-spacing: .16em; }
.kicker { margin: 0 0 8px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.trip-date { margin: 0 0 10px; color: var(--teal); font-size: 13px; font-weight: 750; }
.lock-card h1 { margin: 0; font-size: clamp(36px, 7vw, 62px); letter-spacing: -.055em; }
.lock-copy { margin: 18px 0 28px; color: var(--muted); line-height: 1.75; }
.unlock-form label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.password-row { display: flex; gap: 10px; }
.password-row input { min-width: 0; flex: 1; padding: 14px 16px; border: 1px solid #aeb8c1; border-radius: 0; background: white; }
.password-row button, .quiet-button, .copy-button {
  border: 0;
  cursor: pointer;
  font-weight: 750;
}
.password-row button { padding: 14px 20px; color: white; background: var(--blue); }
.lock-message { min-height: 22px; margin: 10px 0 0; color: var(--coral); font-size: 13px; }
.privacy-note { margin: 24px 0 0; color: #7c8795; font-size: 12px; line-height: 1.6; }

.app-shell { width: min(1180px, 100%); margin: 0 auto; padding: 20px 28px 72px; }
.hero { position: relative; overflow: hidden; padding: 34px 40px 30px; color: white; background: var(--navy); }
.hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -100px; bottom: -190px; border: 28px solid rgba(243,179,71,.92); border-radius: 50%; }
.hero-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 28px; }
.hero .trip-date { color: var(--mango); }
.hero h1 { margin: 0; max-width: 700px; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 span { color: #cdd6e4; font-size: .46em; letter-spacing: -.02em; white-space: nowrap; }
.hero-lede { margin: 12px 0 0; color: #cdd6e4; }
.hero-actions { display: flex; align-items: start; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.quiet-button { padding: 10px 13px; color: #eef4fb; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); }
.route-line { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; margin: 32px 0 18px; }
.route-stop { position: relative; padding-top: 21px; font-weight: 800; letter-spacing: .08em; }
.route-stop::before { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--mango); box-shadow: 0 0 0 6px rgba(243,179,71,.18); }
.route-stop:not(:last-child)::after { content: ""; position: absolute; top: 5px; left: 15px; width: calc(100% - 18px); height: 2px; background: rgba(255,255,255,.42); }
.route-stop small { display: block; margin-top: 5px; color: #aebbd0; font-size: 11px; letter-spacing: 0; font-weight: 500; }
.hero-meta { position: relative; z-index: 1; display: flex; gap: 10px 24px; flex-wrap: wrap; color: #d8e1ec; font-size: 12px; }

.jump-nav { position: sticky; z-index: 10; top: 0; display: flex; overflow-x: auto; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(24,35,58,.08); }
.jump-nav a { flex: 1 0 auto; padding: 15px 18px; text-decoration: none; text-align: center; font-size: 13px; font-weight: 750; }
.jump-nav a small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 600; }
.jump-nav a:hover { color: var(--blue); background: #eef4fb; }

.section { margin-top: 18px; padding: 30px 36px; background: var(--paper); border: 1px solid var(--line); }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.04em; }
.section-heading h2 span { color: var(--muted); font-size: .55em; letter-spacing: -.01em; white-space: nowrap; }
.section-heading p { max-width: 760px; margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.critical-section { border-top: 6px solid var(--coral); }
.private-section { border-top: 6px solid var(--teal); }

.alert-list { display: grid; gap: 4px; }
.alert-item { display: grid; grid-template-columns: 82px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.alert-item:first-child { border-top: 0; }
.alert-level { color: var(--coral); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.alert-level.done { color: var(--teal); }
.alert-item h3 { margin: 0 0 5px; font-size: 18px; }
.alert-item p { margin: 0; color: var(--muted); line-height: 1.65; }

.day-section { padding-top: 36px; }
.day-list { border-left: 2px solid var(--navy); }
.day-item { position: relative; display: grid; grid-template-columns: 86px 1fr; gap: 18px; padding: 0 0 34px 26px; }
.day-item:last-child { padding-bottom: 0; }
.day-item::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 4px solid var(--blue); }
.flight-day::before { border-color: var(--coral); box-shadow: 0 0 0 6px rgba(197,79,61,.12); }
.flight-day .day-body { padding: 16px; background: #fff7ee; border: 1px solid #efc8b7; border-left: 6px solid var(--coral); box-shadow: 0 10px 26px rgba(197,79,61,.08); }
.day-date { color: var(--blue); font-weight: 850; }
.flight-day .day-date { color: var(--coral); }
.day-body h3 { margin: 0 0 10px; font-size: 21px; }
.day-body h3 span { color: var(--muted); font-weight: 600; }
.day-route { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.flight-priority { display: grid; gap: 5px; margin: 0 0 15px; padding: 14px 15px; color: white; background: var(--coral); border: 3px solid #8f2f24; box-shadow: 0 6px 0 #8f2f24; }
.flight-priority span { color: #ffe0b5; font-size: 11px; font-weight: 850; letter-spacing: .03em; }
.flight-priority strong { font-size: 17px; line-height: 1.45; }
.flight-priority small { color: #fff2e8; font-size: 11px; }
.route-place, .route-transport { border: 0; padding: 5px 8px; font: inherit; font-size: 13px; }
.route-place { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; cursor: pointer; color: #174d86; background: #e9f1fb; border-bottom: 1px solid #9ebbd8; font-weight: 760; }
.route-place small { color: #4e677f; font-size: 10px; font-weight: 650; }
.route-place:hover, .route-place:focus-visible { color: white; background: var(--blue); outline: none; }
.route-place:hover small, .route-place:focus-visible small { color: white; }
.route-transport { color: #59677a; background: #f0f2f3; }
.route-arrow, .route-slash { color: #98a2b3; font-size: 18px; }
.day-times { margin-top: 2px; }
.time-chip { display: inline-block; margin: 6px 6px 0 0; padding: 5px 8px; background: #e9f0f8; color: #2a4f78; font-size: 12px; font-weight: 750; }
.day-agenda { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.agenda-item { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.agenda-item time { color: var(--blue); font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; }
.agenda-item > div { min-width: 0; }
.agenda-item strong, .agenda-place { color: var(--ink); font-size: 13px; font-weight: 800; }
.agenda-place { padding: 0; cursor: pointer; background: transparent; border: 0; border-bottom: 1px solid #9ebbd8; text-align: left; }
.agenda-place:hover, .agenda-place:focus-visible { color: var(--blue); outline: 2px solid rgba(30,90,168,.25); outline-offset: 2px; }
.agenda-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.agenda-item.required { margin: 5px 0; background: #fff0e5; border: 1px solid #eab8a7; border-left: 5px solid var(--coral); }
.agenda-item.required time { color: #9f3225; font-size: 13px; }
.must-badge { display: inline-block; margin-left: 8px; padding: 2px 6px; color: white; background: var(--coral); font-size: 9px; font-weight: 850; vertical-align: 1px; }
.day-route-map { margin-top: 14px; padding: 13px; background: #f4f7fb; border: 1px solid #cbd7e5; }
.route-map-title { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.route-map-title strong { color: var(--navy); font-size: 13px; }
.route-map-title span { color: var(--muted); font-size: 10px; }
.nav-route + .nav-route { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #b9c6d4; }
.nav-route-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nav-route-head > span { color: var(--teal); font-size: 11px; font-weight: 800; }
.route-nav-link { flex: 0 0 auto; padding: 6px 9px; color: white; background: var(--blue); text-decoration: none; font-size: 10px; font-weight: 800; }
.route-nav-link:hover, .route-nav-link:focus-visible { background: var(--navy); outline: 3px solid rgba(30,90,168,.2); outline-offset: 2px; }
.route-trail { display: flex; overflow-x: auto; margin: 10px 0 0; padding: 0 0 5px; list-style: none; scrollbar-width: thin; }
.route-node { position: relative; flex: 1 0 132px; min-width: 0; padding: 0 18px 0 0; }
.route-node:not(:last-child)::after { content: ""; position: absolute; top: 10px; left: 24px; right: 4px; height: 2px; background: #91a8bf; }
.route-node-number { position: relative; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; color: white; background: var(--teal); border-radius: 50%; font-size: 10px; font-weight: 900; }
.route-node-place { display: block; width: 100%; margin-top: 7px; padding: 0; cursor: pointer; color: var(--ink); background: transparent; border: 0; text-align: left; }
.route-node-place strong { display: block; font-size: 11px; line-height: 1.35; }
.route-node-place small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.route-node-place:hover strong, .route-node-place:focus-visible strong { color: var(--blue); }
.route-node-place:focus-visible { outline: 2px solid rgba(30,90,168,.25); outline-offset: 2px; }
.nav-route-note { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.day-note { margin-top: 10px; color: var(--muted); }
.day-note summary { cursor: pointer; width: fit-content; color: var(--teal); font-size: 13px; font-weight: 760; }
.day-note p { max-width: 760px; margin: 8px 0 0; line-height: 1.65; }

.disclosure { padding-top: 24px; padding-bottom: 24px; }
.disclosure > summary { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary span { font-size: 23px; font-weight: 820; }
.disclosure > summary small { color: var(--muted); }
.disclosure > summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; }
.disclosure[open] > summary::after { content: "−"; }
.disclosure-note { margin: 22px 0 0; color: var(--muted); line-height: 1.65; }
.disclosure .flight-list, .disclosure .people-list, .disclosure .document-list { margin-top: 24px; }

.flight-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.flight-card { display: grid; grid-template-columns: 120px minmax(0,1fr) 220px; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.flight-no { color: var(--blue); font-size: 26px; font-weight: 900; }
.flight-card h3 { margin: 0 0 8px; font-size: 20px; }
.flight-card p { margin: 4px 0; color: var(--muted); line-height: 1.55; }
.flight-time { font-weight: 850; }
.status-block { padding-left: 18px; border-left: 3px solid var(--mango); }
.status-block strong { display: block; margin-bottom: 6px; }

.stay-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stay-card { position: relative; padding: 24px; background: #f7f8f5; border-left: 5px solid var(--teal); }
.stay-card h3 { margin: 0 0 4px; font-size: 21px; }
.stay-card p { margin: 6px 0; color: var(--muted); line-height: 1.58; }
.stay-date { color: var(--teal) !important; font-weight: 800; }
.stay-badge { position: absolute; top: 18px; right: 18px; color: var(--teal); font-size: 12px; font-weight: 850; }

.people-list { overflow-x: auto; }
.people-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.people-table th, .people-table td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.people-table th { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.people-table td:first-child { font-weight: 850; }

.location-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.location-card { padding: 22px; border: 1px solid var(--line); background: white; }
.location-card h3 { margin: 0 0 3px; font-size: 18px; }
.location-kind { color: var(--teal); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.location-name, .location-address { margin: 13px 0 0; overflow-wrap: anywhere; line-height: 1.55; }
.location-address { color: var(--muted); }
.location-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.copy-button, .map-link { display: inline-flex; align-items: center; min-height: 38px; padding: 9px 11px; text-decoration: none; font-size: 12px; font-weight: 750; }
.copy-button { color: var(--blue); background: #eef4fb; }
.map-link { color: white; background: var(--blue); }

.place-dialog { width: min(620px, calc(100% - 28px)); max-height: min(82vh, 760px); padding: 30px; color: var(--ink); background: var(--paper); border: 0; border-top: 7px solid var(--mango); box-shadow: 0 24px 80px rgba(12, 22, 39, .34); }
.place-dialog::backdrop { background: rgba(11, 21, 37, .72); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; cursor: pointer; color: var(--muted); background: transparent; border: 0; font-size: 28px; }
.place-kind { margin: 0 44px 6px 0; color: var(--teal); font-size: 12px; font-weight: 800; }
.place-dialog h2 { margin: 0 40px 8px 0; font-size: clamp(27px, 5vw, 38px); letter-spacing: -.04em; }
.place-name { margin: 18px 0 0; font-size: 18px; font-weight: 780; line-height: 1.45; overflow-wrap: anywhere; }
.field-label { margin: 18px 0 0; color: var(--teal); font-size: 11px; font-weight: 800; }
.field-label + .place-name, .field-label + .place-address { margin-top: 5px; }
.place-address { margin: 10px 0 0; color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; }
.place-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.place-context { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.place-context:empty { display: none; }
.place-context h3 { margin: 0 0 12px; font-size: 15px; }
.stay-mini + .stay-mini { margin-top: 14px; }
.stay-mini strong { color: var(--teal); font-size: 12px; }
.stay-mini p { margin: 5px 0 0; color: var(--muted); line-height: 1.55; }
.stay-mini .stay-policy { color: #8f2f24; font-weight: 760; }
.communication-line { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.communication-line span { padding: 4px 7px; color: white; background: var(--teal); font-size: 11px; font-weight: 800; }
.communication-line p { margin: 0; line-height: 1.65; }

.document-list { display: grid; gap: 8px; }
.document-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.document-kind { color: var(--teal); font-size: 12px; font-weight: 850; }
.document-item strong { overflow-wrap: anywhere; }
.document-item a { padding: 8px 10px; color: white; background: var(--navy); text-decoration: none; font-size: 12px; font-weight: 800; }

footer { padding: 30px 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 26px; transform: translate(-50%, 16px); padding: 11px 16px; color: white; background: var(--navy); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .lock-card { grid-template-columns: 1fr; gap: 24px; padding: 34px 24px; }
  .lock-mark { width: 94px; font-size: 26px; }
  .password-row { flex-direction: column; }
  .app-shell { padding: 0 0 52px; }
  .hero { padding: 32px 20px 30px; }
  .hero-top { display: block; }
  .hero-actions { justify-content: flex-start; margin-top: 24px; }
  .route-line { grid-template-columns: repeat(5, minmax(70px, 1fr)); overflow-x: auto; padding-bottom: 10px; }
  .route-stop small { display: none; }
  .jump-nav { padding-left: 4px; }
  .section { margin-top: 10px; padding: 30px 20px; border-left: 0; border-right: 0; }
  .alert-item { grid-template-columns: 62px 1fr; gap: 12px; }
  .day-item { grid-template-columns: 58px 1fr; gap: 10px; padding-left: 18px; }
  .flight-day .day-body { padding: 13px 12px; }
  .flight-priority { box-shadow: 0 4px 0 #8f2f24; }
  .day-body h3 span { display: block; margin-top: 3px; }
  .agenda-item { grid-template-columns: 78px 1fr; gap: 8px; padding-left: 6px; padding-right: 4px; }
  .route-map-title { display: block; }
  .route-map-title span { display: block; margin-top: 3px; }
  .route-node { flex-basis: 116px; }
  .flight-card { grid-template-columns: 92px 1fr; gap: 12px; }
  .status-block { grid-column: 2; }
  .stay-list, .location-list { grid-template-columns: 1fr; }
  .document-item { grid-template-columns: 88px 1fr; }
  .document-item a { grid-column: 2; justify-self: start; }
  .place-dialog { padding: 26px 20px; }
}

@media print {
  :root { background: white; }
  body { background: white; }
  .app-shell { width: 100%; padding: 0; }
  .hero { break-after: avoid; }
  .hero-actions, .jump-nav, .copy-button, .map-link, .toast, .place-dialog { display: none !important; }
  .section { break-inside: avoid; margin-top: 10px; padding: 20px 24px; }
  .document-item a { display: none; }
}
