/* Whim. Warm paper, ink type, one sunset accent, a soft tint per category.
   Shell copied from Cadence: fixed-height body column, one scroller, a flex tab bar. */

:root {
  --bg: #F6F1E9;
  --surface: #FFFDF9;
  --sunk: #EFE8DD;
  --ink: #1A1613;
  --ink-2: #554C44;
  --ink-3: #6E655D;
  --line: #E4DBCE;
  --line-2: #D6CBBB;
  --accent: #F0562A;          /* fills and marks only */
  --accent-ink: #B4380F;      /* accent as text: 5.6:1 on surface */
  --accent-soft: #FFE3D6;
  --good: #1F7A45;
  --night: #1A1613;
  --night-2: #2A241F;
  --cream: #FBF4E8;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --r: 18px;
  --r-sm: 12px;
  --pill: 999px;
  --gutter: 16px;
  --bar: 58px;
  --shadow: 0 1px 2px rgba(26, 22, 19, .05), 0 6px 20px -8px rgba(26, 22, 19, .14);
  --shadow-lift: 0 2px 4px rgba(26, 22, 19, .06), 0 18px 40px -12px rgba(26, 22, 19, .28);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --press: transform 140ms var(--ease-out);
}

/* Category tints: background, ink, mark. Content coding, not decoration. */
[data-cat="music"]      { --cb: #ECE6FF; --ci: #452BA8; --cm: #7B5CF0; }
[data-cat="comedy"]     { --cb: #FFF1BF; --ci: #6E5100; --cm: #E2A900; }
[data-cat="theater"]    { --cb: #FFE2E4; --ci: #9A1328; --cm: #E2394F; }
[data-cat="dance"]      { --cb: #FFE3F3; --ci: #8E1868; --cm: #D9439E; }
[data-cat="art"]        { --cb: #DCF2EC; --ci: #0C6150; --cm: #1FA085; }
[data-cat="museum"]     { --cb: #E3EBF6; --ci: #22446F; --cm: #4D7BC0; }
[data-cat="film"]       { --cb: #ECE6DF; --ci: #463B31; --cm: #8B7764; }
[data-cat="festival"]   { --cb: #FFE6D2; --ci: #973B0C; --cm: #F07A2A; }
[data-cat="market"]     { --cb: #E6F2D7; --ci: #3A6211; --cm: #6EAA2B; }
[data-cat="food_drink"] { --cb: #FFE8D4; --ci: #883800; --cm: #E8873A; }
[data-cat="sports"]     { --cb: #DDEBFF; --ci: #0B4A9E; --cm: #2F7DE1; }
[data-cat="active"]     { --cb: #EEF6CF; --ci: #4A5A00; --cm: #9DBB12; }
[data-cat="family"]     { --cb: #FFF2D3; --ci: #744D00; --cm: #E5A72A; }
[data-cat="outdoors"]   { --cb: #DEF1DF; --ci: #1B6229; --cm: #3EA552; }
[data-cat="nightlife"]  { --cb: #E7E2F6; --ci: #392A75; --cm: #6A55C2; }
[data-cat="learning"]   { --cb: #E1F0F6; --ci: #12566F; --cm: #2E93B8; }
[data-cat="community"]  { --cb: #FCE6DE; --ci: #8A2F19; --cm: #DB6A4A; }
[data-cat="wellness"]   { --cb: #E7F3EC; --ci: #285F44; --cm: #4FA37A; }

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; overflow: hidden; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.45 var(--body); -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -0.125em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
          -webkit-overflow-scrolling: touch; }
#view { max-width: 1180px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 8px) var(--gutter) 40px; }

/* ---------------------------------------------------------------- tab bar / rail */
#tabbar {
  flex: none; order: 2; display: flex; align-items: stretch; justify-content: space-around;
  height: calc(var(--bar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
#tabbar .brand, #tabbar .rail-only { display: none; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11.5px; font-weight: 600; color: var(--ink-3); position: relative;
  transition: color 160ms ease, var(--press);
}
.tab .ic { font-size: 23px; }
.tab:active { transform: scale(.94); }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] .ic { color: var(--accent); }
.badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px;
         border-radius: var(--pill); background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700;
         display: grid; place-items: center; }

@media (min-width: 900px) {
  body { flex-direction: row; }
  #tabbar {
    order: 0; flex-direction: column; justify-content: flex-start; gap: 4px; width: 232px; height: 100vh;
    padding: 28px 16px; border-top: 0; border-right: 1px solid var(--line); background: var(--bg);
  }
  #tabbar .brand { display: flex; align-items: center; gap: 6px; padding: 0 12px 26px; color: var(--ink); }
  #tabbar .brand .ic { color: var(--accent); font-size: 18px; margin-top: -14px; }
  #tabbar .rail-only { display: flex; margin-top: auto; }
  .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px;
         padding: 11px 12px; border-radius: 12px; transition: background-color 160ms ease, color 160ms ease, var(--press); }
  .tab .ic { font-size: 21px; }
  .tab[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow); }
  .badge { position: static; margin-left: auto; }
  #view { padding: 36px 40px 64px; }
}
.wordmark { font: 800 30px/1 var(--display); letter-spacing: -0.04em; }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
.page-title { font: 800 34px/1.02 var(--display); letter-spacing: -0.035em; margin: 6px 0 4px; }
.page-sub { color: var(--ink-2); margin: 0 0 18px; }
.sec { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 30px 0 12px; }
.sec h2 { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.sec h2 .ic { color: var(--accent); font-size: 18px; }
.sec .aside { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }

/* ---------------------------------------------------------------- buttons, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: var(--pill); font-weight: 650; font-size: 15.5px;
  background: var(--ink); color: var(--cream); transition: var(--press), background-color 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn .ic { font-size: 18px; }
.iconbtn {
  width: 40px; height: 40px; border-radius: var(--pill); display: grid; place-items: center; flex: none;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2);
  transition: var(--press), background-color 160ms ease, color 160ms ease;
}
.iconbtn .ic { font-size: 19px; }
.iconbtn:active { transform: scale(.92); }
.iconbtn.on { background: var(--ink); color: var(--cream); box-shadow: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: var(--press), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: none; }
.chip .ic { font-size: 15px; }
.chip[data-cat] .ic { color: var(--cm); }
.chip[data-cat][aria-pressed="true"] { background: var(--ci); }
.chip[data-cat][aria-pressed="true"] .ic { color: var(--cb); }

/* ---------------------------------------------------------------- day strip (names the day AND changes it) */
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px calc(-1 * var(--gutter)) 0;
        padding: 6px var(--gutter) 8px; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 54px; height: 64px; padding: 0 10px; border-radius: 18px; background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line); transition: var(--press), background-color 180ms ease;
}
.day:active { transform: scale(.95); }
.day .dw { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.day .dn { font: 650 21px/1.1 var(--display); }
.day .dc { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); margin-top: 3px; }
.day.busy .dc { background: var(--accent); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: none; flex-direction: row;
                            gap: 12px; padding: 0 18px 0 16px; align-items: center; }
.day[aria-pressed="true"] .dn { font-size: 34px; letter-spacing: -0.03em; }
.day[aria-pressed="true"] .dw { color: var(--cream); font-size: 13px; text-align: left; line-height: 1.25; }
.day[aria-pressed="true"] .dw b { display: block; font: 800 22px/1 var(--display); text-transform: none;
                                  letter-spacing: -0.02em; }
.day[aria-pressed="true"] .dc { display: none; }


/* ---------------------------------------------------------------- pick cards */
.picks { display: grid; gap: 14px; }
.pick {
  position: relative; overflow: hidden; border-radius: var(--r); background: var(--cb); color: var(--ink);
  padding: 18px 18px 16px; isolation: isolate; cursor: pointer;
  transition: var(--press), box-shadow 200ms ease, opacity 220ms ease;
}
.pick:active { transform: scale(.985); }
.pick .glyph { position: absolute; right: -18px; top: -14px; font-size: 132px; color: var(--cm); opacity: .16;
               z-index: -1; transform: rotate(-8deg); }
.pick .rank { font: 800 15px/1 var(--display); color: var(--ci); letter-spacing: .02em; }
.pick .cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ci);
             text-transform: uppercase; letter-spacing: .07em; }
.pick .cat .ic { font-size: 15px; color: var(--cm); }
.pick h3 { font-size: 23px; font-weight: 650; line-height: 1.1; margin: 10px 0 6px; letter-spacing: -0.025em; text-wrap: balance; }
.pick .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.pick .meta span { display: inline-flex; align-items: center; gap: 5px; }
.pick .meta .ic { color: var(--ci); opacity: .8; font-size: 14px; }
.pick .blurb { margin: 10px 0 0; font-size: 15px; color: var(--ink); }
.why { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm);
       background: rgba(255, 253, 249, .72); font-size: 14px; line-height: 1.4; color: var(--ink); }
.why .ic { color: var(--accent); font-size: 16px; margin-top: 1px; }
.pick .row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.pick .row .price { font-weight: 700; font-size: 14.5px; margin-right: auto; }
.pick .row .iconbtn { background: rgba(255, 253, 249, .8); box-shadow: none; }
.pick .row .iconbtn.on { background: var(--ink); color: var(--cream); }
.flag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--pill);
        font-size: 12px; font-weight: 700; background: var(--surface); color: var(--ink); }
.flag .ic { font-size: 13px; color: var(--accent); }
.flag.changed { background: #FFF1D6; color: #7A4B00; }
.flag.changed .ic { color: #B86E00; }
.why.changed { background: #FFF1D6; color: #5C3A00; }
.why.changed .ic { color: #B86E00; }
.why.changed a { font-weight: 650; text-decoration: underline; color: inherit; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.pick.hero { padding: 22px 20px 18px; }
.pick.hero h3 { font-size: 31px; line-height: 1.02; letter-spacing: -0.035em; margin-top: 14px; }
.pick.hero .glyph { font-size: 190px; right: -26px; top: -22px; }

/* the stretch pick: the one card that looks different on purpose */
.pick.stretch { background: var(--night); color: var(--cream); }
.pick.stretch .glyph { color: var(--accent); opacity: .22; }
.pick.stretch .meta, .pick.stretch .blurb { color: #D9CFC2; }
.pick.stretch .meta .ic { color: var(--accent); opacity: 1; }
.pick.stretch .why { background: var(--night-2); color: var(--cream); }
.pick.stretch .row .iconbtn { background: var(--night-2); color: var(--cream); }
.pick.stretch .row .iconbtn.on { background: var(--accent); }
.stretch-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
                 text-transform: uppercase; letter-spacing: .08em; color: #FFB89F; }
.stretch-label .ic { font-size: 16px; color: var(--accent); }
.pick.leaving { opacity: 0; transform: scale(.97); pointer-events: none; }

@media (min-width: 680px) {
  .picks.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .foryou-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: start; }
  .foryou-grid .side .sec:first-child { margin-top: 10px; }
}

/* ---------------------------------------------------------------- shelf (horizontal) */
.shelf { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
         margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; }
.shelf::-webkit-scrollbar { display: none; }
.mini {
  flex: none; width: 230px; scroll-snap-align: start; border-radius: 16px; background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line); padding: 14px; display: flex; flex-direction: column; gap: 6px;
  cursor: pointer; transition: var(--press);
}
.mini:active { transform: scale(.97); }
.mini .top { display: flex; align-items: center; justify-content: space-between; }
.dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--cb); color: var(--cm); flex: none; }
.dot .ic { font-size: 17px; }
.mini h4 { margin: 4px 0 0; font: 650 16.5px/1.15 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.mini .m { font-size: 13px; color: var(--ink-2); }
.mini .p { font-size: 13px; font-weight: 700; margin-top: auto; }
.mini .lc { color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.mini .lc .ic { font-size: 12px; color: var(--accent); }
@media (min-width: 1040px) {
  .side .shelf { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .side .mini { width: auto; flex-direction: row; align-items: center; gap: 12px; }
  .side .mini .top { order: 0; }
  .side .mini .body { flex: 1; min-width: 0; }
  .side .mini .p { margin-top: 0; white-space: nowrap; }
}

/* ---------------------------------------------------------------- dense rows */
.rows { background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.rowi {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px;
  border-top: 1px solid var(--line); cursor: pointer; transition: background-color 140ms ease;
}
.rowi:first-child { border-top: 0; }
.rowi:active { background: var(--sunk); }
@media (hover: hover) and (pointer: fine) { .rowi:hover { background: #FBF7F0; } }
.rowi .t { font-weight: 700; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rowi .t small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.rowi .main { min-width: 0; }
.rowi .ttl { font-weight: 650; font-size: 15.5px; line-height: 1.25; display: flex; align-items: center; gap: 7px; }
.rowi .ttl .ic { color: var(--cm); font-size: 15px; }
.rowi .sub { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .end { text-align: right; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.rowi .end .ic { color: var(--accent); }
.rowi.saved .end::after { content: ""; }
.rowi.past { opacity: .5; }
.rowi.past .end { font-weight: 600; color: var(--ink-3); }
.group-h { font: 650 15px/1 var(--display); margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.group-h .ic { color: var(--accent); }
.empty { padding: 28px 18px; text-align: center; color: var(--ink-3); background: var(--surface); border-radius: var(--r);
         box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------------------------------------------------------------- explore */
.searchbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0 10px;
             margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.field { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: var(--pill);
         background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.field .ic { font-size: 20px; color: var(--ink-3); }
.field input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; min-width: 0; }
.filters { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
/* One row of filter buttons; each opens a sheet. Wraps instead of scrolling sideways. */
.fbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fbar #xWhere, .fbar #fyWhere { display: contents; }
.fbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px 0 12px; border-radius: var(--pill);
        background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 650; white-space: nowrap;
        box-shadow: inset 0 0 0 1.5px var(--line); transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms ease, color 160ms ease; }
.fbtn .ic { font-size: 15px; }
.fbtn .ic:last-child { font-size: 12px; opacity: .6; margin-left: -1px; }
.fbtn:active { transform: scale(.97); }
.fbtn.on { background: var(--ink); color: var(--cream); box-shadow: none; }
.fbtn .n { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
           background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 750; }
.factive { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.factive:empty { display: none; }
.factive .chip.off { height: 32px; padding: 0 8px 0 11px; font-size: 13.5px; background: var(--sunk); box-shadow: none; }
.factive .chip.off .ic:last-child { font-size: 12px; color: var(--ink-3); }
.linkbtn { font-size: 13.5px; font-weight: 650; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }
.wpop .opts { display: flex; flex-direction: column; gap: 6px; }
.wpop .opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 14px; text-align: left;
             background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; font-weight: 600;
             transition: transform 160ms cubic-bezier(.23, 1, .32, 1), box-shadow 160ms ease; }
.wpop .opt:active { transform: scale(.98); }
.wpop .opt > .ic:first-child { font-size: 18px; color: var(--ink-3); }
.wpop .opt > .ic:last-child { margin-left: auto; font-size: 18px; color: var(--accent); opacity: 0; transition: opacity 160ms ease; }
.wpop .opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.wpop .opt[aria-pressed="true"] > .ic:last-child { opacity: 1; }
.wpop .opt .tog { margin-left: auto; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative;
                  transition: background-color 160ms ease; }
.wpop .opt .tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
                         box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
.wpop .opt[aria-pressed="true"] .tog { background: var(--accent); }
.wpop .opt[aria-pressed="true"] .tog::after { transform: translateX(18px); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.tgrid .tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 14px; min-height: 84px;
               background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left;
               transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms ease, box-shadow 160ms ease; }
.tgrid .tile:active { transform: scale(.97); }
.tgrid .tile .ic { font-size: 20px; color: var(--cm); }
.tgrid .tile span { font-size: 14.5px; font-weight: 700; line-height: 1.15; }
.tgrid .tile small { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-top: auto; }
.tgrid .tile[aria-pressed="true"] { background: var(--cb); box-shadow: inset 0 0 0 2px var(--ci); }
.tgrid .tile[aria-pressed="true"] .ic { color: var(--ci); }
.sheet-foot { position: sticky; bottom: -1px; display: flex; gap: 8px; margin: 14px -4px 0; padding: 12px 4px 4px; background: inherit; }
.sheet-foot .btn { flex: 1; }
.more-btn { display: flex; width: 100%; justify-content: center; margin: 14px 0 6px; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .fbtn, .wpop .opt, .tgrid .tile, .wpop .opt .tog::after { transition: none; } }
.resbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--sunk); }
.seg button { white-space: nowrap; height: 32px; padding: 0 12px; border-radius: var(--pill); font-size: 13.5px; font-weight: 650; color: var(--ink-2);
              display: inline-flex; align-items: center; gap: 6px; transition: background-color 160ms ease, color 160ms ease; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
select.chip { appearance: none; -webkit-appearance: none; padding-right: 30px; border: 0;
              background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23554C44' d='M216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") no-repeat right 11px center / 13px; }
#map { height: min(64vh, 620px); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); }
/* Leaflet's panes carry z-index 400-1000; without their own stacking context a map on the page
   underneath paints over the event sheet (z 50) and the bottom sheets. */
.leaflet-container { font-family: var(--body); background: var(--sunk); isolation: isolate; z-index: 0; }
.leaflet-tile-pane { filter: grayscale(.85) sepia(.18) brightness(1.04) contrast(.92); }
.leaflet-control-attribution { font-size: 10px; }
.mapdot { width: 16px; height: 16px; border-radius: 50%; background: var(--cm); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; }
.leaflet-popup-content b { font-family: var(--display); font-size: 15.5px; display: block; margin-bottom: 2px; }

/* ---------------------------------------------------------------- venue page */
.back { margin-bottom: 6px; }
.vhead { display: grid; gap: 14px; }
#vmap { height: 160px; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); }
@media (min-width: 900px) { .vhead { grid-template-columns: 1fr 360px; align-items: start; } #vmap { height: 180px; } }
.morelink { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 650;
            color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-soft); }
.morelink .ic { font-size: 14px; }
#vcats { margin: 16px 0 4px; }

/* The top of a venue or organizer page (app.js placeHead): what it is, the facts as a short list
   of icon lines, then the companies that put on shows there / the places an organizer uses. */
.phead { min-width: 0; }
.phead .about { margin: 12px 0 0; max-width: 60ch; font-size: 16.5px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.pfacts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.pfacts li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.pfacts li > .ic { flex: none; margin-top: 2px; font-size: 16px; color: var(--ink-3); }
.pfacts li > span { min-width: 0; overflow-wrap: anywhere; }
.pfacts a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2);
            text-underline-offset: 3px; transition: text-decoration-color 160ms ease; }
.pfacts a:hover { text-decoration-color: currentColor; }
.pfacts a .ic { margin-left: 3px; font-size: 12px; color: var(--ink-3); }
.pfacts .sep { margin: 0 7px; color: var(--line-2); }
.pfacts .open { color: var(--good); font-weight: 600; }
.pchips { margin-top: 18px; }
.pchips h2 { margin: 0 0 9px; font: 700 12.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pchips .chip { max-width: 100%; }
.pchips .chip .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pchips .more { align-self: center; padding: 0 4px; }
.phsec { margin-top: 28px; }
.phsec + #vcats { margin-top: 4px; }
.phsec + .group-h, .phsec + .empty { margin-top: 10px; }
.chip.place .muted { font-weight: 600; }
#xplaces .chips { flex-wrap: wrap; overflow: visible; }

/* ---------------------------------------------------------------- sheet (event detail) */
#sheet { position: fixed; inset: 0; z-index: 50; }
#sheet .scrim { position: absolute; inset: 0; background: rgba(26, 22, 19, .42); opacity: 0; transition: opacity 260ms ease; }
#sheet .panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lift);
  transform: translateY(100%); transition: transform 420ms var(--ease-drawer);
}
#sheet.open .scrim { opacity: 1; }
#sheet.open .panel { transform: translateY(0); }
#sheet.closing .panel { transition-duration: 240ms; }
#sheet .grab { flex: none; height: 26px; display: grid; place-items: center; cursor: grab; touch-action: none; }
#sheet .grab::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); }
#sheet .panel-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  #sheet .panel { left: auto; top: 0; width: 500px; max-height: none; border-radius: 0; transform: translateX(100%); }
  #sheet.open .panel { transform: translateX(0); }
  #sheet .grab { height: 18px; cursor: default; }
  #sheet .grab::before { display: none; }
  #sheet .panel-body { padding: 0 28px 40px; }
}
.dhead { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r); background: var(--cb); padding: 18px 18px 20px; }
.dhead .glyph { position: absolute; right: -22px; bottom: -36px; font-size: 170px; color: var(--cm); opacity: .18; z-index: -1; }
.dhead .x { position: absolute; top: 12px; right: 12px; background: rgba(255,253,249,.85); box-shadow: none; }
.dhead h2 { font-size: 30px; font-weight: 800; line-height: 1.03; letter-spacing: -0.035em; margin: 12px 44px 8px 0; text-wrap: balance; }
.dhead .blurb { font-size: 16px; margin: 0; }
.dblock { margin-top: 18px; }
.dblock > h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.facts { display: grid; gap: 10px; background: var(--surface); border-radius: var(--r); padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact .ic { font-size: 19px; color: var(--accent); margin-top: 2px; }
.fact b { display: block; font-weight: 650; }
.fact span { font-size: 14px; color: var(--ink-2); }
.whenlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.whenlist span { font-size: 13px; font-weight: 600; padding: 4px 9px; border-radius: var(--pill); background: var(--sunk); color: var(--ink-2); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.actions .btn { width: 100%; }
.actions .wide { grid-column: 1 / -1; }
.vibe { display: grid; gap: 12px; background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.scale { display: grid; grid-template-columns: 92px 1fr 92px; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.scale span:last-child { text-align: right; }
.scale .track { position: relative; height: 6px; border-radius: 3px; background: var(--sunk); }
.scale .knob { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
               background: var(--cm, var(--ink)); border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line-2); }
.sources { display: grid; gap: 8px; }
.src { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface);
       box-shadow: inset 0 0 0 1.5px var(--line); }
.src .ic { color: var(--ink-3); font-size: 16px; }
.src a { margin-left: auto; color: var(--accent-ink); font-weight: 650; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.src.official { box-shadow: inset 0 0 0 1.5px var(--ink); }
.src.official .ic { color: var(--good); }
.src .offtag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: var(--pill);
               background: var(--ink); color: var(--cream); vertical-align: 1px; }
#minimap { height: 150px; border-radius: var(--r-sm); margin-top: 10px; overflow: hidden; }

.facts.details { gap: 12px; }
.facts.details p { margin: 0; font-size: 15px; }
.facts.details b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.facts.details ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14.5px; }
.facts.details li::marker { color: var(--accent); }
.dchips { display: flex; flex-wrap: wrap; gap: 6px; }
.dchips span { font-size: 13px; font-weight: 650; padding: 4px 10px; border-radius: var(--pill); background: var(--sunk); }
.facts.loading { gap: 8px; }
.shimmer { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--sunk), #F8F3EC, var(--sunk));
           background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.shimmer.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
#dDetails.arrive { animation: rise 360ms var(--ease-out) both; }

/* reasons popover for "Not for me" */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.reasons button { height: 42px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2);
                  font-weight: 650; font-size: 14px; transition: var(--press); }
.reasons button:active { transform: scale(.96); }
.pop { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 14px); width: min(420px, calc(100% - 24px));
       transform: translateX(-50%); background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-lift);
       opacity: 0; translate: 0 10px; transition: opacity 180ms ease, translate 220ms var(--ease-out); }
.pop.in { opacity: 1; translate: 0 0; }
.pop .ph { font: 650 17px/1.2 var(--display); display: flex; justify-content: space-between; align-items: center; }
@media (min-width: 900px) { .pop { bottom: 28px; left: calc(50% + 116px); } }

/* ---------------------------------------------------------------- toast */
#toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 16px);
         transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none;
         background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: var(--pill); font-weight: 600; font-size: 14.5px;
         display: flex; align-items: center; gap: 10px; white-space: nowrap; box-shadow: var(--shadow-lift);
         transition: opacity 200ms ease, transform 320ms var(--ease-out); }
#toast.in { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
#toast .ic { color: var(--accent); }
#toast button { color: #FFB89F; font-weight: 700; margin-left: 4px; }
@media (min-width: 900px) { #toast { bottom: 28px; left: calc(50% + 116px); } }

/* ---------------------------------------------------------------- sign in */
.gate { min-height: calc(100vh - 80px); display: flex; flex-direction: column; justify-content: center; max-width: 520px; margin: 0 auto; padding: 24px 0; }
.gate .wordmark { font-size: 56px; display: inline-flex; align-items: flex-start; gap: 4px; }
.gate .wordmark .ic { color: var(--accent); font-size: 26px; margin-top: 2px; }
.gate h1 { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin: 34px 0 12px; }
.gate p.lede { font-size: 17.5px; color: var(--ink-2); margin: 0 0 28px; }
.gate form { display: flex; gap: 10px; }
.gate form .field { flex: 1; }
.gate .btn { height: 50px; }
.continue { margin-top: 26px; }
.continue h4 { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.stack-art { position: relative; height: 150px; margin-bottom: 8px; max-width: 420px; }
.stack-art .pc { position: absolute; width: 38%; max-width: 160px; height: 112px; border-radius: 18px; background: var(--cb); padding: 14px;
                 box-shadow: var(--shadow); font: 650 15px/1.1 var(--display); color: var(--ci); display: flex; flex-direction: column; justify-content: space-between; }
.stack-art .pc .ic { font-size: 22px; color: var(--cm); }

/* ---------------------------------------------------------------- onboarding: the taste sort */
#onboard { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto;
           padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) calc(env(safe-area-inset-bottom) + 18px); }
.ob-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 520px; width: 100%; margin: 0 auto; }
.ob-top .progress { flex: 1; height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.ob-top .progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width 300ms var(--ease-out); }
.ob-top .count { font-weight: 700; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.ob-intro { max-width: 520px; margin: 16px auto 0; width: 100%; }
.ob-intro h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.ob-intro p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.deck { position: relative; flex: 1; width: 100%; max-width: 420px; margin: 18px auto 14px; min-height: 0; }
.scard {
  position: absolute; inset: 0; border-radius: 26px; background: var(--cb); padding: 22px 22px 20px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lift); touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: grab; will-change: transform;
}
.scard:active { cursor: grabbing; }
.scard .glyph { position: absolute; right: -40px; bottom: -40px; font-size: 260px; color: var(--cm); opacity: .17; z-index: -1; transform: rotate(-10deg); }
.scard .cat { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ci); text-transform: uppercase; letter-spacing: .08em; }
.scard .cat .ic { font-size: 18px; color: var(--cm); }
.scard h3 { font-size: clamp(28px, 8vw, 38px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 18px 0 12px; text-wrap: balance; }
.scard .meta { font-size: 15px; font-weight: 600; color: var(--ink-2); display: grid; gap: 4px; }
.scard .meta span { display: inline-flex; align-items: center; gap: 7px; }
.scard .meta .ic { color: var(--ci); }
.scard .blurb { margin-top: auto; font-size: 17px; line-height: 1.4; }
.scard.behind { transform: scale(.94) translateY(14px); filter: saturate(.8); transition: transform 320ms var(--ease-out); pointer-events: none; }
.scard.behind2 { transform: scale(.88) translateY(28px); opacity: .6; pointer-events: none; }
.stamp { position: absolute; top: 26px; padding: 6px 12px; border-radius: 10px; font: 800 22px/1 var(--display); letter-spacing: .02em;
         text-transform: uppercase; opacity: 0; border: 3px solid currentColor; background: rgba(255,253,249,.9); }
.stamp.yes { left: 20px; color: var(--good); transform: rotate(-10deg); }
.stamp.no { right: 20px; color: #B42318; transform: rotate(10deg); }
.stamp.maybe { left: 50%; top: auto; bottom: 30%; transform: translateX(-50%); color: var(--ink-2); }
.ob-actions { display: flex; justify-content: center; align-items: center; gap: 18px; flex: none; }
.ob-actions button { display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); transition: var(--press); }
.ob-actions button:active { transform: scale(.9); }
.ob-actions .no, .ob-actions .yes { width: 68px; height: 68px; }
.ob-actions .no .ic { font-size: 28px; color: #B42318; }
.ob-actions .yes .ic { font-size: 30px; color: var(--accent); }
.ob-actions .maybe { width: 52px; height: 52px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ob-hint { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.q { max-width: 520px; width: 100%; margin: 0 auto; }
.q h3 { font-size: 21px; font-weight: 650; margin: 26px 0 12px; letter-spacing: -0.02em; }
.q .chips { flex-wrap: wrap; overflow: visible; }
.q-foot { max-width: 520px; width: 100%; margin: auto auto 0; padding-top: 18px; }
.q-foot .btn { width: 100%; height: 52px; }
.building { margin: auto; text-align: center; max-width: 360px; }
.building h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; }
.building p { color: var(--ink-2); }
.orbit { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; position: relative; }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent); animation: spin 900ms linear infinite; }
.orbit .ic { position: absolute; inset: 0; margin: auto; font-size: 32px; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- plans */
.ask { border-radius: var(--r); background: var(--night); color: var(--cream); padding: 18px; display: grid; gap: 12px; }
.ask .q1 { font-size: 13px; font-weight: 700; color: #FFB89F; text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 7px; align-items: center; }
.ask h3 { font-size: 22px; font-weight: 650; line-height: 1.1; }
.ask .m { color: #D9CFC2; font-size: 14px; }
.ask .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ask .opts button { height: 42px; padding: 0 16px; border-radius: var(--pill); background: var(--night-2); color: var(--cream); font-weight: 650; font-size: 14.5px;
                    display: inline-flex; gap: 7px; align-items: center; transition: var(--press), background-color 160ms ease; }
.ask .opts button:active { transform: scale(.96); }
.ask .opts button { justify-content: center; }
.ask .opts button.love { background: var(--accent); color: #fff; }
.ask .opts button.skip { grid-column: 1 / -1; height: 34px; background: transparent; color: #D9CFC2; font-weight: 600; font-size: 13.5px; }
.asks { display: grid; gap: 12px; }

/* ---------------------------------------------------------------- you / taste */
.card { background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 128px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.bar .lbl { display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .lbl .ic { color: var(--cm); }
.bar .tr { position: relative; height: 10px; border-radius: 5px; background: var(--sunk); }
.bar .tr::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: var(--line-2); }
.bar .fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--cm, var(--accent)); }
.bar .fill.neg { background: var(--line-2); }
.bar .v { text-align: right; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.leans { display: grid; gap: 14px; }
.lean { display: grid; grid-template-columns: 1fr; gap: 6px; }
.lean .ends { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.lean .ends b { color: var(--ink); }
.lean .track { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--sunk), var(--accent-soft), var(--sunk)); }
.lean .knob { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--accent);
              border: 3.5px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: left 500ms var(--ease-out); }
.statrow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.stat b { display: block; font: 800 30px/1 var(--display); letter-spacing: -0.03em; }
.stat span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.taste-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .taste-grid { grid-template-columns: 1fr 1fr; } .statrow { grid-template-columns: repeat(4, 1fr); } }
.settings { display: grid; gap: 14px; }
.settings label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.settings .chips { flex-wrap: wrap; overflow: visible; }

/* ---------------------------------------------------------------- sources */
.srcs { display: grid; gap: 8px; }
.srcrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; background: var(--surface);
          border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.srcrow .n { font-weight: 650; font-size: 15px; }
.srcrow .k { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.srcrow .c { font: 800 22px/1 var(--display); text-align: right; grid-row: span 2; }
.srcrow .c small { display: block; font: 600 11.5px/1.2 var(--body); color: var(--ink-3); }
.m-badge { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: var(--pill); background: var(--sunk); color: var(--ink-2); }
.st-ok { color: var(--good); font-weight: 700; }
.st-bad { color: #B42318; font-weight: 700; }
.histo { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 12px 4px 0; }
.histo .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.histo .col i { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: var(--accent); opacity: .85; }
.histo .col.wk i { background: var(--ink); opacity: .85; }
.histo .col span { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.histo .col b { font-size: 11.5px; font-weight: 700; }
.cover { display: grid; gap: 10px; }
.cover .big { font: 800 44px/1 var(--display); letter-spacing: -0.04em; }
.cover .meter { height: 12px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.cover .meter i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.missed { display: flex; flex-wrap: wrap; gap: 6px; }
.missed span { font-size: 12.5px; padding: 4px 9px; border-radius: var(--pill); background: var(--sunk); color: var(--ink-2); }

/* ---------------------------------------------------------------- entry motion (rare screens only) */
.rise { animation: rise 420ms var(--ease-out) both; }
.rise:nth-child(2) { animation-delay: 50ms; } .rise:nth-child(3) { animation-delay: 100ms; } .rise:nth-child(4) { animation-delay: 150ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .orbit i { animation: none; border-color: var(--accent); }
  #sheet .panel, .pick, .scard.behind, .lean .knob, #toast, .pop { transition-property: opacity !important; }
  #sheet .panel { transform: none !important; opacity: 0; }
  #sheet.open .panel { opacity: 1; }
}

/* landscape phones: width is the surplus */
@media (orientation: landscape) and (max-height: 520px) {
  .picks { grid-template-columns: 1fr 1fr; }
  .deck { max-width: 640px; }
}


/* ================================================================ layout modes
   web  = opened in a browser (most people): a site header, no bottom tab bar (Safari already
          puts its toolbar at the bottom of the phone screen).
   app  = opened from the home screen: the app's bottom tabs (phone) or side rail (desktop). */
#topbar { display: none; }
html[data-mode="web"] #tabbar { display: none; }
html[data-mode="web"] body { flex-direction: column; }
html[data-mode="web"] #topbar {
  display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px;
  height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 20;
}
#topbar .brand { display: inline-flex; align-items: flex-start; gap: 2px; color: var(--ink); }
#topbar .brand .wordmark { font-size: 27px; }
#topbar .brand .ic { color: var(--accent); font-size: 15px; margin-top: 1px; }
.topnav { display: flex; gap: 2px; }
.tnav { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; border-radius: 12px;
        font-weight: 650; font-size: 14.5px; color: var(--ink-2); position: relative;
        transition: background-color 160ms ease, color 160ms ease, var(--press); }
.tnav .ic { font-size: 21px; }
.tnav:active { transform: scale(.95); }
.tnav[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.tnav[aria-current="page"] .ic { color: var(--accent); }
.tnav .badge { position: absolute; top: 2px; right: 2px; left: auto; }
@media (max-width: 640px) {
  .tnav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tnav { width: 42px; justify-content: center; padding: 0; }
}
@media (min-width: 900px) {
  html[data-mode="web"] #topbar { height: 68px; padding: 0 max(28px, calc((100vw - 1180px) / 2 + 40px)); }
  html[data-mode="web"] #view { padding-top: 28px; }
}

/* ================================================================ the homepage */
.hero { padding: 18px 0 8px; }
.hero h1 { font: 800 clamp(34px, 9vw, 64px)/0.98 var(--display); letter-spacing: -0.045em; margin: 0 0 12px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero p { font-size: 17px; color: var(--ink-2); margin: 0 0 18px; max-width: 34em; }
.asker { display: grid; gap: 10px; }
.askrow { display: flex; align-items: center; gap: 10px; }
.askrow .lbl { flex: none; width: 52px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.askrow .chips { flex: 1; min-width: 0; }
.where-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 13px; border-radius: var(--pill);
             background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 650; transition: var(--press); }
.where-btn .ic { font-size: 15px; }
.where-btn:active { transform: scale(.96); }
.where-btn.quiet { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.results { margin-top: 18px; }
.make-yours { display: grid; gap: 10px; align-content: center; border-radius: var(--r); padding: 20px; background: var(--accent-soft);
              color: var(--ink); text-align: left; }
.make-yours h3 { font: 800 24px/1.05 var(--display); letter-spacing: -0.03em; margin: 0; }
.make-yours p { margin: 0; color: var(--ink-2); }
.make-yours .btn { justify-self: start; }
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.area { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
        text-align: left; transition: var(--press); }
.area:active { transform: scale(.97); }
.area b { font: 650 17px/1.15 var(--display); }
.area span { font-size: 13px; color: var(--ink-3); }
.area .n { font-size: 13px; font-weight: 700; color: var(--accent-ink); margin-top: 4px; }
.area.home { box-shadow: inset 0 0 0 2px var(--ink); }
@media (min-width: 680px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .areas { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .home-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: start; }
  .hero { padding-top: 34px; }
}
.sitefoot { margin: 48px calc(-1 * var(--gutter)) -40px; padding: 28px var(--gutter) calc(36px + env(safe-area-inset-bottom));
            background: var(--night); color: #D9CFC2; }
.sitefoot { display: grid; gap: 26px 56px; }
.sitefoot .wordmark { color: var(--cream); font-size: 32px; text-decoration: none; }
.foot-lede { margin: 10px 0 0; max-width: 30em; font-size: 16px; line-height: 1.5; color: var(--cream); }
.foot-how { margin: 10px 0 0; max-width: 32em; font-size: 14px; line-height: 1.5; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.foot-nav h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9d9185; }
.foot-nav a { display: block; padding: 5px 0; color: var(--cream); font-weight: 650; font-size: 14.5px; text-decoration: none; }
.foot-nav a:hover, .foot-nav a:focus-visible { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.sitefoot small { display: block; padding-top: 18px; border-top: 1px solid #3a332d; font-size: 12.5px; color: #9d9185; }
@media (min-width: 900px) {
  .sitefoot { margin-left: 0; margin-right: 0; border-radius: var(--r); margin-bottom: 0; padding-top: 36px;
              grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .foot-nav { grid-template-columns: repeat(4, max-content); gap: 0 40px; }
  .sitefoot small { grid-column: 1 / -1; }
}

/* the Where sheet: a bottom sheet on the phone, a dialog on a wide screen */
.wscrim { position: fixed; inset: 0; z-index: 70; background: rgba(28, 22, 18, .38); opacity: 0; transition: opacity 240ms ease; }
.wscrim.in { opacity: 1; }
.wpop { position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
        background: var(--bg); border-radius: 22px 22px 0 0; padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom));
        box-shadow: 0 -10px 40px rgba(0,0,0,.18); transform: translateY(100%); transition: transform 300ms var(--ease-drawer, cubic-bezier(.32,.72,0,1)); }
.wpop.in { transform: none; }
.wpop .ph { font: 750 22px/1.2 var(--display); letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
@media (min-width: 700px) {
  .wpop { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100% - 48px)); border-radius: 22px; padding: 22px 26px;
          transform: translate(-50%, -48%) scale(.97); opacity: 0; transition: transform 220ms var(--ease-out), opacity 180ms ease; }
  .wpop.in { transform: translate(-50%, -50%); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .wpop, .wpop.in { transition: opacity 160ms ease; } }
html[data-mode="web"] .pop { bottom: calc(env(safe-area-inset-bottom) + 14px); }
@media (min-width: 900px) { html[data-mode="web"] .pop { left: 50%; } }
@media (max-width: 679px) { .areas .area:first-child { grid-column: 1 / -1; } }
.wsheet { display: grid; gap: 14px; }
.wsheet h3 { font: 650 20px/1.1 var(--display); margin: 4px 0 0; }
.wsheet .chips { flex-wrap: wrap; overflow: visible; }
.wsheet .hint { font-size: 13.5px; color: var(--ink-3); margin: -6px 0 0; }
.dist { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.keep { display: grid; gap: 10px; }
.keep .field { height: 48px; }

/* ================================================================ "not for me" and "how did it go", step two */
.chips.wrap, .follow { flex-wrap: wrap; overflow: visible; }
.wpop .reasons { margin-top: 4px; }
.wpop .reasons button { height: auto; min-height: 48px; padding: 10px 12px; text-align: left; line-height: 1.2; }
.wpop .follow { margin-top: 6px; }
.wpop .follow .chip { height: auto; min-height: 40px; padding: 8px 14px; white-space: normal; text-align: left; }
.wpop .hint, .q .hint, .prof .hint { font-size: 13.5px; color: var(--ink-3); margin: 6px 0 0; }
.wpop .note { margin-top: 12px; height: 46px; }
.why-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.linkbtn { font-weight: 650; font-size: 14.5px; color: var(--ink-3); padding: 8px 2px; text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.went-more { margin-top: 10px; }
.went-more .q2 { font: 650 16px/1.2 var(--display); margin: 0 0 8px; }
.went-more .chip { height: auto; min-height: 36px; white-space: normal; }
.crowdline { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.crowdline .ic { color: var(--accent); flex: none; margin-top: 2px; }
.prof h3 { font: 650 15px/1.2 var(--body, inherit); margin: 4px 0 8px; color: var(--ink-2); }
.prof .chips { flex-wrap: wrap; overflow: visible; }
.told .chip.rule { padding-right: 4px; gap: 4px; background: var(--sunk); }
.told .chip.rule .x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink-3); }
.told .chip.rule .x:active { transform: scale(.9); }
.told .chip.rule .x .ic { font-size: 14px; }
.ask .went-more .q2 { color: var(--cream); }
.ask .went-more .linkbtn { color: #D9CFC2; }
.ask .went-more .btn { background: var(--cream); color: var(--ink); }
.ask .went-more .btn:disabled { opacity: .5; }
.ask .went-more .chip[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }

/* ================================================================ organizers and sponsored spots */
.pick.sponsored { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.spon-tag { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 11.5px; font-weight: 750; letter-spacing: .06em;
            text-transform: uppercase; color: var(--ink-2); background: var(--surface); border-radius: var(--pill);
            padding: 4px 9px; box-shadow: inset 0 0 0 1.5px var(--line); }
.pick .by { margin-top: 6px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.spon-slot { margin: 10px 0 14px; }
.orgcta { margin-top: 24px; display: grid; gap: 8px; background: var(--accent-soft); box-shadow: none; }
.orgcta h3 { font: 800 22px/1.1 var(--display); letter-spacing: -0.02em; margin: 0; }
.orgcta p { margin: 0; color: var(--ink-2); }
.orgcta .btn { justify-self: start; }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.field.area { height: auto; padding: 10px 14px; }
.field.area textarea { width: 100%; border: 0; background: transparent; font: inherit; color: var(--ink); resize: vertical; outline: none; }
table.stats { width: 100%; border-collapse: collapse; font-size: 14px; }
table.stats th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 6px 4px; }
table.stats td { padding: 8px 4px; border-top: 1px solid var(--line); }
table.stats td:not(:first-child), table.stats th:not(:first-child) { text-align: right; white-space: nowrap; }
.allday { margin-top: 22px; }
#dayList { margin-top: 8px; }
.btn.allday { width: 100%; justify-content: center; }

/* ================================================================ Plan it */
.plancta { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r);
           background: var(--night); color: var(--cream); transition: var(--press); }
.plancta:active { transform: scale(.98); }
.plancta > .ic { flex: none; font-size: 22px; color: var(--accent); }
.plancta span { flex: 1; font-size: 15px; line-height: 1.35; color: #D9CFC2; }
.plancta span b { color: var(--cream); font-weight: 700; }
.planform { display: grid; gap: 16px; margin-top: 14px; }
.planform .pf { display: grid; gap: 8px; }
.planform .lbl { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.planform .dates { display: flex; gap: 10px; flex-wrap: wrap; }
.planform .dates label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.planform input[type=date] { height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 10px; font: inherit; color: var(--ink); max-width: 100%; }
.planform .field { height: 46px; }
.planform #pGo { justify-self: start; }
.planday { margin-top: 26px; }
.planday .sec { flex-wrap: wrap; gap: 6px 12px; }
.wx { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.wx.wet { color: var(--accent-ink); }
.slot { margin-top: 14px; display: grid; gap: 10px; }
.slot-h { font: 700 13px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.wxnote { display: flex; gap: 6px; align-items: center; margin: 6px 2px 0; font-size: 13.5px; color: var(--accent-ink); font-weight: 600; }
.backups { display: grid; gap: 6px; }
.backups .bk { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.bkrow { display: flex; align-items: center; gap: 8px; }
.bkrow > .rowi { flex: 1; min-width: 0; }
.bkrow .swap { flex: none; }
.planbar { margin-top: 24px; display: grid; gap: 8px; justify-items: start; }
.sharebox { display: grid; gap: 8px; width: 100%; }
.shareurl { display: flex; gap: 8px; }
.shareurl input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 10px; font: inherit; color: var(--ink-2); }
.votes { display: flex; gap: 6px; }
.slot-first .votes { margin-top: 8px; }
.vbtn { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: var(--pill);
        background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 13px; color: var(--ink-2); transition: var(--press); }
.vbtn:active { transform: scale(.94); }
.vbtn.on { background: var(--ink); color: var(--cream); box-shadow: none; }
@media (min-width: 900px) { .planday .slot { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .planday .slot-h { grid-column: 1 / -1; } }

/* ================================================================ the Y'all Going? wordmark */
.wordmark i { font-style: normal; color: var(--accent); margin-left: 1px; }
#topbar .brand .wordmark { font-size: 25px; white-space: nowrap; }
@media (max-width: 400px) { #topbar .brand .wordmark { font-size: 21px; } }
#dReport { margin-top: 12px; }
#dReport .linkbtn { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.reportline { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); background: var(--sunk); border-radius: 12px; padding: 10px 12px; }
.reportline.fixed { background: #DDF0E3; color: #1F5A37; }
.reportline q { font-style: italic; }

/* ================================================================ accounts and the manager dashboard */
.acct { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct span { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); }
.signin-out .sent { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 8px 0 0; }
.codebox { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.codebox code { flex: 1; font: 700 17px/1 ui-monospace, Menlo, monospace; background: var(--sunk); padding: 12px; border-radius: 10px; letter-spacing: .02em; }
.badge-pro { display: inline-flex; align-items: center; gap: 4px; font: 700 13px/1 var(--body); color: #fff; background: var(--good); padding: 5px 9px; border-radius: 99px; vertical-align: middle; }
.upgrade .planbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mrow { display: flex; align-items: center; gap: 10px; }
.mrow .body { flex: 1; min-width: 0; }
.mrow .when { flex: none; width: 64px; display: grid; font-size: 13px; color: var(--ink-2); }
.eh { font: 700 13px/1 var(--body); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 16px 0 8px; }
.editrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.editrow input, .editrow select, .wpop select { height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 10px; font: inherit; color: var(--ink); max-width: 100%; }
.editrow input[type=number] { width: 110px; }
.editrow label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-2); }
.wpop .field.note select { width: 100%; border: 0; background: transparent; font: inherit; }
.checked { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.checked .ic { color: var(--good); }
.titlerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.titlerow .page-title { margin-bottom: 0; }
.followbtn { flex: none; }

/* The event's photo in the sheet: small, never cropped to a strip, credited underneath. */
.dphoto { margin: 12px 0 0; }
.dphoto img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; border-radius: var(--r); background: var(--sunk); }
.dphoto figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.dphoto figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* The invitation to make an account: what it gets you, then a name and an email. */
.card.join { padding: 20px; }
.card.join h2 { font: 750 22px/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 6px; }
.card.join > p { margin: 0 0 12px; color: var(--ink-2); }
.card.join .perks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.card.join .perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; }
.card.join .perks .ic { flex: none; font-size: 18px; color: var(--accent); margin-top: 1px; }
.joinform { display: grid; gap: 8px; }
.joinform .btn { width: 100%; justify-content: center; }
.card.join .hint { margin: 10px 0 0; }
.wpop .card.join { box-shadow: none; background: transparent; padding: 0; }
.pick.gone, .rowi.gone { opacity: 0; transform: scale(.97); transition: opacity 200ms ease, transform 200ms cubic-bezier(.23, 1, .32, 1); }

/* "Not for me": one screen. What's off about it first, practical reasons open in place. */
.wpop .why-sub { margin: 16px 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.wpop .pract { display: flex; flex-direction: column; gap: 6px; }
.wpop .pract .chip[data-open] { gap: 6px; }
.wpop .pract .chip[data-open] .ic { font-size: 12px; opacity: .6; transition: transform 160ms ease; }
.wpop .pract .chip[aria-expanded="true"] .ic { transform: rotate(180deg); }
.wpop .pract .more { margin: 8px 0 4px 4px; padding-left: 12px; border-left: 2px solid var(--line); }
.wpop .q { margin: 0 0 8px; font-size: 14.5px; font-weight: 650; }
.wpop .why-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.wpop .why-foot .quiet { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.wpop .why-foot .quiet .linkbtn { color: var(--ink-3); font-weight: 600; }
.wpop .extra:not(:empty) { margin-top: 12px; padding-top: 12px; border-top: 1.5px solid var(--line); }

/* Tickets: say it before anyone falls for it. */
.flag.avail.out { background: #FBE3DE; color: #8A2414; }
.flag.avail.few { background: #FFF1BF; color: #6E5100; }
.why.avail-note { background: #FBE3DE; color: #6B1D10; }
.why.avail-note.few { background: #FFF1BF; color: #5A4300; }
.rowi.soldout .ttl, .rowi.soldout .sub { opacity: .62; }
.rowi .end .av { font-size: 12px; font-weight: 750; color: #8A2414; text-transform: uppercase; letter-spacing: .04em; }

/* "What are you up to [this weekend]?": the phrase is the control. */
.whenword { color: var(--accent-ink); }
.hero .fbar { margin-top: 16px; }
.hero .fbar #aWhere { display: contents; }
#seeAll { margin-top: 12px; }
.hero .fbar { gap: 6px; }
.hero .fbar .fbtn, .hero .fbar .where-btn { padding: 0 10px 0 11px; gap: 6px; font-size: 14px; }

/* Movies: poster cards, one per movie. */
.posters { display: grid; gap: 12px; }
.posters.shelfx { grid-auto-flow: column; grid-auto-columns: 128px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; }
.posters.shelfx::-webkit-scrollbar { display: none; }
.posters.grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.poster { display: flex; flex-direction: column; gap: 4px; text-align: left; transition: transform 160ms cubic-bezier(.23, 1, .32, 1); }
.poster:active { transform: scale(.97); }
.poster img, .poster .noposter { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: var(--sunk); display: grid; place-items: center; }
.poster .noposter .ic { font-size: 32px; color: var(--ink-3); }
.poster b { font-size: 14px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster small { font-size: 12px; color: var(--ink-3); }
.moviehead { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; margin-bottom: 12px; }
.moviehead img { width: 120px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; }
.moviehead h2 { font: 750 22px/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 4px; }
.moviehead .chips .chip { height: 28px; font-size: 12.5px; }

/* Admin: activity and popularity. */
.admtable { display: grid; gap: 2px; margin-top: 8px; font-size: 14px; }
.admrow { display: grid; grid-template-columns: 1fr 52px 74px 92px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface); cursor: pointer; }
.admrow.head { background: transparent; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); cursor: default; }
.admrow b { display: block; font-weight: 650; line-height: 1.25; }
.admrow small { display: block; color: var(--ink-3); font-size: 12px; }
.admrow > span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.admrow > span:not(:first-child) small { display: inline; }
.feed { display: grid; gap: 2px; }
.feedrow { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 14px; cursor: pointer; }
.feedrow .t { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.feedrow .ev { color: var(--ink-2); }
.feedrow.staff { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.feedrow.staff b { color: var(--ink-3); }
.statrow .stat em { font-style: normal; font-size: 11.5px; }
@media (max-width: 480px) { .admrow { grid-template-columns: 1fr 44px 58px 76px; font-size: 13px; } }

/* Who puts it on, right under the event's name. */
.dhead .byline { margin: 6px 0 0; font-size: 14.5px; font-weight: 650; color: var(--ci); }
.dhead .byline a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- your people (people.py)
   Badges ("Dana shared this", "You and Dana both want to go"), the From your people shelf,
   the You page card, the save sheet and the accept screen. */
.ppl { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; font-size: 14px; font-weight: 650; line-height: 1.3; color: var(--accent-ink); }
.ppl .ic { flex: none; font-size: 16px; color: var(--accent); margin-top: 1px; }
.pick.stretch .ppl { color: #FFB89F; }
.mini .ppl-m { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-weight: 650; color: var(--accent-ink); }
.mini .ppl-m .ic { font-size: 13px; color: var(--accent); }
.rowi .ppl-r { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 13px; font-weight: 650; color: var(--accent-ink);
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .ppl-r .ic { font-size: 13px; color: var(--accent); }
.dhead .dppl { color: var(--ink); margin-top: 12px; }

.pshelf { padding-bottom: 4px; }
.pcard { flex: none; width: min(78vw, 290px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 14px;
         border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer;
         transition: var(--press), opacity 200ms ease; }
.pcard:active { transform: scale(.98); }
.pcard.gone { opacity: 0; transform: scale(.97); }
.pcard .who { display: flex; gap: 7px; align-items: flex-start; font-size: 14px; font-weight: 650; line-height: 1.3; color: var(--accent-ink); }
.pcard .who .ic { flex: none; font-size: 17px; color: var(--accent); margin-top: 1px; }
.pcard .who b { color: var(--ink); font-weight: 750; }
.pcard h4 { margin: 2px 0 0; font: 650 17.5px/1.15 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.pcard .m { font-size: 13.5px; color: var(--ink-2); }
.pcard .acts { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.pcard .acts .btn { flex: 1; padding: 0 10px; }

.card.people { margin: 16px 0; }
.card.people .sec { margin-top: 0; }
.people .pintro { margin: 0 0 12px; }
.people .prow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0;
                border-top: 1px solid var(--line); }
.people .prow:first-of-type { border-top: 0; padding-top: 2px; }
.people .pav { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft);
               color: var(--accent-ink); font: 800 17px/1 var(--display); }
.people .prow.wait .pav { background: var(--sunk); color: var(--ink-3); font-size: 18px; }
.people .pmain { min-width: 0; }
.people .pmain b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people .pmain span { display: block; font-size: 13.5px; color: var(--ink-3); }
.people .pshare { grid-column: 2 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px;
                  font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.people #pAdd { margin-top: 12px; width: 100%; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 13px; position: relative;
          background: var(--line-2); cursor: pointer; transition: background-color 160ms ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
                 box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 200ms var(--ease-out); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }

.consent { display: grid; gap: 14px; }
.consent .lede { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.consent h3 { margin: 0 0 8px; font: 700 12.5px/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.consent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.consent li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; line-height: 1.35; }
.consent li .ic { flex: none; margin-top: 2px; font-size: 16px; }
.consent .yes .ic { color: var(--good); }
.consent .no .ic { color: var(--ink-3); }
.consent .pk .ic { color: var(--accent); }
.consent .fine { margin: 0; font-size: 14px; color: var(--ink-2); }
.wpop .consent { margin: 14px 0 4px; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.wpop .consent .lede { font-size: 15px; }
.wpop .addgo { display: grid; gap: 10px; margin-top: 14px; }
.wpop .addgo > .btn { width: 100%; }
.wpop .akmail { display: flex; gap: 8px; }
.wpop .akmail .field { flex: 1; min-width: 0; height: 46px; }
.wpop .sharebox, .wpop .sent { margin-top: 14px; }
.wpop .sent { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.wpop .sent .ic { flex: none; margin-top: 3px; color: var(--good); }
.wpop .share-hint { margin: -4px 0 12px; }
.wpop .sheet-p { margin: 0; color: var(--ink-2); }

.linkpage { max-width: 560px; margin: 8px auto 0; }
.linkpage .eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 6px 0 0; font-size: 12.5px; font-weight: 700;
                     text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.linkpage .eyebrow .ic { font-size: 16px; color: var(--accent); }
.linkpage .page-title { text-wrap: balance; }
.linkpage > .card { padding: 18px; }
.linkacts { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding: 12px 0 4px;
            background: linear-gradient(to bottom, rgba(246, 241, 233, 0), var(--bg) 30%); }
.linkacts .btn { width: 100%; height: 50px; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after, .pcard { transition: none; } }

/* "With your people in mind": a pick chosen for how well it fits your linked people's tastes. */
.pick .together-label { color: var(--accent-ink); }
.pick .together-label .ic { color: var(--accent); }

/* ---------------------------------------------------------------- email (weekly_email.py, outcomes.py)
   The You page's Email card: one switch per kind of email. The bar that offers "Sign in" on an event
   opened from an email in a browser that isn't signed in (the link goes to the member's inbox). */
.mailpref { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0;
            border-top: 1px solid var(--line); cursor: pointer; }
.mailpref:first-of-type { border-top: 0; padding-top: 2px; }
.mailpref b { display: block; font-weight: 650; }
.mailpref small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.signbar { position: fixed; z-index: 65; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 24px));
           bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 14px); display: flex; align-items: center; gap: 10px;
           padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--night); color: var(--cream);
           box-shadow: var(--shadow-lift); font-size: 14.5px; line-height: 1.35; }
.signbar span { flex: 1; min-width: 0; }
.signbar .btn { background: var(--cream); color: var(--ink); flex: none; }
.signbar .iconbtn { background: transparent; color: var(--cream); box-shadow: none; flex: none; }
html[data-mode="web"] .signbar { bottom: calc(env(safe-area-inset-bottom) + 16px); }

/* ---------------------------------------------------------------- notifications and passkeys (push.py, passkeys.py)
   The You page's Notifications and Passkeys cards, and "Sign in with Face ID / passkey" on every sign-in form. */
.pushlede { margin: 0 0 12px; color: var(--ink-2); }
.pushon { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 650; }
.pushon .ic { color: var(--good); font-size: 20px; flex: none; }
.pushprefs { margin-top: 6px; }
.pushacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#youPush .hint { font-size: 13.5px; color: var(--ink-3); margin: 10px 0 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; line-height: 1.4; }
.steps li::before { content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
                    background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.steps li > span { min-width: 0; padding-top: 2px; }
.card + .statrow { margin-top: 16px; }   /* the You page: the card above the numbers (Email, Pages, these) */
.pkin { display: grid; gap: 10px; margin: 0 0 12px; }
.pkin .btn { width: 100%; justify-content: center; }
.pkor { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; color: var(--ink-3); font-size: 13.5px; }
.pkor::before, .pkor::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pklist { margin: 0 0 12px; }
.pkrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pkrow:first-child { border-top: 0; padding-top: 0; }
.pkrow > span { min-width: 0; }
.pkrow b { display: block; font-weight: 650; overflow-wrap: anywhere; }
.pkrow small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.pkrow .btn { flex: none; }

/* ---------------------------------------------------------------- "Notice when I'm at an event" (visits.py)
   The "Are you at...?" card over any page (sits where the sign-in bar does), the Plans page's "You may have
   been to these" (the .ask boxes) and the You page's card (the .mailpref switch and .pkrow list). */
.visitq { position: fixed; z-index: 66; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 24px));
          bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 14px); padding: 16px 16px 14px; border-radius: var(--r);
          background: var(--night); color: var(--cream); box-shadow: var(--shadow-lift);
          opacity: 0; translate: 0 12px; transition: opacity 180ms ease, translate 240ms var(--ease-out); }
.visitq.in { opacity: 1; translate: 0 0; }
html[data-mode="web"] .visitq { bottom: calc(env(safe-area-inset-bottom) + 16px); }
.visitq .vq { display: flex; gap: 10px; align-items: flex-start; margin: 0 40px 14px 0; font-size: 16.5px; line-height: 1.35; text-wrap: pretty; }
.visitq .vq > .ic { flex: none; margin-top: 2px; font-size: 19px; color: var(--accent); }
.visitq .vq b { font-weight: 700; }
.visitq .vopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.visitq .vopts .btn { width: 100%; background: var(--accent); color: #fff; }
.visitq .vopts .btn.ghost { background: var(--night-2); color: var(--cream); box-shadow: none; }
.visitq .vopts.alts { grid-template-columns: 1fr; }
.visitq .vopts.alts .btn { height: auto; min-height: 46px; padding: 10px 18px; justify-content: flex-start; text-align: left; line-height: 1.25; }
.visitq .vopts .linkbtn { justify-self: center; color: #FFB89F; }
.visitq .vx { position: absolute; top: 8px; right: 8px; background: transparent; color: var(--cream); box-shadow: none; }
.visits-note { margin: -4px 0 12px; font-size: 13.5px; color: var(--ink-3); }
.ask[data-visit] .opts { grid-template-columns: repeat(3, 1fr); }
.ask[data-visit] .opts button { padding: 0 8px; }
.ask[data-visit] .opts button[data-notthere] { grid-column: 1 / -1; background: transparent; color: #D9CFC2; height: 34px; font-weight: 600; font-size: 13.5px; }
#youVisits .hint { font-size: 13.5px; color: var(--ink-3); margin: 10px 0 0; }
#youVisits .vlist { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
#youVisits .vlist .pkrow:first-child { padding-top: 0; }
#youVisits > .linkbtn { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .visitq { transition: opacity 120ms ease; translate: none; } }

/* ---------------------------------------------------------------- conversations (convo.py)
   "From Dana" on top of the home page, the Send sheet, the thread in the event sheet, Plans' Conversations
   and the You page's "From your conversations". Nothing here moves layout: the cards fade, the Noted line fades. */
.cpav { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
        background: var(--accent-soft); color: var(--accent-ink); font: 800 14px/1 var(--display); }
.froms { display: grid; gap: 12px; margin: 6px 0 2px; }
@media (min-width: 680px) { .froms { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); } }
.fromcard { border-radius: var(--r); background: var(--cb); padding: 16px 16px 14px; display: grid; gap: 8px; cursor: pointer;
            box-shadow: inset 0 0 0 2px var(--accent); transition: var(--press), opacity 200ms var(--ease-out); }
.fromcard:active { transform: scale(.985); }
.fromcard.gone { opacity: 0; transform: scale(.97); pointer-events: none; }
.fromwho { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14.5px; }
.fromwho b { font-weight: 750; color: var(--ink); }
.fromwho .fcat { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
                 text-transform: uppercase; letter-spacing: .07em; color: var(--ci); white-space: nowrap; }
.fromwho .fcat .ic { font-size: 14px; color: var(--cm); }
.fromnote { justify-self: start; max-width: 100%; margin: 2px 0 0; padding: 9px 13px; border-radius: 16px 16px 16px 6px;
            background: var(--surface); font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
.fromcard h3 { margin: 4px 0 0; font: 650 21px/1.12 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.fromcard .meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.fromcard .meta span { display: inline-flex; align-items: center; gap: 5px; }
.fromcard .meta .ic { font-size: 14px; color: var(--ci); opacity: .8; }
.qr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.qr .btn, .qr .chip { width: 100%; justify-content: center; padding: 0 6px; }
.fromcard .qr .btn.ghost { background: rgba(255, 253, 249, .85); box-shadow: none; }

.actions #dSend { min-width: 0; }
.actions #dSend .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpop .send-what { margin: -4px 0 12px; font-weight: 650; color: var(--ink-2); text-wrap: balance; }
.wpop .sdnote { margin-top: 12px; height: 48px; }

.dblock.convo .thread { padding: 12px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.dblock.convo .thread + .thread { margin-top: 10px; }
.thead { display: flex; align-items: center; gap: 8px; padding: 0 2px 10px; font-weight: 650; }
.thead .tplan { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--good); }
.msgs { display: grid; gap: 10px; }
.msg { display: grid; justify-items: start; gap: 4px; }
.msg.mine { justify-items: end; }
.msg .bub { max-width: 85%; margin: 0; padding: 8px 12px; border-radius: 16px 16px 16px 6px; background: var(--sunk);
            font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.msg.mine .bub { border-radius: 16px 16px 6px 16px; background: var(--ink); color: var(--cream); }
.msg .mans { display: block; font-weight: 700; }
.msg .mmeta { font-size: 12px; color: var(--ink-3); }
.msg .mmeta .linkbtn { padding: 0 2px; font-size: 12px; color: var(--ink-3); }
.msg .mmeta .linkbtn.armed { color: var(--accent-ink); }
.noted { display: inline-flex; align-items: center; gap: 6px; max-width: 92%; padding: 5px 4px 5px 10px; border-radius: 12px;
         background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; line-height: 1.3;
         animation: notein 200ms var(--ease-out); }
.noted .ic { flex: none; font-size: 14px; color: var(--accent); }
.noted .linkbtn { flex: none; padding: 2px 6px; font-size: 13px; }
@keyframes notein { from { opacity: 0; } }
.thread .qr { margin-top: 12px; }
.say { display: flex; gap: 8px; margin-top: 10px; }
.say .field { flex: 1; min-width: 0; height: 44px; padding: 0 14px; }
.say .iconbtn { width: 44px; height: 44px; background: var(--ink); color: var(--cream); box-shadow: none; }
.tover { margin: 10px 2px 0; font-size: 13.5px; color: var(--ink-3); }

.convos .crow { grid-template-columns: 28px minmax(0, 1fr) auto; }
.crow .ttl span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow.unread .ttl { font-weight: 750; }
.crow.unread .sub { color: var(--ink-2); }
.crow .dotnew { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.crow .cin { font-size: 12.5px; font-weight: 700; color: var(--good); }

.convo-told .learned { list-style: none; margin: 0; padding: 0; }
.convo-told .learned li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0;
                          border-top: 1px solid var(--line); }
.convo-told .learned li:first-child { border-top: 0; padding-top: 2px; }
.convo-told .learned b { display: block; font-weight: 650; }
.convo-told .learned q { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-2); quotes: "\201C" "\201D"; overflow-wrap: anywhere; }
.convo-told .learned small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.convo-told .learned .iconbtn { width: 36px; height: 36px; }
@media (prefers-reduced-motion: reduce) { .fromcard { transition: opacity 160ms ease; } .fromcard.gone { transform: none; } }

.wordmark .qm { display: inline-block; height: .8em; width: auto; vertical-align: baseline; margin-left: .06em; }
