/* Event Agent. Phone first: one column, a floating tab bar, sheets for details. Wide screens: a sidebar and a
   wider column (the end of this file). See docs/DESIGN.md. */
:root {
  --bg: #f5f4f0; --surface: #fff; --surface-2: #ecebe6; --ink: #111214; --muted: #6b6e76; --faint: #9b9da4; --line: #e6e4de;
  --primary: #111214; --on-primary: #fff; --accent: var(--ink); --danger: #c62828; --on-danger: #fff;
  --going: #1f7a46; --going-bg: #e1f3e8; --wait: #8f5300; --wait-bg: #fcefd5; --invited: #0f6f66; --invited-bg: #dcf1ee;
  --host: #ad2468; --host-bg: #fbe3ef; --pending: #2a5cb3; --pending-bg: #e2ebfb; --needs: #c2410c; --needs-bg: #ffecd8;
  --shadow: 0 1px 2px rgba(17, 18, 20, .04), 0 10px 30px rgba(17, 18, 20, .08);
  --radius: 18px; --col: 560px; --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11; --surface: #18191c; --surface-2: #232428; --ink: #f2f2f3; --muted: #a0a3aa; --faint: #70737a; --line: #2a2b30;
    --primary: #f2f2f3; --on-primary: #111214; --danger: #ff7b72; --on-danger: #111214;
    --going: #6fd49a; --going-bg: #16301f; --wait: #f2b765; --wait-bg: #33260f; --invited: #6fd6c8; --invited-bg: #12302c;
    --host: #f59ac6; --host-bg: #3a1a2a; --pending: #8fb4ff; --pending-bg: #172440; --needs: #ffa66b; --needs-bg: #3a2010;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
       font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
main { max-width: var(--col); margin: 0 auto; padding: calc(8px + var(--safe-t)) 16px calc(var(--tabbar) + 40px + var(--safe-b)); }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: default; }
h1 { font-size: 32px; line-height: 1.12; letter-spacing: -.025em; font-weight: 750; margin: 6px 0 4px; }
h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 6px; }
h3 { font-size: 17px; margin: 0 0 8px; }
.sub { color: var(--muted); font-size: 15px; margin: 0; }
.fine { color: var(--muted); font-size: 13px; margin: 10px 4px; }
.ok { color: var(--going); font-weight: 600; }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 6px; }
svg { display: block; flex: none; }
i[data-icon] { display: inline-flex; }

/* ---------- controls ---------- */
input, textarea, select { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
                          border-radius: 14px; padding: 0 16px; height: 52px; outline: none; }
textarea { height: auto; padding: 14px 16px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
.primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: 12px;
           border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 650; font-size: 16px; }
.primary.danger { background: var(--danger); color: var(--on-danger); }
a.primary { text-decoration: none; }
.quiet { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 8px;
         border-radius: 999px; background: var(--surface-2); font-weight: 600; }
.quiet.danger { color: var(--danger); }
.text { display: block; margin: 10px auto 0; padding: 10px; color: var(--muted); font-size: 15px; }
.pill { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary);
        font-size: 14px; font-weight: 650; white-space: nowrap; }
.pill.soft { background: var(--surface-2); color: var(--ink); }
.pill.warn { background: var(--needs-bg); color: var(--needs); }
.icon { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface);
        box-shadow: var(--shadow); text-decoration: none; }
.icon.spin svg { animation: spin 1s linear infinite; }
.stack > * + * { margin-top: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
        font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.chip.warn { display: inline-flex; align-items: center; gap: 6px; background: var(--needs-bg); color: var(--needs); border-color: transparent; font-weight: 600; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips.wrap .chip { height: 40px; font-size: 15px; }
.row-buttons { display: flex; gap: 8px; margin-top: 10px; }
.row-buttons > * { flex: 1; margin-top: 0; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.focus-card .chips { padding-bottom: 0; }
.focus-card .sub { font-size: 14px; margin-bottom: 12px; }
.focus-card .fine { margin: 10px 0 0; }
.focus-card .text { margin-top: 4px; padding-bottom: 0; }
.chip.focus { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.chip.focus svg { color: var(--muted); }
.focus-form { display: flex; gap: 8px; align-items: center; }
.focus-form input { height: 44px; flex: 1; min-width: 0; }
.focus-form .pill { height: 44px; }
.more-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.row-item.taste-row { display: grid; grid-template-columns: 110px 1fr 40px; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.icon.flat { box-shadow: none; background: transparent; color: var(--muted); }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; padding: 0; border-radius: 999px;
          background: var(--surface-2); border: 0; position: relative; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
                 background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch:checked { background: var(--going); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#feed-more, #ask-more { margin-bottom: 8px; }
#welcome h1 { margin-top: 4px; }
#welcome .section { margin-top: 22px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink);
           animation: spin .9s linear infinite; margin: 0 auto 12px; }
.spinner.small { display: block; width: 18px; height: 18px; border-width: 2px; margin: 0; }  /* a row that's still working */
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- page header ---------- */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 8px 0 16px; }
.tools { display: flex; gap: 8px; margin-top: 8px; }
/* where you are, beside Search: filled in once a place is set */
#place.set { background: var(--primary); color: var(--on-primary); }
.chip.with-icon { display: inline-flex; align-items: center; gap: 6px; }
#sheet-body[data-sheet="place"] .seg { margin-bottom: 4px; }
.section { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 26px 4px 8px; }
#act-title { font-size: 25px; }
.eyebrow { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0 0; }

/* ---------- sign in ---------- */
.signin { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.signin .hero { margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { display: block; }
/* beside the name wherever the logo is: we're in beta */
.beta { flex: none; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px;
        font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
a.brand { text-decoration: none; margin-top: 16px; }
.doc { padding-bottom: 48px; }
.doc h2 { margin-top: 28px; }
.doc p, .doc li { line-height: 1.55; }
.doc li + li { margin-top: 6px; }
.signin h1 { font-size: 36px; }
.signin .sub { margin-top: 10px; }
.code { text-align: center; font-size: 28px; letter-spacing: .5em; font-variant-numeric: tabular-nums; height: 64px; padding-left: calc(16px + .5em); }

/* ---------- segmented control ---------- */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; margin-bottom: 8px; }
.seg button { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
/* icon-only: as tall as a chip (28 + 3 + 3), so it sits in a chip row */
.seg.icons button { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; }
/* Discover: the filter chips and the order in one row. The chips are a size smaller here so all four fit beside the order on a
   375px phone; narrower than that they scroll, faded at the edge while there's more (.more, set in app.js) */
.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.filter-row .chips { flex: 1; min-width: 0; padding: 2px 0; gap: 6px; }
.filter-row .chip { padding: 0 10px; font-size: 13px; }
.filter-row .chips.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent);
                          mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent); }
.filter-row .seg { flex: none; margin: 0 0 0 auto; }
@media (min-width: 700px) {
  .filter-row .chips { gap: 8px; }
  .filter-row .chip { padding: 0 14px; font-size: 14px; }
}
/* the Platform chip opens its choices under the row (renderPlatforms in app.js): its chevron points down, up while open.
   The choices wrap rather than scroll, so every site and its count is in view, in at most two short lines on a phone */
#platform-chip { gap: 4px; padding-right: 8px; }
#platform-chip svg { transform: rotate(90deg); transition: transform .15s; }
#platform-chip[aria-expanded="true"] svg { transform: rotate(-90deg); }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 12px; }
.platforms .chip { display: inline-flex; align-items: center; height: 32px; padding: 0 6px 0 12px; font-size: 13px; }
.platforms .chip .count { margin-left: 6px; }
.platforms .chip.on .count { background: color-mix(in srgb, var(--on-primary) 22%, transparent); color: var(--on-primary); }
.platforms .platforms-clear { display: inline-flex; align-items: center; height: 32px; margin: 0; padding: 0 8px; font-size: 13px;
                              font-weight: 600; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { #platform-chip svg { transition: none; } }
/* a count in a segment: neutral, or teal on Invites (class "count invited") */
.count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--line);
         color: var(--ink); font-size: 12px; line-height: 20px; }

/* ---------- agenda ---------- */
.day { margin: 22px 0 4px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.day span { color: var(--muted); font-weight: 500; }
#feed > .day:first-child, #results > .day:first-child { margin-top: 6px; }
.day.off { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.ev { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; width: 100%; padding: 12px 0; text-align: left; align-items: start; }
.ev + .ev { border-top: 1px solid var(--line); }
.tile { --h: 20; position: relative; flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
        color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.02em;
        background: linear-gradient(140deg, hsl(var(--h) 72% 62%), hsl(calc(var(--h) + 40) 66% 44%)); }
.tile.big { width: 72px; height: 72px; font-size: 24px; }
/* a site's app icon: white behind it so Meetup's and Eventbrite's see-through marks read as icons in dark mode too; the ring keeps
   Luma's white icon off the page. No overflow: hidden on the tile, or the status pill below it gets cut off. */
.site { background: #fff; }
.site img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; box-shadow: 0 0 0 1px var(--line); }
.st { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700;
      padding: 2px 8px; border-radius: 999px; border: 2px solid var(--bg); }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.going { background: var(--going-bg); color: var(--going); }
.host { background: var(--host-bg); color: var(--host); }
.pending { background: var(--pending-bg); color: var(--pending); }
.wait { background: var(--wait-bg); color: var(--wait); }
.invited { background: var(--invited-bg); color: var(--invited); }
.needs { background: var(--needs-bg); color: var(--needs); }
.ev .src { font-size: 13px; color: var(--muted); }
.ev .src .copies { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11.5px;
                   font-weight: 700; line-height: 18px; background: var(--surface-2); color: var(--muted); }  /* one event listed N times */
.sheet .fine.copies { margin: 12px 0 0; }
.ev .t { font-weight: 650; font-size: 16.5px; line-height: 1.25; margin: 2px 0 5px; letter-spacing: -.01em; }
.m { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-top: 2px; }
.m span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* how many are going and what it costs: what a site says in ink, our estimate muted, dashed and tagged */
.m.nums { flex-wrap: wrap; gap: 2px 14px; }
.m.nums .num { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); overflow: visible; }
.m.nums .num.est { color: var(--muted); }
.m.nums .num.est .v { border-bottom: 1px dashed var(--faint); }
.m .est-tag { font-size: 11px; font-weight: 700; line-height: 16px; padding: 0 6px; border-radius: 999px;
              border: 1px dashed var(--faint); color: var(--muted); overflow: visible; }
.sheet .fine.src-note { margin: 2px 0 6px 21px; }
.match { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
         background: var(--going-bg); color: var(--going); }
.match.mid { background: var(--surface-2); color: var(--muted); }
.match.new { background: var(--surface-2); color: var(--ink); }
.why { font-size: 14px; color: var(--muted); margin-top: 4px; }
.empty { text-align: center; padding: 40px 12px; }
.empty .glyph { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: var(--surface-2);
                display: grid; place-items: center; color: var(--muted); }
.empty .primary { max-width: 280px; margin: 18px auto 0; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: var(--shadow); }
.card.soft { box-shadow: none; border: 1px solid var(--line); background: transparent; }
.card.warn { background: var(--wait-bg); box-shadow: none; }
.card.warn h3 { color: var(--wait); }
.label { font-size: 13px; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.facts { margin: 0; padding-left: 18px; color: var(--ink); font-size: 15px; }
.review-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.review-item + .review-item { border-top: 1px solid var(--line); }
.review-item .chips { padding: 0; flex: none; }
.clash { font-size: 14px; }
.clash + .clash { margin-top: 8px; }
/* a card that folds: the summary is its heading and a chevron that turns when open */
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary > h3, .fold > summary > .label { margin: 0; }
.fold > summary .chev { flex: none; transition: transform .15s; }
.fold[open] > summary { margin-bottom: 10px; }
.fold[open] > summary .chev { transform: rotate(90deg); }
.card.warn .chev { color: var(--wait); }
.clash-clear { margin-left: auto; padding: 4px 2px; border: 0; background: none; font: inherit; font-size: 14px;
               font-weight: 600; color: var(--wait); cursor: pointer; }
.clash-clear:disabled { opacity: .5; cursor: default; }
.fold-link { display: inline-block; margin-top: 10px; }
/* Discover: "What we've learned about you" is a slim line under the filters, not a card; open, the facts follow under it */
#learned-box { border: 0; border-radius: 0; padding: 0 2px; margin: 0 0 4px; }
#learned-box > summary { justify-content: flex-start; gap: 2px; min-height: 36px; cursor: pointer; }
#learned-box[open] > summary { margin-bottom: 4px; }
#learned-box[open] { padding-bottom: 8px; }

/* updates on your events (updates.py): My week's card and row line, and the event sheet's section */
.card.news h3 { margin: 0 0 6px; }
.news-item { display: block; width: 100%; text-align: left; padding: 10px 0; color: var(--ink); }
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-item .sub { font-size: 13px; }
.news-item .sub b { color: var(--ink); font-weight: 650; }
.news-line { font-size: 15px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .unread-line { color: var(--accent); font-weight: 600; }
.updates { margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.updates h3 { margin: 0 0 4px; font-size: 17px; }
.upd { padding: 10px 0; }
.upd + .upd { border-top: 1px solid var(--line); }
.upd-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.upd-top .when { color: var(--muted); margin-left: auto; flex: none; }
.upd.unread .upd-top b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%;
                                 background: var(--accent); vertical-align: 1px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.upd-body { font-size: 15px; margin-top: 4px; white-space: pre-line; overflow-wrap: anywhere; }
.upd-body a { color: var(--accent); font-weight: 600; }
.upd-body.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.upd .more-link { display: inline-block; margin: 4px 0 0; padding: 0; }

/* ---------- discover ---------- */
.intent { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.focus-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 4px 10px; font-size: 14px; color: var(--muted); }
.focus-bar b { color: var(--ink); font-weight: 600; }
.intent .status { background: var(--surface-2); color: var(--ink); font-weight: 600; }
#discover { padding-bottom: 140px; }
.composer { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + 22px + var(--safe-b)); z-index: 5;
            max-width: var(--col); margin: 0 auto; padding: 0 16px; }
.composer-bar { display: flex; align-items: center; gap: 8px; }
.composer-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
                border-radius: 999px; padding: 5px 5px 5px 18px; box-shadow: var(--shadow); }
.composer-row input { border: 0; height: 44px; padding: 0; background: transparent; border-radius: 0; }
.send { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.composer-reset { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
/* The agent on a phone or tablet: Search at the top of Discover opens the composer in the tab bar's place; closing it
   brings the tab bar back. From 960px the composer stays open under the column, beside the sidebar, so Search hides. */
.composer-close { display: none; }
@media (min-width: 960px) { #ask-open { display: none; } }
@media not all and (min-width: 960px) {
  .composer-close { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center;
                    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--muted); }
  body:not([data-agent="open"]) .composer, body[data-agent="open"] .tabbar { display: none; }
  body[data-agent="open"] .composer { bottom: calc(12px + var(--safe-b)); animation: up .2s ease-out; }
}
.skeleton { height: 76px; border-radius: 16px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2));
            background-size: 200% 100%; animation: shimmer 1.2s infinite; margin: 12px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- grouped rows (sites, profile) ---------- */
.group { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.group > * + * { border-top: 1px solid var(--line); }
.group textarea { border: 0; border-radius: 0; }
.row-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px;
            padding: 12px 16px; text-align: left; text-decoration: none; }
.row-item .who { flex: 1; min-width: 0; }
.row-item b { font-weight: 650; }
.row-item.danger { color: var(--danger); font-weight: 600; }
.row-item span.sub { display: block; font-size: 14px; }  /* a two-line row that's a button (spans: a button can't hold divs) */
/* A followed site's sheet: what you can do with it sits above its events (the list can be long), then the words for
   the kind of events you want from it */
.site-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.site-acts .pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; text-decoration: none; }
.site-acts .pill.danger { color: var(--danger); }
.want-form .section { display: block; }
.want-row { display: flex; gap: 8px; align-items: center; }
.want-row input { flex: 1; min-width: 0; height: 48px; }
.want-row .pill { height: 44px; }

/* Discover, right after the quick start: what's being read, then what was learned (app.js renderReading) */
.reading h3 { margin: 0; }
.reading .label-row { align-items: center; }
.reading-row { margin-top: 10px; font-size: 15px; }
.reading-row .sub { font-size: 14px; text-align: right; }
.reading .facts { margin-top: 10px; }
.welcome-group { margin-top: 16px; }

/* Add a site: a short conversation in a sheet (app.js addSite). The agent's words on the left, yours on the right in
   the primary fill; cards for what it found; one-tap answers under them. */
.chat { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 12px; min-height: 180px; }
.bubble { align-self: flex-start; max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface-2);
          overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--primary); color: var(--on-primary); }
.bubble.wait { color: var(--muted); }
.chat-card { align-self: stretch; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.chat-card .head { margin-bottom: 10px; }
.chat-card .head > div { flex: 1; min-width: 0; }
.chat-card .head b { display: block; font-weight: 650; }
.chat-card p { margin: 8px 0 0; font-size: 15px; }
.chat-card .fine { margin: 8px 0 0; }
.chat-card .bar { margin: 12px 0 4px; }
.chat-card .bar > span { background: var(--ink); }
.chat-card .label-row { align-items: center; }
.chat-card .sample { margin: 12px 0 0; }
.chat .row-buttons .pill { height: 44px; font-size: 15px; }
.chat > .row-buttons { margin-top: 0; }
.chat-card .steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; }
.steps .mark { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.steps .done .mark { background: var(--going-bg); color: var(--going); }
.steps .now .mark { border: 2px solid var(--pending); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .steps .now .mark { animation: none; } }
.status.pending { background: var(--pending-bg); color: var(--pending); }
.status.going { background: var(--going-bg); color: var(--going); }
.status.needs { background: var(--needs-bg); color: var(--needs); white-space: nowrap; }
.chat-form { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 10px 0 2px; background: var(--surface); }
.chat-form input { flex: 1; min-width: 0; height: 48px; border-radius: 999px; }
.chat-form .send { width: 48px; height: 48px; }

.sheet .choice { margin: 14px 0 4px; background: var(--surface-2); box-shadow: none; }
.chev { color: var(--faint); }
.logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
/* sites you follow: their own icon (served by us), or initials on a color from the name like an event tile */
.followed-logo:not(.site) { --h: 20; font-size: 15px; background: linear-gradient(140deg, hsl(var(--h) 72% 62%), hsl(calc(var(--h) + 40) 66% 44%)); }
.followed-logo img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; box-shadow: 0 0 0 1px var(--line); }
.add-tile { background: var(--surface-2); color: var(--ink); }
.looking { display: grid; justify-items: center; gap: 4px; padding: 24px 0 12px; text-align: center; }
.sheet .sample { margin: 10px 0 4px; background: var(--surface-2); box-shadow: none; }
.sheet .sample .row-item { min-height: 0; }
.sheet .sample .sub { font-size: 14px; }

/* ---------- sync: where reading your events stands, and its controls ---------- */
.status-line { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; padding: 4px 0; color: var(--muted);
               font-size: 15px; text-align: left; }
.status-line svg { color: var(--faint); flex: none; }
.status-line.warn, .sub.warn { color: var(--needs); }
.mini-spin { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink);
             animation: spin .9s linear infinite; }
.sync-tile { background: var(--surface-2); color: var(--ink); }
.sync-tile.spin svg { animation: spin 1s linear infinite; }
.sync-card { margin: 16px 0 4px; background: var(--surface-2); box-shadow: none; }
.sync-glyph { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
              background: var(--surface); color: var(--muted); }
.sync-glyph.ok { background: var(--going-bg); color: var(--going); }
.sync-glyph.bad { background: var(--needs-bg); color: var(--needs); }
.sync-glyph .spinner { width: 20px; height: 20px; margin: 0; border-width: 2.5px; }
.sync-glyph.none { display: none; }
.sync-glyph.stop { color: var(--faint); }
/* sync history, which the Sync sheet's status card opens: Sync › History › one sync */
.sheet-back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 10px -6px; padding: 4px 6px; color: var(--muted);
              font-size: 15px; font-weight: 600; }
.hist { background: var(--surface-2); box-shadow: none; }
.hist .row-item { padding: 11px 14px; }
.hist + .hist, .far + .hist, .fine + .hist { margin-top: 12px; }
.hist .sync-glyph { width: 32px; height: 32px; }
#sheet-body[data-sheet^="sync-"] .day { font-size: 15px; margin: 18px 4px 8px; }
.run-head { display: flex; gap: 14px; align-items: center; margin: 4px 0 6px; }
.run-head h2 { margin: 0; font-size: 20px; }
.run-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; margin: 14px 2px 0; }
.run-meta dt { color: var(--muted); }
.run-meta dd { margin: 0; font-variant-numeric: tabular-nums; }
.logo.sm { width: 30px; height: 30px; border-radius: 8px; }
.site-end { flex: none; }
.site-end.ok { color: var(--going); }
.site-end.bad { color: var(--needs); }
.site-end.off { color: var(--faint); }
.run-details { padding: 0 14px 12px 56px; }
.group > .run-details:only-child { padding: 12px 14px; }
.run-details summary { font-size: 13px; font-weight: 650; color: var(--muted); cursor: pointer; }
.raw { display: block; margin-top: 6px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface);
       border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.far { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: var(--needs-bg); color: var(--needs);
       border-radius: 14px; padding: 10px 12px; margin: 14px 0 0; }
.far svg { margin-top: 1px; }
.timeline { list-style: none; margin: 0; padding: 12px 14px; }
.timeline li { display: grid; grid-template-columns: auto 10px 1fr; gap: 10px; font-size: 13.5px; padding: 3px 0; align-items: start; }
.timeline .at { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-top: 6px; }
.timeline .dot.ok { background: var(--going); }
.timeline .dot.bad { background: var(--needs); }
.timeline .more { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
                  color: var(--muted); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.timeline .more.same { font-family: inherit; }
/* a radio drawn like iOS settings' choices: a ring, filled when chosen */
.radio { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; padding: 0;
         border-radius: 50%; border: 2px solid var(--faint); background: var(--surface); cursor: pointer; }
.radio:checked { border: 7px solid var(--ink); }
.radio:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label.row-item { cursor: pointer; }
/* the Week tab while a sync runs: a small spinning ring on the icon's corner */
.tabbar a i { position: relative; display: grid; }
.tabbar a.syncing i::after { content: ""; position: absolute; top: -3px; right: -6px; width: 9px; height: 9px; border-radius: 50%;
                             border: 2px solid var(--line); border-top-color: var(--accent); background: var(--surface);
                             animation: spin .9s linear infinite; }
.field { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 52px; margin: 0; font-weight: 500; }
.field span { width: 110px; flex: none; color: var(--ink); font-size: 15px; }
.field input { border: 0; border-radius: 0; padding: 0; height: 50px; background: transparent; text-align: right; color: var(--muted); }
.field input:focus { color: var(--ink); }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; z-index: 10; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%); display: flex; gap: 2px;
          padding: 5px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow);
          background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.tabbar a { width: min(72px, calc((100vw - 40px) / 4)); height: 52px; border-radius: 999px; display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted);
            text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tabbar a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.tabbar .side-brand { display: none; }
body[data-view="action"] .tabbar, body[data-view="connect"] .tabbar, body[data-view="freeweek"] .tabbar { display: none; }  /* full-screen views on a phone */

/* ---------- the cloud browser (connect, needs you) ---------- */
.browser { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column;
           padding: var(--safe-t) 0 var(--safe-b); max-width: none; }
.browser-bar { display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; gap: 8px; padding: 8px 12px;
               max-width: 900px; width: 100%; margin: 0 auto; }  /* both sides as wide as two buttons: the address stays centred */
.bar-end { display: flex; gap: 8px; justify-content: flex-end; }
.browser-bar .icon { box-shadow: none; background: var(--surface-2); }
.addr { text-align: center; min-width: 0; }
.addr > span { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; font-size: 15px; }
.addr small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner { margin: 0 12px 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); color: var(--muted); font-size: 14px;
          max-width: 876px; align-self: center; width: calc(100% - 24px); }
.banner.go { color: var(--ink); font-weight: 600; }
.stage { position: relative; flex: 1; min-height: 0; margin: 0 8px 8px; max-width: 900px; width: calc(100% - 16px); align-self: center; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 16px; background: #000; }
.stage-wait, .stage-done { position: absolute; inset: 0; border-radius: 16px; background: var(--surface); display: flex;
                           flex-direction: column; align-items: center; justify-content: center; text-align: center;
                           color: var(--muted); padding: 24px; }
.stage-done h2 { color: var(--ink); margin-top: 16px; }
.stage-done .primary, .stage-wait .primary { max-width: 320px; margin-top: 24px; }
#connect-meanwhile .primary { display: block; margin: 20px auto 4px; }  /* "Back to People" while connections are read */
.bigcheck { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--going-bg); color: var(--going); }
.bigcheck svg { width: 38px; height: 38px; }
.bigcheck.bad { background: var(--needs-bg); color: var(--needs); }
/* the agent's question while it signs you in: near the top, so a phone's keyboard doesn't cover it */
.stage-ask { position: absolute; inset: 0; border-radius: 16px; background: var(--surface); overflow: auto;
             display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 24px 24px; }
.stage-ask > :not(.ask-icon) { width: 100%; max-width: 360px; }
.stage-ask .sub { margin-bottom: 18px; }
.ask-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2);
            margin-bottom: 14px; }
.ask-error { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--needs-bg); color: var(--needs);
             font-size: 14px; font-weight: 600; }
.code-input { text-align: center; font-size: 26px !important; letter-spacing: .3em; font-variant-numeric: tabular-nums; }

/* ---------- RSVP progress ---------- */
.plan { list-style: none; margin: 22px 0 8px; padding: 18px 16px 0; background: var(--surface); border-radius: var(--radius);
        box-shadow: var(--shadow); }
.plan:empty { display: none; }  /* cleared before the first step comes in */
.plan li { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 0 0 22px; }
.plan li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--surface-2); }
.plan li.done:not(:last-child)::before { background: var(--ink); }
.dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.done > .dot { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.now > .dot { border-color: var(--ink); border-top-color: transparent; animation: spin 1s linear infinite; }
.needs-you > .dot { background: var(--needs); border-color: var(--needs); color: var(--bg); }
.fail > .dot { background: var(--danger); border-color: var(--danger); color: var(--on-danger); }
.plan b { display: block; font-weight: 600; line-height: 26px; }
.plan li:not(.done):not(.now):not(.needs-you):not(.fail) b { color: var(--muted); }
.plan small { display: block; color: var(--muted); font-size: 14px; }
.plan .pill { margin-top: 8px; }
.result { text-align: center; padding: 8px 0 4px; }
.result .bigcheck { margin: 0 auto 14px; }
.result .sub { margin-bottom: 4px; }
#act-steps { margin: 10px 0 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
#act-steps li { margin: 6px 0; }
#act-steps img { display: block; max-width: 100%; border-radius: 10px; margin-top: 6px; border: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
#act-fields label:not(.check) { display: block; font-weight: 600; margin: 14px 0 6px; }
/* what an action is waiting on: one card per question (asks.py) */
.card.ask .eyebrow { margin: 0 0 6px; color: var(--needs); }
.card.ask h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; }
.card.ask .fine { margin: 0 0 10px; }
.card.ask .points { margin: 0 0 10px; padding-left: 20px; font-size: 15px; line-height: 1.4; }
.card.ask .points li { margin: 4px 0; }
.card.ask a.link { display: inline-block; padding: 8px 0 12px; font-weight: 600; }
.card.ask select, .card.ask textarea, .card.ask input:not([type=checkbox]) { margin-bottom: 4px; }

/* ---------- sheet ---------- */
.sheet { border: 0; padding: 0; width: 100%; max-width: var(--col); max-height: 88dvh; margin: auto auto 0; overflow: auto;
         border-radius: 26px 26px 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.sheet { overscroll-behavior: contain; }  /* scrolling to the sheet's end doesn't carry on into the page under it */
.sheet[open] { animation: up .22s ease-out; }
/* What's under an open sheet steps back: blurred and dimmed where the browser can blur, dimmed harder where it can't,
   so the page doesn't compete with the sheet. It fades in with the sheet, and the page under it can't scroll. */
.sheet::backdrop { background: rgba(10, 10, 12, .56); animation: backdrop-in .22s ease-out; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sheet::backdrop { background: rgba(10, 10, 12, .34); -webkit-backdrop-filter: blur(10px) saturate(.9);
                     backdrop-filter: blur(10px) saturate(.9); }
}
@keyframes backdrop-in { from { opacity: 0; } }
/* The page under an open sheet, the agent's sheet or the RSVP browser (lockPage in app.js): pinned where it was, so a
   swipe on the sheet, or on the dimmed page around it, can't move it, an iPhone's Safari included. The page's own
   overscroll bounce is off too, and a desktop keeps the scrollbar's width as a gap so nothing shifts sideways. */
html[data-lock] { overflow: hidden; overscroll-behavior: none; }
html[data-lock] body { position: fixed; top: var(--lock-top, 0); left: 0; right: var(--lock-gap, 0); overflow: hidden; }
#sheet-body { padding: 0 20px calc(22px + var(--safe-b)); }
/* Every sheet's close (index.html): top right, staying in view as the sheet scrolls. Floated, so a title beside it
   wraps short of it rather than running under it. */
.sheet-close { position: sticky; top: 8px; z-index: 2; float: right; margin: 8px 8px 0 0; width: 36px; height: 36px;
               box-shadow: none; background: var(--surface-2); color: var(--muted); }
.sheet-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 16px; }
.sheet .head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sheet .head h2 { margin: 0 0 6px; }
.title-link { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px 0 -4px 4px; border-radius: 50%;
              vertical-align: middle; color: var(--accent); }  /* the title's own way out to the event's page */
.title-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sheet .m { font-size: 15px; margin-top: 6px; }
.sheet .summary { font-size: 15px; line-height: 1.45; margin: 14px 0 0; overflow-wrap: anywhere; }
.sheet .summary.fresh { animation: summary-in .3s ease-out; }  /* Claude's summary taking the rules one's place */
@keyframes summary-in { from { opacity: .3; } }
a.m { width: fit-content; max-width: 100%; color: var(--accent); text-decoration: none; border-radius: 6px; }  /* address → maps */
a.m:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.signin-host { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; font-weight: 600; }
.signin-form input { font-size: 17px; }  /* 16px or more, so iPhones don't zoom in on focus */
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw-show { position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface-2);
           font-size: 14px; font-weight: 600; color: var(--ink); }
/* the event sheet's Open on and Follow: small pills under what it is (app.js openEvent, followButton) */
.sheet .links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.sheet .links:empty { display: none; }
.sheet .links a, .sheet .links button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); text-decoration: none; font-size: 14px; font-weight: 600; }
/* The event sheet's action bar: its one action (and Not interested beside it) pinned to the sheet's bottom edge, so it
   shows however long the sheet gets. It carries the sheet's bottom padding; a hairline while more is under it. */
#sheet-body:has(> .sheet-bar) { padding-bottom: 0; }
.sheet-bar { position: sticky; bottom: 0; z-index: 1; display: flex; gap: 8px; margin: 20px -20px 0;
             padding: 12px 20px calc(12px + var(--safe-b)); background: var(--surface);
             border-top: 1px solid transparent; transition: border-color .15s; }
.sheet-bar.lifted { border-top-color: var(--line); }
.sheet-bar > * { margin: 0; height: 50px; }
.sheet-bar > .primary, .sheet-bar > .said, .sheet-bar > .fill, .sheet-bar > :only-child { flex: 1; min-width: 0; }
.sheet-bar > .quiet { width: auto; padding: 0 18px; }
/* on your own event, where you stand in its status color, beside a smaller Cancel RSVP */
.sheet-bar .said { display: flex; align-items: center; gap: 8px; padding-left: 4px; font-weight: 650; }
.sheet-bar .said.st-going { color: var(--going); }
.sheet-bar .said.st-pending { color: var(--pending); }
.sheet-bar .said.st-wait { color: var(--wait); }
.sheet-bar .said.st-plain { color: var(--ink); }
.sheet-bar .said.st-needs { color: var(--needs); }
/* rsvp_all: "Listed on 3 sites" under the description opens each site, ticked, to RSVP on all of them (app.js rsvpAll) */
.sheet .ls { margin: 12px 0 0; }
.ls-line { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; background: none; border: 0; color: var(--muted);
           font-size: 13px; font-weight: 500; }
.ls-line svg { transition: transform .15s; }
.ls.open .ls-line svg { transform: rotate(90deg); }
.ls-line:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ls-panel { margin-top: 8px; background: var(--surface-2); border-radius: 16px; overflow: hidden; }
.ls-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.ls-row.pick { cursor: pointer; }
.ls-row + .ls-row { border-top: 1px solid var(--line); }
.ls-row .si { width: 30px; height: 30px; border-radius: 8px; background: #fff; overflow: hidden; flex: none; display: grid; place-items: center; }
.ls-row .si img { width: 100%; height: 100%; object-fit: contain; }
.ls-row .who { flex: 1; min-width: 0; line-height: 1.25; }
.ls-row .who b { display: block; font-size: 15px; font-weight: 650; }
.ls-row .who span { font-size: 12.5px; color: var(--muted); }
.ls-row .link { padding: 0; color: var(--needs); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; font-size: 12.5px; }
.ls-check { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 50%;
            border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.ls-check:checked { background: var(--ink); border-color: var(--ink); }
.ls-check:checked::after { content: ""; width: 10px; height: 5px; margin-top: -2px; border: solid var(--surface); border-width: 0 0 2.5px 2.5px;
                           transform: rotate(-45deg); }
.ls-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ls-foot { border-top: 1px solid var(--line); padding: 10px 14px 12px; }
.ls-foot.fine { margin: 0; font-size: 12.5px; }
.ls-foot .pill { width: 100%; }
.sheet .on-note { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; }
.on-note img { width: 16px; height: 16px; border-radius: 4px; background: #fff; flex: none; }
/* cancelling your RSVP (app.js drawMine, cancelSheet, manualCancelSheet): how it went, just above the bar */
.cancel-note:empty { display: none; }
.cancel-note .fine { margin: 14px 0 0; }
.cancel-failed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; color: var(--needs); font-weight: 600; }
.cancel-failed svg { flex: none; }
.cancel-failed .link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.sheet .cancel-what { margin: 12px 0 4px; }
.card.cancel-paid { margin: 14px 0 4px; padding: 14px 16px; }
.card.cancel-paid h3 { margin: 0 0 4px; font-size: 15px; }
.card.cancel-paid .sub { margin: 0; color: var(--ink); }
.cancel-card .cancel-q { display: block; padding: 12px 0 2px; font-size: 16px; }
.cancel-card .fine.cancel-paid { margin: 8px 0 4px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 700px) {
  .sheet { margin: auto; border-radius: 26px; }
}

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 50; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: max-content;
         max-width: calc(100% - 32px); margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg);
         font-size: 14px; box-shadow: var(--shadow); }
.toast.tap { cursor: pointer; }
/* a site you're connecting needs you (or couldn't connect): a card that drops in at the top of any screen, like a
   notification, and stays until you act on it or close it */
.ready-card { position: fixed; z-index: 40; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%);
              width: min(520px, calc(100% - 24px)); padding: 12px 8px 12px 12px;
              border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
              animation: drop .22s ease-out;
              /* phone: the button under the words, so a longer reason still reads across; wider: all on one line */
              display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo text close" ". go ."; gap: 10px 12px;
              align-items: start; }
@media (min-width: 700px) {
  .ready-card { grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo text go close"; align-items: center; }
}
#ready-logo { grid-area: logo; }
#ready-go { grid-area: go; justify-self: start; }
.ready-card .icon { grid-area: close; }
.ready-text { grid-area: text; min-width: 0; display: flex; flex-direction: column; align-self: center; }
.ready-text b { font-weight: 650; line-height: 1.25; }
.ready-text .sub { font-size: 14px; line-height: 1.3; }
.ready-card .icon { width: 32px; height: 32px; flex: none; box-shadow: none; background: none; color: var(--muted); }
@keyframes drop { from { transform: translate(-50%, -16px); opacity: 0; } }

/* what's waiting on you (an RSVP question, a check only you can do), at the top of every screen but the ones that list
   it: in the page, not over it, since it can wait days */
.needs-bar { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 4px 0 12px;
             padding: 10px 14px 10px 12px; border-radius: var(--radius); background: var(--needs-bg); color: var(--needs);
             text-align: left; }
.needs-bar .who { flex: 1; min-width: 0; }
.needs-bar b { display: block; font-weight: 650; line-height: 1.3; }
.needs-bar .sub { display: block; font-size: 14px; line-height: 1.3; color: var(--ink); opacity: .75;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- wide screens: a sidebar instead of the tab bar, a wider column ---------- */
@media (hover: hover) {
  .ev:hover .t, a.row-item:hover span:first-child, .needs-bar:hover b { text-decoration: underline; text-underline-offset: 3px; }
  .row-item:is(button):hover, .chip:not(.on):hover { background: var(--surface-2); }
  .chip.on:hover { background: color-mix(in srgb, var(--primary) 86%, var(--surface)); }  /* a chosen chip stays chosen, and readable, under the pointer */
  .hist .row-item:is(button):hover, .sync-card .row-item:is(button):hover { background: var(--surface-2); }
  .tabbar a:hover { color: var(--ink); }
  a.m:hover span { text-decoration: underline; text-underline-offset: 3px; }
  .primary:hover, .pill:hover, .send:hover { filter: brightness(1.15); }
  .icon:hover, .composer-close:hover, .composer-reset:hover { background: var(--surface-2); }
  .composer-close:hover, .composer-reset:hover { color: var(--ink); }
}
/* the needs_banner flag: what needs you, a frosted capsule pinned to the top as you scroll, like the tab bar and the
   ask bar (app.js, drawNeedsPin). It folds away with its grid row when the last one is done. */
.nb-wrap { position: sticky; top: calc(8px + var(--safe-t)); z-index: 8; display: grid; grid-template-rows: 1fr; margin: 4px -4px 8px;
           transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, margin .4s ease; }
.nb-wrap[hidden] { display: none; }
.nb-wrap.gone { grid-template-rows: 0fr; opacity: 0; margin-top: 0; margin-bottom: 0; }
.nb-clip { min-height: 0; overflow: hidden; padding: 2px 4px 14px; margin: -2px -4px -14px; }
.nb { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 60px; padding: 9px 9px 9px 10px; border-radius: 22px;
      border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; font: inherit; color: var(--ink); cursor: pointer;
      background: color-mix(in srgb, var(--surface) 88%, transparent);
      -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.nb.in { animation: nbIn .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes nbIn { from { transform: translateY(-10px); opacity: 0; } }
.nb.calm { min-height: 52px; cursor: default; }
.nb-lead { position: relative; flex: none; width: 40px; height: 40px; }
.nb-lead > .nb-site { display: block; width: 40px; height: 40px; border-radius: 12px; }
.nb-stack { position: absolute; inset: 0; }
.nb-stack > * { position: absolute; width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 0 0 2px var(--surface); }
.nb-stack > :nth-child(1) { left: 0; top: 0; }
.nb-stack > :nth-child(2) { right: 0; bottom: 0; }
.nb-glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--needs-bg); color: var(--needs); }
.nb-glyph.sm, .nb-site.sm { width: 30px; height: 30px; border-radius: 9px; }
.nb-glyph.done { background: var(--going-bg); color: var(--going); }
.nb-lead .nb-glyph.work { background: var(--surface-2); }  /* the agent is busy: a spinner, no dot */
.nb.calm.busy { cursor: pointer; }
.nb-row .nb-site.sm, .nb-row .nb-glyph.sm { flex: none; display: grid; place-items: center; }
.nb-dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--needs);
          box-shadow: 0 0 0 2.5px var(--surface); }
.nb-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--needs); animation: nbBreathe 2.4s ease-out infinite; }
@keyframes nbBreathe { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.nb-n { position: absolute; top: -6px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
        background: var(--needs); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center;
        box-shadow: 0 0 0 2.5px var(--surface); }
.nb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nb-text b { font-weight: 650; font-size: 15.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-text span { font-size: 13.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb .pill { flex: none; display: inline-flex; align-items: center; }
@media (prefers-color-scheme: dark) { .nb-n { color: #1a0d04; } }
@media (prefers-reduced-motion: reduce) { .nb.in, .nb-dot::after { animation: none; } .nb-wrap { transition: none; } }
@media (hover: hover) { .nb:not(.calm):hover b, .nb.busy:hover b { text-decoration: underline; text-underline-offset: 3px; } }

@media (min-width: 960px) {
  :root { --side: 240px; --col: 720px; }
  main { max-width: none; margin: 0 0 0 var(--side); padding: 32px 48px 64px; }
  main > .view:not(.browser) { max-width: var(--col); margin: 0 auto; }
  main > .needs-bar { max-width: var(--col); margin: 0 auto 16px; }
  main > .nb-wrap { max-width: var(--col); margin: 0 auto 16px; top: 16px; }
  main > .nb-wrap.gone { margin-bottom: 0; }
  body[data-view="signin"] main { margin-left: 0; }
  h1 { font-size: 36px; }

  .tabbar { inset: 0 auto 0 0; transform: none; width: var(--side); flex-direction: column; align-items: stretch; gap: 4px;
            padding: 22px 14px; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none;
            background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body[data-view="action"] .tabbar, body[data-view="freeweek"] .tabbar { display: flex; }
  .tabbar a { width: auto; height: 44px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 14px;
              border-radius: 12px; font-size: 15px; }
  .tabbar .side-brand { display: flex; height: auto; padding: 0 10px 22px; color: var(--ink); font-size: 17px; font-weight: 700;
                        letter-spacing: -.01em; background: none !important; gap: 9px; white-space: nowrap; }

  /* Discover: the composer sits under the column, with no tab bar below it */
  .composer { left: var(--side); bottom: 24px; max-width: calc(var(--col) + 96px); padding: 0 48px; }
  #discover { padding-bottom: 110px; }
  .ready-card { left: calc(50% + var(--side) / 2); top: 20px; }  /* over the column, not the sidebar */

  /* sign in: the pitch beside the form */
  .signin { display: grid; grid-template-columns: 1.15fr 1fr; align-content: center; column-gap: 72px; max-width: 980px;
            margin: 0 auto; padding: 40px 0; min-height: 100dvh; }
  .signin .hero { grid-row: 1 / span 4; align-self: center; margin: 0; }
  .signin h1 { font-size: 48px; }
  .signin > :not(.hero) { grid-column: 2; align-self: center; background: var(--surface); border-radius: 24px; padding: 28px;
                          box-shadow: var(--shadow); }

  .sheet { max-width: 520px; }
  .card { padding: 18px 20px; }
}

/* ---------- people: who you know, and where they're going ---------- */
.av { --h: 20; position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
      font-weight: 700; color: hsl(var(--h) 45% 24%); background: hsl(var(--h) 60% 88%); }
/* a photo (photos.py) covers the initials; they're still there under it, for while it loads and if it fails */
.av > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av.photo { color: transparent; }
.av.sm { width: 24px; height: 24px; font-size: 10px; box-shadow: 0 0 0 2px var(--surface); }
.av.big { width: 64px; height: 64px; font-size: 22px; }
.ppl { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 14px; color: var(--ink); }
.ppl .faces { display: flex; flex: none; }
.ppl .faces .av + .av { margin-left: -7px; }
.ppl b { font-weight: 650; }
#people .ev .av.sm, #days .av.sm, #invites .av.sm, .list .av.sm { box-shadow: 0 0 0 2px var(--bg); }
.sheet .section { margin: 20px 0 8px; }
.sheet .group.flat { background: var(--surface-2); box-shadow: none; }
.person-row .who .sub { font-size: 14px; }
.sheet .head.person { margin-bottom: 4px; }
.radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--faint); display: grid; place-items: center; }
[aria-checked="true"] > .radio { border-color: var(--ink); }
[aria-checked="true"] > .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.row-item.pick { justify-content: flex-start; text-align: left; }
.invite-link { margin-top: 12px; }
.card.same { background: var(--needs-bg); box-shadow: none; }
.card.same .eyebrow { margin: 0 0 6px; color: var(--needs); }
.card.same p { margin: 0; font-size: 15px; }
.card.same .sub { margin-top: 2px; font-size: 14px; }
.card.same .pill.soft { background: var(--surface); }
.card.same .row-buttons .pill { min-width: 0; padding: 0 10px; }
.card.same .named { white-space: nowrap; }
.logo.src { background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 700; }
.logo.src.linkedin { background: #0a66c2; color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
/* the long version of a sheet, behind a link (openSocial) */
.more { margin: 4px 0 14px; }
.more > summary { list-style: none; cursor: pointer; display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { margin-bottom: 4px; }
.steps { margin: 12px 0 4px; padding-left: 22px; font-size: 15px; }
.steps li + li { margin-top: 6px; }
/* a person's profiles as small brand icons beside their name */
.profile-icons { display: inline-flex; gap: 4px; margin: 0 2px 0 6px; vertical-align: middle; }
.profile-icons:empty { display: none; }
.profile-icon { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; overflow: hidden; flex: none;
                color: #fff; font: 800 10px/1 system-ui, sans-serif; text-decoration: none; background: var(--surface-2); }
.profile-icon img { width: 100%; height: 100%; object-fit: cover; }
.profile-icon svg { width: 62%; height: 62%; }
.profile-icon.linkedin { background: #0a66c2; }
.profile-icon.x { background: #000; }
.profile-icon.instagram { background: linear-gradient(45deg, #f9a825, #e91e63 55%, #7b1fa2); }
.profile-icons.big { display: flex; gap: 8px; margin: 8px 0 0; }
.profile-icons.big .profile-icon { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
.title-line { display: flex; align-items: center; flex-wrap: wrap; }
.textlink { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; flex: none; }
/* ---------- met: which event you met someone at (its badges and the wheel; met.py) ---------- */
.av.listed { position: relative; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--going); }
.av:has(> .tick) { position: relative; }  /* the badge sits on its own face, in a sheet too */
.av .tick { position: absolute; right: -4px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
            background: var(--going); color: var(--bg); box-shadow: 0 0 0 2px var(--bg); }
.sheet .met-at { margin: 2px 0 0; font-weight: 600; }
.met-why { list-style: none; margin: 14px 0 6px; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.met-why li { display: flex; gap: 10px; padding: 10px 12px; font-size: 14px; }
.met-why li + li { border-top: 1px solid var(--line); }
.met-why .mk { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.met-why .sub { display: block; font-size: 13px; }
.av .tick.ask { background: var(--wait-bg); color: var(--wait); font-size: 11px; font-weight: 800; }
/* the wheel: the events someone could be from; the one in the middle band is the one you mean */
.met-wheel-wrap { position: relative; margin: 12px 0 0; border-radius: 14px; background: var(--surface-2); }
.met-wheel-wrap .band { position: absolute; left: 6px; right: 6px; top: 60px; height: 60px; border-radius: 10px; background: var(--surface);
                        box-shadow: 0 1px 3px rgba(0, 0, 0, .12); pointer-events: none; }
.met-wheel { position: relative; height: 180px; padding: 60px 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory;
             scrollbar-width: none; outline: none;
             -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.met-wheel::-webkit-scrollbar { display: none; }
.met-wheel:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 14px; }
.met-wheel .opt { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 60px; padding: 0 18px; text-align: left;
                  scroll-snap-align: center; scroll-snap-stop: always; opacity: .45; transition: opacity .15s; }
.met-wheel .opt[aria-selected="true"] { opacity: 1; }
.met-wheel .opt b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.met-wheel .opt .sub { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .met-hint { margin: 6px 4px 0; text-align: center; }

@media (prefers-color-scheme: dark) {
  .av { color: hsl(var(--h) 60% 88%); background: hsl(var(--h) 30% 26%); }
}

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

/* ---------- People, one list (relationships.py): who you've met lately, Everyone, one person's page ---------- */
.row-item .chev { flex: none; color: var(--muted); display: grid; }
.tag.teal { background: var(--invited-bg); color: var(--invited); font-size: 12px; padding: 3px 9px; }
.sheet .chips.wrap .chip { height: 44px; padding: 0 16px; font-weight: 650; }
.sheet .chips.wrap { padding: 8px 0 0; }
.faces { display: flex; gap: 10px; }
.note { padding: 12px 16px; }
.note p { margin: 2px 0 0; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.note-top { display: flex; align-items: center; justify-content: space-between; }
.note-top .fine { margin: 0; }
#people .top .tools { display: flex; gap: 8px; }
.icon.me { padding: 0; overflow: hidden; }
.icon.me .av { width: 40px; height: 40px; }
.search-bar { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 16px; margin: 4px 0 2px; border-radius: 999px;
              background: var(--surface-2); color: var(--muted); font-size: 15px; text-decoration: none; }
.search-input { height: 46px; border: 0; border-radius: 999px; background: var(--surface-2); padding: 0 18px; font-size: 16px; margin: 4px 0 10px; }
.search-input:focus { box-shadow: 0 0 0 2px var(--ink); }
.back-link { display: inline-flex; align-items: center; gap: 4px; height: 40px; margin: 4px 0 4px -6px; padding: 0 10px 0 2px;
             color: var(--muted); font-size: 15px; font-weight: 600; border-radius: 999px; }
.back-link:focus-visible, .search-bar:focus-visible, .met-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 22px 4px 8px; }
.ev-head b { font-size: 15px; font-weight: 650; min-width: 0; }
.ev-head span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.met-row { min-height: 64px; padding: 10px 14px; color: inherit; }
.met-row .av { width: 44px; height: 44px; font-size: 15px; }
.met-row b { display: flex; align-items: center; gap: 6px; }
.met-row .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.met-row .sub.said { color: var(--ink); }
.met-row .sub.ask { color: var(--muted); font-style: italic; }
@media (hover: hover) {  /* a person's row: the name underlines, not their initials */
  a.met-row:hover span:first-child { text-decoration: none; }
  a.met-row:hover b { text-decoration: underline; text-underline-offset: 3px; }
  .search-bar:hover { color: var(--ink); }
}
.met-row .dot { flex: none; width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--needs); }
.letter { position: sticky; top: 0; z-index: 1; margin: 14px 4px 6px; padding: 2px 0; font-size: 13px; font-weight: 650; color: var(--muted); background: var(--bg); }
#everyone-chips { padding-bottom: 6px; }
#everyone-chips .chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.empty-card { color: var(--muted); font-size: 14px; }
/* a follow-up that's due: teal, at the top of the list and on the person's page */
.follow-card { background: var(--invited-bg); box-shadow: none; }
.follow-card .eyebrow { margin: 0 0 8px; color: var(--invited); text-transform: none; letter-spacing: 0; }
.follow-card .said { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.follow-card .pill.soft { background: var(--surface); }
.follow-card .chips { padding-bottom: 0; }
.follow-card .chip { background: var(--surface); border-color: transparent; }
.follow-card .textlink { margin-top: 10px; min-height: 32px; }
.fhead { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.fhead b { display: block; font-weight: 650; }
.fhead .sub { display: block; font-size: 14px; }
/* Most on your mind (the "bubbles" flag; renderTop): who you've written the most about, as drifting bubbles */
#people-top { margin: 18px 0 4px; }
.top-head { margin: 0 4px 6px; }
.top-head b { font-size: 15px; font-weight: 650; }
.top-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 4px; font-size: 12.5px; color: var(--muted); }
.top-legend span { display: inline-flex; align-items: center; gap: 6px; }
.top-legend i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 750;
                font-style: normal; color: var(--bg); background: var(--primary); }
.top-legend i.follow, .bub .ct.follow { background: var(--invited); }
.top-legend i.goal, .bub .ct.goal { background: var(--wait); }
.top-field { position: relative; height: 300px; margin: 0 -6px; overflow: hidden; }
.bub { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; padding: 0; display: block;
       box-shadow: 0 6px 18px rgba(17, 18, 20, .12), 0 0 0 3px var(--bg); }
.bub > .av { width: 100%; height: 100%; font-size: inherit; }
.bub[aria-pressed="true"] { box-shadow: 0 6px 18px rgba(17, 18, 20, .12), 0 0 0 3px var(--bg), 0 0 0 5.5px var(--ink); }
.bub:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.bub.fresh::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--invited); opacity: .5;
                     animation: bub-halo 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes bub-halo { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.05); opacity: .15; } }
.bub .ct { position: absolute; right: -3px; top: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid;
           place-items: center; font-size: 11.5px; font-weight: 750; background: var(--primary); color: var(--on-primary);
           box-shadow: 0 0 0 2px var(--bg); font-variant-numeric: tabular-nums; }
.bub .ct.follow, .bub .ct.goal { padding: 0; color: var(--bg); }
.bub .nm { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px;
           font-weight: 600; color: var(--muted); }
.bub.fresh .nm { top: calc(100% + 10px); }
.bub.sm .ct { right: -9px; top: -8px; min-width: 20px; height: 20px; padding: 0 5px; font-size: 11px; }
.bub.sm .ct.follow, .bub.sm .ct.goal { padding: 0; }
.top-pick { margin: 4px 0 0; padding: 14px 16px; }
.top-pick-row { display: flex; gap: 12px; align-items: flex-start; }
.top-pick-row > .av { width: 44px; height: 44px; font-size: 15px; }
.top-pick-row .who { flex: 1; min-width: 0; }
.top-pick-row b { display: block; font-weight: 650; }
.top-pick-row .sub { display: block; font-size: 14px; color: var(--muted); }
.top-pick-row q { display: block; margin-top: 8px; font-size: 15px; overflow-wrap: anywhere; }
.top-why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.top-why span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
                font-weight: 650; background: var(--surface-2); color: var(--ink); }
.top-why .follow { background: var(--invited-bg); color: var(--invited); }
.top-why .goal { background: var(--wait-bg); color: var(--wait); }
.top-btns { display: flex; gap: 8px; margin-top: 10px; }
.top-btns .pill { display: inline-flex; align-items: center; text-decoration: none; height: 34px; font-size: 13.5px; }
@media (min-width: 960px) { .top-field { height: 340px; margin: 0; } }
@media (prefers-color-scheme: dark) { .bub:not([aria-pressed="true"]) { box-shadow: 0 6px 18px rgba(0, 0, 0, .4), 0 0 0 3px var(--bg); } }
/* one person */
.person-head { display: flex; gap: 16px; align-items: center; margin: 4px 0 12px; }
.person-head > div { min-width: 0; }
.person-head h2 { font-size: 24px; line-height: 1.15; margin: 0 0 2px; }
.person-head .sub { font-size: 14px; }
.met-line .textlink { margin-left: 2px; font-size: 13px; }
.av.huge { width: 76px; height: 76px; font-size: 26px; }
.say label, .draft-label { display: block; font-weight: 650; margin-bottom: 8px; }
.say textarea, .sheet #follow-draft { background: var(--bg); font-size: 16px; resize: none; }
.say .chips { padding: 10px 0 0; }
.say .chip { height: 34px; font-size: 13px; }
.say .primary:disabled { opacity: .6; }
.fact { display: block; padding: 12px 16px; text-align: left; }
.fact .label { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.fact .value { display: block; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.fact .src { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.fact .src .textlink { font-size: 12px; }
.row-item.fact { display: flex; }
.row-item.fact.card { margin: 10px 0 0; }
ul.why { list-style: none; margin: 12px 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
ul.why li { padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; }
ul.why li + li { border-top: 1px solid var(--line); }
ul.why .k { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.sheet .draft-label { margin: 16px 0 8px; }

/* which person this is: their LinkedIn profile, by name */
.see-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.see-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.see-link svg { flex: none; color: var(--muted); }
.see-links .profile-icons { margin: 0; }
.see-link { padding-left: 8px; }
.see-link .profile-icon { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }

/* ---------- the agent you talk to (agent.py): its thread, cards and text box ---------- */
/* Which tabs show: with the agent on, Agent and You; without it, Sites and Profile (app.js setAgentOn). */
body:not([data-home="agent"]) .tab-agent, body[data-home="agent"] .tab-classic { display: none; }
#agent { padding-bottom: 96px; }
.agent-head { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
.agent-head h1 { flex: 1; font-size: 20px; margin: 0; letter-spacing: -.01em; }
.agent-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.thread, #agent-first { display: flex; flex-direction: column; gap: 12px; }
#agent-first:not(:empty) { margin-bottom: 12px; }
#agent-first .fine, #agent-first .chips { margin: 0; padding: 0; }
.agent-say { margin: 0; font-size: 16px; line-height: 1.45; max-width: 34em; overflow-wrap: anywhere; }
.agent-say.thinking { color: var(--muted); }
.agent-say.thinking .working-word { display: inline-block; animation: word-in .3s ease-out; }
@keyframes word-in { from { opacity: 0; transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .agent-say.thinking .working-word { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.me-say { margin: 0; align-self: flex-end; max-width: 82%; background: var(--surface-2); border-radius: 18px; padding: 10px 14px;
          font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
/* where a new conversation starts (agent.conversation_starts): a quiet line with the day and time */
.agent-break { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; color: var(--muted); font-size: 13px; }
.agent-break::before, .agent-break::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.acard { margin: 0; padding: 4px 16px 12px; }
.acard .alink { display: block; width: 100%; text-align: left; color: inherit; text-decoration: none; }
.arow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; }
.acard > :not(:first-child) .arow, .acard > .arow:not(:first-child) { border-top: 1px solid var(--line); }
.tile.small { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.arow .t { font-weight: 650; font-size: 16px; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.arow .s { font-size: 14px; color: var(--muted); margin-top: 2px; }
.status.plain { background: var(--surface-2); color: var(--ink); }
.status.wait { background: var(--wait-bg); color: var(--wait); }
.status.host { background: var(--host-bg); color: var(--host); }
.status.invited { background: var(--invited-bg); color: var(--invited); }
.acard .primary { margin-top: 8px; }
.acard .quiet { margin-top: 4px; }
.sent { border-top: 1px solid var(--line); padding: 10px 0 2px; font-size: 14px; }
.sent summary { font-weight: 600; cursor: pointer; min-height: 28px; }
.sent .qa { padding: 8px 0 0; }
.sent .q { color: var(--muted); font-size: 13px; }
.sent .a { font-size: 15px; overflow-wrap: anywhere; }
#agent-asks .card.ask { margin: 12px 0 0; }
#agent-chips { margin-top: 12px; }
/* feedback for the team (draft_feedback): the draft with its button, then a quiet receipt once sent */
.afeedback-draft { padding-top: 12px; }
.afeedback-draft .sub { color: var(--muted); font-size: 13px; }
.afeedback-draft p { margin: 6px 0 4px; font-size: 15px; overflow-wrap: anywhere; }
.afeedback { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface);
             border: 1px solid var(--line); font-size: 14px; }
.afeedback b { font-weight: 650; }
.afeedback .s { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.afeedback-dot { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--going-bg); color: var(--going); }
.agent-composer { position: fixed; left: 0; right: 0; bottom: calc(12px + var(--safe-b)); z-index: 5; max-width: var(--col);
                  margin: 0 auto; padding: 0 16px; }
.agent-open { position: fixed; z-index: 10; right: 12px; bottom: calc(14px + var(--safe-b)); width: 56px; height: 56px; border-radius: 50%;
              display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.row-item.rule { flex-wrap: wrap; }
.row-item.rule .seg { margin: 0; }
@media not all and (min-width: 960px) {
  /* a phone: the text box or the tab bar, never both; the round button beside each swaps to the other */
  body[data-view="agent"]:not([data-compose="open"]) .agent-composer { display: none; }
  body[data-view="agent"][data-compose="open"] .tabbar, body[data-compose="open"] .agent-open { display: none; }
  body[data-view="agent"] .tabbar { left: 12px; transform: none; }
  body[data-view="agent"] .tabbar a { width: calc((100vw - 24px - 12px - 56px - 8px) / 4); }
  body:not([data-view="agent"]) .agent-open { display: none; }
}
@media (min-width: 960px) {
  /* a wide screen has room for both: the text box sits under the column, beside the sidebar */
  .agent-composer { left: var(--side); bottom: 24px; max-width: calc(var(--col) + 96px); padding: 0 48px; }
  .agent-open, #agent-nav { display: none; }
  #agent { padding-bottom: 110px; }
}

/* My week: RSVPs waiting on an answer from you */
#needs:not(:empty) { margin-bottom: 16px; }
#needs .needs-title { color: var(--needs); }
#recent:not(:empty) { margin-bottom: 16px; }
#recent .who b, #sheet-body .who b, #freeweek-body .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* the agent's site cards: a site it offers to follow, and how a look at one is going */
.site-card { padding-top: 14px; }
.site-card .head { display: flex; align-items: center; gap: 12px; }
.site-card .head > div { flex: 1; min-width: 0; }
.site-card .head b { display: block; font-weight: 650; }
.site-card p { margin: 10px 0 0; font-size: 15px; }
.site-card .steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-card .sample { margin: 12px 0 0; }
.site-card .group.plain { margin: 0; box-shadow: none; background: none; }
.site-card .group.plain .row-item { padding-left: 0; padding-right: 0; }

/* Events: what needs you above For you; the Agenda chip's sections, each folding under its heading */
#events-top .section:first-child { margin-top: 8px; }
.plans-none { margin: 4px 4px 12px; }
.chip .count:empty { display: none; }
.count.new { background: var(--pending-bg); color: var(--pending); font-weight: 600; }
.plan-fold > summary { margin: 14px 4px 8px; cursor: pointer; }
.plan-fold[open] > summary { margin-bottom: 8px; }
.plan-fold > summary .chev { color: var(--muted); }
#clashes:not(:empty) { margin: 14px 0 0; }

/* ---------- this device: the app on the home screen, notifications on it (app.js, drawDevice) ---------- */
.device-slot:empty { display: none; }
.device-card { display: flex; flex-direction: column; gap: 14px; }
.device-card .device-head { display: flex; gap: 12px; align-items: flex-start; }
.device-card .device-head h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; font-weight: 700; }
.device-card .device-head .sub { line-height: 1.45; }
.device-mark { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
               background: var(--surface-2); color: var(--ink); }
img.device-mark { border-radius: 0; background: none; }
.device-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.device-acts .pill { height: 44px; padding: 0 20px; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.device-acts .later { height: 44px; padding: 0 14px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.device-card .fine { margin: 0; }
/* the smaller one, when the agent needs you and this device can't be told */
.device-card.nudge { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.device-card.nudge .device-mark { width: 36px; height: 36px; }
.device-card.nudge .device-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.device-card.nudge .device-acts .pill { height: 36px; padding: 0 16px; font-size: 14px; }
.device-card.nudge .device-acts .later { height: 36px; padding: 0 10px; font-size: 14px; }
.device-card.nudge b, .device-card.done b { display: block; font-weight: 650; line-height: 1.3; }
.device-card.nudge .sub, .device-card.done .sub { display: block; font-size: 14px; line-height: 1.45; }
/* "Notifications are on for this phone" */
.device-card.done { flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; }
.device-card.done .device-mark { width: 32px; height: 32px; background: var(--going-bg); color: var(--going); }
/* the steps sheet: Share, Add to Home Screen, open it */
.device-steps { list-style: none; margin: 4px 0 0; padding: 0; }
.device-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.device-steps li + li { border-top: 1px solid var(--line); }
.device-steps .num { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
                     background: var(--surface-2); color: var(--ink); font-size: 14px; font-weight: 700; }
.device-steps .who { flex: 1; min-width: 0; }
#sheet-body .device-steps b { display: block; font-weight: 650; line-height: 1.3; white-space: normal; overflow: visible; }
.device-steps .sub { font-size: 14px; }
.device-steps svg, .device-steps img { flex: none; }
/* the code that signs in the iPhone's Home Screen app (auth.app_code): shown in Safari's steps, typed in the app */
.app-code-box { margin: 4px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--surface-2);
                display: flex; flex-direction: column; gap: 4px; }
.app-code-box .sub, .app-code-box .fine { margin: 0; color: var(--ink); }  /* muted on surface-2 is too faint to read */
.app-code-box .sub { font-size: 14px; font-weight: 600; }
.app-code { margin: 0; font: 700 28px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em;
            -webkit-user-select: all; user-select: all; }
.app-code.off { font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--danger); }
#app-code { letter-spacing: .2em; padding-left: calc(16px + .2em); text-transform: uppercase; }

/* the sign-in screen's few more things it does (index.html) */
.signin-feats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.signin-feats li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.35; color: var(--ink); }
.signin-feats li svg { flex: none; color: var(--muted); }
/* a tip on Events (app.js, drawTip): the small device card's shape */
.tip-card .device-mark { color: var(--ink); }

/* ---------- where you're headed (the goals flag, goals.py) ---------- */
#goals h1 { margin-top: 4px; }
#goals .section { margin-top: 22px; }
.goals-lab { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.goals-count { font-size: 13px; color: var(--muted); margin-right: 4px; }
.goals-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.goal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .15s; }
.goal.on { border-color: var(--ink); }
.goal > button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; text-align: left; }
.goal .gt { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.goal.on .gt { background: var(--primary); color: var(--on-primary); }
.goal b { display: block; font-weight: 650; }
.goal .s { display: block; color: var(--muted); font-size: 14px; line-height: 1.3; }
.goal .check { margin-left: auto; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--faint); flex: none; display: grid; place-items: center; }
.goal.on .check { background: var(--ink); border-color: var(--ink); color: var(--on-primary); }
.goal .check svg { visibility: hidden; }
.goal.on .check svg { visibility: visible; }
.goal-more { padding: 0 14px 14px; }
.goal-more .q { font-size: 14px; font-weight: 600; margin: 2px 0 8px; }
.goal-more .chips { padding-bottom: 0; }
.goals-other { display: flex; align-items: center; gap: 10px; height: 52px; margin-top: 10px; padding: 0 16px; border-radius: var(--radius); border: 1px dashed var(--faint); color: var(--muted); }
.goals-other input { border: 0; background: transparent; outline: none; width: 100%; height: 48px; padding: 0; font-size: 15px; box-shadow: none; }
/* the goal card above For you */
.goal-card .gc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.goal-card .gc-head .k { font-size: 13px; font-weight: 650; color: var(--muted); }
.goal-card .gc-head button { font-size: 14px; font-weight: 600; }
.goal-card .gc-row + .gc-row { margin-top: 12px; }
.goal-card .gc-name { display: flex; align-items: center; gap: 6px; margin: 6px 0 7px; font-size: 15px; }
.goal-card .gc-name b { font-weight: 650; }
.goal-card .gc-name small { color: var(--muted); font-size: 13px; }
.goal-card .meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.goal-card .meter span { display: block; height: 100%; border-radius: 4px; background: var(--ink); transition: width .4s ease; }
.goal-card .prog { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin: 5px 0 0; }
.goal-card .next { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.goal-card .next b { font-weight: 650; }
.goal-card .hidden-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.gtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gtag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }

/* ---------- Plans (the flow2 flag, docs/FLOW2.md): everything that's yours, in one list ---------- */
body:not([data-flow2]) .tab-flow2 { display: none; }
@media not all and (min-width: 960px) {  /* five tabs on a phone */
  body[data-flow2] .tabbar a { width: min(66px, calc((100vw - 34px) / 5)); }
}
.tab-count { position: absolute; top: -5px; left: calc(100% - 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
             background: var(--needs); color: #fff; font-size: 10.5px; font-weight: 750; line-height: 17px; text-align: center;
             font-style: normal; box-shadow: 0 0 0 2px var(--surface); }
@media (prefers-color-scheme: dark) { .tab-count { color: #111214; } }
@media (min-width: 960px) {  /* the sidebar: the count at the row's end */
  .tabbar a.tab-flow2 i { position: static; }
  .tabbar a.tab-flow2 { position: relative; }
  .tab-count { top: 50%; left: auto; right: 12px; transform: translateY(-50%); box-shadow: none; }
}
.plans-section { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plans-section .aside { text-transform: none; letter-spacing: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.plans-section.needs-title .aside { color: var(--needs); font-weight: 700; }
#plans-needs > .plans-section:first-child, #plans-needs > .plans-calm:first-child { margin-top: 4px; }
#plans-needs .card.ask { margin: 0 0 10px; }
.card.ask .ask-for { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
                     margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.card.ask .ask-for > span { min-width: 0; overflow-wrap: anywhere; }
.card.ask .ask-for .more-link { font-size: 13.5px; white-space: nowrap; }
.plans-group { margin: 0 0 4px; }
.plans-group + .plans-group { margin-top: 10px; }
.plans-group .row-item { text-align: left; }
.plans-group .row-item .spinner.small { flex: none; }
.row-glyph { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
             background: var(--needs-bg); color: var(--needs); }
.plans-calm { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius);
              background: var(--going-bg); color: var(--going); margin: 8px 0 4px; }
.plans-calm svg { flex: none; margin-top: 2px; }
.plans-calm b { display: block; color: var(--ink); font-size: 15px; }
.plans-calm .sub { display: block; font-size: 14px; }
.plans-clash { margin: 0 0 10px; }
.plans-clash h3 { margin-bottom: 4px; }
/* Plans sections fold under their headings (plansFold): the whole heading is the tap target, the count stays */
.plans-fold > summary { cursor: pointer; min-height: 44px; margin: 14px 0 2px; padding: 0 2px 0 0; border-radius: 10px;
                        -webkit-tap-highlight-color: transparent; }
.plans-fold[open] > summary { margin-bottom: 4px; }
.plans-fold > summary > .plans-section { flex: 1; margin: 0 4px; min-width: 0; }
.plans-fold > summary .chev { color: var(--muted); }
.plans-fold > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.plans-fold:not([open]) + .plans-fold > summary { margin-top: 2px; }
.plans-fold:not([open]) > summary { border-bottom: 1px solid var(--line); border-radius: 0; }
#plans-needs > .plans-fold:first-child > summary { margin-top: 0; }
.plans-fold > .day:first-of-type { margin-top: 6px; }
.plans-fold .clash-clear { margin-left: auto; min-height: 44px; padding: 0 6px; }
/* The short overlap card on Plans (plansClashCard): which one, a line per event, then the short choices */
.clash-short .clash-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 8px; }
.clash-short .clash-head h3 { margin: 0; }
.clash-short .clash-why { font-size: 13.5px; color: var(--wait); opacity: .85; }
/* the two lines share their columns, so both times start at the same place whatever the names' lengths */
.clash-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr);
                column-gap: 10px; row-gap: 2px; }
.clash-legend > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.clash-event { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; width: calc(100% + 8px); min-height: 44px; padding: 6px 4px; margin: 0 -4px;
               border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.clash-event:hover .clash-title { text-decoration: underline; text-underline-offset: 2px; }
.clash-chip { justify-self: start; max-width: 11em; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 650;
              line-height: 18px; background: var(--surface); color: var(--ink); overflow-wrap: anywhere; }
.clash-chip.keep { background: var(--primary); color: var(--on-primary); }
.clash-what { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding-top: 2px; font-size: 14px; }
.clash-what b { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clash-title { flex-basis: 100%; color: var(--muted); overflow-wrap: anywhere; }
.clash-what .status { padding: 1px 8px; font-size: 11.5px; }
/* one row on any phone: the two names share the width, Both takes what it needs; a long name wraps inside its pill */
.clash-choices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.clash-choices > .pill { height: auto; min-height: 44px; padding: 6px 12px; font-weight: 650; line-height: 1.15;
                         white-space: normal; overflow-wrap: anywhere; }
.clash-choices > .pill.soft { background: var(--surface); }
.clash-choices > .pill.both { min-width: 68px; }
.plans-clash.clearing { opacity: .45; transition: opacity .2s; pointer-events: none; }
@media (min-width: 700px) {  /* a wide screen: the choices keep a button's size, not the card's whole width */
  .clash-choices { grid-template-columns: repeat(2, minmax(0, 200px)) auto; justify-content: start; }
}
.plans-quiet { margin: 4px 4px 0; font-size: 14.5px; }
.plans-more { margin-top: 4px; }
.plans-link { display: inline-block; margin: 10px 4px 0; }
.plans-error { margin-top: 18px; }
.plans-error .sub { margin: 0 0 12px; }
.plans-foot { margin-top: 28px; text-align: center; }
#plans-body > .empty { padding-top: 28px; }
#plans-body > .card.review { margin-top: 26px; }
.skeleton.short { height: 52px; width: 70%; }
/* Events, with flow2: what needs you is one line that goes to Plans */
.needs-line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; margin: 8px 0 4px;
              border-radius: 14px; background: var(--needs-bg); color: var(--needs); font-size: 15px; font-weight: 650; text-align: left; }
.needs-line span { flex: 1; }
/* Keep buttons on an overlap (Plans and the weekly digest): long titles wrap inside the card, never past it */
.keep-row { flex-wrap: wrap; }
.keep-row > .pill { flex: 1 1 150px; min-width: 0; max-width: 100%; height: auto; min-height: 44px; padding: 10px 16px;
                    white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.plans-cancelling { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 14.5px; color: var(--ink); }
.plans-cancelling .spinner { flex: none; }
/* Tap targets on Plans: at least 44px tall */
.card.ask .ask-for .more-link, .plans-link { display: inline-flex; align-items: center; min-height: 44px; }
.plans-link { margin: 2px 4px 0; }
.plans-error .pill { height: 44px; padding: 0 20px; }

/* ---------- You, one page (the flow2 flag, docs/FLOW2.md step 2) ---------- */
/* Tabs with flow2: Events, Plans, People and You (Agent first while it's on); Sites and Profile are sections of You */
body[data-flow2] .tab-classic { display: none; }
body[data-flow2] .tabbar .tab-you { display: flex; }
@media not all and (min-width: 960px) {
  body[data-flow2]:not([data-home="agent"]) .tabbar a { width: min(72px, calc((100vw - 40px) / 4)); }
}
.tabbar a i.has-av > svg { display: none; }
.av.nav { width: 26px; height: 26px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--surface); }
.tabbar a[aria-current="page"] .av.nav { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
@media (min-width: 960px) { .av.nav { width: 22px; height: 22px; font-size: 9.5px; } }

.you-id { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; }
.you-id .who { min-width: 0; }
.you-id h1 { margin: 0; font-size: 28px; overflow-wrap: anywhere; }
.you-id .sub { overflow-wrap: anywhere; }
.you-avatar { flex: none; display: grid; }
.you-avatar .av.big { width: 64px; height: 64px; font-size: 22px; }
/* a row of the page's sections, to jump to one; it scrolls sideways on a phone */
.you-jump { margin: 0 -16px 6px; padding: 2px 16px 12px; scroll-padding-inline: 16px; }
.you-jump .chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; font-size: 14px; font-weight: 600; }
.you-jump .chip.needs { border-color: transparent; background: var(--needs-bg); color: var(--needs); }
.you-jump .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* each section starts folded: a row with its heading and a one-line summary; tapping it opens the part as it is on
   its own screen */
.you-part { border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.you-part:first-of-type { margin-top: 8px; }
.you-part:last-of-type { border-bottom: 1px solid var(--line); }
.you-fold > summary { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 14px 2px; cursor: pointer; list-style: none;
                      -webkit-tap-highlight-color: transparent; border-radius: 10px; }
.you-fold > summary::-webkit-details-marker { display: none; }
.you-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.you-fold > summary .chev { flex: none; color: var(--muted); transition: transform .15s; }
.you-fold[open] > summary .chev { transform: rotate(90deg); }
.you-h { flex: 1; min-width: 0; }
.you-h h2 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.012em; font-weight: 700; text-wrap: balance; }
.you-sum { display: block; margin-top: 3px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.you-sum:empty { display: none; }
.you-sum[data-needs] { color: var(--needs); font-weight: 600; }
.you-fold[open] > summary .you-sum { display: none; }
.you-body { padding: 0 0 26px; }
.you-body > .sub { margin: 0 0 2px; font-size: 14.5px; max-width: 34em; }
.you-body > .more-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .you-fold > summary:hover h2 { color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .you-fold > summary .chev { transition: none; } }
.chip.static { cursor: default; display: inline-flex; align-items: center; }
/* the parts keep their own headings, one step smaller than the section's */
.you-part .section:first-child, .you-part [data-you] > .section:first-child,
.you-part [data-you] > .card:first-child, .you-part [data-you] > [hidden]:first-child + .section { margin-top: 16px; }
.you-part .you-dup { display: none; }
.you-part [data-you="account"] > .group:first-of-type { margin-top: 14px; }
.you-part [data-you="taste"] > .focus-card { margin-top: 14px; }
/* Your details and typed answers: a row that opens the profile form in place */
.you-more { margin-top: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.you-more > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; cursor: pointer; list-style: none; }
.you-more > summary::-webkit-details-marker { display: none; }
.you-more > summary .who { flex: 1; min-width: 0; }
.you-more > summary .who b { display: block; font-weight: 650; }
.you-more > summary .who .sub { display: block; font-size: 14px; }
.you-more > summary .chev { transition: transform .15s; }
.you-more[open] > summary .chev { transform: rotate(90deg); }
.you-more[open] > summary { border-bottom: 1px solid var(--line); }
.you-more > div { padding: 2px 12px 14px; }
.you-more .group { box-shadow: none; border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .you-more > summary .chev { transition: none; } }
@media (min-width: 960px) { .you-jump { flex-wrap: wrap; overflow: visible; margin: 0 0 6px; padding: 2px 0 12px; } }

/* ---------- the flow2 flag, step 3: the ask bar and the agent as a sheet (app.js, openAgentSheet) ---------- */
/* No Agent tab: the agent opens from the ask bar over whatever you're looking at. You stays (it's your avatar). */
body[data-flow2][data-home="agent"] .tab-agent:not(.tab-you) { display: none; }
@media not all and (min-width: 960px) {  /* phones only: the desktop sidebar keeps its full width */
  body[data-flow2][data-home="agent"] .tabbar a { width: min(72px, calc((100vw - 40px) / 4)); }
}
/* Events' own Search (a second way to ask) gives way to the ask bar */
body[data-flow2][data-home="agent"] #ask-open, body[data-flow2][data-home="agent"] #ask-form { display: none; }
.askbar { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--tabbar) + 10px + var(--safe-b));
          width: min(calc(100vw - 32px), calc(var(--col) - 32px)); min-height: 48px; display: flex; align-items: center; gap: 10px;
          padding: 0 16px 0 10px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow);
          background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
          color: var(--muted); font: inherit; font-size: 16px; text-align: left; cursor: text; }
.askbar:hover { color: var(--ink); }
.askbar:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.askbar-mark { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
#askbar-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:not([data-flow2]) .askbar, body[data-sheet="agent"] .askbar { display: none; }
/* On a phone the ask bar matches the tab bar under it: the same width, height, edges and glass, so the two read as one
   dock. The width is the tab bar's: four tabs (.tabbar a), three 2px gaps, 5px padding and a 1px border each side. */
@media not all and (min-width: 960px) {
  .askbar { width: calc(4 * min(72px, (100vw - 40px) / 4) + 18px); height: 64px; padding: 0 18px 0 11px; gap: 12px;
            background: color-mix(in srgb, var(--surface) 86%, transparent); }
  .askbar-mark { width: 40px; height: 40px; }
  .askbar-mark svg { width: 20px; height: 20px; }
}
/* Scrolling down on a phone tucks the dock away for more room (app.js, watchDock sets data-dock): the tab bar slides
   down and a round tabs button takes its left end, and the ask bar shrinks to its round chat bubble at the right end.
   Scrolling up, the top of the page, or a tap on the tabs button brings both back. */
.dockbtn { display: none; }
@media not all and (min-width: 960px) {
  body[data-flow2] { --dockw: calc(4 * min(72px, (100vw - 40px) / 4) + 18px); --dockease: .3s cubic-bezier(.2, .8, .2, 1); }
  body[data-flow2] .tabbar { transition: transform var(--dockease), opacity .2s, visibility .3s; }
  body[data-flow2] .askbar { transition: left var(--dockease), bottom var(--dockease), width var(--dockease), height var(--dockease),
                                         padding var(--dockease), gap var(--dockease), color .2s; }
  body[data-flow2] #askbar-text { transition: opacity .18s; }
  body[data-flow2] .dockbtn { position: fixed; z-index: 10; display: grid; place-items: center; width: 56px; height: 56px; padding: 0;
    left: calc(50% - var(--dockw) / 2 + 28px); bottom: calc(16px + var(--safe-b)); transform: translateX(-50%) scale(.6);
    border-radius: 50%; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); cursor: pointer;
    background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; pointer-events: none; -webkit-tap-highlight-color: transparent;
    transition: transform var(--dockease), opacity .2s, visibility .3s; }
  body[data-flow2] .dockbtn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
  /* a dot while something on Plans needs you, since its count is tucked away with the tab bar */
  body[data-flow2]:has(#plans-count:not([hidden])) .dockbtn::after { content: ""; position: absolute; top: 9px; right: 9px; width: 10px;
    height: 10px; border-radius: 50%; background: var(--needs); box-shadow: 0 0 0 2px var(--surface); }
  body[data-flow2][data-dock="tucked"] .tabbar { transform: translate(-50%, calc(100% + 24px)); opacity: 0; visibility: hidden; }
  body[data-flow2][data-dock="tucked"] .dockbtn { transform: translateX(-50%) scale(1); opacity: 1; visibility: visible; pointer-events: auto; }
  body[data-flow2][data-dock="tucked"] .askbar { left: calc(50% + var(--dockw) / 2 - 28px); bottom: calc(16px + var(--safe-b));
                                                 width: 56px; height: 56px; padding: 0 0 0 7px; gap: 0; }
  body[data-flow2][data-dock="tucked"] #askbar-text { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-flow2] .tabbar, body[data-flow2] .askbar, body[data-flow2] #askbar-text, body[data-flow2] .dockbtn { transition: none; }
}
body[data-flow2][data-home="agent"]:is([data-view="discover"], [data-view="plans"], [data-view="people"], [data-view="you"]) main {
  padding-bottom: calc(var(--tabbar) + 104px + var(--safe-b)); }
@media (min-width: 960px) {
  /* beside the sidebar, under the column, where the Agent screen's box sat */
  .askbar { left: calc(var(--side) + (100vw - var(--side)) / 2); bottom: 24px; width: min(calc(100vw - var(--side) - 96px), var(--col)); }
  body[data-flow2][data-home="agent"]:is([data-view="discover"], [data-view="plans"], [data-view="people"], [data-view="you"]) main { padding-bottom: 120px; }
}

/* The sheet: the Agent screen's own thread, questions and box, over the screen it was opened on */
.agent-sheet { border: 0; padding: 0; width: 100%; max-width: var(--col); height: 88dvh; max-height: 88dvh; margin: auto auto 0;
               overflow: auto; overscroll-behavior: contain; border-radius: 26px 26px 0 0; background: var(--surface); color: var(--ink);
               box-shadow: var(--shadow); }
.agent-sheet[open] { animation: up .22s ease-out; display: flex; flex-direction: column; }
.agent-sheet::backdrop { background: rgba(10, 10, 12, .56); animation: backdrop-in .22s ease-out; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .agent-sheet::backdrop { background: rgba(10, 10, 12, .34); -webkit-backdrop-filter: blur(10px) saturate(.9); backdrop-filter: blur(10px) saturate(.9); }
}
body[data-sheet="agent"] #agent { flex: 1; display: flex; flex-direction: column; padding: 0 18px; }
body[data-sheet="agent"] .agent-head { position: sticky; top: 0; z-index: 2; margin: 0 -18px; padding: 14px 14px 10px 18px;
                                       background: var(--surface); border-bottom: 1px solid var(--line); }
body[data-sheet="agent"] .agent-head h1 { font-size: 18px; }
.agent-close { width: 44px; height: 44px; margin: -6px -6px -6px 0; }
body[data-sheet="agent"] #agent-thread { padding-top: 14px; }
body[data-sheet="agent"] #agent-chips { margin-bottom: 8px; }
/* the box sits at the sheet's foot, always open: no tab bar to swap with in here */
body[data-sheet="agent"] .agent-composer { display: block; position: sticky; left: auto; right: auto; bottom: 0; margin: auto -18px 0;
                                           max-width: none; padding: 10px 14px calc(12px + var(--safe-b)); background: var(--surface);
                                           border-top: 1px solid var(--line); }
body[data-sheet="agent"] #agent-nav, body[data-sheet="agent"] .agent-open, body[data-sheet="agent"] #agent-device { display: none; }
@media (min-width: 960px) {
  /* a wide screen: a panel in the middle, rounded all round, rather than a sheet from the bottom */
  .agent-sheet { margin: auto; height: min(760px, 86dvh); border-radius: 22px; }
}
/* What goes with your message (the context_chips flag, app.js drawCtx): a chip over the box naming the event, person or
   screen, tap for what's sent, × to send without it, and a dashed chip to put it back */
.ctx-slot { position: relative; display: flex; margin: 0 0 8px; }
.ctx { max-width: 100%; display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 4px 0 5px; border-radius: 999px;
       background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.ctx-open { min-width: 0; height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 4px 0 0; border-radius: 999px; color: inherit; font: inherit; }
.ctx-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); flex: none; }
.ctx-tile { --h: 20; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; overflow: hidden;
            color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .01em;
            background: linear-gradient(140deg, hsl(var(--h) 72% 62%), hsl(calc(var(--h) + 40) 66% 44%)); }
.ctx-tile.site { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ctx-tile.site img { width: 100%; height: 100%; object-fit: contain; }
.ctx .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx .lbl em { font-style: normal; color: var(--muted); margin-right: 4px; }
.ctx .lbl b { font-weight: 650; }
.ctx .rm { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.ctx.off { gap: 6px; padding: 0 12px 0 10px; background: transparent; border-style: dashed; color: var(--muted); font: inherit; font-size: 14px; }
.ctx-slot .peek { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 3; display: flex; flex-direction: column; gap: 8px;
                  padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
                  box-shadow: 0 12px 40px rgba(0, 0, 0, .18); font-size: 14px; animation: peek-in .15s ease-out; }
@keyframes peek-in { from { opacity: 0; transform: translateY(4px); } }
.peek .pt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.peek dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
.peek dt { color: var(--muted); }
.peek dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.peek .line { font-weight: 600; }
.peek .not { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 8px; }
/* "with Founders Breakfast" under a message you sent with it */
.me-with { align-self: flex-end; display: inline-flex; align-items: center; gap: 5px; margin-top: -4px; font-size: 12px; color: var(--muted); }
.me-with .ctx-tile { width: 14px; height: 14px; border-radius: 4px; }
.me-with .ctx-ico { width: 14px; height: 14px; background: none; color: var(--muted); }
@media (hover: hover) {
  .ctx .rm:hover, .ctx-open:hover .ctx-ico { background: var(--surface); color: var(--ink); }
  .ctx.off:hover { color: var(--ink); border-color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .ctx-slot .peek { animation: none; } }

/* "Ask the agent" on an event's sheet, beside Open on and Follow */
.sheet .links .ask-about { color: var(--ink); }

/* For you (step 3): the tab's new name, one Filters button for the chips and the order, and a lighter top */
.tab-flow2-name { display: none; }
body[data-flow2] .tabbar .tab-flow2-name { display: inline; }
body[data-flow2] .tabbar .tab-classic-name { display: none; }
body[data-flow2] .filter-row > #feed-chips, body[data-flow2] .filter-row > #sort, body[data-flow2] main > .view > #platforms,
body[data-flow2] #discover > #platforms { display: none; }
.filters-chip .count:empty { display: none; }
.filters-chip::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -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='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain 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='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat; }
#sheet-body[data-sheet="filters"] .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
#sheet-body[data-sheet="filters"] #feed-chips [data-when="all"] { display: none; }
#sheet-body[data-sheet="filters"] .platforms { margin: 10px 0 0; }
#sheet-body[data-sheet="filters"] .seg.icons { margin: 0; }
/* the order_labels flag: Order's two choices say what they do beside their icons, as tall as the When chips (34 + 3 + 3) */
.seg-word { display: none; }
body[data-order-labels] #sheet-body[data-sheet="filters"] #sort button { width: auto; height: 34px; padding: 0 15px 0 11px;
  display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }
body[data-order-labels] #sheet-body[data-sheet="filters"] #sort button svg { flex: none; }
body[data-order-labels] #sheet-body[data-sheet="filters"] #sort .seg-word { display: inline; }
#sheet-body[data-sheet="filters"] h3.section { margin: 18px 0 10px; }
/* For you's dates (the dates flag, app.js "For you's dates"): When first in Filters, its quick picks and Pick dates'
   range calendar (dots: days with events near you), and the dates as a chip beside Filters, with × to clear */
#feed-chips .dates-gone { display: none !important; }
.dr-head { display: flex; align-items: baseline; justify-content: space-between; }
#sheet-body[data-sheet="filters"] .dr-head h3.section { margin-top: 6px; }
.dr-clear { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.dr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-chips .chip { height: 40px; padding: 0 15px; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.dr-when + h3.section { margin-top: 24px !important; }
.dr-cal { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 14px 10px; }
.dr-ends { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.dr-end { border-radius: 14px; background: var(--surface-2); padding: 9px 12px; display: flex; flex-direction: column; gap: 1px; text-align: left; }
.dr-end small { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dr-end b { font-size: 16px; }
.dr-end.live { box-shadow: 0 0 0 2px var(--ink); }
.dr-months { display: grid; gap: 24px; }
.dr-months.two { grid-template-columns: 1fr 1fr; }
.dr-mhead { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 8px; }
.dr-mhead b { font-size: 16px; }
.dr-nav { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; }
.dr-nav:disabled { opacity: .35; cursor: default; }
.dr-nav.ghost { visibility: hidden; }
.dr-nav.prev svg { transform: rotate(180deg); }
.dr-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
.dr-grid > * { width: auto; min-width: 0; }
.dr-dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--faint); padding: 2px 0 6px; }
.dr-d { position: relative; height: 40px; display: grid; place-items: center; font-size: 15px; color: var(--ink); }
.dr-d span { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.dr-d:not(:disabled):hover span { background: var(--surface-2); }
.dr-d:focus-visible { outline: none; }
.dr-d:focus-visible span { box-shadow: 0 0 0 2px var(--ink); }
.dr-d.past { color: var(--faint); cursor: default; }
.dr-d.today span { box-shadow: inset 0 0 0 1.5px var(--faint); font-weight: 650; }
.dr-d.has::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--muted); z-index: 2; }
.dr-d.in { background: var(--surface-2); }
.dr-d.from { background: linear-gradient(90deg, transparent 50%, var(--surface-2) 50%); }
.dr-d.to { background: linear-gradient(90deg, var(--surface-2) 50%, transparent 50%); }
.dr-d.alone { background: none; }
.dr-d.from span, .dr-d.to span, .dr-d.from:hover span, .dr-d.to:hover span { background: var(--primary); color: var(--on-primary); font-weight: 650; }
.dr-d.from.has::after, .dr-d.to.has::after { background: var(--on-primary); }
.dr-d.wk1 { border-radius: 999px 0 0 999px; } .dr-d.wk7 { border-radius: 0 999px 999px 0; } .dr-d.wk1.wk7 { border-radius: 999px; }
.dr-legend { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 8px 2px 2px; }
.dr-legend i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.filter-row .dates-chip { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px 0 0; }
.filter-row .dates-chip[hidden] { display: none; }
.dates-chip > button { height: 100%; display: inline-flex; align-items: center; color: inherit; }
#dates-open { gap: 6px; padding: 0 4px 0 12px; }
.dates-chip .x { width: 24px; justify-content: center; }
.dates-chip > button:focus-visible { outline: none; }  /* the ring goes round the chip, or the × */
.dates-chip:has(#dates-open:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dates-chip .x:focus-visible svg { box-shadow: 0 0 0 2px var(--accent); }
/* The Pick dates calendar folding away (the dates_fold flag, app.js tapDay): Hide calendar beside the legend, and a caret
   on the folded range's chip, which opens it again */
.dr-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.dr-foot .dr-legend { margin: 0 2px; }
.dr-hide { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 14px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 14px; }
.dr-hide svg { transform: rotate(-90deg); }
.dr-hide:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dr-chips .chip .dr-caret { transform: rotate(90deg); margin-left: -2px; }
/* For you's Where (the where flag, app.js "For you's Where"): In person or Online under When, a line on what the pick
   does, and the pick as a chip beside Filters (styled as the dates chip) */
.wh-box { margin-top: 18px; }
.wh-box .fine { margin: 8px 2px 0; }
.wh-box + h3.section { margin-top: 24px !important; }
#where-open { gap: 6px; padding: 0 4px 0 12px; }
.dates-chip:has(#where-open:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dates-chip .x svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; box-sizing: border-box;
  background: color-mix(in srgb, var(--on-primary) 22%, transparent); }
/* For you's Invites (the invites_filter flag, app.js "For you's Invites"): the chip in Filters' Show with its teal count,
   white on the chip once it's on, and the pick as a chip beside Filters (styled as the dates chip) */
#feed-chips [data-invites] .count:empty { display: none; }
#feed-chips [data-invites].on .count { background: color-mix(in srgb, var(--on-primary) 22%, transparent); color: var(--on-primary); }
#invites-open { gap: 6px; padding: 0 4px 0 12px; }
.dates-chip:has(#invites-open:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* what Plans now holds, and what was a second home for something on You, leave For you's top */
body[data-flow2] #news, body[data-flow2] #events-tip, body[data-flow2] #plans-none, body[data-flow2] #learned-box { display: none; }

/* ---------- Start (flow2, docs/FLOW2.md step 4): two steps, a bar for each ---------- */
.start-steps { display: flex; gap: 6px; margin: 6px 0 14px; max-width: 220px; }
.start-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); }
.start-steps i.on { background: var(--ink); }
#start-two .chips { margin-top: 8px; }
#start-two #start-go { margin-top: 22px; }

/* Start (flow2) on a phone: no tab bar, so nothing covers its buttons and no tap leaves it halfway (the sidebar stays on desktop) */
@media not all and (min-width: 960px) {
  body[data-flow2][data-view="welcome"] .tabbar { display: none; }
  body[data-flow2][data-view="welcome"] main { padding-bottom: calc(40px + var(--safe-b)); }
}

/* ---------- the agent's first message: what brings you here, with a picture per goal (flow2; agent goals in app.js) ---------- */
.goal-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 26em; margin: 4px 0 2px; }
.goal-tile { position: relative; overflow: hidden; aspect-ratio: 1 / 0.78; border: 0; border-radius: 14px; padding: 10px 11px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; cursor: pointer;
  color: #fff; font: inherit; font-weight: 700; font-size: 14px; line-height: 1.2; transition: transform .12s ease; }
.goal-tile:active { transform: scale(.97); }
.goal-tile .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.goal-tile .say { position: relative; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.goal-tile.on { outline: 3px solid var(--ink); outline-offset: 2px; }
.goal-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.goal-tile .ck { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  color: #111214; display: grid; place-items: center; }
.goal-tile.g-friends { background: #2f5bd3; }
.goal-tile.g-company { background: #e5281b; }
.goal-tile.g-job { background: #0f6f66; }
.goal-tile.g-volunteer { background: #ad2468; }
.goal-chips { margin: 4px 0 2px; }
.goal-actions { display: flex; gap: 8px; margin-top: 8px; max-width: 26em; }
.goal-actions button { flex: 1; margin: 0; height: 48px; }
.goal-saved { display: flex; align-items: center; gap: 4px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .goal-tile { transition: none; } }

/* ---------- which event a question is for (flow2): the same label in the agent, Plans and the RSVP page ---------- */
.card.ask .ask-for-events { display: grid; gap: 10px; margin: 4px 0 14px; }
.card.ask .ask-ev { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.card.ask .ask-ev svg { margin-top: 2px; color: var(--muted); }
.card.ask .ask-ev-text { display: grid; gap: 1px; min-width: 0; }
.card.ask .ask-ev-text b { font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.card.ask .ask-ev-when { font-size: 14px; line-height: 1.35; color: var(--muted); font-variant-numeric: tabular-nums; }
.card.ask .ask-ev-when .more-link { font-size: 14px; }
.card.ask .ask-for-events > .fine { margin: 0; }

/* ---------- a stronger answer than the one you wrote (drafts.review): yours stays until you choose ---------- */
.card.ask .ask-better { display: grid; gap: 8px; margin: 12px 0 4px; padding: 14px; border-radius: 14px;
                        background: var(--surface-2); border: 1px solid var(--line); }
.card.ask .ask-better > .eyebrow { margin: 0; }
.card.ask .ask-better-text { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.card.ask .ask-better > .fine { margin: 0; }
.card.ask .ask-better > button { margin-top: 2px; }

/* ---------- a stack of cards (flow2, cardStack): the questions on Plans and in the agent, one on top of the other,
   the edges of the next two showing under it, "2 of 5" with arrows below. Swiped sideways; up and down still scrolls */
.stack { position: relative; margin: 0 0 10px; }
#agent-asks .stack { margin: 12px 0 0; }
.stack-deck { position: relative; }
.stack-deck > [hidden] { display: none !important; }
#plans-needs .stack-deck > .card, #plans-body .stack-deck > .card, #agent-asks .stack-deck > .card, .stack-deck > .card {
  position: relative; z-index: 2; margin: 0; touch-action: pan-y; transition: transform .25s ease, opacity .25s ease; }
.stack.dragging .stack-deck > .card { transition: none; cursor: grabbing; user-select: none; -webkit-user-select: none; }
.stack-deck:has(> .stack-peeks:not(:empty)) { padding-bottom: 20px; }
.stack-peek { position: absolute; bottom: 10px; left: 12px; right: 12px; height: 48px; z-index: 1; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stack-peek.p2 { bottom: 0; left: 26px; right: 26px; z-index: 0; opacity: .75; }
.stack[data-tone="warn"] .stack-peek { background: var(--wait-bg); border-color: color-mix(in srgb, var(--wait) 22%, transparent); box-shadow: none; }
.stack-deck > .card.stack-enter { animation: stack-up .22s ease-out; }
@keyframes stack-up { from { transform: translateY(10px) scale(.97); opacity: .5; } }
.stack-bar { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 4px 0 0; }
.stack-bar button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; }
.stack-bar button:hover { background: var(--surface-2); }
.stack-bar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.stack-bar .stack-prev svg { transform: rotate(180deg); }
.stack-count { min-width: 4.5em; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .stack-deck > .card { transition: none; }
  .stack-deck > .card.stack-enter { animation: none; }
}

/* ---------- one search for events and people (the "search" flag; app.js openFind) ----------
   A phone: a round button in sync's place that opens a full screen with the box on top and Cancel. From 960px: a
   field in sync's place, and a panel under it while it's in use. */
.find { position: relative; }
.find-box { display: none; }
.find.open .find-box { display: block; position: fixed; inset: 0; z-index: 30; background: var(--bg); overflow-y: auto;
  overscroll-behavior: contain; padding: calc(14px + var(--safe-t)) 16px calc(24px + var(--safe-b)); }
.find-bar { display: flex; align-items: center; gap: 10px; }
.find-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 16px;
  border-radius: 999px; background: var(--surface-2); box-shadow: 0 0 0 2px var(--ink); color: var(--ink); cursor: text; }
.find-ico { display: grid; color: var(--ink); flex: none; }
.find-field input { flex: 1; min-width: 0; width: auto; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; font-size: 17px; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
.find-field input::placeholder { color: var(--muted); }
.find-field input::-webkit-search-cancel-button { display: none; }
.find-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); flex: none; }
.find-cancel { font-size: 16px; font-weight: 600; color: var(--ink); padding: 6px 2px; flex: none; }
.find-results { margin-top: 6px; }
.find-h { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 4px 8px; }
.find-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.find-chips .chip { height: 36px; font-size: 15px; }
.find-list { display: flex; flex-direction: column; gap: 8px; }
.find-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--radius); text-align: left;
  background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.find-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.find-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.find-row .t { font-size: 16px; font-weight: 650; }
.find-row .line { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.find-row .why { font-size: 12px; font-weight: 600; color: var(--faint); display: flex; align-items: center; gap: 4px; }
.find-row .chev { color: var(--faint); display: grid; flex: none; }
.find-row mark { background: var(--wait-bg); color: var(--ink); border-radius: 4px; padding: 0 2px; }
.find-row .tile { width: 40px; height: 40px; border-radius: 12px; flex: none; font-size: 13px; }
.find-row .tile .st { display: none; }
.find-none { text-align: center; padding: 34px 12px 10px; }
.find-none .tile-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); color: var(--muted); display: grid;
  place-items: center; margin: 0 auto 14px; }
.find-none h3 { margin: 0 0 6px; font-size: 18px; overflow-wrap: anywhere; }
.find-none p { margin: 0 auto 18px; color: var(--muted); font-size: 15px; max-width: 300px; }
.find-none .quiet { max-width: 320px; margin: 0 auto; }
.find-foot { color: var(--faint); font-size: 12.5px; text-align: center; margin: 14px 0 2px; }
@media (min-width: 960px) {
  #find-open { display: none; }
  .find-box, .find.open .find-box { display: block; position: static; padding: 0; background: none; overflow: visible; }
  .find-cancel { display: none; }
  .find-field { width: 260px; height: 40px; padding: 0 6px 0 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); }
  .find.open .find-field { box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
  .find-field input { font-size: 15px; }
  .find-ico { color: inherit; }
  .find.open .find-ico { color: var(--ink); }
  .find-results { position: absolute; right: 0; top: 52px; width: 420px; max-height: min(560px, calc(100vh - 140px)); overflow-y: auto;
    z-index: 30; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
    padding: 0 14px 12px; margin: 0; }
}

/* ---------- Fill my free time (the free_time flag): the card on For you, the free blocks sheet and the week sheet ---------- */
.ft-card { margin: 14px 0 16px; }
.ft-head { display: flex; gap: 12px; align-items: flex-start; }
.ft-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink); }
.ft-head h3 { margin: 1px 0 3px; font-size: 17px; }
.ft-head .sub { font-size: 14px; margin: 0; }
.ft-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 14px 0 2px; }
.ft-col { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.ft-col small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ft-col.today small { color: var(--ink); }
.ft-slot { width: 100%; height: 34px; border-radius: 9px; border: 1.5px dashed var(--line); display: grid; place-items: center; }
.ft-slot.none { border-style: solid; border-color: transparent; background: var(--surface-2); opacity: .45; }
.ft-slot.free { border-color: color-mix(in srgb, var(--muted) 55%, transparent); }
.ft-slot.pick { border: 0; background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); font-size: 12px; font-weight: 700; }
.ft-slot.ok { border: 0; background: var(--going); color: var(--surface); }
.ft-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin: 8px 2px 0; }
.ft-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ft-legend i { width: 12px; height: 12px; border-radius: 4px; }
.ft-legend i.ok { background: var(--going); }
.ft-legend i.pick { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.ft-legend i.free { border: 1.5px dashed color-mix(in srgb, var(--muted) 55%, transparent); }
.ft-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.ft-actions .pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; font-size: 15px; }
.ft-link { font-weight: 600; font-size: 15px; color: var(--ink); padding: 8px; background: none; border: 0; cursor: pointer; }
/* the free_fold flag: the card folds to its title and one short line on a tap, and opens again (app.js, fillFreeCard) */
.ft-fold { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.ft-fold .ft-head { outline: none; border-radius: 14px; }
.ft-fold .ft-head:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.ft-fold .ft-head .who { flex: 1; min-width: 0; }
.ft-chev { flex: none; margin-top: 3px; color: var(--muted); transform: rotate(90deg); transition: transform .2s ease; }
.ft-fold.folded .ft-chev { margin-top: 0; }
.ft-fold.folded .ft-chev { transform: rotate(0deg); }
.ft-short { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-fold.folded .ft-head { align-items: center; }
.ft-fold.folded .ft-head h3 { margin-bottom: 1px; }
.ft-fold.folded .ft-head .ft-badges, .ft-fold.folded .ft-head .sub:not(.ft-short) { display: none; }
.ft-fold.folded .ft-short { display: block; }
.ft-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .22s ease; }
.ft-body-in { min-height: 0; overflow: hidden; padding: 0 4px 4px; margin: 0 -4px -4px; }
.ft-fold.folded .ft-body { grid-template-rows: 0fr; }
@media (prefers-reduced-motion: reduce) { .ft-chev, .ft-body { transition: none; } }

#sheet-body .ft-sub { margin-bottom: 4px; }
#freeweek-body > h1 { margin-top: 0; }
#freeweek-body > .fine { margin-bottom: 32px; }
.ft-grid { display: grid; grid-template-columns: 44px repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.ft-grid .h { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding-bottom: 2px; }
.ft-grid .d { font-size: 15px; font-weight: 650; display: flex; align-items: center; }
.ft-cell { height: 46px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--muted); font: inherit; font-size: 13px;
  font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0 4px; }
.ft-cell.on { background: var(--primary); color: var(--on-primary); }
.ft-cell.editing { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.ft-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); }
.ft-hours b { flex-basis: 100%; font-size: 15px; }
.ft-hours label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.ft-hours select { font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  height: 38px; padding: 0 8px; }
.ft-hours .ft-link { margin-left: auto; }
.ft-opts { margin-top: 4px; }
.ft-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; width: 100%; text-align: left; background: none;
  border: 0; color: var(--ink); font: inherit; cursor: pointer; }
.ft-opt .ft-ico { width: 36px; height: 36px; border-radius: 11px; }
.ft-opt .who { flex: 1; min-width: 0; }
.ft-opt b { font-weight: 650; display: block; }
.ft-opt .sub { font-size: 14px; }
.ft-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.ft-opt[aria-checked="true"] .ft-radio { border: 7px solid var(--ink); }
.ft-opt .tag { font-size: 12px; font-weight: 650; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

.ft-tools { display: flex; gap: 8px; margin: 12px 0 2px; flex-wrap: wrap; }
.ft-tools .chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; }
.ft-tools .chip .down { transform: rotate(90deg); }
.ft-tools + .ft-opts { margin-top: 10px; }
.ft-block { margin-top: 22px; }
.ft-bh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 2px 8px; }
.ft-bh b { font-size: 17px; font-weight: 700; }
.ft-bh span { color: var(--muted); font-size: 15px; }
.ft-bh small { color: var(--muted); font-size: 14px; white-space: nowrap; }
.ft-bar { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); margin: 0 2px; overflow: hidden; }
.ft-bar > i { position: absolute; top: 0; height: 10px; margin: 0; padding: 0; border-radius: 5px; display: block; }
.ft-bar > i.ft-ev { background: color-mix(in srgb, var(--ink) 38%, transparent); }
.ft-bar > i.ft-ev.ok { background: var(--going); }
/* an event you signed up for: solid, in its RSVP color, striped so it reads apart from one you accepted */
.ft-bar > i.ft-ev.go { --c: var(--going); background: repeating-linear-gradient(135deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 78%, var(--surface)) 6px 12px); }
.ft-bar > i.ft-ev.go.st-host { --c: var(--host); }
.ft-bar > i.ft-ev.go.st-pending { --c: var(--pending); }
.ft-bar > i.ft-ev.go.st-wait { --c: var(--wait); }
.ft-bar > i.ft-trip { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 55%, transparent) 0 3px, transparent 3px 6px); }
.ft-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin: 4px 2px 10px; }
.ft-pick { display: flex; gap: 12px; padding: 14px; }
.ft-pick .tile { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.ft-pick .who { flex: 1; min-width: 0; }
.ft-pick .t { font-weight: 650; font-size: 16px; line-height: 1.25; background: none; border: 0; padding: 0; color: var(--ink); font-family: inherit;
  text-align: left; cursor: pointer; }
.ft-pick .l { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 14px; margin-top: 4px; }
.ft-pick .l svg { color: var(--faint); flex: none; margin-top: 2px; }
.ft-pick .why { color: var(--ink); }
.ft-pick .why svg { color: var(--muted); }
.ft-pick .ft-actions { margin-top: 10px; }
.ft-pick .ft-actions .pill { height: 36px; padding: 0 16px; font-size: 14px; }
.ft-in { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--going-bg); color: var(--going); font-weight: 650; font-size: 14px; }
.ft-pick .pill[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.ft-undo { color: var(--muted); font-size: 14px; font-weight: 600; padding: 6px; background: none; border: 0; cursor: pointer; }
/* Reject: a quiet third choice beside Accept and Swap, so saying no costs one tap and nothing takes its place */
.ft-reject { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px;
             color: var(--muted); font-size: 14px; font-weight: 600; background: none; border: 0; border-radius: 999px; cursor: pointer; }
.ft-reject:hover, .ft-reject:focus-visible { color: var(--ink); background: var(--surface-2); }
.ft-empty.ft-passed { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 6px; }
.ft-empty.ft-passed .ft-pacts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ft-empty.ft-passed .ft-undo { padding: 6px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* a block that still has picks: each one you rejected is a quiet line with Undo */
.ft-empty.ft-passed.ft-was { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 10px 14px; font-size: 14px;
                             border-top: 1px solid var(--line); }
.ft-empty.ft-passed.ft-was svg { margin-top: 0; }
.ft-alts { padding: 4px 14px 14px; background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.ft-alts .k { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 2px; }
.ft-alts .sub { margin: 8px 0 0; font-size: 14px; }
.ft-alt { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.ft-alt + .ft-alt { border-top: 1px solid var(--line); }
.ft-alt .tile { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.ft-alt .who { flex: 1; min-width: 0; }
.ft-alt b { font-size: 15px; font-weight: 650; display: block; line-height: 1.25; }
.ft-alt .sub { font-size: 13px; margin: 0; }
.ft-alt .pill { height: 32px; padding: 0 12px; font-size: 13px; flex: none; }
.ft-empty { padding: 14px; color: var(--muted); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.ft-empty svg { margin-top: 2px; flex: none; }
/* Fill my free time with free_max: what you're into, how much, at the same time, the budget, sites and the longer Swap */
.ft-into { display: grid; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.ft-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; min-height: 52px; cursor: text; }
.ft-field:focus-within { border-color: var(--ink); }
.ft-field .ft-tagc { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 14px; font-size: 14px; }
.ft-input { flex: 1; min-width: 140px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); padding: 6px 4px; outline: none; }
.ft-input::placeholder { color: var(--faint); }
.ft-k { font-size: 13px; color: var(--muted); }
.ft-sug { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-sug .chip { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; font-size: 14px; font-weight: 600; border-style: dashed; }
.ft-row { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ft-row > div:first-child { flex: 1; min-width: 0; display: grid; }
.ft-row b { font-size: 14px; font-weight: 600; }
.ft-row > div:first-child span { font-size: 13px; color: var(--muted); }
.ft-seg { flex: none; display: inline-flex; background: var(--surface-2); border-radius: 99px; padding: 3px; }
.ft-seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 11px; border-radius: 99px; cursor: pointer; }
.ft-seg button.on { background: var(--primary); color: var(--on-primary); }
.ft-until { flex: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); max-width: 46%; }
@media (max-width: 420px) {
  .ft-row:has(.ft-seg) { flex-wrap: wrap; }
  .ft-row:has(.ft-seg) > div:first-child { flex-basis: 100%; }
}
.ft-sites .chip { display: inline-flex; align-items: center; gap: 6px; }
.ft-sites .chip.ft-on { background: var(--surface); }
.ft-sites .chip.ft-on svg { color: var(--going); }
.ft-sites .chip.ft-off { background: var(--surface-2); color: var(--faint); border-color: transparent; }
.ft-sites .chip.ft-off span { text-decoration: line-through; }
.ft-tools { flex-wrap: wrap; }
.ft-tag { font-weight: 650; color: var(--pending) !important; background: var(--pending-bg); padding: 2px 9px; border-radius: 99px; }
.ft-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.ft-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--pending); background: var(--pending-bg); padding: 3px 10px; border-radius: 99px; }
.ft-slot.ft-wk { border: 0; background: var(--pending); color: var(--pending-bg); font-size: 11px; font-weight: 700; overflow: hidden; }
.ft-legend i.ft-wk { background: var(--pending); }
.ft-bar.ft-lane { margin-top: 6px; height: 22px; }
.ft-bar.ft-lane:first-of-type { margin-top: 10px; }
.ft-bar.ft-lane > i { height: 100%; display: flex; align-items: center; overflow: hidden; border-radius: 6px; }
.ft-bar.ft-lane > i em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--bg); padding: 0 7px; white-space: nowrap; }
.ft-bar.ft-lane > i.ft-ev { background: color-mix(in srgb, var(--ink) 55%, transparent); }
.ft-bar.ft-lane > i.ft-ev.ft-ov { background: var(--pending); }
.ft-bar.ft-lane > i.ft-ev.ok { background: var(--going); }
.ft-bar.ft-lane > i.ft-ev.go { background: repeating-linear-gradient(135deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 78%, var(--surface)) 6px 12px); }
.ft-in.st-host { background: var(--host-bg); color: var(--host); }
.ft-in.st-pending { background: var(--pending-bg); color: var(--pending); }
.ft-in.st-wait { background: var(--wait-bg); color: var(--wait); }
.ft-also { color: var(--muted); font-size: 13px; }
.ft-tag.go { color: var(--going) !important; background: var(--going-bg); }
.ft-ovnote { display: flex; gap: 8px; align-items: flex-start; margin: 10px 2px 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; color: var(--muted); }
.ft-ovnote svg { flex: none; margin-top: 2px; }
.ft-pick .l.ft-ovl { color: var(--pending); font-weight: 600; }
.ft-pick .l.ft-price.unk { color: var(--wait); }
.ft-pick .l.ft-price.unk span { font-weight: 600; }
.ft-meter { margin: 14px 2px 4px; display: grid; gap: 8px; }
.ft-mtop { display: flex; align-items: baseline; gap: 4px; font-size: 15px; color: var(--muted); }
.ft-mtop b { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.ft-mtop .left { margin-left: auto; font-weight: 600; color: var(--going); }
.ft-mtop .left.over { color: var(--needs); }
.ft-mbar { height: 10px; border-radius: 99px; background: var(--surface-2); display: flex; overflow: hidden; }
.ft-mbar i { display: block; height: 100%; }
.ft-mbar i.ok, .ft-mlg i.ok { background: var(--going); }
.ft-mbar i.wait, .ft-mlg i.wait { background: color-mix(in srgb, var(--going) 38%, var(--surface-2)); }
.ft-mlg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.ft-mlg > span { display: inline-flex; align-items: center; gap: 6px; }
.ft-mlg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ft-mlg i.unk { background: var(--wait-bg); border: 1.5px dashed var(--wait); width: 8px; height: 8px; }
.ft-meter.small { margin: 12px 0 2px; }
.ft-meter.small .ft-mtop b { font-size: 16px; }
.ft-meter.small .ft-mbar { height: 8px; }
.ft-ahead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 6px; }
.ft-ahead .k { margin: 0 !important; }
.ft-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-sort .chip { height: 30px; padding: 0 11px; font-size: 13px; }
.ft-list { max-height: 360px; overflow-y: auto; margin: 0 -4px; padding: 0 4px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.ft-alts .ft-ap { display: flex; align-items: center; gap: 5px; margin: 2px 0 0; }
.ft-alts .ft-ap.unk { color: var(--wait); }
.ft-alts .ft-ap.over { color: var(--needs); }
.ft-alts .ft-whyl { margin: 0; color: var(--faint); }
.ft-alt.ft-over .tile, .ft-alt.ft-over b { opacity: .55; }
.pill.ft-dis { opacity: .5; }
.ft-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.plans-free .ev .not-yet { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- a tap always answers (app.js, "a tap always answers") ---------- */
/* pressed: every button, pill, chip and row dips the moment a finger or the mouse is down. The dip is the `scale`
   property, not `transform`, so it adds to a transform the element already has: the ask bar and the dock's buttons are
   centred with transform: translateX(-50%), and a transform here replaced it, so the bar jumped aside under the finger
   and the tap landed on whatever was behind it. No transition of its own either, so each element keeps its own. */
:is(button, [role=button], a.primary, a.pill, .chip, .pill, .icon):not(:disabled):active { scale: .96; opacity: .82; }
:is(a.row-item, button.row-item, .card[role=button]):not(:disabled):active { scale: .99; opacity: .75; }
/* the dock's glass buttons only dip: dimmed, the page behind would show through them */
#askbar:active, #dockbtn:active { opacity: 1; }
.tabbar a:active { opacity: .6; }
/* sending: the button's label gives way to a spinner in its own color until the answer is back; a row keeps its words
   and the spinner sits at its end. A button that's changing something takes no second tap meanwhile (app.js). */
[data-pending-shown] { position: relative; cursor: progress; }
[data-pending-shown=""] { color: transparent !important; }
[data-pending-shown=""] > * { visibility: hidden; }
[data-pending-shown]::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2px solid color-mix(in srgb, var(--pend-ink, var(--ink)) 25%, transparent);
  border-top-color: var(--pend-ink, var(--ink)); animation: spin .8s linear infinite; pointer-events: none; }
[data-pending-shown="row"] { opacity: .7; }
[data-pending-shown="row"]::after { left: auto; right: 18px; }
/* a tap's request on its way: a thin bar sliding along the top */
.net-bar { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; pointer-events: none; }
.net-bar::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 0 3px 3px 0;
  background: var(--accent); animation: net-slide 1.1s ease-in-out infinite; }
@keyframes net-slide { from { left: -40%; } to { left: 100%; } }
/* offline: a line pinned under the top edge for as long as it lasts */
.offline { position: fixed; z-index: 45; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: max-content;
  max-width: calc(100% - 32px); margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 14px;
  background: var(--needs-bg); color: var(--needs); box-shadow: var(--shadow); }
/* a list or screen whose data didn't come: what happened, and Try again */
.load-error { margin-top: 18px; }
.load-error h3 { margin: 0 0 4px; }
.load-error .sub { margin: 0 0 12px; }
.load-error .pill { height: 44px; padding: 0 20px; }
/* placeholders: lines, and an event-shaped row (a tile and three lines) */
.skeleton.line { display: block; height: 14px; border-radius: 7px; margin: 8px 0; }
.skeleton.line.short { width: 30%; } .skeleton.line.mid { width: 60%; } .skeleton.line.title { height: 30px; width: 45%; margin-top: 8px; }
.ghost-event { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0 22px; }
.ghost-event .tile { flex: none; width: 64px; height: 64px; margin: 0; border-radius: 16px; }
.ghost-event .ghost-lines { flex: 1; min-width: 0; padding-top: 2px; }
.ghost-event .skeleton.line { margin: 0 0 10px; }
.ghost-event .skeleton.line:nth-child(2) { height: 18px; width: 85%; }
/* the launch screen while the app finds out who you are */
.boot { padding-top: 8px; }
.boot .skeleton.line.mid { margin-bottom: 26px; }
/* You, while its parts load: a circle for the face and a short line under each heading */
#you-page[data-loading] .you-avatar:empty { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2));
  background-size: 200% 100%; animation: shimmer 1.2s infinite; }
#you-page[data-loading] .you-sum:empty { display: block; }
#you-page[data-loading] .you-sum:empty::before { content: ""; display: inline-block; width: 140px; max-width: 60%; height: 12px; border-radius: 6px; vertical-align: middle;
  background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@media (prefers-reduced-motion: reduce) {
  :is(button, [role=button], a, .chip, .pill, .icon):active { scale: none; }
  .net-bar::before { animation-duration: 2.5s; }
}
/* one person's page while it loads: a face and two lines */
.ghost-person { display: flex; gap: 16px; align-items: center; margin: 16px 0 8px; }
.ghost-person .face { flex: none; width: 72px; height: 72px; margin: 0; border-radius: 50%; }
.ghost-person .ghost-lines { flex: 1; }
#people-me:empty { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

/* ---------- Talk to a guide (the guide flag, guide.js): the card's button, the consent sheet and the call ---------- */
.ft-guide { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; padding: 10px 14px 10px 10px;
  border-radius: 16px; background: var(--surface-2); color: var(--ink); font-weight: 650; font-size: 15px; text-align: left; }
.ft-guide > span:nth-child(2) { flex: 1; }
.ft-guide-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); }
.gd-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 14px; }
.gd-persona { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: 18px;
  border: 2px solid var(--line); background: var(--surface); }
.gd-persona.on { border-color: var(--ink); }
.gd-persona b { font-size: 17px; margin-top: 6px; }
.gd-persona small { color: var(--muted); font-size: 13px; }
.gd-face, .gc-face { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.gd-face { width: 76px; height: 76px; font-size: 30px; }
.gd-mira { background: radial-gradient(circle at 35% 30%, #c79a6a, #6b4a33 70%); }
.gd-sonia { background: radial-gradient(circle at 35% 30%, #5d6e8f, #232c3f 70%); }
.gd-facts { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.gd-facts li { display: flex; gap: 12px; align-items: flex-start; }
.gd-facts svg { color: var(--muted); margin-top: 1px; }
.gd-boxes { display: grid; gap: 8px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.gd-box { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.gd-box input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.gd-note { margin: 12px 2px 0; font-size: 14px; color: var(--muted); }
.gd-bar { flex-direction: column; gap: 4px; }
.gd-bar > .gd-go { flex: none; height: 56px; font-size: 17px; }  /* full size: in a column bar, flex: 1 squeezed it to its text */
.gd-fine { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.gd-fine-btn { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 650; color: var(--muted);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.gd-type { align-self: center; }
.gd-toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 24px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 60;
  max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.gd-toast.on { opacity: 1; transform: translate(-50%, 0); }

.guide-call { border: 0; padding: 0; margin: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; color: #fff;
  background: #2a2420; overflow: hidden; }
.guide-call::backdrop { background: rgba(0, 0, 0, .6); }
.guide-call[open] { display: flex; flex-direction: column; }
.gc-stage { position: absolute; top: 0; left: 0; right: 0; height: 100%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 30%, #8a6b4e 0%, #3a2c22 60%, #1d1714 100%);
  transition: top .35s cubic-bezier(.2, .8, .2, 1), left .35s cubic-bezier(.2, .8, .2, 1), right .35s cubic-bezier(.2, .8, .2, 1),
    height .35s cubic-bezier(.2, .8, .2, 1), border-radius .35s; }
.gc-face { width: min(46vw, 260px); height: min(46vw, 260px); font-size: min(20vw, 110px); transform: translateY(-8%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.guide-call[data-state="connecting"] .gc-face { animation: gc-breathe 1.8s ease-in-out infinite; }
@keyframes gc-breathe { 50% { transform: translateY(-8%) scale(1.04); opacity: .85; } }
.gc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.gc-top { position: relative; display: flex; justify-content: space-between; align-items: center;
  padding: calc(14px + var(--safe-t)) 16px 0; z-index: 2; }
.gc-who, .gc-clock { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 650; }
.gc-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a4f; }
.guide-call[data-state="connecting"] .gc-dot { background: #f2b765; }
.gc-ai { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 8px; background: rgba(255, 255, 255, .22); }
.gc-clock { font-variant-numeric: tabular-nums; }
.gc-clock.low { color: #ffb4ad; }
.gc-heard { position: relative; z-index: 2; padding: 12px 16px 0; }
.gc-heard small { color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; }
.gc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gc-chip { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); font-size: 14px; font-weight: 650; }
.gc-chip.new { background: #fff; color: #111214; }
.gc-mid { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 0 24px 24px; text-align: center; }
.gc-status { font-size: 16px; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); max-width: 420px; }
.gc-error-acts { display: none; gap: 10px; align-items: center; }
.guide-call[data-state="error"] .gc-error-acts { display: flex; }
.guide-call[data-state="error"] .gc-error-acts .ft-link { color: #fff; }
.guide-call[data-state="error"] .gc-error-acts .pill { background: #fff; color: #111214; height: 42px; }
.guide-call[data-state="live"] .gc-status:empty { display: none; }
.gc-low { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 0 16px calc(16px + var(--safe-b)); }
.guide-call:not([data-state="live"]) .gc-caps, .guide-call:not([data-state="live"]) .gc-mark,
.guide-call:not([data-state="live"]) .gc-listen, .guide-call:not([data-state="live"]) #gc-cc,
.guide-call:not([data-state="live"]) #gc-kb, .guide-call:not([data-state="live"]) #gc-mic,
.guide-call:not([data-state="live"]) #gc-picks { visibility: hidden; }
.gc-caps { display: grid; gap: 8px; }
.gc-cap { padding: 10px 14px; border-radius: 16px; background: rgba(12, 10, 9, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gc-cap.guide { background: rgba(24, 40, 34, .78); }
.gc-cap small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.gc-cap p { margin: 2px 0 0; font-size: 17px; line-height: 1.35; }
.gc-mark { align-self: flex-end; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: rgba(0, 0, 0, .4); color: rgba(255, 255, 255, .8); }
.gc-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.gc-btn { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; flex: none; }
.gc-btn.light { background: #fff; color: #111214; }
.gc-btn.light.off { background: rgba(255, 255, 255, .2); color: #fff; }
.gc-btn.off { opacity: .55; }
.gc-btn.on { background: #fff; color: #111214; }
@media (max-width: 380px) { .gc-bar { gap: 8px; } .gc-btn { width: 54px; height: 54px; } }
.gc-btn.end { width: 76px; border-radius: 999px; background: #e5382f; }
.gc-listen { display: none; }
.gc-type { display: flex; gap: 8px; }
.gc-type input { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 0; padding: 0 16px; font: inherit; font-size: 16px;
  background: #fff; color: #111214; }
.gc-type .pill { height: 46px; background: #fff; color: #111214; }
/* a pick on screen, like FaceTime: the video shrinks to a rounded frame at the top so nothing covers the guide's face, and
   the guide's words, the card and the buttons sit below it on the page's own background */
.guide-call { --gc-vh: min(38dvh, 340px); }
.guide-call.picking { background: var(--bg); color: var(--ink); padding-top: calc(var(--gc-vh) + 18px + var(--safe-t)); }
.guide-call.picking .gc-stage { top: calc(8px + var(--safe-t)); left: 12px; right: 12px; height: var(--gc-vh); border-radius: 24px; }
.guide-call.picking .gc-face { width: calc(var(--gc-vh) * .5); height: calc(var(--gc-vh) * .5); font-size: calc(var(--gc-vh) * .22); transform: none; }
.guide-call.picking .gc-top { position: absolute; top: calc(8px + var(--safe-t)); left: 12px; right: 12px; padding: 10px 10px 0; color: #fff; }
.guide-call.picking .gc-mid { flex: none; padding: 0 16px 6px; }
.guide-call.picking .gc-status { color: var(--ink); text-shadow: none; }
.guide-call.picking .gc-low { flex: 1; min-height: 0; overflow-y: auto; }
.guide-call.picking .gc-bar { margin-top: auto; }
.gc-pick { color: var(--ink); }
.gc-pick-top { display: flex; justify-content: space-between; align-items: center; min-height: 30px; margin-bottom: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.gc-pick-top { cursor: pointer; }
.gc-pick-top #gc-pick-day { flex: 1; }
.gc-pick-hint { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.gc-pick-card { cursor: pointer; }
/* Picks in the bar: on (filled) shows the panel, off just talks; a dot says a pick is waiting */
#gc-picks { position: relative; }
#gc-picks:not(.off) { background: #fff; color: #111214; }
#gc-picks.waiting::after { content: ""; position: absolute; top: 9px; right: 9px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--going); box-shadow: 0 0 0 2px #2a2420; }
.guide-call.picking #gc-picks:not(.off) { background: var(--ink); color: var(--bg); }
.gc-added { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--going-bg);
  color: var(--going); text-transform: none; letter-spacing: 0; font-size: 14px; }
.gc-pick-card { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.gc-pick-body { display: flex; gap: 14px; align-items: flex-start; }
.gc-pick-body > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gc-pick-body small { color: var(--muted); font-size: 13px; }
.gc-pick-body b { font-size: 18px; line-height: 1.25; }
.gc-meta { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.gc-meta svg { margin-top: 2px; }
.gc-meta.why { color: var(--pending); font-weight: 600; }
.gc-pick-acts { display: flex; gap: 8px; margin-top: 14px; }
.gc-pick-acts .pill { flex: 1; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; }
.gc-pick-acts .pill.done { background: var(--going-bg); color: var(--going); opacity: 1; }
.gc-pick-acts .ft-link { padding: 0 18px; border-radius: 999px; background: var(--surface-2); }
.guide-call.picking .gc-heard { display: none; }
.guide-call.picking .gc-caps .gc-cap.you { display: none; }
.guide-call.picking .gc-low { background: var(--bg); padding-top: 0; }
.guide-call.picking .gc-caps { margin: 0 0 -4px; }
.guide-call.picking .gc-caps, .guide-call.picking .gc-mark { order: -1; }
.guide-call.picking .gc-mark { display: none; }
.guide-call.picking .gc-bar { padding-top: 6px; }
.guide-call.picking .gc-btn:not(.end) { background: var(--surface-2); color: var(--ink); }
.guide-call.picking .gc-btn.light { background: var(--surface-2); color: var(--ink); }
.guide-call.picking #gc-cc, .guide-call.picking #gc-kb { display: none; }
.guide-call.picking .gc-listen { display: flex; flex: 1; align-items: center; gap: 4px; height: 52px; padding: 0 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.gc-listen i { width: 3px; height: 10px; border-radius: 2px; background: var(--going); opacity: .6; }
.gc-listen i:nth-child(2), .gc-listen i:nth-child(3) { height: 16px; }
.gc-listen.on i { animation: gc-bars .8s ease-in-out infinite; opacity: 1; }
.gc-listen.on i:nth-child(2) { animation-delay: .1s; } .gc-listen.on i:nth-child(3) { animation-delay: .2s; } .gc-listen.on i:nth-child(4) { animation-delay: .3s; }
@keyframes gc-bars { 50% { transform: scaleY(.4); } }
.gc-listen span { margin-left: 8px; }
.guide-call.picking .gc-caps .gc-cap.guide { background: var(--surface-2); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.guide-call.picking .gc-caps .gc-cap.guide small { color: var(--muted); }
.guide-call.picking .gc-caps .gc-cap.guide p { font-size: 16px; }
@media (min-width: 900px) {
  .guide-call { width: min(440px, 92vw); height: min(900px, 94dvh); margin: auto; border-radius: 28px; box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
}
@media (prefers-reduced-motion: reduce) {
  .guide-call[data-state="connecting"] .gc-face, .gc-listen.on i { animation: none; }
  .gc-stage { transition: none; }
}

/* ---------- Connect: your QR code (the connect_qr flag, connect.js) ----------
   Chips for each network over a sideways track of cards, one per network, that snaps; the card is always white with a
   dark code, in dark mode too, so it scans anywhere. Networks not built yet are greyed cards marked Coming soon. */
#sheet-body[data-sheet="connect"] h2 { margin: 6px 0 2px; font-size: 24px; letter-spacing: -.01em; }
.cx-sub { margin: 0 0 14px; }
.cx-wait { margin: 40px auto; }
.cx-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 14px; }
.cx-tabs::-webkit-scrollbar { display: none; }
.cx-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 8px; border-radius: 999px;
          border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 650; color: var(--ink); }
.cx-tab.soon { color: var(--faint); }
.cx-tab.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cx-tab.soon.on { background: var(--surface-2); border-color: var(--surface-2); color: var(--ink); }
.cx-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx-mark { width: 20px; height: 20px; border-radius: 5px; display: inline-grid; place-items: center; flex: none; color: #fff;
           font: 800 12px/1 Arial, Helvetica, sans-serif; }
.cx-mark.linkedin { background: #0a66c2; }
.cx-mark.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.cx-mark.x, .cx-mark.tiktok { background: #111214; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.cx-tab.soon .cx-mark { filter: grayscale(1); opacity: .45; }
.cx-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
            margin: 0 -20px; padding: 2px 20px 8px; scroll-padding: 0 20px; }
.cx-track::-webkit-scrollbar { display: none; }
.cx-track:focus-visible { outline: none; }
.cx-track:focus-visible .cx-card { box-shadow: 0 0 0 2px var(--accent); }
.cx-card { flex: 0 0 calc(100% - 28px); min-width: 0; scroll-snap-align: center; position: relative; padding: 20px 20px 18px;
           border-radius: 26px; background: #fff; color: #111214; text-align: center;
           box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(17, 18, 20, .05); }
.cx-who { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 16px; }
.cx-who-text { min-width: 0; }
.cx-av { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #dcecfb;
         color: #0a4f96; font-weight: 750; font-size: 17px; }
.cx-name { font-size: 18px; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.cx-line { font-size: 13.5px; color: #6b6e76; margin-top: 2px; overflow-wrap: anywhere; }
.cx-qr { position: relative; width: min(236px, 100%); aspect-ratio: 1; margin: 0 auto; }
.cx-qr svg { display: block; width: 100%; height: 100%; }
.cx-qr-mid { position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%); border-radius: 12px;
             background: #fff; display: grid; place-items: center; }
.cx-qr-mid .cx-mark { width: 80%; height: 80%; border-radius: 9px; font-size: 24px; }
.cx-cap { font-size: 14px; color: #6b6e76; margin: 14px 0 0; }
.cx-cap b { color: #111214; }
.cx-card.soon .cx-who { opacity: .45; }
.cx-ghost { border-radius: 14px; opacity: .5;
            background: repeating-conic-gradient(#e6e4de 0 25%, transparent 0 50%) 0 0 / 22px 22px; filter: blur(2px); }
.cx-soon { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 190px; }
.cx-pill { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #ecebe6; color: #111214; font-size: 13px; font-weight: 700; }
.cx-soon p { margin: 10px 0 0; font-size: 14px; line-height: 1.35; color: #6b6e76; }
.cx-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 2px; }
.cx-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .2s; }
.cx-dots i.on { width: 18px; background: var(--ink); }
.cx-acts { display: flex; gap: 10px; margin-top: 14px; }
.cx-acts:empty { display: none; }
.cx-acts button { flex: 1; height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
                  background: var(--surface-2); color: var(--ink); font-weight: 650; font-size: 15px; }
.cx-acts button.pri { background: var(--primary); color: var(--on-primary); }
.cx-note { text-align: center; margin: 12px 0 0; }
.cx-change { margin-top: 4px; }
.cx-add { text-align: left; }
.cx-empty { width: min(236px, 100%); aspect-ratio: 1; margin: 0 auto 14px; border-radius: 20px; border: 2px dashed #d8d6cf;
            display: grid; place-items: center; color: #9b9da4; }
.cx-form label { font-size: 13px; font-weight: 650; color: #6b6e76; }
.cx-form input { margin-top: 6px; background: #fff; color: #111214; border-color: #e6e4de; }
.cx-form input:focus { border-color: #111214; }
.cx-form .cx-go { background: #111214; color: #fff; height: 46px; }
.cx-form .text { color: #6b6e76; }
.cx-err { margin: 8px 0 0; font-size: 14px; color: #c62828; }
@media (prefers-reduced-motion: reduce) { .cx-dots i { transition: none; } }
