:root {
  /* Wanderly pastels */
  --pink: #ffd6e2;
  --peach: #ffe1cc;
  --butter: #fff3c2;
  --mint: #d3f4e4;
  --sky: #d6eaff;
  --lav: #e6dcff;
  --plum: #3b2f5a;

  --bg: #fdf7ff;
  --card: #ffffff;
  --text: var(--plum);
  --muted: #736b8c;
  --border: #eee4f6;
  --primary: #ff9eb5;
  --primary-2: #ffc4a3;
  --primary-ink: #c2456b;
  --sun: #ffe38f;
  --sea: #a6e3f0;
  --ink: #6a4cc2;
  --danger: #c93a54;
  --radius: 20px;
  --shadow: 0 2px 4px rgba(59,47,90,.04), 0 10px 30px rgba(120,90,170,.10);
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  font: 16px/1.55 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(255,214,226,.75), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(211,244,228,.7), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(230,220,255,.8), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--ink); font-weight: 700; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; margin: .2rem 0 .5rem; line-height: 1.15; }
h2 { font-size: 1.3rem; margin: 0; }
h3 { margin: .2rem 0 .15rem; font-size: 1.2rem; }
code { background: var(--butter); padding: 1px 7px; border-radius: 6px; font-size: .9em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; width: 100%; }
main.wrap { padding-top: 26px; padding-bottom: 48px; flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.center { text-align: center; }
.grad-text { background: linear-gradient(90deg, #d9507c, #9b5fd6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer { text-align: center; padding: 24px; font-size: .9rem; }
.footer img { width: 22px; height: 22px; vertical-align: -5px; margin-right: 4px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(253,247,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--head); font-weight: 700; font-size: 1.45rem; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 6px; }
.brand { gap: 8px; letter-spacing: -.01em; }
.brand-mark { width: 40px; height: 40px; display: block; animation: bob 4s ease-in-out infinite; transform-origin: 50% 90%; }
.brand:hover .brand-mark { animation-duration: 1.2s; }
.brand-word { color: var(--plum); }
.brand-ly { background: linear-gradient(180deg, transparent 64%, var(--pink) 64%); border-radius: 3px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
.topbar nav { display: flex; align-items: center; gap: 6px; }
.topbar nav a { text-decoration: none; color: var(--text); font-weight: 700; padding: 7px 14px; border-radius: 999px; transition: background .15s; }
.topbar nav a:hover { background: var(--pink); }
.topbar nav form { margin: 0 0 0 4px; }
.linklike { background: none; border: 0; padding: 6px 8px; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.linklike:hover { color: var(--primary-ink); }

/* ---------- avatars ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%; font-family: var(--head); font-weight: 600;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(59,47,90,.15); font-size: .95rem; color: var(--plum);
}
.avatar.sm { width: 26px; height: 26px; font-size: .78rem; }
.avatar.xs { width: 20px; height: 20px; font-size: .65rem; border-width: 1px; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.7rem; border-width: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 800; font-size: .95rem; padding: 9px 18px; border-radius: 999px;
  border: 2px solid var(--border); background: var(--card); color: var(--text);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--primary); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; color: var(--plum); box-shadow: 0 6px 16px rgba(255,158,181,.45); }
.btn.primary:hover { box-shadow: 0 10px 22px rgba(255,158,181,.6); border-color: transparent; }
.btn.big { padding: 12px 24px; font-size: 1.05rem; }
.btn.small { padding: 5px 12px; font-size: .85rem; border-width: 1.5px; }
.btn.danger { color: var(--danger); border-color: #ffcbd6; background: #fff3f6; }
.btn.glass { background: var(--glass, rgba(255,255,255,.55)); border-color: var(--glass-line, #fff); color: inherit; backdrop-filter: blur(6px); }
.btn.glass:hover { border-color: currentColor; }
.icon-btn { background: none; border: 0; padding: 3px 5px; border-radius: 8px; cursor: pointer; font-size: .95rem; text-decoration: none; opacity: .55; transition: opacity .15s, background .15s; }
.icon-btn:hover { opacity: 1; background: #f3edfb; }

/* ---------- pills ---------- */
.pill { display: inline-block; font-size: .8rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(59,47,90,.12); }
.pill.soon { background: #fff; color: var(--primary-ink); }
.pill.now { background: var(--sun); color: var(--plum); }
.pill.past { background: rgba(255,255,255,.85); color: var(--muted); }
.glass-pill { display: inline-block; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: var(--glass, rgba(255,255,255,.55)); border: 1.5px solid var(--glass-line, #fff); backdrop-filter: blur(6px); }

/* ---------- cards / layout ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); margin-bottom: 18px; }
.form-card { max-width: 680px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-title { margin: 34px 0 14px; font-size: 1.3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.empty { border: 2.5px dashed #e3d4f3; border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); background: rgba(255,255,255,.5); font-weight: 600; }
.notes, .item-notes { white-space: pre-wrap; }
.back { display: inline-block; margin-bottom: 10px; text-decoration: none; color: var(--muted); font-weight: 700; }
.back:hover { color: var(--ink); }

/* big friendly empty state */
.big-empty { text-align: center; padding: 50px 24px; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); margin-top: 10px; }
.big-empty .globe { font-size: 5rem; display: inline-block; animation: float 4s ease-in-out infinite; }
.big-empty h2 { font-size: 1.9rem; margin: 10px 0 6px; }
.big-empty p { color: var(--muted); max-width: 460px; margin: 0 auto 22px; }

/* ---------- next adventure hero ---------- */
.next-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 30px 34px; border-radius: 28px; color: var(--fg, var(--plum)); text-decoration: none; font-weight: 600;
  background-size: cover; background-position: center; box-shadow: 0 16px 40px rgba(120,90,170,.18);
  position: relative; overflow: hidden; transition: transform .2s;
}
.next-hero:hover { transform: translateY(-3px) rotate(-.3deg); }
.next-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 0% 0%, rgba(255,255,255,.35), transparent); pointer-events: none; }
.next-hero h2 { font-size: 2.2rem; margin: 4px 0; text-shadow: 0 2px 12px var(--glow, transparent); }
.next-label { text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; font-weight: 800; opacity: .95; }
.next-sub { opacity: .95; }
.countdown { text-align: center; background: var(--glass, rgba(255,255,255,.55)); border: 2px solid var(--glass-line, #fff); backdrop-filter: blur(8px); border-radius: 22px; padding: 12px 24px; min-width: 130px; }
.countdown .num { font-family: var(--head); font-size: 3.2rem; font-weight: 700; line-height: 1; }
.countdown .lbl { font-weight: 800; font-size: .9rem; }

/* ---------- trip cards ---------- */
.trip-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); text-decoration: none; color: inherit; font-weight: 400; box-shadow: var(--shadow); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.trip-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 18px 40px rgba(120,90,170,.18); }
.trip-card-cover { height: 130px; position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.trip-card-emoji { font-size: 3.6rem; filter: drop-shadow(0 4px 8px rgba(59,47,90,.18)); transition: transform .3s; }
.trip-card:hover .trip-card-emoji { transform: scale(1.15) rotate(-8deg); }
.trip-card-cover .pill { position: absolute; top: 12px; left: 12px; }
.trip-card-body { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.trip-card-body h3 { font-size: 1.25rem; }
.dest { font-weight: 700; color: var(--text); }
.trip-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.who { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }

/* ---------- trip page hero ---------- */
.trip-hero {
  border-radius: 30px; padding: 22px 30px 30px; color: var(--fg, var(--plum)); margin-bottom: 16px;
  background-size: cover; background-position: center; box-shadow: 0 16px 40px rgba(120,90,170,.18);
  position: relative; overflow: hidden;
}
.trip-hero.has-photo { min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.trip-hero.has-photo .hero-countdown { align-self: flex-start; }

.trip-hero.has-photo .hero-top { position: absolute; top: 22px; left: 30px; right: 30px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-emoji { font-size: 4.5rem; margin: 10px 0 0; display: inline-block; filter: drop-shadow(0 6px 12px rgba(59,47,90,.18)); }
.trip-hero h1 { font-size: 2.8rem; margin: 6px 0 4px; text-shadow: 0 2px 16px var(--glow, transparent); }
.hero-sub { text-shadow: 0 1px 8px var(--glow, transparent); }
.hero-sub { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; font-size: 1.05rem; }
.hero-countdown { display: inline-block; margin-top: 16px; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 1.2rem; padding: 8px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(59,47,90,.15); }

.stats { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.stat { background: var(--card); border-radius: 999px; padding: 6px 16px; box-shadow: var(--shadow); font-weight: 700; }
.stat b { font-family: var(--head); font-size: 1.2rem; color: var(--ink); margin-right: 3px; }
.stat.planners { display: inline-flex; align-items: center; gap: 0; padding-left: 8px; }
.stat.planners .avatar { margin-right: -8px; }
.stat.planners .muted { margin-left: 16px; font-size: .9rem; }
.notes-title { font-family: var(--head); font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; white-space: normal; }
.add-main { width: 100%; margin: 4px 0 8px; }

/* ---------- days & timeline ---------- */
.day { margin-top: 30px; }
.day-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.day-title { flex: 1; }
.day-title h2 { font-size: 1.4rem; line-height: 1.1; }
.day-badge {
  width: 62px; height: 62px; border-radius: 18px; flex: none; color: var(--plum);
  background: var(--theme); box-shadow: 0 6px 16px rgba(120,90,170,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  transform: rotate(-4deg);
}
.day:nth-child(even) .day-badge { transform: rotate(3deg); }
.day-badge small { text-transform: uppercase; font-weight: 800; font-size: .7rem; letter-spacing: .08em; opacity: .95; }
.day-badge b { font-family: var(--head); font-size: 1.8rem; font-weight: 700; }
.idea-badge { background: linear-gradient(135deg, #fff0a8, #ffd2a8); }
.idea-badge b { font-size: 1.9rem; }
.free-day { margin: 0 0 0 76px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.6); border: 2px dashed #e3d4f3; color: var(--muted); font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 31px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.timeline::before { content: ""; position: absolute; left: 30px; top: 8px; bottom: 8px; border-left: 3px dotted #dccdf0; }
.item { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; position: relative; margin-left: -23px; }
.item-bubble {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; background: #fff; border: 3px solid var(--c); box-shadow: 0 4px 10px rgba(59,47,90,.08); z-index: 1;
  transition: transform .2s;
}
.item:hover .item-bubble { transform: scale(1.12) rotate(-8deg); }
.item-card { background: var(--card); border-radius: 18px; padding: 12px 16px 14px; box-shadow: var(--shadow); border-top: 4px solid var(--c); transition: transform .15s; }
.item:hover .item-card { transform: translateX(3px); }
.item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.time-pill { font-weight: 800; font-size: .85rem; background: color-mix(in srgb, var(--c) 16%, white); color: color-mix(in srgb, var(--c) 40%, var(--plum)); padding: 2px 10px; border-radius: 999px; }
.cat-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.item-actions { margin-left: auto; display: inline-flex; gap: 2px; }
.item-actions form { margin: 0; }
.item-title { font-family: var(--head); font-weight: 600; font-size: 1.18rem; margin-top: 3px; }
.item-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .92rem; margin-top: 3px; }
.item-meta a { text-decoration: none; }
.item-meta a:hover { text-decoration: underline; }
.item-notes { font-size: .93rem; margin-top: 8px; background: #fbf7ff; border-radius: 10px; padding: 8px 12px; }
.added-by { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.ideas .item-card { border-top-style: dashed; }

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 800; font-size: .95rem; flex: 1; }
input, select, textarea {
  font: inherit; font-weight: 600; padding: 11px 14px; border: 2px solid var(--border); border-radius: 14px;
  background: #fdfbff; color: var(--text); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #b8b2c2; font-weight: 500; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,158,181,.3); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > label { min-width: 170px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 800; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.alert { background: #fff1f4; color: #b4304d; border: 2px solid #ffcbd6; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-weight: 700; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.danger-zone { margin-top: 26px; padding-top: 18px; border-top: 2px dashed var(--border); }

/* picker tiles (vibe, category, sharing) */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.tile-grid.three { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile { position: relative; font-weight: 800; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile span {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; cursor: pointer;
  padding: 12px 8px; border-radius: 16px; color: var(--plum); font-size: .88rem;
  background: var(--tile-bg); border: 3px solid transparent; opacity: .85;
  transition: transform .15s, opacity .15s, box-shadow .15s;
}
.tile span b { font-size: 1.8rem; line-height: 1.2; text-shadow: none; }
.tile span:hover { opacity: 1; transform: translateY(-2px); }
.tile input:checked + span { opacity: 1; border-color: #fff; box-shadow: 0 0 0 3px var(--plum), 0 8px 18px rgba(120,90,170,.25); transform: translateY(-2px) scale(1.03); }
.tile input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 3px; }
.tile.soft span { background: #fdfbff; color: var(--text); border: 2px solid var(--border); opacity: 1; text-shadow: none; }
.tile.soft input:checked + span { background: color-mix(in srgb, var(--c, var(--primary)) 14%, white); border-color: var(--c, var(--primary)); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.tile-grid.cats { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; min-height: calc(100vh - 200px); }
.auth-hero { position: relative; padding: 40px; border-radius: 32px; color: var(--plum); min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  background: linear-gradient(140deg, #c9e9ff 0%, #e2d6ff 35%, #ffd3e1 70%, #fff0bd 100%); box-shadow: 0 20px 50px rgba(150,120,210,.22); }
.auth-hero h1 { font-size: 2.6rem; position: relative; }
.auth-logo { position: relative; width: min(280px, 80%); height: auto; margin-bottom: 8px; }
.auth-hero p { font-size: 1.15rem; font-weight: 700; position: relative; margin: 0; }
.floaties span { position: absolute; font-size: 2.6rem; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(59,47,90,.12)); }
.floaties span:nth-child(1) { top: 8%;  left: 10%; animation-delay: 0s; }
.floaties span:nth-child(2) { top: 14%; left: 62%; animation-delay: -1s; font-size: 3.2rem; }
.floaties span:nth-child(3) { top: 34%; left: 34%; animation-delay: -2s; }
.floaties span:nth-child(4) { top: 30%; left: 80%; animation-delay: -3s; }
.floaties span:nth-child(5) { top: 48%; left: 8%;  animation-delay: -4s; font-size: 3rem; }
.floaties span:nth-child(6) { top: 6%;  left: 38%; animation-delay: -2.5s; font-size: 2rem; }
.floaties span:nth-child(7) { top: 50%; left: 58%; animation-delay: -1.5s; font-size: 2.2rem; }
.floaties span:nth-child(8) { top: 22%; left: 88%; animation-delay: -5s; font-size: 2rem; }
.auth-card { background: var(--card); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.8rem; }
.auth-card .btn.big { width: 100%; }

/* ---------- family ---------- */
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.crew-member { background: var(--card); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .2s; }
.crew-member:hover { transform: translateY(-4px) rotate(1deg); }
.crew-member .muted { word-break: break-all; }
.ticket { display: flex; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); max-width: 640px; margin-bottom: 10px; }
.ticket-main { flex: 1; padding: 22px 26px; background: linear-gradient(135deg, #c9e2ff, #dccfff); color: var(--plum); }
.ticket-main p { margin: 8px 0 0; font-weight: 600; }
.ticket-route { font-family: var(--head); font-size: 1.5rem; font-weight: 700; margin-top: 4px; }
.ticket-stub { padding: 22px 26px; background: #fff; border-left: 3px dashed #d0bfff; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 190px; }
.ticket-label { text-transform: uppercase; font-size: .75rem; font-weight: 800; letter-spacing: .12em; opacity: .85; }
.ticket-stub .ticket-label { color: var(--muted); }
.ticket-code { font-size: 1.6rem; letter-spacing: .12em; margin-top: 6px; background: var(--lav); color: var(--plum); font-weight: 800; padding: 6px 14px; }

/* ---------- route & places ---------- */
.route .section-title { margin-top: 6px; }
.route-strip { display: flex; align-items: center; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; }
.stop-card {
  position: relative; flex: 0 0 220px; height: 150px; border-radius: 20px; overflow: hidden; scroll-snap-align: start;
  background-size: cover; background-position: center; color: var(--fg, #fff); text-decoration: none; font-weight: 600;
  display: flex; align-items: flex-end; box-shadow: var(--shadow); transition: transform .2s;
}
.stop-card:hover { transform: translateY(-4px) rotate(-1deg); }
.stop-num { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.stop-emoji { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); font-size: 2.6rem; }
.stop-info { padding: 12px 14px; display: flex; flex-direction: column; text-shadow: 0 1px 6px var(--glow, rgba(0,0,0,.4)); }
.stop-info b { font-family: var(--head); font-size: 1.3rem; line-height: 1.1; }
.stop-info small { font-size: .82rem; opacity: .95; }
.route-arrow { flex: none; font-size: 1.4rem; color: var(--ink); }
.place-banner {
  margin-top: 36px; border-radius: 24px; min-height: 200px; padding: 22px 26px; color: var(--fg, #fff);
  background-size: cover; background-position: center; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  box-shadow: 0 14px 34px rgba(120,90,170,.18); position: relative; overflow: hidden;
}
.place-banner small { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .78rem; opacity: .95; }
.place-banner h2 { font-size: 2.2rem; margin: 2px 0; text-shadow: 0 2px 14px var(--glow, rgba(0,0,0,.35)); }
.place-banner span { font-weight: 700; text-shadow: 0 1px 6px var(--glow, rgba(0,0,0,.35)); }
.place-banner .credit { color: inherit; font-size: .75rem; opacity: .8; text-decoration: none; font-weight: 600; }
.place-banner .credit:hover { opacity: 1; text-decoration: underline; }
.place-banner + .day { margin-top: 18px; }
.place-chip { font-family: "Nunito", sans-serif; font-size: .8rem; font-weight: 800; color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, white); padding: 2px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }

/* route editing */
.stop-wrap { position: relative; flex: none; scroll-snap-align: start; }
.stop-wrap .stop-card, .stop-card.add-stop { width: 220px; }
.stop-edit {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.2); opacity: .85; transition: opacity .15s, transform .15s;
}
.stop-edit:hover { opacity: 1; transform: scale(1.1); }
.stop-card.add-stop { background: rgba(255,255,255,.6); border: 2.5px dashed #e3d4f3; color: var(--muted); box-shadow: none; align-items: center; justify-content: center; text-align: center; }
.stop-card.add-stop .stop-info { text-shadow: none; align-items: center; }
.stop-card.add-stop .stop-info b { color: var(--text); font-size: 1.1rem; }
.stop-card.add-stop:hover { border-color: var(--primary); color: var(--text); }
.add-plus { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 1.8rem; }
.banner-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.photo-picker { display: flex; flex-direction: column; gap: 8px; }
.current-photo { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.current-photo img { width: 160px; height: 100px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.photo-opt { border: 2px solid var(--border); border-radius: 14px; padding: 10px 14px; background: #fdfbff; transition: border-color .15s, background .15s; }
.photo-opt label { flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 700; }
.photo-opt label input { width: auto; margin-top: 4px; accent-color: var(--primary); }
.photo-opt label span { display: flex; flex-direction: column; }
.photo-opt label small { font-weight: 600; }
.photo-opt .reveal { display: none; margin: 10px 0 2px 26px; }
.photo-opt:has(input[type=radio]:checked) { border-color: var(--primary); background: #fff3f6; }
.photo-opt:has(input[type=radio]:checked) .reveal { display: block; }
input[type=file] { padding: 8px; background: #fff; }

/* ---------- day-by-day planner ---------- */
main.wrap:has(.planner) { max-width: 1240px; }
.planner { margin-top: 26px; scroll-margin-top: 70px; }
.js-planner .panel[hidden] { display: none !important; }
.panel { animation: panel-in .25s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.day-picker {
  position: sticky; top: 64px; z-index: 5; display: flex; gap: 12px; align-items: flex-end; overflow-x: auto;
  padding: 8px 6px 10px; margin: 0 -6px 14px; background: rgba(253,247,255,.92); backdrop-filter: blur(8px);
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.dp-group { flex: none; display: flex; flex-direction: column; gap: 3px; }
.dp-place { font-size: .74rem; font-weight: 800; color: var(--muted); padding-left: 4px; white-space: nowrap; }
.dp-days { display: flex; gap: 6px; }
.dp-chip {
  position: relative; flex: none; width: 50px; height: 64px; border-radius: 16px; border: 2px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--dc, var(--lav)); color: var(--plum); text-decoration: none; font-weight: 800; line-height: 1;
  box-shadow: 0 2px 6px rgba(120,90,170,.14); scroll-snap-align: center; transition: transform .15s, box-shadow .15s;
}
.dp-chip:hover { transform: translateY(-2px) rotate(-2deg); }
.dp-chip.is-free { background: #fff; border: 2px dashed var(--dc, var(--border)); box-shadow: none; }
.dp-chip.on { transform: translateY(-2px) scale(1.08); box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--plum), 0 8px 18px rgba(120,90,170,.28); z-index: 1; }
.dp-dow { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.dp-num { font-family: var(--head); font-size: 1.35rem; font-weight: 700; }
.dp-wx { display: flex; align-items: center; gap: 1px; font-size: .85rem; }
.dp-wx small { font-size: .62rem; font-weight: 800; }
.dp-today { position: absolute; top: -7px; right: -8px; background: var(--sun); color: var(--plum); font-size: .55rem; font-weight: 800; padding: 1px 5px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.dp-special { background: #fff; border: 2px solid var(--border); box-shadow: none; width: 54px; }
.dp-emoji { font-size: 1.35rem; }
.dp-label { font-size: .68rem; }
.dp-label b { background: var(--pink); border-radius: 999px; padding: 0 5px; }

/* weather */
.wx-pill { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; padding: 4px 14px 4px 6px; border-radius: 999px; background: color-mix(in srgb, var(--dc, var(--sky)) 35%, white); font-weight: 700; font-size: .92rem; }
.wx-icon { font-size: 1.4rem; }
.wx-text { color: var(--plum); }
.wx-kind { font-size: .72rem; color: var(--muted); font-weight: 700; }
@media (max-width: 640px) { .wx-pill { gap: 4px 8px; font-size: .85rem; padding: 4px 12px; } .wx-kind { flex-basis: 100%; text-align: center; } }
.ov-wx { display: flex; flex-direction: column; align-items: center; font-size: 1.3rem; line-height: 1.1; min-width: 34px; }
.ov-wx small { font-size: .75rem; font-weight: 800; color: var(--muted); }
.overview-panel .panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.overview-panel .panel-head h2 { flex-basis: 100%; }
.overview-panel .panel-head p { margin: 0; }
.unit-switch { display: inline-flex; }
.unit-switch form, form.unit-switch { display: inline-flex; background: #f3edfb; border-radius: 999px; padding: 2px; margin: 0; }
.unit-switch button { border: 0; background: none; font: inherit; font-weight: 800; font-size: .8rem; padding: 3px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.unit-switch button.on { background: #fff; color: var(--plum); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
form.unit-switch.big button { font-size: .95rem; padding: 8px 18px; }
.wx-credit { margin-top: 10px; }

.planner-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.planner-map { position: sticky; top: 170px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.map-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.seg { display: inline-flex; background: #f3edfb; border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 800; font-size: .85rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg button:disabled { opacity: .45; cursor: default; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.map-box { height: 460px; border-radius: 14px; overflow: hidden; background: #f0ebf7; }
.planner-map.collapsed .map-box, .planner-map.collapsed .map-note, .planner-map.collapsed .seg { display: none; }
.map-note { margin: 8px 4px 2px; }
.pin-wrap { background: none; border: 0; }
.pin { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pc); color: var(--plum); font-family: var(--head); font-weight: 700; font-size: .95rem; border: 2.5px solid #fff; box-shadow: 0 0 0 1.5px rgba(59,47,90,.55), 0 3px 8px rgba(59,47,90,.3); }
.pin.stop { border-radius: 10px; width: 32px; height: 32px; color: #fff; }
.pin.dot { width: 14px; height: 14px; margin: 8px; border-width: 2px; }
.pin-pop { display: flex; flex-direction: column; gap: 4px; font-family: "Nunito", sans-serif; }
.pin-pop img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }
.pin-pop small { color: var(--muted); }

/* all-days overview */
.ov-group { margin-bottom: 18px; }
.ov-stop {
  display: flex; justify-content: space-between; align-items: flex-end; min-height: 74px; padding: 12px 18px; border-radius: 18px;
  color: var(--fg, #fff); background-size: cover; background-position: center; text-shadow: 0 1px 6px var(--glow, rgba(0,0,0,.45)); margin-bottom: 8px;
}
.ov-stop b { font-family: var(--head); font-size: 1.5rem; font-weight: 600; }
.ov-stop span { font-weight: 800; font-size: .9rem; }
.ov-day {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto 20px; align-items: center; gap: 14px;
  background: var(--card); border-radius: 16px; padding: 10px 14px 10px 10px; margin-bottom: 8px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); font-weight: 400; transition: transform .15s, box-shadow .15s;
}
.ov-day:hover { transform: translateX(4px); box-shadow: 0 8px 22px rgba(120,90,170,.16); }
.ov-day.is-today { box-shadow: 0 0 0 3px var(--sun), var(--shadow); }
.ov-num {
  width: 58px; height: 58px; border-radius: 16px; background: var(--dc); color: var(--plum); display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1;
}
.ov-num small { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ov-num b { font-family: var(--head); font-size: 1.7rem; }
.ov-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ov-info > b { font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.ov-words { color: var(--muted); font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ov-words em { font-style: normal; color: var(--ink); font-weight: 800; white-space: nowrap; }
.ov-today { background: var(--sun); color: var(--plum); font-family: "Nunito", sans-serif; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.ov-photos { display: flex; }
.ov-photos img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); margin-left: -14px; }
.ov-photos img:first-child { margin-left: 0; }
.ov-go { font-size: 1.8rem; color: var(--muted); line-height: 1; }

/* one day */
.day-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 4px 0 16px; }
.day-arrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--card);
  box-shadow: var(--shadow); text-decoration: none; color: var(--text); font-weight: 800; white-space: nowrap; transition: transform .15s;
}
.day-arrow:hover { transform: scale(1.05); color: var(--ink); }
.day-heading { text-align: center; }
.day-kicker { color: var(--dc, var(--ink)); font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.day-heading h2 { font-size: 1.6rem; }
.day-panel .place-banner { margin-top: 0; margin-bottom: 16px; }
.add-day { width: 100%; margin-top: 14px; border-style: dashed; color: var(--muted); }
.add-day:hover { color: var(--text); }
.day-panel .free-day { margin-left: 0; }

/* activity cards with photos */
.item { position: relative; }
.item-bubble { position: relative; }
.item-bubble .item-num {
  position: absolute; bottom: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 999px; padding: 0 5px;
  background: var(--dc, var(--lav)); color: var(--plum); font-family: var(--head); font-size: .78rem; display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.item-card { display: flex; gap: 14px; align-items: stretch; padding: 0; overflow: hidden; }
.item-content { flex: 1; min-width: 0; padding: 12px 16px 14px; }
.item-card:not(.has-photo) .item-content { padding-left: 16px; }
.item-photo { width: 190px; flex: none; object-fit: cover; min-height: 140px; max-height: 210px; background: #f3edfb; }
.item-photo.pending { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 1.6rem; }
.item-photo.pending small { font-size: .72rem; font-weight: 700; }
.item-photo.pending span { animation: wiggle 2s ease-in-out infinite; }
.warn-pill { font-size: .72rem; font-weight: 800; color: #c2410c; background: #fff4e6; padding: 2px 8px; border-radius: 999px; }
.photo-credit { margin-left: 4px; }
.item[draggable="true"] .item-card { cursor: grab; }
.item.dragging { opacity: .45; }
.item.dragging .item-card { box-shadow: 0 16px 30px rgba(0,0,0,.2); }
.item.moved .item-card, .item.flash .item-card { animation: flash 1.2s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--sun), var(--shadow); } 100% { box-shadow: var(--shadow); } }
.icon-btn.mv { font-size: .85rem; }
details.notes summary { cursor: pointer; list-style: none; }
details.notes summary::-webkit-details-marker { display: none; }
details.notes summary::after { content: " ▾"; color: var(--muted); }
details.notes[open] summary::after { content: " ▴"; }

@media (max-width: 1000px) {
  .planner-grid { grid-template-columns: 1fr; }
  .planner-map { position: static; }
  .map-box { height: 260px; }
}
@media (max-width: 640px) {
  .topbar nav { gap: 0; }
  .topbar nav a { padding: 6px 8px; }
  .topbar nav form { margin-left: 0; }
  .linklike { font-size: .82rem; padding: 6px 4px; white-space: nowrap; }
  .brand { font-size: 1.2rem; }
  .day-arrow span { display: none; }
  .day-arrow { padding: 12px 16px; font-size: 1.1rem; }
  .day-heading h2 { font-size: 1.25rem; }
  .item-card { flex-direction: column; gap: 0; }
  .item-photo { width: 100%; min-height: 150px; max-height: 190px; }
  .ov-day { grid-template-columns: 48px minmax(0, 1fr) auto 14px; gap: 10px; }
  .ov-num { width: 48px; height: 48px; border-radius: 13px; }
  .ov-num b { font-size: 1.4rem; }
  .ov-photos { display: none; }
  .ov-stop b { font-size: 1.25rem; }
}
@media print {
  .js-planner .panel[hidden] { display: block !important; }
  .day-nav .day-arrow, .add-day, .planner-map, .day-picker { display: none !important; }
  .planner-grid { display: block; }
  .item-photo { max-height: 140px; }
}

/* roles, people & copies */
.notice { background: #ebfbee; color: #2b8a3e; border: 2px solid #b2f2bb; border-radius: 14px; padding: 10px 14px; font-weight: 700; margin-bottom: 12px; }
.role-can { display: block; font-family: "Nunito", sans-serif; font-size: .85rem; font-weight: 600; margin-top: 2px; }
.role-form { margin-top: 6px; width: 100%; }
.role-form select { padding: 6px 10px; font-size: .9rem; }
.invites { display: grid; gap: 14px; }
.ticket-friend { background: linear-gradient(135deg, #c8f2df, #cfe6ff); }
.ticket-general { background: linear-gradient(135deg, #f1edf6, #e2dcec); }
.ticket-stub form { margin-top: 8px; }
.tile-hint { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.tile span .tile-hint { color: inherit; opacity: .85; }
.based-on { margin: -8px 0 14px; font-weight: 700; }
.copy-callout { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 2px dashed #b2f2bb; border-radius: 18px; padding: 12px 16px; margin-bottom: 16px; font-weight: 700; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 700; }
label.check input { width: auto; margin-top: 4px; accent-color: var(--primary); }
.section-hint { margin: -6px 0 12px; }

/* live-update toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 50; background: var(--text); color: #fff; font-weight: 800; padding: 12px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .3s, transform .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- connect Claude ---------- */
.lead { font-size: 1.08rem; max-width: 720px; }
.token-card { border: 2px solid #b2f2bb; background: #f4fff6; }
.code-block { background: var(--plum); color: #f8f9fa; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: .85rem; white-space: pre-wrap; word-break: break-all; }
.tokens { list-style: none; padding: 0; margin: 0 0 16px; }
.tokens li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.token-form { align-items: flex-end; }

/* ---------- motion ---------- */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.wiggle { display: inline-block; animation: wiggle 2.8s ease-in-out infinite; transform-origin: 50% 80%; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; width: 100vw; height: 100vh; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { min-height: 260px; padding: 28px; }
  .auth-hero h1 { font-size: 2rem; }
  .hide-sm { display: none; }
  h1 { font-size: 1.7rem; }
  .trip-hero { padding: 18px 20px 24px; }
  .trip-hero.has-photo { min-height: 0; }
  .trip-hero.has-photo .hero-top { position: static; margin-bottom: 70px; }
  .trip-hero h1 { font-size: 2rem; }
  .next-hero { padding: 24px; }
  .next-hero h2 { font-size: 1.7rem; }
  .free-day { margin-left: 0; }
  .stop-card { flex-basis: 180px; height: 130px; }
  .stop-wrap .stop-card, .stop-card.add-stop { width: 180px; }
  .place-banner { min-height: 160px; padding: 18px; }
  .place-banner h2 { font-size: 1.7rem; }
  .ticket { flex-direction: column; }
  .ticket-stub { border-left: 0; border-top: 3px dashed #d0bfff; }
  .card { padding: 20px; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; }
  .topbar, .footer, .no-print { display: none !important; }
  main.wrap { padding: 0; max-width: none; }
  .trip-hero, .day-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none; }
  .trip-hero { padding: 16px 22px; }
  .card, .item-card, .stat { box-shadow: none; border: 1px solid #ddd; }
  .item { break-inside: avoid; }
  .wiggle, .floaties span { animation: none; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- email codes & password reset ---------- */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.label-row a { font-weight: 700; }
.code-input { font-family: var(--head); font-size: 1.8rem; letter-spacing: .35em; text-align: center; padding: 12px; }
.code-input::placeholder { letter-spacing: .35em; }
.hint-box { background: var(--butter); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.auth-card form.center { margin-top: 10px; }

/* ---------- my account & invitations ---------- */
.me-link { padding: 0 !important; border-radius: 50% !important; display: inline-flex; }
.me-link:hover .avatar { transform: scale(1.08); box-shadow: 0 0 0 3px var(--pink); }
.me-link .avatar { transition: transform .15s, box-shadow .15s; }
.account { max-width: 720px; margin: 0 auto; }
.account-hero { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, var(--sky), var(--lav) 55%, var(--pink)); border: 0; }
.account-hero h1 { margin: 0; }
.account .card h2 { margin-bottom: 6px; }
.devices { list-style: none; padding: 0; margin: 0 0 16px; }
.devices li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.device-icon { font-size: 1.7rem; }
.device-info { flex: 1; display: flex; flex-direction: column; }
.devices form { margin: 0; }
.invite-card { max-width: 820px; }
.small-title { font-size: 1.05rem; margin-top: 26px; }

/* pending invitations */
.invitations { list-style: none; padding: 0; margin: 0 0 10px; max-width: 820px; }
.invitations li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); margin-bottom: 8px; }
.inv-who { flex: 1; display: flex; flex-direction: column; min-width: 200px; }
.invitations form { margin: 0; }

/* ---------- guided tour ---------- */
.tour-shade { position: fixed; inset: 0; z-index: 90; background: rgba(59,47,90,.45); }
.tour-spot { position: fixed; z-index: 91; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 4px #fff, 0 0 0 9999px rgba(59,47,90,.45); transition: all .3s ease; }
.tour-bubble { position: fixed; z-index: 92; width: min(380px, calc(100vw - 24px)); display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border-radius: 22px; padding: 18px 18px 14px; box-shadow: 0 20px 50px rgba(59,47,90,.3);
  border: 3px solid var(--pink); animation: panel-in .25s ease; }
.tour-bubble.center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 24px)); }
.tour-bubble.dock { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; }
.tour-guide { flex: none; animation: bob 3s ease-in-out infinite; }
.tour-body { flex: 1; min-width: 0; }
.tour-body h2 { font-size: 1.25rem; margin: 2px 0 6px; }
.tour-body p { margin: 0 0 10px; line-height: 1.5; }
.tour-dots { color: var(--primary); letter-spacing: 2px; font-size: .7rem; margin-bottom: 10px; }
.tour-actions { display: flex; align-items: center; gap: 8px; }
.tour-gap { flex: 1; }
.tour-skip { padding-left: 0; }
body.tour-on { overflow-x: hidden; }
.tour-bubble [hidden] { display: none !important; }

/* activity & trash */
.activity-card { max-width: 820px; }
.act-list { list-style: none; padding: 0; margin: 0; }
.act-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.act-list li.undone .act-text { opacity: .55; text-decoration: line-through; }
.act-list li.by-ai .act-icon { background: var(--lav); }
.act-icon { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--pink); display: flex; align-items: center; justify-content: center; }
.act-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.act-list form { margin: 0; }
.stat-link { text-decoration: none; color: var(--text); }

/* connect your AI */
.connect-card h2 { margin-top: 10px; }
.copy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.mcp-url { font-size: 1.1rem; padding: 8px 14px; background: var(--lav); user-select: all; }
.ai-steps { display: grid; gap: 8px; margin-bottom: 8px; }
.ai-step { border: 2px solid var(--border); border-radius: 16px; padding: 10px 14px; background: #fdfbff; }
.ai-step summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.ai-step ol { margin: 8px 0 4px; padding-left: 22px; }
.safety-card ul { padding-left: 20px; margin: 0; }
.safety-card li { margin-bottom: 8px; }
.inline-form { display: inline; margin: 0; }
.advanced-card summary { cursor: pointer; }
.consent-card { max-width: 600px; }
.consent-head { display: flex; align-items: center; gap: 14px; }
.consent-head h1 { font-size: 1.6rem; margin: 0; }
.consent-choice { flex-direction: row; align-items: flex-start; gap: 10px; border: 2px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.consent-choice input { width: auto; margin-top: 4px; accent-color: var(--primary); }
.consent-choice span { display: flex; flex-direction: column; gap: 2px; }
.consent-choice:has(input:checked) { border-color: var(--primary); background: #fff3f6; }
.consent-warn { background: var(--butter); border-radius: 14px; padding: 10px 14px; margin: 4px 0 14px; font-size: .95rem; }

/* ---------- quick add & on-the-go ---------- */
.qa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--plum); box-shadow: 0 10px 26px rgba(255,158,181,.6);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; transition: transform .15s; }
.qa-fab b { position: absolute; right: 8px; bottom: 6px; font-size: 1.1rem; }
.qa-fab:hover { transform: scale(1.08) rotate(-6deg); }
.panel[hidden] .qa-fab { display: none; }
.qa-dialog { border: 0; border-radius: 24px; padding: 0; width: min(440px, calc(100vw - 20px)); box-shadow: 0 24px 60px rgba(59,47,90,.35); }
.qa-dialog::backdrop { background: rgba(59,47,90,.45); }
.qa-form { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.qa-form h2 { margin: 0; }
.qa-photo { position: relative; display: flex; align-items: center; justify-content: center; min-height: 140px; border: 2.5px dashed #e3d4f3; border-radius: 18px; background: #fdfbff; cursor: pointer; overflow: hidden; }
.qa-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.qa-photo img { width: 100%; max-height: 240px; object-fit: cover; }
.qa-photo-hint { font-weight: 800; font-size: 1.1rem; }
.qa-near { font-weight: 700; }
.qa-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-cats label { flex-direction: row; flex: none; }
.qa-cats input, .qa-love input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qa-cats span, .qa-love span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--border); background: #fff; cursor: pointer; font-weight: 800; }
.qa-cats input:checked + span { border-color: var(--primary); background: #fff3f6; }
.qa-love { flex-direction: row; align-items: flex-end; flex: none; }
.qa-love input:checked + span { border-color: #ff8fab; background: var(--pink); }
.qa-cats input:focus-visible + span, .qa-love input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.status-pill { font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.status-pill.done { background: var(--mint); color: #2f7a4f; }
.status-pill.skipped { background: #f1edf6; color: var(--muted); }
.item.is-skipped .item-card { opacity: .55; }
.item.is-skipped .item-title { text-decoration: line-through; }
.item.is-done .item-bubble { box-shadow: 0 0 0 3px var(--mint); }
.item-actions form.js-status { display: inline; }
.icon-btn.on { opacity: 1; background: var(--mint); }
.icon-btn.love.on { background: var(--pink); }
.loved-list { margin: 10px 0 16px; }
.loved-list h3 { margin: 0 0 8px; }
.loved-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.loved-card { flex: none; width: 130px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-weight: 400; }
.loved-card img, .loved-emoji { width: 100%; height: 86px; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--pink); }
.loved-card b, .loved-card small { padding: 0 10px; }
.loved-card small { padding-bottom: 8px; color: var(--muted); }
@media print { .qa-fab { display: none !important; } }

/* offline */
.offline-save[hidden] { display: none !important; }
.offline-banner { position: sticky; top: 0; z-index: 60; background: var(--butter); color: var(--plum); text-align: center; font-weight: 800; padding: 8px 14px; font-size: .9rem; box-shadow: 0 2px 8px rgba(59,47,90,.12); }
.offline-banner[hidden] { display: none; }
body.is-offline form[action$="/delete"] { opacity: .45; pointer-events: none; } /* deleting needs signal; adding and ✅ work offline */
.offline-note:empty { display: none; }

/* one-tap invitation link */
.join-note { font-style: italic; color: var(--ink); }
.pw-row { display: flex; gap: 6px; align-items: center; }
.pw-eye { border: 2px solid var(--border); background: #fff; border-radius: 12px; padding: 8px 10px; cursor: pointer; font-size: 1.1rem; }
input:disabled { opacity: .75; }
.qr-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; max-width: 820px; }
.qr svg { width: 180px; height: 180px; display: block; }
.qr-card h2 { margin: 0 0 6px; }

/* admin area */
.nav-admin { background: var(--lav); }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--lav); border-radius: 16px; padding: 10px 16px; margin-bottom: 14px; }
.admin-bar form { margin: 0; }

/* ---------- circles ---------- */
.circle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.circle-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 16px; border-radius: 24px;
  background: linear-gradient(160deg, var(--tint), #fff 85%); box-shadow: var(--shadow); text-decoration: none; color: var(--text); font-weight: 400; transition: transform .18s; }
.circle-card:hover { transform: translateY(-5px) rotate(-1deg); }
.circle-card b { font-family: var(--head); font-size: 1.3rem; }
.circle-card small { color: var(--muted); }
.circle-big-icon { font-size: 3.4rem; animation: bob 4s ease-in-out infinite; display: inline-block; }
.circle-hero { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 28px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--tint), #fff 90%); box-shadow: var(--shadow); }
.circle-hero h1 { margin: 0; }
.circle-hero p { margin: 2px 0 0; color: var(--muted); font-weight: 700; }
.circle-hero-icon { font-size: 4rem; display: inline-block; animation: bob 4s ease-in-out infinite; }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.icon-pick { position: relative; }
.icon-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-pick span { display: flex; align-items: center; justify-content: center; height: 52px; font-size: 1.8rem; border-radius: 16px; border: 2.5px solid var(--border); background: #fff; cursor: pointer; transition: transform .12s; }
.icon-pick span:hover { transform: scale(1.1) rotate(-6deg); }
.icon-pick input:checked + span { border-color: var(--primary); background: var(--pink); transform: scale(1.12); }
.icon-pick input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.circle-trips { list-style: none; padding: 0; margin: 0 0 8px; }
.circle-trips li { padding: 10px 14px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 8px; }
.member-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.member-actions form { margin: 0; }
.leave-form { margin-top: 24px; text-align: center; }
.join-card { max-width: 640px; }
.share-circle { margin-bottom: 12px; }
.share-circle-name { font-family: var(--head); font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.circle-icon { font-size: 1.3rem; }
.circle-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--lav); color: var(--plum); white-space: nowrap; }
.circle-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* profile photos */
.avatar { position: relative; overflow: hidden; }
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-edit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar.xl { width: 110px; height: 110px; font-size: 2.6rem; border-width: 4px; }
.avatar-edit form { margin: 0; }
.avatar-pick { position: relative; overflow: hidden; }
.avatar-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.share-card { max-width: 720px; } .inline-qr { box-shadow: none; padding: 0; margin: 10px 0; } .inline-qr svg { width: 120px; height: 120px; }
.requests-card, .ask-card { background: linear-gradient(135deg, var(--butter), #fff 80%); } .ask-card h2, .requests-card h2 { margin-top: 0; } .role-form.inline { width: auto; margin: 0; }
.about-card { max-width: 620px; text-align: center; } .about-card .auth-logo { width: 240px; } .footer a { color: inherit; }
.test-copy-banner { position: sticky; top: 0; z-index: 70; background: repeating-linear-gradient(45deg, #ffd166, #ffd166 14px, #ffe39a 14px, #ffe39a 28px); color: var(--plum); text-align: center; font-weight: 800; padding: 6px 12px; font-size: .9rem; }

/* ---------- 📱 phone-first (iPhone first) ---------- */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
.tabbar { display: none; }
.sync-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary-ink); color: #fff; font-size: .72rem; font-weight: 800; }
.sync-badge[hidden] { display: none; }

@media (max-width: 760px) {
  body.has-tabbar { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  body.has-tabbar .topbar nav { display: none; }
  body.has-tabbar .topbar .wrap { height: 54px; justify-content: center; }
  .topbar { padding-top: env(safe-area-inset-top); }
  .wrap { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  main.wrap { padding-top: 16px; }
  body.has-tabbar .footer { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; justify-content: space-around; align-items: stretch;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(120,90,170,.10); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 16px; text-decoration: none; color: var(--muted); font-weight: 800; font-size: .72rem; min-height: 50px; }
  .tabbar a > span { font-size: 1.45rem; line-height: 1.2; position: relative; display: inline-flex; }
  .tabbar a.on { color: var(--plum); background: linear-gradient(135deg, #fff0f4, #f3edff); }
  .tabbar a:active { transform: scale(.94); }
  .tabbar .tab-me .avatar { width: 28px; height: 28px; font-size: .8rem; border-width: 2px; }
  .tabbar .tab-me .sync-badge { position: absolute; top: -6px; right: -12px; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; }
  .qa-fab { bottom: calc(88px + env(safe-area-inset-bottom)); right: 16px; }
  /* Bigger, easier taps */
  .btn { min-height: 44px; }
  .btn.small { min-height: 36px; }
  .icon-btn { min-width: 40px; min-height: 40px; font-size: 1.15rem; opacity: .75; display: inline-flex; align-items: center; justify-content: center; }
  .item-actions { order: 9; width: 100%; margin: 6px 0 0; gap: 4px; flex-wrap: wrap; justify-content: flex-start; padding-top: 6px; border-top: 1px dashed var(--border); }
  .trip-hero .actions { flex-wrap: wrap; gap: 6px; }
  .day-picker { scroll-snap-type: x mandatory; }
  .dp-chip { scroll-snap-align: center; }
  input, select, textarea { font-size: 16px; } /* iPhone zooms into smaller text fields */
}

/* "More" links on My account (the top menu lives in the tab bar on phones) */
.more-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0 0 18px; }
.more-links a, .more-links button { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; text-align: left;
  padding: 12px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--text); border: 0; font: inherit; cursor: pointer; width: 100%; min-height: 64px; }
.more-links span { grid-row: 1 / 3; font-size: 1.6rem; text-align: center; }
.more-links b { font-weight: 800; }
.more-links small { grid-column: 2; color: var(--muted); font-size: .82rem; }
.more-links .sync-badge { grid-column: 3; grid-row: 1 / 3; }
.more-links a:active, .more-links button:active { transform: scale(.98); }
.logout-form { margin: 0; }

/* ☀️ Today */
.today { max-width: 640px; margin: 0 auto; }
.today-head { margin-bottom: 8px; }
.today-kicker { font-weight: 800; color: var(--primary-ink); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.today-head h1 { margin: 2px 0 0; font-size: 1.7rem; }
.today-head h1 a { color: inherit; text-decoration: none; }
.today-off { font-weight: 700; }
.today-date { background: linear-gradient(135deg, color-mix(in srgb, var(--dc, var(--pink)) 30%, #fff), #fff 80%); border-radius: 22px; padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.today-date h2 { margin: 2px 0 6px; font-size: 1.35rem; }
.next-up { display: grid; gap: 10px; margin-bottom: 14px; }
.next-up[hidden] { display: none; }
.next-card { border-radius: 24px; padding: 16px 18px; background: linear-gradient(135deg, #fff6d6, #fff 85%); box-shadow: var(--shadow); border: 2px solid #ffe7a3; }
.next-card.now { background: linear-gradient(135deg, var(--mint), #fff 85%); border-color: #b2f2bb; }
.next-card.done { text-align: center; background: linear-gradient(135deg, var(--lav), #fff 85%); border-color: #d7c9ff; }
.next-when { font-weight: 800; font-size: .9rem; }
.next-title { font-family: var(--head); font-size: 1.35rem; font-weight: 600; margin: 2px 0; }
.next-meta { color: var(--muted); font-weight: 700; font-size: .92rem; }
.next-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.next-actions .btn { flex: 1; justify-content: center; text-align: center; }
.today-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.t-item { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 12px 14px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); border-left: 6px solid var(--c, var(--lav)); }
.t-item.is-now { outline: 3px solid #8ce99a; }
.t-item.is-next { outline: 3px solid #ffd43b; }
.t-item.is-done { opacity: .6; }
.t-item.is-skipped { opacity: .45; }
.t-item.is-skipped .t-title { text-decoration: line-through; }
.t-time { font-weight: 800; font-size: .92rem; padding-top: 2px; }
.t-title { font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.t-meta { color: var(--muted); font-weight: 600; font-size: .9rem; margin-top: 2px; }
.t-notes { font-size: .9rem; margin-top: 4px; }
.t-notes summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.t-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.t-actions form { margin: 0; }
.t-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 10px; border-radius: 999px; border: 2px solid var(--border); background: #fff; color: var(--text); font: inherit; font-weight: 800; font-size: .88rem; text-decoration: none; cursor: pointer; }
.t-btn.on { background: var(--mint); border-color: #b2f2bb; }
.t-btn.love.on { background: var(--pink); border-color: #ffb3c6; }
.t-btn:active { transform: scale(.96); }
.today-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.today-add .btn { flex: 1; justify-content: center; }
.today-full { display: block; text-align: center; font-weight: 700; margin: 6px 0 16px; }
.today-tomorrow { margin-top: 6px; }
.today-tomorrow h3 { margin: 2px 0; }
.today-tomorrow[hidden] { display: none; }
.today-next-trip { display: block; text-decoration: none; color: var(--text); background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 60%, #fff), #fff 85%); }
.today-count { display: inline-block; font-weight: 800; background: var(--butter); border-radius: 999px; padding: 4px 12px; }
.today-count b { font-size: 1.3rem; }
.today-preview ul { margin: 6px 0 0; padding-left: 0; list-style: none; }
.today-preview li { padding: 3px 0; font-weight: 600; }
.big-empty { text-align: center; font-size: 3rem; padding: 30px 10px; }
.big-empty p { font-size: 1.1rem; margin: 8px 0 16px; }

/* Waiting to send (offline changes) */
.pending-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 10px 14px; border-radius: 16px; background: repeating-linear-gradient(45deg, #fffaf0, #fffaf0 10px, #fff3d6 10px, #fff3d6 20px); border: 2px dashed #ffd27a; }
.pending-row.has-error { border-color: #ffadbf; background: #fff3f6; }
.pending-icon { font-size: 1.3rem; }
.pending-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pending-text small { font-size: .8rem; }
.pending-box { margin: 10px 0; padding: 12px 14px; border-radius: 18px; background: #fffaf0; border: 2px dashed #ffd27a; }
.pending-box a { font-weight: 800; }
.toast-link { pointer-events: auto; color: #fff; text-decoration: none; }

/* 📱 On this phone */
.phone-page { max-width: 680px; margin: 0 auto; }
.install-card { background: linear-gradient(135deg, var(--sky), #fff 85%); }
.install-card[hidden] { display: none; }
.install-steps { padding-left: 22px; } .install-steps li { margin: 6px 0; font-weight: 600; }
.ios-share { display: inline-block; padding: 0 6px; border-radius: 6px; background: #fff; border: 1px solid var(--border); }
.pending-ops, .saved-trips { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.pending-ops li, .saved-trips li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fdfbff; border: 2px solid var(--border); }
.pending-ops li.has-error { border-color: #ffadbf; background: #fff3f6; }
.saved-trips li.is-skipped { opacity: .7; }
.pending-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.switch-row { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.switch-row input { width: 26px; height: 26px; flex: none; accent-color: var(--primary-ink); margin-top: 2px; }
.switch-row span { display: flex; flex-direction: column; }
.storage-big { font-family: var(--head); font-size: 1.6rem; font-weight: 600; margin: 0 0 6px; }
.storage-bar { height: 12px; border-radius: 999px; background: #f1edf6; overflow: hidden; margin-bottom: 4px; }
.storage-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 999px; }
@media print { .tabbar, .pending-row, .pending-box { display: none !important; } }

/* "Put Wanderly on your Home Screen" tip (iPhone/iPad in Safari) */
.install-tip { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 40px 14px 14px; border-radius: 22px;
  background: linear-gradient(135deg, var(--sky), var(--lav) 60%, #fff); box-shadow: var(--shadow); }
.install-tip ol { margin: 6px 0 4px; padding-left: 20px; font-weight: 600; }
.install-tip li { margin: 2px 0; }
.install-tip small { color: var(--muted); font-weight: 700; }
.install-tip-icon img { border-radius: 13px; box-shadow: 0 4px 10px rgba(59,47,90,.15); display: block; }
.install-tip-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.7); font-size: 1rem; cursor: pointer; color: var(--plum); }

/* 🧭 directions and walking times between plans */
.hop-line { display: inline-block; font-size: .8rem; font-weight: 800; color: var(--ink); background: #f3edff; border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.dir-link { font-weight: 800; white-space: nowrap; }
.t-body .hop-line { margin-bottom: 4px; }
@media print { .hop-line { background: none; padding: 0; } }
.offline-banner.waking { background: var(--lav); }
.offline-banner .linklike { font-weight: 800; color: var(--plum); }

/* 📅 one-tap move */
.move-dialog { border: 0; border-radius: 24px; padding: 20px; width: min(440px, calc(100vw - 24px)); max-height: 80vh; box-shadow: 0 20px 60px rgba(59,47,90,.3); }
.move-dialog::backdrop { background: rgba(59,47,90,.35); }
.move-dialog h2 { margin: 0; }
.move-what { margin: 2px 0 12px; font-weight: 700; }
.move-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; padding: 2px; margin-bottom: 12px; }
.move-day { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; min-height: 56px; border-radius: 16px; border: 2px solid var(--border); background: #fff; font: inherit; cursor: pointer; text-align: left; color: var(--text); }
.move-day b { font-weight: 800; }
.move-day small { color: var(--muted); font-size: .78rem; }
.move-day:hover:not(:disabled) { border-color: var(--primary); background: #fff3f6; }
.move-day:active:not(:disabled) { transform: scale(.97); }
.move-day.is-current { opacity: .55; border-style: dashed; cursor: default; }

/* S-34: gentle "this looks like a card / passport number" note */
.sensitive-note { margin-top: 6px; padding: 8px 12px; border-radius: 12px; background: #fff3d6; border: 2px solid #ffd27a; font-size: .85rem; font-weight: 700; color: var(--plum); }

/* 🎒 packing lists */
.packing { max-width: 680px; margin: 0 auto; }
.pack-head h1 { margin: 6px 0 8px; }
.pack-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pack-bar { flex: 1; height: 14px; border-radius: 999px; background: #f1edf6; overflow: hidden; }
.pack-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8ce99a, #63e6be); transition: width .4s; }
.pack-count { white-space: nowrap; }
.pack-count.all-done { animation: bob 1.2s ease-in-out 2; }
.pack-add { display: grid; gap: 10px; }
.pack-add-row { display: flex; gap: 8px; }
.pack-add-row input { flex: 1; }
.pack-vis { display: flex; gap: 8px; flex-wrap: wrap; }
.pack-vis label { flex-direction: row; flex: none; }
.pack-vis input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pack-vis span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--border); background: #fff; font-weight: 800; cursor: pointer; }
.pack-vis input:checked + span { border-color: var(--primary); background: #fff3f6; }
.pack-vis input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.pack-ideas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pack-idea { border: 2px dashed #d8c9f0; background: #fdfbff; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--text); }
.pack-idea:hover { border-style: solid; border-color: var(--primary); }
.pack-group { margin-top: 18px; }
.pack-group h2 { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.pack-group > p { margin: 2px 0 10px; }
.pack-group.private { padding: 14px; border-radius: 22px; background: repeating-linear-gradient(135deg, #fbf8ff, #fbf8ff 14px, #f6f0ff 14px, #f6f0ff 28px); }
.pack-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pack-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.pack-row form { margin: 0; }
.pack-tick { width: 40px; height: 40px; border-radius: 12px; border: 2.5px solid #d8c9f0; background: #fff; color: transparent; font-size: 1.3rem; font-weight: 900; cursor: pointer; flex: none; }
.pack-tick.on { background: #8ce99a; border-color: #8ce99a; color: #fff; }
.pack-tick:active { transform: scale(.9); }
.pack-text { flex: 1; min-width: 0; }
.pack-text small { display: block; }
.pack-text b { font-weight: 800; }
.pack-row.is-packed .pack-text b { text-decoration: line-through; opacity: .6; }
.pack-cat { font-size: 1.1rem; }
.packed-by { color: #2f7a4f; font-weight: 700; }
.pack-actions { display: flex; gap: 2px; }

/* 👪 parents look after their kids' accounts */
.kids { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kids li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: #fdfbff; border: 2px solid var(--border); }
.kid-who { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; }
.kids form { margin: 0; display: flex; gap: 6px; }
.kid-pw { flex: 1; }
.kid-pw input { min-width: 0; }

/* 🙂 Face ID / fingerprint sign-in */
.passkey-login[hidden], .passkey-add[hidden], .passkey-unsupported[hidden] { display: none; }
.passkey-login { display: grid; gap: 10px; margin-top: 4px; }
.passkey-signin { width: 100%; justify-content: center; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: .85rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 2px; background: var(--border); border-radius: 2px; }

/* 🌙 evening email nudge on Today */
.evening-nudge { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin: 12px 0; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #e6dcff, #fff 85%); font-weight: 700; }
