/* Screen layouts for the nine screens and their states. Components live in components.css, colours in tokens.css. */

/* Sheets (sign-in, age, edit times, table request) */
.sheet{color-scheme:light}
.sheet-text{margin-top:8px}
.sheet-gap{margin-top:20px}
.field.area{margin-top:14px;align-items:stretch;min-height:120px}
.field.area textarea{min-height:96px;max-height:none;align-self:stretch}
.sheet-gap-s{margin-top:3px} /* "Not now" is a 44px target that reads like the mock's 14px-below text */
.center{text-align:center}
.warn-text{margin-top:10px;color:var(--wc-danger)} /* the paper's red; on the dark card the page's coral (plan v29) */
.sheet .cap.center{margin-top:1px}
.sheet input[type=date],.sheet input[type=time]{color-scheme:light}
/* Request a table (plan v12, step 5): the date and the time side by side; a field's own problem right under it. */
.rq-when{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rq-when>div{min-width:0}
.sheet .warn-text[id$="-note"]{margin-top:6px}
/* "Take from Telegram" under the phone field (plan v12, step 11): a link as wide as its words, 44 px tall, its note under it. */
.rq-tg-row .btn.rq-tg{display:inline-flex;justify-content:flex-start;padding:0 2px;text-decoration:underline;text-underline-offset:2px}
.rq-tg-note{margin:0 0 6px}
.rq-tg-note:empty{margin:0}
/* Table requests (Account): one request a row, where it stands under the place and the night. */
.rq-list{display:flex;flex-direction:column;margin-top:8px}
.rq-row{padding:12px 0;border-bottom:1px solid var(--paper-rule)}
.rq-row:last-child{border-bottom:0}
.rq-state{margin-top:2px;font-weight:600}
.rq-row .btn.rq-cancel{display:inline-flex;margin-top:10px} /* a 44 px target: .btn.sm reaches 4 px past its edges */
.tg{position:relative}
.tg-slot{position:absolute;inset:0;z-index:2;opacity:.01;overflow:hidden;border-radius:14px;pointer-events:none}
.tg-slot.has-frame{pointer-events:auto}
.tg-slot iframe{border:0;transform-origin:0 0}
.tg-slot.is-visible{position:static;opacity:1;margin-top:10px;overflow:visible}
.tg-slot.is-visible iframe{transform:none!important}

/* Edit times */
.edit-list{display:flex;flex-direction:column}
.edit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;border-bottom:1px solid var(--paper-rule)}
.edit-row:last-child{border-bottom:0}
.edit-name{font-size:15px;line-height:22px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.edit-step{display:flex;align-items:center;gap:10px;flex:none}
.step{position:relative;width:36px;height:36px;border-radius:50%;background:var(--sand);color:var(--ink);font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center}
.step:after{content:"";position:absolute;inset:-4px} /* 44 px to the finger (plan v12, step 3) */
.step-val{min-width:58px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}

/* Generic states */
.card.state{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.card.state .btn{margin-top:10px;align-self:stretch}

/* Home */
.home{padding-top:10px}
.home .plan-form{margin-top:12px}
.home .plan-form .btn{margin-top:10px}
/* Plan v20 (size A, chosen by the owner): the party size under Plan, a quiet button with no fill on the left, its words
   in line with the field's edge. */
.home .plan-form .party-row{display:flex;margin-top:2px}
.home .plan-form .party-row .btn.text{margin:0 0 0 -12px;height:36px;font-family:inherit;cursor:pointer}
.home .plan-status{margin-top:8px;text-align:center} /* "Checking what's open then…" under Plan while the planner works */
.ideas{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.chip.idea{height:auto;min-height:34px;padding:7px 14px;white-space:normal;text-align:left;line-height:18px}
.plan-answer{margin-top:12px;padding:14px 16px;border-radius:16px;background:var(--coal);border:1px solid var(--line);color:var(--cream);font-size:14px;line-height:20px}
.plan-answer p{margin:0}
.plan-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.home .sec{margin:22px 0 10px}
.route-list{display:flex;flex-direction:column;gap:12px}
/* Plan v20, routes A: the way to every route, under the six. */
.home .all-routes{margin-top:12px}
/* The full list of routes: filters in rows of chips, each with its name above. */
.all-routes-screen .filter-label{margin-top:12px}
.all-routes-screen .filter-label:first-child{margin-top:4px}
.all-routes-screen .chips{margin-top:4px}
.all-routes-screen .route-count{margin:14px 0 10px}

/* Route / plan */
.meta{padding:0 20px 12px}
.route-map-wrap{padding:0 20px}
.route-map{height:min(260px,32vh)} /* on a short phone the first stop shows without scrolling (plan v10, step 4) */
.warns{display:flex;flex-direction:column;gap:10px;padding:14px 20px 0}
.warns:empty{display:none}
/* The planner's words on a plan and "Change something" */
.planner,.planner-room{margin:14px 20px 0}
.planner .answer{font-size:15px;line-height:22px;color:var(--cream)}
.planner .notes{margin:8px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.planner .notes[hidden]{display:none}
.planner .notes li{position:relative;padding-left:14px;color:var(--muted);font-size:13px;line-height:18px}
.planner .notes li::before{content:"";position:absolute;left:2px;top:7px;width:4px;height:4px;border-radius:50%;background:var(--ember)}
.planner .talk{margin:0 0 14px;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.planner .turn{display:flex;flex-direction:column;gap:2px}
.planner .turn p{margin:0;font-size:15px;line-height:22px;color:var(--cream);overflow-wrap:anywhere}
.planner .turn.bot{padding-left:12px;border-left:2px solid var(--ember)}
.planner .more{display:inline-flex;margin:-12px 0 2px -12px}
.planner .revise .lbl{margin:0 0 8px;color:var(--muted)}
.planner .answer:not([hidden]) ~ .revise,.planner .notes:not([hidden]) ~ .revise,.planner .talk:not([hidden]) ~ .revise{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.planner .chips{flex-wrap:wrap;overflow:visible;margin:0 0 10px;padding:0}
.revise-row{display:flex;gap:8px}
.revise-row .field{flex:1;min-width:0;min-height:48px;padding:0 14px}
.revise-row .btn{flex:none;padding:0 18px}
.stops{padding:18px 20px 0}
.stops.tight{padding:12px 0 0}
.abar .split{margin-top:10px}
.tools{display:flex;flex-wrap:wrap;justify-content:center;gap:0 6px;padding:14px 20px 0}
.maps-gap{margin-top:10px}
.btn.text{height:44px;background:none;color:var(--muted);font-weight:500;font-size:13px;padding:0 12px}

/* Tonight */
.col{display:flex;flex-direction:column;gap:12px;padding-top:2px}
.hero-title{min-width:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere} /* two lines at most (plan v13, step 8) */
.nowrap{white-space:nowrap;flex:none}
.slots{display:grid;grid-template-columns:repeat(4,1fr);row-gap:12px;margin-top:12px}
.slot{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.link.expired span{color:var(--warn-ink)}
.share-row{margin-top:10px} /* "Share in Telegram", and "Share" beside it where the phone has a share sheet (plan v13, pass C, step 7) */
.share-row .btn.share-sys{flex:none;padding:0 20px}
.sheet .link{background:var(--sand);color:var(--ink)} /* the Invite sheet during the night: the link on white paper */
.sheet .link.expired span{color:var(--danger-ink)} /* "Link expired" in the paper's own red: the page's warn ink is pale pink on white */
.cost-card,.card.row.sp{padding:14px 16px}
.next-card{padding:12px}
.thumb{width:64px;height:64px;border-radius:14px;overflow:hidden;flex:none;background:var(--cocoa)}
.thumb img{width:100%;height:100%;object-fit:cover}
.grow{flex:1;min-width:0}
.next-eta{text-align:right;flex:none}
.eta-walk{justify-content:flex-end;font-size:13px;font-weight:600}
.live-map{height:150px}
/* After the night, and the note on Home that the next plan is for a group. */
.after-q{margin-top:2px;font-size:28px;line-height:34px;font-weight:600;letter-spacing:-.02em}
.after-again{margin-top:14px}
.plan-for{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding:2px 2px 2px 14px;border-radius:14px;background:var(--cocoa);color:var(--cream)}
.plan-for span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plan-for .btn.text{flex:none;color:var(--cream)}
.mini-stops{padding:2px 0}
.offline-note{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:12px;line-height:16px;color:var(--muted)}

/* Invite */
.invite{position:relative;min-height:100%;display:flex;flex-direction:column}
.invite-hero{position:absolute;left:0;right:0;top:0;height:300px;overflow:hidden}
.invite-hero img{width:100%;height:100%;object-fit:cover}
.invite-fade{position:absolute;left:0;right:0;top:150px;height:150px;background:linear-gradient(180deg,var(--bg-clear),var(--bg))}
.invite-card{position:relative;margin:calc(var(--safe-top) + 156px) 20px 0}
.invite-foot{position:relative;text-align:center;margin-top:auto;padding:24px 20px max(var(--safe-bottom),34px)}
.invite-stops{margin-top:10px}
.invite-stops li{height:28px;gap:10px}
.node.tiny{width:20px;height:20px;font-size:11px;background:var(--paper-top);color:var(--pin-ink);border-color:var(--paper-edge);flex:none}
.invite-stop-name{flex:1;min-width:0;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.going{font-size:13px;line-height:18px;font-weight:600}
.invite-route .meta{padding:0}
/* The route list inside the white invite card: the dark-screen colours of a stop row would be pale on white. */
.wcard .stop .tm,.wcard .stop .tp,.wcard .walk{color:var(--wc-muted)}
.wcard .node{background:var(--wc-node);color:var(--wc-ink);border-color:var(--wc-node-edge)}
.wcard .rail{border-left-color:var(--wc-rail)}
.wcard .bar{background:var(--wc-track)}
.av .mark{width:26px;height:auto}

/* Discover */
.pool{margin-top:18px}
.pool .sec{margin:0 0 4px}
.pool>p{margin:0 0 6px}
.pool-row{grid-template-columns:1fr}
.discover{padding-top:2px}
/* The row scrolls sideways, which clips what sticks out of it: 5 px above and below leave room for the chips' 44 px touch
   area, and the margins take the same 5 px back so nothing moves. */
.chips{display:flex;gap:8px;margin:7px -20px -5px;padding:5px 20px;overflow-x:auto;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.vlist{margin-top:8px}
/* Plan v15: at 300 places the browser laid out about 3,100 nodes of Discover rows nobody sees before it drew the list,
   and again at each filter tap. A row off the screen is skipped until it comes near; it counts as 149 px tall (a typical
   row on a phone: 124 px of content inside its 24 px of padding and 1 px rule) until it has been drawn once, then as its
   own last height. */
.discover .vlist>.vrow{content-visibility:auto;contain-intrinsic-size:auto 124px}
.vrow .nm{display:block}
.vrow a.nm{position:relative;z-index:1;padding:11px 0;margin:-11px 0} /* a one-line name, 44 px to the finger */
.vrow .tags{margin-top:2px} /* "Jazz · Live music · Budget": a few of the place's tags (plan v12, step 1) */
.vrow .open-until{margin-top:2px} /* "Open until 2 am" under the area, in the page's own ink */
.vrow .add{display:inline-flex;margin-top:8px}
.vrow>div{min-width:0}

/* Venue */
.venue{position:relative;min-height:100%}
.venue-hero{height:264px}
.venue-card{position:relative;z-index:2;margin:-52px 20px 0}
.venue-top{align-items:flex-start;gap:12px}
.venue-top>div{min-width:0}
.venue-blurb{margin-top:12px;font-size:15px;line-height:22px}
.venue-tags{margin-top:6px} /* "Jazz · Live music · Date": the catalog's tags in Discover's words (plan v13, pass C, step 1) */
.venue-info{margin-top:12px}.info-row{height:36px;border-top:1px solid var(--wc-rule);font-size:15px}
.info-row svg{color:var(--wc-ink)}
.pill.status{background:var(--sand);border:0;color:var(--ink);flex:none}
.pill.status.closed{color:var(--closed-ink)} /* muted-ink is 4.2:1 on sand; this is 6:1 */

/* Account */
.account .confirmed{margin-top:14px;font-size:13px;font-weight:600}
.account .ok{color:var(--wc-pk)}
.card.list{padding:0 16px}
.lrow.danger-text{color:var(--danger-text)}
.account .btn.phone-del{padding:0 4px;color:var(--danger-text)} /* the phone row's Delete (plan v12, step 11): a 44 px target */
.tg-hint{margin-top:10px}
.tg-hint:empty{display:none}
.tg-hint a{color:var(--wc-ink);font-weight:600;text-decoration:underline;text-underline-offset:2px}
/* A row with a note under it (the last row of a list): the note shares the row's place in the border logic. */
.lgroup .lrow{border-bottom:0}
.lgroup{border-bottom:1px solid var(--line)}
.lgroup:last-child{border-bottom:0}
.lnote{margin:-6px 0 0;padding:0 0 14px;color:var(--muted);font-size:13px;line-height:18px}
.lnote a{color:var(--ember-hi);text-decoration:underline;text-underline-offset:2px}
/* A row with a line under its name (Account's "Ideas", plan v21) */
.lrow.two{padding:10px 0}
.lrow-text{display:flex;flex-direction:column;gap:2px;min-width:0}

/* The ideas board (#/board, plan v21), option B as the owner chose it on 26.11.2026: the idea on the left, on the right
   a pill of an up arrow, the score and a down arrow. My vote: the block arrow filled and coloured, the score in its
   colour (up --vote-up, down --vote-down). No ring under the arrow. */
.board-h{margin-top:2px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mchips{display:flex;gap:8px}
.board-list.col{gap:10px;padding-top:0;margin-top:2px}
.card.idea{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 16px}
.idea-title{flex:1;min-width:0;font-size:15px;line-height:20px;font-weight:600;overflow-wrap:anywhere}
.pill.sm{height:24px;padding:0 10px;font-size:12px}
.pillv{flex:none;display:flex;align-items:center;height:40px;padding:0 4px;border-radius:999px;background:var(--cocoa)}
.pillv[aria-busy=true]{opacity:.7}
.va{position:relative;flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}
.va:after{content:"";position:absolute;inset:-6px} /* 44 px to the finger, 32 px to the eye */
.va:focus-visible{outline:2px solid var(--ember-hi);outline-offset:0}
.va.dn .ic{transform:rotate(180deg)}
.ic.blk{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round}
.va.on .ic.blk{fill:currentColor}
.va.up.on{color:var(--vote-up)}
.va.dn.on{color:var(--vote-down)}
.vn{min-width:32px;padding:0 1px;box-sizing:border-box;text-align:center;white-space:nowrap;font-size:15px;line-height:20px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--cream)}
.vn.up{color:var(--vote-up-text)}
.vn.dn{color:var(--vote-down)}
.idea-count{margin:6px 2px 0;text-align:right;font-variant-numeric:tabular-nums}
/* Switch (not in the design package): a cocoa track that turns Ember when on, with a cream knob. It sits at the end of a .lrow button (role=switch). */
.sw{position:relative;flex:none;width:48px;height:28px;border-radius:999px;background:var(--cocoa);border:1px solid var(--muted-ink)} /* the border keeps the off switch 3:1 against the card */
.sw::after{content:"";position:absolute;top:2px;left:2px;width:22px;height:22px;border-radius:50%;background:var(--knob)}
.lrow[aria-checked=true] .sw{background:var(--sel);border-color:var(--sel)}
.lrow[aria-checked=true] .sw::after{transform:translateX(20px);background:var(--knob-on)}
.lrow[aria-busy=true] .sw{opacity:.6}
@media (prefers-reduced-motion:no-preference){.sw,.sw::after{transition:transform .15s ease,background-color .15s ease,border-color .15s ease}}
/* Privacy · Terms under Account: each link is 44 px tall to the finger (it was the 16 px of its line; WCAG 2.5.8). Its room
   is its own: no margin pulls it over the buttons above. */
.account .legal{margin-top:0}
.account .legal a{display:inline-block;padding:14px 6px;color:var(--muted);text-decoration:underline;text-underline-offset:2px}
/* The line under a sign-in button: what signing in agrees to. Drawn only when both pages exist. */
.consent,.sheet .cap.consent{margin-top:8px} /* in a sheet it stands apart from the caption above it, not 1px under */
.consent a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.night-row{padding:14px 16px}
.noscript{padding:24px;color:var(--cream);font-family:sans-serif}

/* The group's chat on the night screen. */
.chat .sec{margin-bottom:10px}
.chat-list{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow-y:auto;overscroll-behavior:contain;margin:0 -4px;padding:0 4px 2px;scrollbar-width:thin}
.chat-msg{display:flex;flex-direction:column;align-items:flex-start;max-width:86%}
.chat-msg.mine{align-self:flex-end;align-items:flex-end}
.chat-who{margin:0 4px 3px}
.chat-bubble{padding:9px 12px;border-radius:16px 16px 16px 6px;background:var(--cocoa);color:var(--cream);font-size:15px;line-height:20px;overflow-wrap:anywhere;white-space:pre-wrap}
.chat-msg.mine .chat-bubble{border-radius:16px 16px 6px 16px;background:var(--mine);color:var(--mine-ink)}
.chat-event{align-self:center;text-align:center;padding:2px 8px;overflow-wrap:anywhere}
button.chat-bubble{display:block;text-align:left}
/* The sheet about a message: the words themselves, and the host's way to remove whoever wrote them. */
.msg-quote{max-height:132px;overflow-y:auto;padding:10px 12px;border-radius:12px;background:var(--sand);color:var(--ink);overflow-wrap:anywhere;white-space:pre-wrap}
.sheet .msg-quote.mu{color:var(--ink)}
.btn.link-q.danger-ink{color:var(--danger-ink)}
button.slot{width:100%}
.chat-empty{margin:0 0 4px}
.chat-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.chat-form{display:flex;gap:8px;margin-top:10px}
.chat-form input{flex:1;min-width:0;height:44px;padding:0 14px;border-radius:14px;border:1px solid var(--line);background:var(--bg);color:var(--cream);font:inherit;font-size:16px}
.chat-form input::placeholder{color:var(--muted)}
.chat-form .btn{height:44px;width:48px;padding:0}
/* Plan v27: the chat as one row on Tonight (who wrote last, their words on one line, when, the unread count), and its own screen */
.chat-box{display:flex;flex-direction:column;gap:10px}
.chat-row{gap:12px}
.chat-row-text{flex:1;min-width:0}
.chat-row-last{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-row-last.whole{white-space:normal}
.chat-row-end{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.chat-row>svg{flex:none;color:var(--muted)}
.chat-row-icon{background:var(--cocoa);color:var(--muted)}
.chat-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--ember);color:var(--on-ember);font-variant-numeric:tabular-nums}
.chat-row-quick{margin-top:0}
.screen>.body.chat-screen{display:flex;flex-direction:column;height:100%;padding-bottom:max(var(--safe-bottom),16px)} /* no tab bar under it: the phone's home bar is kept clear */
.chat-screen .chat{flex:1;min-height:0;display:flex;flex-direction:column}
.chat-screen .chat-list{flex:1;max-height:none;min-height:0}
.chat-screen .chat-empty{flex:1}
.tabbar .tab{position:relative}
.tabbar .tab.has-dot:after{content:"";position:absolute;top:8px;left:calc(50% + 8px);width:9px;height:9px;border-radius:50%;background:var(--ember);border:2px solid var(--bg)}

/* The app installed on an iPhone draws under the clock (black-translucent in index.html), and that clock is always white.
   The strip under it stays dark on the light page too, over everything (the layer of sheets is 50), or the time and the
   battery cannot be read. In a browser tab there is no such strip: the browser draws its own bar. */
@media (display-mode:standalone){
  body::before{content:"";position:fixed;z-index:60;top:0;left:0;right:0;height:var(--safe-top);background:var(--status-bar);pointer-events:none}
}
/* Plan v12, step 7: a place that books on its own platform page, and a place that takes walk-ins only */
.book-own-note{margin:8px 4px 0;text-align:center}
.walk-in-note{margin:14px 4px 0;text-align:center}

/* Plan v13, steps 1 to 4: a stop's photo and its booking line. The line has one height whatever it says (a button, a link,
   "Walk-ins only", a request's state), so the stops do not move when the person's requests come. The photo sits on the
   right of the name and the line. */
.stops .stop.pic{grid-template-columns:62px 24px 1fr 48px}
.stops .stop.pic>.spic{grid-area:1/4/3/5;width:48px;height:48px;margin-top:2px;border-radius:10px;overflow:hidden;background:var(--cocoa)}
.stops .stop.pic>.spic img{width:100%;height:100%;object-fit:cover}
.book-row{height:28px;display:flex;align-items:center;min-width:0}
.book{position:relative;display:inline-flex;max-width:100%;min-width:0;white-space:nowrap;padding:0;border:0;background:none;font-family:inherit;font-size:13px;line-height:24px;font-weight:600;color:var(--ember-hi);text-align:left;cursor:pointer}
.book:after{content:"";position:absolute;inset:-10px -8px} /* 44 px to the finger (24 + 10 + 10), 24 px to the page (WCAG 2.5.8) */
a.book{text-decoration:none}
.book>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.book.state{color:var(--cream)}
.book.state.yes{color:var(--ember-hi)}
.book.quiet{color:var(--muted);font-weight:500;cursor:default}
.book.quiet:after{content:none}
.book-row.wraps{height:auto;min-height:28px} /* plan v17 follow-up: a friend's request is read whole, on two lines if it needs them */
.book.wraps{white-space:normal}
.book.wraps>span{overflow:visible;text-overflow:clip}
.tonight-plan{padding:0 16px 14px}
.tonight-plan .plan-link{position:relative;padding:14px 0 2px}
/* 44 px to the finger across the whole card: 6 px more above the link (the room between two cards), never over the stops below */
.tonight-plan .plan-link:after{content:"";position:absolute;inset:-6px -16px 0}
.rq-closed{margin-top:6px}
.rq-closed:empty{display:none}

/* Plan v13, step 7: on a short screen (an iPhone SE is 667 px) the map is lower and the person's own words in the planner's
   card take one line, so the first stop is whole above "Send to group". */
@media (max-height:700px){
  .route-map{height:min(170px,26vh)}
  .planner .turn.you p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* Plan v23: a sealed night. A sealed stop: a lock in its circle, a bar where the name would be, the hint in italics
   and when it opens (the owner's picture of 27.11.2026). A stop that just opened comes in with a short movement. */
.pill.sealed{color:inherit}
.pill.sealed .ic{color:var(--ember-hi)}
.node.sealed{border-style:dashed;color:var(--ember-hi)}
.sheet .node.sealed{background:var(--white);border-color:var(--paper-line);color:var(--ember-lo)}
.wcard .node.sealed{background:var(--wc-sealed-node);border-color:var(--wc-sealed-edge);color:var(--wc-pk)}
.stop.sealed .mask{display:inline-block;width:112px;max-width:100%;height:14px;border-radius:7px;background:var(--line);vertical-align:-1px}
.wcard .stop.sealed .mask{background:var(--wc-mask)}
.hint{font-style:italic}
.stop.mini.sealed .nm{font-weight:500;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Tonight's plan card and the plan screen (the owner's pick B of 30.11.2026): 20 px of air above each sealed row and above
   the line about tables; the time column, the invite, the read-only link and "Stop 1 is open" stay as they were */
.tonight-plan .stops .stop.sealed,.route:not(.shared)>.stops .stop.sealed{margin-top:20px}
.sealed-note{margin-top:12px}
.tonight-plan .sealed-note,.sealed-box .sealed-note{margin-top:20px}
.sealed-home{margin-top:6px}
.sealed-home .sealed-kicker{display:flex;align-items:center;gap:8px;color:var(--wc-pk)}
.sealed-home .sealed-kicker .ic{display:block;flex:none}
.home .sealed-home .sealed-kicker .sec{margin:0;line-height:20px;color:var(--wc-ink)} /* not Home's section heading: no room above it */
.sealed-home p{margin-top:6px}
.sealed-home .btn{margin-top:14px}
.seal-sheet .chips{flex-wrap:wrap;overflow:visible;margin:0;padding:0}
.seal-sheet .chip{background:var(--sand);color:var(--ink)}
.seal-sheet .chip[aria-pressed=true]{background:var(--ink);color:var(--white)} /* the sheet is white in both themes */
/* The sheet that seals a night (variant C, the owner's pick of 27.11.2026): it fits a 390 x 664 phone whole */
.sheet:has(.seal-sheet){max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}
.seal-sheet .lbl{margin:12px 0 6px}
.seal-line{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin-top:12px}
.seal-line .lbl{margin:0}
.seal-strip{display:flex;gap:6px;margin:0 -24px;padding:0 24px 2px;overflow-x:auto;scrollbar-width:none}
.seal-strip::-webkit-scrollbar{display:none}
.dtile{position:relative;flex:1 0 42px;min-width:42px;height:52px;border-radius:14px;background:var(--sand);color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
.dtile .wd{font-size:11px;line-height:14px;font-weight:500;color:var(--muted-ink)}
.dtile .dn{font-size:18px;line-height:22px;font-weight:600;font-variant-numeric:tabular-nums}
.dtile.today:after{content:"";position:absolute;left:50%;bottom:4px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--ember)}
.dtile[aria-pressed=true]{background:var(--ink);color:var(--white)}
.dtile[aria-pressed=true] .wd{color:inherit;opacity:.72}
.seal-step{display:flex;align-items:center;gap:10px}
.seal-step .step[aria-disabled=true]{opacity:.35}
.seal-count{min-width:76px;font-size:16px;line-height:22px;font-weight:600}
.seal-where .chips{gap:8px}
.seal-near{gap:6px;padding:0 14px 0 11px}
.seal-near[aria-busy=true]{opacity:.7}
.seal-near-note{margin-top:8px}
.seal-map{position:relative;margin-top:10px;aspect-ratio:342/180;border-radius:16px;overflow:hidden;background:var(--sand);box-shadow:inset 0 0 0 1px var(--paper-line)}
.seal-map img{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;user-select:none}
.seal-map-credit{position:absolute;left:6px;bottom:3px;font-size:9px;line-height:12px;color:var(--muted-ink)}
.seal-map .me-dot{position:absolute;transform:translate(-50%,-50%);z-index:2;pointer-events:none}
.bubble{position:absolute;display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:999px;background:var(--white);color:var(--ink);font-size:12px;line-height:16px;font-weight:600;white-space:nowrap;
  box-shadow:0 0 0 1px var(--paper-line),0 1px 4px var(--shadow);transform:translate(-11.5px,-50%)}
.bubble.l{flex-direction:row-reverse;transform:translate(11.5px,-50%)}
.bubble i{flex:none;width:7px;height:7px;border-radius:50%;background:var(--ember)}
.bubble:after{content:"";position:absolute;left:0;right:0;top:-10px;bottom:-10px} /* 44 px to the finger */
.bubble[aria-pressed=true]{background:var(--ink);color:var(--white);box-shadow:0 0 0 2px var(--white),0 1px 4px var(--shadow);z-index:1}
.bubble:disabled{opacity:.45;box-shadow:0 0 0 1px var(--paper-line)}
.bubble:disabled i{background:var(--muted-ink)}
.seal-extra{display:contents}
.seal-send{margin-top:16px}
.sealed-card .sealed-head{margin-bottom:12px}
.sealed-card .sealed-actions{margin-top:14px}
.sealed-all{margin-top:6px}
.tonight-plan .sealed-all,.sealed-box .sealed-all{margin-left:-12px} /* its lock on the edge of the line about tables; the finger keeps the whole button */
@media (prefers-reduced-motion:no-preference){.stop.opened{animation:sealed-open .7s ease-out}}
@keyframes sealed-open{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.sealed-box{padding:0 20px}
.sealed-box:empty{display:none}
.sealed-box .sealed-another{margin-top:10px}
.stops .sealed-note{margin:14px 0 0}
.wcard .node.now{background:var(--ember);border-color:var(--ember);color:var(--on-ember)}
.wcard .node.done{background:var(--wc-done);border-color:var(--wc-done);color:var(--wc-done-ink)}
.invite-stops li.sealed{height:auto;min-height:28px;align-items:flex-start;padding:4px 0}
.invite-stops li.sealed .node{flex:none}
.invite-stops li.sealed .invite-stop-name{white-space:normal;overflow:visible;font-weight:500;line-height:20px;color:var(--wc-muted)}
.wcard .sealed-all{color:var(--wc-ink)}
.sealed-slot>.sk{margin-top:6px}
/* the header's "Sealed night": below 360 px only the lock; its words stay for a screen reader */
@media (max-width:359px){.pill.sealed{padding:0 9px}.pill.sealed .pill-words{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
/* Plan v23-UI, step 6: what the look at every screen found out of line.
   The search field's clearing cross is the browser's own, blue: ours, in the colour of the placeholder (the icon set's "x"). */
.field input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:18px;height:18px;margin:0 0 0 8px;cursor:pointer;background:var(--muted-ink);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/18px 18px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/18px 18px no-repeat}
/* The read-only link's "Plan your own night" keeps the page's 20 px sides, as every block of a plan does. */
.route.shared>.sheet-gap{padding:0 20px 28px}

/* Plan v23-UI, PR 3: the rest of the look at every screen.
   A place's special days ("Closed Thu, Dec 24 · Christmas Eve") are rows like the others: 44 px at least, the same rule above. */
.info-row:not(.tap){height:auto;min-height:44px;padding:8px 0;align-items:flex-start;line-height:20px}
.info-row:not(.tap)>svg:first-child{margin-top:1px}
/* A field in a sheet or on white paper has the app's ember ring when the keyboard is on it, not a black one. Ember-lo is 4.3:1
   on the white paper of the dark page (Ember-hi there is 2.6:1); on the light page both are the ember every field has. */
.sheet .field:focus-within,.wcard .field:focus-within,.abar .field:focus-within{outline-color:var(--ember-lo)}
/* The light page: back and share over a photo are white discs with an edge and a shadow, so they stand out of a white photo too. */
@media (prefers-color-scheme:light){
  .ibtn.ph{background:var(--veil-strong);border-color:var(--photo-btn-edge);box-shadow:0 1px 6px var(--photo-btn-shadow)}
}
/* A row of chips that scrolls sideways fades at the right edge while more of it is there (ui.js watchRowEnds). */
/* A mask reads only how opaque a colour is: --ink is opaque on both pages. */
.chips.more-right{-webkit-mask-image:linear-gradient(to right,var(--ink) calc(100% - 48px),transparent);mask-image:linear-gradient(to right,var(--ink) calc(100% - 48px),transparent)}
/* The "Party size" sheet says its name once, in the title; the field keeps the room the visible label had under it. */
label.sr-only[for=party-size]+.field{margin-top:16px}
/* Placeholders on white paper: sand, not the page's coal. */
.wcard .sk{background-image:linear-gradient(90deg,var(--wc-sk),var(--wc-sk-hi),var(--wc-sk))}
