@font-face {
  font-family: "IBM Plex Sans Thai Looped";
  src: url("fonts/IBMPlexSansThaiLooped-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Thai Looped";
  src: url("fonts/IBMPlexSansThaiLooped-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Thai Looped";
  src: url("fonts/IBMPlexSansThaiLooped-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Thai Looped";
  src: url("fonts/IBMPlexSansThaiLooped-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("fonts/NotoSansSC-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #173b38;
  --muted: #657572;
  --paper: #f5f3ec;
  --line: #dedfd5;
  --orange: #bc5733;
  --soft: #e8ede5;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.75 "IBM Plex Sans Thai Looped",
    "Noto Sans SC",
    system-ui,
    -apple-system,
    sans-serif;
  overflow-wrap: break-word;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
}
button,
a,
input {
  outline-offset: 5px;
}
header,
main,
footer {
  max-width: 1160px;
  margin: auto;
  padding: 0 32px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 750;
}
button {
  cursor: pointer;
}
.print {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 18px;
  color: var(--ink);
}
.hero {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.eyebrow {
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 750;
}
h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.15;
  letter-spacing: -2px;
  margin: 12px 0 22px;
}
h1 span {
  font-size: 0.45em;
  letter-spacing: 0;
  display: block;
  margin-top: 16px;
  font-weight: 450;
}
.lede {
  color: var(--muted);
  max-width: 590px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
}
.art {
  background: #e3e8dd;
  border-radius: 150px 150px 20px 20px;
  overflow: hidden;
  min-height: 270px;
  position: relative;
}
.art svg {
  width: 100%;
  height: 300px;
  display: block;
}
.art small {
  position: absolute;
  bottom: 20px;
  left: 24px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #f5f3ec;
}
.nav {
  display: flex;
  gap: 26px;
  padding: 15px 0;
  border-block: 1px solid var(--line);
  margin-bottom: 40px;
  overflow: auto;
}
.nav a {
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}
section {
  margin: 0 0 48px;
}
h2 {
  font-size: 26px;
  margin: 0 0 22px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
p {
  margin: 0 0 14px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.caption,
.note {
  font-size: 13px;
  color: var(--muted);
}
.days {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.daybtn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 9px 19px;
  border-radius: 8px;
}
.daybtn[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.daypanel {
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
}
.day-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.day-title p {
  color: var(--muted);
  font-size: 14px;
}
.pill {
  display: inline-block;
  align-self: flex-start;
  flex-shrink: 0;
  border-radius: 30px;
  padding: 5px 12px;
  background: var(--soft);
  font-size: 12px;
}
.pending {
  background: #f9ead2;
  color: #855625;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  position: relative;
  padding: 0 0 24px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.time {
  font-size: 14px;
  color: var(--orange);
  font-weight: 700;
}
.event {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.event p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.stay {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
  font-size: 14px;
}
.alert {
  background: #f8ecdc;
  border-left: 3px solid #c58d46;
  padding: 14px 18px;
  font-size: 13px;
  border-radius: 0 8px 8px 0;
  margin-top: 20px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  background: #fffef9;
  border-radius: 12px;
  padding: 24px;
}
.flight-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}
.airport {
  font-size: 13px;
  color: var(--muted);
}
.clock {
  display: block;
  font-size: 32px;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 700;
}
.plane {
  color: var(--muted);
  font-size: 21px;
}
.flight-note {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
}
.hotelname {
  font-size: 18px;
  line-height: 1.5;
}
.hotel-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 14px;
}
.hotel-row strong {
  display: block;
}
.hotel-row span {
  color: var(--muted);
  font-size: 12px;
}
.budget {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}
.budget-total {
  background: var(--ink);
  border-radius: 14px;
  color: #f5f3ec;
  padding: 28px;
}
.total {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 12px 0;
}
.budget-total .caption {
  color: #c9d9ce;
}
.controls {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.controls label {
  font-size: 12px;
  color: #c9d9ce;
  flex: 1;
}
.controls input {
  width: 100%;
  margin-top: 5px;
  background: #ffffff12;
  color: white;
  border: 1px solid #ffffff40;
  padding: 8px 10px;
  border-radius: 6px;
  min-width: 90px;
}
.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.budget-table td,
.budget-table th {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.budget-table th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.budget-table td:last-child,
.budget-table th:last-child {
  text-align: right;
}
.budget-table input {
  width: 120px;
  max-width: 100%;
  text-align: right;
  border: 1px solid var(--line);
  padding: 7px;
  background: #fffef9;
  border-radius: 6px;
  color: var(--ink);
}
.included {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 20px;
}
.included ul {
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 14px;
}
.check input {
  accent-color: var(--ink);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}
.check:has(input:checked) span {
  text-decoration: line-through;
  color: var(--muted);
}
footer {
  padding-top: 25px;
  padding-bottom: 35px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.sources {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header,
  main,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
  }
  .art {
    display: none;
  }
  .grid2,
  .budget,
  .included,
  .checks {
    grid-template-columns: 1fr;
  }
  .daypanel {
    padding: 22px 18px;
  }
  .day-title {
    display: block;
  }
  .timeline li {
    grid-template-columns: 75px 1fr;
    gap: 8px;
  }
  .event {
    padding-left: 14px;
  }
  .section-top {
    display: block;
  }
  .nav {
    gap: 22px;
  }
  .total {
    font-size: 38px;
  }
  .hotel-row {
    gap: 10px;
  }
  .daybtn {
    padding: 9px 14px;
  }
  h2 {
    font-size: 24px;
  }
}
@media print {
  body {
    background: white;
    font-size: 11px;
  }
  header,
  main,
  footer {
    max-width: none;
    padding: 0;
  }
  .top,
  .art,
  .nav,
  .print,
  .days,
  .controls {
    display: none;
  }
  .hero {
    display: block;
    padding: 12px 0;
  }
  h1 {
    font-size: 32px;
  }
  h1 span {
    font-size: 18px;
  }
  .daypanel[hidden] {
    display: block !important;
  }
  .daypanel {
    margin-bottom: 12px;
    padding: 16px;
    break-inside: avoid;
  }
  .budget-total {
    background: #eee;
    color: #173b38;
  }
  .budget-total .caption {
    color: #52625c;
  }
  section {
    margin-bottom: 20px;
  }
  .timeline li {
    padding-bottom: 10px;
  }
  .grid2 {
    gap: 12px;
  }
  .card {
    padding: 16px;
    break-inside: avoid;
  }
  .check {
    padding: 6px 0;
  }
  .budget-table input {
    border: 0;
  }
  .sources {
    display: block;
  }
  a {
    text-decoration: none;
  }
  .alert {
    break-inside: avoid;
  }
  footer {
    margin-top: 20px;
  }
}

/* Minimal editorial theme */
:root {
  --ink: #242626;
  --muted: #737777;
  --paper: #ffffff;
  --line: #e8eaea;
  --orange: #505858;
  --soft: #f3f4f4;
}
body {
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
header,
main,
footer {
  max-width: 1040px;
  padding-left: 36px;
  padding-right: 36px;
}
.top {
  padding: 22px 0;
}
.brand {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: var(--muted);
}
.print {
  font-size: 12px;
  border-radius: 4px;
  padding: 7px 12px;
  background: white;
}
.hero {
  padding: 46px 0 32px;
  gap: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #909595;
  font-weight: 500;
}
h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: -1.4px;
  line-height: 1.35;
  margin: 10px 0 18px;
}
h1 span {
  font-size: 20px;
  letter-spacing: 0;
  font-weight: 400;
  margin-top: 8px;
  color: #737777;
}
.lede {
  font-size: 14px;
  max-width: 660px;
}
.tags {
  gap: 0;
  margin-top: 20px;
}
.tag {
  border: 0;
  border-radius: 0;
  padding: 0 15px;
  font-size: 11px;
  color: #737777;
}
.tag:first-child {
  padding-left: 0;
}
.tag + .tag {
  border-left: 1px solid var(--line);
}
.nav {
  gap: 24px;
  padding: 16px 0;
  margin-bottom: 32px;
  border-top: 0;
}
.nav a {
  font-size: 12px;
  color: #737777;
}
.nav a:hover {
  color: #111;
}
section {
  margin-bottom: 52px;
}
h2 {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.4px;
  margin-bottom: 20px;
}
h3 {
  font-size: 16px;
  font-weight: 550;
}
.caption,
.note {
  font-size: 12px;
  line-height: 1.8;
}
.section-top {
  gap: 24px;
}
.section-top > .caption {
  max-width: 420px;
}
.days {
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.daybtn {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 2px;
  font-size: 14px;
  color: #909595;
}
.daybtn[aria-selected="true"] {
  background: transparent;
  color: #202424;
  border-color: #202424;
  font-weight: 600;
}
.daypanel {
  background: white;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.day-title {
  margin-bottom: 22px;
}
.day-title p {
  font-size: 12px;
}
.pill {
  border-radius: 4px;
  background: #f3f4f4;
  font-size: 10px;
  color: #626969;
  padding: 4px 9px;
}
.pending {
  background: #f6f4ef;
  color: #786d52;
}
.timeline li {
  grid-template-columns: 115px 1fr;
  gap: 16px;
  padding-bottom: 24px;
}
.time {
  font-size: 12px;
  font-weight: 500;
  color: #697170;
}
.event {
  padding-left: 22px;
}
.event p {
  font-size: 13px;
}
.stay {
  font-size: 12px;
  padding-top: 16px;
}
.alert {
  background: #f7f8f8;
  border-left: 2px solid #cdd2d1;
  border-radius: 0;
  padding: 15px 18px;
  font-size: 12px;
  color: #616968;
  line-height: 1.9;
}
.alert strong {
  color: #343b39;
  font-weight: 550;
}
.grid2 {
  gap: 30px;
}
.card {
  background: white;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 0;
}
.flight-head {
  font-size: 12px;
}
.clock {
  font-size: 30px;
  font-weight: 500;
}
.plane {
  font-size: 18px;
  color: #a4aaa8;
}
.hotelname {
  font-size: 17px;
}
.hotel-row {
  font-size: 13px;
}
.hotel-row strong {
  font-weight: 550;
}
.budget {
  gap: 34px;
}
.budget-total {
  background: #f7f8f8;
  border-radius: 0;
  color: var(--ink);
  padding: 24px;
}
.total {
  font-size: 36px;
  font-weight: 550;
  letter-spacing: -1.5px;
}
.budget-total .caption,
.controls label {
  color: var(--muted);
}
.controls input {
  background: white;
  color: var(--ink);
  border: 1px solid #e0e4e2;
  border-radius: 3px;
  font-size: 14px;
}
.budget-table {
  font-size: 13px;
}
.budget-table td,
.budget-table th {
  padding: 13px 8px;
}
.budget-table th {
  font-size: 11px;
}
.budget-table input {
  background: white;
  border-radius: 3px;
  font-size: 13px;
}
.included {
  gap: 30px;
  margin-top: 30px;
}
.included ul {
  font-size: 13px;
  padding-left: 18px;
}
.check {
  font-size: 13px;
  padding: 13px 0;
  gap: 10px;
}
.check input {
  width: 15px;
  height: 15px;
  margin-top: 5px;
}
.checks {
  gap: 0 30px;
}
.sources {
  gap: 10px 20px;
}
.sources a {
  font-size: 11px;
  text-underline-offset: 3px;
  color: #737777;
}
footer {
  font-size: 11px;
}
#running img {
  border-radius: 3px !important;
  max-height: 780px;
  object-fit: contain;
}
.budget-table td {
  vertical-align: top;
}
@media (max-width: 700px) {
  header,
  main,
  footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .hero {
    padding-top: 30px;
    padding-bottom: 24px;
  }
  h1 {
    font-size: 36px;
  }
  h1 span {
    font-size: 18px;
  }
  .nav {
    gap: 22px;
  }
  .section-top {
    display: block;
  }
  .section-top > .caption {
    max-width: none;
  }
  .day-title {
    display: block;
  }
  .day-title .pill {
    margin-bottom: 14px;
  }
  .timeline li {
    grid-template-columns: 88px 1fr;
    gap: 6px;
  }
  .event {
    padding-left: 14px;
  }
  .daypanel {
    padding: 0;
  }
  .days {
    gap: 23px;
  }
  .grid2,
  .budget,
  .included,
  .checks {
    grid-template-columns: 1fr;
  }
  .grid2 {
    gap: 14px;
  }
  .budget-total {
    padding: 22px;
  }
  .total {
    font-size: 34px;
  }
  section {
    margin-bottom: 38px;
  }
  h2 {
    font-size: 21px;
  }
}
@media print {
  header,
  main,
  footer {
    padding: 0;
  }
  .hero {
    padding: 10px 0;
  }
  h1 {
    font-size: 30px;
  }
  .card,
  .daypanel {
    padding: 14px 0;
  }
  .budget-total {
    background: #f7f8f8;
    color: #242626;
  }
  .budget-total .caption {
    color: #737777;
  }
  section {
    margin-bottom: 24px;
  }
}

#hotels .grid2 > .card {
  display: flex;
  flex-direction: column;
}
#hotels .flight-note {
  margin-top: auto;
  padding-top: 16px;
}
.hotel-row > div:last-child {
  text-align: right;
  flex-shrink: 0;
}
:root {
  --ink: #111111;
  --muted: #555555;
  --paper: #fafafa;
  --line: #e2e2e2;
  --orange: #111111;
  --soft: #efefef;
  --surface: #ffffff;
  --accent: #111111;
  --glow: transparent;
  --field: #ffffff;
}
html[data-theme="dark"] {
  --ink: #f4f4f4;
  --muted: #a3a3a3;
  --paper: #0a0a0a;
  --line: #262626;
  --orange: #f4f4f4;
  --soft: #1a1a1a;
  --surface: #121212;
  --accent: #ffffff;
  --glow: transparent;
  --field: #1a1a1a;
  color-scheme: dark;
}
body {
  background: var(--paper);
  transition:
    background-color 0.3s,
    color 0.3s;
}
header,
main,
footer {
  max-width: 1120px;
}
.top {
  border-color: var(--line);
  gap: 14px;
}
.brand {
  color: var(--muted);
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.print,
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 30px;
  padding: 8px 15px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
#imm-toggle[aria-pressed="true"] {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.hero {
  position: relative;
  padding: 36px 0 24px;
}
.eyebrow {
  color: var(--accent);
  font-weight: 650;
}
h1 {
  font-size: clamp(39px, 6vw, 66px);
  letter-spacing: -1.7px;
}
h1 span {
  color: var(--muted);
}
.lede {
  color: var(--muted);
}
.tags {
  gap: 8px;
}
.tag,
.tag:first-child {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  color: var(--muted);
}
.tag + .tag {
  border-left: 1px solid var(--line);
}
.nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 10px;
  box-shadow: 0 8px 30px #0000000d;
  gap: 6px;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.nav a:hover,
.nav a.active {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
main > section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
main > section:first-of-type {
  border-top: 0;
  padding-top: 12px;
}
main > section h2 {
  font-size: clamp(24px, 3.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.4px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  line-height: 1.25;
}
.section-top {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.section-top h2 {
  margin-bottom: 0;
}
.days {
  gap: 8px;
  border: 0;
  padding: 4px;
  background: var(--soft);
  border-radius: 14px;
  width: max-content;
  max-width: 100%;
}
.daybtn {
  border: 0;
  border-radius: 10px;
  padding: 10px 19px;
  color: var(--muted);
  transition:
    background 0.2s,
    transform 0.2s;
}
.daybtn:hover {
  transform: translateY(-2px);
}
.daybtn[aria-selected="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 3px 10px #00000014;
}
.daypanel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  animation: panel-in 0.3s ease both;
}
.daypanel[hidden] {
  animation: none;
}
.pill {
  border-radius: 30px;
  background: var(--soft);
  color: var(--accent);
}
.pending {
  background: #e5e5e5;
  color: #333333;
}
html[data-theme="dark"] .pending {
  background: #262626;
  color: #d4d4d4;
}
.event {
  position: relative;
  border-left: 2px solid var(--line);
}
.time {
  color: var(--accent);
  font-weight: 650;
}
.event h3 {
  font-weight: 600;
}
.daybtn.is-today::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  vertical-align: middle;
}
.timeline li.is-done {
  opacity: 0.52;
}
.timeline li.is-active .event {
  border-left-color: #22c55e;
}
.timeline li.is-active .event::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px #22c55e33;
  animation: live-pulse 2s ease-in-out infinite;
}
.timeline li.is-active .time {
  color: #16a34a;
}
html[data-theme="dark"] .timeline li.is-active .time {
  color: #4ade80;
}
@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px #22c55e33;
  }
  50% {
    box-shadow: 0 0 0 8px #22c55e14;
  }
}
.copy-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.copy-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.copy-btn:hover {
  border-color: var(--accent);
}
.copy-btn code {
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.copy-btn.is-copied {
  border-color: #22c55e;
}
.copy-btn.is-copied code {
  color: #16a34a;
}
html[data-theme="dark"] .copy-btn.is-copied code {
  color: #4ade80;
}
.weather-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
}
.weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
a.weather-pill {
  color: var(--muted);
  background: transparent;
}
a.weather-pill:hover {
  color: var(--ink);
  border-color: var(--accent);
}
#open-bus-modal {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
}
.inline-bus-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.inline-bus-btn:hover {
  border-color: var(--accent);
}
a[href*="surl.amap.com"],
.timeline a[href^="docs/"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  vertical-align: middle;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
a[href*="surl.amap.com"]:hover,
.timeline a[href^="docs/"]:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.bus-modal {
  width: min(92vw, 480px);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 50px #00000040;
}
.bus-modal::backdrop {
  background: #00000080;
  backdrop-filter: blur(4px);
}
.bus-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.bus-modal-head h3 {
  margin: 0;
}
.bus-sign-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  margin-bottom: 14px;
}
.bus-sign-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.bus-sign-sub {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}
.pdf-modal {
  width: min(95vw, 820px);
}
.pdf-modal-frame {
  width: 100%;
  height: min(72vh, 640px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: block;
}
.alert {
  background: var(--soft);
  color: var(--muted);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.alert strong {
  color: var(--ink);
}
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.grid2 > .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #00000014;
}
.clock {
  color: var(--ink);
}
.plane {
  color: var(--accent);
}
.budget-total {
  background: linear-gradient(140deg, #1f1f1f, #0a0a0a);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 30px #0000001f;
}
html[data-theme="dark"] .budget-total {
  background: linear-gradient(140deg, #1c1c1c, #111111);
  border: 1px solid #303030;
}
.budget-total .caption,
.controls label {
  color: #cccccc;
}
.controls input {
  background: #ffffff17;
  color: #fff;
  border-color: #ffffff55;
}
.budget-table input {
  background: var(--field);
  color: var(--ink);
  border-color: var(--line);
}
.budget-table th,
.sources a {
  color: var(--muted);
}
.total {
  font-size: 40px;
}
.check input {
  accent-color: var(--accent);
}
.check {
  transition: color 0.2s;
}
.check:hover {
  color: var(--accent);
}
footer {
  border-color: var(--line);
}
#running img {
  border-radius: 10px !important;
}
.progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  background: var(--accent);
  width: 0;
  z-index: 100;
  pointer-events: none;
}
@keyframes panel-in {
  from {
    opacity: 0.35;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  header,
  main,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero {
    padding-top: 32px;
  }
  h1 {
    font-size: 40px;
  }
  .brand {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .top-actions {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .print,
  .theme-toggle {
    font-size: 11px;
    padding: 6px 10px;
  }
  .nav {
    top: 6px;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
  }
  .daybtn {
    padding: 10px 14px;
  }
  .daypanel {
    padding: 20px 16px;
  }
  .card {
    padding: 20px 16px;
  }
  .timeline li {
    grid-template-columns: 86px 1fr;
  }
  .grid2 > .card:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .daybtn:hover,
  .grid2 > .card:hover {
    transform: none;
  }
}
@media print {
  @page {
    margin: 10mm;
  }
  body {
    background: #fff !important;
    color: #111;
    font-size: 11px;
    line-height: 1.4;
  }
  header,
  main {
    padding: 0 !important;
    max-width: 100%;
  }
  .top,
  .top-actions,
  .nav,
  .days,
  .progress,
  #trip-countdown,
  #weather,
  #running,
  #docs,
  #links,
  #open-bus-modal,
  .inline-bus-btn,
  .weather-strip,
  .alert,
  .included,
  #quick-info .grid2 > article:first-child,
  footer {
    display: none !important;
  }
  .hero {
    padding: 0 0 8px !important;
  }
  h1 {
    font-size: 20px !important;
    margin: 0 !important;
  }
  main > section {
    padding-top: 10px !important;
    margin-bottom: 12px !important;
  }
  main > section h2 {
    font-size: 14px !important;
    margin-bottom: 6px !important;
    border-left-width: 3px;
    padding-left: 8px;
  }
  .section-top {
    padding-bottom: 4px !important;
    margin-bottom: 8px !important;
  }
  .daypanel[hidden] {
    display: block !important;
  }
  #panels {
    display: grid;
    gap: 8px;
  }
  .daypanel,
  .card {
    background: #fff;
    border-color: #ccc;
    color: #111;
    box-shadow: none;
    animation: none;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    break-inside: avoid;
  }
  .day-title {
    margin-bottom: 6px !important;
  }
  .timeline li {
    grid-template-columns: 76px 1fr !important;
    gap: 8px !important;
    padding-bottom: 5px !important;
  }
  .event {
    padding-left: 10px !important;
  }
  .event h3,
  .event p {
    font-size: 11px !important;
    margin: 0;
  }
  .stay {
    padding-top: 6px !important;
    font-size: 10px !important;
  }
  .grid2 {
    gap: 8px !important;
  }
  .clock {
    font-size: 16px !important;
  }
  .alert strong,
  .event h3,
  .clock,
  .time {
    color: #111;
  }
  .caption,
  .note,
  .event p,
  .flight-head {
    color: #444;
  }
}
