/* NEO-SOCIAL Studio on the web — STUDIO_WEB_PORTAL.
   One type face (BDO Grotesk, ONE_TYPEFACE) and the app's two grounds
   (Theme.swift: neoBackground / neoSurface / neoChip / neoT1-3 / neoLine).
   Change a colour here, never at a call site (TOKENS_ARE_GLOBAL). */

@font-face { font-family: 'BDO Grotesk'; src: url('/studio/fonts/BDOGrotesk-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'BDO Grotesk'; src: url('/studio/fonts/BDOGrotesk-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'BDO Grotesk'; src: url('/studio/fonts/BDOGrotesk-DemiBold.otf') format('opentype'); font-weight: 600; font-display: swap; }

:root {
  --accent: #044EFF; --on-accent: #FFFFFF; --peri: #ABBCDA; --on-peri: #1C1D1C; --terra: #C0392B;
  /* dark (the app's original colours) */
  --bg: #161618; --surface: #1E1E20; --chip: #252527; --sheet: #111113;
  --t1: #F0F0F0; --t2: rgba(255,255,255,.62); --t3: rgba(255,255,255,.45);
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.18); --ringline: rgba(255,255,255,.28);
  --inv-bg: #F0F0F0; --inv-fg: #161618; --hi: #ABBCDA; --ring: 0 0 0 0 transparent;
  --soft: rgba(4,78,255,.18); --bar: rgba(22,22,24,.92); --scheme: dark;
  --badge-bg: #f4f1ec; --badge-fg: #121417; --badge-blur: none;
  --ground: url('/studio/ground.webp'); --ground-wide: url('/studio/ground-wide.webp');
}
:root[data-theme="light"] { --bg:#FCFCFC; --surface:#FFFFFF; --chip:#EDEDEF; --sheet:#FFFFFF; --t1:#1C1D1C; --t2:rgba(28,29,28,.70); --t3:rgba(28,29,28,.62); --line:rgba(28,29,28,.14); --line2:rgba(28,29,28,.24); --ringline:rgba(28,29,28,.22); --inv-bg:#1C1D1C; --inv-fg:#FCFCFC; --hi:#044EFF; --ring:0 0 0 1px rgba(28,29,28,.10); --soft:rgba(4,78,255,.08); --bar:rgba(252,252,252,.92); --scheme: light; --badge-bg: rgba(252,252,252,.62); --badge-fg: #1C1D1C; --badge-blur: blur(20px) saturate(180%); --ground: none; --ground-wide: none; }
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] { --bg:#FCFCFC; --surface:#FFFFFF; --chip:#EDEDEF; --sheet:#FFFFFF; --t1:#1C1D1C; --t2:rgba(28,29,28,.70); --t3:rgba(28,29,28,.62); --line:rgba(28,29,28,.14); --line2:rgba(28,29,28,.24); --ringline:rgba(28,29,28,.22); --inv-bg:#1C1D1C; --inv-fg:#FCFCFC; --hi:#044EFF; --ring:0 0 0 1px rgba(28,29,28,.10); --soft:rgba(4,78,255,.08); --bar:rgba(252,252,252,.92); --scheme: light; --badge-bg: rgba(252,252,252,.62); --badge-fg: #1C1D1C; --badge-blur: blur(20px) saturate(180%); --ground: none; --ground-wide: none; }
}

* { box-sizing: border-box; }
html, body { margin: 0; color: var(--t1); color-scheme: var(--scheme); }
/* APP_BACKGROUND (Sol, 7 Oct 2026): the page sits on the app's own background,
   AppBackground / backGround1 — in dark mode its artwork (the same files as
   invite-web's WEB_DARK_GROUND), in light mode the flat #FCFCFC that the light
   artwork is. html carries the flat colour; body is transparent so a FIXED
   layer of artwork shows behind everything (not background-attachment: fixed,
   which iOS Safari does not hold still). Portrait artwork aspect-filled from the
   top like AppBackground; on a wide window the same artwork turned on its side. */
html { background: var(--bg); }
body { background: transparent; }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 100lvh; z-index: -1; pointer-events: none; background: var(--ground) top center / cover no-repeat; }
@media (max-width: 959px) {
  /* Fades in under the top bar, so Safari's status-bar strip never meets the artwork's pale corner. */
  body::before { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 160px); mask-image: linear-gradient(to bottom, transparent, #000 160px); }
}
@media (min-width: 960px) { body::before { background-image: var(--ground-wide); background-position: center; } }
body { font-family: 'BDO Grotesk', -apple-system, system-ui, sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--hi); text-underline-offset: 3px; }
a:hover { color: var(--t1); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--t3); }
select option { background: var(--surface); color: var(--t1); }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type scale 11 / 13 / 15 / 18 / 22 / 34 / 48 (TYPE_SCALE) */
.eyebrow { font-weight: 600; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--t2); }
.eyebrow.hi { color: var(--hi); }
.h-title { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; }
.h-sec { margin: 0; font-size: 18px; font-weight: 500; }
.h-feature { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.2; }
.muted { color: var(--t2); }
.faint { color: var(--t3); }
.small { font-size: 13px; }
.cap { font-size: 11px; }

/* boot */
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.boot-mark { font-size: 18px; font-weight: 500; }
.boot-mark span { font-weight: 600; font-size: 11px; letter-spacing: .12em; color: var(--hi); margin-left: 8px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding: 14px 32px; background: var(--bar); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--t1); font-size: 17px; font-weight: 500; }
.brand span { font-weight: 600; font-size: 11px; letter-spacing: .12em; color: var(--hi); }
.nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--t2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--t1); text-decoration: underline; text-underline-offset: 6px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--chip); color: var(--t1); display: inline-flex; align-items: center; justify-content: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--peri); color: var(--on-peri); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; text-decoration: none; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.md { width: 40px; height: 40px; }

/* buttons (PRIMARY_CTA: one primary) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--t1); font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn:hover { color: var(--t1); border-color: var(--t3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.btn.primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn.inv { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-fg); font-weight: 500; }
.btn.inv:hover { color: var(--inv-fg); }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.quiet { border: 0; padding: 0 4px; color: var(--t2); }
.btn.dashed { border-style: dashed; color: var(--t2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.go { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.go[disabled] { opacity: .45; }

/* layout */
.page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 40px clamp(16px, 3vw, 32px) 96px; display: flex; flex-direction: column; gap: 28px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.split > .side { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 32px; }
.row { display: flex; align-items: center; gap: 12px; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }

/* cards */
.card { background: var(--surface); box-shadow: var(--ring); border-radius: 16px; padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.kpi { display: flex; flex-direction: column; gap: 10px; }
.kpi .val { font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.datebox { width: 56px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 10px; background: var(--chip); }
.datebox b { font-size: 22px; font-weight: 500; line-height: 1.1; }
.datebox span { font-weight: 600; font-size: 11px; letter-spacing: .08em; color: var(--hi); }
.thumb { width: 56px; height: 70px; flex: none; border-radius: 10px; background: var(--chip) center/cover no-repeat; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--chip); color: var(--t2); white-space: nowrap; }
.pill.live { background: var(--soft); color: var(--hi); }
.pill.peri { background: var(--peri); color: var(--on-peri); }
.pill.bad { background: rgba(192,57,43,.14); color: var(--terra); }
.bar { height: 8px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.empty { padding: 32px 20px; text-align: center; color: var(--t2); }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px rgba(4,78,255,.45); }
.notice.warn { background: rgba(192,57,43,.08); box-shadow: inset 0 0 0 1px rgba(192,57,43,.4); }
.err { color: var(--terra); font-size: 13px; min-height: 18px; }

/* segmented + tabs + chips */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); }
.seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--t2); font-size: 14px; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--inv-bg); color: var(--inv-fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--t1); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.chip[aria-pressed="true"] { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-fg); }
.steps { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li { height: 34px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; background: var(--chip); color: var(--t2); font-weight: 600; font-size: 12px; letter-spacing: .08em; }
.steps li[aria-current="step"] { background: var(--inv-bg); color: var(--inv-fg); }

/* forms (FORM_ROLES: stacked labels, underline fields like the app) */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--t2); }
.field .sub { font-size: 13px; color: var(--t2); font-weight: 400; letter-spacing: 0; text-transform: none; }
.u { height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--t1); font-size: 17px; width: 100%; border-radius: 0; }
.u.title { font-size: 22px; font-weight: 500; }
.u:focus { outline: none; border-bottom-color: var(--accent); }
.box { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--t1); font-size: 15px; line-height: 1.5; width: 100%; resize: vertical; }
.box:focus { outline: none; border-color: var(--accent); }
.pillin { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--chip); }
.pillin input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--t1); font-size: 15px; outline: none; }
.pillin.code input { font-size: 22px; font-weight: 500; letter-spacing: .35em; }
.mini { height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--chip); color: var(--t1); font-size: 14px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 220px; border-radius: 16px; border: 1px dashed var(--line2); background: var(--surface) center/cover no-repeat; color: var(--t2); cursor: pointer; text-align: center; padding: 16px; position: relative; overflow: hidden; }
.drop.has { border-style: solid; min-height: 320px; }
.drop.has .drop-copy { background: rgba(20,21,20,.72); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; position: absolute; bottom: 14px; }
.suggest { position: relative; }
.suggest ul { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; background: var(--surface); box-shadow: 0 12px 32px rgba(0,0,0,.25), var(--ring); border-radius: 12px; }
.suggest li button { width: 100%; text-align: left; padding: 10px 12px; border: 0; background: transparent; border-radius: 8px; display: flex; flex-direction: column; }
.suggest li button:hover { background: var(--chip); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--chip); border: 0; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { left: 21px; }
.person { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1.4fr) auto; gap: 10px 14px; align-items: end; padding: 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--ring); }
@media (max-width: 640px) { .person { grid-template-columns: 1fr 1fr; } }

/* action bar */
.actionbar { position: sticky; bottom: 0; z-index: 15; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; padding: 14px clamp(16px, 3vw, 32px); background: var(--bar); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.actionbar .note { margin-right: auto; font-size: 13px; color: var(--t2); }

/* login */
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth header { display: flex; justify-content: space-between; align-items: center; padding: 22px 32px; }
.auth main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 24px 16px 80px; }
.auth .mark { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.auth .mark h1 { margin: 0; font-size: clamp(40px, 7vw, 72px); font-weight: 500; letter-spacing: -.03em; line-height: .95; }
.auth .panel { width: 100%; max-width: 440px; padding: 28px; border-radius: 20px; background: var(--surface); box-shadow: var(--ring); display: flex; flex-direction: column; gap: 22px; }
.auth .panel.wide { max-width: 640px; }
.auth .panel h2 { margin: 0; font-size: 22px; font-weight: 500; }
.linkbtn { border: 0; background: none; padding: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--t1); font-weight: 600; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.linkbtn.quiet { color: var(--t2); }

/* charts */
.bars { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; align-items: end; min-height: 160px; }
.bars > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; text-align: center; }
.bars .b { border-radius: 6px; background: var(--accent); min-height: 2px; }
.bars .b.now { background: var(--soft); border: 1px dashed var(--hi); }
.hbar { display: grid; grid-template-columns: 72px minmax(0,1fr) 44px; align-items: center; gap: 12px; font-size: 14px; }
table.t { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; padding: 16px 20px; font-weight: 600; font-size: 12px; letter-spacing: .08em; color: var(--t2); text-transform: uppercase; }
table.t td { padding: 16px 20px; border-top: 1px solid var(--line); }
.scrollx { overflow-x: auto; }

/* event preview (mirrors the app's studio event page order) */
.ev { max-width: 520px; width: 100%; border-radius: 28px; background: var(--surface); box-shadow: var(--ring); overflow: hidden; }
.ev .poster { position: relative; aspect-ratio: 4/5; border-radius: 12px; margin: 8px 8px 0; background: var(--chip) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--t3); font-weight: 600; font-size: 12px; letter-spacing: .09em; }
/* MediaBadgePill (ViewModifiers.swift): the price and Buy ticket tags sit at the
   TOP of the poster, 16 in from its sides and 10 down; caption 11, 8 x 4, radius 8.
   Dark: cream #f4f1ec with #121417 text. Light: frosted material with ink text. */
.mbadges { position: absolute; top: 10px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.mbadge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; font-weight: 400; font-size: 11px; letter-spacing: 0; line-height: 1.3; background: var(--badge-bg); color: var(--badge-fg); -webkit-backdrop-filter: var(--badge-blur); backdrop-filter: var(--badge-blur); }
.mbadge svg { width: 10px; height: 10px; }
.ev .body { padding: 24px 24px 32px; display: flex; flex-direction: column; gap: 26px; }
.ev h2 { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.ev section { display: flex; flex-direction: column; gap: 10px; }
.ev .sec-t { font-size: 18px; font-weight: 500; }
.ev .rowbox { display: flex; flex-direction: column; border-radius: 14px; background: var(--chip); }
.ev .rowbox > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ev .rowbox > div:last-child { border-bottom: 0; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.dot { width: 26px; height: 26px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line2); color: var(--t2); }
.dot.ok { background: var(--hi); color: var(--inv-fg); box-shadow: none; }

/* universe rings */
.rings { position: relative; width: 540px; max-width: 100%; aspect-ratio: 1/1; }
.rings .r { position: absolute; padding: 0; border-radius: 50%; background: transparent; border: 2px solid var(--ringline); }
.rings .r[aria-pressed="true"] { background: var(--soft); border: 3px solid var(--accent); }
.rings .r > span { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); padding: 3px 8px; border-radius: 999px; background: var(--bg); white-space: nowrap; font-weight: 600; font-size: 11px; letter-spacing: .08em; color: var(--t2); }
.rings .r[aria-pressed="true"] > span { color: var(--t1); }
.rings .d { position: absolute; z-index: 20; pointer-events: none; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; background: var(--inv-bg); color: var(--inv-fg); overflow: hidden; }
.rings .d.off { background: var(--chip); color: var(--t3); }
.rings .d img { width: 100%; height: 100%; object-fit: cover; }
.rings .me { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; z-index: 30; pointer-events: none; }
.dir-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 8px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--t1); }
.dir-row:hover, .dir-row[aria-pressed="true"] { background: var(--chip); }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; padding: 24px; border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--chip); color: var(--t1); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--t1); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.skel { background: var(--chip); border-radius: 8px; min-height: 18px; }

@media (max-width: 720px) {
  .topbar { padding: 10px 16px; }
  .nav { order: 3; width: 100%; gap: 0 18px; overflow-x: auto; flex-wrap: nowrap; }
  .h-title { font-size: 28px; }
}

/* Event page — the owner's action list (EventOwnerActionsSheet rows) */
.act { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--t1); font: inherit; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.act:last-child { border-bottom: 0; }
.act:hover { background: var(--chip); }
.act .ic { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--chip); display: grid; place-items: center; }
.act.bad { color: var(--terra); }
.btn svg { flex: none; }

/* Studio Universe — Select mode */
.tick { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--on-accent); }
.tick.on { background: var(--accent); border-color: var(--accent); }
.btn.disabled { opacity: .45; pointer-events: none; }

/* Event page — the public web page (EVENT_WEB_PAGE), framed at phone width */
/* the populated event page (STUDIO_WEB_PORTAL — as invite-web /e/[id] draws it) */
.avatar.xs { width: 24px; height: 24px; font-size: 11px; }
.evp-date { display: flex; flex-direction: column; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.evp-date > span:first-child { font-size: 18px; font-weight: 500; }
.evp-person { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; }
.evp-person .avatar.md { margin-top: 2px; }
.evp-name-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.evp-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.evp-name.strong { font-weight: 600; }
.evp-ctl { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; }
.evp-role { width: 84px; flex: none; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); padding-top: 5px; }
.evp-roster { display: flex; flex-direction: column; gap: 10px; }
.plink { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--t2); text-decoration: none; }
.plink:hover { color: var(--t1); }
.dot-sep { color: var(--t3); font-size: 11px; }
.songbtn { width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--chip); color: var(--t1); cursor: pointer; flex: none; padding: 0; }
.songbtn:hover { background: var(--line2); }
.evp-map { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: var(--chip); }
.evp-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evp-map[aria-busy="true"] { animation: mapwait 1.4s ease-in-out infinite alternate; }
@keyframes mapwait { from { opacity: .55; } to { opacity: 1; } }
.evp-map.tbd { display: grid; place-items: center; color: var(--t3); font-weight: 600; letter-spacing: .1em; }
.evp-venue { display: flex; align-items: flex-start; gap: 12px; color: var(--t1); text-decoration: none; }
.evp-pin { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--chip); display: grid; place-items: center; color: var(--t2); }
.evp-sound { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: var(--chip); color: var(--t1); text-decoration: none; }
.evp-sound .thumb { background-size: cover; background-position: center; flex: none; }
.langsel { height: 36px; border-radius: 999px; padding: 0 12px; }

/* Discover — STUDIO_WEB_DISCOVER: the app's feed (DiscoverNavBar's dial + EventCardView) */
.eyebrow.live { display: inline-flex; align-items: center; gap: 8px; }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(4,78,255,.55); } 70% { box-shadow: 0 0 0 8px rgba(4,78,255,0); } 100% { box-shadow: 0 0 0 0 rgba(4,78,255,0); } }
@media (prefers-reduced-motion: reduce) { .livedot { animation: none; } }
.dsearch { display: flex; align-items: center; gap: 10px; width: min(440px, 100%); height: 48px; border-bottom: 1px solid var(--line2); }
.dsearch:focus-within { border-bottom-color: var(--accent); }
.dsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--t1); font-size: 16px; outline: none; }
.dial { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: -8px; border-bottom: 1px solid var(--line); }
.dtabs { display: flex; align-items: center; gap: 22px; }
.dtab { position: relative; height: 46px; padding: 0; border: 0; background: none; color: var(--t2); font-size: 15px; white-space: nowrap; }
.dtab:hover { color: var(--t1); }
.dtab[aria-selected="true"] { color: var(--t1); }
.dtab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--t1); }
.ddate { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.ddate input[type="date"] { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.dx { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--chip); color: var(--t2); line-height: 1; }
.dsel { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 46px; color: var(--t2); cursor: pointer; }
.dsel.on, .dsel:hover { color: var(--t1); }
.dsel select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 15px; }
.dsel:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.dsel-v { font-size: 15px; white-space: nowrap; }
.dchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--chip); color: var(--t1); font-size: 13px; }
.dchip span { color: var(--t3); }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 18px; }
.fcard { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--t1); text-decoration: none; }
.fcard:hover { color: var(--t1); }
.fposter { position: relative; display: block; aspect-ratio: 45 / 61; border-radius: 10px; overflow: hidden; background: var(--chip) center / cover no-repeat; box-shadow: 0 2px 3px rgba(0,0,0,.10); transition: transform .2s; }
.fcard:hover .fposter { transform: translateY(-2px); }
.fposter video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.fposter video.on { opacity: 1; }
.fnone { position: absolute; inset: 0; display: grid; place-items: center; color: var(--t3); font-size: 13px; }
.fbadges { position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fbadge { display: inline-flex; align-items: baseline; padding: 4px 8px; border-radius: 8px; font-size: 12px; line-height: 1.3; color: var(--t1); background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.fbadge small { margin-left: 3px; font-size: 10px; font-weight: 400; opacity: .85; }
.fbadge.ftop { position: absolute; top: 10px; left: 10px; align-items: center; gap: 4px; }
.ftitle { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fsub { margin-top: -3px; font-size: 12px; line-height: 1.35; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) {
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .dial { gap: 0 16px; }
  .dtabs { gap: 16px; max-width: 100%; overflow-x: auto; }
}

/* another studio's event page and profile (STUDIO_WEB_DISCOVER) */
.back { min-height: 36px; margin: -16px 0 -14px -4px; }
.crumb { color: inherit; text-decoration: none; }
.crumb:hover { color: var(--t1); }
.hostcard { padding: 16px; color: var(--t1); text-decoration: none; }
.hostcard:hover { color: var(--t1); background: var(--chip); }
.evp-person.linked { margin: 0 -8px; padding: 4px 8px; border-radius: 12px; color: var(--t1); text-decoration: none; }
.evp-person.linked:hover { color: var(--t1); background: var(--chip); }
.evp-link { color: var(--t1); text-decoration: none; }
.evp-link:hover { color: var(--t1); text-decoration: underline; }
.minirow { flex-wrap: nowrap; padding: 12px 18px; color: var(--t1); text-decoration: none; }
.minirow:hover { color: var(--t1); background: var(--chip); }
.pphoto { aspect-ratio: 4 / 5; border-radius: 24px; background: var(--chip) center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 500; color: var(--t3); }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 14px; }
.ptiles.sm { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.ptile { gap: 8px; min-width: 0; color: var(--t1); text-decoration: none; }
.ptile:hover { color: var(--t1); }
.ptile-img { display: block; aspect-ratio: 4 / 5; background: var(--chip) center / cover no-repeat; transition: transform .2s; }
.ptile:hover .ptile-img { transform: translateY(-2px); }
.ptile-t { font-weight: 500; line-height: 1.25; }
.dir-row > .muted:last-child { margin-left: auto; }

/* Sign in — STUDIO_WEB_FRONT_DOOR: the app's front door (NeoSocialFrontDoorView)
   and studio sign-in (StudioAuthenticationView), on the app background. */
.door-mark { display: block; width: 278.81px; max-width: 76vw; height: auto; color: var(--t1); }
.boot .door-mark { opacity: .9; }
.door { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; width: 100%; max-width: 520px; margin: 0 auto; padding: 0 16px; }
.door-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding-top: 10px; }
.door-back { width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; color: var(--t1); display: grid; place-items: center; border-radius: 50%; }
.door-back:hover { background: var(--chip); }
.door .langsel { height: 32px; padding: 0 10px; font-size: 13px; background: transparent; border-color: var(--line); color: var(--t2); }
/* The language toggle sits at the page's far right, not the narrow column's. */
.door .langsel { position: absolute; top: 26px; right: 24px; z-index: 2; }
@media (max-width: 560px) { .door .langsel { right: 16px; } }
.door-spacer { flex: 1; }
.door-front { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }
/* FRONT_DOOR_PAIR: the two pills are one pair — frosted material, hairline, pill radius. */
.door-pills { display: flex; flex-direction: column; gap: 20px; width: 100%; padding: 16px 14px; margin-bottom: 8vh; animation: doorIn .5s ease-out .1s both; }
.door-pill { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border-radius: 999px; border: .5px solid color-mix(in srgb, var(--t1) 15%, transparent); background: color-mix(in srgb, var(--surface) 45%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 4px 10px rgba(0,0,0,.12); color: var(--t1); font-size: 16px; text-decoration: none; cursor: pointer; }
.door-pill:hover { color: var(--t1); background: color-mix(in srgb, var(--surface) 70%, transparent); }
@keyframes doorIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .door-pills { animation: none; } }
.door-step { flex: 1; display: flex; flex-direction: column; }
.door-title { margin: 48px 0 48px; text-align: center; font-size: 40px; font-weight: 500; line-height: 1.1; color: var(--t1); }
.door-field { display: flex; align-items: center; gap: 14px; padding: 10px 8px; color: var(--t1); }
.door-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--t1); font-size: 15px; outline: none; padding: 6px 0; }
.door-field input::placeholder { color: var(--t1); opacity: 1; }
.door-quiet { align-self: flex-start; margin: 4px 0 0 42px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--t2); font-size: 13px; }
.door-quiet:hover { color: var(--t1); }
.door-next { min-height: 56px; margin: 0 12px 10vh; border: 0; border-radius: 999px; background: transparent; color: var(--t1); font-size: 16px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.door-next:not([disabled]):hover { background: color-mix(in srgb, var(--t1) 8%, transparent); }
.door-next[disabled] { color: #8e8e93; cursor: default; }
.door-alert { max-width: 340px; }
.door-panelled { max-width: none; }
.door-head { display: flex; justify-content: center; padding: 24px 0 32px; }
.door-panel { width: 100%; max-width: 440px; margin: 0 auto 64px; padding: 28px; border-radius: 20px; background: var(--surface); box-shadow: var(--ring); display: flex; flex-direction: column; gap: 22px; }
.door-panel.wide { max-width: 640px; }
.door-panel h2 { margin: 0; font-size: 22px; font-weight: 500; }

/* Composer — EVENT_MEDIA, the photo at poster size, text boxes that fit their text */
.drop.poster { aspect-ratio: 4 / 5; width: 100%; max-width: 504px; min-height: 0; border-radius: 12px; background-size: cover; background-position: center; }
.drop.poster.has { min-height: 0; }
.box.grow { resize: none; overflow: hidden; min-height: 96px; }
.vdrop { min-height: 140px; max-width: 504px; }
.vprev { display: flex; flex-direction: column; gap: 10px; max-width: 504px; }
.vprev video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--chip); }
.ev .poster { overflow: hidden; }
.poster-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev .poster .mbadges { z-index: 1; }
/* EVENT_YOUTUBE: the play button on the poster, the player it becomes, and the composer's preview. */
.ytplay { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ytplay svg { width: 26px; height: 26px; margin-left: 3px; }
.ytplay:hover { background: rgba(0,0,0,.7); }
.ev .poster.yt-on { aspect-ratio: 16 / 9; background: #000; }
.ev .poster.yt-on iframe, .ytprev iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ytprev { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }

/* When — SERIES_AND_MULTIDAY: the app's WhenSheet, inline */
.wcard { border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); overflow: hidden; }
.wrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.wcard > .wrow:last-child, .wcard > .wday:last-child { border-bottom: 0; }
.wchips { justify-content: flex-start; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.wchips .chip { min-height: 34px; font-size: 13px; }
.wstep { display: inline-flex; align-items: center; gap: 4px; }
.wstep button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--t1); font-size: 16px; line-height: 1; }
.wstep button[disabled] { opacity: .35; cursor: default; }
.wstep b { min-width: 28px; text-align: center; font-weight: 600; }
.wdays { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wdays button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--t2); font-size: 13px; font-weight: 600; }
.wdays button[aria-pressed="true"] { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-fg); }
.wdays button[data-first] { box-shadow: 0 0 0 2px var(--accent); }
.wstrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; }
.wdate { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; width: 56px; padding: 8px 0; border-radius: 12px; border: .5px solid var(--line2); background: color-mix(in srgb, var(--t1) 6%, transparent); color: var(--t1); font-size: 11px; }
.wdate span { color: var(--t2); letter-spacing: .04em; }
.wdate b { font-size: 18px; font-weight: 500; }
.wdate.skip { background: transparent; border: 1px dashed var(--line2); color: var(--t3); }
.wdate.skip b { text-decoration: line-through; color: var(--t3); }
.wday { border-bottom: 1px solid var(--line); }
.wdayhead { width: 100%; border: 0; border-bottom: 0; background: transparent; color: var(--t1); text-align: left; font: inherit; cursor: pointer; }
.wdayhead:hover { background: var(--chip); }
.wdaybody { padding: 4px 14px 16px; }
.wsum { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.wrow:has(> .wdays) { flex-wrap: wrap; row-gap: 10px; }
.wrow:has(> .wdays) > span:first-child { white-space: nowrap; }
.wdays { flex-wrap: nowrap; }
@media (max-width: 480px) { .wrow:has(> .wdays) > .wdays { width: 100%; justify-content: space-between; } .wdays button { width: 36px; height: 36px; } }
/* A later day's own hours, right on its row (Same hours every day: off). */
.wdayhours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 14px 14px; }
/* EVENT_AGENDA — composer rows and the event page list. */
.agenda { display: flex; flex-direction: column; gap: 6px; }
.agrow { display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 180px) 32px; gap: 12px; align-items: end; }
.agx { width: 32px; height: 32px; border: 0; background: transparent; color: var(--t3); font-size: 20px; line-height: 1; cursor: pointer; border-radius: 50%; }
.agx:hover { color: var(--t1); background: color-mix(in srgb, var(--t1) 8%, transparent); }
.agadd { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--t2); font: inherit; font-size: 14px; padding: 10px 0 2px; cursor: pointer; }
.agadd i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.agadd:hover { color: var(--t1); }
@media (max-width: 640px) { .agrow { grid-template-columns: 96px minmax(0, 1fr) 32px; } .agrow .agwho { grid-column: 2 / 3; } }
.agi { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.agi:first-child { border-top: 0; }
.agi-t { color: var(--t2); font-size: 13px; padding-top: 1px; }
.agday + .agday { margin-top: 14px; }
.agday-h { display: block; font-size: 14px; padding-bottom: 2px; }
