/* ==========================================================================
   Beebud · Gummy Pop — components
   --------------------------------------------------------------------------
   Ported 2026-10-10 from explorations/gummy/components.css (the design
   boards), plus a prototype section at the end for what only the live
   screens need. Roles only; no raw hex below this line.
   ========================================================================== */

.screen { background: var(--bg-canvas); color: var(--text); font: var(--body); padding-bottom: 96px; }
.screen--nonav { padding-bottom: 0; }
.screen *, .device * { box-sizing: border-box; }
.device { font-family: var(--font-body); color: var(--text); }

/* ---- Header ------------------------------------------------------------- */
.top { display: flex; justify-content: space-between; align-items: center; padding: var(--s-1) var(--s-5) 0; gap: var(--s-2); }
.top__end { display: flex; gap: var(--s-2); }
.mark { display: block; width: 104px; height: 29px; flex: none; }   /* smiley + wordmark lockup, Figma 2026-10-11; shrunk from 134x37 on 2026-10-17 */
.iconbtn { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--bg-card); color: var(--text); display: grid; place-items: center; font-size: 20px; border: 0; position: relative; }
.iconbtn--round { border-radius: var(--r-pill); }
.iconbtn[data-dot]::after { content: ""; position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--selected-bg); border: 2px solid var(--bg-card); }

.headline { font: var(--display-xl); letter-spacing: -.044em; padding: var(--s-5); }   /* 20 all round, one line, no highlight */

/* Section rhythm, Figma 2026-10-11: 32 above a section, 8 from its title to
   its content, so a title reads as belonging to what's under it rather than
   floating between two groups. Titles sit 4px in; a See all link 10px in. */
.section { padding: var(--s-8) var(--gutter) 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 10px var(--s-2) var(--s-1); }
/* The first section straight under a headline doesn't need the 32: the
   headline's own 20 already separates them. */
.headline + .screen__body > .section:first-child { padding-top: 0; }
.section__title { font: var(--title); letter-spacing: var(--tight); }
.section__link { font: var(--label); color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* ---- Chips -------------------------------------------------------------- */
.chips { display: flex; gap: 6px; padding: 0 var(--s-5) var(--s-2); overflow: hidden; }
.chip { font: var(--label); padding: 9px 12px; border-radius: var(--r-md); background: var(--bg-card); color: var(--text); white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; border: 0; }
.chip[aria-pressed="true"] { background: var(--selected-bg); color: var(--selected-text); }
.chip[aria-pressed="true"]::before { content: "\2713"; }

/* why-it-fits traits */
.traits { display: flex; flex-wrap: wrap; gap: 5px; }
.trait { font: var(--label); font-size: 11px; padding: 7px 9px; border-radius: var(--r-sm); background: var(--fit-soft); color: var(--fit-text); }
.trait::after { content: " \2713"; }
.trait--miss { background: var(--bg-sunken); color: var(--text-muted); }
.trait--miss::after { content: ""; }
.on-event .trait { background: var(--event-chip-bg); color: var(--event-text); }

/* ---- Buttons ------------------------------------------------------------ */
.btn { font: 700 15px/1 var(--font-body); height: 52px; padding: 0 var(--s-6); border-radius: var(--r-pill); border: 0; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); transition: transform .15s var(--ease-pop); white-space: nowrap; }
.btn:active { transform: var(--squish); }
.btn--primary:active { background: var(--action-bg-press); }
.btn--primary { background: var(--action-bg); color: var(--action-text); }
.btn--secondary { background: var(--bg-card); color: var(--text); }
.btn--sm { height: 40px; padding: 0 var(--s-4); font-size: 13px; }
.btn--block { width: 100%; }
.btn--icon { width: 52px; padding: 0; font-size: 22px; }
.btn--done { background: var(--fit-bg); color: var(--fit-text); }

/* ---- Fit ---------------------------------------------------------------- */
/* Large: sits beside the title, never on the poster. */
/* A rounded square, same family as the small tile (2026-10-11) — the tilted
   blob was the one odd shape out. */
.fit { flex: none; width: 72px; height: 72px; border-radius: var(--r-lg); background: var(--fit-bg); color: var(--fit-text); display: grid; place-items: center; text-align: center; }
/* The number and "% you" are one tight stack, centred in the shape —
   Figma 2026-10-11: the label sits in its own box (4px above and below on
   the large square, 1px on the tile) instead of floating in a body-text line. */
.fit > div { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.fit b { font: var(--fit-num); letter-spacing: -.04em; display: block; }
.fit small { font: var(--label); font-size: 10px; line-height: 10px; display: block; padding: 4px 2px; }
/* Small: the tile, for list rows. */
.fit--s { width: 48px; height: 48px; border-radius: var(--r-md); transform: none; }
.fit--s b { font-size: 18px; }
.fit--s small { font-size: 9px; line-height: 9px; padding: 1px 0; }

/* ---- Event cards -------------------------------------------------------- */
.poster { background: var(--bg-sunken) center / cover no-repeat; }

.event { background: var(--event-bg); color: var(--event-text); border-radius: var(--r-xl); padding: var(--s-3); }
.event .poster { height: 196px; border-radius: var(--r-arch); }
.event--detail .poster { height: 168px; }
.event__info { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-4) var(--s-2) var(--s-3); }
.event__text { flex: 1; min-width: 0; }
.event__title { font: 800 26px/.95 var(--font-display); letter-spacing: var(--tight); }
.event__meta { font: var(--body-s); opacity: .85; padding-top: 6px; }
.event .traits { padding: 0 var(--s-1) var(--s-1); }

.row { display: flex; gap: var(--s-3); align-items: center; background: var(--bg-card); border-radius: var(--r-xl); padding: var(--s-3); }
.row + .row { margin-top: var(--s-2); }
.row .poster { width: 64px; height: 64px; border-radius: var(--r-lg); flex: none; }
.row__text { flex: 1; min-width: 0; }
.row__title { font: var(--card-title); letter-spacing: var(--tight); font-size: 17px; }
.row__meta { font: var(--caption); color: var(--text-muted); padding-top: 4px; }

/* ---- People ------------------------------------------------------------- */
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 800 17px/1 var(--font-display); background: var(--bg-card) center / cover; color: var(--text); }
.avatar--lg { width: 72px; height: 72px; font-size: 26px; }
.avatar--xl { width: 96px; height: 96px; }
.avatar--xs { width: 28px; height: 28px; font-size: 11px; border: 2px solid var(--bg-card); }
.avatar[data-tone="gum"]    { background-color: var(--people-soft); }
.avatar[data-tone="cobalt"] { background-color: var(--event-soft); }
.avatar[data-tone="lime"]   { background-color: var(--people-soft); }   /* no lime on people */
.stack { display: flex; }
.stack .avatar + .avatar { margin-left: -8px; }

.request { background: var(--people-bg); color: var(--people-text); border-radius: var(--r-xl); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.request__who { display: flex; gap: var(--s-3); align-items: center; }
.request__name { font: var(--card-title); letter-spacing: var(--tight); }
.request__meta { font: var(--caption); padding-top: 4px; }
.request .trait { background: var(--bg-card); }
.request__actions { display: flex; gap: var(--s-2); }
.request__actions .btn { flex: 1; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.tile { background: var(--bg-card); border-radius: var(--r-xl); padding: var(--s-4) var(--s-3) var(--s-3); display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); position: relative; }
.tile__x { position: absolute; top: 10px; right: 12px; color: var(--text-muted); font-size: 16px; }
.tile__name { font: var(--card-title); font-size: 16px; letter-spacing: var(--tight); }
.tile__why { font: var(--caption); color: var(--text-muted); min-height: 28px; }

.person { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-1); }
.person + .person { border-top: 1.5px solid var(--line); }
.person__name { font: 700 15px/1.1 var(--font-body); }
.person__meta { font: var(--caption); color: var(--text-muted); padding-top: 3px; }
.person .ms-chev { margin-left: auto; color: var(--line-strong); font-size: 18px; }

/* ---- Info rows (event detail) ------------------------------------------- */
.info { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-2) 0; }
.info__icon { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--bg-card); display: grid; place-items: center; font-size: 20px; color: var(--text); }
.info__main { font: 700 15px/1.2 var(--font-body); }
.info__sub { font: var(--caption); color: var(--text-muted); padding-top: 2px; }
.info .stack { margin-left: auto; }

/* ---- Spectrum (how I show up) ------------------------------------------------------------ */
/* View: the answer is the headline, the five steps are a footnote. Bento grid on Profile. */
.vibes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.vibe { background: var(--people-soft); border-radius: var(--r-xl); padding: var(--s-3) var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.vibe--wide { grid-column: 1 / -1; }
.vibe__label { font: var(--caption); color: var(--text-muted); }
.vibe__value { font: 800 20px/1.3 var(--font-display); letter-spacing: var(--tight); flex: 1; }

/* Edit: five chunky segments, the picked one goes pink. Also onboarding and feedback. */
.vibe-edit { background: var(--bg-card); border-radius: var(--r-xl); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.vibe-edit + .vibe-edit { margin-top: var(--s-2); }
.vibe-edit__head { display: flex; align-items: center; gap: var(--s-2); }
.vibe-edit__name { font: var(--card-title); font-size: 16px; letter-spacing: var(--tight); }
.vibe-edit__value { font: var(--label); margin-left: auto; }
.vibe-edit__head .ms { font-size: 18px; color: var(--text); }
.vibe-edit__head .ms-eyeOff { color: var(--text-muted); }
.vibe-edit[data-hidden] .vibe-edit__name, .vibe-edit[data-hidden] .vibe-edit__value { color: var(--text-muted); }
.vibe-ends { display: flex; justify-content: space-between; font: var(--caption); color: var(--text-muted); }

/* The five steps, shared by both. View draws them as thin pips, Edit as segments. */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.steps i { height: 6px; border-radius: var(--r-pill); background: var(--people-mid); }
.steps i.on { background: var(--nav-bg); }
.steps--edit i { height: 34px; border-radius: var(--r-sm); background: var(--bg-sunken); }
.steps--edit i:first-child { border-radius: var(--r-md) var(--r-sm) var(--r-sm) var(--r-md); }
.steps--edit i:last-child  { border-radius: var(--r-sm) var(--r-md) var(--r-md) var(--r-sm); }
.steps--edit i.on { background: var(--selected-bg); box-shadow: inset 0 0 0 2.5px var(--nav-bg); }

/* ---- Segmented ----------------------------------------------------------- */
.seg { display: inline-flex; background: var(--bg-card); border-radius: var(--r-pill); padding: 4px; }
.seg span { font: var(--label); padding: 9px 16px; border-radius: var(--r-pill); }
.seg [aria-selected="true"] { background: var(--nav-bg); color: var(--text-on-color); }

/* ---- Nav pill ------------------------------------------------------------ */
.nav { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--nav-bg); border-radius: var(--r-pill); display: flex; gap: 8px; padding: 7px; z-index: 5; }   /* enlarged 2026-10-17: was 214x52, now 270x64 */
.nav i { color: var(--nav-icon); font-size: 21px; width: 46px; height: 40px; display: grid; place-items: center; border-radius: var(--r-pill); position: relative; }
.nav i.on { background: var(--nav-active-bg); color: var(--nav-active-icon); }
.nav i[data-dot]::after { content: ""; position: absolute; top: 7px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--selected-bg); }

/* ---- Onboarding ------------------------------------------------------------ */
/* Progress: the same chunky segments as the spectrum, one per counted step. */
.progress { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-1) var(--s-5) 0; }
.progress__bar { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.progress__bar i { height: 8px; border-radius: var(--r-pill); background: var(--bg-sunken); }
.progress__bar i.on { background: var(--nav-bg); }
.progress__count { font: var(--label); color: var(--text-muted); }

.onb-title { font: var(--display-xl); letter-spacing: -.044em; padding: var(--s-6) var(--s-5) var(--s-2); }
.onb-sub { font: var(--body); color: var(--text-muted); padding: 0 var(--s-5) var(--s-2); }

/* The CTA sits on the canvas at the bottom; onboarding has no nav yet. */
.onb-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-3) var(--s-5) var(--s-6); background: var(--bg-canvas); display: flex; flex-direction: column; align-items: center; gap: var(--s-3); z-index: 5; }
.onb-bar__alt { font: var(--label); color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.photopick { width: 112px; height: 112px; border-radius: 50%; border: 2.5px dashed var(--line-strong); background: var(--bg-card); display: grid; place-items: center; text-align: center; color: var(--text-muted); font: var(--label); margin: var(--s-4) auto var(--s-2); }
.photopick .ms { display: block; font-size: 28px; color: var(--text); margin-bottom: 4px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: var(--s-3); }
.field__label { font: var(--label); padding-left: var(--s-1); }
.field__input { height: 56px; border-radius: var(--r-lg); background: var(--bg-card); padding: 0 var(--s-4); display: flex; align-items: center; font: 500 16px/1 var(--font-body); color: var(--text); border: 2px solid transparent; }
.field__input--focus { border-color: var(--nav-bg); }
.field__input--empty { color: var(--line-strong); }

.chip--lg { font-size: 14px; padding: 12px 15px; border-radius: var(--r-lg); }
.chip--lg .ms { font-size: 17px; }
.chip--lg[aria-pressed="true"]::before { content: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; gap: var(--s-2); }

/* Welcome: a pile of the product's own pieces, so screen one already looks like the app. */
.collage { position: relative; height: 330px; margin-top: var(--s-2); }
.collage > * { position: absolute; }
.collage .event { width: 168px; padding: 8px; }
.collage .event .poster { height: 132px; }
.collage .event__title { font-size: 17px; padding: 10px 4px 4px; }

/* ---- Lists: Your events, Notifications, Settings ------------------------- */
/* Tabs reuse .seg. Pill: navy = needs you, sunken = just so you know. */
.seg--tabs { display: flex; margin: 0 var(--s-5); }
.seg--tabs span { flex: 1; text-align: center; padding: 10px 0; }
.pill { font: var(--label); font-size: 11px; padding: 6px 9px; border-radius: var(--r-pill); background: var(--bg-sunken); color: var(--text); white-space: nowrap; }
.pill--act { background: var(--nav-bg); color: var(--text-on-color); }
.row__foot { display: flex; align-items: center; gap: 6px; padding-top: 8px; }
.row__foot .stack { margin-left: 2px; }
.row__foot small { font: var(--caption); color: var(--text-muted); }
.row--top { align-items: flex-start; }

/* No poster yet: an event-coloured tile with an icon, never a broken image. */
.poster--empty { background: var(--event-bg); color: var(--event-text); display: grid; place-items: center; font-size: 26px; }

.notif { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3); border-radius: var(--r-xl); position: relative; }
.notif + .notif { margin-top: var(--s-2); }
.notif--new { background: var(--bg-card); }
.notif--new::after { content: ""; position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--selected-bg); box-shadow: 0 0 0 2px var(--nav-bg); }
.notif__icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 19px; }
.notif__icon[data-kind="event"]  { background: var(--event-bg); color: var(--event-text); }
.notif__icon[data-kind="people"] { background: var(--people-bg); color: var(--people-text); }
.notif__icon[data-kind="fit"]    { background: var(--fit-bg); color: var(--fit-text); }
.notif__title { font: 700 14px/1.3 var(--font-body); padding-right: var(--s-5); }
.notif__meta { font: var(--caption); color: var(--text-muted); padding-top: 3px; }
.notif__to { font: var(--label); font-size: 11px; color: var(--link); padding-top: 6px; display: flex; align-items: center; gap: 2px; }

.listgroup { background: var(--bg-card); border-radius: var(--r-xl); overflow: hidden; }
.listrow { display: flex; align-items: center; gap: var(--s-3); padding: 14px var(--s-4); min-height: 56px; }
.listrow + .listrow { border-top: 1.5px solid var(--line); }
.listrow > .ms:first-child { font-size: 20px; }
.listrow__k { font: 700 15px/1.2 var(--font-body); flex: 1; }
.listrow__k small { display: block; font: var(--caption); color: var(--text-muted); padding-top: 3px; }
.listrow__v { font: var(--body-s); color: var(--text-muted); }
.listrow .ms-chev { color: var(--line-strong); font-size: 18px; }
.hint { font: var(--caption); color: var(--text-muted); padding: var(--s-2) var(--s-2) 0; }

/* Switch: pink when on, same as anything else you turned on. */
.switch { flex: none; width: 52px; height: 32px; border-radius: var(--r-pill); background: var(--bg-sunken); position: relative; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-card); box-shadow: 0 0 0 2px var(--line-strong); }
.switch[aria-checked="true"] { background: var(--selected-bg); }
.switch[aria-checked="true"]::after { left: 24px; box-shadow: 0 0 0 2.5px var(--nav-bg); }

/* ---- Feedback ---------------------------------------------------------------- */
.choice { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-xl); background: var(--bg-card); font: 700 15px/1.2 var(--font-body); }
.choice + .choice { margin-top: var(--s-2); }
.choice .ms { font-size: 24px; }
.choice[aria-checked="true"] { background: var(--selected-bg); box-shadow: inset 0 0 0 2.5px var(--nav-bg); }
/* "we guessed here": a dashed outline on the segment we predicted */
.steps--edit i.guess { background: transparent; outline: 2px dashed var(--line-strong); outline-offset: -2px; }
.guess-key { display: inline-block; width: 16px; height: 10px; border-radius: 3px; outline: 2px dashed var(--line-strong); outline-offset: -2px; vertical-align: -1px; margin-right: 4px; }

.scrim { position: absolute; inset: 0; background: rgb(18 18 58 / .45); z-index: 6; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; background: var(--bg-canvas); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s-3) var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.sheet__grab { width: 40px; height: 5px; border-radius: var(--r-pill); background: var(--line-strong); margin: 0 auto; }
.sheet__title { font: var(--title); font-size: 26px; letter-spacing: var(--tight); }
.rescore { display: flex; align-items: center; gap: var(--s-3); background: var(--bg-card); border-radius: var(--r-xl); padding: var(--s-3); }
.rescore__was { font: 800 18px/1 var(--font-display); color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.rescore .ms { color: var(--text-muted); }
.rescore__copy { font: var(--caption); color: var(--text-muted); }
.rescore__copy b { display: block; font: 700 14px/1.2 var(--font-body); color: var(--text); padding-bottom: 2px; }
.actions { display: flex; gap: var(--s-2); }
.actions .btn:first-child { flex: 1; }

/* ---- Hosting, roster, invite, edit fields, privacy ----------------------- */
/* An event with no poster inside a cobalt card: soft tile so it doesn't vanish. */
.event .poster--empty { background: var(--event-soft); color: var(--event-bg); font-size: 44px; }

/* Our guess, before you've rated it: dashed, hollow. Same dashed language as the feedback marker. */
.fit--guess { background: transparent; color: inherit; outline: 2.5px dashed currentColor; outline-offset: -2.5px; }
.on-event .fit--guess { color: var(--event-text); }

.pill--people { background: var(--people-bg); color: var(--people-text); }
.danger { color: var(--danger-text); }
.btn[disabled] { background: var(--bg-sunken); color: var(--text-muted); }

/* Roster strip: faces with first names, then a "see all" tile */
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); text-align: center; }
.faces > span { display: flex; flex-direction: column; align-items: center; gap: 6px; font: var(--caption); }
.faces .avatar { width: 52px; height: 52px; font-size: 16px; }
.faces .more { background: var(--bg-sunken); color: var(--text); }

/* Pick people: a circle that fills pink with a check */
.check { flex: none; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--line-strong); display: grid; place-items: center; font-size: 16px; color: transparent; }
.check[aria-checked="true"] { background: var(--selected-bg); border-color: var(--nav-bg); color: var(--nav-bg); }

.field__input--area { height: auto; min-height: 140px; align-items: flex-start; padding: var(--s-4); line-height: 1.45; font-weight: 400; }
.field__input--title { height: 64px; font: var(--card-title); font-size: 22px; letter-spacing: var(--tight); }
.field__foot { display: flex; justify-content: space-between; font: var(--caption); color: var(--text-muted); padding: 0 var(--s-1); }

.cover { height: 190px; border-radius: var(--r-arch); border: 2.5px dashed var(--line-strong); background: var(--bg-card); display: grid; place-items: center; text-align: center; font: var(--label); color: var(--text-muted); }
.cover .ms { display: block; font-size: 30px; color: var(--text); margin-bottom: 6px; }

/* A rule you can't change, stated plainly */
.rule { display: flex; gap: var(--s-3); background: var(--bg-card); border-radius: var(--r-xl); padding: var(--s-4); }
.rule + .rule { margin-top: var(--s-2); }
.rule > .ms { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--bg-sunken); display: grid; place-items: center; font-size: 19px; }
.rule__k { font: 700 15px/1.3 var(--font-body); }
.rule__v { font: var(--caption); color: var(--text-muted); padding-top: 4px; }
.locked { display: flex; align-items: center; gap: var(--s-2); font: var(--body-s); color: var(--text-muted); background: var(--bg-card); border-radius: var(--r-lg); padding: var(--s-3) var(--s-4); border: 2px dashed var(--line); }


/* ==========================================================================
   Prototype-only: what the live screens need beyond the boards
   ========================================================================== */

/* Material Symbols (Rounded). Outlined by default; the active nav tab fills. */
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr;
  font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; flex: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.nav__item[aria-current="page"] .ms { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.brand { display: block; flex: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font: inherit; color: inherit; cursor: pointer; }
a.row, a.notif, a.listrow, a.person, a.tile, a.vibe-edit { color: inherit; text-decoration: none; display: flex; }
a.event { display: block; text-decoration: none; }   /* keeps .event's white text */
.top { flex: none; padding-bottom: var(--s-1); }
a.iconbtn { text-decoration: none; }
.headline { margin: 0; }

/* Nav items are links in the prototype, not icons */
.nav__item { color: var(--nav-icon); width: 58px; height: 50px; display: grid; place-items: center; border-radius: var(--r-pill); position: relative; text-decoration: none; }
.nav__item[aria-current="page"] { background: var(--nav-active-bg); color: var(--nav-active-icon); }
.nav__item[data-dot]::after { content: ""; position: absolute; top: 9px; right: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--selected-bg); }
.nav__item[aria-current="page"][data-dot]::after { background: var(--nav-bg); }

/* Avatars: a photo laid over initials, so a blocked image shows the initials */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--org { border-radius: var(--r-md); background: var(--bg-sunken); }
.avatar--sm { width: 40px; height: 40px; font-size: 14px; }

/* Date filter: quieter than the tag chips — it narrows, it doesn't score */
.days { display: flex; gap: 2px; padding: var(--s-2) var(--s-5) 0; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: none; border: 0; background: none; font: var(--label); color: var(--text-muted); padding: 8px 10px; border-radius: var(--r-pill); }
.days button[aria-selected="true"] { background: var(--nav-bg); color: var(--text-on-color); }
.chips { scrollbar-width: none; overflow-x: auto; }
.chips::-webkit-scrollbar { display: none; }
button.chip { cursor: pointer; }

/* Buddies are going: a sideways strip of small white cards */
.strip { display: flex; align-items: flex-start; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.strip::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 168px; background: var(--bg-card); border-radius: var(--r-xl); padding: var(--s-2); color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: var(--s-2); }
.mini .poster { height: 120px; border-radius: var(--r-lg); position: relative; }
.mini__title { font: var(--card-title); font-size: 15px; letter-spacing: var(--tight); padding: 0 var(--s-1);
  height: 2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* always two lines tall, so every card matches */
.mini__foot { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-1) var(--s-1); }
.mini__meta { font: var(--caption); color: var(--text-muted); padding: 0 var(--s-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Empty state: an invitation, not an apology */
.empty { text-align: center; padding: var(--s-10) var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); align-items: center; }
.empty__title { font: var(--title); letter-spacing: var(--tight); }
.empty__body { font: var(--body-s); color: var(--text-muted); max-width: 28ch; }

/* Overflow menus and the photo-source menu */
.popover-scrim { position: fixed; inset: 0; z-index: 8; }
.popover { position: absolute; z-index: 9; min-width: 200px; background: var(--bg-card); border-radius: var(--r-lg); padding: 6px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; }
.popover--left { left: 0; top: calc(100% + 8px); }
.popover--center { left: 50%; transform: translateX(-50%); top: calc(100% + 8px); }
.popover--right { right: 0; top: calc(100% + 8px); }
.popover--up { bottom: calc(100% + 8px); top: auto; }
.popover__item { display: flex; align-items: center; gap: var(--s-3); padding: 12px; border-radius: var(--r-md); font: 700 14px/1 var(--font-body); color: var(--text); background: none; border: 0; text-align: left; white-space: nowrap; text-decoration: none; }
.popover__item:hover { background: var(--bg-canvas); }
.popover__item.danger { color: var(--danger-text); }

/* Small confirmation line after an action */
.toast { position: absolute; left: var(--s-4); right: var(--s-4); bottom: 92px; z-index: 8; background: var(--nav-bg); color: var(--text-on-color); border-radius: var(--r-lg); padding: 14px var(--s-4); font: 700 14px/1.3 var(--font-body); display: flex; align-items: center; gap: var(--s-2); }
.nav__item i { width: auto; height: auto; background: none; color: inherit; display: inline; }
.section { position: relative; }
[hidden] { display: none !important; }   /* components set display; hidden must still win */
.seg button { border: 0; background: none; font: var(--label); padding: 9px 16px; border-radius: var(--r-pill); color: var(--text); }
.seg--tabs button { flex: 1; padding: 10px 0; font-size: 16px; }
.seg button[aria-selected="true"] { background: var(--nav-bg); color: var(--text-on-color); }

/* ---- Profile (prototype) ------------------------------------------------- */
/* Steps as real buttons when you can set them */
.steps button { border: 0; padding: 0; }
.steps--edit button { height: 34px; border-radius: var(--r-sm); background: var(--bg-sunken); }
.steps--edit button:first-child { border-radius: var(--r-md) var(--r-sm) var(--r-sm) var(--r-md); }
.steps--edit button:last-child  { border-radius: var(--r-sm) var(--r-md) var(--r-md) var(--r-sm); }
.steps--edit button[aria-checked="true"] { background: var(--selected-bg); box-shadow: inset 0 0 0 2.5px var(--nav-bg); }
.eyebtn { border: 0; background: none; padding: 4px; margin: -4px; display: grid; place-items: center; color: var(--text); }
.eyebtn[aria-pressed="false"] { color: var(--text-muted); }

.phead { display: flex; gap: 14px; align-items: center; padding: var(--s-4) var(--s-5) 0; position: relative; }
.phead__name { font: var(--display-l); letter-spacing: var(--tight); }
.phead__sub { font: var(--body-s); color: var(--text-muted); padding-top: 6px; }
.pbio { font: var(--body); margin: 0; padding: var(--s-4) var(--s-5) 0; }
.sns { display: flex; gap: var(--s-2); padding: var(--s-3) var(--s-5) 0; }

.avatar-edit { position: relative; display: block; margin: var(--s-4) auto var(--s-2); border: 0; background: none; padding: 0; width: 96px; }
.avatar-edit .avatar { width: 96px; height: 96px; font-size: 30px; }
.avatar-edit__badge { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--nav-bg); color: var(--text-on-color); display: grid; place-items: center; border: 3px solid var(--bg-canvas); }

.savebar { position: relative; z-index: 4; margin: var(--s-4) var(--gutter) 0; }
.savebar--dirty { position: sticky; bottom: 84px; }
.savebar--dirty .btn { box-shadow: var(--shadow-pop); }

.private { text-align: center; padding: 72px var(--s-6) 0; display: flex; flex-direction: column; gap: var(--s-3); align-items: center; }
.private .avatar { width: 96px; height: 96px; font-size: 30px; filter: grayscale(1); }
.private h3 { margin: 0; font: var(--title); letter-spacing: var(--tight); }
.private p { margin: 0; font: var(--body-s); color: var(--text-muted); max-width: 30ch; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.btn--done[disabled] { background: var(--fit-bg); color: var(--fit-text); }   /* done is good news, not unavailable */
/* A page's one commit, floating above the nav at the end of the scroll */
.actionbar { position: sticky; bottom: 84px; z-index: 4; padding: 0 var(--gutter); }
.screen--nonav .actionbar { bottom: 0; }   /* the main action takes the nav bar's spot: 18px off the bottom */
.actionbar .btn { box-shadow: var(--shadow-pop); }
.actionbar .btn[disabled] { box-shadow: none; }
.steps--edit button.guess { background: transparent; outline: 2px dashed var(--line-strong); outline-offset: -2px; }

/* ---- Host profile -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-3); position: relative; }
.stat { background: var(--bg-card); border-radius: var(--r-xl); padding: var(--s-3); display: flex; flex-direction: column; gap: 4px; }
.stat__n { font: 800 28px/1 var(--font-display); letter-spacing: var(--tight); }
.stat__k { font: var(--caption); color: var(--text-muted); }
.row + .row, a.row + a.row { margin-top: var(--s-2); }

/* ---- Edit bar: back, title, commit (invite, event form, profile field) -- */
.editbar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-1) var(--s-5) var(--s-2); position: relative; }
.editbar__back { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--bg-card); color: var(--text); display: grid; place-items: center; text-decoration: none; flex: none; }
.editbar__title { flex: 1; font: var(--card-title); letter-spacing: var(--tight); }
.editbar__save { height: 40px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-pill); background: var(--action-bg); color: var(--action-text); font: 700 14px/1 var(--font-body); }
.editbar__save[disabled] { background: var(--bg-sunken); color: var(--text-muted); }

/* Real inputs wearing the field look */
input.field__input, textarea.field__input { width: 100%; border: 2px solid transparent; outline: none; font-family: var(--font-body); color: var(--text); resize: none; }
input.field__input:focus, textarea.field__input:focus { border-color: var(--nav-bg); }
.field__input::placeholder { color: var(--line-strong); }
input.field__input--title { font: var(--card-title); font-size: 22px; letter-spacing: var(--tight); }

/* Cover picker holding a chosen image */
button.cover { width: 100%; position: relative; padding: 0; overflow: visible; }
.cover--set { border-style: solid; border-color: transparent; background: var(--bg-sunken) center / cover no-repeat; }
.cover__badge { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--nav-bg); color: var(--text-on-color); display: grid; place-items: center; }
/* The body stretches, so a page's actionbar lands at the bottom on a short
   page and still floats (sticky) on a long one. */
.screen { display: flex; flex-direction: column; }
.screen__body { flex: 1 0 auto; }
.screen--nonav .actionbar { padding-bottom: 18px; }
