/* Cails & Shanny · Costa Rica — warm, tropical, mobile-first */

:root {
  --bg: #fbf6ee;
  --bg-2: #f3ebdd;
  --card: #ffffff;
  --ink: #1e2a24;
  --ink-2: #4a5a52;
  --muted: #7a877f;
  --line: #e6dccb;
  --green: #1f5a3f;
  --green-deep: #0f3d2e;
  --mist: #dfeae3;
  --accent: #e8613c;
  --accent-ink: #b8431f;
  --accent-2: #f2b84b;
  --amber-bg: #fff3d6;
  --amber-ink: #7a4b00;
  --amber-line: #f2c96a;
  --shadow: 0 1px 2px rgba(30, 42, 36, .06), 0 8px 24px -12px rgba(30, 42, 36, .18);
  --radius: 18px;
  --radius-s: 12px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a15; --bg-2: #13211b; --card: #172621; --ink: #f3eee4; --ink-2: #c8d2cb; --muted: #94a59b;
    --line: #26362f; --green: #7fc9a3; --green-deep: #0b2c21; --mist: #1c2f27;
    --accent: #ff7a59; --accent-ink: #ffb199; --accent-2: #f2b84b;
    --amber-bg: #3a2a08; --amber-ink: #ffd98a; --amber-line: #7a5a1a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a15; --bg-2: #13211b; --card: #172621; --ink: #f3eee4; --ink-2: #c8d2cb; --muted: #94a59b;
  --line: #26362f; --green: #7fc9a3; --green-deep: #0b2c21; --mist: #1c2f27;
  --accent: #ff7a59; --accent-ink: #ffb199; --accent-2: #f2b84b;
  --amber-bg: #3a2a08; --amber-ink: #ffd98a; --amber-line: #7a5a1a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
body.locked { padding-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .4em; font-variation-settings: 'opsz' 72; }
h1 { font-size: clamp(2rem, 7vw, 3rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-variation-settings: 'opsz' 24; }
h1 em, .brand em { font-style: italic; font-weight: 400; color: var(--accent-2); }
p { margin: 0 0 1em; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
b, strong { font-weight: 600; }
small { color: var(--muted); }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--bg-2); padding: .1em .35em; border-radius: 4px; }
.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; }
ul, ol { padding-left: 1.3em; }
li { margin: .3em 0; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px; z-index: 100; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin: 0 0 .5em; }
.fine { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }
.more { font-weight: 600; text-decoration: none; }
.linkbtn { background: none; border: 0; color: var(--green); text-decoration: underline; cursor: pointer; padding: 0; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: .6em 1.1em; border-radius: 999px; font-weight: 600; }

/* ---------- layout ---------- */
.main { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; }
.page { padding-top: 16px; }
.page-head { padding: 8px 4px 20px; }
.page-head .sub { color: var(--ink-2); font-size: 1.05rem; max-width: 40ch; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row h3 { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }

/* top bar (desktop) / tab bar (mobile) */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.logo { width: 26px; height: 26px; color: var(--green); }
.topnav { display: none; gap: 4px; margin-left: auto; }
.topnav a { text-decoration: none; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.topnav a.active { background: var(--green-deep); color: #fff; }
.offline-pill { margin-left: auto; font-size: .75rem; font-weight: 600; background: var(--amber-bg); color: var(--amber-ink); padding: 3px 10px; border-radius: 999px; }
.topnav + .offline-pill { margin-left: 8px; }
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .02em; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--accent); }
@media (min-width: 800px) {
  .tabbar { display: none; }
  .topnav { display: flex; }
  body { padding-bottom: 0; }
  .main { padding: 0 24px 48px; }
}

/* ---------- photos ---------- */
.ph { position: relative; overflow: hidden; background-size: cover; background-position: center; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.ph.loaded img { opacity: 1; }
.ph.cover { border-radius: 0; aspect-ratio: auto; position: absolute; inset: 0; }

/* ---------- hero ---------- */
.hero { position: relative; margin: 0 -16px 20px; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hero.small { min-height: 40vh; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(14, 30, 22, .88) 0%, rgba(14, 30, 22, .35) 45%, rgba(14, 30, 22, .05) 75%); pointer-events: none; }
.hero-text { position: relative; z-index: 2; padding: 32px 20px 26px; max-width: 640px; animation: rise .8s ease both; }
.hero-text .eyebrow { color: rgba(255, 255, 255, .8); }
.hero-text h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.hero-text .sub { color: rgba(255, 255, 255, .9); font-size: 1.05rem; margin: 0; max-width: 52ch; }
.hero-text .big { font-size: 1.6em; font-variation-settings: 'opsz' 144; color: var(--accent-2); }
@media (min-width: 800px) {
  .hero { margin: 20px 0; border-radius: 24px; min-height: 480px; }
  .hero.small { min-height: 300px; }
  .hero-text { padding: 40px 36px 32px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- welcome / lock ---------- */
.welcome { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0 -16px; }
.welcome-hero { position: relative; flex: 1; min-height: 58vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.welcome-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--bg) 0%, rgba(14, 30, 22, .4) 30%, rgba(14, 30, 22, 0) 70%); }
.welcome-text { position: relative; z-index: 2; padding: 24px 24px 8px; animation: rise 1s ease both; }
.welcome-text h1 { font-size: clamp(2.4rem, 9vw, 4rem); color: var(--ink); text-shadow: none; }
.welcome-text .eyebrow { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.welcome-text .sub { color: var(--ink-2); font-size: 1.1rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .welcome-text h1 { color: #fff; } }
.welcome-lock { padding: 8px 24px 0; }
.welcome .fine { padding: 8px 24px 24px; }
.lock { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 12px; box-shadow: var(--shadow); }
.lock h3 { margin-bottom: .2em; }
.lock p { color: var(--ink-2); font-size: .95rem; }
.lock-row { display: flex; gap: 8px; }
.lock input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); }
.lock input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
.lock button { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 0 20px; font-weight: 600; cursor: pointer; }
.lock button:disabled { opacity: .6; }
.lock-err { color: var(--accent-ink); font-weight: 500; margin: 10px 2px 0; }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.who-btn { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 18px 8px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.who-btn.sel { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 14px 0; box-shadow: var(--shadow); }
.card.accent { border-color: var(--accent-2); background: linear-gradient(135deg, var(--card), color-mix(in srgb, var(--accent-2) 14%, var(--card))); }
.card.mine { border-color: var(--green); }
a.card { display: block; text-decoration: none; color: inherit; }
.card.next { background: var(--green-deep); color: #fff; border: 0; }
.card.next .eyebrow { color: var(--accent-2); }
.card.next p { color: rgba(255, 255, 255, .85); margin: 0; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.tile .ph { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.tile > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(to top, rgba(14, 30, 22, .9), rgba(14, 30, 22, 0)); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.15; }
.tile > span b { display: block; }
.tile > span small { display: block; color: rgba(255, 255, 255, .8); font-family: var(--font-body); font-weight: 400; font-size: .8rem; margin-top: 3px; }
.tile:hover img, .dayrow:hover img { transform: scale(1.03); }
.tile img, .dayrow img { transition: transform .5s ease, opacity .6s ease; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin: .5em 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-2); }

/* progress */
.prog { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.prog-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.prog-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--accent-2)); border-radius: 999px; transition: width .4s ease; }
.prog-n { font-size: .85rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- today: day blocks ---------- */
.daynav { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; margin: 4px 0 12px; }
.daynav a { text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.blocks { list-style: none; padding: 0; margin: 8px 0; position: relative; }
.blocks::before { content: ''; position: absolute; left: 84px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.block { display: grid; grid-template-columns: 72px 1fr; gap: 22px; margin: 0; padding: 12px 0; }
.block .when { font-family: var(--font-display); font-weight: 600; font-size: .95rem; white-space: nowrap; color: var(--accent-ink); text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.block .what { position: relative; }
.block .what::before { content: ''; position: absolute; left: -17px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--line); }
.mood-open .block .what::before { background: var(--green); }
.block h4 { margin-bottom: .25em; }
.block p { color: var(--ink-2); margin-bottom: .5em; font-size: .98rem; }
.block .meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .88rem; margin: 0; }
.block .cost { background: var(--amber-bg); color: var(--amber-ink); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.block .hostel { margin-top: 10px; }
.summary .row { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.summary .row:last-of-type { border: 0; }
.summary .lbl { color: var(--muted); font-size: .9rem; }
.summary .fine { margin: 10px 0 0; }
.daylist { list-style: none; padding: 0; }
.dayrow { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin: 10px 0; box-shadow: var(--shadow); }
.dayrow .ph { aspect-ratio: 1; border-radius: var(--radius-s); }
.dayrow h3 { font-size: 1.15rem; margin: 0 0 .15em; }
.dayrow p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.dayrow .eyebrow { margin-bottom: .2em; }
.dayrow.is-today { border-color: var(--accent); }
.mood { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.mood-big .mood { background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--accent-ink); }
.mood-open .mood { background: var(--mist); color: var(--green); }

/* ---------- flight strip ---------- */
.flight-strip { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 8px 0 20px; }
.flight-strip > div { background: var(--green-deep); color: #fff; border-radius: var(--radius-s); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.flight-strip .eyebrow { color: var(--accent-2); margin: 0; }
.flight-strip b { font-family: var(--font-display); font-size: 1.15rem; }
.flight-strip span:last-child { font-size: .85rem; color: rgba(255, 255, 255, .8); }
.flight-strip a { color: var(--accent-2); }
@media (min-width: 640px) { .flight-strip { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- prose (hub sections, personal pages) ---------- */
.prose { font-size: 1.02rem; }
.prose .lede { font-size: 1.15rem; color: var(--ink-2); font-family: var(--font-display); font-weight: 400; font-variation-settings: 'opsz' 20; line-height: 1.45; }
.prose h3 { margin-top: 1.6em; padding-top: .4em; border-top: 1px solid var(--line); }
.prose h4 { margin-top: 1.2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose b { color: var(--ink); }
.prose aside { border-radius: var(--radius-s); padding: 14px 16px; margin: 1.2em 0; font-size: .95rem; }
.prose .tip { background: var(--mist); color: var(--ink); }
.prose .warn { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line); }
.prose .warn b { color: inherit; }
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; margin: 1.2em 0; }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; font-size: 1.05rem; }
.step h4 { margin: .3em 0 .3em; }
.compare { display: grid; gap: 12px; margin: 1em 0; }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .card { margin: 0; position: relative; }
.compare .card h4 { margin-top: 0; }
.compare .rec { border-color: var(--green); }
.badge { position: absolute; top: -10px; right: 14px; background: var(--green); color: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-weight: 600; color: var(--accent-ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 1em 0; }
.stats > div { background: var(--bg-2); border-radius: var(--radius-s); padding: 12px 14px; display: flex; flex-direction: column; }
.stats b { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.stats span { font-size: .82rem; color: var(--muted); }
.stats.emergency > div { background: var(--amber-bg); }
.stats.emergency b { color: var(--amber-ink); font-size: 1.15rem; }
.stats.emergency span { color: var(--amber-ink); opacity: .85; }
table.timeline { width: 100%; border-collapse: collapse; margin: .8em 0 1.4em; font-size: .95rem; }
table.timeline td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
table.timeline td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); width: 1%; padding-right: 16px; font-variant-numeric: tabular-nums; }
table.timeline tr.total td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 0; }
table.timeline .tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); white-space: nowrap; }
table.timeline .tag.big { color: var(--accent-ink); }
table.timeline .tag.open { color: var(--green); }
table.routine td:nth-child(2) { white-space: nowrap; font-weight: 600; color: var(--ink); }
.paid { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; background: var(--mist); color: var(--green); padding: 2px 8px; border-radius: 999px; font-weight: 700; margin-left: 6px; }
.tier { display: inline-flex; align-items: center; gap: 10px; }
.tier::before { content: ''; width: 12px; height: 12px; border-radius: 50%; }
.tier.free::before { background: var(--green); }
.tier.pay::before { background: var(--accent-2); }
.tier.skip::before { background: var(--muted); }
.thing { padding: 14px 0 6px; border-bottom: 1px dashed var(--line); }
.thing h4 { margin-top: 0; }
.thing.star h4::before { content: '★ '; color: var(--accent-2); }
.thing .meta { font-size: .88rem; color: var(--muted); }
.thing .opt { font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--muted); }
.contact-card { background: var(--green-deep); color: #fff; border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; margin: 1em 0; }
.contact-card > div { display: grid; gap: 2px; }
.contact-card span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2); }
.contact-card b { color: #fff; font-size: 1.05rem; }

/* hostel card */
.hostel { background: var(--bg-2); border-radius: var(--radius-s); padding: 16px; margin: .6em 0 1.2em; }
.hostel.unverified { border: 1.5px solid var(--amber-line); background: var(--amber-bg); color: var(--amber-ink); }
.hostel-warn { font-size: .9rem; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--amber-line); }
.hostel-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.hostel-name .q { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber-ink); color: var(--amber-bg); font-size: .85rem; font-family: var(--font-body); vertical-align: middle; }
.hostel-meta { font-size: .9rem; opacity: .85; margin-bottom: 8px; }
.hostel dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 8px; font-size: .92rem; }
.hostel dt { font-weight: 600; }
.hostel dd { margin: 0; }
.hostel .links { margin: 0; font-size: .9rem; }
.hostel.unverified a { color: inherit; }

/* ---------- checklists ---------- */
.checklist { list-style: none; padding: 0; margin: 12px 0 0; }
.checklist li { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border: 0; }
.ck { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.ck input { position: absolute; opacity: 0; width: 0; height: 0; }
.ck .box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: var(--card); margin-top: 1px; display: grid; place-items: center; transition: all .2s ease; }
.ck .box::after { content: ''; width: 8px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .2s cubic-bezier(.2, 1.4, .4, 1); margin-top: -3px; }
.ck input:checked + .box { background: var(--green); border-color: var(--green); }
.ck input:checked + .box::after { transform: rotate(45deg) scale(1); }
.ck input:focus-visible + .box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.ck input:disabled + .box { opacity: .5; }
.ck .lbl { font-weight: 500; line-height: 1.35; padding-top: 3px; }
.ck .lbl small { display: block; font-size: .78rem; margin-top: 2px; }
.checklist li.done .lbl { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.checklist .other { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; border: 2px dashed var(--line); color: var(--muted); margin-top: 1px; }
.checklist .other.done { background: var(--accent-2); border: 2px solid var(--accent-2); color: var(--ink); }
.checklist details { grid-column: 1 / -1; font-size: .92rem; }
.checklist summary { color: var(--muted); cursor: pointer; font-size: .82rem; padding-left: 38px; list-style: none; }
.checklist summary::-webkit-details-marker { display: none; }
.checklist summary::before { content: '+ '; }
.checklist details[open] summary::before { content: '– '; }
.checklist .detail { padding: 6px 0 4px 38px; color: var(--ink-2); }
.note { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.note span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.note input { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--bg); color: var(--ink); }
.progress-cards .card { margin: 0; }

/* prep weeks */
.weeks { margin: 8px 0 20px; }
.week { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 14px; margin: 8px 0; background: var(--bg-2); }
.week summary { list-style: none; cursor: pointer; padding: 12px 0; display: flex; flex-direction: column; gap: 2px; }
.week summary::-webkit-details-marker { display: none; }
.week summary b { font-family: var(--font-display); font-size: 1.05rem; }
.week.cur { border-color: var(--accent); background: var(--card); }
.week.cur summary::after { content: 'this week'; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); font-weight: 700; }
.week.past { opacity: .6; }
.week .ticks { padding-bottom: 8px; }

/* credits, toast, misc */
.credits { margin: 24px 0; font-size: .82rem; color: var(--muted); }
.credits summary { cursor: pointer; }
.credits a { color: inherit; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0; transition: all .3s ease; background: var(--ink); color: var(--bg); padding: 10px 14px 10px 18px; border-radius: 999px; display: flex; gap: 12px; align-items: center; font-size: .92rem; z-index: 30; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%); opacity: 1; }
.toast button { background: var(--accent-2); border: 0; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
@media (min-width: 800px) { .toast { bottom: 24px; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
