*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ tokens */

/* Pastel throughout: soft fills with dark ink on them, never white-on-colour.
   The eight trip colours double as the eight people colours (slot 0 is for
   someone the trip no longer knows). Each has a fill, an ink to write on it
   and a deeper tone for a stripe or a dot. */
:root {
  color-scheme: light;
  --ground:      #F7F4EF;
  --surface:     #FFFFFF;
  --surface-2:   #F0EBE4;
  --line:        #E2DBD2;
  --line-soft:   #ECE6DE;
  --ink:         #2B2F35;
  --ink-2:       #656B74;
  --ink-3:       #969CA6;
  --accent:      #3F9183;   /* links, the active tab, outlines */
  --accent-2:    #4DA193;
  --accent-fill: #BEE3D8;   /* buttons */
  --accent-fill-ink: #103D35;
  --accent-ink:  var(--accent-fill-ink);
  --accent-soft: #DFF1EB;
  --sun:         #F9C9A2;
  --idea:        #7E70B8;  --idea-soft:   #E6E0F5;
  --planned:     #3F7FAE;  --planned-soft: #DCEBF7;
  --tobook:      #AD7B2A;  --tobook-soft: #FBEBC8;
  --booked:      #4E9A74;  --booked-soft: #D8F0E1;
  --cancel:      #C96F67;  --cancel-soft: #F8DCD9;
  --warn:        #C96F67;  --warn-soft:   #F8DCD9;
  --ok:          #4E9A74;  --ok-soft:     #D8F0E1;
  --c-mint:     #7FCBB8; --c-mint-ink:     #1F6354; --c-mint-soft:     #CDEAE1;
  --c-butter:   #E8C95A; --c-butter-ink:   #7A5B0E; --c-butter-soft:   #F7E8B5;
  --c-sky:      #7FB2E0; --c-sky-ink:      #24527E; --c-sky-soft:      #D2E4F5;
  --c-rose:     #D98BC0; --c-rose-ink:     #7E3367; --c-rose-soft:     #F2D7EA;
  --c-lavender: #A89AE0; --c-lavender-ink: #4E3F8C; --c-lavender-soft: #E0DAF3;
  --c-peach:    #F0A87A; --c-peach-ink:    #8A4A1F; --c-peach-soft:    #F9DCC4;
  --c-sage:     #9DC27D; --c-sage-ink:     #3F6327; --c-sage-soft:     #D9E6C8;
  --c-blush:    #E79AA4; --c-blush-ink:    #8A3B49; --c-blush-soft:    #F6D5D8;
  --h0: #969CA6; --h0-ink: #656B74; --h0-soft: #ECE6DE;
  --h1: var(--c-mint);     --h1-ink: var(--c-mint-ink);     --h1-soft: var(--c-mint-soft);
  --h2: var(--c-butter);   --h2-ink: var(--c-butter-ink);   --h2-soft: var(--c-butter-soft);
  --h3: var(--c-sky);      --h3-ink: var(--c-sky-ink);      --h3-soft: var(--c-sky-soft);
  --h4: var(--c-rose);     --h4-ink: var(--c-rose-ink);     --h4-soft: var(--c-rose-soft);
  --h5: var(--c-lavender); --h5-ink: var(--c-lavender-ink); --h5-soft: var(--c-lavender-soft);
  --h6: var(--c-peach);    --h6-ink: var(--c-peach-ink);    --h6-soft: var(--c-peach-soft);
  --h7: var(--c-sage);     --h7-ink: var(--c-sage-ink);     --h7-soft: var(--c-sage-soft);
  --h8: var(--c-blush);    --h8-ink: var(--c-blush-ink);    --h8-soft: var(--c-blush-soft);
  --shadow-sm:   0 1px 2px rgba(43, 47, 53, .05);
  --shadow:      0 1px 2px rgba(43, 47, 53, .04), 0 6px 18px rgba(43, 47, 53, .05);
  --shadow-lift: 0 3px 6px rgba(43, 47, 53, .08), 0 16px 36px rgba(43, 47, 53, .14);
  --r: 16px;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --top: calc(56px + env(safe-area-inset-top));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground:      #15181D;
    --surface:     #1E2228;
    --surface-2:   #272C34;
    --line:        #343A44;
    --line-soft:   #2C323B;
    --ink:         #E8EAEE;
    --ink-2:       #A3A9B4;
    --ink-3:       #747B87;
    --accent:      #8FD4C3;
    --accent-2:    #A6DFD1;
    --accent-fill: #2A5F54;
    --accent-fill-ink: #DFF5EE;
    --accent-soft: #1B3A34;
    --sun:         #E9A878;
    --idea:        #C0B5EE;  --idea-soft:   #2B2745;
    --planned:     #9CC8EE;  --planned-soft: #172F45;
    --tobook:      #EACB7A;  --tobook-soft: #3B2F12;
    --booked:      #8FD9AF;  --booked-soft: #163826;
    --cancel:      #F0A49A;  --cancel-soft: #3D1F1C;
    --warn:        #F0A49A;  --warn-soft:   #3D1F1C;
    --ok:          #8FD9AF;  --ok-soft:     #163826;
    --c-mint:     #7FCBB8; --c-mint-ink:     #A8DCCF; --c-mint-soft:     #1E4A41;
    --c-butter:   #E8C95A; --c-butter-ink:   #EBD27A; --c-butter-soft:   #3F3514;
    --c-sky:      #7FB2E0; --c-sky-ink:      #9CC4EE; --c-sky-soft:      #1D3550;
    --c-rose:     #D98BC0; --c-rose-ink:     #E7A6D3; --c-rose-soft:     #42203A;
    --c-lavender: #A89AE0; --c-lavender-ink: #C2B6F0; --c-lavender-soft: #2C2748;
    --c-peach:    #F0A87A; --c-peach-ink:    #F2B48A; --c-peach-soft:    #442A18;
    --c-sage:     #9DC27D; --c-sage-ink:     #B5D39A; --c-sage-soft:     #27381B;
    --c-blush:    #E79AA4; --c-blush-ink:    #EEA9B2; --c-blush-soft:    #432227;
    --h0: #747B87; --h0-ink: #A3A9B4; --h0-soft: #2C323B;
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .35);
    --shadow:      0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .28);
    --shadow-lift: 0 3px 6px rgba(0, 0, 0, .5), 0 16px 36px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #15181D; --surface: #1E2228; --surface-2: #272C34; --line: #343A44; --line-soft: #2C323B;
  --ink: #E8EAEE; --ink-2: #A3A9B4; --ink-3: #747B87;
  --accent: #8FD4C3; --accent-2: #A6DFD1; --accent-fill: #2A5F54; --accent-fill-ink: #DFF5EE; --accent-soft: #1B3A34; --sun: #E9A878;
  --idea: #C0B5EE; --idea-soft: #2B2745; --planned: #9CC8EE; --planned-soft: #172F45; --tobook: #EACB7A; --tobook-soft: #3B2F12;
  --booked: #8FD9AF; --booked-soft: #163826; --cancel: #F0A49A; --cancel-soft: #3D1F1C;
  --warn: #F0A49A; --warn-soft: #3D1F1C; --ok: #8FD9AF; --ok-soft: #163826;
  --c-mint: #7FCBB8; --c-mint-ink: #A8DCCF; --c-mint-soft: #1E4A41;
  --c-butter: #E8C95A; --c-butter-ink: #EBD27A; --c-butter-soft: #3F3514;
  --c-sky: #7FB2E0; --c-sky-ink: #9CC4EE; --c-sky-soft: #1D3550;
  --c-rose: #D98BC0; --c-rose-ink: #E7A6D3; --c-rose-soft: #42203A;
  --c-lavender: #A89AE0; --c-lavender-ink: #C2B6F0; --c-lavender-soft: #2C2748;
  --c-peach: #F0A87A; --c-peach-ink: #F2B48A; --c-peach-soft: #442A18;
  --c-sage: #9DC27D; --c-sage-ink: #B5D39A; --c-sage-soft: #27381B;
  --c-blush: #E79AA4; --c-blush-ink: #EEA9B2; --c-blush-soft: #432227;
  --h0: #747B87; --h0-ink: #A3A9B4; --h0-soft: #2C323B;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .28);
  --shadow-lift: 0 3px 6px rgba(0, 0, 0, .5), 0 16px 36px rgba(0, 0, 0, .5);
}
/* A trip's colour, set on its card and its Home banner. */
.tc-mint     { --trip: var(--c-mint);     --trip-ink: var(--c-mint-ink);     --trip-soft: var(--c-mint-soft); }
.tc-butter   { --trip: var(--c-butter);   --trip-ink: var(--c-butter-ink);   --trip-soft: var(--c-butter-soft); }
.tc-sky      { --trip: var(--c-sky);      --trip-ink: var(--c-sky-ink);      --trip-soft: var(--c-sky-soft); }
.tc-rose     { --trip: var(--c-rose);     --trip-ink: var(--c-rose-ink);     --trip-soft: var(--c-rose-soft); }
.tc-lavender { --trip: var(--c-lavender); --trip-ink: var(--c-lavender-ink); --trip-soft: var(--c-lavender-soft); }
.tc-peach    { --trip: var(--c-peach);    --trip-ink: var(--c-peach-ink);    --trip-soft: var(--c-peach-soft); }
.tc-sage     { --trip: var(--c-sage);     --trip-ink: var(--c-sage-ink);     --trip-soft: var(--c-sage-soft); }
.tc-blush    { --trip: var(--c-blush);    --trip-ink: var(--c-blush-ink);    --trip-soft: var(--c-blush-soft); }

body {
  background: var(--ground); color: var(--ink);
  font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic .dot { fill: currentColor; stroke: none; }
.grow { flex: 1; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.lead { color: var(--ink-2); margin-bottom: 14px; }
.lead b { color: var(--ink); }
.hint { font-size: 12.5px; color: var(--ink-3); margin: -6px 0 14px; }
.fine { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 14px; }
.empty { color: var(--ink-2); padding: 24px 4px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font: 700 12px/1 var(--body); }
.you { font: 700 10.5px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 6px; border-radius: 99px; vertical-align: 2px; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-fill-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-fill) 85%, var(--accent)); border-color: color-mix(in srgb, var(--accent-fill) 85%, var(--accent)); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--warn); }
.btn-dangerfill { background: var(--cancel-soft); border-color: var(--cancel-soft); color: var(--cancel); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.iconbtn {
  width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center;
  border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn.sm { width: 36px; height: 36px; border-radius: 10px; }
.iconbtn .ic { width: 22px; height: 22px; }
.iconbtn.sm .ic { width: 19px; height: 19px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; cursor: pointer; text-align: left; }
.linkbtn:hover { text-decoration: underline; }

/* Shown before the app draws anything, and if it never does. */
.boot-wait, .boot-fail { max-width: 420px; margin: 80px auto; padding: 0 20px; text-align: center; color: var(--ink-2); }
.boot-fail { color: var(--warn); font-weight: 700; }

/* ------------------------------------------------------------------ brand */

.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 22px/1 var(--display); letter-spacing: -.01em; color: var(--ink); }
.brand .logo { width: 30px; height: 30px; }
.brand.lg { font-size: 40px; gap: 14px; }
.brand.lg .logo { width: 56px; height: 56px; }
.logo-bg { fill: #BEE3D8; }
.logo-w { fill: none; stroke: #103D35; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.logo-sun { fill: #F6B48C; }

/* ----------------------------------------------------------------- layout */

.app { min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.main { max-width: 760px; margin: 0 auto; padding: 0 16px calc(104px + env(safe-area-inset-bottom)); }
.app:not(.is-trip) .main { max-width: 900px; padding-bottom: 48px; }
.tabs:empty { display: none; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line-soft); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px;
  font-size: 11px; font-weight: 700; color: var(--ink-3); text-decoration: none; border-radius: 12px;
}
.tab .ic { width: 24px; height: 24px; }
.tab.on { color: var(--accent); }
.tab.on .ic { stroke-width: 2.1; }
.pane { display: none; }
.app.has-pane .pane {
  display: block; position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); -webkit-overflow-scrolling: touch;
}
html.pane-open body { position: fixed; left: 0; right: 0; overflow: hidden; }   /* pinned under the open item; the page's top is set from its scroll */
.only-desk { display: none !important; }
.page { container: page / inline-size; }

@media (min-width: 900px) {
  .app.is-trip { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; }
  .app.is-trip.has-pane { grid-template-columns: 236px minmax(0, 1fr) minmax(380px, 440px); }
  /* The sidebar belongs to a trip; on sign-in, an invite or My trips it stays hidden. */
  .app.is-trip .side {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line-soft);
  }
  .main { width: 100%; padding: 0 32px 64px; }
  .app.is-trip.has-pane .main { padding: 0 24px 64px; }
  .tabs { display: none; }
  .app.has-pane .pane {
    position: sticky; inset: auto; top: 0; height: 100vh; z-index: 5;   /* inset first: it is shorthand for top too */
    border-left: 1px solid var(--line-soft); box-shadow: -8px 0 24px rgba(40, 32, 20, .04);
  }
  html.pane-open body { position: static; overflow: auto; }
  .only-phone { display: none !important; }
  .only-desk { display: inline-flex !important; }
  svg.only-desk { display: block !important; }
  .fab { display: none !important; }
}

@media (min-width: 900px) and (max-width: 1239px) {
  .app.is-trip.has-pane { grid-template-columns: 76px minmax(0, 1fr) minmax(360px, 400px); }
  .has-pane .side { padding: 18px 10px; align-items: center; }
  .has-pane .side .brand span, .has-pane .side-back, .has-pane .side-trip, .has-pane .sn span,
  .has-pane .side-foot .btn span, .has-pane .side-me span, .has-pane .side .sync-l { display: none; }
  .has-pane .sn, .has-pane .side-foot .btn { width: 48px; padding: 0; justify-content: center; min-height: 44px; }
  .has-pane .side-foot { align-items: center; }
  .has-pane .side-brand { padding: 4px 0 18px; }
  .has-pane .dayjump.grid { display: none; }
}

/* ---------------------------------------------------------------- sidebar */

.side-brand { text-decoration: none; padding: 4px 8px 14px; }
.side-back { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; }
.side-back:hover { background: var(--surface-2); color: var(--ink); }
.side-back .ic { width: 17px; height: 17px; }
.side-trip { padding: 12px 10px 14px; }
.st-name { font: 600 21px/1.15 var(--display); display: flex; align-items: center; gap: 8px; }
.tdot { width: 12px; height: 12px; border-radius: 50%; background: var(--trip, var(--c-mint)); flex: none; box-shadow: 0 0 0 3px var(--trip-soft, var(--c-mint-soft)); }
.st-dates { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.sn { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 700; }
.sn:hover { background: var(--surface-2); color: var(--ink); }
.sn.on { background: var(--accent-soft); color: var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.side-foot .sync { padding: 4px 8px; }
.side-me { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-weight: 700; text-align: left; }
.side-me:hover { background: var(--surface-2); }

/* ----------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px;
  min-height: var(--top); padding: env(safe-area-inset-top) 4px 0; margin: 0 -16px 4px;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.home-top { padding-left: 16px; padding-right: 8px; }
.tb-title { flex: 1; min-width: 0; padding: 0 4px; }
.tb-phone { font: 600 19px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-desk { display: none; }
.tb-back { font: 700 15px/1 var(--body); color: var(--ink-2); text-decoration: none; }
@media (min-width: 900px) {
  .topbar { margin: 0 -32px 6px; padding: 0 28px; min-height: 68px; }
  .app.is-trip.has-pane .topbar { margin: 0 -24px 6px; padding: 0 20px; }
  .tb-phone { display: none; }
  .tb-desk { display: block; font: 600 26px/1.15 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html { scroll-padding-top: 84px; }
}
.sync { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 0 6px; }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sync.busy .dot { background: var(--tobook); animation: pulse 1s ease-in-out infinite; }
.sync.off .dot { background: var(--ink-3); }
.topbar .sync-l { display: none; }
.topbar .sync.off .sync-l { display: inline; }
.side .sync-l { display: inline; }
@media (min-width: 900px) { .topbar .sync-l { display: inline; } }
@keyframes pulse { 50% { opacity: .3; } }
.me-btn .av { width: 40px; height: 40px; font-size: 14px; }
.offline {
  display: flex; gap: 9px; align-items: center; padding: 10px 12px; margin: 2px 0 10px;
  border-radius: 12px; background: var(--tobook-soft); color: var(--tobook); font-size: 13.5px; font-weight: 700;
}
.offline .ic { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ cards */

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; margin-top: 12px; scroll-margin-top: calc(var(--top) + 8px); }
@media (min-width: 900px) { .card { scroll-margin-top: 76px; } }
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 30px; }
.card-head h2 { font: 600 18px/1.2 var(--display); }
.card-head .sub { font-size: 12.5px; color: var(--ink-3); }
.card-head .more, .more-row { margin-left: auto; font-size: 13.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.card-head .btn { margin-left: auto; }
.more-row { display: block; padding-top: 10px; }
.sect { display: flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 26px 2px 10px; }
.linkcard { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-2); }
.linkcard b { color: var(--ink); }
.linkcard span { flex: 1; }
.linkcard .ic { color: var(--accent); }
.empty-card { text-align: center; padding: 28px 20px; }
.empty-card h2 { font: 600 24px/1.2 var(--display); margin: 6px 0 8px; }
.empty-card p { color: var(--ink-2); max-width: 440px; margin: 0 auto 18px; }
.empty-art { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.empty-art .ic { width: 32px; height: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* ----------------------------------------------------------- people bits */

.av {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  font: 800 13px/1 var(--body); letter-spacing: .02em; background: var(--h0-soft); color: var(--h0-ink);
}
.av .ic { width: 16px; height: 16px; }
.av.has-photo { position: relative; overflow: hidden; }
.av.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 64px; height: 64px; font-size: 22px; }
.h1 { background: var(--h1-soft); color: var(--h1-ink); } .h2 { background: var(--h2-soft); color: var(--h2-ink); }
.h3 { background: var(--h3-soft); color: var(--h3-ink); } .h4 { background: var(--h4-soft); color: var(--h4-ink); }
.h5 { background: var(--h5-soft); color: var(--h5-ink); } .h6 { background: var(--h6-soft); color: var(--h6-ink); }
.h7 { background: var(--h7-soft); color: var(--h7-ink); } .h8 { background: var(--h8-soft); color: var(--h8-ink); }
.avs { display: flex; }
.avs .av { width: 34px; height: 34px; font-size: 12px; margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.tripcard .avs .av { box-shadow: 0 0 0 2px var(--trip-soft); background: var(--surface); }
.avs .av:first-child { margin-left: 0; }

/* ------------------------------------------------------------- type & status */

.ticon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  --tc: var(--ink-2); color: var(--tc); background: color-mix(in srgb, var(--tc) 16%, var(--surface)); }
.ticon .ic { width: 20px; height: 20px; }
.t-stay { --tc: #8580CF; } .t-flight { --tc: #6E9FD0; } .t-ferry { --tc: #4FA9AE; } .t-train { --tc: #8793A0; }
.t-bus { --tc: #A39B52; } .t-car { --tc: #CF9466; } .t-transfer { --tc: #A69588; } .t-activity { --tc: #DC8A66; }
.t-food { --tc: #D186A2; } .t-other { --tc: #8E9AA0; } .t-hike { --tc: #6FA36B; } .t-stop { --tc: #A673B8; } .t-camp { --tc: #3F8F7A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-stay { --tc: #B3AFF0; } :root:not([data-theme="light"]) .t-flight { --tc: #9CC4EE; }
  :root:not([data-theme="light"]) .t-ferry { --tc: #7FD0D4; } :root:not([data-theme="light"]) .t-train { --tc: #B5C0CC; }
  :root:not([data-theme="light"]) .t-bus { --tc: #D4CF8A; } :root:not([data-theme="light"]) .t-car { --tc: #F2B48A; }
  :root:not([data-theme="light"]) .t-transfer { --tc: #C8BCB1; } :root:not([data-theme="light"]) .t-activity { --tc: #F5A98A; }
  :root:not([data-theme="light"]) .t-food { --tc: #EEA6C0; } :root:not([data-theme="light"]) .t-other { --tc: #B5C0C4; }
  :root:not([data-theme="light"]) .t-hike { --tc: #A3D69F; } :root:not([data-theme="light"]) .t-stop { --tc: #D3A6E3; }
  :root:not([data-theme="light"]) .t-camp { --tc: #8FD4C3; }
  :root:not([data-theme="light"]) .ticon { background: color-mix(in srgb, var(--tc) 16%, var(--surface)); }
}
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 99px; font: 700 11.5px/1.3 var(--body); white-space: nowrap; flex: none; }
.chip .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.st-idea.chip { background: var(--idea-soft); color: var(--idea); }
.st-planned.chip { background: var(--planned-soft); color: var(--planned); }
.st-tobook.chip { background: var(--tobook-soft); color: var(--tobook); }
.st-booked.chip { background: var(--booked-soft); color: var(--booked); }
.st-cancelled.chip { background: var(--cancel-soft); color: var(--cancel); }
.pill { font: 700 11px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; background: var(--accent-fill); color: var(--accent-fill-ink); }
/* A deadline on a row: a quiet chip, amber when it is close, red once it has passed. */
.dl { flex: none; padding: 4px 9px; border-radius: 99px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.dl.soon, .r-meta.soon, .s.soon, .r-note.soon { color: var(--tobook); }
.dl.over, .r-meta.over, .s.over, .r-note.over { color: var(--warn); }
.dl.soon { background: var(--tobook-soft); }
.dl.over { background: var(--warn-soft); }

/* ---------------------------------------------------------------- my trips */

.trips-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 2px 4px; }
.trips-head h1 { font: 600 32px/1.1 var(--display); letter-spacing: -.01em; }
.tripgrid { display: grid; gap: 12px; }
@media (min-width: 700px) { .tripgrid { grid-template-columns: 1fr 1fr; } }
.tripcard {
  position: relative; display: block; text-decoration: none; color: inherit; overflow: hidden;
  background: var(--trip-soft); border: 1px solid color-mix(in srgb, var(--trip) 35%, var(--line-soft)); border-radius: 18px; box-shadow: var(--shadow);
  padding: 16px 16px 14px 20px; transition: transform .15s, box-shadow .15s;
}
.tripcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--trip); }
.tripcard.has-cover { padding-top: 0; }
.tc-cover { height: 124px; margin: 0 -16px 14px -15px; background-size: cover; background-position: center; background-color: var(--trip-soft); }
.tripcard.past .tc-cover { filter: saturate(.5); opacity: .8; }
.tripcard.past { box-shadow: none; background: color-mix(in srgb, var(--trip-soft) 45%, var(--surface)); }
.tripcard.past::before { opacity: .5; }
.tripcard:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-when { font: 700 12px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--trip-ink); }
.tripcard.past .tc-when { color: var(--ink-3); }
.tc-name { font: 600 23px/1.15 var(--display); margin: 10px 0 4px; }
.tc-dates { color: var(--ink-2); font-size: 14px; }
.tc-route { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.tc-route .ic { width: 15px; height: 15px; color: var(--ink-3); }
.tc-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--trip) 45%, var(--line)); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tc-foot .owe { color: var(--warn); }
.tc-foot .tobook { color: var(--tobook); }
.tc-foot span { padding: 3px 8px; margin: -3px 0; border-radius: 99px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.tc-foot .ro { color: var(--ink-3); }

/* -------------------------------------------------------------------- home */

/* Home: the photos of where the trip is going stand across the top of the
   screen — on a phone right up under the top bar, which turns clear over
   them (html.hero-bar, set by app.js as the page scrolls) — with the
   trip's name and the countdown over them, and a white sheet with rounded
   shoulders rides up over their lower edge holding the rest. With no
   photos the hero is the trip's colour, and shorter. (app.js: viewHome) */
.hh {
  position: relative; height: clamp(300px, 46vh, 480px); height: clamp(300px, 46dvh, 480px); margin: calc(-1 * var(--top) - 4px) -16px 0;
  overflow: hidden; color: var(--trip-ink); -webkit-user-select: none; user-select: none;
  background: linear-gradient(160deg, var(--trip-soft), color-mix(in srgb, var(--trip) 55%, var(--trip-soft)));
}
.offline + .page-home .hh { margin-top: 0; }         /* under a note, the bar stays put */
.hh.plain { height: 250px; }
.hh.has-photos { color: #fff; }
.hh::before, .hh::after { content: ''; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.hh::before { top: 0; height: 130px; background: linear-gradient(to bottom, rgba(16, 18, 22, .5), transparent); }   /* the bar's icons */
.hh::after { bottom: 0; height: 62%; background: linear-gradient(to top, rgba(16, 18, 22, .66), rgba(16, 18, 22, .26) 50%, transparent); }   /* the name */
.hh.plain::before, .hh.plain::after { display: none; }
.hh-text { position: absolute; left: 24px; right: 24px; bottom: 88px; z-index: 3; text-align: center; pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.hh.plain .hh-text { bottom: 52px; text-shadow: none; }
.hh-name { font: 500 clamp(26px, 7.4vw, 38px)/1.12 var(--display); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; overflow-wrap: anywhere; }
.hh-tag { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; font: 700 11px/1.5 var(--body); letter-spacing: .22em; text-transform: uppercase; opacity: .92; }
.hh-dot { opacity: .7; }
.hero-edit {
  position: absolute; top: 14px; right: 14px; z-index: 4; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .22); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-edit:hover { background: rgba(255, 255, 255, .36); }
.hh.plain .hero-edit { background: color-mix(in srgb, var(--trip-ink) 12%, transparent); color: var(--trip-ink); }
.hero-edit .ic { width: 18px; height: 18px; }
/* The top bar over the photos, on a phone: clear, white, and without the
   trip's name (it is on the photos) until the sheet reaches it. */
.topbar { transition: background .2s; }
.topbar .tb-title { transition: opacity .2s; }
html.hero-bar .main .topbar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.hero-bar .topbar .iconbtn { color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
html.hero-bar .topbar .iconbtn:hover { background: rgba(255, 255, 255, .18); }
html.hero-bar .topbar .tb-title { opacity: 0; }
html.hero-bar .topbar .sync, html.hero-bar .topbar .sync-l { color: #fff; }
html.hero-plain .topbar .iconbtn { color: var(--ink); filter: none; }
html.hero-plain .topbar .iconbtn:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
html.hero-plain .topbar .sync, html.hero-plain .topbar .sync-l { color: var(--ink-2); }

/* The slideshow filling the hero: one photo at a time, fading to the next
   on its own or on a swipe, an arrow key or the arrows that appear under a
   mouse. The outgoing slide stays put under the one fading in, so the photo
   never dims between them. */
.hh .slides { position: absolute; inset: 0; z-index: 1; background: var(--trip-soft); }
.slides.loading::after {
  content: ''; position: absolute; inset: 0; background-size: 200% 100%; animation: shimmer 1.8s linear infinite;
  background-image: linear-gradient(100deg, transparent 35%, color-mix(in srgb, var(--surface) 40%, transparent) 50%, transparent 65%);
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0s .9s, visibility 0s .9s; }
.slide.on { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s ease; }
.slide-img { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 9s linear; }
.slide.on .slide-img img { transform: scale(1.06); }
.slide-img:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* A quiet line naming the item and the photographer, in the corner above the sheet. */
.slide-cap {
  position: absolute; left: 20px; right: 88px; bottom: 42px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); pointer-events: none;
}
.slide-cap > * { pointer-events: auto; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-title { font: 700 13px/1.35 var(--body); color: #fff; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; text-shadow: inherit; }
.slide-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.slide-title:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.slide-sub { font-size: 11px; font-weight: 600; opacity: .8; }
.slide-count {
  position: absolute; right: 18px; bottom: 46px; z-index: 3; padding: 3px 9px; border-radius: 99px; pointer-events: none;
  background: rgba(16, 18, 22, .4); color: #fff; font-size: 11px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.slide-nav {
  position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -34px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .88); color: #2B2F35; cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .2s, background .15s;
}
.slide-nav.prev { left: 12px; }
.slide-nav.next { right: 12px; }
.slide-nav .ic { width: 20px; height: 20px; }
.slide-nav.next .ic { transform: scaleX(-1); }
.slide-nav:hover { background: #fff; }
.hh:hover .slide-nav, .slide-nav:focus-visible { opacity: 1; }
@media (hover: none) { .slide-nav { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.on, .slide-img img, .slide.on .slide-img img { transition: none; transform: none; }
  .slides.loading::after { animation: none; }
}

/* The sheet: pills, Today while the trip is on, and a timeline of rows. */
.hs {
  position: relative; z-index: 2; margin: -28px -16px calc(-104px - env(safe-area-inset-bottom)); padding: 16px 16px calc(112px + env(safe-area-inset-bottom));
  min-height: calc(100vh - clamp(300px, 46vh, 480px) + 28px); min-height: calc(100dvh - clamp(300px, 46dvh, 480px) + 28px);
  background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: 0 -6px 24px rgba(43, 47, 53, .1);
}
.hh.plain + .hs { min-height: calc(100vh - 222px); min-height: calc(100dvh - 222px); }
.hs .card { margin-top: 4px; margin-bottom: 8px; }
.hs-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 8px; padding: 2px 0; }
.hs-tabs::-webkit-scrollbar { display: none; }
.hs-tab {
  flex: none; min-height: 38px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); cursor: pointer;
  background: var(--surface); color: var(--ink-2); font: 700 14px/1 var(--body); transition: background .15s, color .15s, border-color .15s;
}
.hs-tab:hover { border-color: var(--ink-3); color: var(--ink); }
.hs-tab.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.hs-empty { text-align: center; padding: 28px 12px; }
.hs-empty h2 { font: 600 24px/1.2 var(--display); margin: 6px 0 8px; }
.hs-empty p { color: var(--ink-2); max-width: 440px; margin: 0 auto 18px; }
.tl { position: relative; }
.tl::before { content: ''; position: absolute; left: 19px; top: 30px; bottom: 30px; width: 2px; background: var(--line-soft); }
.tl-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; color: inherit; cursor: pointer; }
.tl-row:hover .tl-chev { color: var(--ink); }
.tl-row:hover .tl-title { color: var(--accent); }
.tl-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
.tl-icon {
  position: relative; z-index: 1; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tc, var(--ink-3)); color: #fff; box-shadow: 0 0 0 4px var(--surface);
}
.tl-icon .ic { width: 19px; height: 19px; stroke-width: 2; }
.tl-icon.none { width: 14px; height: 14px; margin: 0 13px; background: var(--surface); border: 2px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-icon { color: #15181D; } }
:root[data-theme="dark"] .tl-icon { color: #15181D; }
.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-label { font: 800 10.5px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tl-row.today .tl-label { color: var(--accent); }
.tl-title { font: 600 18px/1.2 var(--display); color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; transition: color .15s; }
.tl-sub { font: 500 13px/1.4 var(--body); color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tl-row.gap .tl-title { color: var(--tobook); }
.tl-row.quiet .tl-title { color: var(--ink-3); }
.tl-photo { flex: none; width: 86px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.tl-chev { flex: none; width: 18px; height: 18px; color: var(--ink-3); margin-left: -4px; transition: color .15s; }
.tl-empty { color: var(--ink-3); font-size: 14px; text-align: center; padding: 22px 8px; }
@media (min-width: 900px) {
  .hh { height: clamp(320px, 48vh, 460px); height: clamp(320px, 48dvh, 460px); margin: 6px 0 0; border-radius: 22px; box-shadow: var(--shadow); }
  .hh.plain { height: 260px; }
  .hh-text { bottom: 76px; }
  .hh-name { font-size: clamp(30px, 3.4vw, 44px); }
  .hs { margin: -28px 0 0; padding: 18px 22px 26px; min-height: 0; border-radius: 28px; border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
  .tl::before { left: 19px; }
  .tl-photo { width: 104px; height: 82px; }
}
/* Today's card, while the trip is on: when to leave, and where the night is spent. */
.tonight { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); }
.tonight .ic { width: 17px; height: 17px; color: var(--idea); }
.leaveline .ic { color: var(--accent); }
.leaveline b { color: var(--ink); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar.big { height: 12px; margin: 12px 0 8px; }
.bar.thin { height: 5px; margin-top: 6px; display: block; }
.bar span { display: block; height: 100%; background: var(--c-mint); border-radius: 99px; }

/* ------------------------------------------------------------------- rows */

.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; margin: 0 -4px; border-top: 1px solid var(--line-soft); border-radius: 10px; }
.row:first-child { border-top: 0; }
.row[data-act] { cursor: pointer; }
.row[data-act]:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.row.sel { background: var(--accent-soft); }
.r-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.r-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-meta { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-note { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.r-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.amt { font: 700 15.5px/1.2 var(--body); white-space: nowrap; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.amt small { font: 600 11.5px/1.2 var(--body); color: var(--ink-3); }
.conf {
  display: inline-flex; align-items: center; gap: 7px; max-width: 170px; padding: 7px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer;
  font: 700 14px/1 var(--mono); letter-spacing: .02em;
}
.conf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conf .ic { width: 15px; height: 15px; color: var(--ink-2); }
.conf:hover { border-color: var(--ink-3); }
.conf.none { cursor: default; font: 600 12px/1 var(--body); color: var(--ink-3); background: none; border-style: dashed; }
@container page (max-width: 460px) {
  .row.booked { flex-wrap: wrap; }
  .row.booked .r-body { flex-basis: calc(100% - 52px); }
  .row.booked .r-actions { margin-left: 50px; }
}
.subhead { font: 800 12px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 2px; padding-top: 10px; border-top: 1px dashed var(--line); }
.subhead + .rows .row:first-child { border-top: 0; }
/* On a phone a row's title wraps rather than being cut short, and its
   deadline drops under the title instead of taking a column of its own. */
@container page (max-width: 480px) {
  .row .r-title, .row .r-meta { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .row:has(> .dl) { flex-wrap: wrap; row-gap: 0; }
  .row:has(> .dl)::before { content: ''; order: 2; flex-basis: 100%; height: 0; }
  .row > .dl { order: 3; margin: 8px 0 2px 50px; }
}
.r-meta .chip { vertical-align: middle; margin-right: 2px; }
.fold summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; min-height: 30px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary h2 { font: 600 18px/1.2 var(--display); }
.fold summary::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; }
.fold[open] summary::after { transform: rotate(-135deg); }
.fold[open] summary { margin-bottom: 8px; }

/* --------------------------------------------------------------- itinerary */

/* One white sheet, like Home's, holding the trip day by day as a timeline.
   Each day's things are rows on a line — a solid type-coloured circle, the
   time as a small label, the title, the place's first photo on the right
   and the grip — with the drives between them, the check-outs and the
   night as quieter rows on the same line. Day headers stay sticky. */
.ps { position: relative; margin: 6px -16px 0; padding: 4px 16px calc(112px + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: 0 -6px 24px rgba(43, 47, 53, .06); }
.page-plan { margin-bottom: calc(-104px - env(safe-area-inset-bottom)); }   /* the sheet runs on under the tab bar */
.ideas, .day { position: relative; padding: 0 0 8px; }
.day + .day::before, .ideas + .day::before { content: ''; display: block; height: 1px; margin: 6px 0 0; background: var(--line-soft); }   /* a hairline between days */
.day { scroll-margin-top: var(--top); }
.dayhead {
  position: sticky; top: var(--top); z-index: 6; display: flex; align-items: center; gap: 8px;
  padding: 16px 0 10px; background: var(--surface);
}
@media (min-width: 900px) { .dayhead { top: 68px; } }
/* Jump to a day: a strip of date pills under the top bar on a phone, a grid
   under Itinerary in the laptop sidebar. The day in view is lit. */
.dayjump { display: flex; align-items: center; gap: 6px; }
.dayjump.strip { position: sticky; top: var(--top); z-index: 7; overflow-x: auto; padding: 4px 16px 10px; margin: 0 -16px 2px; background: var(--ground); scrollbar-width: none; }
.dayjump.strip::-webkit-scrollbar { display: none; }
.dayjump a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink-2); font: 700 11px/1.2 var(--body); border-radius: 12px; }
.dayjump.strip a { flex: none; width: 44px; padding: 6px 0 5px; background: var(--surface); border: 1px solid var(--line-soft); }
.dayjump a b { font: 600 17px/1.1 var(--display); color: var(--ink); }
.dayjump a.on { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-fill-ink); }
.dayjump a.on b { color: var(--accent-fill-ink); }
.dayjump a.today:not(.on) b { color: var(--accent); }
.dayjump a.outside { opacity: .55; }
.dayjump .mon { flex: none; font: 800 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 4px 0 2px; }
.dayjump.grid { display: none; }
@media (max-width: 899px) { .page-plan .dayhead { top: calc(var(--top) + var(--strip, 0px)); } }
@media (min-width: 900px) {
  .dayjump.strip { display: none; }
  .dayjump.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 2px 10px 8px 44px; }
  .dayjump.grid a { height: 26px; justify-content: center; background: var(--surface-2); border-radius: 8px; }
  .dayjump.grid a b { font: 700 12px/1 var(--body); color: var(--ink-2); }
  .dayjump.grid a.on b { color: var(--accent-fill-ink); }
}
.dh-main { display: flex; flex-direction: column; min-width: 0; }
.dh-num { font: 800 10.5px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.dh-date { font: 600 22px/1.15 var(--display); }
.day.outside .dh-num { color: var(--tobook); }
.day.today .dh-date { color: var(--accent); }
.ideashead .dh-num { color: var(--idea); }
.dh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dayhead .leave { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 4px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font: 700 12px/1.2 var(--body); white-space: nowrap; }
.dayhead .leave.drive { background: var(--surface-2); color: var(--ink-2); }
.dayhead .leave .ic { width: 14px; height: 14px; stroke-width: 2.2; }
/* The day's rows, on their line. */
.dtl { position: relative; }
.dtl::before { content: ''; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line-soft); }
.dtl:not(:has(.icard, .erow, .night, .travel, .ideafold))::before { display: none; }   /* nothing on the line yet */
.daylist { display: flex; flex-direction: column; min-height: 4px; border-radius: 14px; }
.dayempty { position: relative; font-size: 13.5px; color: var(--ink-3); padding: 8px 0 8px 54px; }
.islot { position: relative; }
.icard {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 9px 0; border-radius: 14px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;   /* a press is for dragging or tapping, never selecting */
  cursor: pointer; transition: background .15s;
}
.icard > .ticon { width: 40px; height: 40px; border-radius: 50%; background: var(--tc, var(--ink-3)); color: #fff; box-shadow: 0 0 0 4px var(--surface); }
.icard > .ticon .ic { width: 19px; height: 19px; stroke-width: 2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icard > .ticon { background: var(--tc, var(--ink-3)); color: #15181D; } }   /* solid, over the pale tint other icons get in the dark */
:root[data-theme="dark"] .icard > .ticon { color: #15181D; }
.icard.sel { background: var(--accent-soft); margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.icard.sel > .ticon { box-shadow: 0 0 0 4px var(--accent-soft); }
.icard:hover .ititle { color: var(--accent); }
.ibody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ilabel { font: 800 10.5px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.irow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }   /* the title with its status on the right */
.irow .ititle { flex: 1; }
.ititle { font: 600 17px/1.25 var(--display); color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; transition: color .15s; }
/* Under a card's title: the item's heads-up (flagged) and the place's hours
   that day, amber when it is shut or the plan misses them. */
.iextra { display: flex; align-items: center; gap: 5px; margin-top: 3px; font: 600 13px/1.35 var(--body); color: var(--ink-2); }
.iextra .ic { width: 14px; height: 14px; flex: none; color: var(--ink-3); }
.iextra.heads { color: var(--ink); }
.iextra.heads .ic, .iextra.warn, .iextra.warn .ic { color: var(--tobook); }
.icard.stopcard .iextra { margin-top: 1px; }
.iv-block.heads > .ic { color: var(--tobook); }
.iv-block.warnblock b { color: var(--tobook); }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--booked-soft); color: var(--booked); }
.tick.planned { background: var(--planned-soft); color: var(--planned); }
.tick .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.icard.st-cancelled .ititle { text-decoration: line-through; color: var(--ink-3); }
.icard.st-cancelled > .ticon { filter: grayscale(1); opacity: .6; }
/* The place's first photo, on the right: a tap opens them all. */
button.lead { position: relative; flex: none; width: 72px; height: 64px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
button.lead img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.icard img, button.lead { -webkit-user-drag: none; }
button.lead .more { position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 99px; background: rgba(20, 24, 28, .55); color: #fff; font: 700 11px/1.4 var(--body); }
button.lead:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icard.st-cancelled .lead img { filter: grayscale(1); opacity: .6; }
@media (min-width: 900px) { button.lead { width: 96px; height: 76px; } }   /* the photo tile, not the sheets' lead paragraph */
.grip {
  width: 36px; height: 46px; flex: none; display: grid; place-items: center; margin: 0 -8px 0 -6px;
  border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: grab;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.grip:hover { color: var(--ink); background: var(--surface-2); }
.grip .ic { width: 20px; height: 20px; }
/* The quieter rows on the line: a small circle where the big ones are. */
.travel > .ic, .erow > .ic, .night > .ic, .ideafold > .ic:first-child {
  width: 24px; height: 24px; padding: 5px; margin: 0 8px; flex: none; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-3); box-shadow: 0 0 0 3px var(--surface);
}
/* The drive between two stops: above the item it leads to, and under the
   day's last item for the way back. Tapping it (with edit access) is where
   a travel time of your own goes. */
.travel { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 5px 0 7px; font: 600 13px/1.4 var(--body); color: var(--ink-2); }
.travel > span { flex: 1; min-width: 0; }
.travel b { color: var(--ink); }
.travel.tap { cursor: pointer; }
.travel.tap:hover > span { color: var(--ink); }
.travel.tap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.travel.late > .ic { background: var(--tobook-soft); color: var(--tobook); }
.tl-tag { display: inline-block; padding: 1px 6px; border-radius: 99px; background: var(--surface-2); color: var(--ink-3); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.tl-warn { color: var(--tobook); font-weight: 700; }
.tl-late { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--tobook-soft); color: var(--tobook); font-weight: 700; }
.tl-map { display: inline-flex; align-items: center; gap: 3px; flex: none; margin-right: 4px; color: var(--accent); font-weight: 700; text-decoration: none; }
.tl-map .ic { width: 13px; height: 13px; color: var(--accent); }
.tl-map:hover { text-decoration: underline; }
.est { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.unitf { display: flex; align-items: center; gap: 8px; }
.unitf input { max-width: 110px; }
.unitf .unit { font-weight: 700; color: var(--ink-2); }
/* A check-out (or a car going back) on this day, and where the night is spent. */
.erow, .night { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 6px 0; font-size: 13.5px; color: var(--ink-2); }
.erow { cursor: pointer; }
.erow b { color: var(--ink); }
.erow:hover b { color: var(--accent); }
.night > .ic { background: var(--idea-soft); color: var(--idea); }
.night .linkbtn { color: var(--ink); }
.night.none { color: var(--tobook); }
.night.none > .ic { background: var(--tobook-soft); color: var(--tobook); }
.night.none .linkbtn { margin-left: auto; color: var(--accent); }
.night .chip { vertical-align: 1px; }
.addday { margin-top: 18px; border-style: dashed; color: var(--ink-2); }
/* A day's ideas, folded under one quiet line; opened, they are paler than
   the plan, with no Idea chip on each. */
.ideafold {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 7px 0; border: 0;
  background: none; color: var(--idea); font: 700 13.5px/1.3 var(--body); text-align: left; cursor: pointer;
}
.ideafold > .ic:first-child { background: var(--idea-soft); color: var(--idea); }
.ideafold:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.ideafold .chev { margin-left: auto; width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .15s; }
.ideafold.open .chev { transform: rotate(90deg); }
.ideafold:focus-visible { outline: 2px solid var(--idea); outline-offset: 2px; border-radius: 10px; }
.islot.quiet .icard > .ticon { background: color-mix(in srgb, var(--tc) 22%, var(--surface)); color: var(--tc); }
.islot.quiet .ititle { color: var(--ink-2); font-weight: 500; }
/* A pit stop: a small row on the drive, the size of the drive's own, not a
   card of its own. */
.icard.stopcard { min-height: 40px; padding: 3px 0; }
.icard.stopcard > .ticon { width: 24px; height: 24px; margin: 0 8px; box-shadow: 0 0 0 3px var(--surface); }
.icard.stopcard > .ticon .ic { width: 14px; height: 14px; }
.icard.stopcard.sel > .ticon { box-shadow: 0 0 0 3px var(--accent-soft); }
.icard.stopcard .ititle { font: 700 14px/1.35 var(--body); }
.smeta { font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.icard.stopcard .lead { width: 48px; height: 38px; border-radius: 10px; }
.icard.stopcard .lead .more { display: none; }
.icard.stopcard .grip { height: 36px; }
.addstop { margin: 0 0 16px; }

/* dragging */
.ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; margin: 0; padding: 9px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lift); opacity: .97; }
.islot.placeholder .icard { opacity: .35; }
.islot.placeholder .icard::after { content: ''; position: absolute; inset: 2px -8px; border: 2px dashed var(--accent); border-radius: 14px; }
.islot.placeholder .travel { visibility: hidden; }
html.dragging, html.dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
html.dragging .daylist { min-height: 56px; background: color-mix(in srgb, var(--accent) 6%, transparent); outline: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
html.dragging .dayempty, html.dragging .fab { display: none; }
@media (min-width: 900px) {
  .ps { margin: 6px 0 0; padding: 6px 22px 26px; border-radius: 28px; border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
  .page-plan { margin-bottom: 0; }
}

/* --------------------------------------------------------------- money */

/* The totals, a row each: the label on the left, the whole figure on the
   right. A figure too long for the space beside its label drops under it
   rather than being cut short. */
.moneytop .mt { display: flex; flex-direction: column; }
.moneytop .mt > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 7px 0; border-top: 1px solid var(--line-soft); min-width: 0; }
.moneytop .mt > div:first-child { border-top: 0; padding-top: 0; }
.moneytop .mt > div:last-child { padding-bottom: 2px; }
.moneytop .k { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.moneytop .v { margin-left: auto; font: 600 24px/1.15 var(--display); letter-spacing: -.01em; white-space: nowrap; text-align: right; }
.moneytop .v.ok { color: var(--ok); }
.moneytop .v.warn { color: var(--warn); }
.moneytop .s { flex-basis: 100%; text-align: right; font-size: 12.5px; line-height: 1.25; color: var(--ink-3); }
.card-head .btn + .btn { margin-left: 0; }
.spendrow .bar.thin { max-width: 320px; }
.bar.over span { background: var(--warn); }
.r-meta.warn { color: var(--warn); font-weight: 700; }
.spends { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.spends .card-head h2 { font-size: 15.5px; }
.payer .av { width: 38px; height: 38px; }
.curline { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.cursel { width: auto; min-height: 34px; padding: 4px 28px 4px 10px; font-size: 13.5px; font-weight: 800; border-radius: 9px; background-color: var(--surface); }
.moneytop p.small { margin-top: 8px; }
.warn { color: var(--warn); }
.rate .av.cur { font-size: 10px; width: 36px; height: 36px; border-radius: 10px; }
.rate .btn + .btn { margin-left: 2px; }
.mrow.unknown i { font-style: normal; color: var(--ink-3); }
.rate-row { display: flex; align-items: center; gap: 10px; }
.rate-row span { font-weight: 800; color: var(--ink-2); }
/* who owes whom */
.owes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.owe-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.owe-row.mine { background: var(--accent-soft); }
.owe-row .amt { font-size: 19px; }
.square { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 700; margin-bottom: 8px; }
.square .ic { width: 18px; height: 18px; }
.settle .net { font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--ink-3); }
.net { padding: 4px 9px; border-radius: 99px; }
.net.ok { color: var(--ok); background: var(--ok-soft); }
.net.warn { color: var(--warn); background: var(--warn-soft); }
.tocome { font-size: 13.5px; color: var(--ink-2); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.unrec { display: flex; gap: 9px; align-items: flex-start; margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--tobook-soft); color: var(--tobook); font-size: 13.5px; }
.unrec .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.unrec b { color: inherit; }
.unrec .linkbtn { color: inherit; text-decoration: underline; }
.tocome b { color: var(--ink); }
/* an item's payments and split */
.paylist { margin: 2px 0 6px; }
.payline { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--ink-2); }
.payline .av { width: 30px; height: 30px; font-size: 11px; }
.payline b { color: var(--ink); }
.split { margin-top: 6px; padding-top: 4px; border-top: 1px dashed var(--line); }
.splitline { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.splitline .av { width: 32px; height: 32px; font-size: 12px; }
.splitline .stand { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.splitline .net { font-size: 13.5px; font-weight: 800; color: var(--ink-3); }
.splitline .more { font-size: 12px; color: var(--ink-3); font-weight: 600; }
@container page (max-width: 420px) {
  .splitline { flex-wrap: wrap; }
  .splitline .stand { flex-basis: 100%; align-items: flex-start; text-align: left; padding-left: 38px; }
}
/* the form's split and payments */
.splitrows { margin: -6px 0 14px; }
.splitrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.splitrow .av { width: 32px; height: 32px; font-size: 12px; }
.splitrow .name { flex: 1; font-weight: 700; }
.splitrow input { width: 80px; min-height: 40px; text-align: center; }
.splitrow .unit { font-size: 13px; color: var(--ink-3); width: 36px; }
.splitrows .hint { margin: 6px 0 0; }
.payrows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.payrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr) 36px; gap: 6px; align-items: center; }
.payrow input, .payrow select { min-height: 42px; padding: 8px 10px; font-size: 15px; }
.payrow select { padding-right: 26px; background-position: right 8px center; }
.payrow .iconbtn { color: var(--ink-3); }
.sharebox { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.sharebox input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.mtable { display: flex; flex-direction: column; font-size: 14px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px 76px; gap: 8px; align-items: center; padding: 9px 4px; margin: 0 -4px; border-top: 1px solid var(--line-soft); border-radius: 8px; }
.mrow > span:not(.mi) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mrow[data-act] { cursor: pointer; }
.mrow[data-act]:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.mhead { border-top: 0; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding-top: 0; }
.mfoot { font-weight: 800; border-top: 2px solid var(--line); }
.mi { display: flex; flex-direction: column; min-width: 0; }
.mi b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi small { color: var(--ink-3); font-size: 12px; }
.mrow .warn { color: var(--warn); font-weight: 700; }
.mrow.gone { color: var(--ink-3); }
.mrow.gone b { text-decoration: line-through; }
@container page (max-width: 460px) { .mrow { grid-template-columns: minmax(0, 1fr) 64px 64px 64px; font-size: 13px; gap: 6px; } }

/* --------------------------------------------------------------- people */

.member .r-meta { font-size: 12.5px; }
.role { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.rolesel { font-size: 14px; font-weight: 700; min-height: 38px; padding: 6px 30px 6px 10px; border-radius: 10px; border: 1px solid var(--line); background-color: var(--surface); width: auto; flex: none; }
.invite .av { background: var(--surface-2); color: var(--ink-2); }
.invite .av.has-photo { background: var(--surface); }
/* Inviting: the people you have travelled with, a tap each */
.faces { display: flex; flex-wrap: wrap; gap: 8px; }
.face {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1.5px solid var(--line);
  background: var(--surface); font: 700 13.5px/1 var(--body); color: var(--ink); cursor: pointer;
}
.face .av { width: 30px; height: 30px; font-size: 11px; }
.face:hover { border-color: var(--ink-3); }
.face.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.face.waiting { opacity: .55; cursor: default; }
.hint.match { color: var(--accent); font-weight: 700; }
/* A folded part of a form: Advanced on the trip sheet. */
details.fsect { border-top: 1px solid var(--line-soft); margin: 4px 0 12px; }
details.fsect > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 13px 0; cursor: pointer; font: 800 13px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
details.fsect > summary::-webkit-details-marker { display: none; }
details.fsect > summary small { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-3); margin-left: 8px; }
details.fsect > summary .ic { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .15s; }
details.fsect[open] > summary .ic { transform: rotate(90deg); }
details.fsect[open] > summary { padding-bottom: 8px; }
/* An invitation on My trips: Join, or Not now */
.invitecard { cursor: default; }
.invitecard:hover { transform: none; box-shadow: var(--shadow); }
.tc-actions { display: flex; gap: 8px; margin-top: 14px; }
.tc-actions .btn { flex: 1; }
@container page (max-width: 480px) {
  .row.invite { flex-wrap: wrap; }
  .row.invite .r-body { flex-basis: calc(100% - 44px); }
  .row.invite .btn { margin-left: 42px; }
}
.row.member { gap: 10px; }
.row.member .role { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.menu > button:disabled { cursor: default; }
.menu > button:disabled:hover { background: none; }

/* ------------------------------------------------------------- item pane */

.pane-head {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 6px;
  min-height: calc(58px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0 6px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 900px) { .pane-head { min-height: 68px; padding-top: 0; } }
.ph-type { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.ph-type .ticon { width: 32px; height: 32px; border-radius: 9px; }
.ph-type .ticon .ic { width: 17px; height: 17px; }
.pane-body { padding: 18px 18px calc(40px + env(safe-area-inset-bottom)); }
.iv-title { font: 600 27px/1.15 var(--display); letter-spacing: -.01em; margin-bottom: 14px; overflow-wrap: anywhere; }
.iv-title.gone { text-decoration: line-through; color: var(--ink-3); }
.iv-block { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.iv-block > .ic { width: 20px; height: 20px; margin-top: 1px; color: var(--ink-3); }
.iv-block > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.iv-block .sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.iv-block .k { display: inline-block; min-width: 76px; font-size: 13px; color: var(--ink-2); }
.iv-block.link .sub { color: var(--accent); font-weight: 700; }
.iv-block.link .trail { color: var(--accent); }
.iv-group { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.iv-group h3 { font: 800 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.iv-group > .btn { margin: 4px 0 8px; }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; }
.kv .k { color: var(--ink-2); font-size: 14px; }
.kv .v { font-weight: 700; text-align: right; }
.kv .v.warn { color: var(--warn); }
.kv .v.ok { color: var(--ok); }
.kv .v small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.iv-group h3 small { font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
/* A camp night's spots, numbered in the order to try them; the one we are
   at gets a tick and the others step back. */
.spots .row { align-items: flex-start; }
.spotnum { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font: 800 12px/1 var(--body); }
.spotnum .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.spot.here .spotnum { background: var(--booked-soft); color: var(--booked); }
.spot.other .r-title { color: var(--ink-2); font-weight: 600; }
.spot .r-meta { white-space: normal; }
.r-acts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: 13px; }
.r-acts .ok { color: var(--booked); font-weight: 700; }
.spot button.lead { width: 56px; height: 48px; border-radius: 10px; }
.spot button.lead .more { display: none; }
.conf-kv { align-items: center; }
.confbig {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer;
  font: 700 18px/1 var(--mono); letter-spacing: .04em;
}
.confbig span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confbig .ic { width: 18px; height: 18px; color: var(--accent); }
.confbig:hover { border-color: var(--accent); }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.iv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.iv-who { margin-top: 20px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* ----------------------------------------------------------------- forms */

.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.f > span, legend { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.f > span small, legend small { font-weight: 600; color: var(--ink-3); }
.f > span .linkbtn { font-size: 12.5px; margin-left: auto; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 500; -webkit-appearance: none; appearance: none;
}
select {
  padding-right: 34px; background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238A9599' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type="date"], input[type="time"] { min-width: 0; }
input::-webkit-date-and-time-value { text-align: left; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[readonly] { background: var(--surface-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
fieldset { border: 0; padding: 14px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line-soft); min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font: 600 17px/1.2 var(--display); color: var(--ink); float: left; width: 100%; }
legend + * { clear: both; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.swatch { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--trip-soft); border: 2px solid var(--trip); cursor: pointer; display: grid; place-items: center; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.swatch .ic { width: 18px; height: 18px; color: var(--trip-ink); stroke-width: 2.6; opacity: 0; }
.swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--trip); }
.swatch:has(input:checked) .ic { opacity: 1; }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 14px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.typepick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.typepick label {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 7px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 11px; font-weight: 700; color: var(--ink-2);
  cursor: pointer; text-align: center; line-height: 1.15;
}
.typepick label span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.typepick input, .seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.typepick label .ic { width: 21px; height: 21px; color: var(--tc); }
.typepick label:has(input:checked) { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, var(--surface)); color: var(--ink); box-shadow: 0 0 0 1px var(--tc); }
.typepick label:has(input:focus-visible), .seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { display: flex; gap: 3px; padding: 3px; background: var(--surface-2); border-radius: 12px; }
.seg > button, .seg > label {
  position: relative; flex: 1; display: grid; place-items: center; min-height: 38px; padding: 4px 6px; border: 0; border-radius: 9px;
  background: none; font-size: 13px; font-weight: 800; color: var(--ink-2); cursor: pointer; text-align: center;
}
.seg > .on, .seg > label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.status-seg > .s-idea.on, .status-seg > .s-idea:has(input:checked) { color: var(--idea); }
.status-seg > .s-planned.on, .status-seg > .s-planned:has(input:checked) { color: var(--planned); }
.status-seg > .s-tobook.on, .status-seg > .s-tobook:has(input:checked) { color: var(--tobook); }
.status-seg > .s-booked.on, .status-seg > .s-booked:has(input:checked) { color: var(--booked); }
.status-seg > .s-cancelled.on, .status-seg > .s-cancelled:has(input:checked) { color: var(--cancel); }
/* Five statuses share a phone's width: each takes room by the length of its word. */
.status-seg > button, .status-seg > label { flex: 1 1 auto; min-width: 0; overflow: hidden; padding: 4px 3px; font-size: 12.5px; white-space: nowrap; }
.pane-body > .status-seg { margin-bottom: 8px; }
.seg-wide { margin: 14px 0 0; }
.formfoot {
  position: sticky; bottom: 0; z-index: 3; display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-soft);
}
.formfoot .btn { flex: 1; }
.itemform .pane-body { padding-bottom: 24px; }

/* ------------------------------------------------------------------ auth */

.auth { max-width: 420px; margin: 0 auto; padding: calc(48px + env(safe-area-inset-top)) 4px 48px; display: flex; flex-direction: column; align-items: stretch; }
.auth > .brand { align-self: center; }
.auth-sub { text-align: center; color: var(--ink-2); margin: 12px 0 20px; font-size: 16px; }
.auth-card { padding: 20px 18px 18px; }
.auth-card .btn { margin-top: 4px; }
.invite-card { text-align: center; padding: 20px 18px; margin-top: 18px; }
.inv-by { color: var(--ink-2); font-weight: 700; }
.inv-trip { font: 600 30px/1.15 var(--display); margin: 6px 0; }
.inv-meta { color: var(--ink-2); }
.inv-role { color: var(--ink-2); font-size: 14px; margin-top: 10px; }
.auth > .btn { margin-top: 14px; }

/* ---------------------------------------------------------------- sheets */

.sheet-back {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(12, 20, 22, .45); animation: fade .15s ease-out;
}
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lift);
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); animation: rise .2s ease-out;
}
.sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 2px auto 6px; }
@media (min-width: 700px) {
  .sheet-back { align-items: center; padding: 24px; }
  .sheet { border-radius: 22px; padding: 10px 22px 22px; }
  .sheet::before { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: .6; } }
.sheet-head { display: flex; align-items: center; gap: 8px; min-height: 50px; margin-bottom: 8px; }
.sheet-head h2 { flex: 1; font: 600 22px/1.2 var(--display); min-width: 0; overflow-wrap: anywhere; }
.sheet-head .iconbtn { margin-right: -10px; }
.sheet-foot { display: flex; gap: 10px; margin-top: 18px; }
.sheet-foot .btn { flex: 1; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.sheet-actions .btn { flex: 1 1 140px; }
.btn.on:disabled { opacity: 1; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
/* The trip's cover photo: what it is now, and the picker of every photo of every place. */
.coverrow { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.coverrow .thumb { flex: none; width: 72px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.coverrow .thumb.none { display: grid; place-items: center; color: var(--ink-3); }
.coverrow .txt { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); }
.coverrow .txt b { display: block; color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coverpick .place { margin-top: 16px; }
.coverpick h3 { font: 700 14px/1.3 var(--body); margin-bottom: 8px; }
.covergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.covergrid button { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.covergrid button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.covergrid button.on { border-color: var(--accent); }
.covergrid button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick-tick { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.pick-tick .ic { width: 14px; height: 14px; stroke-width: 2.8; }
.linkbox input { font: 600 14px/1.3 var(--mono); }
.menu { display: flex; flex-direction: column; margin: 0 -8px; }
.menu > button, .menu > a {
  display: grid; grid-template-columns: 26px 1fr; align-items: center; column-gap: 12px; min-height: 52px;
  padding: 8px 10px; border: 0; border-radius: 12px; background: none; text-align: left; font-weight: 700; font-size: 15.5px;
  color: var(--ink); cursor: pointer; text-decoration: none;
}
.menu > * > .ic, .menu > * > .av { grid-row: span 2; color: var(--ink-2); }
.menu > * > .av { width: 30px; height: 30px; font-size: 11px; }
.menu small { grid-column: 2; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.menu > *:hover { background: var(--surface-2); }
.menu .danger { color: var(--warn); }
.menu .danger .ic { color: var(--warn); }
.menu.days > button.on { background: var(--accent-soft); }
/* Your account: a row per thing, each opening its own small sheet. */
.menu.acct-rows { margin-top: 14px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.menu.acct-rows > button { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.menu.acct-rows > button > span:first-child { flex: 1; min-width: 0; }
.menu.acct-rows .val { font-weight: 600; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.menu.acct-rows .chev { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.sheet-head .iconbtn.back { margin-left: -10px; }
.dnum { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); font: 800 12px/1 var(--body); color: var(--ink-2); }
.acct { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.acct-form { padding: 14px 0 4px; border-top: 1px solid var(--line-soft); }
.acct-photo { margin: -4px 0 16px; }
.acct-form .btn { margin-bottom: 8px; }
/* The address an app connects to — one tap from the clipboard, like a confirmation number. */
.mcp-url {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; text-align: left;
  font: 700 13.5px/1.35 var(--mono); letter-spacing: .01em;
}
.mcp-url span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mcp-url .ic { width: 16px; height: 16px; flex: none; color: var(--accent); }
.mcp-url:hover { border-color: var(--ink-3); }

/* ----------------------------------------------------------- fab & toast */

/* The round Add button on a phone: it steps aside while the page scrolls
   down, and is back on the way up. */
.fab {
  position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 25;
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent-fill); color: var(--accent-fill-ink); box-shadow: var(--shadow-lift); cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}
html.fab-away .fab { transform: translateY(130px); opacity: 0; pointer-events: none; }
.fab .ic { width: 22px; height: 22px; stroke-width: 2.2; }
html.pane-open .fab { display: none; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(142px + env(safe-area-inset-bottom)); z-index: 90;
  max-width: calc(100vw - 32px); width: max-content; padding: 11px 16px; border-radius: 14px;
  background: var(--ink); color: var(--ground); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lift);
  animation: rise .2s ease-out;
}
.toast.good { background: var(--booked-soft); color: var(--booked); }
.toast.bad { background: var(--cancel-soft); color: var(--cancel); }
.app:not(.is-trip) ~ #r-toast .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------- welcome */

/* While Wanda opens: a photo of your own over everything, a greeting and
   what is coming up, then a fade into the page (app.js: startWelcome). The
   screen itself is solid from its first frame — the page never shows first —
   and the photo and words come up on it. */
.welcome {
  position: fixed; inset: 0; z-index: 200; overflow: hidden; display: flex; align-items: flex-end;
  background: var(--ground); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.welcome img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; animation: welcome-in .5s ease-out both, welcome-drift 8s ease-out forwards; }
.welcome::after, .welcome-preview::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 14, 18, .72), rgba(10, 14, 18, .28) 45%, rgba(10, 14, 18, 0) 72%);
}
.welcome::after { animation: welcome-in .5s ease-out both; }
.welcome-text {
  position: relative; z-index: 1; width: 100%; max-width: 760px; margin: 0 auto;
  padding: 0 28px calc(60px + env(safe-area-inset-bottom)); color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 24px rgba(0, 0, 0, .3);
}
.welcome .welcome-text { animation: welcome-up .6s .15s ease-out both; }
.welcome-text h1 { font: 600 clamp(34px, 9vw, 54px)/1.05 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.welcome-text p { margin-top: 10px; font: 600 clamp(16px, 4.2vw, 20px)/1.3 var(--body); opacity: .92; }
.welcome .welcome-text p.late { animation: welcome-up .5s ease-out both; }
.welcome:focus-visible { outline: none; }
.welcome.out { opacity: 0; transition: opacity .65s ease; pointer-events: none; }
@keyframes welcome-in { from { opacity: 0; } }
@keyframes welcome-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes welcome-drift { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Under Your account: the photo as the welcome screen will show it. */
.welcome-preview { position: relative; aspect-ratio: 16 / 10; margin-bottom: 12px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.welcome-preview img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.welcome-preview .welcome-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 14px; }
.welcome-preview .welcome-text h1 { font-size: 24px; }
.welcome-preview .welcome-text p { margin-top: 4px; font-size: 13px; }
.btn.busy { opacity: .6; pointer-events: none; }

/* Framing it: the same screen, the photo dragged and pinched into place
   (app.js: openWelcomeEdit). */
.welcome-edit { cursor: grab; touch-action: none; }
.welcome-edit:active { cursor: grabbing; }
.welcome-edit img, .welcome-edit::after, .welcome-edit .welcome-text { animation: none; }
.welcome-edit .welcome-text { pointer-events: none; }
.edit-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; touch-action: auto; cursor: default;
  padding: calc(10px + env(safe-area-inset-top)) 14px 14px; color: #fff;
  background: linear-gradient(to bottom, rgba(10, 14, 18, .6), rgba(10, 14, 18, 0));
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.edit-btns { display: flex; gap: 8px; }
.edit-zoom { display: flex; align-items: center; gap: 10px; margin-top: 12px; max-width: 420px; font-size: 13px; font-weight: 700; }
/* The zoom slider, free of the look every other input gets (that rule names
   the type, so this one must too): white on the welcome editor, the accent
   colour in a sheet. */
label.edit-zoom input[type="range"] {
  --zoom-track: rgba(255, 255, 255, .45); --zoom-thumb: #fff;
  flex: 1; min-width: 0; min-height: 0; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
}
label.edit-zoom input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--zoom-track); }
label.edit-zoom input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--zoom-thumb); border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
label.edit-zoom input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--zoom-track); }
label.edit-zoom input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--zoom-thumb); border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
label.edit-zoom input[type="range"]:focus-visible { outline: 2px solid var(--zoom-thumb); outline-offset: 4px; }
label.crop-zoom input[type="range"] { --zoom-track: var(--line); --zoom-thumb: var(--accent); }

/* The round crop of a profile photo, in its sheet (app.js: startPhotoEdit). */
.crop { display: flex; flex-direction: column; align-items: center; padding: 4px 0 2px; }
.crop-box {
  position: relative; width: 280px; height: 280px; max-width: 100%; overflow: hidden; border-radius: 16px;
  background: var(--surface-2); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.crop-box:active { cursor: grabbing; }
.crop-box img { position: absolute; left: 0; top: 0; max-width: none; }
.crop-mask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 0, transparent 49.6%, rgba(12, 20, 22, .5) 50.4%); }
.crop-zoom { width: 280px; max-width: 100%; margin-top: 14px; color: var(--ink-2); }
.crop-hint { margin: 10px 0 0; text-align: center; }
.edit-hint { font-size: 12.5px; opacity: .85; margin-top: 6px; }

/* ------------------------------------------------- photos of a place */

/* Under an item's location: what Google Maps has of the place, a row to
   swipe through, each opening in a sheet. */
.photos { padding: 0 0 10px; }
.photostrip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: thin; }
.photo { flex: none; width: 150px; height: 112px; padding: 0; border: 0; background: var(--surface-2); border-radius: 12px; overflow: hidden; cursor: pointer; scroll-snap-align: start; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.photocap { margin: 0; font-size: 12px; color: var(--ink-3); }
.sheet.wide { max-width: 920px; }
.lightbox { display: flex; justify-content: center; background: var(--surface-2); border-radius: 14px; overflow: hidden; }
.lightbox img { max-width: 100%; width: auto; height: auto; max-height: 70vh; max-height: 70dvh; object-fit: contain; }
.photonav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 4px; }
.photonav span { flex: 1; text-align: center; }
.photonav a { color: var(--accent); font-weight: 700; }
.photonav .iconbtn:disabled { opacity: .35; cursor: default; }

/* A share link read into an item's location: the line under the box says
   which Google Maps place the item is tied to, or why it is not. */
.placef { margin-bottom: 14px; }
.placef > .f { margin-bottom: 6px; }
.placeline { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); overflow-wrap: anywhere; }
.placeline .ic { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.placeline .ok { color: var(--ok); font-weight: 700; }
.placeline .bad { color: var(--warn); font-weight: 700; }
.placeline .warn { color: var(--tobook); font-weight: 600; }
.placeline .muted { color: var(--ink-3); }
.placeline .linkbtn { font-size: 12.5px; }

/* Wanda has been updated since this page was opened. */
.offline.updated { background: var(--accent-soft); color: var(--accent-fill-ink); }
.offline.updated span { flex: 1; }

/* The tile at the front of an itinerary card: the place's first photo with
   the type icon as a badge and a count of the rest, or the type icon alone. */
