/* =========================================================
   Tripally – bold, bright, chunky.
   ========================================================= */
:root {
  --ink: #1B1340;
  --ink-2: #4A4270;
  --muted: #6E6890;
  --paper: #FFF8EE;
  --white: #FFFFFF;
  --line: #1B1340;

  --coral: #FF5A5F;
  --orange: #FF8A00;
  --sun: #FFC400;
  --mint: #00C48C;
  --sky: #00B4D8;
  --blue: #3D7BFF;
  --grape: #7B61FF;
  --pink: #FF4D9D;

  --radius: 20px;
  --radius-sm: 14px;
  --border: 3px solid var(--line);
  --shadow: 0 6px 0 var(--line);
  --shadow-sm: 0 4px 0 var(--line);

  --font-display: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--blue); font-weight: 800; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; margin: .8rem 0 0; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.section { padding: 56px 0; }
.section.page-top { padding-top: 36px; }
.section-tint { background: #FFF0DB; border-block: var(--border); }
.section-title { text-align: center; font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 36px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--white);
  --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: 14px 24px;
  font: 900 1.05rem/1.1 var(--font-body);
  color: var(--fg);
  background: var(--bg);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 5px 0 var(--line); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.btn:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; }
.btn-sm { padding: 9px 16px; font-size: .95rem; border-width: 2.5px; }
.btn-lg { padding: 16px 28px; font-size: 1.15rem; }
.btn-xl { padding: 20px 34px; font-size: 1.3rem; border-radius: 18px; box-shadow: var(--shadow); }
.btn-xl:active { transform: translateY(6px); }
.btn-block { width: 100%; }
.btn-coral { --bg: var(--coral); --fg: #fff; }
.btn-sun { --bg: var(--sun); }
.btn-mint { --bg: var(--mint); --fg: #fff; }
.btn-sky { --bg: var(--sky); --fg: #fff; }
.btn-grape { --bg: var(--grape); --fg: #fff; }
.btn-white { --bg: #fff; }
.btn-ghost { --bg: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn-ghost:hover { box-shadow: none; background: rgba(27,19,64,.06); }
.btn-ghost-light { --bg: rgba(255,255,255,.18); --fg: #fff; border-color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.btn-whatsapp { --bg: #25D366; --fg: #fff; }
.btn-danger { --bg: #E5383B; --fg: #fff; }
.btn.is-in { animation: pop .3s ease; }
.link-btn { background: none; border: 0; padding: 0; font: 800 .95rem var(--font-body); color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: #E5383B; }
.icon-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--line); background: #fff; font-weight: 900; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: #FFE3E3; }

/* ---------- Chips, pills, badges ---------- */
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 900; font-size: .9rem; border: 2.5px solid var(--line); }
.pill-sun { background: var(--sun); }
.pill-white { background: #fff; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 900; border: 2px solid var(--line); white-space: nowrap; }
.badge-white { background: #fff; color: var(--ink); }
.badge-ink { background: var(--ink); color: #fff; }
.badge-mint { background: #C9F7E6; }
.badge-sun { background: #FFF0B3; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .92rem; border: 2.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.chip-btn { cursor: pointer; font-family: var(--font-body); }
.chip-btn:hover, .chip-link:hover { background: #FFF0B3; }
.chip-btn.active { background: var(--ink); color: #fff; }
.chip.going { background: #C9F7E6; } .chip.maybe { background: #FFF0B3; } .chip.declined { background: #FFE0E0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,248,238,.92); backdrop-filter: blur(10px); border-bottom: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 74px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-mark { font-size: 1.8rem; display: grid; place-items: center; width: 46px; height: 46px; background: var(--sun); border: var(--border); border-radius: 14px; box-shadow: 0 3px 0 var(--line); transform: rotate(-6deg); }
.logo-word { font: 800 1.7rem var(--font-display); letter-spacing: -0.04em; }
.logo-word span { color: var(--coral); }
.logo-word.small { font-size: 1.4rem; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 900; }
.nav-link:hover { color: var(--coral); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 14px; width: 230px; display: grid; gap: 4px; }
.user-menu-panel small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }

/* ---------- Avatars ---------- */
.avatar { --c: var(--grape); display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 900; font-size: .95rem; border: 2.5px solid var(--line); text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.avatar.xs { width: 22px; height: 22px; font-size: .6rem; border-width: 2px; }
.avatar.sm { width: 30px; height: 30px; font-size: .75rem; border-width: 2px; }
.avatar.lg { width: 54px; height: 54px; font-size: 1.15rem; }
.avatar-stack { display: inline-flex; vertical-align: middle; }
.avatar-stack .avatar + .avatar { margin-left: -10px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 86px; right: 16px; z-index: 100; display: grid; gap: 10px; max-width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 16px; border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); background: #C9F7E6; font-weight: 800; animation: slideIn .35s cubic-bezier(.2,1.4,.4,1); }
.toast-error { background: #FFD6D6; }
.toast-info { background: #D6F3FF; }
.toast-x { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.toast.hide { opacity: 0; transform: translateX(30px); transition: .3s; }

/* ---------- Cards & forms ---------- */
.card { background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 24px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 900; margin-bottom: 14px; }
.form .field { margin-bottom: 0; }
.field > span em { font-weight: 600; color: var(--muted); font-style: normal; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], select, textarea {
  width: 100%; font: 700 1.05rem var(--font-body); color: var(--ink);
  padding: 14px 16px; background: #fff; border: var(--border); border-radius: var(--radius-sm);
  transition: box-shadow .15s, border-color .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(255,196,0,.6); }
input::placeholder, textarea::placeholder { color: #A9A3C4; font-weight: 600; }
.field-xl input { font-size: 1.5rem; padding: 18px 20px; text-align: center; font-family: var(--font-display); }
.field-lg input { font-size: 1.25rem; padding: 16px 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 140px; padding: 10px 14px; }
.small-form { margin-top: 18px; }
.notice { background: #FFF6D6; border: 2.5px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 700; }
.panel { border: var(--border); border-radius: var(--radius); padding: 18px 18px 6px; margin: 0 0 20px; background: #FFFCF6; }
.panel legend { font: 800 1.2rem var(--font-display); padding: 0 8px; }

.toggle { display: flex; align-items: center; gap: 12px; font-weight: 800; cursor: pointer; margin: 14px 0; }
.toggle input { position: absolute; opacity: 0; }
.toggle input + span { width: 52px; height: 30px; border-radius: 999px; background: #E3DEF5; border: 2.5px solid var(--line); position: relative; transition: .2s; flex: none; }
.toggle input + span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transition: .2s; }
.toggle input:checked + span { background: var(--mint); }
.toggle input:checked + span::after { left: 23px; }
.toggle input:focus-visible + span { outline: 3px solid var(--sun); }

.seg { display: inline-flex; border: var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 12px 18px; font-weight: 900; }
.seg label + label span { border-left: var(--border); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: -5px; }
.seg-lg { margin-bottom: 16px; }
.money-input { display: flex; align-items: stretch; }
.money-input i { font-style: normal; display: grid; place-items: center; padding: 0 14px; background: var(--sun); border: var(--border); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-weight: 900; }
.money-input input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- Landing ---------- */
.hero { padding: 56px 0 70px; overflow: hidden; background:
  radial-gradient(circle at 85% 20%, rgba(0,180,216,.18), transparent 40%),
  radial-gradient(circle at 10% 90%, rgba(255,90,95,.15), transparent 40%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.4rem); line-height: .95; margin: 18px 0 20px; }
.squiggle { color: var(--coral); position: relative; display: inline-block; }
.squiggle::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 14px; background: var(--sun); z-index: -1; border-radius: 10px; transform: rotate(-1.5deg); }
.lead { font-size: 1.25rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 12px; }
.hero-note { color: var(--muted); font-weight: 700; }
.hero-art { position: relative; min-height: 460px; }
.mock { position: absolute; background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: 0 8px 0 var(--line); padding: 18px; }
.mock-trip { top: 0; left: 6%; width: 78%; transform: rotate(-3deg); padding: 0; overflow: hidden; animation: float 6s ease-in-out infinite; }
.mock-cover { display: flex; gap: 14px; align-items: center; padding: 22px; background: linear-gradient(135deg, var(--from), var(--to)); color: #fff; border-bottom: var(--border); }
.mock-cover span { font-size: 2.6rem; }
.mock-cover b { display: block; font: 800 1.35rem var(--font-display); }
.mock-rsvp { display: flex; gap: 8px; padding: 16px; flex-wrap: wrap; }
.mock-poll { top: 190px; right: 0; width: 62%; transform: rotate(3deg); animation: float 7s ease-in-out infinite .5s; }
.mock-poll b, .mock-money b { display: block; margin-bottom: 10px; font-family: var(--font-display); }
.bar { position: relative; display: flex; justify-content: space-between; padding: 8px 12px; border: 2.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; font-weight: 800; }
.bar span { position: absolute; inset: 0 auto 0 0; background: #C9F7E6; z-index: 0; }
.bar em, .bar strong { position: relative; font-style: normal; }
.mock-money { top: 300px; left: 0; width: 44%; background: var(--sun); transform: rotate(-4deg); animation: float 6.5s ease-in-out infinite 1s; }
.mock-money .big { font: 800 2.6rem var(--font-display); }
.sticker { position: absolute; font-size: 2.4rem; filter: drop-shadow(0 4px 0 rgba(27,19,64,.25)); animation: float 5s ease-in-out infinite; }
.s1 { top: -10px; right: 4%; } .s2 { bottom: 0; right: 18%; animation-delay: .8s; } .s3 { top: 150px; left: -10px; animation-delay: 1.6s; }

.marquee { background: var(--ink); color: #fff; border-block: var(--border); overflow: hidden; padding: 16px 0; transform: rotate(-1deg); margin: 0 -10px; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; font: 800 1.2rem var(--font-display); }
.marquee-track span { white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.step-card { position: relative; padding: 28px 22px 22px; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--c); }
.step-card .num { position: absolute; top: -22px; left: 18px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 50%; font: 800 1.4rem var(--font-display); border: 3px solid #fff; }
.step-card p { margin: 0; font-weight: 700; }
.c-coral { --c: #FFD1D2; } .c-sun { --c: #FFEFA8; } .c-sky { --c: #C7F0FA; } .c-grape { --c: #E0D9FF; } .c-mint { --c: #C9F7E6; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .15s; }
.feature:hover { transform: translateY(-4px) rotate(-.5deg); }
.f-ico { display: grid; place-items: center; width: 58px; height: 58px; font-size: 1.8rem; background: var(--c); border: var(--border); border-radius: 16px; margin-bottom: 14px; transform: rotate(-5deg); }
.feature p { margin: 0; color: var(--ink-2); font-weight: 600; }
.hl-mint { background: linear-gradient(transparent 60%, #8FF0CC 60%); padding: 0 4px; }
.hl-coral { color: var(--coral); }

.soon-banner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: center; padding: 40px; border: var(--border); border-radius: 28px; box-shadow: 0 8px 0 var(--line); background: linear-gradient(135deg, var(--grape), var(--pink)); color: #fff; }
.soon-banner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 14px; }
.soon-banner .pill { color: var(--ink); }
.soon-banner p { font-size: 1.1rem; font-weight: 700; margin: 0; opacity: .95; }
.soon-icons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.soon-icons span { display: grid; place-items: center; aspect-ratio: 1; font-size: 2.6rem; background: #fff; border: var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); }
.soon-icons span:nth-child(odd) { transform: rotate(-6deg); } .soon-icons span:nth-child(even) { transform: rotate(5deg); }

.faq { background: #fff; border: var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 22px; font: 800 1.15rem var(--font-display); list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '＋'; } .faq[open] summary::after { content: '－'; }
.faq p { padding: 0 22px 18px; margin: 0; font-weight: 600; color: var(--ink-2); }
.final-cta { background: var(--coral); color: #fff; border-top: var(--border); }
.final-cta h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFC9EA; padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .logo-word { color: #fff; }
.site-footer p { margin: 4px 0 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #fff; text-decoration: none; }

/* ---------- Auth ---------- */
.auth-page { padding: 50px 16px; display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); text-align: center; padding: 34px; }
.auth-card .form { text-align: left; margin-top: 20px; }
.auth-emoji { font-size: 3.4rem; display: block; margin-bottom: 6px; }
.auth-switch { margin: 20px 0 0; font-weight: 700; }

.btn-google { gap: 12px; margin-top: 20px; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: var(--muted); font-weight: 800; font-size: .9rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 2px; background: #E3DEF5; }
.auth-card .or-divider + .form { margin-top: 12px; }

.big-toggle { align-items: flex-start; background: #FFFCF6; border: var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin: 6px 0 16px; }
.big-toggle > input + span { margin-top: 2px; }
.toggle-text { flex: 1; min-width: 0; }
.toggle-text small { display: block; font-weight: 700; margin-top: 2px; }
.person-opt small { font-weight: 700; color: var(--muted); }
.person-opt input:disabled + span { cursor: not-allowed; opacity: .35; }

/* ---------- Dashboard ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.page-head h1 { margin: 0; }
.group-title { margin: 30px 0 16px; display: flex; align-items: center; gap: 10px; }
.group-title .count { font-size: 1rem; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 10px; }
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.trip-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; min-height: 230px; color: #fff; text-decoration: none; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: linear-gradient(135deg, var(--from), var(--to)); transition: transform .15s, box-shadow .15s; }
.trip-card:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 10px 0 var(--line); }
.trip-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.trip-emoji { font-size: 2.6rem; filter: drop-shadow(0 3px 0 rgba(0,0,0,.2)); }
.trip-card h3 { font-size: 1.55rem; margin: 10px 0 6px; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.trip-meta { margin: 0; font-weight: 800; opacity: .95; }
.trip-card-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; }
.trip-card-new { background: #fff; color: var(--ink); align-items: center; justify-content: center; border-style: dashed; box-shadow: none; }
.trip-card-new span { font-size: 3rem; line-height: 1; }
.trip-grid.past .trip-card { filter: saturate(.55); }
.empty-state { text-align: center; padding: 50px 24px; }
.empty-emoji { font-size: 4rem; display: block; }

/* ---------- Wizard ---------- */
.wizard { padding: 30px 0 60px; }
.wizard-head { margin-bottom: 22px; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--ink); text-decoration: none; }
.progress { display: flex; list-style: none; padding: 0; margin: 0; gap: 6px; }
.progress li { flex: 1; position: relative; }
.progress li, .progress li > a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 900; font-size: .9rem; text-align: center; color: var(--muted); text-decoration: none; }
.progress .dot { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: var(--border); background: #fff; font: 800 1.1rem var(--font-display); color: var(--ink); position: relative; z-index: 1; }
.progress li::before { content: ''; position: absolute; top: 20px; left: -50%; width: 100%; height: 4px; background: #E3DEF5; z-index: 0; }
.progress li:first-child::before { display: none; }
.progress li.done::before, .progress li.current::before { background: var(--ink); }
.progress li.done .dot { background: var(--mint); color: #fff; }
.progress li.current .dot { background: var(--coral); color: #fff; transform: scale(1.15); box-shadow: 0 3px 0 var(--line); }
.progress li.current, .progress li.done { color: var(--ink); }
.wizard-card { padding: 34px; }
.wizard-title { text-align: center; font-size: clamp(1.9rem, 5vw, 2.6rem); }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.wizard-actions .btn-block { width: 100%; }
.label-lg { font-size: 1.2rem; margin: 26px 0 12px; }

.preview-card { --from: var(--coral); --to: var(--sun); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 20px; margin: 22px 0; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: #fff; background: linear-gradient(135deg, var(--from), var(--to)); text-align: center; transition: background .3s; }
.preview-card.big { padding: 36px 20px; }
.preview-emoji { font-size: 3.2rem; filter: drop-shadow(0 3px 0 rgba(0,0,0,.2)); }
.preview-title { font: 800 clamp(1.5rem, 4vw, 2rem) var(--font-display); text-shadow: 0 2px 0 rgba(0,0,0,.18); word-break: break-word; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); }

.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.emoji-opt input, .theme-opt input, .choice input, .cat-opt input, .chip-opt input, .person-opt input { position: absolute; opacity: 0; pointer-events: none; }
.emoji-opt span { display: grid; place-items: center; aspect-ratio: 1; font-size: 1.8rem; border: var(--border); border-radius: 14px; background: #fff; cursor: pointer; transition: .12s; }
.emoji-opt span:hover { transform: scale(1.08); }
.emoji-opt input:checked + span { background: var(--sun); box-shadow: 0 4px 0 var(--line); transform: translateY(-3px) scale(1.06); }
.emoji-opt input:focus-visible + span, .theme-opt input:focus-visible + span, .choice input:focus-visible ~ b, .cat-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.theme-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.theme-opt span { display: grid; place-items: end center; height: 74px; padding-bottom: 6px; border: var(--border); border-radius: 14px; background: linear-gradient(135deg, var(--from), var(--to)); color: #fff; font-weight: 900; font-size: .85rem; cursor: pointer; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.theme-opt input:checked + span { box-shadow: 0 5px 0 var(--line); transform: translateY(-3px); outline: 3px solid var(--ink); outline-offset: 3px; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.choice-grid.two { grid-template-columns: 1fr 1fr; margin: 6px 0 14px; }
.choice { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 14px; border: var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; transition: .12s; color: var(--ink); text-decoration: none; }
.choice:hover { background: var(--c); }
.choice.small { padding: 14px; }
.choice-ico { font-size: 2.4rem; }
.choice b { font: 800 1.15rem var(--font-display); }
.choice small { color: var(--muted); font-weight: 700; }
.choice:has(input:checked) { background: var(--c); box-shadow: var(--shadow); transform: translateY(-3px); }
.choice:has(input:checked)::after { content: '✓'; position: absolute; top: -12px; right: -12px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 50%; font-weight: 900; border: 3px solid #fff; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.settings-grid .choice { box-shadow: var(--shadow-sm); }

.mode-panel { display: none; }
.mode-panel.show { display: block; animation: fadeUp .25s ease; }
.option-list { display: grid; gap: 10px; margin-bottom: 12px; }
.option-row { display: flex; gap: 10px; align-items: center; }
.option-num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: #fff; font-weight: 900; border: 2.5px solid var(--line); }
.date-row input { min-width: 0; }
.date-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.date-pair .field { margin: 0; }
.date-arrow { font-weight: 900; font-size: 1.4rem; padding-bottom: 12px; }
.date-row .date-arrow { padding: 0; }

.review-list { display: grid; gap: 10px; margin: 0 0 22px; text-align: left; }
.review-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: var(--border); border-radius: var(--radius-sm); background: #FFFCF6; color: var(--ink); text-decoration: none; }
a.review-row:hover { background: #FFF0B3; }
.review-row small { display: block; color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; }
.review-row b { font-weight: 900; }
.r-ico { font-size: 1.6rem; }
.r-edit { margin-left: auto; color: var(--blue); font-weight: 900; }

/* Invite */
.share-box { display: grid; gap: 14px; margin: 18px 0 6px; }
.copy-row { display: flex; gap: 10px; }
.copy-row input { flex: 1; font-size: .95rem; background: #FFFCF6; }
.share-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.confetti { position: relative; overflow: hidden; }
.bounce { animation: bounce 1s ease infinite alternate; }
.rsvp-buttons { display: grid; gap: 12px; margin-bottom: 14px; }
.tabs-mini { display: inline-flex; border: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.tabs-mini button { border: 0; background: #fff; padding: 10px 18px; font: 900 .95rem var(--font-body); cursor: pointer; color: var(--ink); }
.tabs-mini button.active { background: var(--ink); color: #fff; }
.note-quote { margin: 0 0 24px; padding: 18px 22px; background: #FFF6D6; border: var(--border); border-radius: var(--radius-sm); font-weight: 700; font-size: 1.05rem; text-align: left; }
.note-quote cite { display: block; margin-top: 6px; font-style: normal; color: var(--muted); font-size: .9rem; }

/* ---------- Trip page ---------- */
.trip-hero { --from: var(--coral); --to: var(--sun); background: linear-gradient(135deg, var(--from), var(--to)); color: #fff; padding: 34px 0 28px; border-bottom: var(--border); }
.trip-hero-inner { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.trip-hero-emoji { font-size: 4rem; display: grid; place-items: center; width: 100px; height: 100px; background: rgba(255,255,255,.25); border: 3px solid #fff; border-radius: 26px; transform: rotate(-6deg); box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.trip-hero-text { flex: 1; min-width: 240px; }
.trip-hero h1 { margin-bottom: 10px; text-shadow: 0 3px 0 rgba(0,0,0,.15); }
.trip-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { background: rgba(255,255,255,.95); color: var(--ink); padding: 6px 14px; border-radius: 999px; font-weight: 900; border: 2.5px solid var(--line); font-size: .95rem; }
.fact-ink { background: var(--ink); color: #fff; }
.trip-organiser { margin: 10px 0 0; font-weight: 800; opacity: .95; }
.trip-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rsvp-bar { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: rgba(255,255,255,.95); color: var(--ink); padding: 12px; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rsvp-q { font: 800 1.15rem var(--font-display); padding: 0 8px; flex: 1 1 auto; }
.rsvp-btn { flex: 1 1 150px; padding: 14px 18px; font: 900 1.05rem var(--font-body); border: var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; color: var(--ink); transition: .1s; }
.rsvp-btn:hover { transform: translateY(-2px); }
.rsvp-btn.going.active { background: var(--mint); color: #fff; box-shadow: var(--shadow-sm); }
.rsvp-btn.maybe.active { background: var(--sun); box-shadow: var(--shadow-sm); }
.rsvp-btn.declined.active { background: #FFD6D6; box-shadow: var(--shadow-sm); }

.tabs-bar { background: #fff; border-bottom: var(--border); position: sticky; top: 74px; z-index: 40; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tab { display: flex; align-items: center; gap: 8px; padding: 16px 20px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 1.05rem; border-bottom: 5px solid transparent; white-space: nowrap; }
.tab:hover { background: #FFF6E6; }
.tab.active { border-bottom-color: var(--coral); }
.tab-ico { font-size: 1.3rem; }
.tab-count { background: var(--coral); color: #fff; border-radius: 999px; font-size: .78rem; padding: 2px 9px; }
.trip-body { padding-top: 30px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: var(--c); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; text-align: center; }
.stat b { display: block; font: 800 clamp(1.5rem, 3.5vw, 2.2rem) var(--font-display); }
.stat span { font-weight: 800; color: var(--ink-2); }

.checklist h2 { display: flex; justify-content: space-between; align-items: center; }
.checklist h2 small { font-size: 1rem; background: var(--ink); color: #fff; padding: 2px 12px; border-radius: 999px; }
.meter { height: 14px; border: 2.5px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 14px; background: #F1EEFB; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--sky)); }
.check-item { display: flex; align-items: center; gap: 12px; padding: 12px 6px; color: var(--ink); text-decoration: none; font-weight: 800; border-bottom: 2px dashed #E3DEF5; }
.check-item:last-child { border-bottom: 0; }
.check-item .tick { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--line); display: grid; place-items: center; font-weight: 900; flex: none; }
.check-item.done { color: var(--muted); text-decoration: line-through; }
.check-item.done .tick { background: var(--mint); color: #fff; }
.check-item .go { margin-left: auto; color: var(--coral); font-size: 1.3rem; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 34px 0 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.poll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.poll { margin-bottom: 0; }
.poll.closed { background: #FBFAFF; }
.poll-head { display: flex; gap: 8px; margin-bottom: 10px; }
.poll h3 { font-size: 1.35rem; margin-bottom: 2px; }
.poll-options { display: grid; gap: 10px; margin: 14px 0; }
.poll-option { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px; font: 800 1.05rem var(--font-body); color: var(--ink); background: #fff; border: var(--border); border-radius: var(--radius-sm); cursor: pointer; overflow: hidden; text-align: left; transition: transform .08s; }
.poll-option:not(:disabled):hover { transform: translateX(3px); }
.poll-option:not(:disabled):active { transform: scale(.98); }
.poll-option:disabled { cursor: default; }
.poll-fill { position: absolute; inset: 0 auto 0 0; background: #DDF6FF; transition: width .5s ease; z-index: 0; }
.poll-option.mine .poll-fill { background: #BDF3DF; }
.poll-option.winner { background: #FFF0B3; box-shadow: var(--shadow-sm); }
.poll-option.winner .poll-fill { background: #FFE27A; }
.poll-option > span:not(.poll-fill) { position: relative; z-index: 1; }
.poll-check { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2.5px solid var(--line); background: #fff; display: grid; place-items: center; font-weight: 900; }
.poll-option.mine .poll-check { background: var(--mint); color: #fff; }
.poll-option.winner .poll-check { border: 0; background: none; font-size: 1.3rem; }
.poll-label { flex: 1; }
.poll-voters { display: flex; }
.poll-voters .avatar + .avatar { margin-left: -6px; }
.poll-count { font: 800 1.2rem var(--font-display); min-width: 24px; text-align: right; }
.poll-admin { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 2px dashed #E3DEF5; }
.poll-admin .inline-form { flex: 1; }
.add-poll { margin-top: 24px; padding: 0; box-shadow: none; border: 0; background: none; }
.add-poll summary { list-style: none; }
.add-poll summary::-webkit-details-marker { display: none; }
.add-poll[open] { background: #fff; border: var(--border); box-shadow: var(--shadow); padding: 22px; }
.add-poll[open] summary { margin-bottom: 18px; }

/* Plan */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 30px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 12px; background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: .12s; position: relative; overflow: hidden; }
.cat-tile::before { content: ''; position: absolute; inset: 0 0 auto; height: 8px; background: var(--c); }
.cat-tile:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--c) 14%, white); }
.cat-tile span { font-size: 2.4rem; }
.cat-tile b { font: 800 1.1rem var(--font-display); }
.cat-tile small { color: var(--muted); font-weight: 700; font-size: .82rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.day-group { margin-bottom: 30px; }
.day-title { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.day-badge { background: var(--coral); color: #fff; padding: 3px 12px; border-radius: 999px; font-size: .95rem; border: 2.5px solid var(--line); }
.item-list { display: grid; gap: 16px; }
.item-card { --c: var(--grape); display: flex; gap: 18px; padding: 20px; background: #fff; border: var(--border); border-left: 12px solid var(--c); border-radius: var(--radius); box-shadow: var(--shadow-sm); scroll-margin-top: 150px; }
.item-card:target { animation: flash 1.5s ease; }
.item-ico { flex: none; width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.9rem; background: color-mix(in srgb, var(--c) 18%, white); border: var(--border); border-radius: 16px; }
.item-main { flex: 1; min-width: 0; }
.item-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.item-cat { color: var(--c); font-weight: 900; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.item-time { font-weight: 800; font-size: .9rem; color: var(--ink-2); }
.item-card h3 { font-size: 1.35rem; margin: 2px 0 6px; }
.item-loc, .item-details, .item-booking { margin: 0 0 6px; font-weight: 600; color: var(--ink-2); }
.item-loc a { color: var(--ink-2); }
.item-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.item-people { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.item-cost { text-align: right; }
.item-cost b { font: 800 1.4rem var(--font-display); display: block; line-height: 1; }
.item-cost small { color: var(--muted); font-weight: 800; }
.item-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.find-book summary { list-style: none; }
.find-book summary::-webkit-details-marker { display: none; }
.find-book-panel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.book-box { margin-top: 30px; background: #F4F1FF; }
.book-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 2px dashed #DCD5FA; }
.book-cat { font-weight: 900; min-width: 160px; }

/* Item form */
.cat-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.cat-opt span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border: var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-weight: 900; font-size: .9rem; text-align: center; transition: .12s; }
.cat-opt span i { font-style: normal; font-size: 2rem; }
.cat-opt input:checked + span { background: var(--c); color: #fff; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.subtype-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-opt span { display: inline-block; padding: 8px 14px; border: 2.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; }
.chip-opt input:checked + span { background: var(--blue); color: #fff; }
.more { margin: 0 0 16px; }
.more summary { cursor: pointer; font-weight: 900; color: var(--blue); margin-bottom: 12px; }
.people-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.person-opt > span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border: 2.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; opacity: .55; transition: .12s; }
.person-opt input:checked + span { opacity: 1; background: #C9F7E6; box-shadow: 0 3px 0 var(--line); }
.person-opt input:focus-visible + span { outline: 3px solid var(--blue); }
.pick-actions { margin-bottom: 14px; }

/* Money */
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.transfer { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2.5px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; flex-wrap: wrap; }
.transfer.mine { background: #FFF6D6; }
.transfer-text { flex: 1; font-weight: 700; min-width: 120px; }
.transfer-amt { font: 800 1.3rem var(--font-display); }
.record-pay { margin-top: 16px; }
.record-pay summary { list-style: none; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-weight: 700; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 3px solid var(--ink); }
.table td { padding: 12px 10px; border-bottom: 2px dashed #E3DEF5; vertical-align: middle; }
.table td a { color: var(--ink); }
.table tr.me td { background: #FFFBEA; }
.table .pos { color: #00976C; font-weight: 900; }
.table .neg { color: #E5383B; font-weight: 900; }
.pay-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 2px dashed #E3DEF5; }
.pay-row span { flex: 1; }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.person { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.person > div { flex: 1; min-width: 0; }
.person b { display: block; overflow: hidden; text-overflow: ellipsis; }
.person small { font-weight: 800; color: var(--muted); }
.person.rsvp-declined { opacity: .6; }
.danger-zone { margin-top: 34px; padding: 20px; border: 3px dashed #E5383B; border-radius: var(--radius-sm); background: #FFF5F5; }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px) scale(.95); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { 50% { transform: scale(1.08); } }
@keyframes bounce { to { transform: translateY(-10px) rotate(6deg); } }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 6px var(--sun), var(--shadow-sm); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 430px; max-width: 520px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .features { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .money-grid { grid-template-columns: 1fr; }
  .soon-banner { grid-template-columns: 1fr; }
  .soon-icons { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; }
  .tabs-bar { top: 64px; }
  .nav .nav-link { display: none; }
  .logo-word { font-size: 1.4rem; }
  .logo-mark { width: 40px; height: 40px; font-size: 1.5rem; }
  .section { padding: 40px 0; }
  .hero { padding-top: 30px; }
  .hero-actions .btn { width: 100%; }
  .steps, .features { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .emoji-grid { grid-template-columns: repeat(4, 1fr); }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .choice-grid { grid-template-columns: 1fr; gap: 10px; }
  .choice { flex-direction: row; text-align: left; padding: 16px; gap: 14px; }
  .choice b { flex: 1; }
  .choice small { display: none; }
  .choice-grid.two .choice { flex-direction: column; text-align: center; }
  .choice-grid.two { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-picker { grid-template-columns: repeat(3, 1fr); }
  .form-row, .date-pair { grid-template-columns: 1fr; }
  .date-pair .date-arrow { display: none; }
  .wizard-card, .card { padding: 20px; }
  .wizard-actions { flex-direction: column-reverse; }
  .wizard-actions .btn { width: 100%; }
  .progress .lbl { font-size: .75rem; }
  .progress .dot { width: 38px; height: 38px; }
  .progress li::before { top: 17px; }
  .item-card { flex-direction: column; gap: 10px; padding: 16px; }
  .item-ico { width: 48px; height: 48px; font-size: 1.5rem; }
  .trip-hero-emoji { width: 76px; height: 76px; font-size: 3rem; }
  .rsvp-btn { flex-basis: 100%; }
  .copy-row { flex-direction: column; }
  .date-row { flex-wrap: wrap; }
  .date-row input[type=date] { flex: 1 1 40%; }
  .poll-grid { grid-template-columns: 1fr; }
  .tab { padding: 14px 14px; font-size: .98rem; }
  .mock-poll { width: 74%; } .mock-money { width: 52%; }
}

/* =========================================================
   Photos, documents, covers & found pictures
   ========================================================= */
.no-scroll { overflow: hidden; }
.count-pill { font-size: 1rem; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.upload-btn { cursor: pointer; }
.upload-btn:focus-within { outline: 4px solid var(--sun); outline-offset: 3px; }
.uploader { display: inline-flex; margin: 0; }

/* Trip hero with a cover photo */
.trip-hero.has-cover { position: relative; background: linear-gradient(180deg, rgba(27,19,64,.25) 0%, rgba(27,19,64,.7) 100%), var(--cover) center / cover no-repeat, linear-gradient(135deg, var(--from), var(--to)); padding-top: 120px; }
.trip-hero.has-cover h1 { text-shadow: 0 3px 12px rgba(0,0,0,.45); }
.trip-avatar-img { object-fit: cover; padding: 0; border-radius: 50%; transform: none; background: #fff; }
.hero-photo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero-photo-actions .btn { font-size: .85rem; padding: 7px 12px; }

/* Settings: header photos */
.header-photos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; margin: 10px 0 26px; }
.hp-cover { position: relative; aspect-ratio: 16 / 9; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: linear-gradient(135deg, var(--from), var(--to)); display: flex; align-items: flex-end; gap: 12px; padding: 14px; color: #fff; overflow: hidden; }
.hp-cover.has { background: linear-gradient(180deg, transparent 30%, rgba(27,19,64,.7)), var(--cover) center / cover; }
.hp-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; flex: none; background: rgba(255,255,255,.25); }
.hp-emoji { display: grid; place-items: center; font-size: 2rem; }
.hp-title { font: 800 1.3rem var(--font-display); text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.hp-group { display: grid; gap: 2px; margin-bottom: 14px; }
.hp-group small { color: var(--muted); font-weight: 700; }
.hp-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Dashboard + invite preview with covers */
.trip-card.has-cover { background: linear-gradient(180deg, rgba(27,19,64,.15), rgba(27,19,64,.75)), var(--cover) center / cover, linear-gradient(135deg, var(--from), var(--to)); }
.trip-card-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.preview-card.has-cover { background: linear-gradient(180deg, rgba(27,19,64,.15), rgba(27,19,64,.7)), var(--cover) center / cover; min-height: 220px; justify-content: flex-end; }
.preview-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 10px; border-radius: var(--radius); }
.photo-tile { padding: 0; border: var(--border); border-radius: 16px; overflow: hidden; background: #EEE; cursor: zoom-in; aspect-ratio: 1; box-shadow: var(--shadow-sm); transition: transform .12s; }
.photo-tile:hover { transform: translateY(-3px) rotate(-.6deg); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile.small { width: 64px; height: 64px; border-width: 2.5px; border-radius: 12px; box-shadow: 0 3px 0 var(--line); }
.dropzone { text-align: center; border-style: dashed; }
.drag-over { outline: 4px dashed var(--coral); outline-offset: 6px; background: #FFF0E6; }
.doc-card { padding: 10px 18px; }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 2px dashed #E3DEF5; }
.doc-row:last-child { border-bottom: 0; }
.doc-main { flex: 1; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.doc-ico { font-size: 1.9rem; width: 48px; height: 48px; display: grid; place-items: center; background: #F4F1FF; border: 2.5px solid var(--line); border-radius: 12px; flex: none; }
.doc-thumb { width: 48px; height: 48px; object-fit: cover; border: 2.5px solid var(--line); border-radius: 12px; flex: none; }
.doc-text { min-width: 0; }
.doc-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-text small { color: var(--muted); font-weight: 700; }
a.icon-btn { display: grid; place-items: center; text-decoration: none; }

/* Item cards */
.item-ico.has-img { position: relative; width: 104px; height: 104px; padding: 0; overflow: visible; background: #eee; }
.item-ico.has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; display: block; }
.item-ico-badge { position: absolute; left: -10px; bottom: -10px; width: 38px; height: 38px; display: grid; place-items: center; font-size: 1.2rem; background: #fff; border: 2.5px solid var(--line); border-radius: 50%; }
.img-credit { position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; text-decoration: none; }
.item-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; align-items: center; }
.photo-more { width: 64px; height: 64px; display: grid; place-items: center; border: 2.5px dashed var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 900; }
.item-docs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.doc-chip { font-size: .85rem; padding: 5px 12px; }
.item-actions .uploader .btn { padding: 9px 12px; }

/* Picture picker in the item form */
.pic-panel.searching .pic-status::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 8px; border: 3px solid var(--sun); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
.pic-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.pic-options:empty { display: none; }
.pic-opt { position: relative; display: flex; flex-direction: column; padding: 0; border: var(--border); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; text-align: left; font-family: var(--font-body); color: var(--ink); opacity: .7; transition: .12s; }
.pic-opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eee; }
.pic-label { padding: 6px 8px 0; font-weight: 900; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-credit { padding: 0 8px 6px; font-size: .68rem; color: var(--muted); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-label:last-child { padding-bottom: 8px; }
.pic-opt:hover { opacity: 1; }
.pic-opt.selected { opacity: 1; box-shadow: var(--shadow-sm); transform: translateY(-3px); outline: 3px solid var(--mint); outline-offset: 2px; }
.pic-opt.selected::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--mint); color: #fff; border: 2.5px solid var(--line); border-radius: 50%; font-weight: 900; }
.pic-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }

/* Upload progress panel */
.upload-panel { position: fixed; right: 16px; bottom: 16px; z-index: 120; width: min(400px, calc(100% - 32px)); background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; animation: slideIn .3s cubic-bezier(.2,1.4,.4,1); }
.up-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--font-display); }
.up-pct { font-weight: 800; font-size: 1.2rem; }
.up-bar { height: 18px; border: 2.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #F1EEFB; }
.up-bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--coral) 0 14px, #FF7A7E 14px 28px); background-size: 40px 40px; animation: stripes 1s linear infinite; transition: width .2s ease; }
.upload-panel.done .up-bar span { background: var(--mint); animation: none; }
.upload-panel.has-errors .up-bar span { background: var(--sun); }
.up-list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 200px; overflow-y: auto; display: grid; gap: 8px; }
.up-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: .85rem; font-weight: 700; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-state { color: var(--muted); white-space: nowrap; }
.up-list li.ok .up-state { color: #00976C; }
.up-list li.err .up-state { color: #E5383B; white-space: normal; grid-column: 1 / -1; }
.up-mini { grid-column: 1 / -1; height: 5px; background: #EEE; border-radius: 99px; overflow: hidden; }
.up-mini span { display: block; height: 100%; width: 0; background: var(--grape); transition: width .2s; }
.up-list li.ok .up-mini span { background: var(--mint); }
.up-list li.err .up-mini span { background: #E5383B; }
.up-foot { margin-top: 12px; text-align: right; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,10,35,.92); display: flex; align-items: center; justify-content: center; padding: 60px 70px 90px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 190px); border-radius: 14px; border: 3px solid #fff; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #222; }
.lightbox figcaption { color: #fff; font-weight: 800; text-align: center; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: #fff; color: var(--ink); border: var(--border); border-radius: 50%; width: 52px; height: 52px; font-size: 1.6rem; font-weight: 900; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: 16px; right: 16px; font-size: 1.2rem; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-actions { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 0 10px; }
.lb-actions form { margin: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stripes { to { background-position: 40px 0; } }

@media (max-width: 640px) {
  .header-photos { grid-template-columns: 1fr; }
  .trip-hero.has-cover { padding-top: 90px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .photo-tile { border-width: 2.5px; border-radius: 12px; }
  .item-ico.has-img { width: 100%; height: 170px; }
  .item-ico-badge { left: 10px; bottom: 10px; }
  .lightbox { padding: 60px 8px 120px; }
  .lb-prev, .lb-next { top: auto; bottom: 70px; transform: none; width: 44px; height: 44px; }
  .upload-panel { right: 8px; bottom: 8px; width: calc(100% - 16px); }
}

/* =========================================================
   Landing page photos
   ========================================================= */
.hero-art { min-height: 680px; }
.polaroid { position: absolute; right: -6px; top: 430px; width: 46%; margin: 0; padding: 10px 10px 0; background: #fff; border: var(--border); border-radius: 10px; box-shadow: 0 8px 0 var(--line); transform: rotate(5deg); z-index: 3; animation: float 7.5s ease-in-out infinite .3s; }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: #EDE7DC; }
.polaroid figcaption { font: 800 1.05rem var(--font-display); text-align: center; padding: 8px 0 10px; }
.mock { z-index: 1; }
.mock-money { z-index: 2; }

.photo-section { padding-top: 70px; }
.photo-lead { max-width: 46em; margin: -18px auto 34px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 18px; }
.bento-tile { position: relative; margin: 0; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #EDE7DC; transition: transform .2s; }
.bento-tile:nth-child(odd) { transform: rotate(-.6deg); }
.bento-tile:nth-child(even) { transform: rotate(.6deg); }
.bento-tile:hover { transform: rotate(0) translateY(-4px); }
.bento-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.bento-tile:hover img { transform: scale(1.05); }
.bento-tile figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: #fff; border: 2.5px solid var(--line); border-radius: 999px; font: 800 1rem var(--font-display); box-shadow: 0 3px 0 var(--line); }
.bento-dining { grid-row: span 2; }
.bento-dining img { object-position: center 30%; }
.bento-roadtrip { grid-column: span 2; }
.bento-festival { grid-column: span 2; }
.photo-credit { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 700; margin: 26px 0 0; }
.photo-credit a { color: var(--muted); }

.final-cta.has-photo { position: relative; background: linear-gradient(rgba(255, 90, 95, .86), rgba(255, 90, 95, .86)), var(--photo) center 40% / cover no-repeat, var(--coral); padding: 90px 0; }
.final-cta.has-photo h2 { text-shadow: 0 3px 10px rgba(0, 0, 0, .2); }

@media (max-width: 960px) {
  .hero-art { min-height: 640px; }
  .polaroid { top: 410px; width: 46%; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento-dining { grid-row: span 2; }
  .bento-roadtrip, .bento-festival { grid-column: span 2; }
}
@media (max-width: 640px) {
  .hero-art { min-height: 600px; }
  .polaroid { top: 400px; width: 56%; right: -4px; padding: 7px 7px 0; }
  .polaroid figcaption { font-size: .9rem; padding: 5px 0 7px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 12px; }
  .bento-tile figcaption { font-size: .85rem; padding: 5px 10px; left: 8px; bottom: 8px; }
}

/* Hero background photo: clear on the left, cream fade on the right behind the mock-up cards */
.hero.has-photo {
  background:
    linear-gradient(270deg, rgba(255,248,238,.97) 0%, rgba(255,248,238,.92) 30%, rgba(255,248,238,.55) 52%, rgba(255,248,238,.18) 72%, rgba(255,248,238,.08) 100%),
    var(--photo) 70% 45% / cover no-repeat,
    var(--paper);
}
/* Keep the copy readable now it sits on the photo */
.hero.has-photo .hero-copy h1 { text-shadow: 0 2px 18px rgba(255,248,238,.85), 0 0 4px rgba(255,248,238,.6); }
.hero.has-photo .hero-copy .lead,
.hero.has-photo .hero-note { display: inline-block; background: rgba(255,248,238,.82); padding: 10px 14px; border-radius: 14px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.hero.has-photo .hero-note { padding: 6px 12px; }
.hero.has-photo .hero-note { color: var(--ink-2); }
@media (max-width: 960px) {
  .hero.has-photo {
    background:
      linear-gradient(180deg, rgba(255,248,238,.95) 0%, rgba(255,248,238,.9) 45%, rgba(255,248,238,.45) 75%, rgba(255,248,238,.2) 100%),
      var(--photo-sm) center 60% / cover no-repeat,
      var(--paper);
  }
}

/* =========================================================
   Plan ordering, check-outs & returns
   ========================================================= */
.order-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 20px; padding: 12px 16px; background: #fff; border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.order-label { font-weight: 900; }
.order-seg { margin: 0; }
.order-seg button { border: 0; background: #fff; padding: 10px 16px; font: 900 .95rem var(--font-body); color: var(--ink); cursor: pointer; }
.order-seg button + button { border-left: var(--border); }
.order-seg button.on { background: var(--ink); color: #fff; }
.order-hint { color: var(--muted); font-weight: 700; font-size: .9rem; flex: 1; min-width: 200px; }
.order-bar form { margin: 0; }

.plan-entry { display: flex; gap: 10px; align-items: stretch; }
.plan-entry-body { flex: 1; min-width: 0; }
.plan-entry-body > .item-card, .plan-entry-body > .end-card { height: 100%; }
.order-ctrl { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.order-ctrl form { margin: 0; }
.order-btn { width: 40px; height: 40px; border: 2.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 900; cursor: pointer; color: var(--ink); box-shadow: 0 3px 0 var(--line); }
.order-btn:hover:not(:disabled) { background: var(--sun); }
.order-btn:disabled { opacity: .3; cursor: default; box-shadow: none; }
.drag-handle { font-size: 1.4rem; line-height: 1; cursor: grab; color: var(--muted); user-select: none; padding: 2px 6px; }
.plan-entry.dragging { opacity: .45; }
.plan-entry.dragging .item-card, .plan-entry.dragging .end-card { outline: 3px dashed var(--coral); outline-offset: 3px; }
.item-list.saved .plan-entry-body > * { transition: box-shadow .3s; box-shadow: 0 0 0 4px rgba(0,196,140,.35), var(--shadow-sm); }

.end-card { --c: var(--grape); display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: repeating-linear-gradient(135deg, #fff 0 14px, #FBF9FF 14px 28px); border: var(--border); border-left: 12px solid var(--c); border-style: solid; border-radius: var(--radius); box-shadow: var(--shadow-sm); scroll-margin-top: 150px; }
.end-ico { position: relative; flex: none; width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.7rem; background: color-mix(in srgb, var(--c) 18%, white); border: var(--border); border-radius: 16px; overflow: hidden; }
.end-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.end-ico span { position: relative; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.end-main { flex: 1; min-width: 0; }
.end-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.end-label { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--c); }
.end-card h3 { font-size: 1.15rem; margin: 2px 0; }
.end-sub { margin: 0; color: var(--muted); font-weight: 700; font-size: .9rem; }
.end-link { flex: none; font-weight: 900; font-size: .9rem; text-decoration: none; color: var(--ink-2); }
.upcoming-day { font: 800 .85rem var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 -8px 4px; }
.item-time { background: #F4F1FF; border-radius: 999px; padding: 2px 10px; }

@media (max-width: 640px) {
  .order-ctrl { gap: 4px; }
  .order-btn { width: 34px; height: 34px; }
  .drag-handle { display: none; }
  .end-card { padding: 12px; gap: 10px; }
  .end-ico { width: 46px; height: 46px; font-size: 1.3rem; }
  .end-link { display: none; }
}

/* Return journeys */
.return-box { border: 2.5px dashed var(--line); border-radius: var(--radius-sm); padding: 4px 16px 6px; margin: 0 0 18px; background: #F6FBFF; }
.return-box .toggle { margin: 10px 0; flex-wrap: wrap; }
.form-row.three { grid-template-columns: 1.3fr 1fr 1fr; }
.end-card.is-return { background: repeating-linear-gradient(135deg, #fff 0 14px, #F1F7FF 14px 28px); }
@media (max-width: 640px) { .form-row.three { grid-template-columns: 1fr; } }

/* =========================================================
   Compact plan cards: picture | details & actions | cost & photos
   ========================================================= */
.item-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 16px; align-items: start; border-left-width: 10px; }
.item-ico { width: 76px; height: 76px; font-size: 2rem; }
.item-ico.has-img { width: 76px; height: 76px; }
.item-ico.has-img img { border-radius: 12px; }
.item-ico-badge { width: 30px; height: 30px; font-size: .95rem; left: -8px; bottom: -8px; }
.item-top { gap: 6px; margin-bottom: 2px; }
.item-top .badge { font-size: .72rem; padding: 2px 8px; }
.item-time { font-size: .82rem; padding: 1px 9px; }
.item-card h3 { font-size: 1.2rem; margin: 2px 0 2px; }
.item-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 2px; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.item-meta a { color: var(--ink-2); }
.item-details { margin: 2px 0; font-size: .9rem; font-weight: 600; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.item-bar form { margin: 0; }
.item-bar .btn-sm { padding: 6px 12px; font-size: .88rem; border-width: 2.5px; box-shadow: 0 3px 0 var(--line); }
.item-people { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .85rem; color: var(--ink-2); margin-right: 2px; }
.item-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.tool, .btn.tool { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; font: 800 .85rem var(--font-body); color: var(--ink); background: transparent; border: 2px solid transparent; border-radius: 10px; box-shadow: none; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tool:hover, .btn.tool:hover { background: #F4F1FF; border-color: var(--line); transform: none; box-shadow: none; filter: none; }
.btn.tool:active { transform: none; }
.find-book { position: relative; }
.find-book summary { list-style: none; }
.find-book summary::-webkit-details-marker { display: none; }
.find-book[open] .find-book-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: max-content; max-width: 320px; padding: 10px; background: #fff; border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin: 0; }

.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 140px; max-width: 230px; }
.item-cost { text-align: right; }
.item-cost b { font: 800 1.35rem var(--font-display); display: block; line-height: 1.1; }
.item-cost small { display: block; color: var(--muted); font-weight: 800; font-size: .8rem; }
.item-cost .if-guests { color: var(--coral); }
.item-cost .your-bit { color: #00976C; }
.item-photos { display: grid; grid-template-columns: repeat(4, 46px); gap: 6px; margin: 0; justify-content: end; }
.item-photos > span[hidden] { display: none !important; }
.photo-tile.small { width: 46px; height: 46px; border-width: 2px; border-radius: 10px; box-shadow: 0 2px 0 var(--line); }
.photo-more { width: 46px; height: 46px; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 900 .9rem var(--font-body); cursor: pointer; }
.item-docs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 0; }
.doc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; font-weight: 800; font-size: .78rem; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; }
.doc-chip:hover { background: #FFF0B3; }
.item-list { gap: 12px; }
.day-group { margin-bottom: 22px; }

/* Check-out / return cards to match */
.end-card { padding: 10px 16px; }
.end-ico { width: 52px; height: 52px; font-size: 1.4rem; }
.end-card h3 { font-size: 1.08rem; }

/* =========================================================
   Cost panel with "if N people go" calculator
   ========================================================= */
.cost-panel { display: grid; grid-template-columns: 1fr 1fr 1.25fr; background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 0 0 24px; overflow: hidden; scroll-margin-top: 150px; }
.cp-col { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-right: 2px dashed #E3DEF5; }
.cp-col > small { font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: .74rem; color: var(--muted); margin-bottom: 2px; }
.cp-col > b { font: 800 1.5rem var(--font-display); line-height: 1.15; }
.cp-col > b.cp-plus { font-size: 1.2rem; margin-top: 4px; }
.cp-col > span { font-weight: 700; color: var(--muted); font-size: .84rem; }
.cp-calc { background: #FFF6D6; border-right: 0; }
.cp-tag { font-style: normal; background: var(--ink); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .62rem; margin-left: 4px; letter-spacing: .04em; vertical-align: middle; }
.cp-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0; }
.stepper { display: inline-flex; align-items: stretch; border: var(--border); border-radius: 999px; overflow: hidden; background: #fff; box-shadow: 0 3px 0 var(--line); }
.stepper button { width: 42px; border: 0; background: var(--sun); font: 900 1.35rem var(--font-body); color: var(--ink); cursor: pointer; }
.stepper button:hover { background: #FFD84D; }
.stepper input { width: 64px; border: 0; border-left: var(--border); border-right: var(--border); border-radius: 0; text-align: center; font: 900 1.25rem var(--font-body); padding: 6px 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; background: #FFFBEA; }
.cp-each { display: flex; align-items: baseline; gap: 6px; }
.cp-each b { font: 800 2rem var(--font-display); color: var(--coral); line-height: 1; }
.cp-each span { font-weight: 800; color: var(--ink-2); }
.cp-save { margin: 2px 0 0; }
.cp-note { grid-column: 1 / -1; margin: 0; padding: 9px 18px; background: #FBF9FF; border-top: 2px dashed #E3DEF5; font-size: .84rem; font-weight: 700; color: var(--ink-2); }

@media (max-width: 960px) {
  .item-card { grid-template-columns: 68px minmax(0, 1fr); }
  .item-ico, .item-ico.has-img { width: 68px; height: 68px; }
  .item-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; max-width: none; min-width: 0; margin-top: 6px; padding-top: 8px; border-top: 2px dashed #E3DEF5; }
  .item-cost { text-align: left; }
  .cost-panel { grid-template-columns: 1fr 1fr; }
  .cp-calc { grid-column: 1 / -1; border-top: 2px dashed #E3DEF5; }
}
@media (max-width: 640px) {
  .item-card { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 12px; flex-direction: initial; }
  .item-ico, .item-ico.has-img { width: 56px; height: 56px; font-size: 1.6rem; }
  .item-ico-badge { width: 26px; height: 26px; font-size: .8rem; left: -6px; bottom: -6px; }
  .item-side { grid-column: 1 / -1; }
  .item-card h3 { font-size: 1.08rem; }
  .cp-col { padding: 12px 14px; }
  .cp-col > b { font-size: 1.25rem; }
  .cp-col > b.cp-plus { font-size: 1.05rem; }
  .cp-col > span { font-size: .78rem; }
  .cp-each b { font-size: 1.7rem; }
  .cp-note { padding: 8px 14px; font-size: .78rem; }
  .order-bar { padding: 10px 12px; }
}

/* =========================================================
   Wizard step 1: header photo + trip photo
   ========================================================= */
.header-pics { margin: 4px 0 26px; }
.header-pics .pic-opt img { aspect-ratio: 16 / 9; }
.own-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 8px; }
.own-photo { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 3px dashed var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: .12s; }
.own-photo:hover { background: var(--paper); transform: translateY(-2px); }
.own-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.own-photo:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.own-icon { font-size: 1.8rem; }
.own-photo b { display: block; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.own-photo small { display: block; color: var(--muted); font-weight: 700; font-size: .8rem; }
.own-photo.chosen { border-style: solid; border-color: var(--mint); background: #EFFBF6; }
.preview-card .preview-avatar { box-shadow: 0 4px 0 rgba(0,0,0,.2); }
.preview-card [hidden] { display: none; }
@media (max-width: 640px) { .own-photos { grid-template-columns: 1fr; } }

/* =========================================================
   Trip options (alternatives)
   ========================================================= */
.btn-ink { --bg: var(--ink); --fg: #fff; }
.fact-sun { background: var(--sun); color: var(--ink); text-decoration: none; }
.fact-sun:hover { background: #FFD84D; }
.opt-letter { --oc: var(--coral); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--oc); color: #fff;
  font-style: normal; font-weight: 900; font-family: var(--font-display); border: 2.5px solid var(--line); flex: none; font-size: .9rem; }
.opt-letter.big { width: 46px; height: 46px; border-radius: 14px; font-size: 1.5rem; box-shadow: var(--shadow-sm); }
.lA { --oc: var(--coral); } .lB { --oc: var(--blue); } .lC { --oc: var(--mint); } .lD { --oc: var(--grape); }
.lE { --oc: var(--orange); } .lF { --oc: var(--pink); } .lG { --oc: var(--sky); } .lall { --oc: var(--ink); }

/* switcher above the overview/plan/money */
.opt-switch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 10px 14px; margin-bottom: 22px; }
.opt-switch.is-locked { background: #F1FBF7; }
.opt-switch-label { font-weight: 900; color: var(--muted); }
.opt-switch-btns { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.opt-tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 14px; border: 2.5px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 900; text-decoration: none; max-width: 260px; transition: .12s; }
.opt-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-tab:hover { transform: translateY(-2px); }
.opt-tab.on { background: var(--ink); color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.opt-tab.faded:not(.on) { opacity: .55; }
.opt-tab.opt-add { border-style: dashed; padding-left: 12px; color: var(--muted); }
.opt-flag { font-style: normal; }
.opt-compare { font-weight: 900; color: var(--ink); white-space: nowrap; }

/* comparison panel on the overview */
.options-panel { background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 26px; }
.options-panel.is-locked { background: linear-gradient(180deg, #EFFBF6, #fff 140px); }
.options-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.options-head h2 { margin: 0 0 4px; }
.options-head p { margin: 0; }
.vote-split { display: flex; height: 38px; border: var(--border); border-radius: 14px; overflow: hidden; background: #F3F1FA; }
.vs-seg { background: var(--oc); color: #fff; display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 900; min-width: 0; white-space: nowrap;
  overflow: hidden; transition: flex-basis .4s; border-right: 2.5px solid var(--line); }
.vs-seg:last-child { border-right: 0; }
.vs-seg.empty { flex-basis: 0 !important; border: 0; }
.vs-caption { margin: 6px 0 16px; }
.options-grid { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 18px; }
.option-card { border: var(--border); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: 0 5px 0 var(--oc); transition: .15s; }
.option-card.my-vote { outline: 4px solid var(--sun); outline-offset: 2px; }
.option-card.chosen { box-shadow: 0 6px 0 var(--mint); outline: 4px solid var(--mint); outline-offset: 2px; }
.option-card.not-chosen { opacity: .6; filter: grayscale(.4); }
.oc-pic { position: relative; display: block; height: 130px; background: linear-gradient(135deg, var(--oc), color-mix(in srgb, var(--oc) 55%, #fff)); border-bottom: var(--border); }
.oc-pic.has-pic { background: var(--pic) center / cover, var(--oc); }
.oc-pic .opt-letter { position: absolute; left: 12px; bottom: -22px; }
.oc-ribbon { position: absolute; right: 10px; top: 10px; background: #fff; border: 2.5px solid var(--line); border-radius: 999px; padding: 3px 10px; font-weight: 900; font-size: .85rem; }
.oc-ribbon.lead { background: var(--sun); }
.oc-body { padding: 28px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.oc-body h3 { margin: 0; font-size: 1.25rem; }
.oc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--ink-2); font-weight: 800; font-size: .92rem; }
.oc-note { margin: 0; color: var(--muted); font-style: italic; font-size: .92rem; }
.oc-cats { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; font-weight: 900; }
.oc-cats span { background: #F3F1FA; padding: 2px 9px; border-radius: 999px; font-size: .9rem; }
.oc-price { background: #FFF6D6; border: 2.5px solid var(--line); border-radius: 14px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.oc-price b { font-family: var(--font-display); font-size: 1.6rem; }
.oc-price span { color: var(--ink-2); font-weight: 800; font-size: .9rem; }
.oc-price em { flex-basis: 100%; color: var(--coral); font-weight: 900; font-style: normal; font-size: .9rem; }
.oc-price.empty { background: #F7F6FB; }
.oc-votes { display: grid; gap: 6px; }
.oc-bar { height: 10px; border-radius: 999px; background: #EEEAF8; border: 2px solid var(--line); overflow: hidden; }
.oc-bar span { display: block; height: 100%; background: var(--oc); transition: width .4s; }
.oc-voters { display: flex; align-items: center; gap: 4px; font-weight: 800; color: var(--ink-2); font-size: .92rem; }
.oc-voters .avatar { margin-right: -6px; }
.oc-voters b { margin-left: 10px; }
.oc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.oc-actions form { margin: 0; }
.oc-edit { margin-left: auto; text-decoration: none; font-size: 1.1rem; }

/* option chooser in the item form */
.opt-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.opt-chip input { position: absolute; opacity: 0; }
.opt-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border: 2.5px solid var(--line); border-radius: 14px; font-weight: 900; cursor: pointer; background: #fff; }
.opt-chip input:checked + span { background: var(--ink); color: #fff; box-shadow: 0 3px 0 var(--sun); }
.opt-chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.badge-every { background: #EEEAF8; }

/* option form */
.wizard-emoji { display: block; text-align: center; font-size: 3rem; }
.wizard-sub { text-align: center; color: var(--ink-2); margin: -4px auto 22px; max-width: 520px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.start-from { display: grid; gap: 10px; margin-bottom: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.radio-card:has(input:checked) { background: #FFF6D6; box-shadow: 0 3px 0 var(--line); }
.radio-card input { margin-top: 5px; accent-color: var(--coral); width: 18px; height: 18px; }
.radio-card b { display: block; }
.radio-card small { color: var(--muted); font-weight: 700; }
.alt-line { margin: -6px 0 22px; color: var(--ink-2); font-weight: 700; }
.alt-line a { font-weight: 900; color: var(--ink); }
.alt-cta h3 { margin: 0 0 4px; }
.alt-cta { padding: 18px; }

/* dashboard card: split between options */
.card-split { display: flex; gap: 0; margin: 8px 0 4px; border: 2.5px solid rgba(255,255,255,.9); border-radius: 12px; overflow: hidden; }
.cs-seg { background: var(--oc); color: #fff; display: flex; align-items: center; gap: 6px; padding: 6px 8px; min-width: 0; font-weight: 900; border-right: 2px solid rgba(255,255,255,.9); }
.cs-seg:last-child { border-right: 0; }
.cs-seg.empty { flex-basis: auto !important; flex-shrink: 1; opacity: .8; }
.cs-seg b { background: rgba(0,0,0,.25); border-radius: 6px; padding: 0 6px; }
.cs-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.cs-seg small { margin-left: auto; font-size: .8rem; }

/* =========================================================
   Overview layout + the wall
   ========================================================= */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 10px; }
.overview-side { position: sticky; top: 16px; }
.overview-side .card { margin-bottom: 18px; }
.wall .section-head { margin-top: 0; }
.composer { padding: 16px; margin-bottom: 18px; }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer textarea { flex: 1; border: 2.5px solid #DAD5EC; border-radius: 16px; padding: 12px 14px; font: inherit; font-size: 1.05rem; resize: none; min-height: 52px; background: #FBFAFF; color: var(--ink); }
.composer textarea:focus { outline: none; border-color: var(--line); background: #fff; }
.composer-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-left: 52px; }
.composer-attach { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 900; padding: 8px 14px; border-radius: 999px; background: #EEF7FF; border: 2.5px solid var(--line); cursor: pointer; }
.composer-attach:hover { background: #DDEEFF; }
.composer-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.composer-attach:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.composer-hint { flex: 1; }
.composer-previews { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 52px; }
.cp-thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 2.5px solid var(--line); background: #000; }
.cp-thumb img, .cp-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-thumb small { position: absolute; left: 4px; bottom: 3px; color: #fff; font-weight: 900; font-size: .7rem; text-shadow: 0 1px 3px #000; }
.cp-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; text-shadow: 0 2px 6px #000; pointer-events: none; }
.cp-x { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-weight: 900; cursor: pointer; line-height: 1; padding: 0; }
.composer-progress { position: relative; height: 22px; margin: 12px 0 0 52px; border: 2.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #F3F1FA; }
.composer-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--mint); transition: width .2s; }
.composer-progress b { position: relative; display: block; text-align: center; font-size: .8rem; line-height: 17px; }
.composer-error { margin: 10px 0 0 52px; color: #C2185B; font-weight: 800; }
.wall-empty { display: flex; gap: 14px; align-items: center; padding: 18px; border: 3px dashed #CFC8E6; border-radius: var(--radius); background: #fff; }
.wall-empty span { font-size: 2.4rem; }
.wall-empty p { margin: 0; color: var(--ink-2); }
.feed { display: grid; gap: 16px; }
.post { padding: 16px 18px; margin: 0; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-who { flex: 1; display: grid; line-height: 1.2; }
.post-who time { color: var(--muted); font-weight: 700; font-size: .85rem; }
.post-del .icon-btn { width: 32px; height: 32px; border-color: transparent; background: transparent; }
.post-del .icon-btn:hover { background: #FFE3E3; border-color: var(--line); }
.post-body { margin: 10px 0 4px; font-size: 1.05rem; line-height: 1.5; overflow-wrap: anywhere; }
.post-body.big { font-size: 1.35rem; font-weight: 800; font-family: var(--font-display); }
.post-body a { color: var(--blue); font-weight: 800; }
.post-media { display: grid; gap: 6px; margin: 12px 0 4px; border-radius: 14px; overflow: hidden; }
.post-media.n1 { grid-template-columns: 1fr; }
.post-media.n2 { grid-template-columns: 1fr 1fr; }
.post-media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-media.n3 > :first-child { grid-row: span 2; }
.post-media.n4 { grid-template-columns: 1fr 1fr; }
.post-media .photo-tile { border-radius: 0; border: 0; box-shadow: none; margin: 0; aspect-ratio: auto; height: 100%; min-height: 160px; }
.post-media.n1 .photo-tile { max-height: 520px; min-height: 0; }
.post-media .photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.post-media.n1 .photo-tile img { height: auto; max-height: 520px; object-fit: contain; background: #111; }
.post-video { width: 100%; max-height: 520px; background: #000; display: block; min-height: 160px; }
.post-media { position: relative; }
.post-more { position: absolute; right: 10px; bottom: 10px; background: rgba(27,19,64,.85); color: #fff; border: 2.5px solid #fff; border-radius: 999px; padding: 6px 14px; font-weight: 900; font-size: 1.1rem; cursor: pointer; }
.post-foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 2px dashed #E4E0F2; }
.post-foot form { margin: 0; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 2.5px solid transparent; border-radius: 999px; padding: 4px 10px; font: inherit; font-weight: 900; cursor: pointer; color: var(--ink); }
.like-btn:hover { background: #FFE9EF; }
.like-btn.on { color: var(--coral); }
.like-btn.pop .heart { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.5); } }
.comment-link { font-weight: 900; color: var(--ink-2); text-decoration: none; }
.comment-link:hover { color: var(--ink); }
.comments { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.comment-bubble { background: #F5F3FB; border-radius: 14px; padding: 7px 12px; flex: 1; overflow-wrap: anywhere; }
.comment-bubble small { display: block; color: var(--muted); font-weight: 700; font-size: .78rem; }
.comment form { margin: 0; }
.icon-btn.small { width: 26px; height: 26px; font-size: .75rem; border-width: 2px; }
.reply { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.reply input { flex: 1; border: 2.5px solid #DAD5EC; border-radius: 999px; padding: 8px 14px; font: inherit; background: #FBFAFF; min-width: 0; }
.reply input:focus { outline: none; border-color: var(--line); background: #fff; }
.wall-more { margin-top: 14px; }

@media (max-width: 980px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-side { position: static; }
  .options-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .composer-bar, .composer-previews, .composer-progress, .composer-error { margin-left: 0; padding-left: 0; }
  .composer-hint { display: none; }
  .composer-bar .btn { margin-left: auto; }
  .field-row { grid-template-columns: 1fr; }
  .opt-tab { max-width: 100%; }
}
.whos-coming { padding: 18px; }
.whos-coming h3 { margin: 0 0 10px; }
.whos-coming ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.whos-coming li { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.whos-coming li > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsvp-tag { font-style: normal; font-size: .8rem; font-weight: 900; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--line); background: #fff; white-space: nowrap; }
.rsvp-tag.going { background: #D5F7EC; }
.rsvp-tag.maybe { background: #FFF0B3; }
.small-link { font-weight: 900; color: var(--ink); font-size: .92rem; }
@media (max-width: 640px) { .oc-pic { height: 84px; } .opt-switch { padding: 10px; } }

/* =========================================================
   Email imports
   ========================================================= */
.import-how { display: flex; gap: 18px; align-items: flex-start; padding: 22px; margin-bottom: 20px; background: linear-gradient(135deg, #EEF7FF, #fff 60%); }
.ih-icon { font-size: 2.6rem; }
.ih-body { flex: 1; }
.ih-body h2 { margin: 0 0 6px; }
.ih-body p { margin: 0 0 8px; }
.ih-side { display: grid; gap: 8px; justify-items: end; text-align: right; }
.copy-addr { font: inherit; font-weight: 900; background: var(--sun); border: 2.5px solid var(--line); border-radius: 999px; padding: 2px 12px; cursor: pointer; color: var(--ink); }
.copy-addr:hover { transform: translateY(-1px); }
.copy-addr.copied::after { content: ' Copied!'; }
.notice-setup { background: #FFF6D6; border: 2.5px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-weight: 700; }
.notice-setup code { background: #fff; padding: 1px 6px; border-radius: 6px; border: 1px solid #E4DCC0; }
.booking-list { display: grid; gap: 10px; margin-bottom: 26px; }
.booking-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border: var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
a.booking-row:hover { transform: translateY(-2px); }
.booking-row.review { background: #FFF6D6; }
.booking-row.held { border-style: dashed; box-shadow: none; }
.br-emoji { font-size: 1.8rem; width: 44px; height: 44px; display: grid; place-items: center; background: #F3F1FA; border-radius: 12px; flex: none; }
.br-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.br-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-main small { color: var(--ink-2); font-weight: 700; }
.br-main .br-note { color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.br-actions form { margin: 0; }
.badge-mint { background: #D5F7EC; }
.btn-mint { --bg: var(--mint); --fg: var(--ink); }
.my-emails { background: #fff; border: var(--border); border-radius: 16px; padding: 12px 16px; }
.my-emails summary { font-weight: 900; cursor: pointer; }
.my-emails ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.my-emails li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 2px dashed #E4E0F2; }
.my-emails li > div { display: grid; min-width: 0; }
.my-emails small { font-weight: 700; color: var(--ink-2); }
.em-error { color: #C2185B !important; }
.em-actions { display: flex; gap: 6px; }
.em-actions form { margin: 0; }
.suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-bottom: 26px; }
.suggest-card { padding: 18px; background: linear-gradient(160deg, #FFF6D6, #fff 55%); }
.sc-head { display: flex; gap: 12px; }
.sc-icon { font-size: 2rem; }
.sc-head h3 { margin: 0 0 2px; }
.sc-head p { margin: 0; }
.sc-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.sc-list li { display: flex; gap: 10px; align-items: center; }
.sc-list li > span { font-size: 1.4rem; }
.sc-list li div { display: grid; min-width: 0; }
.sc-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-list small { color: var(--ink-2); font-weight: 700; }
.sc-actions { display: flex; gap: 8px; align-items: center; }
.sc-actions form { margin: 0; }
@media (max-width: 700px) {
  .import-how { flex-direction: column; }
  .ih-side { justify-items: start; text-align: left; }
  .booking-row { flex-wrap: wrap; }
  .br-actions { width: 100%; justify-content: flex-start; }
}
