/* Jost (SIL Open Font License, see jost-license.txt), served with the app: no Google, works offline. */
@font-face { font-family: "Jost"; src: url("jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Filament — design language
   Apple-style structure (system type, inset groups, sheets, segmented controls)
   in materials drawn from David Lynch's documented design work:
   - birch plywood + tensioned steel wire w/ turnbuckle (Espresso Table, 1988)
   - gold-leaf blocks, brass, amber light, black faceted forms (Silencio, 2011)
   - lamps of Bauhaus precision built around early bulbs & filaments
   - brass tubes rising to a curved gold ceiling, blue velvet (A Thinking Room, 2024) */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-geo: "Jost", "Futura", "Avenir Next", var(--font);
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --rail: 248px;
  --maxw: 880px;

  /* evening (default) — blackened steel, plaster light, brass */
  --bg: #120F0C;
  --bg-2: #17130F;
  --surface: #1C1813;
  --surface-2: #241F18;
  --raised: #2B251D;
  --line: rgba(226, 196, 138, .12);
  --line-2: rgba(226, 196, 138, .22);
  --text: #EFE8DA;
  --text-2: #B3A893;
  --text-3: #9A8F7D;
  --brass: #C9A15B;
  --brass-hi: #E6C886;
  --brass-lo: #8A6A33;
  --amber: #FFB45A;
  --velvet: #2A3A6A;
  --velvet-text: #C9D3F0;
  --danger: #E0795E;
  --ok: #B9C98A;
  --birch-1: #E9D8B8; --birch-2: #C7A578; --birch-3: #A07F52;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -24px rgba(0,0,0,.8);
  --glass: rgba(23, 19, 15, .72);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F2ECE1; --bg-2: #EDE6D9; --surface: #FBF8F2; --surface-2: #F5F0E7; --raised: #FFFFFF;
    --line: rgba(60, 44, 20, .12); --line-2: rgba(60, 44, 20, .2);
    --text: #1B1712; --text-2: #5E5547; --text-3: #6F6658;
    --brass: #9C7535; --brass-hi: #B8914E; --brass-lo: #7A5A28; --amber: #D9842A;
    --velvet: #24345E; --velvet-text: #24345E; --danger: #B5482E; --ok: #5D7A2C;
    --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 16px 34px -26px rgba(60,40,10,.45);
    --glass: rgba(251, 248, 242, .78);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F2ECE1; --bg-2: #EDE6D9; --surface: #FBF8F2; --surface-2: #F5F0E7; --raised: #FFFFFF;
  --line: rgba(60, 44, 20, .12); --line-2: rgba(60, 44, 20, .2);
  --text: #1B1712; --text-2: #5E5547; --text-3: #6F6658;
  --brass: #9C7535; --brass-hi: #B8914E; --brass-lo: #7A5A28; --amber: #D9842A;
  --velvet: #24345E; --velvet-text: #24345E; --danger: #B5482E; --ok: #5D7A2C;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 16px 34px -26px rgba(60,40,10,.45);
  --glass: rgba(251, 248, 242, .78);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -.003em;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- shell */
.app { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; padding: 28px 18px 24px;
  border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.wordmark { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; }
.wordmark__type { font: 500 14px/1 var(--font-geo); letter-spacing: .34em; text-transform: uppercase; color: var(--brass-hi); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  border: 0; background: none; text-align: left; color: var(--text-2); font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__item svg { width: 20px; height: 20px; flex: none; }
.nav__item:hover { background: var(--surface); color: var(--text); }
.nav__item[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--brass); }
.nav__count { margin-left: auto; font: 500 12px var(--font-mono); color: var(--text-3); }
.rail__foot { margin-top: auto; padding: 0 8px; font-size: 12px; color: var(--text-3); line-height: 1.5; }

.main { min-width: 0; padding: 34px 40px 120px; }
.page { max-width: var(--maxw); margin: 0 auto; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 22px; }
.eyebrow { font: 500 11.5px/1 var(--font-geo); letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.page-title { font: 600 34px/1.08 var(--font-display); letter-spacing: -.025em; margin: 8px 0 0; }
.page-sub { color: var(--text-2); margin: 6px 0 0; }

.tabbar { display: none; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .main { padding: calc(env(safe-area-inset-top) + 8px) 16px calc(env(safe-area-inset-bottom) + 104px); }
  .page-title { font-size: 30px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 30;
    left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 10px);
    padding: 6px; border-radius: 22px; background: var(--glass);
    -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px);
    border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px;
    border: 0; background: none; border-radius: 16px; color: var(--text-3); font-size: 10.5px; font-weight: 600;
    letter-spacing: .02em;
  }
  .tab svg { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: var(--brass-hi); background: var(--surface-2); }
}

/* --------------------------------------------------------- materials */
.gilt {
  /* Silencio: gold-leaf blocks, laid like masonry, slightly irregular */
  background:
    repeating-linear-gradient(90deg, rgba(40,25,5,.35) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(40,25,5,.35) 0 1px, transparent 1px 9px),
    linear-gradient(97deg, #7C5C2A 0%, #D8B46A 18%, #A9853F 34%, #EBCD8C 52%, #9F7B39 70%, #DDBB74 86%, #87652F 100%);
  background-size: 26px 9px, 26px 9px, 100% 100%;
}
.plywood {
  /* Espresso Table: birch plywood seen in section */
  background: repeating-linear-gradient(90deg,
    var(--birch-1) 0 1.6px, var(--birch-2) 1.6px 2.4px, var(--birch-1) 2.4px 3.8px, var(--birch-3) 3.8px 4.6px);
}
.wire {
  /* Espresso Table: tensioned steel wire with a turnbuckle */
  display: flex; align-items: center; gap: 0; color: var(--line-2); height: 12px;
}
.wire::before, .wire::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.wire svg { flex: none; width: 46px; height: 12px; color: var(--brass); opacity: .85; }

/* ----------------------------------------------------------- the lamp */
.lamp { position: relative; width: 34px; height: 34px; flex: none; }
.lamp svg { position: relative; width: 100%; height: 100%; z-index: 1; }
.lamp::before {
  content: ""; position: absolute; inset: -60%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(255,190,100,.55), rgba(255,160,60,.12) 45%, transparent 70%);
  opacity: 0; transition: opacity .8s var(--ease);
}
.lamp[data-state="on"]::before { opacity: 1; }
.lamp[data-state="on"] .filament { stroke: #FFE2A8; }
.lamp[data-state="busy"]::before { opacity: 1; animation: breathe 1.6s ease-in-out infinite; }
.lamp[data-state="busy"] .filament { stroke: #FFD48A; }
.lamp[data-state="off"] .filament { stroke: var(--text-3); }
.lamp[data-state="error"] .filament { stroke: var(--danger); }
.lamp--lg { width: 64px; height: 64px; }
@keyframes breathe { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ----------------------------------------------------- status console */
.console {
  position: relative; border-radius: var(--r-l); overflow: hidden; margin-bottom: 30px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.console__gilt { height: 7px; opacity: .9; }
.console__body { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px 24px; }
.console__headline { font: 600 21px/1.25 var(--font-display); letter-spacing: -.015em; margin: 0; }
.console__meta { color: var(--text-2); font-size: 13.5px; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.console__meta b { color: var(--text); font-weight: 600; }
.console__error { margin: 0 24px 20px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px;
  background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
@media (max-width: 860px) {
  .console__body { grid-template-columns: auto 1fr; padding: 18px; }
  .console__body .btn { grid-column: 1 / -1; justify-self: stretch; }
  .console__headline { font-size: 18px; }
  .console .lamp--lg { width: 44px; height: 44px; }
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s;
}
.btn:hover { border-color: var(--brass); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--brass {
  border: 0; color: #1A140C;
  background: linear-gradient(180deg, #EED39A, #C9A15B 55%, #A88340);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 -1px 0 rgba(0,0,0,.2) inset, 0 8px 18px -10px rgba(201,161,91,.8);
}
.btn--ghost { background: none; }
.btn--danger { color: var(--danger); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ day groups */
.day { display: grid; grid-template-columns: 92px 1fr; gap: 0 22px; margin-bottom: 26px; }
.day__badge {
  /* asymmetric faceted form — after Lynch's "Black Birds" seating at Silencio */
  position: sticky; top: 20px; align-self: start; padding: 12px 12px 14px; text-align: left;
  background: var(--raised); border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 82% 100%, 0 100%);
}
.day__num { font: 300 40px/1 var(--font-geo); letter-spacing: -.02em; color: var(--text); }
.day__dow { font: 500 11px/1 var(--font-geo); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-top: 8px; }
.day__mon { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.day__rel { font-size: 11px; color: var(--amber); margin-top: 6px; font-weight: 600; }
.day__list { display: grid; gap: 12px; }
@media (max-width: 860px) {
  .day { grid-template-columns: 1fr; gap: 10px; }
  .day__badge { position: static; display: flex; align-items: baseline; gap: 10px; padding: 0 0 2px; background: none; border: 0; clip-path: none; }
  .day__num { font-size: 26px; }
  .day__dow, .day__mon, .day__rel { margin: 0; }
}

/* ------------------------------------------------------------- screening */
.card {
  position: relative; display: grid; grid-template-columns: 6px 1fr; overflow: hidden; width: 100%;
  border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); text-align: left; padding: 0;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.card:active { transform: scale(.995); }
.card__edge { width: 6px; }
.card__body { padding: 16px 18px 16px 18px; min-width: 0; }
.card__top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.card__title { font: 600 20px/1.2 var(--font-display); letter-spacing: -.018em; margin: 0; }
.card__title + .card__title { margin-top: 6px; }
.card__meta { color: var(--text-2); font-size: 13.5px; margin-top: 3px; }
.card__meta .dot { color: var(--text-3); margin: 0 6px; }
.card__where { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; }
.venue { font-weight: 600; font-size: 14px; }
.series { font: 500 11px/1.2 var(--font-geo); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.time {
  font: 600 13px/1 var(--font-mono); padding: 7px 9px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  font-variant-numeric: tabular-nums;
}
.time--new { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 14%, transparent); }
.notes { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.card--muted { opacity: .62; }
.card--muted .card__title { text-decoration: line-through; text-decoration-color: var(--text-3); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px;
  font: 600 10.5px/1 var(--font); letter-spacing: .07em; text-transform: uppercase;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}
.tag--new { color: #1A140C; background: linear-gradient(180deg, #F2D79F, #CFA65E); border: 0; }
.tag--new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FFF4D6; box-shadow: 0 0 6px 2px rgba(255,200,110,.9); }
.tag--update { background: var(--velvet); color: #DCE3F7; border: 0; }
.tag--pending { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, transparent); background: none; }
.tag--gone { color: var(--danger); }
.tag--fmt { font-family: var(--font-mono); letter-spacing: .02em; }

/* -------------------------------------------------------------- empty */
.empty { text-align: center; padding: 50px 20px 40px; color: var(--text-2); }
.empty svg { width: 180px; height: auto; margin-bottom: 18px; }
.empty h3 { color: var(--text); font: 600 20px/1.3 var(--font-display); margin: 0 0 6px; }
.empty p { margin: 0 auto; max-width: 420px; }

/* ------------------------------------------------------ inset groups */
.group-label { font: 500 11.5px/1 var(--font-geo); letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin: 30px 4px 10px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 52px; }
.row + .row { border-top: 1px solid var(--line); }
.row__main { flex: 1; min-width: 0; }
.row__title { font-weight: 600; }
.row__sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.row input[type="text"], .row input[type="email"], .row input[type="password"], .row input[type="time"] {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0;
}
.group-foot { color: var(--text-3); font-size: 12.5px; margin: 8px 6px 0; line-height: 1.5; }

/* Apple-style switch, brass when on */
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--raised); border: 1px solid var(--line-2); transition: background .25s var(--ease); pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 25px; height: 25px; border-radius: 50%; background: #F6F1E7; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .25s var(--ease); }
.switch input:checked + span { background: linear-gradient(180deg, #E2C17F, #B48A45); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(20px); }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* --------------------------------------------------------- watchlist */
.search { position: relative; margin-bottom: 18px; }
.search input {
  width: 100%; height: 50px; padding: 0 16px 0 46px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface); font-size: 16px; box-shadow: var(--shadow);
}
.search input:focus { outline: none; border-color: var(--brass); }
.search > svg { position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; color: var(--text-3); }
.results { margin-top: 8px; background: var(--raised); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(0,0,0,.7); }
.result { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border: 0; background: none; }
.result + .result { border-top: 1px solid var(--line); }
.result:hover, .result:focus-visible { background: var(--surface-2); }
.result__src { margin-left: auto; font: 500 10.5px var(--font-geo); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.results__note { padding: 10px 14px; font-size: 12.5px; color: var(--text-3); border-top: 1px solid var(--line); }

.interest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); overflow: hidden; }
.interest + .interest { margin-top: 12px; }
.interest__head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.interest__name { font: 600 19px/1.2 var(--font-display); letter-spacing: -.015em; }
.interest__sub { color: var(--text-2); font-size: 13px; margin-top: 3px; }
.interest__count { font: 600 12px var(--font-mono); color: var(--brass-hi); }
.monogram {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px;
  font: 500 16px/1 var(--font-geo); letter-spacing: .06em; color: #1A140C;
}
.filmography { padding: 0 18px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); background: var(--surface-2); }
.chip b { font-weight: 600; color: var(--text); }
.chip--on { border-color: var(--brass); color: var(--text); }
details.more summary { list-style: none; cursor: pointer; padding: 0 18px 14px; color: var(--brass-hi); font-size: 13px; font-weight: 600; }
details.more summary::-webkit-details-marker { display: none; }

/* ------------------------------------------------------------- archive */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar input { flex: 1; min-width: 180px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 14px; align-items: center; padding: 13px 16px; border: 0; background: none; width: 100%; text-align: left; }
.ledger-row + .ledger-row { border-top: 1px solid var(--line); }
.ledger-row:hover { background: var(--surface-2); }
.ledger-date { font: 500 12.5px var(--font-mono); color: var(--text-2); }
@media (max-width: 600px) { .ledger-row { grid-template-columns: 1fr auto; } .ledger-date { grid-column: 1 / -1; } }

/* --------------------------------------------------------------- sheet */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(8,6,4,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 51; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(620px, calc(100vw - 32px)); max-height: min(86vh, 860px); overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.85); animation: pop .35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.sheet__grab { display: none; }
@media (max-width: 860px) {
  .sheet { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 90vh;
    border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: slide .4s var(--ease); }
  @keyframes slide { from { transform: translateY(40px); opacity: .4; } }
  .sheet__grab { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 0; }
}
.sheet__hero { position: relative; padding: 26px 26px 20px; }
.sheet__close { position: absolute; top: 16px; right: 16px; }
.sheet__title { font: 600 28px/1.12 var(--font-display); letter-spacing: -.025em; margin: 10px 0 4px; padding-right: 40px; }
.sheet__section { padding: 0 26px 22px; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; font-size: 14.5px; }
.facts dt { color: var(--text-3); font-size: 12.5px; letter-spacing: .04em; padding-top: 2px; }
.facts dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 12px 18px; font-size: 13.5px; color: var(--text-2); }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.timeline time { color: var(--text-3); font-size: 12px; display: block; }

/* --------------------------------------------------------------- toast */
.toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 96px); display: grid; gap: 8px; }
@media (min-width: 861px) { .toasts { bottom: 28px; } }
.toast { display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 16px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -16px rgba(0,0,0,.7); font-size: 14px; animation: rise .3s var(--ease); }
.toast button { border: 0; background: none; color: var(--brass-hi); font-weight: 700; }

/* ---------------------------------------------------------- onboarding */
.welcome { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px 60px; grid-column: 1 / -1; }
.welcome__card { width: min(520px, 100%); }
.welcome__art { display: block; width: 100%; height: auto; margin-bottom: 8px; }
.welcome h1 { font: 600 34px/1.1 var(--font-display); letter-spacing: -.03em; margin: 14px 0 8px; }
.welcome p { color: var(--text-2); margin: 0 0 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.field input { height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 14px; font-size: 16px; }
.field input:focus { outline: none; border-color: var(--brass); }
.steps { margin: 18px 0 0; padding: 16px 18px 16px 34px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; }
.steps li { margin-bottom: 6px; }
.error-text { color: var(--danger); font-size: 13.5px; margin: 0 0 12px; }

.skeleton { height: 120px; border-radius: var(--r-m); background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; margin-bottom: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

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

/* welcome: product story */
.welcome h1 { font-size: 38px; }
.welcome__lede { font-size: 17px; line-height: 1.5; }
.features { list-style: none; margin: 4px 0 26px; padding: 0; display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.feature__n { font: 500 12px/1.9 var(--font-geo); letter-spacing: .14em; color: var(--brass); }
.feature__t { font-weight: 600; }
.feature__d { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.welcome__signin { font: 600 20px/1.2 var(--font-display); letter-spacing: -.015em; margin: 22px 0 14px; }
.steps-wrap { margin-top: 14px; }
.steps-wrap summary { cursor: pointer; color: var(--brass-hi); font-weight: 600; font-size: 14px; list-style: none; }
.steps-wrap summary::-webkit-details-marker { display: none; }
@media (max-width: 600px) { .welcome h1 { font-size: 31px; } }

/* posters */
.card__body { display: flex; gap: 16px; align-items: flex-start; }
.card__content { flex: 1; min-width: 0; display: block; }
.card__poster { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; flex: none;
  border: 1px solid var(--line-2); box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); background: var(--surface-2); }
@media (max-width: 860px) { .card__poster { width: 52px; } }
.sheet__head { display: flex; gap: 18px; align-items: flex-end; }
.sheet__poster { width: 92px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; flex: none;
  border: 1px solid var(--line-2); box-shadow: 0 14px 28px -14px rgba(0,0,0,.7); }

/* "Is it playing?" */
.search--find input { height: 54px; font-size: 16.5px; }
.find-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text-2); margin: 4px 2px 16px; }
.find-head b { color: var(--text); }
.find { display: flex; align-items: flex-start; gap: 18px; padding: 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.find + .find { margin-top: 12px; }
.find__poster { width: 78px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 7px; flex: none; border: 1px solid var(--line-2); }
.find__main { flex: 1; min-width: 0; }
.find__slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.slot { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 9px; padding: 7px 10px; font-size: 13px; color: var(--text-2); text-align: left; }
.slot b { color: var(--text); font-weight: 600; }
.slot:hover { border-color: var(--brass); }
.slot--more { border-style: dashed; cursor: default; }
.find__follow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag--following { color: var(--brass-hi); border-color: color-mix(in srgb, var(--brass) 45%, transparent); background: none; height: 32px; padding: 0 12px; }
@media (max-width: 600px) { .find { padding: 14px; gap: 14px; } .find__poster { width: 58px; } }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip--btn { cursor: pointer; font: 600 12.5px var(--font-mono); }
.chip--btn.chip--on { background: linear-gradient(180deg, #EED39A, #C9A15B); color: #1A140C; border-color: transparent; }

/* audit fixes */
.tag--following { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.tag--soon { color: var(--brass-hi); border-color: color-mix(in srgb, var(--brass) 40%, transparent); background: none; }
.interest__count { font: 600 13px var(--font); color: var(--brass-hi); white-space: nowrap; }
.ledger-row { grid-template-columns: 150px 1fr auto; }
.ledger-date { white-space: nowrap; }
.seg button { white-space: nowrap; }
@media (max-width: 600px) {
  .page-head { flex-wrap: wrap; }
  .page-head .seg { width: 100%; }
  .page-head .seg button { flex: 1; }
  .ledger-row { grid-template-columns: 1fr auto; }
}

/* =====================================================================
   Motion, gestures, Letterboxd and small joys
   ===================================================================== */
:root {
  --spring: cubic-bezier(.34, 1.4, .64, 1);           /* gentle overshoot */
  --spring-soft: cubic-bezier(.22, 1.12, .36, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* a real spring curve (damped), for sheets and pills */
    --spring-sheet: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 20.6%, 1.043 24.8%, 1.035 28.4%, 1.007 36%, .997 40.8%, 1.001 60%, 1);
  }
}
html { scroll-padding-top: 70px; }
body { overscroll-behavior-y: contain; }

/* ---- top bar: the big title collapses into it on scroll (iOS large titles) */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  margin: 0 -40px 6px; padding: calc(env(safe-area-inset-top) + 10px) 40px 10px; min-height: 52px;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), -webkit-backdrop-filter .3s, backdrop-filter .3s;
}
.title-hidden .topbar {
  background: var(--glass); border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px);
}
.topbar__title {
  position: absolute; left: 50%; transform: translate(-50%, 6px); opacity: 0;
  font: 600 16px/1 var(--font-display); letter-spacing: -.01em; pointer-events: none;
  transition: opacity .25s var(--ease), transform .35s var(--spring-soft);
}
.title-hidden .topbar__title { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 861px) {
  .topbar { margin-top: -34px; padding-top: 14px; justify-content: center; }
  .topbar .wordmark, .topbar .icon-btn { display: none; }
  .topbar__title { position: static; transform: translateY(6px); }
  .title-hidden .topbar__title { transform: none; }
}
@media (max-width: 860px) {
  .topbar { margin: 0 -16px 4px; padding-left: 16px; padding-right: 16px; }
  .title-hidden .topbar .wordmark { opacity: 0; transform: scale(.94); }
  .topbar .wordmark { transition: opacity .2s, transform .3s var(--spring-soft); }
}

/* ---- sliding selection pills (tab bar + sidebar) */
.tabbar { isolation: isolate; }
.tab-pill {
  position: absolute; z-index: -1; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4);
  border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .5s var(--spring-sheet, var(--spring-soft));
}
.tab[aria-current="page"] { background: none; }
.nav { position: relative; isolation: isolate; }
.nav-pill {
  position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 42px; border-radius: 10px;
  background: var(--surface-2); box-shadow: inset 2px 0 0 var(--brass);
  transform: translateY(calc(var(--i, 0) * 44px));
  transition: transform .5s var(--spring-sheet, var(--spring-soft));
}
.nav__item { height: 42px; }
.nav { gap: 2px; }
.nav__item[aria-current="page"] { background: none; box-shadow: none; }

/* ---- presses feel physical */
.btn, .icon-btn, .tab, .nav__item, .chip--btn, .slot, .seg button, .icon-pick, .pick__open {
  transition: transform .35s var(--spring), background .2s, border-color .2s, color .2s;
}
.btn:active, .icon-btn:active, .chip--btn:active, .slot:active, .seg button:active, .icon-pick:active { transform: scale(.95); transition-duration: .08s; }
.tab:active { transform: scale(.92); transition-duration: .08s; }
.card:active, .pick__open:active { transform: scale(.985); transition-duration: .1s; }
.seg button { transition: background .3s var(--ease), color .2s, box-shadow .3s; }
.switch span::after { transition: transform .45s var(--spring); }

/* ---- page transitions & staggered entrances */
::view-transition-old(root) { animation: vt-out .16s ease-in both; }
::view-transition-new(root) { animation: vt-in .42s var(--spring-soft) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.995); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.tabbar { view-transition-name: tabbar; }
.rail { view-transition-name: rail; }
.main--enter .day, .main--enter .find, .main--enter .interest, .main--enter .group, .main--enter .pick, .main--enter .console {
  animation: rise .55s var(--spring-soft) both;
}
.main--enter .day:nth-of-type(2), .main--enter .interest:nth-of-type(2), .main--enter .group:nth-of-type(2) { animation-delay: 40ms; }
.main--enter .day:nth-of-type(3), .main--enter .interest:nth-of-type(3), .main--enter .group:nth-of-type(3) { animation-delay: 80ms; }
.main--enter .day:nth-of-type(n+4), .main--enter .group:nth-of-type(n+4) { animation-delay: 120ms; }
.page { animation: none; }

/* ---- sheets: spring in, slide out */
.sheet { animation: pop .5s var(--spring-sheet, var(--spring-soft)); transition: transform .4s var(--spring-sheet, var(--spring-soft)); }
@media (max-width: 860px) { .sheet { animation: slide .55s var(--spring-sheet, var(--spring-soft)); } }
@keyframes slide { from { transform: translateY(100%); } }
.sheet--out { animation: sheet-out .26s ease-in forwards !important; }
@keyframes sheet-out { to { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
@media (max-width: 860px) { @keyframes sheet-out { to { transform: translateY(100%); } } }
.scrim--out { animation: fade .26s reverse forwards; }

/* ---- swipe to remove */
.swipe { position: relative; border-radius: var(--r-m); }
.swipe + .swipe { margin-top: 12px; }
.group .swipe { border-radius: 0; margin: 0; }
.group .swipe + .swipe { border-top: 1px solid var(--line); }
.swipe > :last-child { position: relative; z-index: 1; background: var(--surface); transition: transform .45s var(--spring-soft); }
.swipe__under {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 22px;
  border-radius: inherit; background: color-mix(in srgb, var(--danger) 82%, #000); color: #fff; font-weight: 700; font-size: 14px;
  opacity: 0; transition: opacity .15s;
}
.swipe:has(> :last-child[style*="translateX"]) .swipe__under { opacity: 1; }
.swipe--armed .swipe__under { background: var(--danger); }
.interest + .interest { margin-top: 0; }

/* ---- pull to refresh */
.ptr {
  position: fixed; z-index: 40; left: 50%; top: calc(env(safe-area-inset-top) + 6px); width: 40px; height: 40px;
  opacity: 0; transform: translate(-50%, -10px) scale(.6); pointer-events: none;
  display: grid; place-items: center; border-radius: 50%; background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line-2);
}
.ptr .lamp { width: 28px; height: 28px; }
.ptr .lamp::before { opacity: 0; }
.ptr--ready .lamp::before, .ptr--spin .lamp::before { opacity: 1; }
.ptr--spin { opacity: 1 !important; transform: translate(-50%, 52px) !important; transition: transform .3s var(--spring); }
.ptr--spin .lamp::before { animation: breathe .9s ease-in-out infinite; }

/* ---- the lamp: flicker, surge, blow */
.lamp { cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.lamp--flicker::before { animation: flicker 1.4s steps(1, end); }
.lamp--flicker .filament { animation: flicker-f 1.4s steps(1, end); }
@keyframes flicker { 0% { opacity: 1 } 8% { opacity: .15 } 12% { opacity: .9 } 19% { opacity: .05 } 22% { opacity: .7 } 35% { opacity: .2 } 38% { opacity: 1 } 60% { opacity: .55 } 63% { opacity: 1 } }
@keyframes flicker-f { 0% { stroke: #FFE2A8 } 8% { stroke: #6b5a40 } 12% { stroke: #FFE2A8 } 19% { stroke: #4a3f30 } 22% { stroke: #ffd38a } 35% { stroke: #6b5a40 } 38% { stroke: #FFE2A8 } }
.lamp--surge::before { opacity: 1; animation: surge 1.2s var(--ease); }
@keyframes surge { 0% { transform: scale(.9); opacity: .6 } 30% { transform: scale(1.35); opacity: 1; filter: brightness(1.5) } 100% { transform: scale(1); opacity: 1 } }
.lamp--dead::before { opacity: 0 !important; transition: none; }
.lamp--dead .filament { stroke: #3a3128 !important; }
.lamp--dead svg { animation: jolt .25s; }
@keyframes jolt { 25% { transform: translate(1px, -1px) rotate(2deg) } 50% { transform: translate(-1px, 1px) rotate(-2deg) } }
.spark, .smoke { position: fixed; z-index: 70; pointer-events: none; }
.spark {
  width: 2px; height: 9px; margin: -4px 0 0 -1px; border-radius: 2px;
  background: linear-gradient(#fff6d8, #ffb45a); box-shadow: 0 0 6px 2px rgba(255,190,90,.8);
  transform: rotate(var(--a)) translateY(0); animation: spark .55s ease-out forwards;
}
@keyframes spark { to { transform: rotate(var(--a)) translateY(-30px); opacity: 0; height: 3px; } }
.smoke {
  width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: radial-gradient(circle, rgba(190,180,165,.55), rgba(190,180,165,0) 70%);
  filter: blur(3px); opacity: 0; animation: smoke 2.1s ease-out var(--d) forwards;
}
.smoke--big { width: 60px; height: 60px; margin: -30px 0 0 -30px; animation-duration: 1.6s; }
@keyframes smoke {
  10% { opacity: .9 }
  100% { opacity: 0; transform: translate(var(--x), -70px) scale(3.2) rotate(40deg); }
}
.smoke-out { animation: smoke-out .52s ease-in forwards !important; pointer-events: none; }
@keyframes smoke-out { to { opacity: 0; filter: blur(10px); transform: translateY(-14px) scale(.96); } }

/* ---- current along the brass wire while a check runs */
.wire { position: relative; }
.wire__spark { display: none; }
.wire--live .wire__spark {
  display: block; position: absolute; top: 50%; left: 0; width: 22px; height: 3px; margin-top: -1.5px; border-radius: 3px;
  background: radial-gradient(closest-side, #fff7dc, #ffc56e 45%, transparent);
  box-shadow: 0 0 10px 3px rgba(255,190,100,.55);
  animation: current 1.6s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes current { from { left: 0; opacity: 0 } 10% { opacity: 1 } 90% { opacity: 1 } to { left: calc(100% - 22px); opacity: 0 } }

/* ---- secrets */
.owls::after {
  content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.85) 85%);
  animation: owls 3.2s ease-in-out forwards;
}
@keyframes owls { 0% { opacity: 0 } 30% { opacity: 1 } 70% { opacity: 1 } 100% { opacity: 0 } }
.zigzag {
  position: fixed; left: -10vw; right: -10vw; bottom: -6vh; height: 46vh; z-index: 80; pointer-events: none;
  background:
    linear-gradient(135deg, #111 25%, transparent 25%) -40px 0,
    linear-gradient(225deg, #111 25%, transparent 25%) -40px 0,
    linear-gradient(315deg, #111 25%, transparent 25%),
    linear-gradient(45deg, #111 25%, transparent 25%);
  background-size: 80px 80px; background-color: #EDE6D8;
  transform: perspective(500px) rotateX(58deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%);
  animation: floor 4.2s ease-in-out forwards;
}
@keyframes floor { 0% { opacity: 0 } 25% { opacity: .92 } 75% { opacity: .92 } 100% { opacity: 0 } }

/* ---- Letterboxd */
.tag--seen { color: var(--text-2); background: none; border-color: var(--line-2); letter-spacing: .02em; }
.section-title { font: 600 24px/1.15 var(--font-display); letter-spacing: -.02em; margin: 6px 0 0; }
.foryou { margin-top: 34px; }
.foryou__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.foryou__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 14px; overflow-x: auto; padding: 2px 2px 16px;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -2px;
}
.foryou__rail::-webkit-scrollbar { display: none; }
@media (max-width: 860px) { .foryou__rail { margin: 0 -16px; padding: 2px 16px 16px; grid-auto-columns: 168px; scroll-padding: 16px; } }
.pick { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.pick__open { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; }
.pick__art { display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(0,0,0,.7); margin-bottom: 8px; }
.pick__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick__title { font: 600 15.5px/1.25 var(--font-display); }
.pick__why { color: var(--brass-hi); font-size: 12.5px; line-height: 1.35; }
.pick__when { color: var(--text-2); font-size: 12.5px; }
.pick__when b { color: var(--text); font-weight: 600; }
.pick__follow { display: flex; flex-wrap: wrap; gap: 6px; }
.pick__follow .btn, .pick__follow .tag { height: 30px; font-size: 12.5px; padding: 0 10px; }
.file-btn { cursor: pointer; }
.stars { color: var(--brass-hi); letter-spacing: .04em; }
.lb-list { margin-top: 18px; }
.lb-list summary { padding: 0 2px 12px; }
.lb-empty p { max-width: 460px; }

/* ---- app icon picker */
.icon-picks { display: flex; gap: 10px; }
.icon-pick { display: grid; justify-items: center; gap: 4px; border: 0; background: none; color: var(--text-2); font-size: 11.5px; padding: 0; }
.icon-pick img { width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line-2); }
.icon-pick[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brass); }
.icon-pick[aria-pressed="true"] { color: var(--text); }
@media (max-width: 600px) { .row:has(.icon-picks) { flex-wrap: wrap; } }

@media (prefers-reduced-motion: reduce) {
  .tab-pill, .nav-pill, .topbar__title { transition: none; }
}

/* ---- Apple Human Interface Guidelines: iOS type scale & touch targets
   Large Title 34 · Title 2 22 · Headline 17 semibold · Body 17 · Subheadline 15 · Footnote 13 */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .page-title { font-size: 34px; letter-spacing: -.022em; }
  .section-title { font-size: 22px; }
  .card__title { font-size: 19px; }
  .row__title, .interest__name { font-size: 17px; }
  .row__sub, .card__meta, .interest__sub, .pick__why, .pick__when, .find-head, .page-sub { font-size: 15px; }
  .group-foot, .notes, .timeline li { font-size: 13px; }
  .facts { font-size: 16px; }
}
@media (pointer: coarse) {
  /* minimum 44×44pt hit areas without making the visuals heavier */
  .btn--sm, .chip--btn, .slot, .seg button, .tag--following, .pick__follow .btn { min-height: 44px; }
  .btn--sm { padding: 0 14px; }
  .icon-btn { width: 44px; height: 44px; }
  .switch { margin: 6px 0; }
  .tab { min-height: 50px; }
}

/* ---- portraits & thumbnails */
.avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--line-2), 0 6px 14px -8px rgba(0,0,0,.6); }
.avatar__i { font: 500 14px/1 var(--font-geo); letter-spacing: .06em; color: #1A140C; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(.85) contrast(1.02); }
.avatar--lg { width: 56px; height: 56px; }
.avatar--lg .avatar__i { font-size: 17px; }
.avatar--sm { width: 34px; height: 34px; }
.avatar--sm .avatar__i { font-size: 12px; }
.row__poster { width: 36px; aspect-ratio: 2 / 3; height: auto; flex: none; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.row__poster--empty { display: block; opacity: .55; }
.ledger-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ledger-main .row__poster { width: 30px; }
.result .row__poster { width: 30px; }

@media (max-width: 600px) {
  .row:has(> .seg), .row:has(> .file-btn) { flex-wrap: wrap; }
  .row > .seg { width: 100%; }
  .row > .seg button { flex: 1; }
}

/* ---- Fellini & Godard */
.egg { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; place-items: center; }
.egg--ring { animation: fade 6.2s ease-in-out reverse both; animation-name: ring-life; }
@keyframes ring-life { 0%, 100% { opacity: 0 } 12%, 85% { opacity: 1 } }
.egg--ring > span {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px;
  transform: rotate(calc(var(--i) * 30deg)) translateY(-130px) rotate(calc(var(--i) * -30deg));
  animation: parade 6.2s linear both;
}
.egg--ring > span .lamp { width: 34px; height: 34px; }
.egg--ring > span .lamp::before { opacity: 1; animation: breathe 1.2s ease-in-out calc(var(--i) * 100ms) infinite; }
@keyframes parade {
  from { transform: rotate(calc(var(--i) * 30deg)) translateY(-130px) rotate(calc(var(--i) * -30deg)); }
  to { transform: rotate(calc(var(--i) * 30deg + 180deg)) translateY(-130px) rotate(calc(var(--i) * -30deg - 180deg)); }
}
.dolce .app, .dolce .tabbar { filter: grayscale(1) contrast(1.12); transition: filter 1.2s ease; }
.app, .tabbar { transition: filter 1.2s ease; }
.jumpcut .main { animation: jumpcut 1.3s steps(1, end); }
@keyframes jumpcut {
  0% { transform: none } 14% { transform: translate(-14px, 6px) scale(1.04) } 28% { transform: translate(10px, -4px) }
  43% { transform: scale(1.08) translateY(18px) } 57% { transform: translate(-6px, -10px) scale(.98) } 71% { transform: translateX(16px) } 86% { transform: none }
}
.egg--intertitles { background: #0b0b0b; animation: ring-life 3.4s steps(1, end) both; }
.egg--intertitles b {
  position: absolute; font: 800 min(26vw, 220px)/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -.04em;
  opacity: 0; animation: card .58s steps(1, end) calc(var(--i) * .72s + .2s) forwards;
}
.egg--intertitles b:nth-child(4n+1) { color: #E3262E; }
.egg--intertitles b:nth-child(4n+2) { color: #F4F1EA; }
.egg--intertitles b:nth-child(4n+3) { color: #1F4FC4; }
.egg--intertitles b:nth-child(4n) { color: #E3262E; font-size: min(17vw, 150px); }
@keyframes card { 0% { opacity: 1 } 100% { opacity: 0 } }
.fin { display: flex; justify-content: center; gap: 2px; margin: 40px 0 10px; font: 800 13px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .1em; opacity: .7; }
.fin span:nth-child(1) { color: #E3262E; } .fin span:nth-child(2) { color: var(--text); } .fin span:nth-child(3) { color: #3B6BE0; }

/* ---- When: All / Tonight / This weekend / Next 7 days */
.when { display: flex; width: max-content; max-width: 100%; overflow-x: auto; margin: -8px 0 22px; scrollbar-width: none; }
.when::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .when { width: 100%; } .when button { flex: 1; padding: 7px 8px; } }

/* ---- long-press menu (iOS context menu) */
.card, .slot, .ledger-row, .pick__open { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.ctx-lift { transform: scale(1.025) !important; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); z-index: 2; position: relative; transition: transform .35s var(--spring); }
.ctx {
  position: fixed; z-index: 95; min-width: 240px; max-width: 300px; padding: 6px; border-radius: 14px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0,0,0,.75);
  transform-origin: top center; animation: ctx-in .32s var(--spring-sheet, var(--spring-soft));
}
@keyframes ctx-in { from { opacity: 0; transform: scale(.86); } }
.ctx__title { padding: 8px 12px 10px; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ctx__title span { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.ctx button { display: block; width: 100%; text-align: left; padding: 11px 12px; border: 0; background: none; border-radius: 9px; font-size: 15px; }
.ctx button:hover, .ctx button:focus-visible { background: var(--surface-2); }
@media (pointer: coarse) { .ctx button { min-height: 44px; } }

/* ---- tonight */
.day__badge--today { border-color: color-mix(in srgb, var(--amber) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 25%, transparent), 0 10px 30px -12px rgba(255,180,90,.45); }
.day__badge--today .day__num { color: var(--amber); }

/* ---- recent searches */
.recents { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 20px; }
.recents > span { font: 500 11px var(--font-geo); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-right: 4px; }
.recents__q { font-family: var(--font); font-weight: 500; }
.recents__clear { border: 0; background: none; color: var(--text-3); font-size: 12.5px; margin-left: auto; }

/* ---- frosted sheet header while scrolling */
.sheet__hero { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px); }

/* ---- what's new */
.whatsnew { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.whatsnew li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.whatsnew b { display: block; font-size: 16px; }
.whatsnew span { color: var(--text-2); font-size: 14px; line-height: 1.45; }

.keybox { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--brass); word-break: break-all; }
.keybox code { font: 600 14px/1.5 var(--font-mono); -webkit-user-select: all; user-select: all; }

/* ---- help & FAQ */
.help-steps { margin: 4px 0 24px; }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 15px 44px 15px 16px; font-weight: 600; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--brass-hi); font: 400 22px/1 var(--font); transition: transform .35s var(--spring); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0; padding: 0 16px 16px; color: var(--text-2); line-height: 1.55; }
.row--link { width: 100%; border: 0; background: none; text-align: left; }
.row--link > span { color: var(--text-3); font-size: 22px; }
.faq-welcome { margin-bottom: 6px; }

.topbar__actions { display: flex; gap: 8px; }
.rail__help { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0 0 12px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.rail__help svg { width: 18px; height: 18px; }
.rail__help:hover { color: var(--text); }

/* ---------------------------------------------------- friends: sign-up & sign-in */
.welcome__note { color: var(--text-2); margin: -4px 0 18px; }
.welcome__box { border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 16px 4px; background: var(--surface); margin-bottom: 18px; }
.welcome__boxtitle { font-weight: 600; margin-bottom: 12px; }
.welcome__sent { background: color-mix(in srgb, var(--brass) 12%, transparent); border-radius: 12px; padding: 14px 16px; color: var(--text); line-height: 1.5; margin: 0 0 16px; }
.welcome__fine { text-align: center; font-size: 12.5px; color: var(--text-3); margin: 12px 0 0; }
.field small { color: var(--text-3); font-size: 12.5px; }
.owner-signin > summary { color: var(--text-3); }
.join-row .row__title .tag { margin-left: 6px; vertical-align: 2px; }

/* feedback */
.fb-kinds { width: 100%; margin-bottom: 12px; }
.fb-kinds button { flex: 1; }
#fb-text { width: 100%; box-sizing: border-box; min-height: 140px; resize: vertical; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); padding: 12px 14px; font: 16px/1.45 var(--font); }
#fb-text:focus { outline: none; border-color: var(--brass); }
.fb-item { align-items: flex-start; }
.fb-item__text { white-space: pre-wrap; margin: 6px 0 4px; line-height: 1.45; }
.fb-done > summary { padding: 12px 16px; color: var(--text-3); cursor: pointer; font-size: 14px; }

/* Add to Home Screen: a quiet card, never a pop-up */
.a2hs { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 16px 44px 16px 16px;
  margin: 0 0 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2);
  animation: a2hs-in .5s cubic-bezier(.2,.9,.25,1.05) both .4s; }
.a2hs__icon { width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.a2hs__t { font-weight: 600; font-size: 15.5px; }
.a2hs__d { color: var(--text-2); font-size: 14px; line-height: 1.45; margin: 3px 0 8px; }
.a2hs__steps { font-size: 14px; line-height: 1.6; color: var(--text); }
.a2hs__glyph { display: inline-flex; vertical-align: -3px; color: #0a84ff; }
.a2hs__or { color: var(--text-3); }
.a2hs__x { position: absolute; top: 8px; right: 8px; }
.a2hs--out { animation: a2hs-out .25s ease-in forwards; }
@keyframes a2hs-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes a2hs-out { to { opacity: 0; transform: scale(.96); height: 0; margin: 0; padding: 0; } }
@media (prefers-reduced-motion: reduce) { .a2hs { animation: none; } }

/* ------------------------------------------------ Letterboxd connect, setup */
.lb-mark { display: inline-flex; gap: 3px; align-items: center; flex: none; }
.lb-mark i { width: 11px; height: 11px; border-radius: 50%; background: var(--brass); display: block; }
.lb-mark i:nth-child(1) { opacity: .55; } .lb-mark i:nth-child(3) { opacity: .8; }
.lbcard { border-radius: 22px; padding: 26px 22px 20px; background: var(--surface); border: 1px solid var(--line-2); margin-bottom: 18px; }
.lbcard > .lb-mark i { width: 14px; height: 14px; }
.lbcard__title { font: 600 24px/1.2 var(--font-display); letter-spacing: -.02em; margin: 14px 0 18px; }
.benefits { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 16px; }
.benefits li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.benefits__icon { width: 30px; height: 30px; color: var(--brass-hi); }
.benefits__icon svg { width: 26px; height: 26px; }
.benefits b { display: block; font-weight: 600; font-size: 15.5px; }
.benefits span { color: var(--text-2); font-size: 14px; line-height: 1.45; }
.lb-connect { display: flex; gap: 10px; align-items: stretch; }
.lb-field { flex: 1; display: flex; align-items: center; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 12px; }
.lb-field:focus-within { border-color: var(--brass); }
.lb-field__pre { color: var(--text-3); font-size: 15px; white-space: nowrap; }
.lb-field input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font-size: 16px; padding: 0 0 0 1px; outline: none; }
.lb-connect .btn { height: 46px; padding: 0 18px; }
.lb-connect--compact { margin: 10px 0 2px; }
@media (max-width: 420px) { .lb-connect:not(.lb-connect--compact) { flex-direction: column; } }
.lbcard__fine { color: var(--text-3); font-size: 12.5px; margin: 12px 0 0; text-align: center; }
.lbimport { border-radius: 18px; padding: 18px; border: 1px solid var(--line-2); margin: 18px 0; }
.lbimport h3 { margin: 0 0 6px; font: 600 18px/1.3 var(--font-display); }
.lbimport > p { color: var(--text-2); margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; }
.guide { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 14px; }
.guide li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.5; }
.guide li .btn { margin-top: 8px; }
.guide__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--font-mono); background: color-mix(in srgb, var(--brass) 16%, transparent); color: var(--brass-hi); }
.mock-btn { display: inline-block; padding: 1px 8px; border-radius: 5px; background: #40bcf4; color: #fff; font: 600 11px/1.6 var(--font); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.lb-alt { margin-top: 6px; }
.lb-banner { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; margin: 0 0 16px; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.lb-banner__text { flex: 1; display: grid; gap: 2px; }
.lb-banner__text span { color: var(--text-2); font-size: 13.5px; }
.lb-banner__go { color: var(--text-3); font-size: 22px; }
.setup { border-radius: 20px; padding: 16px 16px 6px; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line-2); }
.setup__head { display: flex; justify-content: space-between; align-items: start; }
.setup__count { font-weight: 600; font-size: 17px; margin-top: 4px; }
.setup__steps { list-style: none; padding: 0; margin: 10px 0 0; }
.setup__step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.setup__check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--font-mono); border: 1.5px solid var(--line-2); color: var(--text-2); }
.setup__step--done .setup__check { background: var(--brass); border-color: var(--brass); color: #1a140c; }
.setup__step--done .setup__t { color: var(--text-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 50%, transparent); }
.setup__t { font-weight: 600; font-size: 15.5px; margin-top: 2px; }
.setup__d { color: var(--text-2); font-size: 14px; line-height: 1.45; margin: 4px 0 10px; }
.setup__picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.setup__main { min-width: 0; }
.lb-connect--compact .lb-field__pre { font-size: 14px; }
@media (max-width: 480px) { .lb-connect--compact .lb-field__pre { display: none; } }
.setup__picks .chip { font: 500 14px/1 var(--font); padding: 9px 12px; }
@media (max-width: 420px) { .lb-connect:not(.lb-connect--compact) .lb-field { flex: none; } }
.pick__why--2 { color: var(--text-3); margin-top: 2px; }

/* ------------------------------------------------ more auteurs (eggs) */
.zoomin .main { animation: altman-zoom 2.6s ease-in-out both; transform-origin: 50% 30%; }
@keyframes altman-zoom { 50% { transform: scale(1.06); } }
.egg--altman span { position: absolute; left: calc(12% + var(--i) * 14%); top: calc(22% + (var(--i) * 37 % 50) * 1%);
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 16px; padding: 8px 12px; font-size: 14px;
  box-shadow: 0 6px 24px rgb(0 0 0 / .35); animation: chatter 3.6s ease both calc(var(--i) * 140ms); white-space: nowrap; }
@keyframes chatter { 0% { opacity: 0; transform: translateY(8px) scale(.96); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.wkw .app, .wkw .tabbar { animation: wkw-smear 2.4s steps(7, end) both; }
@keyframes wkw-smear {
  0% { filter: none; } 20% { filter: blur(2.5px) saturate(1.8) hue-rotate(-25deg) contrast(1.15); transform: translateX(-3px); }
  45% { filter: blur(1.2px) saturate(2) hue-rotate(35deg); transform: translateX(4px); } 70% { filter: blur(2px) saturate(1.6) hue-rotate(-10deg); transform: translateX(-2px); }
  100% { filter: none; transform: none; } }
.egg--almodovar { display: block; }
.egg--almodovar i { position: absolute; top: 0; bottom: 0; width: 17%; left: calc(var(--i) * 16.6%); background: var(--c);
  transform: scaleY(0); transform-origin: calc(var(--i) * 20%) 0; animation: blocks 2.6s cubic-bezier(.7,0,.2,1) both calc(var(--i) * 60ms); }
@keyframes blocks { 18%, 62% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }
.egg--moon { background: rgb(5 8 20 / .55); animation: ring-life 4.2s ease both; }
.moon { width: min(70vw, 340px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fbf6e6, #e7dcc0 60%, #cbbd99);
  box-shadow: 0 0 80px 20px rgb(255 248 220 / .35); position: relative; overflow: visible; }
.bike { position: absolute; width: 38%; color: #050810; top: 40%; left: -60%; animation: ride 4.2s cubic-bezier(.4,.1,.6,.9) both; }
@keyframes ride { 0% { left: -60%; top: 62%; } 100% { left: 120%; top: 18%; } }
.egg--fin { place-items: end start; }
.egg--fin svg { width: 70px; margin-bottom: 70px; animation: fin 5.2s ease-in-out both; }
@keyframes fin { 0% { transform: translateX(-90px); } 100% { transform: translateX(calc(100vw + 40px)); } }
.egg--spot { background: radial-gradient(circle at 50% 42%, transparent 0 120px, rgb(0 0 0 / .86) 220px); animation: ring-life 3.8s ease both; }
.egg--frogs { display: block; overflow: hidden; }
.egg--frogs span { position: absolute; top: -40px; left: calc(var(--x) * 1%); font-size: calc(28px * var(--s)); animation: rain 2.4s cubic-bezier(.5,0,1,1) var(--d) both; }
@keyframes rain { to { transform: translateY(calc(100vh + 80px)) rotate(200deg); } }
.dolly .main { animation: dolly 2.6s cubic-bezier(.45,0,.2,1) both; }
@keyframes dolly { 0% { transform: none; } 55% { transform: translateY(-26px) scale(1.035); } 100% { transform: none; } }
.heat .app { animation: heat 4.2s ease both; }
@keyframes heat { 30%, 70% { filter: sepia(.45) saturate(1.7) hue-rotate(-12deg) brightness(1.06); } }
.oz .app, .oz .tabbar { animation: oz 3.4s ease both; }
@keyframes oz { 0%, 38% { filter: sepia(1) saturate(.8) contrast(1.05); } 52% { filter: saturate(2.6) contrast(1.1) brightness(1.08); } 100% { filter: none; } }
.pdl .app { animation: pdl 3.6s ease-in-out both; }
@keyframes pdl { 25% { filter: hue-rotate(160deg) saturate(1.8); } 60% { filter: hue-rotate(-40deg) saturate(2) brightness(1.1); } }
.brick .wire { color: #F2C230 !important; filter: drop-shadow(0 0 6px #F2C230); transition: filter .4s; }
@media (prefers-reduced-motion: reduce) { .egg--altman span, .egg--almodovar i, .bike, .egg--fin svg, .egg--frogs span { animation: none; } }
.egg--altman span { left: auto; top: auto; }
.egg--altman span:nth-child(1) { left: 6%; top: 22%; }
.egg--altman span:nth-child(2) { right: 7%; top: 31%; }
.egg--altman span:nth-child(3) { left: 12%; top: 43%; }
.egg--altman span:nth-child(4) { right: 4%; top: 53%; }
.egg--altman span:nth-child(5) { left: 28%; top: 64%; }
.egg--fin svg { margin-bottom: max(130px, calc(env(safe-area-inset-bottom) + 120px)); }

/* Settings: large section headings, Apple-style */
.settings-section { font: 700 22px/1.2 var(--font-display); letter-spacing: -.02em; margin: 34px 4px 4px; }
.page-head + .settings-section { margin-top: 8px; }
.settings-lede { color: var(--text-2); font-size: 14.5px; line-height: 1.5; margin: 2px 4px 6px; }
.runs > summary { margin-top: 14px; }

/* ------------------------------------------- iPhone polish (Nov 10) */
/* Now Showing: a clear heading, and a filter that obviously applies to what's below */
.showing { margin: 26px 0 18px; }
.showing__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.marquee { margin: 0; font: 500 15px/1 var(--font-geo); letter-spacing: .32em; text-transform: uppercase; color: var(--brass-hi); }
.showing__count { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.when { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; width: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.when__label { color: var(--text-3); font-size: 13px; margin-right: 2px; flex: none; }
.when__chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font: 500 14px/1 var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.when__chip[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: #1a140c; font-weight: 600; }
@media (max-width: 600px) { .when { width: auto; } .when button { flex: none; padding: 0 13px; } }
/* Day headers: one line, large and legible */
.day { display: block; margin-bottom: 28px; }
.day__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-weight: 400; }
.day__rel { font: 650 23px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.day__date { font-size: 16px; color: var(--text-2); }
.day__head--today .day__rel { color: var(--amber); }
/* Cards: theater as readable as the title */
.card__title { font-size: 20px; }
.venue { font-size: 17px; font-weight: 600; color: var(--text); }
.card__where { margin-top: 10px; }
.card__meta { font-size: 14px; color: var(--text-3); }
@media (max-width: 600px) { .card__title { font-size: 19px; } .venue { font-size: 16.5px; } .card__meta { font-size: 14px; } }
/* Check now: small, tucked in the top bar */
.icon-btn--busy svg { animation: spin-slow 1.6s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.sheet--small .sheet__hero { padding-bottom: 6px; }
/* Screening sheet: when & where */
.ww__when { font-size: 17px; color: var(--text-2); }
.ww__when b { color: var(--text); font: 650 22px/1.2 var(--font-display); letter-spacing: -.02em; margin-right: 6px; }
.ww__times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.time--btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 15px; padding: 8px 12px; }
.time--btn svg { opacity: .65; }
.ww__hint { color: var(--text-3); font-size: 12.5px; margin-top: 6px; }
.ww__venue { display: grid; gap: 2px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; }
.ww__vname { font-weight: 600; font-size: 17px; }
.ww__addr { color: var(--text-2); font-size: 14.5px; }
.ww__dir { color: var(--brass-hi); font-size: 14px; margin-top: 4px; }

/* ------------------------------------------- less is more (Nov 10) */
.card__edge { display: none; }
.btn--brass { background: var(--brass); box-shadow: none; }
.btn--brass:hover { filter: brightness(1.06); }
.feature--plain { grid-template-columns: 1fr; }
.console { border-radius: 14px; box-shadow: none; }
.console .console__gilt { display: none; }
.console__body { grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; }
.console__headline { font: 600 16px/1.3 var(--font); letter-spacing: 0; }
.console__meta { font-size: 13.5px; margin-top: 2px; display: block; }
.console .lamp { width: 30px; height: 30px; }
@media (max-width: 860px) { .console__body { padding: 12px 14px; } .console__headline { font-size: 16px; } }
.filters-more > summary { margin: 14px 4px 0; }
.foryou__head .page-sub { margin-top: 2px; }
.card { grid-template-columns: 1fr; }

/* I'm going */
.going-tag { font-size: 13px; font-weight: 600; color: var(--brass-hi); }
.going-line { color: var(--brass-hi); font-weight: 600; padding-top: 0; }
.btn--on { border-color: var(--brass); color: var(--brass-hi); }

/* Friends are going */
.fgoing { margin: 0 0 18px; }
.fgoing__title { font: 600 15px/1.2 var(--font); margin: 0 4px 8px; color: var(--text-2); }
.fgoing__row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left;
  padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.fgoing__who { font-weight: 650; color: var(--brass-hi); }
.fgoing__what { color: var(--text-2); font-size: 14.5px; min-width: 0; }
.fgoing__what b { color: var(--text); font-weight: 600; }
.fgoing__go { color: var(--text-3); font-size: 20px; }
.dist { font-size: 13.5px; color: var(--text-2); }

/* Status: a single quiet line, no box */
.console { background: none; border: 0; box-shadow: none; margin: 4px 0 6px; padding: 0; }
.console::before, .console::after { display: none; }
.status-line { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--text-2); flex-wrap: wrap; }
.status-line .lamp { width: 20px; height: 20px; flex: none; }
.status-line .console__headline { font: 600 14px/1.3 var(--font); color: var(--text); }
.status-line__meta { color: var(--text-2); }

.ww__venue--rooms { gap: 8px; }
.ww__room { display: grid; gap: 1px; padding: 10px 0 2px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ww__room b { font-weight: 600; font-size: 15.5px; }
.ww__room span { color: var(--text-2); font-size: 14px; }
.ww__room .ww__dir { color: var(--brass-hi); }

/* Status: comfortable, not tiny (Nov 10, late) */
.status-line { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; flex-wrap: nowrap; }
.status-line > div { display: grid; gap: 2px; min-width: 0; }
.status-line .lamp { width: 38px; height: 38px; flex: none; }
.status-line .console__headline { font: 600 17px/1.25 var(--font); color: var(--text); }
.status-line__meta { font-size: 14px; color: var(--text-2); }
/* Now Showing: a real section header */
.showing { margin: 30px 0 18px; }
.showing__head { padding-bottom: 12px; }
.marquee { font: 700 28px/1.15 var(--font-display); letter-spacing: -.02em; text-transform: none; color: var(--text); }
.showing__count { font-size: 15px; }
@media (max-width: 600px) { .marquee { font-size: 26px; } }
/* Recent searches: plain label */
.recents > span:first-child { font: 500 13px/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--text-3); }
.console { overflow: visible; border-radius: 0; }

/* Seats */
.seat-hint { margin-top: 10px; font-size: 14px; color: var(--brass-hi); }
.seats-row { padding-top: 0; }
.seats-form { display: flex; gap: 8px; }
.seats-form input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 12px; font-size: 16px; }
.seats-form input:focus { outline: none; border-color: var(--brass); }

/* Cards: the poster fills the card's height (no empty space under it), and is bigger */
.card__body { align-items: center; gap: 18px; }
.card__poster { width: 112px; border-radius: 8px; align-self: stretch; height: auto; min-height: 168px; max-height: 190px; object-fit: cover; }
@media (max-width: 860px) { .card__poster { width: 100px; min-height: 150px; max-height: 172px; } .card__body { gap: 16px; padding: 14px 16px 14px 14px; } }

/* Friends tab */
.fgoing-teaser { display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0 6px; padding: 10px 2px; border: 0; background: none;
  color: var(--brass-hi); font: 600 15px/1.3 var(--font); text-align: left; cursor: pointer; }
.fgoing-teaser svg { width: 20px; height: 20px; flex: none; }
.fgoing-teaser span:nth-child(2) { flex: 1; }
.fgoing__row { grid-template-columns: auto 1fr auto; }
.fgoing__poster { width: 44px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; }
.fgoing__main { display: grid; gap: 2px; min-width: 0; }
.fgoing__main b { font-weight: 600; color: var(--text); }
.fgoing__main span { color: var(--text-2); font-size: 14px; }
.fgoing__main .fgoing__who { color: var(--brass-hi); font-weight: 600; }
.fgoing__seat { font: 600 12.5px var(--font-mono); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
.fgoing__poster--empty { display: block; height: 66px; }

/* Hidden lines: a cinema subtitle between letterbox bars */
.egg--sub { display: block; z-index: 95; }
.egg--sub .bar { position: fixed; left: 0; right: 0; height: 9vh; background: #000; }
.egg--sub .bar--top { top: 0; animation: bar-top 3.4s cubic-bezier(.5,0,.2,1) both; }
.egg--sub .bar--bottom { bottom: 0; animation: bar-bottom 3.4s cubic-bezier(.5,0,.2,1) both; }
.egg--sub p { position: fixed; left: 50%; bottom: calc(9vh + 18px); transform: translateX(-50%); margin: 0; max-width: min(88vw, 760px);
  text-align: center; font: 600 clamp(20px, 3.2vw, 30px)/1.3 var(--font); color: #FFF4D6; letter-spacing: .005em;
  text-shadow: 0 0 2px #000, 0 0 2px #000, 0 2px 6px rgba(0,0,0,.9); animation: sub-line 3.4s steps(1, end) both; }
@keyframes bar-top { 0% { transform: translateY(-100%); } 14%, 86% { transform: none; } 100% { transform: translateY(-100%); } }
@keyframes bar-bottom { 0% { transform: translateY(100%); } 14%, 86% { transform: none; } 100% { transform: translateY(100%); } }
@keyframes sub-line { 0%, 16% { opacity: 0; } 17%, 82% { opacity: 1; } 83%, 100% { opacity: 0; } }
.egg--still .bar { display: none; }
.egg--still p { animation: fade-sub 3.4s ease both; }
@keyframes fade-sub { 0%, 100% { opacity: 0; } 15%, 85% { opacity: 1; } }

/* For you: Apple TV style — poster, title, one reason, when & where */
.pick__why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--brass-hi); font-size: 14px; line-height: 1.4; margin-top: 4px; }
.pick__title { font-weight: 600; font-size: 17px; margin-top: 10px; }
.pick__when { font-size: 13.5px; color: var(--text-2); margin-top: 6px; }
.pick__when b { color: var(--text); font-weight: 600; }

/* What's new: the lamps glow without being cut off */
.whatsnew, .whatsnew li { overflow: visible; }
.whatsnew .lamp::before { inset: -35%; }
.sheet__section:has(.whatsnew) { overflow: visible; }
.whatsnew { padding-top: 10px; }

/* Subtitles: a clear black outline, like real film subtitles */
.egg--sub p { text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000,
  0 -1.5px 0 #000, 0 1.5px 0 #000, -1.5px 0 0 #000, 1.5px 0 0 #000, 0 3px 10px rgba(0,0,0,.85); -webkit-text-stroke: .4px #000; }
/* Got a light? */
.woodsman .app, .woodsman .tabbar { filter: grayscale(1) contrast(1.35) brightness(.8); transition: filter 1.2s ease; }
.egg--grain { display: block; z-index: 94; mix-blend-mode: overlay; opacity: .55; animation: grain-life 9s ease both;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.egg--grain::after { content: ""; position: fixed; inset: 0; background: rgba(255,255,255,.05); animation: flicker-white .18s steps(2) infinite; }
@keyframes grain-life { 0% { opacity: 0; } 8%, 88% { opacity: .55; } 100% { opacity: 0; } }
@keyframes flicker-white { 50% { opacity: 0; } }
.ga-btn { margin-top: 8px; }
.ga-btn[aria-pressed="true"] { color: var(--brass-hi); border-color: var(--brass); }

/* Oz: Kansas in sepia, a twister, then Technicolor and a yellow brick road */
.oz2 .app, .oz2 .tabbar { filter: sepia(1) saturate(.75) contrast(1.05); transition: filter .4s ease; }
.oz2.oz2--color .app, .oz2.oz2--color .tabbar { filter: saturate(2.2) contrast(1.08) brightness(1.06); transition: filter 1.4s ease; }
.egg--twister { display: grid; place-items: center; }
.egg--twister i { position: absolute; width: 46vmin; height: 46vmin; border-radius: 50%; border: 2px solid rgba(90,70,40,.45);
  border-left-color: transparent; border-bottom-color: transparent; animation: twist 2.6s ease-in both; }
.egg--twister i:nth-child(2) { width: 30vmin; height: 30vmin; animation-duration: 2.2s; }
.egg--twister i:nth-child(3) { width: 16vmin; height: 16vmin; animation-duration: 1.8s; }
@keyframes twist { 0% { opacity: 0; transform: rotate(0) scale(.6); } 25% { opacity: 1; } 90% { opacity: .9; } 100% { opacity: 0; transform: rotate(1080deg) scale(1.15); } }
.egg--brick { display: block; }
.egg--brick::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 14px;
  background: repeating-linear-gradient(90deg, #F2C230 0 34px, #C79A16 34px 36px); box-shadow: 0 0 22px rgba(242,194,48,.7);
  transform-origin: left; animation: road 4.2s cubic-bezier(.3,0,.2,1) both; }
@keyframes road { 0% { transform: scaleX(0); } 35%, 80% { transform: scaleX(1); opacity: 1; } 100% { opacity: 0; } }
/* Wong Kar-wai: step-printed neon, green and red */
.egg--neon { display: block; mix-blend-mode: screen; animation: neon 3s steps(9, end) both;
  background: radial-gradient(60% 40% at 20% 30%, rgba(0,255,170,.28), transparent 70%), radial-gradient(50% 40% at 80% 70%, rgba(255,40,80,.28), transparent 70%); }
@keyframes neon { 0% { opacity: 0; } 15%, 75% { opacity: 1; } 100% { opacity: 0; } }
.wkw .card, .wkw .day__head { animation: ghost 3s steps(6, end) both; }
@keyframes ghost { 30%, 60% { filter: blur(1.2px) drop-shadow(14px 0 0 rgba(0,255,170,.35)) drop-shadow(-14px 0 0 rgba(255,40,80,.35)); } }

/* Filter: one quiet icon at the end of the Show row; a sheet; one summary chip while on */
.showbar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.showbar .when { margin: 0; flex: 1; min-width: 0; }
.fsheet .chip--btn { font: 500 15px/1 var(--font); padding: 9px 14px; }
.when__filter { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-2); background: transparent; border: 1px solid var(--line); }
.when__filter svg { width: 18px; height: 18px; }
.when__filter--on { color: var(--bg); background: var(--brass, #C9A45C); border-color: transparent; }
.filter-on { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.filter-on__what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface-2, rgba(255,255,255,.06)); border: 0; border-radius: 999px; padding: 7px 14px; }
.filter-on__x { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 0;
  color: var(--text-2); background: var(--surface-2, rgba(255,255,255,.06)); }
.filter-on__x svg { width: 14px; height: 14px; }
.fsec { margin: 0 0 22px; }
.fsec__title { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.fsec--row { padding: 0; border: 0; }
.fsheet__foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0 calc(6px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--sheet-bg, var(--bg)) 30%); }
.fsheet__foot .btn--brass { flex: 1; max-width: 260px; }
.btn--plain { background: transparent; border: 0; color: var(--text-2); }
.btn--plain:disabled { opacity: .4; }
.linkish { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }

/* Comments and "which night?" */
.talk__list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.talk__list li { font-size: 15px; line-height: 1.4; color: var(--text); position: relative; padding-right: 28px; overflow-wrap: anywhere; }
.talk__ago { color: var(--text-3); font-size: 13px; margin-left: 4px; }
.talk__x { position: absolute; right: 0; top: 0; width: 24px; height: 24px; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; cursor: pointer; }
.talk__x svg { width: 12px; height: 12px; }
.talk__form { display: flex; gap: 8px; }
.talk__form input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); padding: 0 12px; font: inherit; font-size: 16px; }
.talk__poll { display: block; margin-top: 12px; font-size: 15px; color: var(--text-2); }
.poll { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.poll__head { display: flex; align-items: baseline; gap: 8px; position: relative; padding-right: 28px; margin-bottom: 6px; }
.poll__head b { font-size: 17px; }
.poll__head span { color: var(--text-3); font-size: 14px; }
.poll__opt { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.poll__when { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: 0; cursor: pointer; display: grid; gap: 2px; }
.poll__when span { color: var(--text-2); font-size: 14px; }
.poll__vote { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; }
.poll__vote[aria-pressed="true"] { background: var(--brass); color: #1A140C; border-color: transparent; }

/* Messages: comments and the Lobby. Plain, like Messages; tap for a Tapback. */
.msgs { list-style: none; margin: 0 0 12px; padding: 0; }
.msg { padding: 8px 0 0; }
.msg--cont { padding-top: 2px; }
.msg__head { display: flex; align-items: baseline; gap: 8px; }
.msg__head b { font-size: 15px; }
.msg__head span { color: var(--text-3); font-size: 13px; }
.msg__text { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 2px 0; margin: 0; color: var(--text); font: inherit; font-size: 16px; line-height: 1.42; overflow-wrap: anywhere; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.msg__text[aria-expanded="true"] { color: var(--brass-hi); }
.msg__re { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.re { height: 28px; padding: 0 9px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.re[aria-pressed="true"] { border-color: var(--brass); box-shadow: 0 0 10px -2px rgba(226,196,138,.45); }
.tapback { display: inline-flex; align-items: center; gap: 2px; margin: 6px 0 4px; padding: 4px; border-radius: 22px; background: var(--raised, var(--surface-2)); border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); animation: pop-in .18s var(--ease); }
.tapback button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; font-size: 21px; cursor: pointer; }
.tapback button:hover, .tapback button:focus-visible { background: var(--surface); }
.tapback .tapback__del { width: auto; padding: 0 12px; border-radius: 19px; font-size: 15px; color: var(--danger, #E5484D); }
@keyframes pop-in { from { opacity: 0; transform: scale(.92); } }

/* The Lobby: rooms with a lamp that's lit when there's something new */
.seg--wide { display: flex; width: 100%; max-width: 420px; margin: 4px 0 18px; }
.seg--wide button { flex: 1; }
.seg__dot, .tab__glow { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brass-hi); box-shadow: 0 0 8px 2px rgba(230,200,134,.6); vertical-align: middle; }
.tab, .nav__item { position: relative; }
.tab__glow { position: absolute; top: 6px; left: calc(50% + 9px); }
.nav__item .tab__glow { position: static; margin-left: 4px; }
.room { align-items: center; }
.room .lamp { width: 28px; height: 28px; flex: none; }
.room__ago { color: var(--text-3); font-size: 13px; margin-right: 6px; flex: none; }
.room .row__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room .row__main { min-width: 0; }
.back { background: none; border: 0; padding: 0 0 6px; color: var(--brass); font: inherit; font-size: 17px; cursor: pointer; }
.room-page { padding-bottom: 96px; }
.composer { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 12px); display: flex; gap: 8px; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 35%); z-index: 5; }
@media (max-width: 860px) { .composer { bottom: calc(env(safe-area-inset-bottom) + 84px); } }
.composer input { flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); padding: 0 16px; font: inherit; font-size: 16px; }
.composer .btn { height: 44px; border-radius: 22px; }

/* Sideways chip rows: soft edges instead of a hard cut */
.when.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.when.fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.when.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.when { scroll-padding-inline: 8px; }

.row--link > .room__ago { font-size: 13px; color: var(--text-3); }
a.logit { text-decoration: none; color: var(--text); }
a.logit .lb-mark { flex: none; }
.room .lamp[data-state="on"] { color: var(--brass-hi) !important; }
.room .lamp[data-state="on"] svg { filter: drop-shadow(0 0 6px rgba(255,214,140,.75)); }
.room .lamp[data-state="off"] { opacity: .55; }

.people-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; margin: -6px 0 14px; border-radius: 17px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.people-btn svg { width: 18px; height: 18px; }

/* ---- The Lobby, as a message board: Discord's layout, iMessage's touches ---- */
.rooms { display: grid; gap: 2px; }
.roomrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text); font: inherit; cursor: pointer; min-height: 56px; }
.roomrow:hover { background: var(--surface); }
.roomrow--on { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--brass); }
.roomrow .lamp { width: 30px; height: 30px; flex: none; }
.roomrow .lamp[data-state="on"] { color: var(--brass-hi) !important; }
.roomrow .lamp[data-state="on"] svg { filter: drop-shadow(0 0 6px rgba(255,214,140,.75)); }
.roomrow .lamp[data-state="off"] { opacity: .5; }
.roomrow__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.roomrow__main b { font-size: 17px; font-weight: 600; }
.roomrow__main span { color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roomrow--new .roomrow__main span { color: var(--text); }
.roomrow time { color: var(--text-3); font-size: 13px; flex: none; align-self: flex-start; margin-top: 4px; }

.board { list-style: none; margin: 0; padding: 0 0 8px; }
.sep { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sep--new { color: var(--brass); }
.sep--new::before, .sep--new::after { background: var(--brass); opacity: .5; }
.post { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 6px 8px; margin: 0 -8px; border-radius: 12px; position: relative; transition: background .2s; }
.post--cont { padding-top: 1px; }
.post:hover, .post--open { background: var(--surface); }
.post--flash { background: rgba(201,161,91,.18); }
.post__av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 17px; color: #fff;
  background: linear-gradient(160deg, hsl(var(--h) 45% 52%), hsl(var(--h) 45% 36%)); margin-top: 2px; }
.post__hover { font-size: 11px; color: var(--text-3); text-align: right; padding-top: 4px; opacity: 0; }
.post:hover .post__hover { opacity: 1; }
.post__body { min-width: 0; }
.post__head { display: flex; align-items: baseline; gap: 8px; }
.post__head b { font-size: 15.5px; }
.post--mine .post__head b { color: var(--brass); }
.post__head time { color: var(--text-3); font-size: 12.5px; }
.post__text { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 1px 0; margin: 0; color: var(--text); font: inherit;
  font-size: 16px; line-height: 1.42; overflow-wrap: anywhere; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.post__reply { display: block; max-width: 100%; text-align: left; border: 0; background: none; padding: 0 0 2px 10px; margin: 2px 0 2px;
  border-left: 2px solid var(--line-2); color: var(--text-2); font: inherit; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.post__card { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; padding: 8px 12px 8px 8px; max-width: 420px; width: 100%; text-align: left;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.post__card > span:not(.post__go) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.post__card b { font-size: 15px; }
.post__card span span { color: var(--text-2); font-size: 13.5px; }
.post__card--gone { color: var(--text-3); font-size: 14px; cursor: default; }
.post__poster { width: 40px; height: 58px; border-radius: 6px; object-fit: cover; flex: none; }
.post__go { color: var(--text-3); font-size: 20px; }
.post__re { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.re { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 13px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.re span { font-size: 12.5px; color: var(--text-2); }
.re[aria-pressed="true"] { border-color: var(--brass); background: rgba(201,161,91,.16); }
.tapback { display: grid; gap: 6px; margin: 8px 0 4px; padding: 6px; width: max-content; max-width: 100%; border-radius: 18px; background: var(--raised);
  border: 1px solid var(--line-2); box-shadow: 0 14px 34px -14px rgba(0,0,0,.55); animation: pop-in .18s var(--ease); }
.tapback__row { display: flex; gap: 2px; }
.tapback__row button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 22px; cursor: pointer; }
.tapback__row button:hover, .tapback__row button:focus-visible { background: var(--surface); }
.tapback__acts { display: flex; border-top: 1px solid var(--line); padding-top: 4px; }
.tapback__acts button { flex: 1; height: 36px; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; border-radius: 10px; cursor: pointer; padding: 0 12px; }
.tapback__acts button:hover { background: var(--surface); }
.tapback__acts .tapback__del { color: var(--danger); }
.board__empty { display: grid; justify-items: center; gap: 6px; padding: 40px 0 24px; color: var(--text-2); text-align: center; }
.board__empty .lamp { opacity: .5; }

.pane__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 2px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pane__head h2 { font: 600 24px/1.2 var(--font-display); margin: 0; letter-spacing: -.01em; }
.pane__head span { color: var(--text-2); font-size: 14px; }
.room-page .back { display: block; margin-bottom: 4px; }
.composer { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 12px); padding: 10px 0 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; display: block; }
@media (max-width: 860px) { .composer { bottom: calc(env(safe-area-inset-bottom) + 84px); } }
.composer__row { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 16px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--surface-2); }
.composer__row input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; padding: 0; }
.composer__send { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brass); color: #1A140C; display: grid; place-items: center; cursor: pointer; }
.composer__reply { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; margin-bottom: 6px; border-radius: 12px;
  background: var(--surface); color: var(--text-2); font-size: 14px; }
.composer__reply button { width: 26px; height: 26px; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; cursor: pointer; }
.composer__reply svg { width: 12px; height: 12px; }

/* iPad and computer: rooms on the left, the conversation on the right */
.lobby2 { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.lobby2__rooms { position: sticky; top: 16px; padding-right: 16px; border-right: 1px solid var(--line); }
.lobby2__chat { min-width: 0; }

.post__av--lamp { background: radial-gradient(circle at 50% 42%, rgba(255,214,140,.35), transparent 70%), var(--surface-2); color: var(--brass-hi); }
.post__av--lamp svg { width: 30px; height: 30px; }
.post__av--lamp .filament { stroke: #FFE2A8; }

.moved__steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 15px; }
.welcome__paste { margin-bottom: 18px; }
.welcome__pastelink { display: block; margin: 14px auto 0; color: var(--text-2); font-size: 15px; }

/* Phones: the top bar already includes the safe area, so the page doesn't add it again */
@media (max-width: 860px) {
  .main { padding-top: 0; }
}
/* A room on a phone: one iPhone navigation bar, the conversation, the message box at the bottom */
.topbar--nav { background: var(--glass); border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px); }
.nav-back { display: inline-flex; align-items: center; gap: 0; min-width: 88px; height: 44px; margin-left: -8px; padding: 0; border: 0; background: none; color: var(--brass); font: inherit; font-size: 17px; cursor: pointer; }
.nav-back--ghost { visibility: hidden; }
.topbar__navtitle { font: 600 17px/1 var(--font-display); letter-spacing: -.01em; }
.room-page { display: flex; flex-direction: column; min-height: calc(100dvh - env(safe-area-inset-top) - 64px - env(safe-area-inset-bottom) - 104px); }
.room-page .board, .room-page .board__empty { flex: 1; }
.room-page .composer { margin-top: auto; }
@media (max-width: 860px) { .room-page .pane__head { display: none; } }
.board__empty p { line-height: 1.5; }
.board__empty b { color: var(--text); font-size: 17px; }

/* Empty room: lamp and words together, in the middle */
.room-page .board__empty { align-content: center; }
/* Phones: the message box sits just above the tab bar, like Messages */
@media (max-width: 860px) {
  .room-page { position: relative; z-index: 1; background: var(--bg); padding-bottom: 76px; min-height: calc(100dvh - env(safe-area-inset-top) - 64px - env(safe-area-inset-bottom) - 104px + 76px); box-shadow: -12px 0 24px -16px rgba(0,0,0,.35); }
  .room-page .composer { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 84px); margin: 0; padding: 0; background: none; z-index: 25; }
  .room-page .composer__row { box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); background: var(--raised); }
  .swipe-under { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; padding: calc(env(safe-area-inset-top) + 64px) 16px 0; background: var(--bg); transform: translateX(-30%); }
}

.find-aside { margin-top: 6px; }
.find-aside > summary { list-style: none; cursor: pointer; color: var(--text-2); font-size: 15px; padding: 12px 2px; }
.find-aside > summary::-webkit-details-marker { display: none; }
.find-aside > summary::after { content: " ›"; color: var(--text-3); }
.find-aside[open] > summary::after { content: " ⌄"; }

.time--sold { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }
.time--btn.time--sold { text-decoration: none; }

.privacy__item { padding: 4px 0 14px; }
.privacy__item b { display: block; font-weight: 600; margin-bottom: 4px; }
.privacy__item p { margin: 0; color: var(--text-2); line-height: 1.5; }
.site-foot { text-align: center; margin: 40px 0 4px; font-size: 12px; color: var(--text-3); }
.site-foot .linkish { color: inherit; text-decoration-color: transparent; }
.site-foot .linkish:hover { text-decoration-color: currentColor; }
