/* Sunset theme for the Bali trip page. Readability first: warm light background,
   very dark ink, big type (default XL), nothing smaller than 0.8rem. */
:root {
  --cream: #fff7ee;
  --card: #ffffff;
  --ink: #2a1710;
  --muted: #55403a;
  --line: #f0dcc8;
  --coral: #ff6a3d;
  --coral-d: #b4390e;
  --amber: #ffb03b;
  --rose: #e23e6b;
  --violet: #7a2e8e;
  --dusk: #2b123f;
  --link: #9a3412;
  --sunset: linear-gradient(135deg, #ff6a3d 0%, #e23e6b 55%, #7a2e8e 100%);
  --sunset-deep: linear-gradient(135deg, #c2410c 0%, #be185d 55%, #6d28d9 100%);
  --shadow: 0 10px 30px rgba(43, 18, 63, .12);
  --tabs-h: 4.6rem;
  --top-h: 5.7rem;
  --stick: 10.4rem;
}
@media (min-width: 900px) { :root { --top-h: 3.6rem; --stick: 12rem; } }
html { font-size: 27px; -webkit-text-size-adjust: 100%; }
html[data-size="s"] { font-size: 19px; }
html[data-size="m"] { font-size: 22px; }
html[data-size="l"] { font-size: 24px; }
html[data-size="xl"] { font-size: clamp(24px, 4vw + 9px, 27px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5; padding-bottom: calc(var(--tabs-h) + 1.5rem);
  overflow-wrap: anywhere;
}
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .1em; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: .3rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: #ffeadb; border: 1px solid #f5cfb4; border-radius: .4rem; padding: 0 .35rem; font-size: .9em; cursor: copy; }
[hidden] { display: none !important; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; min-height: 3.6rem; background: rgba(43, 18, 63, .97); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; padding: .55rem 1rem; }
.brand { color: #fff; text-decoration: none; font-weight: 900; font-size: 1.05rem; }
.brand span { color: var(--amber); font-style: italic; }
.trips { display: flex; gap: .3rem; overflow-x: auto; flex: 1 1 100%; order: 3; }
.trips a { color: #fff; text-decoration: none; padding: .35rem .9rem; border-radius: 999px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.trips a[aria-current] { background: var(--sunset-deep); }
.tools { margin-left: auto; display: flex; gap: .4rem; }
.tools button { min-width: 2.6rem; min-height: 2.4rem; border-radius: .8rem; border: 2px solid rgba(255,255,255,.55); background: transparent; color: #fff; font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; }
.tools button:hover { background: rgba(255,255,255,.18); }
@media (min-width: 900px) { .trips { flex: 0 1 auto; order: 0; } }

/* Hero */
.hero { position: relative; color: #fff; min-height: 30rem; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(43,18,63,0) 0%, rgba(43,18,63,.3) 50%, rgba(43,18,63,.88) 100%), var(--photo) center/cover; }
.hero-in { width: 100%; max-width: 62rem; margin: 0 auto; padding: 3rem 1.1rem 1.8rem; }
.eyebrow { margin: 0; font-weight: 800; letter-spacing: .04em; font-size: .9rem; color: #ffd79a; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero h1 { margin: .1rem 0; font-size: clamp(4.4rem, 22vw, 8rem); line-height: .95; font-weight: 900; text-shadow: 0 3px 18px rgba(0,0,0,.5); }
.dates { margin: 0 0 .7rem; font-size: 1.35rem; font-weight: 800; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); border-radius: 999px; padding: .25rem .9rem; font-weight: 700; font-size: .9rem; }
.count { display: flex; align-items: baseline; gap: .7rem; margin: .4rem 0 .8rem; }
.count .num { font-size: 4.6rem; line-height: 1; font-weight: 900; color: var(--amber); text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.count .lbl { font-size: 1.3rem; font-weight: 800; }
.next { display: block; background: var(--next-bg); color: var(--on-surface); text-decoration: none; border-radius: 1.1rem; padding: .8rem 1rem; font-weight: 700; box-shadow: var(--shadow); border: 2px solid var(--next-border); }
.next small { display: block; font-size: .85rem; color: var(--next-eyebrow); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }

/* Tabs: bottom bar on phones, sticky pills on wide screens */
.tabs { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--tab-bg); border-top: 3px solid var(--tab-line); box-shadow: var(--tab-shadow); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem; min-height: var(--tabs-h); border: 0; background: transparent; color: var(--tab-fg); font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
.tabs button i { font-style: normal; font-size: 1.5rem; line-height: 1; }
.tabs button[aria-selected="true"] { color: #fff; background: var(--active-grad); }
.tabs em { position: absolute; top: .3rem; right: 18%; background: #be185d; color: #fff; font-style: normal; font-size: .8rem; min-width: 1.4rem; height: 1.4rem; line-height: 1.4rem; border-radius: 999px; text-align: center; }
.tabs button[aria-selected="true"] em { background: #fff; color: #be185d; }
@media (min-width: 900px) {
  body { padding-bottom: 2rem; }
  .tabs { position: sticky; top: calc(var(--top-h) + .3rem); bottom: auto; left: auto; right: auto; max-width: 62rem; margin: -1.6rem auto 0; border: 0; border-radius: 1.2rem; overflow: hidden; }
  .tabs button { flex-direction: row; gap: .5rem; min-height: 3.6rem; font-size: .95rem; }
  .tabs button i { font-size: 1.2rem; }
  .tabs em { position: static; margin-left: .3rem; }
}

main { max-width: 62rem; margin: 0 auto; padding: 0 1rem 2rem; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1.6rem; }
.sec-head h2 { margin: 0; font-size: 2rem; font-weight: 900; }
.lead { font-size: 1.05rem; color: var(--muted); margin: .3rem 0 1rem; }
.switch { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: .9rem; cursor: pointer; }
.switch input { width: 1.6rem; height: 1.6rem; accent-color: var(--coral); }

/* Day pills */
.pills { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 0 .9rem; position: sticky; top: var(--top-h); z-index: 20; background: linear-gradient(var(--cream) 80%, transparent); }
@media (min-width: 900px) { .pills { top: calc(var(--top-h) + 4rem); } }
.pills a { flex: 0 0 auto; min-width: 3.7rem; text-align: center; text-decoration: none; color: var(--chip-fg); background: var(--chip-bg); border: 2px solid var(--chip-border); border-radius: 1rem; padding: .3rem .4rem; }
.pills a b { display: block; font-size: 1.35rem; line-height: 1.15; font-weight: 900; }
.pills a span { font-size: .8rem; font-weight: 800; color: var(--muted); }
.pills a.on { background: var(--active-grad); color: #fff; border-color: var(--chip-active-border); }
.pills a.on span { color: #fff; }

/* Day card */
.day { background: var(--card); border-radius: 1.4rem; box-shadow: var(--shadow); margin: 1.4rem 0; overflow: hidden; scroll-margin-top: var(--stick); }
.day.today { outline: 4px solid var(--amber); }
.day-head { position: relative; color: #fff; min-height: 13rem; padding: 3rem 1.1rem 1.1rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem;
  background: linear-gradient(180deg, rgba(43,18,63,0) 0%, rgba(43,18,63,.28) 42%, rgba(43,18,63,.9) 100%), var(--photo) center/cover; }
.day-top { position: absolute; top: .8rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.day-num b { font-size: 3.8rem; line-height: 1; font-weight: 900; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.day-num span { display: block; letter-spacing: .06em; font-size: .85rem; font-weight: 800; }
.day-head h3 { margin: .1rem 0 0; font-size: 1.3rem; line-height: 1.25; font-weight: 900; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.day-head h3 a { color: #ffe3b3; }
.place { margin: 0; font-size: .95rem; font-weight: 700; color: #fff2dc; }
.wx { background: rgba(255,255,255,.92); color: var(--ink); border-radius: 999px; padding: .1rem .7rem; font-weight: 800; font-size: .8rem; }
.wx:empty { display: none; }
.day-body { padding: .4rem 1.1rem 1.1rem; }
.badge { display: inline-block; border-radius: 999px; padding: .1rem .75rem; font-weight: 900; font-size: .8rem; white-space: nowrap; }
.badge.booked { background: #ddf3e4; color: #0f4423; }
.badge.open { background: #ffe1d2; color: #7c2d12; }
.badge.info { background: #fff1c2; color: #6b3a0a; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 7.4rem 1fr; gap: .2rem .8rem; padding: .75rem .3rem; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.when { font-weight: 900; color: var(--coral-d); font-size: .95rem; }
.what { font-size: 1rem; }
.ico { margin-right: .3rem; }
.step.pending { background: #fff1e6; border-left: 6px solid var(--coral); border-radius: .6rem; padding-left: .7rem; margin: .25rem 0; }
.tobook { display: inline-block; margin-left: .5rem; background: var(--coral-d); color: #fff; border-radius: 999px; padding: 0 .6rem; font-size: .8rem; font-weight: 900; }
.who { background: var(--dusk); color: #fff; border-radius: .4rem; padding: 0 .35rem; font-size: .85rem; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; } }
.day-links { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.day-links a { display: inline-block; background: var(--dusk); color: #fff; text-decoration: none; border-radius: 999px; padding: .35rem 1rem; font-weight: 800; font-size: .9rem; }

/* Refs */
details.refs { margin-top: .8rem; background: #fff7ee; border: 2px solid var(--line); border-radius: 1rem; }
details.refs > summary { list-style: none; cursor: pointer; padding: .75rem 1rem; font-weight: 900; font-size: 1rem; }
details.refs > summary::-webkit-details-marker { display: none; }
details.refs summary em { font-style: normal; background: var(--coral-d); color: #fff; border-radius: 999px; padding: 0 .55rem; font-size: .85rem; margin-left: .3rem; }
.ref-list { padding: 0 1rem 1rem; display: grid; gap: .6rem; }
.ref { background: #fff; border: 1px solid var(--line); border-radius: .8rem; padding: .6rem .8rem; font-size: .95rem; }
.ref b { display: block; color: var(--coral-d); font-size: .9rem; }

/* Do now */
.group { margin: 1.6rem 0; }
.group h3 { margin: 0; font-size: 1.5rem; font-weight: 900; }
.sub { margin: .1rem 0 .6rem; color: var(--muted); font-size: .95rem; }
.todo { display: flex; gap: .9rem; background: #fff; border-radius: 1.1rem; padding: 1rem; margin: .7rem 0; box-shadow: var(--shadow); cursor: pointer; }
.todo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { flex: 0 0 2.1rem; width: 2.1rem; height: 2.1rem; border: 3px solid var(--coral); border-radius: .6rem; margin-top: .15rem; display: grid; place-items: center; color: #fff; font-weight: 900; }
.todo input:checked + .box { background: var(--sunset-deep); border-color: transparent; }
.todo input:checked + .box::after { content: "✓"; }
.todo input:focus-visible + .box { outline: 3px solid var(--violet); outline-offset: 3px; }
.todo:has(input:checked) { opacity: .55; }
.todo:has(input:checked) .todo-title { text-decoration: line-through; }
.todo-main { display: grid; gap: .3rem; min-width: 0; }
.todo-title { font-size: 1rem; font-weight: 500; }
.todo-title strong { font-weight: 900; }
.todo-meta { font-size: .9rem; color: var(--muted); }
.todo-contact { font-size: .9rem; }

/* Wallet */
.wcard { display: flex; gap: 1rem; background: #fff; border-radius: 1.1rem; padding: 1rem; margin: .8rem 0; box-shadow: var(--shadow); }
.wico { flex: 0 0 3.4rem; height: 3.4rem; border-radius: 1rem; background: linear-gradient(135deg, #ffe1c2, #ffc9d8); display: grid; place-items: center; font-size: 1.9rem; }
.wmain { min-width: 0; }
.wmain h4 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.wdate { margin: .25rem 0; font-size: .9rem; color: var(--muted); font-weight: 700; }
.wref { margin: 0; font-size: .95rem; }
.wrefs summary { color: var(--ink); }

/* Guides */
details.panel { background: #fff; border-radius: 1.1rem; margin: .7rem 0; box-shadow: var(--shadow); }
details.panel > summary { list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-weight: 900; font-size: 1.05rem; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::before { content: "▸ "; color: var(--coral); }
details.panel[open] > summary::before { content: "▾ "; }
.panel-body { padding: 0 1.2rem 1.2rem; }
.clean-list { list-style: none; margin: 0; padding: 0; }
.clean-list li { padding: .6rem 0; border-top: 1px solid var(--line); }
.clean-list li strong { display: block; color: var(--coral-d); font-size: .9rem; }
.clean-list li span { font-size: 1rem; }
.panel-body p, .panel-body li { font-size: 1rem; }
.link-grid { display: grid; gap: .6rem; margin-top: .6rem; }
.link-grid a { background: #fff; border: 2px solid var(--line); border-radius: .9rem; padding: .8rem 1rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.link-grid a:hover { border-color: var(--coral); }
@media (min-width: 700px) { .link-grid { grid-template-columns: 1fr 1fr; } }
.changes ul { padding-left: 1.2rem; }
.changes li { margin: .5rem 0; font-size: .95rem; }

/* Footer, toast */
.foot { background: linear-gradient(180deg, #4a1d5c, var(--dusk)); color: #fff; text-align: center; padding: 2.2rem 1.2rem 2.5rem; }
.foot p { margin: .3rem auto; max-width: 52rem; }
.sign { font-size: 1.8rem; font-weight: 900; color: var(--amber); }
.credits { font-size: .8rem; opacity: .9; }
.credits a { color: #ffe3b3; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tabs-h) + 1rem); transform: translate(-50%, 1rem); background: var(--dusk); color: #fff; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 1.5rem; } }

@media print {
  .topbar, .tabs, .pills, .tools, .toast, .switch, .hero .next { display: none !important; }
  .tab[hidden] { display: block !important; }
  body { background: #fff; padding: 0; font-size: 11pt; }
  html { font-size: 12pt !important; }
  .hero { min-height: 0; background: none; color: #000; }
  .hero * { color: #000 !important; text-shadow: none !important; }
  .day, .todo, .wcard, details.panel { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .day-head { background: #eee !important; color: #000; min-height: 0; }
  .day-head * { color: #000 !important; text-shadow: none !important; }
}

/* Phones: compact header, shorter hero so the countdown shows on the first screen */
@media (max-width: 899px) {
  :root { --top-h: 0rem; --stick: 5.4rem; }
  .topbar { position: static; }
  .hero { min-height: 0; }
  .hero-in { padding: 1.6rem 1.1rem 1.4rem; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 6rem); }
}
@media (max-width: 560px) {
  .brand { font-size: .82rem; }
  .topbar { padding: .45rem .8rem; gap: .2rem .5rem; }
  .tools button { min-width: 2.1rem; min-height: 2rem; font-size: .75rem; }
  .chips li:nth-child(n+3) { display: none; }
  .chips li { font-size: .8rem; }
  .tools [data-print] { display: none; }
  .eyebrow { font-size: .8rem; }
  .dates { font-size: 1.1rem; }
  .count .num { font-size: 3.6rem; }
  .count .lbl { font-size: 1.1rem; }
  .sec-head h2 { font-size: 1.7rem; }
}

@media (max-width: 560px) {
  .brand { font-size: .75rem; }
  .tools button { min-width: 2rem; padding: 0; }
  .wcard { flex-direction: column; gap: .5rem; }
  .wico { flex: none; width: 3rem; height: 3rem; font-size: 1.6rem; }
  .todo { padding: .85rem; gap: .7rem; }
  .box { flex-basis: 1.8rem; width: 1.8rem; height: 1.8rem; }
  .pills a { min-width: 3.2rem; }
  .pills a b { font-size: 1.15rem; }
  .day-body { padding: .3rem .9rem 1rem; }
}

/* ===== Tactical colour system: one colour per purpose, same on every page ===== */
:root {
  --rust: #b4390e; --rust-soft: #ffe1d2; --gold: #b08a49; --gold-soft: #fff1c2; --olive: #166534; --olive-soft: #dcfce7;
  --clay: #8c5a3f; --clay-soft: #ecdcd0; --brick: #b91c1c; --brick-soft: #fee2e2; --surface: #ffffff; --surface-alt: #fff1e6;
  --dark: #2b123f; --nav-h: 3.6rem; --pin: #e23e6b; --font-display: system-ui, sans-serif; --font-body: system-ui, sans-serif;
}
.k-drive { --k: #1e40af; --kb: #dbeafe; }
.k-meal { --k: #9a3412; --kb: #ffedd5; }
.k-spa { --k: #6b21a8; --kb: #f3e8ff; }
.k-adv { --k: #166534; --kb: #dcfce7; }
.k-travel { --k: #0e7490; --kb: #cffafe; }
.k-shop { --k: #854d0e; --kb: #fef9c3; }
.k-rest { --k: #115e59; --kb: #ccfbf1; }
.k-note { --k: #57534e; --kb: #f5f5f4; }
.k-docs { --k: #3730a3; --kb: #e0e7ff; }
.k-tech { --k: #a21caf; --kb: #fae8ff; }
.k-tobook, .k-urgent { --k: #b91c1c; --kb: #fee2e2; }
.k-soon { --k: #c2410c; --kb: #ffedd5; }
.k-later { --k: #1d4ed8; --kb: #dbeafe; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .6rem 0 .2rem; }
.legend li { display: inline-flex; align-items: center; gap: .35rem; background: var(--kb); color: var(--k); border: 2px solid var(--k); border-radius: 999px; padding: .05rem .75rem .05rem .4rem; font-weight: 900; font-size: .8rem; }
.legend li i { font-style: normal; }

/* Steps carry their kind colour */
.step { background: linear-gradient(90deg, var(--kb), rgba(255,255,255,0) 60%); border-left: 6px solid var(--k); border-bottom: 0; border-radius: .6rem; margin: .3rem 0; padding-left: .7rem; }
.step .when { color: var(--k); }
.step .what { display: flex; gap: .55rem; align-items: flex-start; }
.kico { flex: 0 0 auto; font-style: normal; width: 1.7rem; height: 1.7rem; line-height: 1.5rem; text-align: center; border-radius: 50%; background: var(--kb); border: 2px solid var(--k); font-size: .85rem; margin-top: .1rem; }
.step.pending { border-left-color: #b91c1c; background: linear-gradient(90deg, #fee2e2, rgba(255,255,255,0) 70%); outline: 2px solid #fca5a5; margin: .3rem 0; }
.tobook { background: #b91c1c; }
.step .ico { display: none; }

/* Day card: compact photo banner, same on every page, tinted by day type */
.day { border-top: .55rem solid rgb(var(--tint)); }
.day-head { min-height: 7.4rem; padding: 2.7rem 1rem .9rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: end;
  background: linear-gradient(180deg, rgba(var(--tint), .1) 0%, rgba(var(--tint), .7) 55%, rgba(var(--tint), .96) 100%), var(--photo) center/cover; }
.day-top { position: absolute; top: .55rem; left: 1rem; right: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.day-top .badge { margin-left: auto; }
.dayk { background: rgba(255,255,255,.96); color: #1a1a1a; font-weight: 900; font-size: .8rem; border-radius: 999px; padding: .05rem .7rem; }
.day-num b { font-size: 2.6rem; }
.day-title h3 { font-size: 1.1rem; line-height: 1.25; }
.day-title .place { font-size: .85rem; }
@media (max-width: 560px) { .day-head { grid-template-columns: 1fr; } .day-num { display: flex; align-items: baseline; gap: .5rem; } .day-num span { display: inline; } }

/* Badges by meaning */
.badge.free { background: #ccfbf1; color: #0b4f4a; }
.badge.travel { background: #cffafe; color: #0b4f5e; }
.badge.caution { background: #fef3c7; color: #6b3a0a; }
.status { display: inline-block; border-radius: 999px; padding: 0 .6rem; font-weight: 900; font-size: .8rem; background: #f5f5f4; color: #292524; }
.status.fixed { background: #ddf3e4; color: #0f4423; } .status.open { background: #ffe1d2; color: #7c2d12; }
.status.travel { background: #cffafe; color: #0b4f5e; } .status.caution { background: #fef3c7; color: #6b3a0a; } .status.free { background: #ccfbf1; color: #0b4f4a; }

/* Do now urgency + who tags */
.todo { border-left: 8px solid var(--k); }
.todo.t-urgent { --k: #b91c1c; } .todo.t-soon { --k: #c2410c; } .todo.t-later { --k: #1d4ed8; }
.who-tag { display: inline-block; border-radius: .5rem; padding: 0 .55rem; font-weight: 900; font-size: .8rem; margin-right: .3rem; }
.w-both { background: #e0e7ff; color: #3730a3; } .w-namit { background: #dbeafe; color: #1e40af; } .w-her { background: #fce7f3; color: #9d174d; }
.w-misha { background: #ffedd5; color: #9a3412; } .w-ayaan { background: #dcfce7; color: #166534; }

/* Wallet cards by category */
.wcard { border-left: 8px solid var(--k); }
.wcard .wico { background: var(--kb); border: 2px solid var(--k); }

/* Guides accents */
.group.acc > h3 { border-left: 8px solid var(--k); padding-left: .6rem; color: var(--k); }
.group.acc details.panel { border-left: 6px solid var(--k); }

/* Quick facts, free band */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem; margin: 1.2rem 0 .4rem; }
.q { background: #fff; border-radius: 1rem; padding: .7rem .9rem; box-shadow: var(--shadow); border-top: 6px solid #1e40af; }
.q:nth-child(2) { border-top-color: #c2410c; } .q:nth-child(3) { border-top-color: #6b21a8; } .q:nth-child(4) { border-top-color: #166534; }
.q span { display: block; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.q b { font-size: 1rem; }
.freeband { background: #ccfbf1; border: 3px solid #115e59; border-radius: 1.1rem; padding: .8rem 1.1rem; margin: 1.2rem 0 .4rem; color: #0b302d; }
.freeband p { margin: .3rem 0 0; }

/* Raw guide content from older pages */
.raw .split { display: grid; gap: .8rem; }
@media (min-width: 800px) { .raw .split { grid-template-columns: 1fr 1fr; } }
.raw .panel { background: #fff; border-radius: 1.1rem; padding: 1rem 1.2rem; box-shadow: var(--shadow); border-left: 6px solid var(--k); }
.raw .panel h3 { margin: .1rem 0 .4rem; font-size: 1.1rem; }
.raw .table-wrap { overflow-x: auto; }
.raw table { width: 100%; border-collapse: collapse; background: #fff; }
.raw th, .raw td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; }
.raw th { background: #f3e8ff; color: #4a1670; }
.raw .notice { background: #fef3c7; border: 2px solid #d97706; border-radius: 1rem; padding: .8rem 1rem; }
.raw .action-list { padding-left: 1.3rem; }
.raw .action-list li { margin: .5rem 0; }

/* Hero details */
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .copy { margin: 0 0 .7rem; font-size: 1.1rem; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.6); max-width: 40rem; }
.tabs { grid-template-columns: repeat(var(--n, 4), 1fr); }

/* Passcode lock (India) */
.lock-screen { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: linear-gradient(180deg, #2b123f, #4a1d5c); }
.lock-dialog { background: #fff; border-radius: 1.4rem; padding: 1.5rem; max-width: 26rem; width: 100%; box-shadow: var(--shadow); }
.lock-dialog h1 { margin: .2rem 0 .6rem; font-size: 2rem; }
.lock-dialog .eyebrow { color: var(--coral-d); text-shadow: none; }
.lock-dialog label { display: block; font-weight: 900; margin: .8rem 0 .3rem; }
.lock-row { display: flex; gap: .5rem; }
.lock-row input { flex: 1; min-width: 0; font: inherit; font-size: 1.4rem; letter-spacing: .3em; padding: .5rem .7rem; border: 3px solid var(--line); border-radius: .8rem; }
.lock-row button { font: inherit; font-weight: 900; padding: .5rem 1.1rem; border: 0; border-radius: .8rem; color: #fff; background: var(--sunset-deep); cursor: pointer; }
.lock-error { min-height: 1.5rem; color: #b91c1c; font-weight: 800; margin: .4rem 0 0; }
.lock-links { display: flex; gap: 1rem; margin-top: .8rem; }
body.locked > :not(.lock-screen) { display: none !important; }

/* Embedded planner */
.planner-embed { scroll-margin-top: 6rem; }
.planner-embed .p-controls { position: static; }
.tab[data-tab="map"] .section-head h2 { margin: 0; font-size: 2rem; font-weight: 900; }

/* Day header: solid tint + small photo thumbnail (same size on every page) */
.day-head { background: linear-gradient(135deg, rgb(var(--tint)) 0%, rgba(var(--tint), .82) 100%); min-height: 7.2rem; padding-right: 9.6rem; }
.day-head::after { content: ""; position: absolute; right: 1rem; bottom: .9rem; width: 7.6rem; height: 5.4rem; border-radius: 1rem; background: var(--photo) center/cover; border: 3px solid rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
@media (max-width: 560px) {
  .day-head { padding-right: 6.6rem; }
  .day-head::after { width: 5.2rem; height: 4.2rem; right: .8rem; bottom: .8rem; }
}
.day-head { min-height: 8.3rem; }
.day-head::after { width: 7rem; height: 4.6rem; }
@media (max-width: 560px) { .day-head::after { width: 5rem; height: 3.7rem; } .day-head { min-height: 0; } }
.sec-head h2 .note { font-size: .5em; font-weight: 800; color: var(--coral-d); }

/* ===== Tactical dark theme (black base, bright kind colours) ===== */
:root:not([data-theme="light"]), :root[data-theme="dark"] {
  color-scheme: dark;
  --cream: #0a0c0d; --card: #15191b; --ink: #eef2ef; --muted: #b9c1bc; --line: #2c3236;
  --link: #fcd34d; --coral-d: #fdba74; --shadow: 0 6px 18px rgba(0,0,0,.6);
  --surface: #15191b; --surface-alt: #1c2124; --rust: #fb923c; --rust-soft: #35190a; --gold: #facc15; --gold-soft: #33290a;
  --olive: #4ade80; --olive-soft: #0d2a17; --brick: #f87171; --brick-soft: #3b1010; --clay: #d6b99f; --clay-soft: #2a2119;
  --surface-2: #0f1213; --on-surface: var(--ink); --on-surface-muted: var(--muted);
  --chip-bg: #15191b; --chip-fg: var(--ink); --chip-border: #2c3236; --chip-active-border: #f59e0b;
  --tab-bg: var(--surface-2); --tab-fg: #c9d1cc; --tab-line: #f59e0b; --tab-shadow: 0 -8px 24px rgba(0,0,0,.7);
  --active-grad: var(--sunset-deep);
  --next-bg: var(--surface); --next-border: #f59e0b; --next-eyebrow: #f59e0b;
}
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-drive { --k: #60a5fa; --kb: #0f1f3d; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-meal { --k: #fb923c; --kb: #35190a; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-spa { --k: #c084fc; --kb: #2a1240; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-adv { --k: #4ade80; --kb: #0d2a17; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-travel { --k: #22d3ee; --kb: #082c33; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-shop { --k: #facc15; --kb: #33290a; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-rest { --k: #2dd4bf; --kb: #0a2b28; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-note { --k: #a8a29e; --kb: #26241f; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-docs { --k: #a5b4fc; --kb: #1c1f4a; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-tech { --k: #e879f9; --kb: #33113a; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-tobook, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-urgent { --k: #f87171; --kb: #3b1010; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-soon { --k: #fb923c; --kb: #35190a; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .k-later { --k: #60a5fa; --kb: #0f1f3d; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) code { background: #26221a; border-color: #4a3f22; color: #fde68a; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) :focus-visible { outline-color: #fcd34d; }

/* Topbar and footer stay dark (dusk/black) with white text in both themes, by design */
.topbar { background: #000; border-bottom: 3px solid #f59e0b; }
.brand span { color: #f59e0b; }

:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .day { border: 1px solid #23282b; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .day-head { box-shadow: inset 0 -60px 60px -40px rgba(0,0,0,.45); }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .step { background: linear-gradient(90deg, var(--kb), rgba(0,0,0,0) 70%); }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .step.pending { background: linear-gradient(90deg, #3b1010, rgba(0,0,0,0) 75%); outline-color: #7f1d1d; border-left-color: #f87171; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .who { background: #2c3236; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .day-links a { background: #22282b; border: 1px solid #3a4145; color: var(--ink); }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .day-links a:hover { border-color: #f59e0b; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .badge.booked, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .status.fixed { background: #0d2a17; color: #86efac; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .badge.open, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .status.open { background: #3b1a0c; color: #fdba74; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .badge.info, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .badge.caution, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .status.caution { background: #33290a; color: #fde68a; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .badge.free, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .status.free { background: #0a2b28; color: #5eead4; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .badge.travel, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .status.travel { background: #082c33; color: #67e8f9; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .status { background: #26241f; color: #d6d3d1; }

:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) details.refs { background: #101416; border-color: #2c3236; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .ref { background: #181d20; border-color: #2c3236; }
.todo, .wcard, details.panel, .link-grid a, .q, .raw .panel, .lock-dialog { background: var(--card); }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .todo, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .wcard, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) details.panel, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .raw .panel, :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .q { border: 1px solid #23282b; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .todo.t-urgent { --k: #f87171; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .todo.t-soon { --k: #fb923c; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .todo.t-later { --k: #60a5fa; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .box { border-color: #f59e0b; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .link-grid a { border-color: #2c3236; color: var(--ink); }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .link-grid a:hover { border-color: #f59e0b; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .w-both { background: #1c1f4a; color: #c7d2fe; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .w-namit { background: #0f1f3d; color: #93c5fd; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .w-her { background: #3b1230; color: #f9a8d4; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .w-misha { background: #35190a; color: #fdba74; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .w-ayaan { background: #0d2a17; color: #86efac; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .q:nth-child(1) { border-top: 6px solid #60a5fa; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .q:nth-child(2) { border-top: 6px solid #fb923c; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .q:nth-child(3) { border-top: 6px solid #c084fc; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .q:nth-child(4) { border-top: 6px solid #4ade80; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .q:nth-child(5) { border-top: 6px solid #f87171; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .q:nth-child(6) { border-top: 6px solid #facc15; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .freeband { background: #0a2b28; border-color: #2dd4bf; color: #ccfbf1; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .raw table { background: transparent; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .raw th { background: #2a1240; color: #e9d5ff; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .raw .notice { background: #33290a; border-color: #facc15; color: #fef3c7; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .lock-screen { background: #000; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .lock-row input { background: #0f1213; color: var(--ink); border-color: #3a4145; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .lock-dialog .eyebrow { color: #fdba74; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .lock-error { color: #f87171; }
.foot { background: #000; border-top: 3px solid #f59e0b; }
.sign { color: #f59e0b; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .toast { background: #f59e0b; color: #000; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .day.today { outline-color: #f59e0b; }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .sec-head h2 .note { color: #fdba74; }

/* Compact hero banner (dark theme only; light keeps the tall Sunset hero above) */
.hero { min-height: 0; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .hero { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.88)), var(--photo) center 40%/cover; border-bottom: 3px solid #f59e0b; }
.hero-in { padding: 1.2rem 1rem 1rem; }
.hero h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1; display: inline; margin: 0 .6rem 0 0; }
.hero .eyebrow { font-size: .8rem; }
.dates { display: inline; font-size: 1.05rem; margin: 0; }
.hero .copy { display: none; }
.chips { margin: .6rem 0 .5rem; gap: .35rem; }
.chips li { font-size: .8rem; padding: .1rem .7rem; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .chips li { background: rgba(0,0,0,.45); border-color: rgba(245,158,11,.7); }
.count { margin: .2rem 0 .5rem; }
.count .num { font-size: 2.4rem; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .count .num { color: #f59e0b; }
.count .lbl { font-size: 1.05rem; }
.next { padding: .5rem .8rem; } .next { border-radius: .8rem; }
@media (max-width: 560px) { .hero-in { padding: 1rem .9rem .8rem; } .chips li:nth-child(n+3) { display: none; } .count .num { font-size: 2rem; } }
@media (min-width: 900px) { .tabs { margin-top: -1.2rem; } }
:is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .day-head { background: linear-gradient(135deg, rgba(var(--tint), .55) 0%, rgba(var(--tint), .28) 100%), #101416; box-shadow: none; }

/* Phone fixes: 5-tab bar labels, lock dialog width (layout only, both themes) */
.lock-dialog { width: 100%; max-width: min(26rem, calc(100vw - 2rem)); }
.lock-dialog h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
.lock-row input { font-size: 1.2rem; letter-spacing: .2em; }
.lock-row button { flex: 0 0 auto; padding: .5rem .9rem; }
@media (max-width: 560px) {
  .tabs button { font-size: .66rem; white-space: nowrap; min-height: 4rem; letter-spacing: -.01em; }
  .tabs button i { font-size: 1.3rem; }
  .tabs em { right: 8%; top: .2rem; font-size: .7rem; min-width: 1.2rem; height: 1.2rem; line-height: 1.2rem; }
  .quick { grid-template-columns: 1fr 1fr; }
  .q { padding: .55rem .65rem; } .q b { font-size: .9rem; }
}
@media (max-width: 560px) { .day-head { padding-right: 6rem; } .day-num b { white-space: nowrap; overflow-wrap: normal; } .day-num { min-width: 0; } }

/* Quick facts: one horizontal row (dark theme only; light keeps the base wrapping grid) */
.quick { background: var(--surface-2, var(--card)); border-bottom: 1px solid var(--line); display: flex; flex-wrap: nowrap; gap: .5rem; overflow-x: auto; scroll-snap-type: x proximity; margin: 0; padding: .55rem 1rem; -webkit-overflow-scrolling: touch; } :is(:root:not([data-theme="light"]), :root[data-theme="dark"]) .quick { background: #050607; border-bottom: 1px solid #23282b; }
.q { flex: 0 0 auto; min-width: 9.5rem; scroll-snap-align: start; padding: .35rem .7rem; } .q { border-radius: .7rem; box-shadow: none; border-top-width: 4px; }
.q span { font-size: .7rem; white-space: nowrap; }
.q b { font-size: .9rem; white-space: nowrap; }
@media (max-width: 560px) { .quick { grid-template-columns: none; } .q { min-width: 8.5rem; } }
.changes-history{margin-top:.6rem}.changes-history>summary{cursor:pointer;font-size:.9rem;opacity:.8}
.step.prep{opacity:.85;font-style:italic}
/* ===== Light theme: page tokens + every component token the dark block above defines ===== */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --cream:#fff7ee; --card:#fff; --ink:#2a1710; --muted:#55403a; --line:#f0dcc8;
    --surface: #ffffff; --surface-alt: #fff1e6; --rust: #b4390e; --rust-soft: #ffe1d2; --gold: #b08a49; --gold-soft: #fff1c2;
    --olive: #166534; --olive-soft: #dcfce7; --clay: #8c5a3f; --clay-soft: #ecdcd0; --brick: #b91c1c; --brick-soft: #fee2e2;
    --surface-2: #ffffff; --on-surface: var(--ink); --on-surface-muted: var(--muted);
    --chip-bg: #ffffff; --chip-fg: var(--ink); --chip-border: var(--line); --chip-active-border: transparent;
    --tab-bg: #ffffff; --tab-fg: var(--muted); --tab-line: var(--line); --tab-shadow: 0 -8px 24px rgba(43,18,63,.15);
    --active-grad: var(--sunset-deep);
    --next-bg: rgba(255,255,255,.95); --next-border: transparent; --next-eyebrow: #b45309;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --cream:#fff7ee; --card:#fff; --ink:#2a1710; --muted:#55403a; --line:#f0dcc8;
  --surface: #ffffff; --surface-alt: #fff1e6; --rust: #b4390e; --rust-soft: #ffe1d2; --gold: #b08a49; --gold-soft: #fff1c2;
  --olive: #166534; --olive-soft: #dcfce7; --clay: #8c5a3f; --clay-soft: #ecdcd0; --brick: #b91c1c; --brick-soft: #fee2e2;
  --surface-2: #ffffff; --on-surface: var(--ink); --on-surface-muted: var(--muted);
  --chip-bg: #ffffff; --chip-fg: var(--ink); --chip-border: var(--line); --chip-active-border: transparent;
  --tab-bg: #ffffff; --tab-fg: var(--muted); --tab-line: var(--line); --tab-shadow: 0 -8px 24px rgba(43,18,63,.15);
  --active-grad: var(--sunset-deep);
  --next-bg: rgba(255,255,255,.95); --next-border: transparent; --next-eyebrow: #b45309;
}

.wxline { margin: .8rem 0 0; font-weight: 800; font-size: .9rem; }
