/* Design tokens. Short names (--accent, --bg, …) alias the --color-*
   tokens. Day is K1 v4. Night is N2 Neutral. Type, space, radius, and
   duration tokens still record the sizes rules use as literals.
   Palette: DESIGN-TOKENS.md. Nunito and Bungee are OFL (see fonts/). */
@font-face{ font-family:"Nunito"; font-style:normal; font-weight:500; font-display:swap; src:url("fonts/Nunito-500.ttf") format("truetype"); }
@font-face{ font-family:"Nunito"; font-style:normal; font-weight:600; font-display:swap; src:url("fonts/Nunito-600.ttf") format("truetype"); }
@font-face{ font-family:"Nunito"; font-style:normal; font-weight:700; font-display:swap; src:url("fonts/Nunito-700.ttf") format("truetype"); }
@font-face{ font-family:"Nunito"; font-style:normal; font-weight:800; font-display:swap; src:url("fonts/Nunito-800.ttf") format("truetype"); }
@font-face{ font-family:"Bungee"; font-style:normal; font-weight:400; font-display:swap; src:url("fonts/Bungee-Regular.ttf") format("truetype"); }
:root{
color-scheme:light;
/* Brand. Deep jade fills buttons and selected chips. Bright jade is the
   light accent. --color-on-accent is the ink on those fills.
   Coral is reserved as a non-text fill and is not used for type.
   Yellow is the Happening tonight chip and the Evening / Night / Tonight pills. */
--color-accent:#0B6E4F;
--color-accent-strong:#0F4D3A;
--color-on-accent:#fff;
--color-jade:#0B6E4F;
--color-jade-bright:#3CCB8A;
--color-forest:#0F4D3A;
--color-yellow:#FFD23F;
--color-on-yellow:#0F4D3A;
--color-coral:#FF5A5F;
/* Ink on photographs. These stay put in both themes. */
--color-on-photo:#fff;
--color-ink:#0F4D3A;
--color-open-dot:#3CCB8A;
--color-wordmark:#0B6E4F;
--color-display:#0F4D3A;
/* Neutrals */
--color-bg:#FFFBF2;
--color-surface:#FFFFFF;
--color-surface-soft:#F4FBF7;
--color-border:#D6E6DD;
--color-text:#0F4D3A;
--color-text-soft:#4A6358;
--color-chrome:#EFE8D8;
/* Status. Danger text is not coral. The delete fill stays a dark red
   with white type in both themes. */
--color-success:#0B6E4F;
--color-danger:#8E2430;
--color-danger-fill:#8E2430;
--color-overlay:rgba(18,22,20,.45);
--color-nav:#0B6E4F;
--color-nav-inactive:#D2EEDF;
--color-nav-active:#FFFFFF;
--shadow-card:0 8px 24px rgba(15,77,58,.07);
--shadow-soft:0 6px 16px rgba(15,77,58,.08);
--shadow-nav:0 -10px 28px rgba(11,70,50,.18);
--shadow-accent:var(--shadow-soft);

/* Type. Each token is a size that renders today. Neighbors such as
   11px and 11.5px are separate on purpose. */
--fs-2xs:10.5px;
--fs-11:11px;
--fs-xs:11.5px;
--fs-12:12px;
--fs-sm:12.5px;
--fs-13:13px;
--fs-md:13.5px;
--fs-14:14px;
--fs-14-5:14.5px;
--fs-base:15px;
--fs-15-5:15.5px;
--fs-lg:18px;
--fs-19:19px;
--fs-xl:22px;
--fs-2xl:24px;
--fs-stamp:26px;
--fs-display:36px;
--fw-regular:500;
--fw-semi:600;
--fw-bold:700;
--fw-heavy:800;
--fw-black:900;
--lh-tight:1.2;
--lh-normal:1.4;
--lh-snug:1.45;
--lh-body:1.5;
--lh-relaxed:1.6;
/* Uppercase labels use four different trackings. Not collapsed. */
--ls-label:.4px;
--ls-label-wide:.5px;
--ls-label-em:.02em;
--ls-label-loose:.05em;

/* Spacing steps that already appear. The 20px step is the screen gutter. */
--sp-1:4px;
--sp-2:6px;
--sp-3:8px;
--sp-4:10px;
--sp-5:12px;
--sp-6:14px;
--sp-7:20px;
--sp-8:28px;

/* Radii that already appear. 12/16/20/24 and the 44px phone stay literal. */
--r-sm:10px;
--r-md:14px;
--r-lg:18px;
--r-xl:26px;
--r-pill:999px;

/* Durations that already run, in CSS or in the swipe handlers.
   .btn-primary's glow and these timings are not substituted into rules. */
--dur-fast:.2s;
--dur-row:.22s;
--dur-fade:.25s;
--dur-base:.3s;
--dur-swipe:.35s;

/* Legacy names — what the rest of this file reads. */
--accent:var(--color-accent);
--accent-dark:var(--color-accent-strong);
--bg:var(--color-bg);
--surface:var(--color-surface);
--surface-soft:var(--color-surface-soft);
--text:var(--color-text);
--text-soft:var(--color-text-soft);
--border:var(--color-border);
--success:var(--color-success);
--danger:var(--color-danger);
--shadow:var(--shadow-card);
--chrome-bg:var(--color-chrome);
font-family:"Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
[data-theme="dark"]{
color-scheme:dark;
/* Selected chips and primary buttons flip to bright jade with forest
   ink. The bottom bar stays deep jade. Photo ink does not flip. */
--color-accent:#3CCB8A;
--color-accent-strong:#8FE0B8;
--color-on-accent:#0F4D3A;
--color-jade:#0B6E4F;
--color-jade-bright:#3CCB8A;
--color-forest:#0F4D3A;
--color-yellow:#F2C94C;
--color-on-yellow:#0F4D3A;
--color-coral:#FF5A5F;
--color-on-photo:#fff;
--color-ink:#0F4D3A;
--color-open-dot:#0F4D3A;
--color-wordmark:#3CCB8A;
--color-display:#3CCB8A;
--color-bg:#121614;
--color-surface:#1C2220;
--color-surface-soft:#252C29;
--color-border:#323B37;
--color-text:#ECEFED;
--color-text-soft:#AEB8B3;
--color-chrome:#0C0F0D;
--color-success:#3CCB8A;
--color-danger:#F0B4B6;
--color-danger-fill:#8E2430;
--color-overlay:rgba(8,10,9,.62);
--color-nav:#0B6E4F;
--color-nav-inactive:#D2EEDF;
--color-nav-active:#FFFFFF;
--shadow-card:0 10px 28px rgba(0,0,0,.35);
--shadow-soft:0 6px 18px rgba(0,0,0,.32);
--shadow-nav:0 -10px 28px rgba(0,0,0,.4);
--shadow-accent:var(--shadow-soft);
}
@media (prefers-color-scheme: dark){
:root:not([data-theme="light"]){
color-scheme:dark;
--color-accent:#3CCB8A;
--color-accent-strong:#8FE0B8;
--color-on-accent:#0F4D3A;
--color-jade:#0B6E4F;
--color-jade-bright:#3CCB8A;
--color-forest:#0F4D3A;
--color-yellow:#F2C94C;
--color-on-yellow:#0F4D3A;
--color-coral:#FF5A5F;
--color-on-photo:#fff;
--color-ink:#0F4D3A;
--color-open-dot:#0F4D3A;
--color-wordmark:#3CCB8A;
--color-display:#3CCB8A;
--color-bg:#121614;
--color-surface:#1C2220;
--color-surface-soft:#252C29;
--color-border:#323B37;
--color-text:#ECEFED;
--color-text-soft:#AEB8B3;
--color-chrome:#0C0F0D;
--color-success:#3CCB8A;
--color-danger:#F0B4B6;
--color-danger-fill:#8E2430;
--color-overlay:rgba(8,10,9,.62);
--color-nav:#0B6E4F;
--color-nav-inactive:#D2EEDF;
--color-nav-active:#FFFFFF;
--shadow-card:0 10px 28px rgba(0,0,0,.35);
--shadow-soft:0 6px 18px rgba(0,0,0,.32);
--shadow-nav:0 -10px 28px rgba(0,0,0,.4);
--shadow-accent:var(--shadow-soft);
}
}
*{box-sizing:border-box;}
button, input, select, textarea{ font-family:inherit; }
html,body{margin:0;padding:0;background:var(--chrome-bg);height:100%;}
body{
display:flex; align-items:center; justify-content:center; min-height:100vh; padding:20px;
transition:background .25s ease;
}

.phone-wrap{ display:flex; align-items:center; justify-content:center; }
.phone{
width:400px; height:820px; background:var(--bg);
border-radius:44px; box-shadow: var(--shadow), 0 0 0 10px #1c1c1e, 0 0 0 12px #3a3a3c;
overflow:hidden; position:relative; display:flex; flex-direction:column;
transition:background .25s ease;
}
@media (max-width: 460px){
body{ padding:0; }
.phone{ width:100vw; height:100vh; border-radius:0; box-shadow:none; }
}

.view{ position:absolute; inset:0; display:flex; flex-direction:column; }
.hidden{ display:none !important; }

/* Icon system: inline SVGs inherit currentColor, sized via this base class
plus per-context overrides below (each container previously sized emoji
with font-size; now the same containers size their child svg instead). */
.icon{ width:20px; height:20px; flex-shrink:0; display:inline-block; vertical-align:-4px; }
.icon-inline{ width:14px; height:14px; vertical-align:-2px; }

/* ---------- Onboarding ---------- */
.onboarding-view{ background: var(--bg); }
.onboarding-scroll{ overflow-y:auto; height:100%; padding:48px 28px 40px; color:var(--text); }
.brand-mark{ text-align:center; margin-bottom:28px; }
.brand-logo{ width:44px; height:44px; margin:0 auto; }
.brand-logo svg{ width:100%; height:100%; }
.splash-icon{ width:132px; height:132px; display:block; margin:8px auto 4px; border-radius:32px; }
.wordmark{
font-family:"Bungee", "Nunito", sans-serif; font-weight:400; letter-spacing:.5px;
color:var(--color-wordmark); transform:rotate(-5deg); text-shadow:none;
display:inline-block; line-height:1.05;
}
.brand-mark h1{ font-size:40px; margin:10px 0 8px; font-weight:400; }
.tagline{ opacity:1; margin:0; font-size:16px; font-weight:700; color:var(--text); }
.display-title{
font-family:"Bungee", "Nunito", sans-serif; font-weight:400; letter-spacing:.4px;
text-transform:uppercase; color:var(--color-display); text-shadow:none;
transform:rotate(-5deg); transform-origin:left center;
}

.onboarding-form{
background:var(--surface); border-radius:24px; padding:24px 22px 28px; color:var(--text);
box-shadow: var(--shadow);
}
.avatar-picker{ display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:18px; }
.avatar-preview{
width:84px; height:84px; border-radius:50%; background:var(--surface-soft); display:flex; align-items:center;
justify-content:center; color:var(--text-soft); overflow:hidden; border:2px solid var(--border);
}
.avatar-preview svg{ width:32px; height:32px; }
.avatar-preview img{ width:100%; height:100%; object-fit:cover; }
.avatar-upload-btn{
font-size:13px; font-weight:600; color:var(--accent); cursor:pointer; padding:6px 14px;
border:1.5px solid var(--accent); border-radius:20px;
}
.field-label{ display:block; font-size:12px; font-weight:700; color:var(--text-soft); margin:14px 0 5px; text-transform:uppercase; letter-spacing:.4px;}
.field-input{
width:100%; padding:12px 14px; border-radius:12px; border:1.5px solid var(--border); font-size:15px;
background:var(--surface-soft); color:var(--text); font-family:inherit;
}
.field-input:focus{ outline:none; border-color:var(--accent); }
.field-hint{ font-size:11.5px; color:var(--text-soft); margin:6px 2px 0; line-height:1.4; display:flex; align-items:flex-start; gap:5px; }
.field-error{ font-size:12px; color:var(--danger); margin:6px 2px 0; line-height:1.4; }
.field-error[hidden]{ display:none; }

.btn-primary{
background:var(--accent); color:var(--color-on-accent); border:none; padding:14px 18px; border-radius:14px;
font-size:15.5px; font-weight:700; cursor:pointer; box-shadow:var(--shadow-soft); font-family:inherit;
}
.btn-primary:active{ transform:scale(.98); }
.btn-block{ width:100%; margin-top:22px; }
.btn-secondary{
background:var(--surface-soft); color:var(--text); border:none; padding:14px 18px; border-radius:14px;
font-size:15px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px;
}
.btn-text{ background:none; border:none; font-size:13px; font-weight:600; color:var(--text-soft); cursor:pointer; padding:10px; }
.btn-text.danger{ color:var(--danger); }

/* ---------- App shell ---------- */
.app-shell{ background:var(--bg); }
.topbar{
display:flex; align-items:center; justify-content:space-between; padding:18px 20px 12px;
flex-shrink:0;
}
.topbar-lockup{ display:flex; align-items:center; gap:8px; min-width:0; }
.brand-icon{ width:36px; height:36px; border-radius:10px; flex-shrink:0; display:block; }
.brand-icon[hidden]{ display:none; }
.topbar-title{ font-size:22px; font-weight:800; color:var(--text); }
.topbar-title.wordmark{ font-size:26px; font-weight:400; margin:2px 0 0; color:var(--color-wordmark); }
.topbar-title.display-title{ font-size:26px; line-height:1; margin:8px 0 2px 2px; max-width:250px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--color-display); }
.topbar:has(.hero-title){ padding-top:20px; padding-bottom:4px; align-items:center; }
.topbar-title.display-title.hero-title{
font-size:42px; line-height:.95; max-width:none; overflow:visible; text-overflow:clip;
margin:8px 0 0; color:var(--color-display);
}
.content{ flex:1; overflow:hidden; position:relative; }
.screen{ position:absolute; inset:0; overflow-y:auto; padding:6px 20px 20px; }
/* Discover only: the wordmark sits inside the scrolling screen, so it
   leaves with the deck. Other screens keep .topbar above .content. */
.screen.discover-screen{ padding-top:0; }
.topbar.topbar-in-scroll{
position:static; margin:0 -20px 6px; background:var(--bg);
}

/* ---------- Bottom nav ---------- */
.bottom-nav{
display:flex; border-top:none; background:var(--color-nav); flex-shrink:0;
padding:8px 8px calc(12px + env(safe-area-inset-bottom));
box-shadow:var(--shadow-nav); position:relative; z-index:2;
}
.nav-btn{
flex:1; background:none; border:none; display:flex; flex-direction:column; align-items:center;
gap:3px; padding:4px 2px 6px; cursor:pointer; color:var(--color-nav-inactive); opacity:1;
}
.nav-btn .nav-icon{
display:flex; align-items:center; justify-content:center; width:46px; height:28px; border-radius:14px;
}
.nav-btn .nav-icon svg{ width:21px; height:21px; }
.nav-btn .nav-label{ font-size:10.5px; font-weight:700; }
.nav-btn.active{ color:var(--color-nav-active); }
.nav-btn.active .nav-icon{ background:rgba(255,255,255,.16); }

/* ---------- Filter chip bar ---------- */
.filter-bar{ display:flex; align-items:center; gap:8px; margin:4px 0 14px; flex-wrap:wrap; }
.filter-chip-btn{
display:flex; align-items:center; gap:6px; background:var(--surface); border:1.5px solid var(--border);
padding:8px 14px; border-radius:20px; font-size:13.5px; font-weight:700; color:var(--text); cursor:pointer;
}
.tonight-chip{
display:inline-flex; align-items:center; gap:6px; flex-shrink:0;
background:var(--color-yellow); color:var(--color-on-yellow);
border:1.5px solid transparent; padding:8px 14px; border-radius:20px;
font-size:13.5px; font-weight:800; line-height:1.2; cursor:pointer; white-space:nowrap;
}
.tonight-chip.is-on{ border-color:var(--color-on-yellow); }
.filter-chip-btn svg{ width:16px; height:16px; }
.filter-chip-btn .badge{
background:var(--accent); color:var(--color-on-accent); border-radius:999px; font-size:10.5px; padding:1px 6px; font-weight:800;
}
.local-pill{
display:inline-flex; align-items:center; gap:6px; flex-shrink:0;
background:var(--color-jade); color:#fff; border-radius:999px;
padding:8px 6px 8px 12px; font-size:13.5px; font-weight:800; line-height:1.2;
box-shadow:var(--shadow-soft);
}
.local-pill-icon{ display:flex; }
.local-pill-icon .icon{ width:14px; height:14px; color:#fff; vertical-align:0; }
.local-pill-x{
display:inline-flex; align-items:center; justify-content:center;
width:22px; height:22px; margin-left:2px; border:none; border-radius:50%;
background:transparent; color:#fff; font-size:13px; font-weight:700;
cursor:pointer; padding:0; line-height:1;
}
.local-pill-x:hover{ background:rgba(255,255,255,.16); }
.result-count{ font-size:12.5px; color:var(--text-soft); font-weight:600; }

/* ---------- Card stack ---------- */
.deck{ position:relative; height:520px; margin-top:4px; }
.swipe-card{
position:absolute; inset:0; background:var(--surface); border-radius:26px; box-shadow: var(--shadow);
display:flex; flex-direction:column; overflow:hidden; touch-action:none; cursor:grab;
user-select:none; border:1px solid var(--border);
}
.swipe-card:active{ cursor:grabbing; }
.card-media{
height:46%; background:var(--accent); background-size:cover; background-position:center;
display:flex; align-items:center; justify-content:center;
position:relative; flex-shrink:0;
}
.card-body{ padding:18px 20px; display:flex; flex-direction:column; gap:10px; flex:1; }
.card-title{ font-size:22px; font-weight:800; color:var(--text); line-height:1.2; margin:0; }
.card-meta{ display:flex; flex-wrap:wrap; gap:6px; }
.meta-pill{
background:var(--surface-soft); color:var(--text-soft); font-size:11.5px; font-weight:700; padding:5px 10px; border-radius:16px;
}
.card-hint{ margin-top:auto; text-align:center; font-size:12px; color:var(--text-soft); font-weight:600; opacity:.7; }

/* ---------- Full-bleed photo card (H1 frosted tiles) ----------
   Scoped to .has-photo so the cover-art card above is unchanged.
   Stat tiles and chips use a dark wash as the background, then blur
   the photo through it. The wash is what keeps white type readable on
   a bright picture and in browsers without backdrop-filter; the blur
   is the frost. The scrim stays heavy only behind the text so the
   upper part of the photo (the subject) stays clear. */
.swipe-card.has-photo{
border:none; color:var(--color-on-photo);
box-shadow:var(--shadow-soft);
}
.swipe-card.has-photo .card-photo{
position:absolute; inset:0; z-index:0; overflow:hidden;
}
/* Same crop the background-image card used: height 130% of the card,
   centered, shifted up so background-position's 18% line still lands.
   offsetY = (cardHeight - 1.3 * cardHeight) * 0.18 = -5.4% of the card. */
.swipe-card.has-photo .card-photo img{
position:absolute; height:130%; width:auto; max-width:none;
left:50%; top:-5.4%; transform:translateX(-50%);
pointer-events:none; user-select:none; -webkit-user-drag:none;
}
.swipe-card.has-photo .card-photo-scrim{
position:absolute; left:0; right:0; bottom:0; height:64%; z-index:1;
pointer-events:none;
/* Same ink as dark --color-chrome (#0E0F12). Held constant: the light
   token is a gray page wash and would blow out the type. */
background:linear-gradient(to top,
  rgba(14,15,18,.96) 0%,
  rgba(14,15,18,.92) 42%,
  rgba(14,15,18,.5) 70%,
  rgba(14,15,18,0) 100%);
}
/* Open now stays deep jade with white type in both themes. Night accent
   is bright jade, and white on that fill is under 4.5:1. The dot stays
   bright so it reads on the jade pill at night. */
.badge-open{
background:var(--color-jade); color:#fff;
font-size:11px; font-weight:800; padding:5px 10px; border-radius:20px;
display:inline-flex; align-items:center; gap:6px; line-height:1.2;
}
.badge-open:before{
content:""; width:7px; height:7px; border-radius:50%; flex-shrink:0;
background:var(--color-jade-bright); box-shadow:0 0 0 3px color-mix(in srgb, var(--color-jade-bright) 35%, transparent);
}
.badge-time{
background:var(--color-yellow); color:var(--color-on-yellow);
font-size:11px; font-weight:800; padding:5px 10px; border-radius:20px;
display:inline-flex; align-items:center; line-height:1.2;
}
.swipe-card.has-photo .badge-open,
.swipe-card.has-photo .badge-time,
.card-media .badge-open,
.card-media .badge-time{
position:absolute; top:14px; right:14px; z-index:3;
}
.distance-badge{
position:absolute; z-index:4; display:inline-flex; align-items:center; gap:4px;
background:#fff; color:var(--color-jade);
font-size:12px; font-weight:800; line-height:1.2;
padding:5px 10px; border-radius:999px;
box-shadow:var(--shadow-soft); pointer-events:none;
}
.distance-badge .icon{ width:13px; height:13px; color:var(--color-jade); vertical-align:0; }
.card-media .distance-badge{ left:12px; bottom:12px; }
.swipe-card.has-photo > .distance-badge{ top:14px; left:14px; bottom:auto; }
.swipe-card.has-photo .real-badge{ z-index:3; color:var(--color-ink); }
.swipe-card.has-photo .card-photo-overlay{
position:absolute; left:0; right:0; bottom:0; z-index:2;
padding:18px 18px 42px; color:var(--color-on-photo);
}
.swipe-card.has-photo .card-title{
color:var(--color-on-photo); font-size:27px; font-weight:800; line-height:1.12;
letter-spacing:-.3px; margin:0 0 12px;
text-shadow:0 1px 2px rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.35);
}
.swipe-card.has-photo .card-stat-tiles{ display:flex; gap:8px; }
.swipe-card.has-photo .card-stat{
flex:1; min-width:0; border-radius:14px; padding:9px 10px;
background-color:rgba(16,18,24,.55);
border:1px solid color-mix(in srgb, var(--color-on-photo) 22%, transparent);
-webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
}
.swipe-card.has-photo .card-stat-value{
display:block; font-size:17px; font-weight:800; line-height:1.1; letter-spacing:-.2px;
}
.swipe-card.has-photo .card-stat-label{
display:block; margin-top:3px; font-size:11px; font-weight:600; line-height:1.2; opacity:.85;
}
.swipe-card.has-photo .card-meta{ margin-top:10px; gap:6px; }
.swipe-card.has-photo .meta-pill{
background-color:rgba(16,18,24,.48);
border:1px solid color-mix(in srgb, var(--color-on-photo) 16%, transparent);
-webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
color:var(--color-on-photo); font-size:11.5px; font-weight:700; padding:5px 10px; border-radius:999px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
.swipe-card.has-photo .card-stat{ background-color:rgba(14,16,20,.84); }
.swipe-card.has-photo .meta-pill{ background-color:rgba(14,16,20,.8); }
}
.swipe-card.has-photo .card-conditions{
margin-top:10px; font-size:12.5px; font-weight:700;
color:#D2EEDF;
text-shadow:0 1px 2px rgba(0,0,0,.45);
}
.swipe-card.has-photo .card-photo-credit{
position:absolute; left:14px; right:14px; bottom:8px; z-index:4;
font-size:8.5px; font-weight:600; line-height:1.3;
color:color-mix(in srgb, var(--color-on-photo) 72%, transparent);
text-align:right; pointer-events:none;
}
.swipe-card.has-photo .stamp{ z-index:5; }

.stamp{
position:absolute; top:36px; padding:8px 16px; border:4px solid; border-radius:10px;
font-size:26px; font-weight:900; letter-spacing:2px; opacity:0; text-transform:uppercase;
}
.stamp.yes{ left:24px; color:var(--color-jade-bright); border-color:var(--color-jade-bright); transform:rotate(-14deg); }
.stamp.no{ right:24px; color:#C5363A; border-color:#C5363A; transform:rotate(14deg); }

.empty-state{ text-align:center; padding:60px 20px; color:var(--text-soft); }
.empty-state .es-icon{ display:flex; justify-content:center; margin-bottom:10px; }
.empty-state .es-icon svg{ width:44px; height:44px; }
.empty-state h3{ color:var(--text); margin:0 0 6px; }
.empty-state button{ margin-top:16px; }

/* ---------- Detail view ---------- */
.detail-hero{
background:var(--accent); background-size:cover; background-position:center;
border-radius:24px; padding:34px 22px; text-align:center; color:#fff; margin-top:4px;
}
.detail-hero .dh-icon{ display:flex; justify-content:center; }
.detail-hero .dh-icon svg{ width:44px; height:44px; }
.detail-hero .dh-cat{ font-size:12px; font-weight:800; opacity:.85; text-transform:uppercase; letter-spacing:.5px; margin-top:6px;}
.detail-hero .dh-swipe-hint{ font-size:11px; font-weight:700; opacity:.85; margin-top:10px; display:flex; align-items:center; justify-content:center; gap:4px; }
.detail-hero .dh-swipe-hint svg{ width:13px; height:13px; }
.detail-hero{ touch-action:none; cursor:grab; }
.detail-hero:active{ cursor:grabbing; }
.detail-hero.has-photo{
background-size:cover; background-position:center; min-height:240px;
display:flex; flex-direction:column; justify-content:flex-end; text-align:left;
position:relative; overflow:hidden; padding:22px 20px 18px;
}
.detail-hero.has-photo:before{
content:""; position:absolute; inset:0; pointer-events:none;
background:linear-gradient(to top, rgba(14,15,18,.84) 0%, rgba(14,15,18,.28) 48%, rgba(14,15,18,0) 100%);
}
.detail-hero.has-photo > *{ position:relative; z-index:1; }
.detail-hero.has-photo .dh-icon{ display:none; }
.detail-hero.has-photo .dh-cat,
.detail-hero.has-photo .dh-swipe-hint{ text-shadow:0 1px 2px rgba(0,0,0,.45); }
.detail-title{ font-size:24px; font-weight:800; color:var(--text); margin:18px 0 6px; }
.detail-desc{ font-size:14.5px; line-height:1.6; color:var(--text-soft); margin:0 0 16px; }
.detail-materials{ margin:0 0 16px; }
.detail-materials-title{ font-size:15px; font-weight:700; color:var(--color-text); margin:0 0 6px; }
.detail-materials-list{ margin:0; padding-left:20px; font-size:14px; line-height:1.6; color:var(--color-text-soft); }
.detail-materials-none{ font-size:14px; color:var(--color-text-soft); margin:0; }
.tag-grid{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.tag-chip{ background:var(--surface-soft); color:var(--text); font-size:12.5px; font-weight:700; padding:7px 12px; border-radius:14px; }
.detail-actions{ display:flex; flex-direction:column; gap:10px; margin-bottom:30px; }
.detail-actions .row2{ display:flex; gap:10px; }
.detail-actions .row2 > *{ flex:1; }
.btn-outline{
background:var(--surface); border:1.5px solid var(--border); color:var(--text); padding:13px; border-radius:14px;
font-weight:700; font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:7px;
}
.btn-outline svg{ width:16px; height:16px; }
.btn-outline.active{ border-color:var(--accent); color:var(--accent); background:var(--surface-soft); }

/* ---------- List screens (Saved / Done / Friends) ---------- */
.section-title{ font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; color:var(--text-soft); margin:18px 0 10px; }
.idea-row{
display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:16px;
padding:12px 14px; margin-bottom:10px; cursor:pointer; box-shadow:var(--shadow-soft);
}
.idea-row .ir-icon{ width:40px; height:40px; border-radius:12px; background:var(--surface-soft); color:var(--text-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.idea-row .ir-icon svg{ width:20px; height:20px; }
.idea-row .ir-text{ flex:1; min-width:0; }
.idea-row .ir-title{ font-weight:700; font-size:14.5px; color:var(--text); }
.idea-row .ir-sub{ font-size:12px; color:var(--text-soft); margin-top:2px; }
.idea-row .badge-open, .idea-row .badge-time{ margin-top:6px; }
.idea-row .ir-chevron{ color:var(--text-soft); font-size:18px; opacity:.6; }

/* ---------- Swipe-to-delete rows (Saved screen) ---------- */
.swipeable-row{ position:relative; border-radius:16px; overflow:hidden; margin-bottom:10px; }
.swipeable-row .idea-row{ margin-bottom:0; }
.swipe-delete-action{
position:absolute; top:0; right:0; bottom:0; width:84px;
background:var(--color-danger-fill); display:flex; align-items:center; justify-content:center;
}
.swipe-delete-btn{
background:none; border:none; color:#fff; font-weight:800; font-size:12.5px;
width:100%; height:100%; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
}
.swipe-delete-btn svg{ width:18px; height:18px; }
.swipeable-row-content{ position:relative; touch-action:pan-y; background:transparent; }

.friend-card{
display:flex; align-items:center; gap:14px; background:var(--surface); border:1px solid var(--border);
border-radius:18px; padding:14px; margin-bottom:12px; cursor:pointer; box-shadow:var(--shadow-soft);
}
.friend-avatar{
width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
font-size:18px; font-weight:800; color:#fff; flex-shrink:0;
}
.friend-avatar svg{ width:22px; height:22px; }
.friend-name{ font-weight:800; color:var(--text); font-size:15px; }
.friend-stats{ font-size:12px; color:var(--text-soft); margin-top:3px; }

.friend-detail-header{ display:flex; align-items:center; gap:14px; margin:10px 0 20px; }
.back-link{ background:none; border:none; color:var(--accent); font-weight:700; font-size:14px; cursor:pointer; padding:8px 0; }

/* ---------- Overlays ---------- */
.overlay{
position:absolute; inset:0; background:var(--color-overlay); display:flex; align-items:flex-end; z-index:50;
}
.overlay-sheet{
background:var(--surface); width:100%; max-height:88%; border-radius:26px 26px 0 0; padding:14px 22px 26px;
position:relative; display:flex; flex-direction:column; overflow:hidden;
}
.overlay-handle{ width:40px; height:5px; background:var(--border); border-radius:4px; margin:0 auto 10px; }
.overlay-close{
position:absolute; top:14px; right:18px; background:var(--surface-soft); border:none; width:30px; height:30px;
border-radius:50%; font-size:14px; cursor:pointer; color:var(--text-soft);
}
.sheet-title{ font-size:19px; font-weight:800; color:var(--text); margin:4px 0 14px; }
.sheet-title.display-title{ font-size:32px; font-weight:400; line-height:1; margin:12px 0 18px 4px; color:var(--color-display); }

/* profile overlay */
.profile-sheet{ max-height:92%; overflow-y:auto; }
.profile-header{ display:flex; align-items:center; gap:14px; margin:6px 0 18px; }
.avatar-big{ width:64px; height:64px; }
.avatar-big svg{ width:26px; height:26px; }
.profile-name-big{ font-size:18px; font-weight:800; color:var(--text); }
.profile-username{ font-size:13px; font-weight:700; color:var(--text); margin-top:2px; }
.profile-username.missing{ font-weight:600; color:var(--text-soft); }
.profile-ideas{ font-size:12.5px; color:var(--text-soft); margin-top:2px; }
.profile-sub{ font-size:12.5px; color:var(--text-soft); margin-top:2px; }
.profile-menu{ display:flex; flex-direction:column; gap:8px; overflow-y:auto; }
.profile-menu-item{
display:flex; align-items:center; gap:12px; background:var(--surface-soft); border:none; border-radius:16px;
padding:13px 14px; text-align:left; cursor:pointer;
}
.pmi-icon{ width:28px; height:28px; display:flex; align-items:center; justify-content:center; color:var(--text-soft); flex-shrink:0; }
.pmi-icon svg{ width:19px; height:19px; }
.pmi-text{ flex:1; font-size:13.5px; color:var(--text); line-height:1.4; }
.pmi-text small{ color:var(--text-soft); font-weight:500; }
.pmi-chevron{ color:var(--text-soft); font-size:18px; opacity:.6; }

/* night mode row (matches profile-menu-item look, plus a toggle switch) */
.profile-setting-row{
display:flex; align-items:center; gap:12px; background:var(--surface-soft); border:none; border-radius:16px;
padding:13px 14px; margin-top:8px;
}
.toggle-switch{ position:relative; display:inline-block; width:44px; height:26px; flex-shrink:0; }
.toggle-switch input{ opacity:0; width:0; height:0; }
.toggle-slider{
position:absolute; inset:0; background:var(--border); border-radius:999px; cursor:pointer; transition:background .2s ease;
}
.toggle-slider::before{
content:""; position:absolute; width:20px; height:20px; left:3px; top:3px; background:#fff; border-radius:50%;
transition:transform .2s ease; box-shadow:0 1px 3px rgba(0,0,0,.25);
}
.toggle-switch input:checked + .toggle-slider{ background:var(--accent); }
.toggle-switch input:checked + .toggle-slider::before{ transform:translateX(18px); }

.tip-row{ display:flex; gap:10px; background:var(--surface-soft); border-radius:14px; padding:12px; margin-bottom:8px; }
.tip-row .t-icon{ color:var(--text-soft); flex-shrink:0; }
.tip-row .t-icon svg{ width:18px; height:18px; }
.tip-row .t-text{ font-size:13px; color:var(--text); line-height:1.45; }

.idea-form{ position:relative; }
.idea-form label{ display:block; font-size:12px; font-weight:700; color:var(--text-soft); margin:12px 0 5px; text-transform:uppercase;}
.idea-form textarea{ resize:vertical; min-height:80px; }
.idea-form select, .idea-form input, .idea-form textarea{
width:100%; padding:11px 13px; border-radius:12px; border:1.5px solid var(--border); font-size:14px;
background:var(--surface-soft); color:var(--text); font-family:inherit;
}
.idea-form input.invalid{ border-color:var(--danger); }
.idea-form .field-invalid, .idea-send-row input.field-invalid{ border-color:var(--danger); }
.idea-form .chip-select.field-invalid{ box-shadow:0 0 0 1.5px var(--danger); border-radius:12px; }
.idea-check{
display:flex; align-items:center; gap:8px; margin-top:14px; font-size:14px; font-weight:600; color:var(--text);
text-transform:none;
}
.idea-check input{ width:auto; margin:0; }
.idea-hint{ font-size:12px; color:var(--text-soft); margin:6px 2px 0; line-height:1.4; font-weight:500; text-transform:none; }
.idea-banner{
background:var(--surface-soft); border-radius:14px; padding:12px 14px; margin:4px 0 8px;
}
.idea-banner p{ margin:0; font-size:13.5px; line-height:1.45; color:var(--text); }
.idea-saved{ margin-bottom:10px; }
.idea-send-row{ display:flex; gap:8px; align-items:center; margin:-2px 0 12px; }
.idea-send-row input{
flex:1; min-width:0; padding:10px 12px; border-radius:12px; border:1.5px solid var(--border);
background:var(--surface-soft); color:var(--text); font:inherit; font-size:14px;
}
.idea-send-row .btn-outline{ width:auto; padding:10px 14px; margin:0; }
.hp-field{
position:absolute; top:0; left:0; width:1px; height:1px; margin:0; padding:0; overflow:hidden;
clip:rect(0 0 0 0); border:0; white-space:nowrap;
}
.btn-primary:disabled{ opacity:.55; cursor:default; }
.toast.toast-wrap{
white-space:normal; text-align:center; width:min(320px, calc(100% - 36px)); line-height:1.35;
}
.chip-select{ display:flex; flex-wrap:wrap; gap:7px; }
.chip-select .chip{
padding:8px 13px; border-radius:16px; background:var(--surface); font-size:12.5px; font-weight:700; color:var(--text); cursor:pointer;
border:1.5px solid var(--border); font-family:inherit;
}
.chip-select .chip.selected{ background:var(--accent); color:var(--color-on-accent); border-color:transparent; }

/* filter overlay */
.filter-sheet{ height:82%; }
.filter-scroll{ overflow-y:auto; flex:1; }
.filter-group{ margin-bottom:20px; }
.filter-group-title{ font-size:13px; font-weight:800; color:var(--text); margin-bottom:8px; }

/* Where / Local events. The switch reuses the profile toggle.
   On expands the existing How far panel under the row. */
.local-events{
display:flex; align-items:center; gap:12px;
background:var(--surface-soft); border:1px solid var(--border); border-radius:18px;
padding:12px 14px; box-shadow:var(--shadow-soft);
}
.local-events-icon{
width:42px; height:42px; border-radius:12px; flex-shrink:0;
display:flex; align-items:center; justify-content:center;
background:color-mix(in srgb, var(--accent) 14%, var(--surface));
color:var(--accent);
}
.local-events-icon .icon{ width:20px; height:20px; vertical-align:0; }
.local-events.is-on .local-events-icon{ background:var(--accent); color:#fff; }
.local-events-copy{ flex:1; min-width:0; }
.local-events-title{ font-size:15px; font-weight:800; color:var(--text); line-height:1.2; }
.local-events-sub{ margin-top:2px; font-size:12.5px; font-weight:600; color:var(--text-soft); line-height:1.3; }
.local-note{
display:flex; align-items:flex-start; gap:8px;
margin:10px 4px 0; color:var(--text-soft);
font-size:12.5px; font-weight:600; line-height:1.4;
}
.local-note .icon{ width:15px; height:15px; margin-top:1px; color:var(--text-soft); vertical-align:0; }
.where-group .how-far-group{ margin:12px 0 0; }

/* Discover location row. Light track, jade fill, coral thumb with a white ring.
   The same radiusMiles value drives the Filters panel below. */
.radius-row{ display:flex; align-items:center; gap:10px; margin:2px 0 12px; }
.radius-place{
  display:flex; align-items:center; gap:6px; flex:0 0 auto; max-width:54%;
  color:var(--text); font-size:15px; font-weight:800;
}
.radius-place .icon{ width:18px; height:18px; color:var(--color-accent); vertical-align:0; }
.radius-place-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.radius-readout{
  flex:0 0 auto; min-width:52px; text-align:right;
  color:var(--text); font-size:15px; font-weight:800;
}
.radius-slider{
  -webkit-appearance:none; appearance:none;
  width:100%; height:28px; margin:0; background:transparent; cursor:pointer;
  --radius-pct:50%;
  --radius-track:#E4EEE8;
}
.radius-row .radius-slider{ flex:1 1 0; min-width:0; width:auto; }
.radius-slider:focus{ outline:none; }
.radius-slider:focus-visible{ outline:2px solid var(--color-accent); outline-offset:2px; border-radius:999px; }
.radius-slider::-webkit-slider-runnable-track{
  height:4px; border-radius:999px;
  background:linear-gradient(to right, var(--color-accent) var(--radius-pct), var(--radius-track) var(--radius-pct));
}
.radius-slider::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:22px; height:22px; margin-top:-9px; border-radius:50%; cursor:pointer;
}
.radius-slider::-moz-range-track{
  height:4px; border:none; border-radius:999px;
  background:linear-gradient(to right, var(--color-accent) var(--radius-pct), var(--radius-track) var(--radius-pct));
}
.radius-slider::-moz-range-thumb{ width:22px; height:22px; border-radius:50%; cursor:pointer; }
.radius-slider-discover{ --radius-track:#E6EFEA; }
.radius-slider-discover::-webkit-slider-thumb{
  background:var(--color-coral); border:3px solid #fff; box-shadow:0 1px 4px rgba(15,77,58,.2);
}
.radius-slider-discover::-moz-range-thumb{
  background:var(--color-coral); border:3px solid #fff; box-shadow:0 1px 4px rgba(15,77,58,.2);
}
.radius-slider-panel::-webkit-slider-thumb{
  background:#fff; border:3px solid var(--color-accent); box-shadow:0 1px 3px rgba(15,77,58,.18);
}
.radius-slider-panel::-moz-range-thumb{
  background:#fff; border:3px solid var(--color-accent); box-shadow:0 1px 3px rgba(15,77,58,.18);
}

/* Filters "How far?" card. White (or night surface) with a thin border,
   semicircle diagram, and a 1–50 slider. */
.how-far{
  background:var(--surface); border:1px solid var(--border); border-radius:22px;
  padding:14px 16px 10px;
}
.how-far-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:2px;
}
.how-far-head-copy{ min-width:0; }
.how-far-place{
  display:flex; align-items:center; gap:5px; margin-top:4px;
  color:var(--text-soft); font-size:13px; font-weight:700;
}
.how-far-place .icon{ width:14px; height:14px; color:var(--text-soft); vertical-align:0; }
.how-far-place-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.how-far-label{ font-size:16px; font-weight:700; color:var(--text); }
.how-far-value{ font-size:32px; font-weight:800; color:var(--text); line-height:1; letter-spacing:-0.4px; }
.radius-diagram-wrap{ height:128px; margin:0 6px; }
.radius-diagram{ width:100%; height:100%; display:block; overflow:visible; }
.radius-ring{ fill:none; stroke:#C3E0D2; stroke-width:1.35; }
.radius-fill{ stroke:none; }
.radius-fill-a{ fill:rgba(11,110,79,.045); }
.radius-fill-b{ fill:rgba(11,110,79,.08); }
.radius-fill-c{ fill:rgba(11,110,79,.14); }
.radius-pin path{ fill:var(--color-accent); }
.radius-pin-dot{ fill:#fff; }
.radius-ticks{ position:relative; height:18px; margin-top:2px; }
.radius-tick{
  position:absolute; top:0; transform:translateX(-50%);
  font-size:12px; font-weight:700; color:var(--text-soft); white-space:nowrap;
}
.radius-tick:first-child{ transform:none; }
.radius-tick:last-child{ transform:none; left:auto !important; right:0; }
[data-theme="dark"] .radius-slider-discover{ --radius-track:#D7E4DC; }
[data-theme="dark"] .radius-slider-panel{ --radius-track:#31403A; }
[data-theme="dark"] .radius-ring{ stroke:#3CCB8A; }
[data-theme="dark"] .radius-ring-outer,
[data-theme="dark"] .radius-ring-mid{ stroke-dasharray:4 5; }
[data-theme="dark"] .radius-fill-a{ fill:rgba(60,203,138,.07); }
[data-theme="dark"] .radius-fill-b{ fill:rgba(60,203,138,.13); }
[data-theme="dark"] .radius-fill-c{ fill:rgba(60,203,138,.22); }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .radius-slider-discover{ --radius-track:#D7E4DC; }
  :root:not([data-theme="light"]) .radius-slider-panel{ --radius-track:#31403A; }
  :root:not([data-theme="light"]) .radius-ring{ stroke:#3CCB8A; }
  :root:not([data-theme="light"]) .radius-ring-outer,
  :root:not([data-theme="light"]) .radius-ring-mid{ stroke-dasharray:4 5; }
  :root:not([data-theme="light"]) .radius-fill-a{ fill:rgba(60,203,138,.07); }
  :root:not([data-theme="light"]) .radius-fill-b{ fill:rgba(60,203,138,.13); }
  :root:not([data-theme="light"]) .radius-fill-c{ fill:rgba(60,203,138,.22); }
}
.filter-actions{ display:flex; gap:10px; padding-top:14px; border-top:1px solid var(--border); }
.filter-actions > *{ flex:1; }

/* share overlay */
.share-friend-list{ overflow-y:auto; }
.share-friend-row{
display:flex; align-items:center; gap:12px; padding:12px 6px; border-bottom:1px solid var(--border); cursor:pointer;
}
.share-friend-row:last-child{ border-bottom:none; }

/* toast */
.toast{
position:absolute; bottom:100px; left:50%; transform:translateX(-50%); background:var(--text); color:var(--bg);
padding:11px 20px; border-radius:30px; font-size:13.5px; font-weight:600; z-index:100; box-shadow:var(--shadow);
white-space:nowrap;
}
.toast.hidden{ display:none; }

/* ---------- Tutorial (post-signup how-to) ---------- */
.tutorial-view{ background:var(--bg); }
.tutorial-content{
height:100%; display:flex; flex-direction:column; justify-content:center; padding:32px 28px; color:var(--text);
}
.tutorial-card{ text-align:center; margin-bottom:28px; }
.tutorial-icon{ display:flex; justify-content:center; margin-bottom:16px; }
.tutorial-icon svg{ width:48px; height:48px; }
.tutorial-title{ font-size:24px; font-weight:800; margin:0 0 12px; }
.tutorial-text{ font-size:15px; line-height:1.6; opacity:.95; margin:0; }
.tutorial-dots{ display:flex; justify-content:center; gap:8px; margin-bottom:28px; }
.tutorial-dot{ width:8px; height:8px; border-radius:50%; background:color-mix(in srgb, var(--text) 28%, transparent); }
.tutorial-dot.active{ background:var(--color-jade); width:22px; border-radius:5px; }
.tutorial-actions{ display:flex; align-items:center; justify-content:space-between; gap:14px; }
.tutorial-actions .btn-text{ color:var(--text-soft); opacity:1; }
.tutorial-actions .btn-primary{ flex:1; max-width:220px; margin-left:auto; }
.tutorial-spacer{ flex:0; }

/* ---------- Full-screen subpage (replaces inline profile accordion) ---------- */
.subpage{
position:absolute; inset:0; background:var(--bg); z-index:80;
display:flex; flex-direction:column;
}
.subpage-topbar{
display:flex; align-items:center; gap:14px; padding:18px 20px 12px; flex-shrink:0;
}
.subpage-close{
width:34px; height:34px; border-radius:50%; background:var(--surface-soft); border:none;
font-size:15px; color:var(--text-soft); cursor:pointer; flex-shrink:0;
}
.subpage-title{ font-size:18px; font-weight:800; color:var(--text); }
.subpage-body{ flex:1; overflow-y:auto; padding:6px 20px 30px; }
.subpage-body.subpage-body-frame{ padding:0; overflow:hidden; display:flex; flex-direction:column; }
.credits-frame{ flex:1; width:100%; border:0; background:var(--bg); }

/* ---------- Add Friends: QR code + contacts ---------- */
.qr-wrap{
background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:18px;
display:flex; align-items:center; justify-content:center; margin:12px 0;
}
.qr-wrap svg{ width:180px; height:180px; }
.qr-link-note{ font-size:12px; color:var(--text-soft); word-break:break-all; text-align:center; margin:0 0 16px; }
.contact-row{
display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:16px;
padding:12px 14px; margin-bottom:10px;
}
.contact-avatar{
width:40px; height:40px; border-radius:50%; background:var(--surface-soft); color:var(--text-soft); font-weight:800;
font-size:13px; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-info{ flex:1; min-width:0; }
.contact-name{ font-weight:700; font-size:14px; color:var(--text); }
.contact-phone{ font-size:12px; color:var(--text-soft); margin-top:2px; }
.contact-send-btn{ padding:9px 14px; font-size:12.5px; flex-shrink:0; }

::-webkit-scrollbar{ width:0; height:0; }

/* ---------- Date planning: plan bar / chip / CTA (Discover) ---------- */
.plan-bar{ margin-bottom:12px; }
.plan-cta{ margin-top:0; }
.plan-chip{
display:flex; align-items:center; gap:10px; background:var(--surface); border:1.5px solid var(--border);
border-radius:18px; padding:12px 14px;
}
.plan-chip-icon{ color:var(--text-soft); flex-shrink:0; }
.plan-chip-icon svg{ width:20px; height:20px; }
.plan-chip-text{ flex:1; min-width:0; font-size:13px; color:var(--text); line-height:1.4; }
.plan-chip-text small{ color:var(--text-soft); font-weight:600; }
.plan-chip-end{
background:var(--surface-soft); border:none; width:28px; height:28px; border-radius:50%; flex-shrink:0;
font-size:12px; color:var(--text-soft); cursor:pointer;
}

/* ---------- Plan a Date overlay ---------- */
.plan-sheet{ height:auto; }
.sheet-subtitle{ font-size:13px; color:var(--text-soft); line-height:1.5; margin:-6px 0 4px; }
.plan-form-back{ margin:0 0 4px -10px; display:block; }

/* ---------- Saved screen: pills + photo cards ---------- */
.saved-screen{ padding-top:2px; }
.saved-pill-bar{
display:flex; align-items:center; gap:8px; position:sticky; top:0; z-index:3;
background:var(--bg); padding:2px 0 14px;
}
.saved-pills{
display:flex; gap:8px; overflow-x:auto; overflow-y:hidden; flex:1; min-width:0;
padding:1px 0; margin:0; scrollbar-width:none;
}
.saved-pill{
flex:0 0 auto; border:1px solid var(--border); background:var(--surface); color:var(--text);
border-radius:var(--r-pill); padding:8px 14px; font-size:14px; font-weight:700; line-height:1.2;
cursor:pointer; box-shadow:none; white-space:nowrap; font-family:inherit;
}
.saved-pill.is-active{ background:var(--accent); color:var(--color-on-accent); border-color:transparent; }
.saved-pill-add{
width:36px; height:36px; padding:0; display:inline-flex; align-items:center; justify-content:center;
flex-shrink:0; position:relative;
}
.saved-pill-add svg{ width:16px; height:16px; }
.saved-pill-add-label{
position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.saved-plan-bar{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 12px; }
.saved-plan-date{ flex:1 0 100%; margin:0; font-size:12.5px; font-weight:600; color:var(--text-soft); }
.saved-plan-action{ width:auto; margin:0; padding:8px 12px; font-size:12.5px; border-radius:var(--r-pill); }
.saved-plan-delete{ padding:8px 4px; }
.saved-card{
display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--border);
border-radius:var(--r-lg); padding:10px 12px 10px 10px; margin-bottom:12px; cursor:pointer;
box-shadow:var(--shadow);
}
.saved-thumb{
width:68px; height:68px; border-radius:12px; overflow:hidden; flex-shrink:0;
background:var(--surface-soft); display:flex; align-items:center; justify-content:center;
}
.saved-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.saved-thumb.is-placeholder{
background:color-mix(in srgb, var(--color-jade) 14%, var(--color-surface));
color:var(--accent);
}
.saved-thumb.is-placeholder svg{ width:22px; height:22px; }
.saved-card-body{ flex:1; min-width:0; }
.saved-card-title{ font-weight:800; font-size:16px; line-height:1.25; color:var(--text); }
.saved-card-meta{ margin-top:3px; font-size:13px; font-weight:600; color:var(--text-soft); line-height:1.3; }
.saved-badge{
display:inline-flex; align-items:center; margin-top:6px; padding:3px 10px;
border-radius:var(--r-pill); font-size:12px; font-weight:800; line-height:1.3;
}
.saved-badge-open{ background:var(--accent); color:var(--color-on-accent); }
.saved-badge-time{ background:var(--color-yellow); color:var(--color-on-yellow); }
.saved-badge + .saved-badge{ margin-left:6px; }
.saved-bookmark{ flex-shrink:0; color:var(--accent); display:flex; align-items:center; }
.saved-bookmark svg{ width:22px; height:22px; }
.saved-screen .swipeable-row{ border-radius:var(--r-lg); margin-bottom:12px; box-shadow:var(--shadow); }
.saved-screen .swipeable-row .saved-card{ margin-bottom:0; box-shadow:none; }
.saved-screen .swipeable-row.friend-picked{ box-shadow:var(--shadow), 0 0 0 2px var(--accent); }
.saved-card .friend-pick-badge{ margin-top:6px; }
.plan-link-body{ overflow-y:auto; min-height:0; }
.plan-link-omit{ margin:0 0 12px; }

/* ---------- Detail screen: dual-save + friend-pick banner ---------- */
.also-someday-btn{ margin-top:2px; }
.friend-pick-banner{
background:var(--surface-soft); border:1.5px solid var(--border); color:var(--text); border-radius:14px;
padding:12px 14px; font-size:13px; line-height:1.6; margin:-6px 0 16px;
}

/* ---------- Friend-picked idea rows (inside a shared plan) ---------- */
.swipeable-row.friend-picked{ box-shadow:0 0 0 2px var(--accent); }
.friend-pick-badge{
display:inline-block; margin-top:4px; font-size:11px; font-weight:700; color:var(--accent-dark);
background:var(--surface-soft); padding:3px 9px; border-radius:10px;
}

/* ---------- Share-a-plan overlay ---------- */
.plan-share-back{ margin:0 0 4px -10px; display:block; }

/* ---------- Discover screen: location bar ---------- */
.location-bar{ padding:0 20px 10px; flex-shrink:0; }
.location-chip{
display:flex; align-items:center; gap:8px; background:var(--surface-soft); border:1.5px solid var(--border);
color:var(--text); border-radius:14px; padding:10px 12px; font-size:12.5px; line-height:1.4;
}
.location-chip-icon{ color:var(--success); flex-shrink:0; display:flex; }
.location-chip-icon svg{ width:15px; height:15px; }
.location-chip-text{ flex:1; }
.location-chip-end{
background:none; border:none; color:var(--text-soft); font-size:14px; font-weight:700;
cursor:pointer; padding:2px 6px; flex-shrink:0;
}

/* ---------- Swipe card: real-place badge ---------- */
.real-badge{
position:absolute; top:14px; right:14px; background:rgba(255,255,255,.94); color:var(--text);
font-size:11px; font-weight:800; padding:5px 10px; border-radius:20px; line-height:1.2;
box-shadow:0 2px 6px rgba(20,20,26,.12); display:flex; align-items:center; gap:4px;
}
.real-badge svg{ width:12px; height:12px; }

/* 21+ marker on the swipe card and the detail title. Accent fill with
   white type stays readable on the classic card, the photo scrim, and
   the detail screen in both themes. */
.badge-21{
display:inline-block; margin-left:var(--sp-3); padding:2px 7px; border-radius:999px;
background:var(--color-accent); color:var(--color-on-accent);
font-size:var(--fs-11); font-weight:var(--fw-heavy); letter-spacing:var(--ls-label);
line-height:var(--lh-tight); vertical-align:middle; text-shadow:none;
}

/* ---------- Detail screen: real-place info block ---------- */
.detail-real-block{
background:var(--surface-soft); border:1.5px solid var(--border); border-radius:14px; padding:14px; margin:-6px 0 16px;
}
.detail-real-title{ font-size:12px; font-weight:800; color:var(--text-soft); letter-spacing:.02em; text-transform:uppercase; margin-bottom:6px; display:flex; align-items:center; gap:5px; }
.detail-real-title svg{ width:13px; height:13px; }
.detail-real-name{ font-size:14px; font-weight:700; color:var(--accent-dark); margin-bottom:2px; }
.detail-real-addr{ font-size:12.5px; color:var(--text-soft); margin-bottom:10px; }
.detail-real-link svg{ width:15px; height:15px; }
.idea-row.unavailable-item .ir-sub{ color:var(--text-soft); }
