:root { color-scheme: light;
  --page: #f2f4f7; --card: #ffffff; --line: #dde3ea; --note: #e9eef5; --note-line: #d2dbe6;
  --navy: #12315a; --ink: #27303a; --muted: #5c6672; --kicker: #2f62a0; --kicker-on-band: #9dbbdd; --link: #1d4f8f;
  --tag-book-bg: #f7e4ea; --tag-book-fg: #8d3a59; --tag-meal-bg: #f3e8d6; --tag-meal-fg: #7a5626;
  --warn-bg: #fbe3e1; --warn-fg: #8f1d17; --tag-closed-bg: #eceff3; --tag-closed-fg: #5c6672; --tag-open-bg: #e3f1e8; --tag-open-fg: #22663f; --musttry: #8d3a59;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --paper: #fff; --c-bg: #12315a; --c-on: #fff; --c-accent: #2563eb; --c-accent-on: #fff; --c-tint: #e9eef5; --av-4: #5b3f8c; --av-5: #0e6670; }
body[data-theme="porto"] { --c-bg: #16305c; --c-on: #fff; --c-accent: #c8a24a; --c-accent-on: #16305c; --c-tint: #e8eef8; }
body[data-theme="lisboa"] { --c-bg: #f2c230; --c-on: #111; --c-accent: #b3261e; --c-accent-on: #ffffff; --c-tint: #fff6d6; }
body[data-theme="nice"] { --c-bg: #0e6ba8; --c-on: #fff; --c-accent: #f2a541; --c-accent-on: #111111; --c-tint: #e6f2fa; }
body[data-theme="paris"] { --c-bg: #1e4d3a; --c-on: #fff; --c-accent: #c9a227; --c-accent-on: #111111; --c-tint: #e9f1ec; }
body[data-theme="lille"] { --c-bg: #a04e2e; --c-on: #fff; --c-accent: #e8c48a; --c-accent-on: #111111; --c-tint: #f6ebe3; }
body[data-theme="london"] { --c-bg: #8b1e1e; --c-on: #fff; --c-accent: #1f3a68; --c-accent-on: #ffffff; --c-tint: #f7e9e9; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.5 var(--sans); overflow-wrap: anywhere; }
a { color: var(--link); }
h1 { font-size: 1.15rem; font-weight: 600; margin: 0; }
#title { font: 600 1.15rem/1.3 var(--sans); margin: 0; }
/* one heading voice: every section h2 is Newsreader 600, one size (page titles, the city and the day, stay Archivo) */
h2 { font: 600 1.3rem/1.2 var(--serif); letter-spacing: 0; color: var(--navy); margin: 1rem 0 .4rem; }
.menu-pop h2.menu-h { margin: .2rem .25rem .3rem; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--navy); margin: 0 0 .3rem; }
.serif, .about, .intro, .why, .arrival { font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; }
button, .btn { font: 600 1.05rem/1.2 var(--sans); letter-spacing: .01em; min-height: 48px; padding: .5rem 1.1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #f7f9fb; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
button:hover, .btn:hover { background: #eaeff5; }
button.primary, .btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
button.primary:hover, .btn.primary:hover { background: #0c2445; }
/* ---- D2: slim chrome + pill tabs ---- */
#top { display: flex; align-items: center; gap: .25rem; padding: .25rem .5rem .25rem 1rem; padding-top: max(.25rem, env(safe-area-inset-top)); background: var(--card); border-bottom: 1.5px solid var(--line); min-height: 56px; }
#top #title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); }
#statusbar { display: flex; flex: none; align-items: center; gap: .1rem; }
.menu-pop .menu-version { display: flex; width: 100%; min-height: 44px; padding: 0 .6rem; border: 0; background: none; font: 500 .9rem/1.2 var(--sans); color: var(--muted); text-align: left; white-space: normal; max-width: 15rem; }
#menu > summary { position: relative; }
#menu[data-flag] > summary::after { content: ""; position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn-fg); border: 2px solid var(--card); }
#btn-check { min-width: 48px; padding: 0; justify-content: center; border-color: transparent; background: none; font-size: 1.35rem; line-height: 1; color: var(--navy); border-radius: 999px; }
#menu { position: relative; margin: 0; }
#menu > summary { list-style: none; display: flex; align-items: center; min-width: 48px; min-height: 48px; justify-content: center; border-radius: 999px; font-size: 1.5rem; line-height: 1; color: var(--navy); cursor: pointer; }
#menu > summary::-webkit-details-marker { display: none; }
#menu[open] > summary { background: var(--note); }
.menu-pop { position: absolute; right: 0; top: calc(100% + .3rem); z-index: 900; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: .5rem; box-shadow: 0 6px 18px rgba(18, 49, 90, .16); white-space: nowrap; }
/* App bar -> city tabs (sticky under the banners) -> band -> day pills (sticky under the tabs) -> main. --nav-h and --chrome-h are measured in app.js. */
html { scroll-padding-top: calc(var(--banner-h, 0px) + var(--chrome-h, 0px) + .5rem); }
#nav { position: sticky; top: var(--banner-h, 0px); z-index: 50; background: var(--page); border-bottom: 1.5px solid var(--line); }
#strip { position: sticky; top: calc(var(--banner-h, 0px) + var(--nav-h, 0px)); z-index: 49; background: var(--page); border-bottom: 1.5px solid var(--line); }
#nav[data-more="right"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); }
#nav, #strip { display: flex; flex-wrap: nowrap; gap: .5rem; overflow-x: auto; padding: .5rem 1rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#nav::-webkit-scrollbar, #strip::-webkit-scrollbar { display: none; }
#nav { padding-bottom: .5rem; }
#strip[hidden], #nav:empty { display: none; }
#nav a, .chip, .filtersw { flex: none; min-height: 48px; padding: 0 1.15rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font: 600 1.05rem/1 var(--sans); letter-spacing: .02em; cursor: pointer; }
#nav a[aria-current="page"] { background: var(--c-bg); color: var(--c-on); border-color: var(--c-bg); }
.chip { flex-direction: column; gap: .15rem; width: 52px; min-width: 52px; height: 60px; padding: 0; border-radius: 12px; letter-spacing: 0; }
.chip .dn { font: 700 1.4rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.chip .wd { font: 500 .75rem/1 var(--sans); }
.chip.undated { border-style: dashed; border-color: var(--muted); background: transparent; }
.chip.undated:not([aria-current="page"]) .wd { color: var(--muted); }
.chip[aria-current="page"] { background: var(--c-accent); color: var(--c-accent-on); border-color: var(--c-accent); }
.chip[aria-current="page"] .wd { font-weight: 600; }
/* Book and Lists: links with an icon, deliberately not pill-shaped like the dates */
.tablink { flex: none; min-height: 60px; padding: 0 .6rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--link); text-decoration: none; font: 600 1rem/1 var(--sans); border-bottom: 3px solid transparent; }
.tablink .tabicon { display: inline-flex; }
.tablink[aria-current="page"] { color: var(--navy); border-bottom-color: var(--c-accent); }
.filtersw { border-style: dashed; border-color: #aab4c0; background: transparent; }
.filtersw::after { content: "⇄"; font-weight: 500; }
main { padding: 1rem; max-width: 46rem; margin: 0 auto; }
footer { padding: 1rem; text-align: center; }
#banners { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; }
.banner:first-child { padding-top: calc(.75rem + env(safe-area-inset-top, 0px)); }
.banner { line-height: 1.5rem; display: block; width: 100%; padding: .75rem 1rem; text-align: left; border: 0; border-bottom: 3px solid var(--navy); border-radius: 0; font-weight: 600; background: #ffe680; color: #111; min-height: 48px; }
.banner.err { background: #ffb3b3; }
.banner.info { background: #e6eefc; font-weight: 400; }
.card { border: 1.5px solid var(--line); border-radius: 18px; padding: 1rem; margin: .75rem 0; background: var(--card); }
.why { margin: .3rem 0; }
.leg { background: var(--note); border-color: var(--note-line); }
.leg h3 { font-size: 1.2rem; color: var(--ink); }
.leg ol { font: 400 1.12rem/1.55 var(--serif); padding-left: 1.3rem; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.muted { color: var(--muted); font-size: .95rem; }
.local { font-size: 1.6rem; font-weight: 700; line-height: 1.25; margin: .25rem 0; }
.qr { max-width: 100%; width: 260px; height: auto; image-rendering: pixelated; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.conf { font-family: ui-monospace, Menlo, monospace; font-size: 1.2rem; font-weight: 700; }
details { margin: .4rem 0; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
table { border-collapse: collapse; width: 100%; }
td { padding: .2rem .3rem; border-bottom: 1px solid var(--note-line); }
.check { display: flex; gap: .75rem; align-items: center; min-height: 48px; }
.check input { width: 28px; height: 28px; flex: none; }
form.lock { display: grid; gap: .75rem; max-width: 24rem; }
.lock-head { margin: 1.25rem 0 .75rem; }
h1.lock-title { font: 700 2.2rem/1.1 var(--sans); letter-spacing: -.03em; color: var(--navy); }
.lock-stripe { display: flex; height: 6px; max-width: 14rem; margin-top: .6rem; border-radius: 3px; overflow: hidden; }
.lock-stripe span { flex: 1; }
.lock-stripe [data-c="porto"] { background: #16305c; } .lock-stripe [data-c="lisboa"] { background: #f2c230; } .lock-stripe [data-c="nice"] { background: #0e6ba8; } .lock-stripe [data-c="paris"] { background: #1e4d3a; } .lock-stripe [data-c="london"] { background: #8b1e1e; }
.lock-copy { margin: 0 0 .5rem; max-width: 24rem; }
input[type=password], input[type=text] { font: inherit; min-height: 48px; padding: .4rem .6rem; border: 1.5px solid #8f9bab; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.err-text { color: #b00020; font-weight: 700; }
a.daylink { display: block; color: inherit; text-decoration: none; }

/* ---- T2b: city tabs, date strip, route, open badge, taxi card, book tab ---- */
.note, .arrival { background: var(--note); border: 1.5px solid var(--note-line); border-radius: 18px; padding: 1rem 1.15rem; margin: .75rem 0; color: var(--ink); }
.note-label { font: 600 .95rem/1.3 var(--sans); color: var(--muted); margin-bottom: .2rem; }
.arrival p { margin: 0; }
figure.route { margin: .6rem 0 .25rem; }
.routecard { padding: 1rem; }
.route-head { display: flex; flex-wrap: nowrap; align-items: center; column-gap: .6rem; }
.route-head .kicker { flex: 1 1 auto; font: 600 1rem/1.3 var(--sans); color: var(--ink); }
.route-actions { display: flex; flex: none; align-items: center; gap: .1rem; }
.route-actions .gm { position: relative; }
.gm-btn { border: 0; background: none; padding: 0 .5rem; }
.gm-list { position: absolute; right: 0; top: calc(100% + .2rem); z-index: 60; list-style: none; margin: 0; padding: .35rem; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 6px 18px rgba(18, 49, 90, .16); white-space: nowrap; }
.gm-list[hidden] { display: none; }
.gm-item { min-height: 44px; padding: 0 .9rem; border-radius: 10px; }
.gm-item:hover { background: var(--note); }
@media (max-width: 340px) { .route-head { flex-wrap: wrap; } }
.route-actions a, .route-actions button { font: 600 1rem/1.2 var(--sans); color: var(--navy); text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; white-space: nowrap; }
.routebox { position: relative; }
.routesvg { display: block; width: 100%; height: auto; border: 1.5px solid var(--line); border-radius: 12px; }
.routesvg .bg { fill: #fafafa; }
.routesvg .leg-line { fill: none; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.routesvg .leg-line.dashed { stroke-dasharray: 7 6; stroke-linecap: butt; }
.routesvg .pin circle, .routesvg .pin .drop { stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.routesvg .pin circle { stroke: none; }
.routesvg .pin text { fill: #fff; font: 700 13px system-ui, sans-serif; }
.routesvg .scale { fill: none; stroke: #111; stroke-width: 2; }
.routesvg .scale-label { fill: #111; font: 600 11px system-ui, sans-serif; }
html.taxi-open, html.taxi-open body { overflow: hidden; }
.taxi { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; box-sizing: border-box; z-index: 2000; background: #fff; color: #111; overflow-y: auto; overscroll-behavior: contain; display: flex; align-items: center; justify-content: center; padding: max(1.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
.taxi-inner { width: 100%; max-width: 40rem; text-align: center; display: grid; gap: 1rem; }
.taxi-name { font-size: 2.6rem; font-weight: 800; line-height: 1.15; }
.taxi-addr { font-size: 2.1rem; font-weight: 700; line-height: 1.25; }
.taxi-close { justify-content: center; min-height: 64px; font-size: 1.3rem; }
.status { display: inline-block; font: 600 .85rem/1.2 var(--sans); border-radius: 999px; padding: .32rem .7rem; vertical-align: middle; }
.status-needed { background: var(--tag-book-bg); color: var(--tag-book-fg); }
.status-booked { background: var(--tag-open-bg); color: var(--tag-open-fg); }
.status-not_needed { background: var(--tag-closed-bg); color: var(--tag-closed-fg); }
.deadline { font-weight: 600; }
.deadline.overdue { color: #b00020; font-weight: 800; }
#foot-note { margin: 0 0 .75rem; font-size: .95rem; color: var(--muted); }

/* ---- Color pass C1: city header band ---- */
#band:empty { display: none; }
#band { background: var(--c-bg); color: var(--c-on); }
.band-pattern { height: 56px; background-size: 56px 56px; }
body[data-theme="porto"] .band-pattern { background-color: #586f90; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Crect width='72' height='72' fill='%23586f90'/%3E%3Crect x='.5' y='.5' width='71' height='71' fill='none' stroke='%236b84a6' stroke-width='1'/%3E%3Crect x='17' y='17' width='38' height='38' fill='none' stroke='%2316305c' stroke-width='4'/%3E%3Cpath d='M36 5L67 36L36 67L5 36Z' fill='none' stroke='%2316305c' stroke-width='4' stroke-linejoin='miter'/%3E%3Ccircle cx='36' cy='36' r='6.5' fill='%2316305c'/%3E%3C/svg%3E"); background-size: 56px 56px; }
body[data-theme="lisboa"] .band-pattern { background: repeating-linear-gradient(90deg, #111 0 22px, #b3261e 22px 45px, #fff 45px 56px); }
body[data-theme="nice"] .band-pattern { background-color: #0e6ba8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%230e6ba8'/%3E%3Cpath d='M0 10Q10 2 20 10T40 10M0 22Q10 14 20 22T40 22' fill='none' stroke='%237cc4ec' stroke-width='3'/%3E%3Crect y='32' width='40' height='5' fill='%23f2a541'/%3E%3C/svg%3E"); background-size: 56px 56px; }
body[data-theme="paris"] .band-pattern { background-color: #1e4d3a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%231e4d3a'/%3E%3Crect y='2' width='40' height='2' fill='%23c9a227'/%3E%3Crect y='36' width='40' height='2' fill='%23c9a227'/%3E%3Cpath d='M0 36V22A10 10 0 0 1 20 22V36M20 22A10 10 0 0 1 40 22V36' fill='none' stroke='%23c9a227' stroke-width='2'/%3E%3Ccircle cx='10' cy='22' r='3' fill='%23c9a227'/%3E%3Ccircle cx='30' cy='22' r='3' fill='%23c9a227'/%3E%3Ccircle cx='20' cy='10' r='2' fill='%23c9a227'/%3E%3C/svg%3E"); background-size: 56px 56px; }
body[data-theme="london"] .band-pattern { background-color: #8b1e1e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%238b1e1e'/%3E%3Ccircle cx='20' cy='20' r='11' fill='none' stroke='%23d97a7a' stroke-width='4'/%3E%3Crect y='15' width='40' height='10' fill='%231f3a68'/%3E%3C/svg%3E"); background-size: 56px 56px; }
body[data-theme="lille"] .band-pattern { background-color: #a04e2e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%23a04e2e'/%3E%3Cpath d='M0 10H40M0 20H40M0 30H40M0 40H40M20 0V10M0 10V20M40 10V20M20 20V30M0 30V40M40 30V40' fill='none' stroke='%23c98a62' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='20' r='13' fill='%23a04e2e'/%3E%3Cpath d='M20 8C24 12 24 18 20 24C16 18 16 12 20 8ZM20 23C15 23 9 21 10 14C14 14 17 17 20 21M20 23C25 23 31 21 30 14C26 14 23 17 20 21M13 26H27M20 26V32' fill='none' stroke='%23e8c48a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 56px 56px; }
body:not([data-theme="porto"]):not([data-theme="lisboa"]):not([data-theme="nice"]):not([data-theme="paris"]):not([data-theme="london"]):not([data-theme="lille"]) .band-pattern { display: none; }
.band-inner { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 1.75rem; --kick: var(--kicker-on-band); }
body[data-theme="lisboa"] .band-inner { --kick: #4a3b00; }
body[data-theme="nice"] .band-inner { --kick: #ffffff; }
body[data-theme="paris"] .band-inner { --kick: #d3e6da; }
body[data-theme="london"] .band-inner { --kick: #f3d5d5; }
body[data-theme="lille"] .band-inner { --kick: #fff8ee; }
.band-dates { font: 600 1rem/1.3 var(--sans); color: var(--kick); margin: 0; }
.band-card h3 { font: 600 1.05rem/1.3 var(--sans); color: var(--kick); margin: 0; }
#band h2.band-title { font: 700 2.75rem/1 var(--sans); letter-spacing: -.03em; color: var(--c-on); margin: .3rem 0 .5rem; }
.band-card { color: var(--c-on); background: rgba(255, 255, 255, .08); border: 0; border-radius: 18px; padding: 1.1rem 1.25rem; margin: .85rem 0 0; }
body[data-theme="lisboa"] .band-card { background: rgba(17, 17, 17, .07); }
.band-card h3 { margin-bottom: .45rem; }
.band-card .local { font: 400 1.3rem/1.35 var(--serif); margin: .1rem 0; }
.band-card .muted { color: inherit; font: 400 1.05rem/1.45 var(--serif); }
.band-card > div:not(.row):not(.local):not(.muted) { font: 400 1.12rem/1.45 var(--serif); }
.band-card .row { margin: .75rem 0 0; }
.band-card button, .band-card .btn { background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 999px; font-weight: 600; min-height: 44px; }
.band-card button:hover, .band-card .btn:hover { background: color-mix(in srgb, var(--c-on) 12%, transparent); }
.band-card .hb-name { font: 600 1.3rem/1.3 var(--serif); margin: .1rem 0 .15rem; }
.band-card .hb-addr { margin: 0; }
.band-card .hb-local, .band-card .hb-addr2 { margin: .1rem 0 0; font-size: .95rem; }
#band .who { background: rgba(255, 255, 255, .14); color: var(--c-on); border-radius: 999px; padding: .15rem .8rem; font-weight: 500; margin: .1rem 0 .3rem; }
body[data-theme="lisboa"] #band .who { background: rgba(17, 17, 17, .08); }
.day-date { font: 500 1rem/1.3 var(--sans); color: var(--muted); margin: .5rem 0 .1rem; }
main > h1.day-title { font: 700 1.8rem/1.1 var(--sans); letter-spacing: -.03em; color: var(--navy); margin: 0 0 .4rem; }
main > p.headline { font: italic 400 1.3rem/1.35 var(--serif); color: var(--ink); margin: 0 0 .6rem; }
main > p.intro { margin: 0 0 .75rem; }

/* ---- C3: route legend ---- */
.route-legend { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; }
.route-legend li { display: inline-flex; align-items: baseline; gap: .45rem; min-height: 34px; align-items: center; font: 400 1.05rem/1.3 var(--sans); color: var(--muted); }
.route-legend .dot { flex: none; font-weight: 700; font-size: 1.05rem; }
.route-legend .lname { font-weight: 400; color: var(--ink); }
.route-legend .ldist { color: var(--muted); white-space: nowrap; margin-left: -.25rem; }
.route-summary { margin: .5rem 0 .25rem; font: 400 1.05rem/1.4 var(--sans); color: var(--muted); }

/* ---- C4: numbered badges ---- */

/* ---- C5: collapsible Ideas groups ---- */
.ideagroup { margin: .75rem 0; }

/* ---- W3: I want this ---- */
.wantrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .4rem 0; }
.wantrow[hidden], .wantline[hidden], .wantsync[hidden] { display: none; }
button.want { font-weight: 700; }
button.want[aria-pressed="true"] { background: var(--c-bg); color: var(--c-on); border-color: var(--c-bg); }
.wantline { font-weight: 600; }
.who[hidden], .joinbtn[hidden], .joinsync[hidden] { display: none; }
.notgoing { text-decoration: line-through; opacity: .7; }
.joinrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.joinbtn { min-height: 44px; padding: 0 1.1rem; font: 600 1rem/1 var(--sans); border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; }
.joinbtn[aria-pressed="true"]::first-letter { color: var(--kick); font-weight: 700; }
.linkbtn { font: inherit; background: none; border: 0; padding: .6rem .2rem; color: inherit; text-decoration: underline; min-height: 44px; }

/* ---- Phase B spike: offline street map over the route diagram ---- */
.routebox .routemap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; visibility: hidden; }
figure.route.has-map .routemap { visibility: visible; }
figure.route.has-map .routesvg { visibility: hidden; }
figure.route figcaption { margin: .4rem 0 0; font-size: .95rem; }
.mapzoom-btn { flex: none; min-height: 48px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--navy); font: 600 1rem/1.2 var(--sans); cursor: pointer; }
.mk, .hk { cursor: default; }
.mk svg, .hk svg { display: block; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
.mk-n { fill: #fff; font: 700 13px system-ui, sans-serif; pointer-events: none; }
html.mapzoom-open, html.mapzoom-open body { overflow: hidden; }
.mapzoom { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; box-sizing: border-box; z-index: 2000; background: #fff; color: #111; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.mapzoom-bar { border-color: var(--line); flex: none; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem max(.75rem, env(safe-area-inset-right)) .5rem max(.75rem, env(safe-area-inset-left)); border-bottom: 2px solid #111; }
.mapzoom-title { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapzoom-close { flex: none; justify-content: center; min-width: 48px; min-height: 48px; font-size: 1.6rem; line-height: 1; }
.mapzoom .mapzoom-map { position: relative; flex: 1; min-height: 0; touch-action: none; }

/* ---- D5: stop + idea cards ---- */
.stoprow1 { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: .1rem 0 .3rem; }
.time { font: 700 1.05rem/1.2 var(--sans); color: var(--musttry); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem .4rem; margin: 0; }
.tag, .openstatus, .pick { display: inline-block; font: 600 .85rem/1.2 var(--sans); border-radius: 999px; padding: .32rem .7rem; border: 0; margin: 0; }
.tag { background: var(--tag-meal-bg); color: var(--tag-meal-fg); }
.tag-booking_needed { background: var(--warn-bg); color: var(--warn-fg); }
.openstatus { margin: .1rem 0 .3rem; background: var(--tag-closed-bg); color: var(--tag-closed-fg); }
.openstatus.open { background: var(--tag-open-bg); color: var(--tag-open-fg); }
.openstatus.closing { background: var(--tag-meal-bg); color: var(--tag-meal-fg); }
.openstatus.opens, .openstatus.closed_today, .openstatus.closed_holiday { background: var(--tag-closed-bg); color: var(--tag-closed-fg); }
.pick { margin-left: .5rem; vertical-align: middle; background: var(--tag-closed-bg); color: var(--tag-closed-fg); }
.pick-top { background: var(--tag-meal-bg); color: var(--tag-meal-fg); }
.pick-maybe { background: var(--note); color: var(--kicker); }
.pick-skip { background: var(--tag-closed-bg); color: var(--tag-closed-fg); }
.about, .why { margin: .15rem 0 .5rem; }
.about.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.musttry { margin: .3rem 0 .5rem; }
.musttry .mt-label { font: 700 1rem/1.2 var(--sans); color: var(--ink); }
.musttry .mt-val { font: 500 1.05rem/1.4 var(--sans); color: var(--musttry); }
.who { display: inline-block; color: var(--ink); font: 500 .95rem/1.3 var(--sans); background: var(--note); border-radius: 999px; padding: .15rem .75rem; margin: .2rem 0; }
.unverified { font: 500 .85rem/1.3 var(--sans); color: var(--muted); background: none; padding: 0; }
.unv { border: 1.5px solid var(--note-line); background: var(--note); border-radius: 12px; padding: .6rem .8rem; margin: .5rem 0; font-size: 1rem; }
.copyaddr { border: 0; background: none; padding: 0; min-height: 44px; text-align: left; color: var(--muted); font: 400 .98rem/1.35 var(--sans); display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; }
.copyaddr .copyicon { flex: none; display: inline-flex; color: var(--kicker); }
.copyaddr:hover { background: none; text-decoration: underline; }
.meta .dist { color: var(--ink); font-weight: 500; }
.meta { font: 400 .98rem/1.4 var(--sans); color: var(--muted); margin-bottom: .25rem; }
summary.ideakind { display: flex; width: 100%; align-items: center; gap: .5rem; margin: 0; padding: .5rem 0; min-height: 48px; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: transparent; color: var(--navy); font: 400 1rem/1.3 var(--sans); letter-spacing: 0; list-style: none; }
summary.ideakind::-webkit-details-marker { display: none; }
.ideagroup[open] > summary.ideakind { margin-bottom: .5rem; border-bottom-color: var(--c-accent); background: transparent; }
.ideakind .ktext { flex: 1; min-width: 0; }
.ideakind .kname { font: 600 1.25rem/1.2 var(--serif); color: var(--navy); }
.ideakind .kmeta { margin-left: .25rem; font: 400 .95rem/1.3 var(--sans); }
.ideakind .chev { flex: none; display: inline-flex; margin-left: auto; color: var(--navy); transition: transform 150ms ease; }
.ideagroup[open] > summary.ideakind .chev { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .ideakind .chev { transition: none; } }
.local-name { display: block; margin-top: .1rem; }
.stop, .idea { scroll-margin-top: 10.5rem; }

/* ---- D6: polish, focus, motion ---- */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--kicker); outline-offset: 2px; }
#band a:focus-visible, #band button:focus-visible { outline-color: #fff; }
body[data-theme="lisboa"] #band a:focus-visible, body[data-theme="lisboa"] #band button:focus-visible { outline-color: #111; }
.card h3 a, a.daylink strong { color: var(--navy); }
a.daylink { transition: none; }
a.daylink strong { font: 700 1.2rem/1.25 var(--sans); letter-spacing: -.02em; }
.deadline { font-family: var(--sans); }
.check { font-size: 1.05rem; }
.booking-entry h3 { font-size: 1.2rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.route-head { row-gap: 0; }
.route-head .kicker { font-size: .9rem; }
.route-actions a, .route-actions button { font-size: .98rem; min-height: 48px; }
figure.route figcaption { font-size: .9rem; }
.route-legend li { min-height: 30px; }

.elevstrip { position: relative; height: 56px; margin: .6rem 0 .1rem; }
.elevsvg { display: block; width: 100%; height: 56px; }
.elev-fill { fill: color-mix(in srgb, var(--kicker) 13%, transparent); stroke: none; }
.elev-line { fill: none; stroke: var(--kicker); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.elev-max, .elev-min { position: absolute; font: 500 .8rem/1 var(--sans); color: var(--muted); background: rgba(255,255,255,.85); border-radius: 6px; padding: .2rem .4rem; }
.elev-max { top: 0; right: 0; }
.elev-min { bottom: 2px; left: 2px; }

#menu-maps .mapspanel { padding: .25rem .25rem .6rem; min-width: 16rem; }
.mapspanel .maps-row { display: flex; align-items: center; gap: .4rem; min-height: 48px; font: 400 1rem/1.3 var(--sans); }
.mapspanel .maps-name { font-weight: 600; color: var(--ink); }
.mapspanel .maps-row > .btn, .mapspanel .maps-saved { margin-left: auto; }
.mapspanel .maps-saved { color: #1f6b3b; font-weight: 600; }
.mapspanel .maps-dl-all { margin-top: .35rem; width: 100%; }
.mapnote, .offnote { margin: .35rem 0 0; font-size: .95rem; }
.offnote { padding: .5rem .7rem; background: var(--note); border-radius: 10px; color: var(--ink); }
.mapspanel[hidden] { display: none; }

/* ---- D2: trip ribbon ("Who is where") and one-line city cards ---- */
:root { --city-london: #8b1e1e; --city-lille: #a04e2e; --city-paris: #1e4d3a; --city-nice: #0e6ba8; --city-porto: #16305c; --city-lisboa: #f2c230; --city-other: #5c6672; --together: #e3f1e8; --together-fg: #22663f; --today: #b3261e; --rlane: 46px; }
.ribbon { padding: .9rem .75rem .75rem; margin: 0 0 1rem; }
.ribbon h2 { margin: 0; font: 600 1.3rem/1.2 var(--serif); color: var(--navy); letter-spacing: 0; }
.rhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 .5rem; margin-bottom: .5rem; }
.rhead .muted { font-size: .8rem; }
.rmonths, .rgrid { display: grid; }
.rmonths { font: 600 .75rem/1.4 var(--sans); color: var(--muted); }
.rmonth.next { border-left: 1px solid #aab4c0; padding-left: 3px; }
.rgrid { position: relative; row-gap: 8px; }
.rgrid > * { min-width: 0; }
.rname { grid-column: 1; align-self: center; font: 600 .75rem/1.2 var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.rearlier { align-self: center; z-index: 1; padding: 0 4px; font: 600 .65rem/1.2 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.rday { z-index: 1; min-height: 0; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 500 .65rem/1 var(--sans); justify-content: center; letter-spacing: 0; }
.rday:hover { background: transparent; }
.rday[aria-pressed="true"] { color: var(--navy); font-weight: 700; }
.rsel { z-index: 0; background: rgba(18, 49, 90, .12); border-radius: 6px; }
.rtogether { background: var(--together); border-radius: 8px; margin-top: -4px; }
.rtlabel[hidden] { display: none; }
.rtlabel { z-index: 1; text-align: center; font: 600 .7rem/20px var(--sans); color: var(--together-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rseg { --seg: var(--city-other); z-index: 1; height: 30px; margin: 0 1px; display: flex; align-items: center; background: var(--seg); background-clip: padding-box; border: 0 dashed var(--seg); color: #fff; overflow: hidden; font: 600 .7rem/1 var(--sans); }
.rseg:not(.ds) { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.rseg:not(.de) { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.rseg.ds { border-left-width: 3px; margin-left: 0; }
.rseg.de { border-right-width: 3px; margin-right: 0; }
:is(.rseg, .rpass)[data-seg="london"] { --seg: var(--city-london); }
:is(.rseg, .rpass)[data-seg="lille"] { --seg: var(--city-lille); }
:is(.rseg, .rpass)[data-seg="paris"] { --seg: var(--city-paris); }
:is(.rseg, .rpass)[data-seg="nice"] { --seg: var(--city-nice); }
:is(.rseg, .rpass)[data-seg="porto"] { --seg: var(--city-porto); }
:is(.rseg, .rpass)[data-seg="lisboa"] { --seg: var(--city-lisboa); color: #111; }
/* same-day stop (no night): a sliver at the start of the day, over the next city's bar, ringed in card white so it reads apart */
.rpass { --seg: var(--city-other); z-index: 2; justify-self: start; align-self: center; width: 8px; height: 34px; margin-left: 1px; border-radius: 4px; background: var(--seg); box-shadow: 0 0 0 2px var(--card); }
.rlabel { min-width: 0; flex: 1; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rseg.ap .rlabel { padding-left: 13px; }
.rseg .ini { display: none; }
.rseg.s1 .full { display: none; }
.rseg.s1 .ini { display: inline; }
.rseg.s1 .rlabel { text-align: center; padding: 0; }
@media (max-width: 420px) { .rseg.s2 .full { display: none; } .rseg.s2 .ini { display: inline; } }
.rtoday { z-index: 2; justify-self: center; width: 2px; background: var(--today); }
.rlegend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .6rem 0 0; font: 400 .8rem/1.3 var(--sans); color: var(--muted); }
.rlegend span { display: inline-flex; align-items: center; gap: .35rem; }
.rlegend .sw { display: inline-block; width: 16px; height: 10px; box-sizing: border-box; }
.rlegend .sw.dashed { border: 1.5px dashed var(--muted); }
.rlegend .sw.tog { background: var(--together); border-radius: 2px; }
.rlegend .sw.today { width: 2px; height: 12px; background: var(--today); }
.rpanel { border-top: 1px solid var(--line); margin-top: .7rem; padding-top: .6rem; }
.rpick { display: flex; align-items: center; gap: .5rem; }
.rnav { flex: none; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 10px; font-size: 1.3rem; line-height: 1; }
.rnav:disabled { opacity: .4; cursor: default; }
.rsel-label { flex: 1; min-width: 0; text-align: center; }
.rsel-day { font: 600 1.25rem/1.25 var(--serif); color: var(--navy); }
.rhint { font-size: .8rem; }
.rwho { margin: .6rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rwho li { display: flex; align-items: flex-start; gap: .5rem; background: var(--page); border-radius: 10px; padding: .5rem .6rem; min-width: 0; }
.rdot { flex: none; width: 10px; height: 10px; margin-top: .3rem; border-radius: 3px; background: var(--city-other); }
.rdot[data-dot="london"] { background: var(--city-london); }
.rdot[data-dot="lille"] { background: var(--city-lille); }
.rdot[data-dot="paris"] { background: var(--city-paris); }
.rdot[data-dot="nice"] { background: var(--city-nice); }
.rdot[data-dot="porto"] { background: var(--city-porto); }
.rdot[data-dot="lisboa"] { background: var(--city-lisboa); }
.rdot.dashed { outline: 1.5px dashed var(--muted); outline-offset: 1px; }
.rtext { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: .85rem; line-height: 1.3; }
.rwname { font-weight: 600; }
.rwnote { font-size: .75rem; }
.citycard { display: flex; overflow: hidden; margin: .5rem 0; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.cbar { flex: none; width: 8px; background: var(--city-other); }
.cbar[data-bar="london"] { background: var(--city-london); }
.cbar[data-bar="lille"] { background: var(--city-lille); }
.cbar[data-bar="paris"] { background: var(--city-paris); }
.cbar[data-bar="nice"] { background: var(--city-nice); }
.cbar[data-bar="porto"] { background: var(--city-porto); }
.cbar[data-bar="lisboa"] { background: var(--city-lisboa); }
.cbody { flex: 1; min-width: 0; padding: .6rem .75rem; display: flex; flex-direction: column; gap: 2px; }
.cname { font: 600 1.05rem/1.25 var(--sans); }
.clay { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: .5rem; }
.cbody .who { font: 400 .85rem/1.35 var(--sans); color: var(--muted); }
.cbody .who[hidden] { display: none; }
.daylink-title { font: 400 1rem/1.35 var(--sans); color: var(--ink); }
.cline { font: 400 .85rem/1.35 var(--sans); color: var(--muted); }
.citycard .who { display: block; background: none; padding: 0; margin: 0; font: 400 .85rem/1.35 var(--sans); color: var(--muted); border-radius: 0; }
.citycard .who[hidden] { display: none; }
.mapchip { align-self: center; margin-right: .75rem; font: 500 .8rem/1.2 var(--sans); color: var(--link); white-space: nowrap; }
.mapchip[hidden] { display: none; }
@media (max-width: 360px) { .rday { font-size: .55rem; } .rtlabel { font-size: .62rem; } .rwho { gap: 4px; } .rwho li { padding: .45rem .45rem; } }

/* ---- D3: day view as a walking timeline, stat tiles, stop sheet ---- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: .75rem 0; }
.stat { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem .7rem; min-width: 0; }
.stat .big { font: 700 1.3rem/1.2 var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; }
.stat .small { font: 400 .8rem/1.3 var(--sans); color: var(--muted); }
.timeline { list-style: none; margin: .75rem 0; padding: 0; display: flex; flex-direction: column; }
.timeline > li { display: flex; flex-direction: column; min-width: 0; }
.tl-leg .card { margin: .25rem 0 .5rem; }
button.stopbtn { display: grid; grid-template-columns: 50px 32px minmax(0, 1fr); align-items: start; width: 100%; min-height: 64px; padding: 12px 12px 12px 10px; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); font: 400 1rem/1.3 var(--sans); letter-spacing: 0; }
button.stopbtn:hover { background: var(--card); border-color: var(--c-accent); }
.stopbtn .tcol { display: flex; flex-direction: column; padding-top: 4px; }
.stopbtn .t1 { font: 700 .95rem/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.stopbtn .t2 { font: 400 .8rem/1.3 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.pin { justify-self: center; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #16305c; color: #fff; font: 700 .85rem/1 var(--sans); }
.pin.big { width: 36px; height: 36px; font-size: 1rem; justify-self: auto; flex: none; }
.stopbtn .sbody { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.stopbtn .sname { font: 600 1.05rem/1.25 var(--sans); }
.stopbtn .sname .local-name { display: block; font: 400 .85rem/1.3 var(--sans); }
.chips, .sheet-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.chips .openstatus, .sheet-chips .openstatus { margin: 0; }
.chips .who { margin: 0; padding: .2rem .6rem; font-size: .85rem; }
.hrs { display: inline-block; font: 600 .85rem/1.2 var(--sans); border-radius: 999px; padding: .32rem .7rem; background: var(--tag-closed-bg); color: var(--tag-closed-fg); }
.walk { display: grid; grid-template-columns: 50px 32px minmax(0, 1fr); align-items: center; min-height: 40px; }
.walk .rail { justify-self: center; width: 0; height: 40px; border-left: 3px dotted #9fb2cf; }
.walktext { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .3rem; font: 400 .85rem/1.3 var(--sans); color: var(--ink); min-width: 0; }
.walktext .walkicon { display: inline-flex; color: var(--navy); }
.walktext .wt { font-weight: 600; }
.walktext .wr { color: var(--muted); }
.walktext .wr.cont { margin-left: -.3rem; } /* the comma hugs the bold time despite the flex gap */
body[data-locked] #top #title { visibility: hidden; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
.sheet-ov { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 35, .45); }
.sheet { position: relative; width: 100%; max-width: 46rem; max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 16px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -6px 24px rgba(15, 23, 35, .18); animation: sheet-up .22s ease-out; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-handle { align-self: center; flex: none; width: 40px; height: 5px; border-radius: 3px; background: #c4cdd8; }
.sheet-head { display: flex; gap: 12px; align-items: flex-start; }
.sheet-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sheet-title h2 { margin: 0; font: 600 1.5rem/1.15 var(--serif); letter-spacing: 0; color: var(--ink); }
.sheet-sub { font-size: .9rem; }
.sheet-close { flex: none; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: var(--page); color: var(--ink); }
.sheet-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sheet-actions > a, .sheet-actions > button { flex-direction: column; justify-content: center; gap: 6px; min-height: 72px; padding: .5rem; border: 0; border-radius: 14px; background: var(--note); color: var(--navy); font: 600 .9rem/1.2 var(--sans); text-align: center; letter-spacing: 0; }
.sheet-actions > a:first-child { background: var(--navy); color: #fff; }
.sheet-actions .sicon { display: inline-flex; }
.sheet-info { border-top: 1px solid var(--line); padding-top: .6rem; }
.sheet-info[hidden] { display: none; }
.sheet .about { margin: 0; font-size: 1.1rem; }
.sheet .copyaddr, .sheet .who { align-self: flex-start; }
.sheet .card { margin: 0; }
.sheet-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-links > * { flex: 1 1 8rem; justify-content: center; min-height: 48px; }
.sheet .wantline { font-size: .9rem; }

/* ---- D4: arrival status chips ---- */
.arrstatus { display: inline-block; font: 600 .85rem/1.2 var(--sans); border-radius: 999px; padding: .32rem .7rem; background: var(--tag-closed-bg); color: var(--tag-closed-fg); }
.arrstatus.arr-open { background: var(--tag-open-bg); color: var(--tag-open-fg); }
.arrstatus.arr-opens { background: var(--tag-meal-bg); color: var(--tag-meal-fg); }
.arrstatus.arr-closes_early, .arrstatus.arr-closed { background: var(--warn-bg); color: var(--warn-fg); }
.openstatus.closed_today, .openstatus.closed_holiday, .hrs.closedchip { background: var(--warn-bg); color: var(--warn-fg); }

/* ---- D5: faces on picks ---- */
.wantfaces { display: inline-flex; align-items: center; }
.wantfaces[hidden] { display: none; }
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -3px; border-radius: 50%; border: 2px solid #fff; background: var(--link); color: #fff; font: 700 .7rem/1 var(--sans); letter-spacing: .02em; box-sizing: border-box; }
.avatar:first-child { margin-left: 0; }
.avatar.av-1 { background: var(--musttry); }
.avatar.av-2 { background: var(--tag-meal-fg); }
.avatar.av-3 { background: var(--tag-open-fg); }
.avatar.av-4 { background: var(--av-4); }
.avatar.av-5 { background: var(--av-5); }
.avatar.dim { background: #fff; color: var(--muted); border: 2px dashed #8f9bab; }
.everyone { display: inline-block; margin: .1rem 0 .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--tag-open-bg); color: var(--tag-open-fg); font: 600 .85rem/1.2 var(--sans); }
.everyone[hidden] { display: none; }
.hint { display: flex; flex-direction: column; gap: .4rem; }
.hint p { margin: 0; }
.hint .row { margin: 0; }
.sheet .wantrow { margin: 0; }

/* ---- D5: faces on picks ---- */
.wantfaces { display: inline-flex; align-items: center; }
.wantfaces[hidden] { display: none; }
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -3px; border-radius: 50%; border: 2px solid #fff; background: var(--link); color: #fff; font: 700 .7rem/1 var(--sans); letter-spacing: .02em; box-sizing: border-box; }
.avatar:first-child { margin-left: 0; }
.avatar.av-1 { background: var(--musttry); }
.avatar.av-2 { background: var(--tag-meal-fg); }
.avatar.av-3 { background: var(--tag-open-fg); }
.avatar.av-4 { background: var(--av-4); }
.avatar.av-5 { background: var(--av-5); }
.avatar.dim { background: #fff; color: var(--muted); border: 2px dashed #8f9bab; }
.everyone { display: inline-block; margin: .1rem 0 .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--tag-open-bg); color: var(--tag-open-fg); font: 600 .85rem/1.2 var(--sans); }
.everyone[hidden] { display: none; }
.hint { display: flex; flex-direction: column; gap: .4rem; }
.hint p { margin: 0; }
.hint .row { margin: 0; }
.sheet .wantrow { margin: 0; }

/* ---- D6: offline status on the city header ---- */
.offrow { margin: .75rem 0 0; }
.offrow[hidden] { display: none; }
.offbtn { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: transparent; border: 1.5px solid currentColor; color: inherit; font: 600 1rem/1.2 var(--sans); letter-spacing: 0; }
.offbtn:hover { background: color-mix(in srgb, var(--c-on) 12%, transparent); }
.offbtn[aria-busy="true"] { opacity: .85; cursor: progress; }
.offstatus { margin: .6rem 0 0; font: 400 .9rem/1.35 var(--sans); color: var(--kick); }
.offstatus[hidden], .offrow[hidden] { display: none; }
.offstatus .offcheck { font-weight: 700; }
.mapchip.on { color: var(--tag-open-fg); font-weight: 600; }

/* ---- D7: today's day: Next strip, Now marker, finished stops ---- */
.nextstrip { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin: .75rem 0; padding: 12px 14px; text-align: left; background: #fff8e6; border: 1.5px solid var(--c-accent); border-radius: 14px; color: var(--ink); font: 400 1rem/1.3 var(--sans); letter-spacing: 0; }
.nextstrip[hidden] { display: none; }
.nextstrip:hover { background: #fff8e6; }
.nextstrip .nx-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nextstrip .nx-when { font-size: .8rem; color: var(--muted); }
.nextstrip .nx-name { font: 600 1.05rem/1.25 var(--sans); }
.nextstrip .nx-leave { font-size: .85rem; font-weight: 600; color: var(--warn-fg); }
.nextstrip .nx-go { flex: none; font-size: 1.4rem; color: var(--muted); }
.nowline { display: grid; grid-template-columns: 50px 32px minmax(0, 1fr); align-items: center; padding: 4px 0; color: var(--warn-fg); font-weight: 700; }
.nowline .nl-time { font-size: .85rem; font-variant-numeric: tabular-nums; }
.nowline .nl-dot { justify-self: center; width: 12px; height: 12px; border-radius: 50%; background: var(--today); }
.nowline .nl-label { font-size: .85rem; border-top: 2px solid var(--today); padding-top: 3px; }
button.stopbtn.done { background: var(--page); }
button.stopbtn.done .name, button.stopbtn.done .t1 { color: var(--muted); }

/* Info lists (Safety): one block per item, tap-to-call buttons, dated source */
.infolist .intro { margin: .2rem 0 .4rem; }
.infoitem { padding: .85rem 0; border-top: 1.5px solid var(--line); }
.infolist h3 + .infoitem, .infolist .intro + .infoitem { border-top: 0; }
.infotitle { display: block; color: var(--navy); font-size: 1.1rem; line-height: 1.3; }
.infotext, .infonote { margin: .2rem 0 .3rem; white-space: pre-line; }
.infonote { font-size: .98rem; }
.infocalls { margin: .5rem 0 .2rem; }
.btn.call { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.call:hover { background: #0c2445; }
.srclink { display: inline-flex; align-items: center; min-height: 44px; font: 400 .95rem/1.3 var(--sans); color: var(--muted); }

/* ---- R1: ideas as compact rows ---- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.idealist { list-style: none; margin: 0 0 .75rem; padding: 0; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; }
.idea { display: flex; align-items: flex-start; border-top: 1px solid var(--line); }
.idea:first-child { border-top: 0; }
.idea-top { box-shadow: inset 3px 0 0 var(--tag-meal-fg); }
button.idearow { flex: 1; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: .65rem .25rem .65rem 1rem; border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: left; font: 400 1rem/1.3 var(--sans); letter-spacing: 0; }
button.idearow:hover { background: transparent; }
button.idearow:focus-visible, .idea button.want:focus-visible { outline-offset: -3px; }
.idearow .iname { font: 600 1.05rem/1.25 var(--sans); color: var(--navy); }
.idearow .pick { margin: 0 0 0 .5rem; padding: 0; border-radius: 0; background: none; font: 600 .85rem/1.2 var(--sans); color: var(--muted); vertical-align: baseline; }
.idearow .pick-top { color: var(--tag-meal-fg); }
.idearow .local-name { display: block; margin: 0; font: 400 .85rem/1.3 var(--sans); }
.idearow .why { font: 400 1rem/1.35 var(--serif); color: var(--ink); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.istat { display: flex; flex-wrap: wrap; align-items: center; gap: 2px .6rem; font: 400 .85rem/1.3 var(--sans); color: var(--muted); }
.istat .openstatus, .istat .hrs { background: none; padding: 0; border-radius: 0; margin: 0; font: 600 .85rem/1.3 var(--sans); color: var(--muted); }
.istat .openstatus.open { color: var(--tag-open-fg); }
.istat .openstatus.closing { color: var(--tag-meal-fg); }
.istat .closedchip, .istat .openstatus.closed_today, .istat .openstatus.closed_holiday { background: var(--warn-bg); color: var(--warn-fg); padding: .1rem .5rem; border-radius: 999px; }
.istat .everyone { margin: 0; padding: 0; background: none; border-radius: 0; font: 600 .85rem/1.3 var(--sans); color: var(--tag-open-fg); }
.istat .wantsync { color: var(--muted); }
.istat .wantsync[hidden] { display: none; }
.istat .wantfaces .avatar { width: 24px; height: 24px; font-size: .6rem; }
.idea button.want { flex: none; width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: .35rem .35rem 0 0; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; }
.idea button.want:hover { background: var(--note); }
.idea button.want[aria-pressed="true"] { background: transparent; color: var(--musttry); }

/* ---- R1: quiet city header ---- */
.band-exc { font: 400 .95rem/1.35 var(--sans); color: var(--kick); margin: 0 0 .4rem; }
.band-inner { padding-top: 1rem; padding-bottom: 1.25rem; }
.bandrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0 0; }
.band-captain { margin: .1rem 0 .3rem; font: 400 .9rem/1.35 var(--sans); color: var(--kick); }
.bandrow .joinrow, .bandrow .offrow { margin: 0; }

/* ---- Edit my dates ---- */
.mydates { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin: .5rem 0 0; }
.mydates[hidden] { display: none; }
.mydates-line { font: 600 1rem/1.3 var(--sans); }
.editdates { min-height: 44px; padding: 0 1.1rem; font: 600 1rem/1 var(--sans); border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; }
.band-changed { opacity: .95; }
.cchanged { display: block; font-size: .85rem; }
.datefields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.datefield { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.datefield[hidden] { display: none; }
.datefield label { font: 600 .9rem/1.2 var(--sans); color: var(--ink); }
.datefield input[type=date] { font: inherit; min-height: 48px; padding: .4rem .5rem; border: 1.5px solid #8f9bab; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.passcheck { font: 500 1rem/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.btn-remove { color: var(--warn-fg); border-color: var(--warn-fg); background: var(--card); }
.btn-remove:hover { background: var(--warn-bg); }
.dateserr { margin: 0; padding: .5rem .7rem; border-radius: 10px; background: var(--warn-bg); color: var(--warn-fg); font-weight: 600; }
.dateserr[hidden] { display: none; }
.datesstatus { margin: 0; min-height: 1.2em; font-weight: 600; }

/* ---- multi-visit city band ---- */
.visits { margin: .4rem 0 .25rem; }
.visit { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; }
.visit + .visit { border-top: 1px solid color-mix(in srgb, var(--c-on) 22%, transparent); }
.visit-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.visit-dates { font: 600 1rem/1.3 var(--sans); color: var(--c-on); }
.visit-exc, .visit-changed { margin: 0; font: 400 .9rem/1.35 var(--sans); color: var(--kick); }
#band .visit .who, body[data-theme] #band .visit .who { display: block; background: none; padding: 0; margin: 0; border-radius: 0; color: var(--kick); font: 400 .9rem/1.35 var(--sans); }
.visit-edit { flex: none; min-height: 44px; min-width: 44px; padding: 0 1rem; font: 600 .95rem/1 var(--sans); }
#band .editdates:hover { background: color-mix(in srgb, var(--c-on) 12%, transparent); }
.addvisit { display: flex; align-items: center; min-height: 44px; padding: .4rem 0; margin: .75rem 0 0; width: fit-content; font: 600 .95rem/1.2 var(--sans); color: inherit; }
.addvisit[hidden] { display: none; }
#band .addvisit:hover { background: none; opacity: .85; }

/* ---- wallet ---- */
.menu-pop .menu-link { display: flex; align-items: center; min-height: 44px; padding: 0 .6rem; font: 600 1rem/1.2 var(--sans); color: var(--navy); text-decoration: none; border-radius: 10px; }
.menu-pop .menu-link:hover { background: var(--note); }
.wallet-owner { margin: 1.1rem 0 .1rem; font: 700 1.05rem/1.25 var(--sans); color: var(--navy); }
.wallet-card h3 { overflow-wrap: anywhere; }
.wallet-card .wicon { margin-right: .25rem; }
.wallet-card .wrow { margin: .3rem 0; overflow-wrap: anywhere; }
.wallet-card .wnum { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.wallet-card .row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.wallet-qr { align-self: center; width: min(352px, 100%); background: #fff; padding: 16px; border-radius: 12px; border: 1.5px solid var(--line); max-width: 100%; box-sizing: border-box; }
.wallet-qr .qr.big { display: block; width: min(320px, 100%); border: 0; }
.wallet-img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1.5px solid var(--line); }

/* ---- V2: Overview day list with date blocks + Wallet/Lists row ---- */
.daylist { padding: 0; overflow: hidden; }
.daylist > a.daylink { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; min-height: 72px; border-top: 1px solid var(--line); }
.daylist > a.daylink:first-child { border-top: 0; }
.daylist > a.daylink:hover { background: var(--page); }
.daylist > a.daylink:focus-visible { outline-offset: -3px; }
.dayblock { flex: none; width: 52px; min-width: 52px; height: 60px; border-radius: 12px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; background: var(--city-other); color: #fff; }
.dayblock .dn { font: 700 1.4rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.dayblock .wd { font: 500 .75rem/1 var(--sans); }
.dayblock[data-seg="london"] { background: var(--city-london); }
.dayblock[data-seg="lille"] { background: var(--city-lille); }
.dayblock[data-seg="paris"] { background: var(--city-paris); }
.dayblock[data-seg="nice"] { background: var(--city-nice); }
.dayblock[data-seg="porto"] { background: var(--city-porto); }
.dayblock[data-seg="lisboa"] { background: var(--city-lisboa); color: #111; }
.dayblock.undated { background: transparent; border: 1.5px dashed var(--muted); color: var(--navy); }
.dayblock.undated .wd { color: var(--muted); }
.daylink-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.daylink-meta { font-size: .85rem; line-height: 1.35; }
.ovlinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .75rem 0; }
.ovlink { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .6rem .9rem; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; color: var(--navy); font: 600 1rem/1.2 var(--sans); text-decoration: none; }
.ovlink:hover { background: var(--note); }
.ovlink .tabicon { display: inline-flex; flex: none; }

/* ---- V3: Book entries lead with title ---- */
.booking-status { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: .25rem 0 .4rem; }
.booking-status .who { margin: 0; }
.booking-status .deadline { font: 500 .95rem/1.3 var(--sans); color: var(--muted); }
.booking-status .deadline.overdue { color: var(--warn-fg); font-weight: 600; }

/* ---- V4: Home-base 2-column action grid ---- */
.homebase-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .75rem 0 0; }
.homebase-actions > button, .homebase-actions > .btn { justify-content: center; width: 100%; min-width: 0; padding: .5rem; text-align: center; }
[data-hidden-hint] { margin-top: 0; }

/* ---- Suggestions ("+ Suggest a place") ---- */
.sugbody { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: .7rem .25rem .7rem 1rem; }
.sugbody .iname { font: 600 1.05rem/1.25 var(--sans); color: var(--navy); }
.sugmeta { font: 400 .85rem/1.3 var(--sans); }
.sugbody .sug-note { font: 400 1rem/1.4 var(--serif); color: var(--ink); margin: .1rem 0 0; }
.sugactions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.sugactions > a, .sugactions > button { min-height: 44px; padding: .35rem .85rem; font-size: .92rem; }
.suggestbtn { margin-top: .5rem; }
.suggestbtn[hidden] { display: none; }
.sugfield { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sugfield label, .kindfieldset legend { font: 600 .9rem/1.2 var(--sans); color: var(--ink); padding: 0; }
.sugfield input[type=text], .sugfield input[type=url], .sugfield textarea { font: inherit; padding: .45rem .6rem; border: 1.5px solid var(--muted); border-radius: 12px; background: var(--card); color: var(--ink); width: 100%; min-width: 0; }
.sugfield input[type=text], .sugfield input[type=url] { min-height: 48px; }
.sugfield textarea { min-height: 5.5rem; resize: vertical; }
.sugfield textarea:focus-visible { outline: 3px solid var(--kicker); outline-offset: 2px; }
.kindfieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.kindchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.kindchip { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 .95rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--navy); font: 600 .95rem/1 var(--sans); cursor: pointer; }
.kindchip input[type=radio] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.kindchip.on, .kindchip:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.kindchip:has(input:focus-visible) { outline: 3px solid var(--kicker); outline-offset: 2px; }

/* ---- Traveler uploads (Wallet) ---- */
.upload-add { margin: .25rem 0 .5rem; }
button.upload-card { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; width: 100%; min-height: 64px; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 1rem; margin: .75rem 0; color: var(--ink); font: 400 1rem/1.5 var(--sans); letter-spacing: 0; }
button.upload-card:hover { background: var(--card); border-color: var(--navy); }
button.upload-card h3 { margin: 0; }
.sugfield input[type=file] { font: inherit; min-height: 48px; padding: .35rem .5rem; border: 1.5px solid var(--muted); border-radius: 12px; background: var(--card); color: var(--ink); width: 100%; min-width: 0; }
.sugfield input[type=file]::file-selector-button { font: 600 .9rem/1 var(--sans); min-height: 38px; padding: .4rem .8rem; margin-right: .6rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--page); color: var(--navy); cursor: pointer; }
.upload-preview { display: block; max-width: 100%; max-height: 180px; width: auto; height: auto; object-fit: contain; border-radius: 10px; border: 1.5px solid var(--line); align-self: flex-start; }
.upload-preview[hidden] { display: none; }
.upload-view { display: flex; flex-direction: column; gap: 10px; }
.upload-owner-actions { margin: 0; }
.upload-rename { display: flex; flex-direction: column; gap: 10px; }
.upload-rename[hidden] { display: none; }
.upload-rename .row { margin: 0; }

/* ---- captain draft days: Plan a day sheet (#day-sheet) and the draft marker ---- */
.plandaybtn { margin-top: .6rem; min-height: 48px; }
.plandaybtn[hidden] { display: none; }
.band-inner > .plandaybtn { margin-top: .6rem; min-height: 44px; justify-content: center; background: var(--c-on); color: var(--c-bg); border: 1.5px solid var(--c-on); border-radius: 999px; }
.band-inner > .plandaybtn:hover { background: var(--c-on); filter: brightness(.94); }
@media (max-width: 480px) { .band-inner > .plandaybtn { display: flex; width: 100%; } }
.band-inner > .plandaybtn[hidden] { display: none; }
.draftmark { margin: .2rem 0 .4rem; font: italic 1rem/1.3 var(--serif); color: var(--muted); }
.routesnote { margin: 0 0 .5rem; font-size: .9rem; }
#day-sheet .dbody { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#day-sheet .dbody[hidden], #day-sheet .dpicker[hidden], #day-sheet [hidden] { display: none; }
#day-sheet .dlabel { font: 600 .9rem/1.2 var(--sans); color: var(--ink); }
#day-sheet .dfixed { margin: 6px 0 0; font: 600 1rem/1.2 var(--sans); color: var(--navy); }
#day-sheet .dexisting { margin: 6px 0 0; font-size: .9rem; }
#day-sheet .dstops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#day-sheet .dstop { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#day-sheet .dstop-top { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
#day-sheet .dstop-name { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
#day-sheet .dstop-name .name { font-weight: 600; overflow-wrap: anywhere; }
#day-sheet .dtime { font: inherit; min-height: 44px; width: 8.6rem; padding: .3rem .5rem; border: 1.5px solid var(--muted); border-radius: 12px; background: var(--card); color: var(--ink); }
#day-sheet .dstop-acts { display: flex; flex-wrap: wrap; gap: 6px; }
#day-sheet .dbtn { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: .3rem .7rem; font-size: .95rem; }
#day-sheet .dbtn:disabled { opacity: .45; cursor: default; }
#day-sheet .dclash { font-size: .8rem; }
#day-sheet .dpicker { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#day-sheet .dpicker-head { display: flex; align-items: center; gap: 12px; }
#day-sheet .dpicker-head h3 { margin: 0; font: 600 1.2rem/1.2 var(--serif); }
#day-sheet .dgroup { margin: 6px 0 0; font-size: .9rem; }
#day-sheet .dpicklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#day-sheet .dpick { width: 100%; min-height: 48px; justify-content: space-between; gap: 10px; text-align: left; background: var(--card); color: var(--ink); font-weight: 600; font-size: 1rem; }
#day-sheet li.dpick.off { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: .55rem 1rem; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--muted); }
#day-sheet .dpick-name { min-width: 0; overflow-wrap: anywhere; }
#day-sheet .dpick-note { font-size: .85rem; }
#day-sheet .dpick-want { display: inline-flex; align-items: center; gap: 8px; flex: none; }
#day-sheet .dpick-count { font: 600 .9rem/1 var(--sans); color: var(--muted); }

/* ---- Hub mode (self-serve trips): welcome, picker, forms, manager sheets, toast ---- */
.hubactions { display: flex; flex-wrap: wrap; gap: 8px; margin: .75rem 0; max-width: 24rem; }
.hubactions > .btn, .hubactions > button { flex: 1 1 8rem; justify-content: center; min-height: 48px; }
@media (max-width: 480px) { .hubactions > .btn, .hubactions > button { flex-basis: 100%; } }
form.hubform { margin: .5rem 0; }
.hubform .sugfield input[type=date], .sugfield input[type=time], .mgr-form .sugfield input[type=date], .sheet .sugfield input[type=time], .sheet .sugfield input[type=date] { font: inherit; padding: .45rem .6rem; border: 1.5px solid var(--muted); border-radius: 12px; background: var(--card); color: var(--ink); width: 100%; min-width: 0; min-height: 48px; }
.hubform fieldset, .mgr-form fieldset, .sheet fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldhint { font-size: .85rem; }
.datepair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.codebig { margin: 0 0 .5rem; font: 700 2.2rem/1.1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--navy); overflow-wrap: normal; }
.linktext { overflow-wrap: anywhere; margin: 0; }
.tripcards { display: flex; flex-direction: column; gap: 8px; margin: .5rem 0 1rem; max-width: 46rem; }
button.tripcard { width: 100%; min-height: 64px; justify-content: space-between; gap: 12px; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); text-align: left; letter-spacing: 0; }
button.tripcard:hover { background: var(--note); }
.tripcard .tripname { font: 700 1.2rem/1.2 var(--sans); color: var(--navy); min-width: 0; overflow-wrap: anywhere; }
#menu-hub { display: flex; flex-direction: column; gap: 2px; padding-bottom: .4rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
#menu-hub:empty { display: none; }
.menu-pop .menu-item { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 .6rem; border: 0; border-radius: 10px; background: none; font: 600 1rem/1.2 var(--sans); color: var(--navy); text-align: left; letter-spacing: 0; }
.menu-pop .menu-item:hover { background: var(--note); }
.sheet-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mgr-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; min-width: 0; }
.mgr-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.mgr-name { font: 700 1.1rem/1.25 var(--sans); color: var(--navy); }
.mgr-actions, .mgr-panel .row, .confirm .row, .mgr-form .row, .sheet-body > .row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mgr-actions > button, .mgr-panel > button, .confirm .row > button, .mgr-form .row > button, .sheet-body > .row > button, .captain-pick > button { min-height: 44px; padding: .35rem .9rem; font-size: .95rem; justify-content: center; }
.mgr-actions > button:disabled { opacity: .45; cursor: default; }
.mgr-panel { display: flex; flex-flow: row wrap; align-items: flex-start; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.mgr-panel > .confirm, .mgr-panel > .captain-pick, .mgr-panel > .dateserr { flex: 1 0 100%; }
.mgr-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rolechip { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--note); color: var(--navy); font: 600 .85rem/1.2 var(--sans); }
.confirm { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: var(--page); border: 1.5px solid var(--line); width: 100%; }
.confirm-text { margin: 0; font-weight: 600; }
.btn.danger { background: var(--warn-fg); border-color: var(--warn-fg); color: #fff; }
.btn.danger:hover { background: #741611; }
.captain-pick { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: 100%; }
.captain-pick p { margin: 0; }
.everyonecheck { min-height: 44px; }
.hoursform > summary { font-weight: 600; }
.hoursform { border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.hoursform > p { margin: 0; }
.toast { position: fixed; left: 16px; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 2000; max-width: 28rem; margin: 0 auto; padding: .85rem 1rem; border-radius: 14px; background: var(--navy); color: #fff; font: 600 1rem/1.35 var(--sans); box-shadow: 0 6px 18px rgba(15, 23, 35, .3); }
.hubform[hidden], .hubactions > [hidden], .mgr-row [hidden], .confirm [hidden] { display: none !important; }
form.hubform button[type=submit] { justify-content: center; }
.addplacebtn { margin-right: .5rem; }
