/* Pawsport on the web.
   The same tokens as the iOS Theme, so someone who opens a link and later
   installs the app meets one product, not two. */
:root{
  --accent:#F4553A; --accent-pressed:#D9412A; --accent-soft:#FFEDE8; --on-accent:#FFFFFF;
  --imsg:#0A84FF; --imsg-grey:#E9E9EB;
  --canvas:#FFFFFF; --surface:#FFFFFF; --surface-hi:#F7F7F7; --surface-2:#EBEBEB; --line:#EBEBEB;
  --ink:#222222; --hof:#484848; --ink-muted:#6B6B6B; --ink-faint:#B0B0B0;
  /* Coral for text and small marks. The brand coral is 3.4:1 on white — fine
     for a fill behind large type, too faint for words on their own. */
  --accent-ink:#C13B22;
  /* Behind white text. Same in both modes, because the text sits on it and
     not on the page: 5.0:1 where the brand coral gives 3.4:1 (2.8:1 dark). */
  --accent-fill:#C8401F; --accent-fill-pressed:#B03617;
  /* Buttons: ink pills with a coral icon; grey pills beside them. Coral marks
     things (icons, links, pins) rather than filling them. Same as the app. */
  --btn:#222222; --btn-hover:#3A3A3A; --on-btn:#FFFFFF; --btn-icon:#FF6A4D;
  --btn2:#EFEFEF; --btn2-hover:#E4E4E4; --btn2-icon:#C13B22;
  --success:#17783A; --success-soft:#E6F4EA;
  --danger:#C13515; --danger-soft:#FCEBE7;
  --warning:#9A6B00; --warning-soft:#FFF5D6;
  --info:#2F6FE0; --info-soft:#E8F0FE;
  --r-sm:10px; --r-md:14px; --r-lg:16px; --r-xl:22px;
  --shadow:0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lift:0 2px 6px rgba(0,0,0,.06), 0 18px 48px rgba(0,0,0,.12);
  --inset:20px;
  --panel:440px;
  --bar:64px;
  --safe-b:env(safe-area-inset-bottom, 0px);
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --accent:#FF6A4D; --accent-pressed:#E8563A; --accent-soft:#3A2119;
    --imsg-grey:#262629;
    --canvas:#121212; --surface:#1C1C1E; --surface-hi:#26262A; --surface-2:#333338; --line:#2C2C2E;
    --ink:#F2F2F2; --hof:#D6D6D6; --ink-muted:#A0A0A0; --ink-faint:#6E6E6E;
    --accent-ink:#FF8A70;
    --btn:#F2F2F2; --btn-hover:#DADADA; --on-btn:#121212; --btn-icon:#D63B26;
    --btn2:#2C2C30; --btn2-hover:#38383D; --btn2-icon:#FF8A70;
    --success:#34C759; --success-soft:#173A22;
    --danger:#FF6B57; --danger-soft:#3D1D17;
    --warning:#E0A75C; --warning-soft:#3A3012;
    --info:#6FA3FF; --info-soft:#17274A;
    --shadow:0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lift:0 2px 6px rgba(0,0,0,.5), 0 18px 48px rgba(0,0,0,.5);
    color-scheme:dark;
  }
}

*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html{ -webkit-text-size-adjust:100%; }
html,body{ height:100%; }
body{
  margin:0; background:var(--canvas); color:var(--hof);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  font-size:16px; line-height:1.45; -webkit-font-smoothing:antialiased;
}
[hidden]{ display:none !important; }
button{ font:inherit; color:inherit; cursor:pointer; border:0; background:none; padding:0; }
a{ color:var(--accent-ink); text-decoration:none; }
a:hover{ text-decoration:underline; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:6px; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.ico{ width:18px; height:18px; flex:none; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ico.sm{ width:14px; height:14px; }
.ico.lg{ width:22px; height:22px; }
.num{ font-variant-numeric:tabular-nums; }

/* ---------- type ---------- */
.t-large{ font-size:30px; line-height:1.1; font-weight:800; letter-spacing:-.025em; color:var(--ink); margin:0; text-wrap:balance; }
.t-h1{ font-size:24px; line-height:1.15; font-weight:700; letter-spacing:-.02em; color:var(--ink); margin:0; text-wrap:balance; }
.t-h2{ font-size:19px; font-weight:700; letter-spacing:-.015em; color:var(--ink); margin:0; }
.t-h3{ font-size:16px; font-weight:650; color:var(--ink); margin:0; }
.t-meta{ font-size:13px; color:var(--ink-muted); margin:0; }
.t-label{ font-size:12px; font-weight:650; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-muted); margin:0; }
.t-body-sm{ font-size:14px; color:var(--hof); margin:0; }
.clamp2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ---------- brand ---------- */
.brand{ display:inline-flex; align-items:center; gap:8px; color:var(--ink); font-weight:650; font-size:15px; letter-spacing:-.01em; }
.brand:hover{ text-decoration:none; }
/* iOS rounds an icon to about 22% of its width; the same here. */
.brand-mark{ width:30px; height:30px; border-radius:7px; display:block; box-shadow:0 0 0 1px rgba(0,0,0,.06); }
.hero-icon{ display:block; width:88px; height:88px; border-radius:20px; margin:0 0 18px; box-shadow:var(--shadow-lift); }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:12px 20px;
  border-radius:999px; font-size:15px; font-weight:600; background:var(--btn); color:var(--on-btn);
  transition:transform .12s ease, background .15s ease; white-space:nowrap; }
.btn .ico{ color:var(--btn-icon); }
.btn:hover{ background:var(--btn-hover); text-decoration:none; }
.btn:active{ transform:scale(.98); }
.btn.block{ width:100%; }
.btn.secondary{ background:var(--btn2); color:var(--ink); }
.btn.secondary .ico{ color:var(--btn2-icon); }
.btn.secondary:hover{ background:var(--btn2-hover); }
.btn.ghost{ background:transparent; color:var(--ink); border:1.5px solid var(--line); }
.btn.ghost .ico{ color:var(--btn2-icon); }
.btn.ghost:hover{ background:var(--btn2); }
.btn.danger{ background:var(--danger-soft); color:var(--danger); }
.btn.danger .ico{ color:var(--danger); }
.btn.small{ min-height:36px; padding:7px 13px; font-size:14px; border-radius:999px; }
.btn[disabled]{ opacity:.45; pointer-events:none; }
.icon-btn{ width:40px; height:40px; border-radius:50%; display:grid; place-items:center; color:var(--ink); background:var(--btn2); transition:background .15s; }
.icon-btn:hover{ background:var(--btn2-hover); }

/* ---------- inputs ---------- */
.field{ display:flex; flex-direction:column; gap:6px; margin:0 0 14px; }
.field > span{ font-size:13px; font-weight:600; color:var(--ink); }
.input, select.input, textarea.input{ width:100%; min-height:48px; padding:12px 14px; font:inherit; font-size:16px;
  border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface-hi); color:var(--ink); appearance:none; }
textarea.input{ min-height:84px; resize:vertical; }
.input:focus{ outline:none; border-color:var(--ink-muted); background:var(--surface); }
.input::placeholder{ color:var(--ink-faint); }
select.input{ padding-right:36px; background-image:linear-gradient(45deg,transparent 50%,var(--ink-muted) 50%),linear-gradient(135deg,var(--ink-muted) 50%,transparent 50%);
  background-position:calc(100% - 19px) 21px,calc(100% - 14px) 21px; background-size:5px 5px,5px 5px; background-repeat:no-repeat; }
.row2{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.row-amount{ display:grid; grid-template-columns:1fr 110px; gap:10px; }

/* ---------- pills, chips ---------- */
.pill{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:650; padding:4px 10px; border-radius:999px;
  background:var(--surface-hi); color:var(--ink-muted); white-space:nowrap; }
.pill.accent{ background:var(--accent-soft); color:var(--accent-ink); }
.pill.success{ background:var(--success-soft); color:var(--success); }
.pill.danger{ background:var(--danger-soft); color:var(--danger); }
.pill.warn{ background:var(--warning-soft); color:var(--warning); }
.pill.info{ background:var(--info-soft); color:var(--info); }
.chips{ display:flex; gap:8px; overflow-x:auto; padding:2px 0 4px; scrollbar-width:none; }
.chips::-webkit-scrollbar{ display:none; }
.chip{ display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 14px; border-radius:999px; background:var(--surface-hi);
  color:var(--ink); font-size:14px; font-weight:600; white-space:nowrap; transition:background .15s, color .15s; }
.chip:hover{ background:var(--surface-2); }
.chip[aria-pressed="true"]{ background:var(--ink); color:var(--canvas); }
.chip .dot{ width:8px; height:8px; border-radius:50%; }
.chip small{ font-weight:500; opacity:.7; }

/* ---------- cards ---------- */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:16px; }
.card.lift{ box-shadow:var(--shadow); }
.grouped{ background:var(--surface-hi); border-radius:var(--r-lg); padding:16px; }
.stack{ display:flex; flex-direction:column; gap:12px; }
.section{ margin:22px 0 0; }
.section-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; }
.banner{ display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius:var(--r-md); font-size:14px; }
.banner.info{ background:var(--info-soft); color:var(--info); }
.banner.warn{ background:var(--warning-soft); color:var(--warning); }
.banner.danger{ background:var(--danger-soft); color:var(--danger); }
.banner.success{ background:var(--success-soft); color:var(--success); }
.banner b{ color:inherit; }
.empty{ text-align:center; padding:28px 16px; color:var(--ink-muted); font-size:14px; }
.empty .paw{ width:52px; height:52px; border-radius:50%; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; margin:0 auto 12px; }
.empty .paw svg{ width:24px; height:24px; fill:currentColor; stroke:none; }
.empty h3, .empty h1{ color:var(--ink); font-size:16px; margin:0 0 4px; }
.divider{ height:1px; background:var(--line); margin:14px 0; }

/* ---------- avatars ---------- */
.avatar{ width:34px; height:34px; border-radius:50%; display:grid; place-items:center; color:#fff; font-size:13px; font-weight:700; flex:none;
  letter-spacing:.01em; }
.avatar.lg{ width:44px; height:44px; font-size:16px; }
.avatars{ display:flex; }
.avatars .avatar{ width:28px; height:28px; font-size:11px; border:2px solid var(--canvas); margin-left:-7px; }
.avatars .avatar:first-child{ margin-left:0; }

/* ================= layout: the room ================= */
.shell{ min-height:100%; }
.room{ display:grid; grid-template-columns:var(--panel) 1fr; height:100vh; height:100dvh; }
.panel{ display:flex; flex-direction:column; min-height:0; border-right:1px solid var(--line); background:var(--canvas); }
.panel-scroll{ flex:1; overflow-y:auto; overscroll-behavior:contain; padding:0 var(--inset) 40px; }
.mapwrap{ position:relative; min-height:0; background:var(--surface-hi); }
.mapwrap #map, .map-slot #map{ position:absolute; inset:0; }
.map-empty{ position:absolute; inset:0; display:grid; place-items:center; color:var(--ink-muted); font-size:14px; text-align:center; padding:24px; }

.room-head{ padding:16px var(--inset) 0; }
.room-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.room-title{ display:flex; flex-direction:column; gap:4px; }
.room-meta{ display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin-top:8px; }
.room-meta .t-meta{ display:inline-flex; align-items:center; gap:5px; }

.tabs{ display:flex; gap:22px; padding:0 var(--inset); border-bottom:1px solid var(--line); margin-top:14px; }
.tab{ position:relative; padding:12px 0 13px; font-size:15px; font-weight:550; color:var(--ink-muted); display:inline-flex; gap:6px; align-items:center; }
.tab:hover{ color:var(--ink); }
.tab[aria-selected="true"]{ color:var(--ink); font-weight:700; }
.tab[aria-selected="true"]::after{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--ink); border-radius:2px; }
.tab .count{ font-size:11px; font-weight:700; background:var(--accent-fill); color:#fff; border-radius:999px; padding:1px 6px; min-width:18px; text-align:center; }

.bottombar{ display:none; }

/* ---------- plan ---------- */
.day-block{ margin:20px 0 0; }
.day-head{ display:flex; align-items:center; gap:10px; margin:0 0 6px; position:sticky; top:0; background:var(--canvas); padding:10px 0 8px; z-index:2; }
.day-head .swatch{ width:10px; height:10px; border-radius:50%; flex:none; }
.day-head .t-meta{ margin-left:auto; }
.slot-head{ display:flex; align-items:center; gap:8px; margin:12px 0 4px 42px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-muted); }
.slot-head::after{ content:""; flex:1; height:1px; background:var(--line); }
.stop{ position:relative; display:grid; grid-template-columns:30px 1fr; gap:12px; padding:10px 8px 10px 0; border-radius:var(--r-md); cursor:pointer; transition:background .15s; }
.stop:hover, .stop.hl{ background:var(--surface-hi); }
.stop::before{ content:""; position:absolute; left:14px; top:0; bottom:0; width:2px; background:var(--rail, var(--line)); opacity:.35; }
.stop:first-of-type::before{ top:22px; }
.stop.last::before{ bottom:calc(100% - 22px); }
.stop .pin{ position:relative; z-index:1; width:30px; height:30px; border-radius:50%; color:#fff; font-size:13px; font-weight:750; display:grid; place-items:center;
  box-shadow:0 0 0 3px var(--canvas); }
.stop .pin.unplaced{ background:var(--surface-2) !important; color:var(--ink-muted); }
.stop-body{ min-width:0; }
.stop-line{ display:flex; align-items:baseline; gap:8px; }
.stop-time{ font-size:13px; font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; flex:none; }
.stop-name{ font-size:16px; font-weight:650; color:var(--ink); margin:0; overflow-wrap:anywhere; }
/* The name is the row's control for keyboards and screen readers; the row
   around it stays clickable for a mouse without being a second button. */
.stop-title{ font:inherit; color:inherit; text-align:left; padding:0; border-radius:4px; }
.stop-title:focus-visible{ outline-offset:3px; }
.stop-sub{ font-size:13px; color:var(--ink-muted); margin:2px 0 0; }
.stop-notes{ font-size:14px; color:var(--hof); margin:6px 0 0; }
.stop-actions{ display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.link-pill{ display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:600; color:var(--ink); padding:7px 12px; border-radius:999px; background:var(--btn2); }
.link-pill .ico{ color:var(--btn2-icon); }
.link-pill:hover{ background:var(--btn2-hover); text-decoration:none; }
.plan-foot{ margin:18px 0 0; }
.plan-foot .textlink{ padding:12px; }

/* ---------- ideas / polls ---------- */
.idea{ display:grid; grid-template-columns:1fr auto; gap:12px; align-items:start; }
.idea + .idea{ border-top:1px solid var(--line); padding-top:14px; margin-top:14px; }
.vote{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; width:54px; height:54px; border-radius:var(--r-md);
  background:var(--surface-hi); color:var(--ink-muted); font-weight:700; font-size:14px; transition:background .15s, color .15s, transform .12s; }
.vote:hover{ background:var(--surface-2); }
.vote:active{ transform:scale(.95); }
.vote[aria-pressed="true"]{ background:var(--btn); color:var(--on-btn); }
.vote[disabled]{ opacity:.5; pointer-events:none; }
.idea-actions{ display:flex; gap:12px; margin-top:8px; font-size:13px; }
.textlink{ color:var(--ink-muted); font-weight:600; font-size:13px; }
.textlink:hover{ color:var(--ink); }
.poll{ display:grid; grid-template-columns:1fr auto; gap:6px 12px; align-items:center; padding:12px 0; }
.poll + .poll{ border-top:1px solid var(--line); }
.bar{ grid-column:1 / -1; height:6px; border-radius:999px; background:var(--surface-2); overflow:hidden; }
.bar i{ display:block; height:100%; background:var(--ink-faint); border-radius:999px; transition:width .4s ease; }
.poll.lead .bar i{ background:var(--accent); }
.inline-add{ display:flex; gap:8px; margin-top:12px; }
.inline-add .input{ min-height:40px; padding:8px 12px; font-size:15px; }
details.history summary{ cursor:pointer; list-style:none; font-size:14px; font-weight:600; color:var(--ink-muted); padding:8px 0; }
details.history summary::-webkit-details-marker{ display:none; }

/* ---------- money ---------- */
.stat-row{ display:flex; gap:28px; align-items:flex-end; flex-wrap:wrap; }
.stat .n{ font-size:30px; font-weight:750; letter-spacing:-.025em; color:var(--ink); font-variant-numeric:tabular-nums; line-height:1.1; }
.stat .k{ font-size:13px; color:var(--ink-muted); }
.balance{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-radius:var(--r-md); margin-top:14px; }
.balance.owed{ background:var(--success-soft); color:var(--success); }
.balance.owe{ background:var(--danger-soft); color:var(--danger); }
.balance.even{ background:var(--surface-hi); color:var(--ink-muted); }
.balance b{ color:inherit; font-size:17px; font-variant-numeric:tabular-nums; }
.lrow{ display:flex; align-items:center; gap:12px; padding:12px 0; }
.lrow + .lrow{ border-top:1px solid var(--line); }
.lrow .grow{ flex:1; min-width:0; }
.lrow .amt{ text-align:right; }
.lrow .amt b{ display:block; color:var(--ink); font-variant-numeric:tabular-nums; font-weight:650; }
.lrow.tap{ cursor:pointer; margin:0 -8px; padding-left:8px; padding-right:8px; border-radius:var(--r-sm); }
.lrow.tap:hover{ background:var(--surface-hi); }
.lrow.tap + .lrow{ border-top-color:transparent; }

/* ---------- people ---------- */
.member-loc{ font-size:13px; color:var(--ink-muted); display:flex; align-items:center; gap:5px; }
.live-dot{ width:8px; height:8px; border-radius:50%; background:var(--success); box-shadow:0 0 0 3px var(--success-soft); }
.qr{ background:#fff; border-radius:var(--r-md); padding:14px; width:max-content; margin:12px auto 0; }
.qr img, .qr canvas{ display:block; width:180px; height:180px; image-rendering:pixelated; }
.copy-field{ display:flex; gap:8px; align-items:center; }
.copy-field code{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:600 13px ui-monospace,SFMono-Regular,Menlo,monospace;
  background:var(--surface-hi); padding:10px 12px; border-radius:var(--r-sm); color:var(--ink); }

/* ---------- map markers ---------- */
.mk{ width:28px; height:28px; border-radius:50%; color:#fff; font:750 12px/28px -apple-system,system-ui,sans-serif; text-align:center;
  box-shadow:0 0 0 2.5px #fff, 0 3px 8px rgba(0,0,0,.3); transition:transform .15s; }
.mk.hl{ transform:scale(1.3); }
.mk-person{ width:34px; height:34px; border-radius:50%; color:#fff; font:700 12px/34px -apple-system,system-ui,sans-serif; text-align:center;
  box-shadow:0 0 0 3px #fff, 0 3px 10px rgba(0,0,0,.3); }
.mk-meet{ width:32px; height:32px; border-radius:50%; background:#222; color:#fff; display:grid; place-items:center; box-shadow:0 0 0 3px #fff, 0 3px 10px rgba(0,0,0,.35); }
.mk-idea{ width:22px; height:22px; border-radius:50%; background:#fff; border:2.5px dashed var(--accent); box-shadow:0 2px 6px rgba(0,0,0,.25); }
.mk-wrap{ cursor:pointer; }
.maplibregl-map{ font:inherit; background:var(--surface-hi); }
.maplibregl-popup-content{ border-radius:12px; box-shadow:var(--shadow-lift); padding:10px 14px; font-size:14px; color:#222; background:#fff; }
.maplibregl-popup-content b{ color:#222; }
.maplibregl-popup-tip{ border-top-color:#fff !important; border-bottom-color:#fff !important; }
.maplibregl-ctrl-group{ border-radius:12px !important; box-shadow:var(--shadow) !important; }
.maplibregl-ctrl-attrib{ font-size:10px; }
.maplibregl-cooperative-gesture-screen{ font-size:14px; }
.map-legend{ position:absolute; left:14px; bottom:14px; z-index:500; display:flex; gap:6px; flex-wrap:wrap; max-width:calc(100% - 28px); }
.map-legend .pill{ background:var(--surface); box-shadow:var(--shadow); color:var(--ink); }
.map-legend .dot{ width:8px; height:8px; border-radius:50%; }

/* ---------- sheets (dialogs) ---------- */
dialog.sheet{ border:0; padding:0; width:min(480px, calc(100vw - 32px)); max-height:min(88vh, 760px); border-radius:var(--r-xl);
  background:var(--canvas); color:var(--hof); box-shadow:var(--shadow-lift); overflow:hidden; }
dialog.sheet::backdrop{ background:rgba(0,0,0,.38); backdrop-filter:blur(2px); }
dialog.sheet[open]{ animation:pop .2s ease; }
@keyframes pop{ from{ opacity:0; transform:translateY(12px) scale(.98); } to{ opacity:1; transform:none; } }
.sheet-inner{ display:flex; flex-direction:column; max-height:inherit; }
.sheet-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 20px 10px; }
.sheet-body{ padding:6px 20px 20px; overflow-y:auto; }
.sheet-foot{ padding:12px 20px 20px; display:flex; gap:10px; border-top:1px solid var(--line); }
.sheet-foot .btn{ flex:1; }
.results{ margin:-6px 0 12px; border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; }
.result{ display:block; width:100%; text-align:left; padding:11px 14px; }
.result + .result{ border-top:1px solid var(--line); }
.result:hover, .result:focus-visible{ background:var(--surface-hi); }
.result b{ display:block; color:var(--ink); font-weight:600; }
.picked{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:var(--r-md); background:var(--success-soft); color:var(--success); font-size:14px; margin:-4px 0 14px; }

/* ---------- toast ---------- */
.toast{ position:fixed; left:50%; bottom:calc(24px + var(--safe-b)); transform:translateX(-50%); background:var(--ink); color:var(--canvas);
  padding:11px 18px; border-radius:999px; font-size:14px; font-weight:600; box-shadow:var(--shadow-lift); z-index:3000; max-width:calc(100vw - 32px); text-align:center; }

/* ---------- skeleton ---------- */
.sk{ background:linear-gradient(90deg,var(--surface-hi) 0%,var(--surface-2) 50%,var(--surface-hi) 100%); background-size:200% 100%;
  animation:sk 1.3s ease infinite; border-radius:var(--r-sm); }
@keyframes sk{ from{ background-position:100% 0; } to{ background-position:-100% 0; } }


/* ---------- sign in with the phone ---------- */
.pair-card{ text-align:center; padding:26px 22px; }
.pair-code{ font:800 46px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.08em; color:var(--ink); margin:8px 0 18px; font-variant-numeric:tabular-nums; }
.pair-code span{ display:inline-block; width:.4em; }
.pair-steps{ text-align:left; margin:0 auto 18px; padding-left:22px; max-width:300px; line-height:1.9; font-size:15px; color:var(--hof); }
.pair-wait{ display:flex; align-items:center; justify-content:center; gap:10px; color:var(--ink-muted); font-size:14px; margin-bottom:10px; }
.spinner{ width:16px; height:16px; border-radius:50%; border:2px solid var(--surface-2); border-top-color:var(--accent-fill); animation:spin .8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.pair-card details{ text-align:left; }

/* ---------- one-time tips ---------- */
.tip{ display:grid; grid-template-columns:32px 1fr 32px; gap:11px; align-items:start; margin:16px 0 0; padding:14px; border-radius:var(--r-md); background:var(--surface-hi); }
.tip b{ color:var(--ink); font-size:14px; }
.tip-x{ width:32px; height:32px; border-radius:50%; display:grid; place-items:center; color:var(--ink-muted); margin:-6px -6px 0 0; }
.tip-x:hover{ background:var(--surface-2); color:var(--ink); }

/* ================= your own trips (Pro) ================= */
.day-tools{ display:flex; gap:8px; flex-wrap:wrap; margin:2px 0 6px; }
.add-stop{ display:flex; align-items:center; gap:8px; width:100%; margin:10px 0 4px; padding:12px 14px; border-radius:var(--r-md);
  border:1.5px dashed var(--line); color:var(--ink-muted); font-size:14px; font-weight:600; transition:border-color .15s, color .15s, background .15s; }
.add-stop:hover{ border-color:var(--ink-faint); color:var(--ink); background:var(--surface-hi); }
.stop.fixed{ cursor:default; }
.stop.fixed:hover{ background:none; }
.stop .pin.fixed-pin{ background:var(--surface); color:var(--ink); border:1.5px solid var(--line); }
.stop.visited .stop-name{ color:var(--ink-muted); }
.link-pill.icon-only{ padding:6px 8px; }
.stop-photo{ margin:-6px 0 14px; border-radius:var(--r-lg); overflow:hidden; aspect-ratio:16/9; background:var(--surface-hi); }
.stop-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.stop-links{ display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 0; }
.tool-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.tool-grid .btn{ min-height:44px; font-size:14px; }
.guide{ margin-top:16px; padding:14px; border-radius:var(--r-md); background:var(--surface-hi); }
.review-note{ display:grid; grid-template-columns:32px 1fr; gap:11px; padding:14px; border-radius:var(--r-md); background:var(--surface-hi); }
.review-note b{ color:var(--ink); }
.rn-icon{ width:32px; height:32px; border-radius:50%; display:grid; place-items:center; flex:none; background:var(--accent-soft); color:var(--accent); }
.rn-icon.warn{ background:var(--warning-soft); color:var(--warning); }
.ref{ font:600 13px ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--ink); background:var(--surface-hi); padding:2px 7px; border-radius:6px; display:inline-block; margin-top:4px; letter-spacing:.04em; }
.check{ display:flex; gap:10px; align-items:flex-start; margin:0 0 14px; cursor:pointer; font-size:14px; }
.check input{ width:18px; height:18px; margin-top:2px; accent-color:var(--accent); }
.msg{ margin:0 0 14px; }
.msg.user{ display:flex; justify-content:flex-end; }
.msg.user .msg-body{ background:var(--ink); color:var(--canvas); border-radius:18px 18px 4px 18px; padding:10px 14px; max-width:85%; }
.msg.assistant .msg-body{ background:var(--surface-hi); border-radius:4px 18px 18px 18px; padding:12px 14px; color:var(--hof); font-size:15px; line-height:1.5; }
.proposal{ margin-top:12px; padding:12px; border-radius:var(--r-md); background:var(--surface); border:1px solid var(--line); }
.p-op{ display:grid; grid-template-columns:22px 1fr auto; gap:10px; align-items:center; padding:7px 0; cursor:pointer; color:var(--ink); font-size:14px; }
.p-op input{ width:18px; height:18px; accent-color:var(--accent-fill); margin:0; }
.p-op.off .p-text{ color:var(--ink-muted); text-decoration:line-through; }
.p-ico{ width:22px; height:22px; border-radius:50%; display:grid; place-items:center; color:#fff; background:var(--info); }
.p-op.add .p-ico{ background:var(--success); }
.p-op.remove .p-ico{ background:var(--danger); }
.p-op.off .p-ico{ background:var(--ink-faint); }
.p-actions{ display:flex; gap:8px; align-items:center; justify-content:flex-end; margin-top:10px; flex-wrap:wrap; }
.p-actions .t-meta{ margin-right:auto; }
.p-actions .textlink{ color:var(--accent-ink); font-size:14px; padding:6px 4px; }
.ask-box{ position:sticky; bottom:0; display:flex; gap:8px; align-items:flex-end; padding:12px 0; background:var(--canvas); }
.ask-box .input{ min-height:48px; resize:none; }
@media (max-width: 899px){ .ask-box{ bottom:calc(var(--bar) + var(--safe-b)); } }

/* ================= simple pages: home, join, share ================= */
.page{ max-width:1080px; margin:0 auto; padding:0 var(--inset) 64px; }
.page-top{ display:flex; align-items:center; justify-content:space-between; padding:18px 0; }
.narrow{ max-width:520px; margin:0 auto; }
.hero{ padding:28px 0 8px; }
.trip-card{ display:grid; grid-template-columns:52px 1fr auto; gap:14px; align-items:center; padding:14px; border-radius:var(--r-lg); border:1px solid var(--line);
  background:var(--surface); color:inherit; transition:box-shadow .15s, transform .15s; }
.trip-card:hover{ box-shadow:var(--shadow); text-decoration:none; transform:translateY(-1px); }
.trip-card .tile{ width:52px; height:52px; border-radius:14px; display:grid; place-items:center; color:#fff; font-weight:750; font-size:20px; }
.home-grid{ display:grid; grid-template-columns:1.2fr 1fr; gap:28px; margin-top:18px; align-items:start; }
.feature{ display:flex; gap:12px; align-items:flex-start; }
.feature .ft{ width:36px; height:36px; border-radius:11px; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; flex:none; }

.share-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:32px; align-items:start; }
.share-map{ position:sticky; top:20px; height:calc(100vh - 40px); max-height:720px; border-radius:var(--r-xl); overflow:hidden; border:1px solid var(--line); }
.share-map #map{ position:absolute; inset:0; }
.share-cta{ margin:18px 0 6px; }
.share-stats{ display:flex; gap:24px; margin:16px 0 0; }
.foot{ text-align:center; color:var(--ink-muted); font-size:12px; margin:36px 0 0; }

/* ================= phones ================= */
@media (max-width: 899px){
  :root{ --inset:16px; }
  .room{ display:block; height:auto; min-height:100dvh; }
  .panel{ border-right:0; min-height:100dvh; }
  .panel-scroll{ overflow:visible; padding-bottom:calc(var(--bar) + 32px + var(--safe-b)); }
  .mapwrap{ display:none; }
  .map-slot{ position:relative; height:250px; border-radius:var(--r-lg); overflow:hidden; margin:16px 0 4px; border:1px solid var(--line); }
  .tabs{ display:none; }
  .bottombar{ display:flex; position:fixed; left:0; right:0; bottom:0; z-index:1000; height:calc(var(--bar) + var(--safe-b)); padding-bottom:var(--safe-b);
    background:color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter:saturate(1.6) blur(16px); -webkit-backdrop-filter:saturate(1.6) blur(16px);
    border-top:1px solid var(--line); }
  .bottombar .tab{ flex:1; flex-direction:column; justify-content:center; gap:3px; font-size:11px; font-weight:600; padding:0; }
  .bottombar .tab[aria-selected="true"]{ color:var(--accent-ink); font-weight:700; }
  .bottombar .tab[aria-selected="true"]::after{ display:none; }
  .bottombar .tab .ico{ width:22px; height:22px; }
  .bottombar .tab .count{ position:absolute; top:6px; left:calc(50% + 6px); font-size:10px; padding:0 5px; }
  .day-head{ top:0; }
  .toast{ bottom:calc(var(--bar) + 16px + var(--safe-b)); }
  .home-grid, .share-grid{ grid-template-columns:1fr; gap:20px; }
  .share-map{ position:relative; top:0; height:260px; }
  .share-cta.sticky{ position:sticky; bottom:0; margin:0 calc(-1 * var(--inset)); padding:12px var(--inset) calc(12px + var(--safe-b));
    background:color-mix(in srgb, var(--canvas) 94%, transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-top:1px solid var(--line); z-index:5; }
  dialog.sheet{ width:100vw; max-width:100vw; margin:auto 0 0; border-radius:var(--r-xl) var(--r-xl) 0 0; max-height:92vh; }
  dialog.sheet[open]{ animation:up .24s ease; }
  .sheet-foot{ padding-bottom:calc(16px + var(--safe-b)); }
  .t-large{ font-size:27px; }
}
@media (min-width: 900px){ .map-slot{ display:none; } }
@keyframes up{ from{ transform:translateY(40px); opacity:.6; } to{ transform:none; opacity:1; } }
/* add a booking */
.bk-card{ padding:0; }
.bk-head{ font-size:13px; font-weight:600; color:var(--ink-muted); margin:4px 0 10px; }
.bk-icons{ display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:2px; }
.bk-icon{ display:flex; flex-direction:column; align-items:center; gap:7px; padding:6px 0; border:0; border-radius:var(--r-md); background:none; color:var(--ink); font:inherit; font-size:12.5px; font-weight:550; cursor:pointer; min-width:0; }
.bk-icon:active .bk-glyph{ transform:scale(.94); }
.bk-icon:focus-visible{ outline:2px solid var(--ink); outline-offset:1px; }
/* Grey with a coral glyph: the secondary button in miniature, so the icons read as one set. */
.bk-glyph{ display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:var(--btn2); color:var(--btn2-icon); transition:background .15s, transform .1s; }
.bk-icon:hover .bk-glyph{ background:var(--btn2-hover); }
.bk-glyph .ico{ width:20px; height:20px; stroke-width:2; }
.bk-glyph{ position:relative; }
.bk-glyph.primary{ background:var(--btn); color:var(--btn-icon); }
.bk-icon:hover .bk-glyph.primary{ background:var(--btn-hover); }
.bk-badge{ position:absolute; top:-3px; right:-5px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--accent-fill); color:#fff; font-size:11px; font-weight:700; line-height:18px; text-align:center; box-shadow:0 0 0 2px var(--canvas); }
.bk-more{ position:relative; display:flex; }
.bk-more > .bk-icon{ flex:1; }
.bk-menu{ position:absolute; top:calc(100% + 4px); right:0; z-index:30; min-width:200px; padding:6px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow-lift); display:flex; flex-direction:column; }
.bk-menu[hidden]{ display:none; }
.bk-menu button{ display:flex; align-items:center; gap:10px; padding:10px 12px; border:0; border-radius:var(--r-sm); background:none; color:var(--ink); font:inherit; font-size:14px; text-align:left; cursor:pointer; }
.bk-menu button:hover, .bk-menu button:focus-visible{ background:var(--surface-hi); outline:none; }
.bk-menu .ico{ color:var(--btn2-icon); }
.bk-waiting{ width:100%; text-align:left; border:0; font:inherit; font-size:14px; cursor:pointer; margin-bottom:12px; }
.bk-waiting.on-plan{ margin:16px 0 0; }
.bk-waiting .ico{ flex:none; margin-top:1px; }
.drop{ display:flex; flex-direction:column; align-items:center; gap:4px; padding:22px 16px; border:1.5px dashed var(--ink-faint); border-radius:var(--r-md); text-align:center; cursor:pointer; color:var(--ink); }
.drop .ico{ width:22px; height:22px; margin-bottom:4px; }
.drop:hover, .drop.over{ border-color:var(--ink); background:var(--surface-hi); }
.drop:focus-within{ outline:2px solid var(--ink); outline-offset:2px; }
.copy-row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.copy-row:last-of-type{ border-bottom:1px solid var(--line); margin-bottom:10px; }
.copy-row b{ color:var(--ink); word-break:break-all; }
.copy-row .mono{ font-family:ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing:.04em; }
@media (max-width: 350px){ .bk-icons{ grid-template-columns:repeat(4, minmax(0, 1fr)); row-gap:10px; } }
/* new trip */
dialog.sheet.nt-sheet{ height:min(88vh, 760px); }
.nt-sheet .sheet-inner{ height:100%; }
.nt-sheet .sheet-body{ flex:1; }
.nt-progress{ display:flex; gap:6px; margin:2px 0 18px; }
.nt-progress span{ flex:1; height:4px; border-radius:2px; background:var(--btn2); transition:background .25s; }
.nt-progress span.on{ background:var(--btn); }
.nt-head{ text-align:center; margin-bottom:10px; }
.nt-head.left{ text-align:left; }
.nt-head .t-h1{ color:var(--ink); margin:2px 0 4px; }
.nt-fan{ position:relative; height:192px; margin:0 0 -30px; }
.nt-fan[hidden]{ display:none; }
.nt-photo{ position:absolute; border:3px solid var(--canvas); border-radius:50%; padding:0; cursor:pointer; background:var(--btn2) center/cover no-repeat;
  box-shadow:0 4px 12px rgba(0,0,0,.14); transition:transform .15s; }
.nt-photo:hover{ transform:scale(1.06); }
.nt-photo:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.nt-search{ position:relative; z-index:20; display:flex; align-items:center; gap:10px; height:52px; padding:0 16px 0 10px; border-radius:999px; background:var(--surface);
  border:1px solid var(--line); box-shadow:0 8px 24px rgba(0,0,0,.10); }
.nt-search input{ flex:1; min-width:0; border:0; outline:0; background:none; font:inherit; font-size:16px; color:var(--ink); }
.nt-search:focus-within{ border-color:var(--ink); }
.nt-orb{ flex:none; width:30px; height:30px; border-radius:50%;
  background:radial-gradient(circle at 30% 25%, rgba(255,255,255,.75), transparent 45%), conic-gradient(from 0deg, var(--accent), #7C8CFF, #5FD4E8, #F7B3D2, var(--accent)); }
.nt-cats{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px 18px; max-width:280px; margin:26px auto 4px; }
.nt-cat{ display:flex; flex-direction:column; align-items:center; gap:6px; border:0; background:none; font:inherit; font-size:12.5px; font-weight:600; color:var(--ink); cursor:pointer; }
.nt-cat > span{ display:grid; place-items:center; width:56px; height:56px; border-radius:50%; transition:transform .12s; }
.nt-cat:hover > span{ transform:scale(1.06); }
.nt-cat .ico{ width:22px; height:22px; }
.nt-label{ margin:22px 0 10px; color:var(--ink-muted); }
.nt-ideas{ flex-wrap:wrap; overflow:visible; }
.nt-ideas .chip{ background:var(--btn2); }
.nt-row{ display:flex; align-items:center; gap:12px; width:100%; padding:10px 0; border:0; border-bottom:1px solid var(--line); background:none; font:inherit; text-align:left; cursor:pointer; color:var(--ink); }
.nt-row .grow{ flex:1; min-width:0; display:flex; flex-direction:column; }
.nt-row b{ font-weight:600; }
.nt-row > .ico{ color:var(--ink-faint); }
.nt-row:hover b{ text-decoration:underline; }
.nt-thumb{ flex:none; width:44px; height:44px; border-radius:50%; background:var(--btn2) center/cover no-repeat; }
.nt-thumb.icon{ display:grid; place-items:center; color:var(--btn2-icon); }
#ntres{ margin-top:14px; }
.nt-cathead{ display:flex; justify-content:space-between; align-items:center; padding:6px 0 4px; color:var(--ink); }
.nt-other{ text-align:center; margin-top:22px; }
.nt-other .textlink{ color:var(--accent-ink); }
.nt-lengths{ margin-top:14px; }
.nt-month{ padding:14px; margin-bottom:12px; border-radius:var(--r-lg); background:var(--surface-hi); }
.nt-month h4{ margin:0 0 10px; font-size:17px; color:var(--ink); }
.nt-grid{ display:grid; grid-template-columns:repeat(7, 1fr); gap:6px 4px; justify-items:center; }
.nt-wd{ font-size:12px; font-weight:600; color:var(--ink-muted); }
.nt-day{ width:40px; height:40px; border-radius:50%; border:1px solid var(--line); background:var(--surface) center/cover no-repeat; color:var(--ink); font:inherit; font-size:14.5px; cursor:pointer; }
.nt-day:hover:not(:disabled){ border-color:var(--ink); }
.nt-day:disabled{ color:var(--ink-faint); background:none; cursor:default; }
.nt-day.in{ background-color:var(--btn); color:var(--on-btn); border-color:transparent; font-weight:650; }
.nt-day.start{ color:#fff; box-shadow:inset 0 0 0 40px rgba(0,0,0,.28); }
.nt-back{ flex:none !important; width:56px; padding:0; }
.nt-slide{ position:relative; flex:1; height:56px; border-radius:999px; background:var(--btn); color:var(--on-btn); overflow:hidden; user-select:none; touch-action:pan-y; }
.nt-slide.off{ opacity:.45; }
.nt-slide:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.nt-slide-fill{ position:absolute; left:0; top:0; bottom:0; width:56px; border-radius:999px; background:rgba(255,255,255,.12); }
.nt-slide-text{ position:absolute; left:64px; right:44px; top:0; bottom:0; display:flex; flex-direction:column; justify-content:center; line-height:1.2; white-space:nowrap; overflow:hidden; }
.nt-slide-text b{ font-size:15.5px; }
.nt-slide-text small{ font-size:11.5px; opacity:.72; overflow:hidden; text-overflow:ellipsis; }
.nt-slide-arrows{ position:absolute; right:18px; top:50%; transform:translateY(-50%); font-size:22px; font-weight:800; letter-spacing:-3px; opacity:.7; animation:ntarrows 1.6s infinite ease-in-out; }
@keyframes ntarrows{ 0%, 100%{ opacity:.35; transform:translate(0, -50%); } 50%{ opacity:.9; transform:translate(4px, -50%); } }
.nt-knob{ position:absolute; left:5px; top:5px; width:46px; height:46px; border-radius:50%; background:var(--on-btn); color:var(--btn-icon); display:grid; place-items:center; cursor:grab; box-shadow:0 2px 6px rgba(0,0,0,.2); touch-action:none; }
.nt-knob:active{ cursor:grabbing; }
.nt-knob .ico{ width:20px; height:20px; }
.nt-slide.off .nt-knob{ cursor:not-allowed; }
.nt-who{ display:inline-flex; align-items:center; gap:10px; }
.nt-who > span{ display:flex; flex-direction:column; line-height:1.15; }
.nt-who small{ font-size:12px; font-weight:500; color:var(--ink-muted); }
.nt-av{ flex:none; width:32px; height:32px; border-radius:50%; object-fit:cover; box-shadow:0 0 0 .5px var(--line); }
.nt-who .nt-av{ width:36px; height:36px; }
.nt-av.me{ display:grid; place-items:center; background:var(--accent-fill); color:#fff; font-size:12.5px; font-weight:700; }
.nt-pace{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.nt-pace .chip{ justify-content:center; background:var(--btn2); }
.nt-pace .chip[aria-pressed="true"]{ background:var(--ink); }
.nt-chat{ display:flex; flex-direction:column; gap:12px; }
.nt-today{ align-self:center; font-size:12px; font-weight:600; color:var(--ink-muted); background:var(--btn2); border-radius:999px; padding:3px 10px; }
.nt-me{ align-self:flex-end; max-width:86%; display:flex; align-items:flex-end; gap:8px; text-align:right; }
.nt-me > div{ min-width:0; }
.nt-me .nt-av{ margin-bottom:18px; }
.nt-me p{ margin:0; padding:9px 14px; border-radius:18px 18px 5px 18px; background:var(--imsg); color:#fff; text-align:left; }
.nt-me small{ font-size:11px; color:var(--ink-faint); }
.nt-ai{ display:flex; gap:8px; align-items:flex-end; max-width:88%; }
.nt-ai p{ margin:0; padding:9px 14px; border-radius:18px 18px 18px 5px; background:var(--imsg-grey); color:var(--ink); }
.nt-typing p{ background:var(--imsg-grey) !important; color:var(--ink-muted) !important; display:flex; flex-direction:column; gap:6px; }
.nt-typing small{ font-size:12px; }
.nt-dotsrow{ display:flex; gap:4px; }
.nt-typing i{ width:5px; height:5px; border-radius:50%; background:var(--ink-muted); animation:ntdot 1.2s infinite ease-in-out; }
.nt-typing i:nth-of-type(2){ animation-delay:.2s; } .nt-typing i:nth-of-type(3){ animation-delay:.4s; }
@keyframes ntdot{ 0%, 80%, 100%{ opacity:.25; } 40%{ opacity:1; } }
.nt-cards{ display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 -20px; padding:0 20px 4px; scrollbar-width:none; }
.nt-cards::-webkit-scrollbar{ display:none; }
.nt-card{ flex:0 0 86%; scroll-snap-align:center; display:flex; flex-direction:column; gap:8px; }
.nt-card .btn{ margin-top:auto; }
.nt-card-photo{ position:relative; height:260px; border-radius:20px; overflow:hidden; background:var(--btn2) center/cover no-repeat; box-shadow:0 8px 20px rgba(0,0,0,.12); }
.nt-card-photo::after{ content:""; position:absolute; inset:0; background:linear-gradient(rgba(0,0,0,.25), transparent 35%, transparent 55%, rgba(0,0,0,.55)); }
.nt-badge{ position:absolute; z-index:1; top:12px; left:12px; display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px;
  background:rgba(20,20,20,.45); backdrop-filter:blur(10px); color:#fff; font-size:12px; font-weight:600; }
.nt-card-cap{ position:absolute; z-index:1; left:12px; right:12px; bottom:12px; padding:10px 12px; border-radius:14px; background:rgba(20,20,20,.42); backdrop-filter:blur(12px); color:#fff; display:flex; flex-direction:column; gap:3px; }
.nt-card-cap b{ font-size:16px; line-height:1.25; }
.nt-card-cap span{ display:inline-flex; align-items:center; gap:5px; font-size:12px; opacity:.9; }
.nt-dots{ display:flex; justify-content:center; gap:6px; }
.nt-dots span{ width:6px; height:6px; border-radius:3px; background:var(--btn2); transition:width .2s, background .2s; }
.nt-dots span.on{ width:18px; background:var(--btn); }
.nt-refine{ display:flex; gap:8px; width:100%; }
.nt-foot2{ display:flex; flex-direction:column; gap:10px; width:100%; }
.nt-foot-row{ display:flex; gap:10px; }
.nt-replies{ padding-left:40px; flex-wrap:wrap; }
/* A chosen quick reply is your answer — blue, like your messages. */
.nt-replies .chip[aria-pressed="true"]{ background:var(--imsg); color:#fff; }
.nt-refine .input{ flex:1; border-radius:999px; }
.nt-refine .btn{ flex:none !important; }
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }

/* ── a stop's actions, on the stop ── */
button.pin{ border:0; padding:0; cursor:pointer; font-family:inherit; transition:transform .12s; }
button.pin:hover{ transform:scale(1.08); }
button.pin:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
.stop-subline{ display:flex; align-items:center; gap:8px; margin-top:2px; }
.stop-subline .stop-sub{ margin:0; min-width:0; flex:1; }
.stop-subline .when-select{ flex:none; max-width:52%; appearance:none; -webkit-appearance:none; font:600 12px/1 -apple-system,system-ui,sans-serif;
  color:var(--ink-muted); background:var(--btn2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center / 11px;
  border:0; border-radius:999px; padding:6px 24px 6px 10px; cursor:pointer; text-overflow:ellipsis; }
.stop-subline .when-select:hover{ background-color:var(--btn2-hover); color:var(--ink); }
.stop-notes[data-act]{ cursor:text; border-radius:6px; }
.stop-notes[data-act]:hover{ background:var(--btn2); box-shadow:0 0 0 4px var(--btn2); }
.note-edit{ width:100%; min-height:64px; margin-top:8px; font-size:14px; resize:vertical; }
.link-pill.on{ background:var(--ink); color:var(--canvas); }
.link-pill.on .ico{ color:inherit; }
.stop-tools{ display:inline-flex; gap:2px; margin-left:auto; flex:none; align-self:center; transition:opacity .15s; }
.stop-tools .link-pill.icon-only{ padding:5px 6px; background:transparent; }
.stop-tools .link-pill.icon-only:hover{ background:var(--btn2); }
.stop-actions .link-pill{ padding:6px 10px; gap:4px; }
@media (min-width:1280px){ :root{ --panel:500px; } }
.stop-actions{ gap:6px; }
.link-pill.danger:hover{ background:var(--danger-soft); color:var(--danger); }
.link-pill.danger:hover .ico{ color:var(--danger); }
@media (hover:hover){
  .stop .stop-tools{ opacity:.5; }
  .stop:hover .stop-tools, .stop:focus-within .stop-tools{ opacity:1; }
}
.guide-inline{ margin-top:12px; padding:14px; border-radius:var(--r-md); background:var(--surface-hi); cursor:auto; }
.guide-inline .guide p:last-child{ margin-bottom:0; }

/* Said at the end of the trip on the phone: not done, not to do. */
.stop.skipped { opacity: .5; }
.stop-skipped { font-size: 12px; font-weight: 600; color: var(--ink-muted, #717171); margin-left: 6px; }

/* The iPhone app, told to someone on the web */
.app-pitch{ position:relative; padding:18px; }
.app-pitch .pitch-head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; font-size:17px; color:var(--ink); padding-right:28px; }
.app-pitch .pitch-head img{ border-radius:10px; }
.app-pitch .pitch-x{ position:absolute; top:10px; right:10px; }
.pitch-list{ list-style:none; margin:0 0 14px; padding:0; display:flex; flex-direction:column; gap:10px; }
.pitch-list li{ display:flex; gap:10px; align-items:flex-start; font-size:14px; color:var(--hof); }
.pitch-list .ico{ color:var(--accent); flex:none; margin-top:1px; }
.pitch-soon{ display:flex; align-items:center; justify-content:center; gap:8px; padding:12px; border-radius:var(--r-md); background:var(--surface-hi); color:var(--ink-muted); font-size:14px; font-weight:600; margin:0; }
.pitch-move{ display:block; margin:12px auto 0; }
/* Flights and a stay for your own part of a group trip, on Trip.com */
.book-card{ position:relative; margin-top:16px; }
.book-card > b{ display:block; color:var(--ink); padding-right:32px; }
.book-card .pitch-x{ position:absolute; top:8px; right:8px; }
.book-links{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
/* The recap a finished trip becomes, previewed on a shared plan */
.recap-card{ border-radius:var(--r-lg); padding:22px 20px; color:#fff;
  background:radial-gradient(120% 90% at 20% 10%, #1f4a44 0%, #10201e 55%, #0b1413 100%); }
.recap-card .recap-kicker{ margin:0; font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:800; color:#F2694F; }
.recap-card h3{ margin:8px 0 18px; font-size:28px; line-height:1.1; font-weight:800; color:#fff; }
.recap-stats{ display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
.recap-stats .rn{ font-size:30px; font-weight:800; line-height:1; color:#fff; }
.recap-stats .rk{ margin-top:6px; font-size:13px; color:rgba(255,255,255,.72); }

.check-row{ display:flex; gap:12px; align-items:flex-start; margin:4px 0 12px; padding:12px 14px; border-radius:var(--r-md); background:var(--surface-hi); cursor:pointer; color:var(--ink); font-size:14px; }
.check-row input{ width:20px; height:20px; margin:1px 0 0; accent-color:var(--accent); flex:none; }
