/* Backline — iOS look.
   System font, grouped backgrounds, system colors, translucent bars.
   The lineup faders become Control Center-style sliders in each instrument's color. */

@property --lvl {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

:root {
  --bg: #F2F2F7;                       /* systemGroupedBackground */
  --panel: #FFFFFF;                    /* secondarySystemGroupedBackground */
  --panel-2: rgba(118, 118, 128, .12); /* tertiarySystemFill */
  --fill: rgba(118, 118, 128, .12);
  --fill-strong: rgba(120, 120, 128, .2);
  --ink: #000000;                      /* label */
  --muted: rgba(60, 60, 67, .6);       /* secondaryLabel */
  --line: rgba(60, 60, 67, .18);       /* separator (soft) */
  --sep: rgba(60, 60, 67, .29);
  --accent: #007AFF;                   /* systemBlue */
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(0, 122, 255, .12);
  --danger: #FF3B30;                   /* systemRed */
  --ok: #248A3D;                       /* accessible systemGreen for text */
  --switch-on: #34C759;
  --warn-soft: rgba(255, 59, 48, .1);
  --bar: rgba(249, 249, 249, .8);      /* bar material */
  --seg-active: #FFFFFF;
  --tape: transparent;
  --tape-ink: var(--ink);
  --track: rgba(120, 120, 128, .2);
  --knob-hi: #FFFFFF;
  --knob-lo: #FFFFFF;
  --shadow: none;

  --f-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --f-marker: var(--f-body);

  --r: 12px;
  --gutter: 16px;
  --navh: 50px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --panel: #1C1C1E;
    --panel-2: rgba(118, 118, 128, .24);
    --fill: rgba(118, 118, 128, .24);
    --fill-strong: rgba(120, 120, 128, .36);
    --ink: #FFFFFF;
    --muted: rgba(235, 235, 245, .6);
    --line: rgba(84, 84, 88, .55);
    --sep: rgba(84, 84, 88, .65);
    --accent: #0A84FF;
    --accent-ink: #FFFFFF;
    --accent-soft: rgba(10, 132, 255, .22);
    --danger: #FF453A;
    --ok: #30D158;
    --switch-on: #30D158;
    --warn-soft: rgba(255, 69, 58, .18);
    --bar: rgba(22, 22, 23, .78);
    --seg-active: #636366;
    --track: rgba(120, 120, 128, .36);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --panel: #1C1C1E; --panel-2: rgba(118, 118, 128, .24); --fill: rgba(118, 118, 128, .24); --fill-strong: rgba(120, 120, 128, .36);
  --ink: #FFFFFF; --muted: rgba(235, 235, 245, .6); --line: rgba(84, 84, 88, .55); --sep: rgba(84, 84, 88, .65);
  --accent: #0A84FF; --accent-ink: #FFFFFF; --accent-soft: rgba(10, 132, 255, .22); --danger: #FF453A; --ok: #30D158; --switch-on: #30D158;
  --warn-soft: rgba(255, 69, 58, .18); --bar: rgba(22, 22, 23, .78); --seg-active: #636366; --track: rgba(120, 120, 128, .36);
  color-scheme: dark;
}

/* ---- Base ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.4 var(--f-body);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 .75em; }
h1, h2, h3 { margin: 0; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--muted); }
.center { text-align: center; margin-top: 24px; }
.eyebrow {
  margin: 0 0 4px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.title {
  font-family: var(--f-display); font-weight: 900; 
  font-size: clamp(2.1rem, 5vw, 3rem); line-height: .95; letter-spacing: .01em;
  margin-bottom: 8px;
}
.subtitle {
  font-family: var(--f-display); font-weight: 800; 
  font-size: 1.25rem; letter-spacing: .03em; margin: 20px 0 10px;
}
.panel > .subtitle:first-child, .dlg .subtitle:first-child { margin-top: 0; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.hint { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }

/* ---- Shell ------------------------------------------------------------ */

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--bg); /* no backdrop-filter: it would trap the fixed mobile nav */
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--f-display); font-weight: 900; 
  font-size: 1.7rem; letter-spacing: .04em; text-decoration: none; line-height: 1;
}

.nav {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--navh) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--panel); border-top: 1px solid var(--line);
}
.nav__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.nav__item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav__item.is-active { color: var(--ink); }
.nav__item.is-active::before {
  content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent);
}
.nav__item .badge { position: absolute; top: 8px; left: calc(50% + 6px); }

.main {
  max-width: 1120px; margin: 0 auto;
  padding: 24px var(--gutter) calc(var(--navh) + 40px + env(safe-area-inset-bottom));
}
.page--narrow { max-width: 720px; margin: 0 auto; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead .lede { margin-bottom: 0; }

@media (min-width: 820px) {
  :root { --gutter: 32px; }
  .nav {
    position: static; display: flex; gap: 4px; height: auto; padding: 0;
    background: none; border: 0;
  }
  .nav__item {
    flex-direction: row; gap: 8px; font-size: 15px; padding: 8px 14px; border-radius: 8px;
  }
  .nav__item svg { width: 18px; height: 18px; }
  .nav__item:hover { background: var(--panel-2); color: var(--ink); }
  .nav__item.is-active { background: var(--panel); box-shadow: var(--shadow); }
  .nav__item.is-active::before { display: none; }
  .nav__item .badge { position: static; }
  .main { padding-bottom: 64px; padding-top: 36px; }
}

/* ---- Buttons & chips ---------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover { box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); box-shadow: none; }
.btn--quiet { background: none; color: var(--muted); border-color: transparent; padding: 0 10px; }
.btn--quiet:hover { color: var(--ink); box-shadow: none; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { box-shadow: 0 4px 14px -6px var(--danger); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn--lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.linkbtn { background: none; border: 0; padding: 0; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }

.badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500;
}
.chip small { color: var(--muted); font-size: 12px; }
.chip--inst small::before { content: '·'; margin-right: 6px; }
.jack {
  display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--track); box-shadow: 0 0 0 2.5px var(--cable);
  margin: 0 2px;
}

/* ---- Channel strip (signature) ---------------------------------------- */

.strip { display: flex; gap: 6px; }
.ch {
  --track-h: 40px; --knob-h: 8px;
  position: relative; flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 46px; padding: 6px 0 0;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px;
  transition: --lvl .7s cubic-bezier(.2, .9, .25, 1.15), border-color .15s, background-color .15s;
  font: inherit; color: inherit; text-align: center;
}
.ch.is-filled { --lvl: 1; }
.ch.is-invited { --lvl: .5; }
.ch.is-open { --lvl: 0; }

.ch__jack {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--track); box-shadow: 0 0 0 3px var(--cable);
}
.ch.is-open .ch__jack { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cable) 35%, var(--panel-2)); }

.ch__fader {
  position: relative; width: 100%; height: var(--track-h);
}
.ch__fader::before { /* the slot */
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px;
  border-radius: 2px; background: var(--track);
}
.ch__fill {
  position: absolute; left: 50%; bottom: 0; width: 4px; margin-left: -2px; border-radius: 2px;
  height: calc(var(--lvl) * 100%); background: var(--cable);
}
.ch.is-invited .ch__fill {
  background: repeating-linear-gradient(0deg, var(--cable) 0 3px, transparent 3px 6px);
}
.ch__knob {
  position: absolute; left: 50%; width: 22px; height: var(--knob-h); margin-left: -11px;
  bottom: calc(var(--lvl) * (100% - var(--knob-h)));
  border-radius: 2px;
  background: linear-gradient(var(--knob-hi), var(--knob-lo));
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.ch__knob::after { /* center line on the cap */
  content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px; background: var(--ink); opacity: .7;
}

.ch__tape {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: calc(100% + 6px); margin: 0 -3px -1px; padding: 3px 2px 4px;
  background: var(--tape); color: var(--tape-ink);
  font-family: var(--f-marker); font-size: 11px; line-height: 1.15;
  clip-path: polygon(0 6%, 4% 0, 12% 5%, 22% 0, 35% 4%, 50% 0, 64% 5%, 78% 0, 90% 4%, 100% 0, 100% 94%, 94% 100%, 82% 95%, 70% 100%, 56% 95%, 42% 100%, 28% 96%, 14% 100%, 4% 95%, 0 100%);
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.ch:nth-child(2n) .ch__tape { transform: rotate(1.2deg); }
.ch:nth-child(3n) .ch__tape { transform: rotate(-.4deg); }

.strip--lg { gap: 10px; flex-wrap: wrap; }
.strip--lg .ch { --track-h: 128px; --knob-h: 18px; width: 84px; padding-top: 22px; gap: 12px; border-radius: 10px; }
.strip--lg .ch__jack { width: 20px; height: 20px; box-shadow: 0 0 0 5px var(--cable), inset 0 2px 3px rgba(0,0,0,.6); }
.strip--lg .ch.is-open .ch__jack { box-shadow: 0 0 0 5px color-mix(in srgb, var(--cable) 35%, var(--panel-2)), inset 0 2px 3px rgba(0,0,0,.6); }
.strip--lg .ch__fader::before, .strip--lg .ch__fill { width: 6px; margin-left: -3px; border-radius: 3px; }
.strip--lg .ch__knob { width: 40px; margin-left: -20px; border-radius: 3px; }
.strip--lg .ch__tape { font-size: 15px; padding: 7px 3px 8px; gap: 1px; }
.ch__who { font-size: 12px; opacity: .85; max-width: 100%; overflow-wrap: anywhere; padding: 0 2px; }
.ch__host {
  position: absolute; top: 4px; left: 0; right: 0; text-align: center;
  font-family: var(--f-body); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.ch.is-open .ch__who { color: color-mix(in srgb, var(--tape-ink) 55%, transparent); }
@media (max-width: 520px) {
  .strip--lg:not(.strip--hero) { gap: 8px; }
  .strip--lg:not(.strip--hero) .ch { width: calc((100% - 24px) / 4); }
  .strip--lg:not(.strip--hero) .ch__knob { width: 34px; margin-left: -17px; }
  .strip--lg:not(.strip--hero) .ch__tape { font-size: 13px; }
}

.ch.is-takeable { cursor: pointer; border-style: dashed; border-color: var(--accent); background: var(--accent-soft); }
.ch.is-takeable .ch__who { font-weight: 400; color: var(--accent-text, var(--accent)); opacity: 1; }
.ch.is-takeable:hover, .ch.is-takeable:focus-visible { --lvl: .22; }
.ch.is-takeable:focus-visible { outline-offset: 3px; }

/* Welcome hero: the band fills up, one fader at a time. */
.ch.is-demo { animation: fader-up .9s cubic-bezier(.2, .9, .25, 1.15) var(--delay) forwards; }
@keyframes fader-up { from { --lvl: 0; } to { --lvl: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ch { transition: none; }
  .ch.is-demo { animation: none; --lvl: 1; }
}

/* ---- Welcome ------------------------------------------------------------ */

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 40px var(--gutter) 24px;
  min-height: min(760px, 86vh);
}
.wordmark--hero { font-size: 1.4rem; margin-bottom: 28px; color: var(--muted); }
.hero__title {
  font-family: var(--f-display); font-weight: 900; 
  font-size: clamp(3rem, 9vw, 6.4rem); line-height: .86; letter-spacing: -.005em;
  margin-bottom: 20px; max-width: 11ch;
}
.hero__lede { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__desk {
  justify-self: center; max-width: 100%; overflow-x: auto;
  padding: 22px 22px 16px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.strip--hero { flex-wrap: nowrap; }
.hero__caption { margin: 16px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.how {
  display: grid; gap: 24px;
  max-width: 1120px; margin: 0 auto; padding: 24px var(--gutter) 72px;
  border-top: 1px solid var(--line);
}
.how h2 { font-family: var(--f-display); font-weight: 800;  font-size: 1.35rem; margin: 8px 0 6px; }
.how p { color: var(--muted); margin: 0; }

@media (max-width: 560px) {
  .strip--hero { gap: 5px; }
  .strip--hero .ch { width: 46px; --track-h: 110px; --knob-h: 14px; }
  .strip--hero .ch__knob { width: 30px; margin-left: -15px; }
  .strip--hero .ch__tape { font-size: 11px; }
  .hero__desk { padding: 16px 12px 12px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 1fr; }
  .how { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Cards ------------------------------------------------------------ */

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow);
}
.stack { display: grid; gap: 12px; }
.stack--tight { gap: 8px; }
.cols { display: grid; gap: 16px; margin-top: 16px; align-items: start; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.2fr 1fr; } }

.mgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mcard {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow);
}
.mcard__head { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mcard__head > div { flex: 1; min-width: 0; }
.mcard__head p { margin: 0; font-size: 14px; }
.mcard__name { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.mcard__head:hover .mcard__name { text-decoration: underline; }
.mcard__genres { font-size: 14px; margin: 0; }
.mcard__actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.mcard__actions .btn { flex: 1; }

.score { font-family: var(--f-display); font-weight: 900; font-size: 2rem; line-height: 1; text-align: right; }
.score small { display: block; font-family: var(--f-body); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.score--lg { font-size: 3.4rem; text-align: left; margin: 0 0 8px; }

.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.reasons li { position: relative; padding-left: 18px; }
.reasons li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.avatar {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  background: hsl(var(--hue) 45% 42%); color: #fff; font-weight: 700; letter-spacing: .02em;
}
.avatar--xs { width: 22px; height: 22px; font-size: 10.5px; }
.avatar--sm { width: 34px; height: 34px; font-size: 12px; }
.avatar--md { width: 48px; height: 48px; font-size: 16px; }
.avatar--lg { width: 88px; height: 88px; font-size: 30px; }

.dateblock {
  display: grid; justify-items: center; align-content: start; flex: none;
  width: 60px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden;
  background: var(--panel); text-transform: uppercase; line-height: 1;
}
.dateblock__wd { width: 100%; padding: 4px 0 3px; background: var(--ink); color: var(--panel); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-align: center; }
.dateblock__d { font-family: var(--f-display); font-weight: 900; font-size: 30px; padding-top: 5px; }
.dateblock__m { font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 2px 0 7px; color: var(--muted); }
.dateblock--lg { width: 104px; border-width: 3px; }
.dateblock--lg .dateblock__wd { font-size: 14px; padding: 6px 0 5px; }
.dateblock--lg .dateblock__d { font-size: 60px; padding-top: 8px; }
.dateblock--lg .dateblock__m { font-size: 15px; padding-bottom: 10px; }

.jamcard {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; box-shadow: var(--shadow); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.jamcard:hover { border-color: var(--muted); }
.jamcard:hover .jamcard__title { text-decoration: underline; }
.jamcard__main { min-width: 0; }
.jamcard__title { font-family: var(--f-display); font-weight: 800;  font-size: 1.45rem; line-height: 1; margin-bottom: 6px; }
.jamcard__meta { font-size: 14px; color: var(--muted); margin: 0 0 2px; }
.jamcard__strip { grid-column: 1 / -1; overflow-x: auto; padding-bottom: 2px; }
/* Side-by-side only when the list itself is wide (cards also appear in narrow side columns). */
.stack { container-type: inline-size; }
@container (min-width: 680px) {
  .jamcard { grid-template-columns: auto 1fr auto; align-items: center; }
  .jamcard__strip { grid-column: auto; }
}

/* ---- Jam detail --------------------------------------------------------- */

.back { display: inline-block; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.poster { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.poster__text { min-width: 0; }
.poster__title {
  font-family: var(--f-display); font-weight: 900; 
  font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: .9; margin: 4px 0 12px;
  overflow-wrap: anywhere;
}
.poster__meta { margin: 0 0 2px; color: var(--muted); }
.poster__meta a { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) {
  .poster { flex-direction: column; gap: 14px; }
  .dateblock--lg { width: auto; min-width: 0; grid-template-columns: auto auto auto; align-items: center; gap: 10px; padding-right: 12px; }
  .dateblock--lg .dateblock__wd { width: auto; padding: 10px 12px; height: 100%; display: grid; place-items: center; }
  .dateblock--lg .dateblock__d { font-size: 34px; padding: 4px 0; }
  .dateblock--lg .dateblock__m { padding: 0; }
}

.desk {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; box-shadow: var(--shadow);
}
.desk__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.desk__head .subtitle { margin: 0; }
.desk__head .muted { font-size: 14px; }

.notice { padding: 12px 14px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 16px; font-size: 15px; }
.notice--accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.notice--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }

.suggest { padding: 12px 0; border-top: 1px solid var(--line); }
.suggest:first-of-type { border-top: 0; padding-top: 0; }
.suggest__part { margin: 0 0 8px; }
.suggest__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; }
.suggest__who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.suggest__who span { display: grid; min-width: 0; }
.suggest__who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__who small { color: var(--muted); font-size: 13px; }
.suggest__who:hover b { text-decoration: underline; }

.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.row--end { justify-content: flex-end; }

/* ---- Profile ------------------------------------------------------------ */

.profilehead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.profilehead__text { flex: 1; min-width: 200px; }
.profilehead__text .lede { margin: 0; }
.panel--match { margin-top: 16px; display: grid; gap: 4px 28px; align-items: center; }
@media (min-width: 640px) { .panel--match { grid-template-columns: auto 1fr; } .panel--match .score--lg { margin: 0; } }
.accountbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---- Lists, tabs, filters ---------------------------------------------- */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; margin-bottom: -1px;
  font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; margin-bottom: 18px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; font-size: 15px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

.empty {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 48px 20px; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--muted);
}
.empty p { max-width: 44ch; }

.invite { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--accent-soft); }
.invite__from { display: flex; align-items: center; gap: 10px; margin: 0; }
.invite__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---- Forms -------------------------------------------------------------- */

.form { display: grid; gap: 18px; margin-top: 20px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > label, .field > legend { font-size: 14px; font-weight: 600; padding: 0; }
.field > legend { margin-bottom: 4px; }
.field--inline { gap: 4px; }
.field > .btn { justify-self: start; }
.grid2, .grid3 { display: grid; gap: 14px; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1.3fr 1fr 1fr; } }

input:not([type="checkbox"]), select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
textarea { resize: vertical; min-height: 88px; }
select { padding-right: 32px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.filters .field { flex: 1 1 140px; max-width: 240px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 0; border-color: var(--accent); }

.form-error {
  margin: 0; padding: 12px 14px; border-radius: 8px;
  background: var(--warn-soft); color: var(--danger); font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
}
.form__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

.instgrid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.instopt {
  display: grid; gap: 6px; padding: 8px 10px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .12s, background-color .12s;
}
.instopt label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; cursor: pointer; min-height: 28px; }
.instopt input, .pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.instopt .jack { box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--cable) 30%, var(--panel)); transition: box-shadow .12s; }
.instopt:has(input:checked) { border-color: var(--cable); background: color-mix(in srgb, var(--cable) 9%, var(--panel)); }
.instopt:has(input:checked) .jack { box-shadow: 0 0 0 2.5px var(--cable); }
.instopt:has(input:checked) label { font-weight: 600; }
.instopt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.instopt:not(:has(input:checked)) select { display: none; }
.instopt select { min-height: 34px; padding-top: 4px; padding-bottom: 4px; font-size: 14px; }

.chips--pick { gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: 14px; font-weight: 500;
  transition: background-color .12s, border-color .12s;
}
.pick input:checked + span { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.tags {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 6px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
.tags:focus-within { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.tags__list { display: contents; }
.tags input { flex: 1; min-width: 160px; border: 0; min-height: 30px; padding: 4px 6px; background: none; }
.tags input:focus-visible { outline: none; }
.chip--tag { padding-right: 4px; }
.chip--tag button {
  display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--muted);
}
.chip--tag button:hover { background: var(--line); color: var(--ink); }

.parts { display: grid; gap: 8px; }
.partrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.partrow select, .partrow input { min-width: 0; }

.samples { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-bottom: 8px; }
.sample, .option {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer;
}
.sample:hover, .option:hover { border-color: var(--accent); }
.sample span, .option span { display: grid; min-width: 0; }
.sample small, .option small { color: var(--muted); font-size: 13px; }
.option .chip { flex: none; }

/* ---- Toast & dialog ---------------------------------------------------- */

.toast {
  position: fixed; left: 50%; z-index: 50;
  bottom: calc(var(--navh) + 16px + env(safe-area-inset-bottom));
  max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 10px;
  background: var(--ink); color: var(--panel); font-weight: 500; font-size: 15px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="warn"] { background: var(--danger); color: #fff; }
@media (min-width: 820px) { .toast { bottom: 28px; } }

.dlg {
  width: min(92vw, 480px); padding: 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
}
.dlg::backdrop { background: rgba(10, 12, 16, .5); backdrop-filter: blur(2px); }
.dlg__body { padding: 22px; }

/* ---- Lessons ------------------------------------------------------------ */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; color: var(--ink);
}

.price { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; line-height: 1; text-align: right; white-space: nowrap; }
.price small { display: block; font-family: var(--f-body); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }
.tcard__headline { margin: 0; font-weight: 500; }
.tcard__next { margin: 0; font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line); }

.fmt {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--panel);
}
.fmt::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fmt--online { color: var(--accent-text, var(--accent)); }
.fmt--inperson { color: var(--ok); }
.where { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.where li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }

.teachnote { margin-top: 20px; padding: 14px; border-radius: 10px; background: var(--accent-soft); }
.teachnote p { margin-bottom: 6px; }
.teachnote .btn { margin-top: 4px; }

/* Step-sequencer openings: rows are days, columns are start times. */
.seq-wrap { overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; }
.seq {
  display: grid; grid-template-columns: 76px repeat(var(--cols), 46px);
  gap: 6px; align-items: center; width: max-content;
}
.seq__time { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; }
.seq__day {
  position: sticky; left: 0; z-index: 1; align-self: stretch; display: flex; align-items: center; gap: 5px;
  background: var(--panel); font-size: 13px; color: var(--muted); padding-right: 6px; white-space: nowrap;
}
.seq__day b { color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.pad {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 7px; border: 0; padding: 0;
  background: color-mix(in srgb, var(--track) 9%, var(--panel-2));
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}
.pad--none { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); }
.pad.is-open {
  background: var(--accent); cursor: default;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, #000), 0 0 14px -3px var(--accent), inset 0 1px 0 rgba(255,255,255,.35);
}
button.pad.is-open { cursor: pointer; transition: transform .12s ease, filter .12s ease; }
button.pad.is-open:hover { transform: translateY(-1px); filter: brightness(1.12); }
button.pad.is-open:active { transform: translateY(1px); }
.pad.is-taken {
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), var(--line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seq__legend { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.seq__legend .pad { width: 16px; border-radius: 4px; box-shadow: none; }
.seq__legend .pad.is-taken { margin-left: 10px; }

/* Weekly-hours editor: same pads, as toggles. */
.seq--edit { grid-template-columns: 44px repeat(var(--cols), 30px); gap: 4px; }
.form .seq__day, .seq--edit .seq__day { background: var(--bg); }
.pad--toggle { position: relative; cursor: pointer; border-radius: 5px; }
.pad--toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pad--toggle:hover { background: color-mix(in srgb, var(--accent) 22%, var(--panel-2)); }
.pad--toggle:has(input:checked) {
  background: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, #000), 0 0 10px -3px var(--accent), inset 0 1px 0 rgba(255,255,255,.35);
}
.pad--toggle:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.formats { display: grid; gap: 10px; }
@media (min-width: 600px) { .formats { grid-template-columns: 1fr 1fr; } }
.formatopt { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.formatopt .toggle { min-height: 28px; font-weight: 600; }
.formatopt:not(:has(input[type="checkbox"]:checked)) .field { opacity: .5; }

.showrows { display: grid; gap: 8px; }
.showrow { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; }
.showrow [name="s_url"] { grid-column: 1 / 3; }
.showrow button { grid-row: 1; grid-column: 3; }
@media (min-width: 700px) {
  .showrow { grid-template-columns: 110px 1fr 1fr auto; }
  .showrow [name="s_url"] { grid-column: auto; }
  .showrow button { grid-column: auto; }
}

.show { padding: 12px 14px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); margin: 0; }
.show__kind { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.show__title { margin: 2px 0 0; font-weight: 500; }
.show--video { padding: 0; overflow: hidden; }
.show__frame { aspect-ratio: 16 / 9; background: #000; }
.show__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.show--video figcaption { padding: 10px 14px; font-weight: 500; }

.lesson {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow);
}
.lesson__main { min-width: 0; }
.lesson__main .jamcard__title a { text-decoration: none; }
.lesson__main .jamcard__title a:hover { text-decoration: underline; }
.lesson__main a { color: var(--ink); font-weight: 600; }
.lesson__note { margin: 8px 0 0; font-size: 14px; font-style: italic; color: var(--muted); }
.lesson__actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@container (min-width: 680px) {
  .lesson { grid-template-columns: auto 1fr auto; align-items: center; }
  .lesson__actions { grid-column: auto; flex-direction: column; align-items: stretch; }
}

.booking__when { font-size: 1.05rem; margin-bottom: 14px; }
.booking__price { margin: 14px 0 0; font-weight: 600; }
.dlg form .field { margin-top: 12px; }
.seg { justify-self: start; display: inline-flex; padding: 3px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 7px 16px; border-radius: 7px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg input:checked + span { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }

@media (min-width: 900px) { .how { grid-template-columns: repeat(4, 1fr); } }

/* ---- Gear -------------------------------------------------------------- */

.gearbox { display: grid; gap: 8px; }
.gearrows { display: grid; gap: 8px; }
.gearrow {
  display: grid; gap: 8px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  padding: 8px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--cable);
}
.gearrow button { grid-row: 1; grid-column: 3; }
.gearrow [name="g_name"] { grid-column: 1 / 3; }
.gearbox:not([data-share="1"]) .gearrow [name="g_name"] { grid-column: 1 / -1; }
.gearrow select, .gearrow input:not([type="checkbox"]) { min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: 15px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

.gearlist { display: grid; gap: 12px; }
.gearlist__group { padding-left: 12px; border-left: 3px solid var(--cable); }
.gearlist__head { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.gearlist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.gearlist li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.gearlist__kind {
  flex: none; min-width: 84px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.lend {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; vertical-align: 1px;
  font-size: 11px; font-weight: 700; color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent);
}

/* Jam backline: part | provided at the venue | what players bring */
.bl { display: grid; }
.bl__row {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.bl__row--head { display: none; }
.bl__part { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.bl__cell { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.bl__cell.is-provided { padding: 6px 10px; border-radius: 6px; background: color-mix(in srgb, var(--ok) 10%, var(--panel)); }
.bl__cell.is-byo { padding: 6px 10px; border-radius: 6px; background: var(--panel-2); color: var(--muted); }
.bl__cell .gearlist__kind { min-width: 0; margin-right: 4px; }
@media (max-width: 759px) {
  .bl__cell::before {
    content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
}
@media (min-width: 760px) {
  .bl__row { grid-template-columns: 170px 1fr 1fr; gap: 16px; align-items: start; }
  .bl__row--head {
    display: grid; padding: 0 0 8px; border-top: 0;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
}
.backline { margin-top: 16px; }
.backline .hint { max-width: 70ch; }

/* ---- Studios ------------------------------------------------------------ */

.vtag {
  display: inline-block; padding: 1px 7px; border-radius: 4px; vertical-align: 1px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
}
.vtag--studio { color: var(--panel); background: var(--ink); border-color: var(--ink); }

.smark {
  display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 10px;
  background: var(--ink); color: var(--panel);
  font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: .02em;
}
.smark--lg { width: 88px; height: 88px; border-radius: 16px; font-size: 36px; }
.scard__desc { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard__meta { margin: 0; font-size: 14px; }
.scard .eyebrow { margin-bottom: 6px; }

.studiometa { display: grid; gap: 8px; margin: 8px 0 20px; }
.studiometa p { margin: 0; }
.rooms { display: grid; gap: 14px; }
@media (min-width: 900px) { .rooms { grid-template-columns: 1fr 1fr; align-items: start; } }
.room__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.room__head p { margin: 2px 0 0; }
.room__name { font-family: var(--f-display); font-weight: 900;  font-size: 1.7rem; line-height: 1; }
.room__sub { font-family: var(--f-display); font-weight: 800;  font-size: 1rem; letter-spacing: .03em; margin: 18px 0 6px; }
.booked { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.booked li { display: flex; gap: 10px; flex-wrap: wrap; }
.booked span { color: var(--muted); }
.booked a { font-weight: 600; }

.roomedits { display: grid; gap: 12px; }
.roomedit { display: grid; gap: 10px; padding: 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.roomedit__head { display: flex; justify-content: space-between; align-items: center; }
.roomedit__title { margin: 0; font-family: var(--f-display); font-weight: 800;  font-size: 1.1rem; }
.roomedit .hint { margin: 0; }

/* Scheduling: studio vs informal */
.venuepick { display: grid; gap: 8px; }
@media (min-width: 600px) { .venuepick { grid-template-columns: 1fr 1fr; } }
.venueopt { position: relative; cursor: pointer; }
.venueopt input { position: absolute; opacity: 0; }
.venueopt span {
  display: grid; gap: 2px; height: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .12s, background-color .12s;
}
.venueopt small { color: var(--muted); font-size: 13px; }
.venueopt input:checked + span { border: 2px solid var(--accent); padding: 11px 13px; background: var(--accent-soft); }
.venueopt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.venuebox { display: grid; gap: 10px; margin-top: 12px; }
.venuebox[hidden] { display: none; }
.roominfo { display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; }
.roominfo p { margin: 0; }
.roominfo__warn { color: var(--danger); font-weight: 600; }
.roominfo summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.roominfo details .gearlist { margin-top: 10px; }

.venueinfo { display: grid; gap: 4px; justify-items: start; margin: 12px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.venueinfo p { margin: 0; }
.venueinfo a { color: var(--ink); }

/* ---- Header profile link ---------------------------------------------- */

.top { justify-content: flex-start; }
.me { margin-left: auto; border-radius: 50%; text-decoration: none; }
.me .avatar { box-shadow: 0 0 0 2px var(--bg); transition: box-shadow .12s; }
.me:hover .avatar, .me.is-active .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
@media (min-width: 820px) {
  .top .nav { margin-left: auto; }
  .me { margin-left: 10px; }
}

/* ---- Home -------------------------------------------------------------- */

.home__hello { margin-bottom: 22px; }
.home__hello .muted { margin: 0 0 4px; font-weight: 500; }
.home__headline {
  font-family: var(--f-display); font-weight: 900; 
  font-size: clamp(2.3rem, 7vw, 4.2rem); line-height: .9; max-width: 17ch;
}
.home__grid { display: grid; gap: 22px; align-items: start; }
.home__col { display: grid; gap: 22px; min-width: 0; }
@media (min-width: 960px) { .home__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }

.nextup {
  display: grid; gap: 14px; padding: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  text-decoration: none; transition: border-color .15s;
}
a.nextup:hover { border-color: var(--muted); }
a.nextup:hover .nextup__title { text-decoration: underline; }
.nextup .eyebrow { margin: 0; }
.nextup__head { display: flex; gap: 14px; align-items: center; }
.nextup__head > div { min-width: 0; }
.nextup__title { font-family: var(--f-display); font-weight: 800;  font-size: 1.7rem; line-height: .95; }
.nextup__head p { margin: 6px 0 0; font-size: 14px; }
.nextup__strip { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 12px; }
.nextup__strip .muted { font-size: 13px; white-space: nowrap; }
.nextup__gear {
  display: flex; gap: 8px; align-items: baseline; margin: 0;
  padding: 10px 12px; border-radius: 8px; background: var(--panel-2); font-size: 14px;
}
.nextup__gear .jack { position: relative; top: 1px; }

.homesec { display: grid; gap: 10px; min-width: 0; }
.homesec--tight { gap: 4px; }
.homesec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.homesec__title { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 800;  font-size: 1.3rem; letter-spacing: .02em; }
.homesec__more { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.homesec__more:hover { color: var(--ink); text-decoration: underline; }

.later { list-style: none; margin: 0; padding: 0; display: grid; }
.later li { display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.later span { color: var(--muted); min-width: 150px; }
.later a { font-weight: 600; }

.needs { display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.need { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 12px 14px; }
.need + .need { border-top: 1px solid var(--line); }
.need__text { margin: 0; font-size: 15px; line-height: 1.4; }
.need__text a { font-weight: 600; }
.need__actions { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.need__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); }
@container (min-width: 520px) {
  .need { grid-template-columns: auto 1fr auto; }
  .need__actions { grid-column: auto; justify-content: flex-end; }
}
.home__col { container-type: inline-size; }

.minijams {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px;
}
.minijam {
  scroll-snap-align: start; display: grid; gap: 2px; align-content: start;
  padding: 12px 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; transition: border-color .15s;
}
.minijam:hover { border-color: var(--muted); }
.minijam .eyebrow { margin: 0; font-size: 11px; }
.minijam__title { margin: 2px 0 0; font-family: var(--f-display); font-weight: 800;  font-size: 1.2rem; line-height: 1; }
.minijam__meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.minijam__open { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--accent-text, var(--accent)); }

.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px 8px; }
.face { display: grid; justify-items: center; gap: 3px; text-decoration: none; font-size: 14px; text-align: center; }
.face b { font-weight: 600; }
.face__inst { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.face .jack { width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--cable); }
.face:hover b { text-decoration: underline; }
.face .avatar { transition: transform .12s; }
.face:hover .avatar { transform: translateY(-2px); }

.checklist ol { list-style: none; margin: 0; padding: 0; display: grid; }
.checklist li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.checklist li > div { display: grid; }
.checklist li .muted { font-size: 14px; }
.checklist__mark { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.checklist li.is-done .checklist__mark { background: var(--ok); border-color: var(--ok); }
.checklist li.is-done .checklist__mark::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checklist li.is-done b { text-decoration: line-through; color: var(--muted); font-weight: 600; }

.empty--sm { padding: 24px 16px; }

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

/* ======================================================================
   iOS layer — overrides the component styles above with iOS conventions.
   ====================================================================== */

/* ---- Type scale (Large Title, Title 1–3, Headline) -------------------- */

.title { font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1.12; letter-spacing: .01em; margin-bottom: 6px; }
.subtitle { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: .01em; margin: 24px 0 10px; }
.lede { font-size: 17px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.hint { font-size: 13px; }
.muted { color: var(--muted); }
a { text-underline-offset: 2px; }

/* ---- Navigation bar and tab bar --------------------------------------- */

.top {
  min-height: 52px; padding: 8px var(--gutter); padding-top: max(8px, env(safe-area-inset-top));
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--sep);
}
.wordmark { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.wordmark--hero { font-size: 17px; color: var(--muted); }
.me .avatar { box-shadow: none; }
.me:hover .avatar, .me.is-active .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

.nav {
  height: calc(var(--navh) + env(safe-area-inset-bottom));
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--sep);
}
.nav__item { gap: 2px; font-size: 11px; font-weight: 500; letter-spacing: .01em; color: #8E8E93; padding-top: 4px; }
.nav__item svg { width: 26px; height: 26px; stroke-width: 1.7; }
.nav__item.is-active { color: var(--accent-text, var(--accent)); }
.nav__item.is-active svg { fill: color-mix(in srgb, var(--accent) 18%, transparent); stroke-width: 2; }
.nav__item.is-active::before { display: none; }
.nav__item .badge { top: 2px; left: calc(50% + 8px); }

/* iPad-style floating tab bar on wide screens */
@media (min-width: 820px) {
  .nav {
    position: fixed; top: 8px; left: 50%; right: auto; bottom: auto; z-index: 40; transform: translateX(-50%);
    height: auto; padding: 4px; gap: 2px; border: 0; border-radius: 999px;
    box-shadow: 0 0 0 .5px var(--sep), 0 4px 18px rgba(0, 0, 0, .08);
  }
  .nav__item { padding: 7px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink); }
  .nav__item svg { display: none; }
  .nav__item:hover { background: var(--fill); }
  .nav__item.is-active { background: var(--seg-active); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
  .me { margin-left: auto; }
}

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  background: var(--accent); color: var(--on-accent, #fff); box-shadow: none;
  transition: opacity .15s ease, transform .1s ease;
}
.btn:hover { box-shadow: none; filter: brightness(1.06); }
.btn:active { transform: none; opacity: .6; }
.btn--ghost { background: var(--fill); color: var(--accent-text, var(--accent)); border: 0; }
.btn--ghost:hover { border: 0; filter: none; background: var(--fill-strong); }
.btn--quiet { background: none; color: var(--accent-text, var(--accent)); font-weight: 400; padding: 0 8px; }
.btn--quiet:hover { color: var(--accent-text, var(--accent)); filter: none; opacity: .75; }
.btn--danger { background: var(--warn-soft); color: var(--danger); }
.btn--danger:hover { box-shadow: none; }
.btn--sm { min-height: 32px; padding: 0 14px; border-radius: 999px; font-size: 15px; }
.btn--lg { min-height: 50px; padding: 0 24px; border-radius: 14px; font-size: 17px; }
.linkbtn { color: var(--accent-text, var(--accent)); text-decoration: none; font-weight: 600; }
.back {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px;
  color: var(--accent-text, var(--accent)); font-size: 17px; font-weight: 400;
}
.back::before {
  content: ''; width: 11px; height: 11px; margin-right: 2px;
  border: solid currentColor; border-width: 0 0 2.5px 2.5px; border-radius: 1px; transform: rotate(45deg);
}
.back:hover { color: var(--accent-text, var(--accent)); opacity: .7; }

/* ---- Cards and grouped surfaces ---------------------------------------- */

.panel, .mcard, .jamcard, .desk, .nextup, .needs, .minijam, .lesson, .invite,
.sample, .option, .hero__desk, .roominfo, .formatopt, .instopt, .venueopt span {
  background: var(--panel); border: 0; box-shadow: none;
}
.panel, .mcard, .jamcard, .lesson, .minijam, .needs { border-radius: 16px; }
.desk, .nextup, .hero__desk { border-radius: 20px; }
.jamcard:hover, .minijam:hover, a.nextup:hover, .mcard:hover { border: 0; }
.jamcard, .minijam, .nextup, .lesson { transition: transform .15s ease, background-color .15s; }
.jamcard:active, .minijam:active, a.nextup:active { transform: scale(.985); }
.jamcard:hover .jamcard__title, a.nextup:hover .nextup__title { text-decoration: none; }
.invite { background: var(--accent-soft); border-radius: 20px; }
.teachnote { border-radius: 14px; }
.notice { background: var(--panel); border: 0; border-radius: 12px; font-size: 15px; }
.notice--accent { background: var(--accent-soft); }
.notice--warn { background: var(--warn-soft); }
.empty { border: 0; background: none; padding: 40px 16px; }
.accountbar, .tcard__next, .venueinfo, .later li, .suggest, .bl__row, .checklist li { border-color: var(--line); }
.need + .need { border-top: .5px solid var(--sep); }

.chip { background: var(--fill); border: 0; font-size: 13px; padding: 5px 11px; }
.jack { width: 10px; height: 10px; background: var(--cable); box-shadow: none; margin: 0 1px; }
.instopt .jack, .instopt:has(input:checked) .jack { box-shadow: none; }
.face .jack { box-shadow: none; }
.avatar { font-weight: 600; letter-spacing: 0; }
.badge { background: var(--danger); font-weight: 600; }

/* Headings inside cards */
.jamcard__title { font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.25; margin-bottom: 4px; }
.jamcard__meta { font-size: 15px; }
.poster__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 5vw, 40px); line-height: 1.1; letter-spacing: .005em; }
.poster__meta { font-size: 17px; }
.poster__meta a, .venueinfo a, .lesson__main a { color: var(--accent-text, var(--accent)); text-decoration: none; }
.mcard__name { font-size: 17px; font-weight: 600; }
.nextup__title { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.15; }
.minijam__title { font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.25; }
.minijam__open { color: var(--accent-text, var(--accent)); }
.room__name { font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.room__sub, .roomedit__title { font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.score, .price { font-family: var(--f-display); font-weight: 700; }
.score { font-size: 28px; }
.score--lg { font-size: 48px; }
.price { font-size: 20px; }
.smark { font-family: var(--f-display); font-weight: 700; border-radius: 12px; background: linear-gradient(180deg, #3A3A3C, #1C1C1E); color: #fff; }
.smark--lg { border-radius: 20px; }
.reasons li::before { background: var(--accent); }
.vtag { border: 0; background: var(--fill); color: var(--muted); border-radius: 6px; }
.vtag--studio { background: var(--accent-soft); color: var(--accent-text, var(--accent)); }
.fmt { border: 0; background: var(--fill); }

/* ---- Calendar-icon dates ------------------------------------------------ */

.dateblock {
  width: 58px; border: 0; border-radius: 13px; background: var(--panel); overflow: hidden;
  box-shadow: 0 0 0 .5px var(--sep), 0 1px 3px rgba(0, 0, 0, .08); line-height: 1;
}
.dateblock__wd { background: none; color: var(--danger); font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 7px 0 0; }
.dateblock__d { font-family: var(--f-display); font-weight: 300; font-size: 30px; padding-top: 1px; letter-spacing: -.02em; }
.dateblock__m { font-size: 11px; font-weight: 500; letter-spacing: .02em; padding: 1px 0 7px; }
.dateblock--lg, .dateblock--lg.dateblock { width: 84px; border-radius: 19px; display: grid; grid-template-columns: none; gap: 0; padding: 0; min-width: 84px; }
.dateblock--lg .dateblock__wd { font-size: 14px; padding: 10px 0 0; width: 100%; height: auto; display: block; }
.dateblock--lg .dateblock__d { font-size: 46px; padding: 0; }
.dateblock--lg .dateblock__m { font-size: 12px; padding: 0 0 10px; }
@media (max-width: 520px) {
  .poster { flex-direction: row; align-items: center; gap: 16px; }
  .dateblock--lg { width: 72px; min-width: 72px; border-radius: 16px; }
  .dateblock--lg .dateblock__d { font-size: 38px; }
}

/* ---- Lineup: Control Center-style sliders ------------------------------ */

.strip { gap: 8px; }
.ch {
  --track-h: 34px;
  width: 22px; padding: 0; gap: 0; background: none; border: 0; border-radius: 0;
}
.ch__jack, .ch__knob { display: none; }
.ch__fader { width: 100%; height: var(--track-h); border-radius: 7px; background: var(--fill-strong); overflow: hidden; }
.ch__fader::before { display: none; }
.strip .ch__fill, .ch__fill { left: 0; right: 0; bottom: 0; width: auto; margin: 0; border-radius: 0; background: var(--cable); }
.ch.is-invited .ch__fill { background: color-mix(in srgb, var(--cable) 45%, transparent); }
.ch__tape, .ch:nth-child(2n) .ch__tape, .ch:nth-child(3n) .ch__tape {
  width: 100%; margin: 0; padding: 0; background: none; clip-path: none; transform: none; box-shadow: none;
  color: var(--ink); font-family: var(--f-body); letter-spacing: -.01em;
}
.strip--sm .ch__tape { display: none; }

.strip--lg { gap: 12px; }
.strip--lg .ch { --track-h: 132px; width: 72px; padding-top: 0; gap: 8px; border-radius: 0; }
.strip--lg .ch__fader { border-radius: 20px; }
.strip--lg .ch__tape { font-size: 13px; padding: 0; gap: 0; }
.strip--lg .ch__inst { font-size: 13px; font-weight: 600; }
.ch__who, .ch.is-open .ch__who { font-size: 12px; font-weight: 400; color: var(--muted); opacity: 1; }
.ch__host {
  top: 10px; z-index: 1; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.ch.is-takeable { background: none; border: 0; }
.ch.is-takeable .ch__fader { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.ch.is-takeable .ch__who { color: var(--accent-text, var(--accent)); font-weight: 600; }
.ch.is-takeable:focus-visible { outline-offset: 4px; border-radius: 20px; }
@media (max-width: 520px) {
  .strip--lg:not(.strip--hero) .ch { width: calc((100% - 36px) / 4); }
  .strip--lg:not(.strip--hero) .ch__tape { font-size: 13px; }
}
.strip--hero .ch { width: 64px; }
@media (max-width: 560px) {
  .strip--hero { gap: 8px; }
  .strip--hero .ch { width: 44px; --track-h: 120px; }
  .strip--hero .ch__fader { border-radius: 14px; }
}
.nextup__strip .ch { --track-h: 40px; width: 26px; }
.nextup__strip .ch__fader { border-radius: 8px; }

/* ---- Forms ------------------------------------------------------------ */

.field > span, .field > label, .field > legend {
  font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); padding-left: 4px;
}
.field > span em, .field > label em { text-transform: none; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  min-height: 44px; padding: 10px 14px; border: 0; border-radius: 12px;
  background: var(--panel); font-size: 17px; letter-spacing: -.01em;
}
.dlg input:not([type="checkbox"]):not([type="radio"]), .dlg select, .dlg textarea,
.roomedit input:not([type="checkbox"]), .roomedit select, .gearrow input:not([type="checkbox"]), .gearrow select,
.formatopt input:not([type="checkbox"]), .panel input, .panel select { background: var(--fill); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 0; border-color: transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16' fill='none' stroke='%238E8E93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 5.5 5 2l3.5 3.5M1.5 10.5 5 14l3.5-3.5'/%3E%3C/svg%3E");
  background-position: right 14px center; background-size: 10px 16px; background-repeat: no-repeat;
}
.form-error { border: 0; border-radius: 12px; font-weight: 500; font-size: 15px; }
.tags { background: var(--panel); border: 0; border-radius: 12px; }
.tags:focus-within { border-color: transparent; outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.tags input { background: none !important; box-shadow: none !important; }
.chip--tag { background: var(--accent-soft); color: var(--accent-text, var(--accent)); }
.chip--tag button { color: var(--accent-text, var(--accent)); }

/* Selectable capsules (genres, levels, amenities) */
.pick span { min-height: 34px; border: 0; background: var(--panel); font-size: 15px; }
.panel .pick span, .dlg .pick span { background: var(--fill); }
.pick input:checked + span { background: var(--accent); color: var(--on-accent, #fff); border: 0; }

/* Instrument tiles */
.instopt { border-radius: 12px; border: 2px solid transparent; padding: 10px 12px; }
.instopt:has(input:checked) { border-color: var(--accent); background: var(--panel); }
.instopt select { background-color: var(--fill); }

/* Switches */
.toggle input, .check input, .formatopt .toggle input {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0; cursor: pointer;
  width: 51px; height: 31px; border-radius: 31px; background: var(--fill-strong); transition: background-color .2s ease;
}
.toggle input::before, .check input::before {
  content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: transform .2s ease;
}
.toggle input:checked, .check input:checked { background: var(--switch-on); }
.toggle input:checked::before, .check input:checked::before { transform: translateX(20px); }
.toggle input:focus-visible, .check input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.toggle { font-size: 17px; gap: 10px; }
.check { font-size: 15px; gap: 8px; }
.check input { width: 42px; height: 26px; }
.check input::before { width: 22px; height: 22px; }
.check input:checked::before { transform: translateX(16px); }

/* Segmented controls: sub-tabs, format pickers */
.tabs, .seg {
  display: flex; gap: 0; padding: 2px; margin-bottom: 18px; max-width: 460px;
  background: var(--fill); border: 0; border-radius: 9px; overflow: visible;
}
.tab {
  flex: 1; justify-content: center; margin: 0; padding: 6px 12px; border: 0; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--seg-active); border: 0; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.tab .count { background: none; border: 0; min-width: 0; padding: 0; height: auto; color: var(--muted); font-weight: 500; }
.tab .badge { min-width: 16px; height: 16px; font-size: 11px; }
.seg { margin-bottom: 0; display: inline-flex; }
.seg label { flex: 1; }
.seg span { display: block; text-align: center; border-radius: 7px; padding: 6px 16px; font-size: 13px; color: var(--ink); }
.seg input:checked + span { background: var(--seg-active); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }

.venueopt span { border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; }
.venueopt input:checked + span { border: 2px solid var(--accent); padding: 12px 14px; background: var(--panel); }
.formatopt, .roomedit, .gearrow { border: 0; border-radius: 14px; }
.roomedit { background: var(--panel); }
.gearrow { background: var(--panel); border-left: 0; box-shadow: inset 4px 0 0 var(--cable); }
.roomedit .gearrow { background: var(--fill); }
.showrow input, .showrow select, .partrow select, .partrow input { background: var(--panel); }

/* ---- Sheets, banners -------------------------------------------------- */

.dlg { border: 0; border-radius: 14px; background: var(--panel); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.dlg::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: none; }
@media (max-width: 600px) {
  .dlg {
    width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 14px 14px 0 0;
    padding-bottom: env(safe-area-inset-bottom); animation: sheet-up .32s cubic-bezier(.2, .9, .3, 1);
  }
  .dlg__body::before {
    content: ''; display: block; width: 36px; height: 5px; margin: -8px auto 14px; border-radius: 3px; background: var(--fill-strong);
  }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

.toast {
  top: max(10px, env(safe-area-inset-top)); bottom: auto;
  padding: 12px 18px; border-radius: 18px; max-width: min(92vw, 420px);
  background: var(--bar); color: var(--ink); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 .5px var(--sep), 0 10px 30px rgba(0, 0, 0, .15); font-size: 15px; font-weight: 500;
  transform: translate(-50%, -140%); z-index: 60;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast[data-kind="warn"] { background: var(--bar); color: var(--danger); }
@media (min-width: 820px) { .toast { top: 64px; bottom: auto; } }

/* ---- Lesson openings and hours editor --------------------------------- */

.pad { border-radius: 8px; box-shadow: none; background: var(--fill); }
.pad--none { box-shadow: none; background: none; border: 1px dashed var(--line); }
.pad.is-open, .pad--toggle:has(input:checked) { background: var(--accent); box-shadow: none; }
.pad.is-taken { box-shadow: none; }
.pad--toggle:hover { background: color-mix(in srgb, var(--accent) 20%, var(--fill)); }
.seq__day b { letter-spacing: 0; }

/* ---- Backline table, gear ------------------------------------------------ */

.bl__cell.is-provided { background: color-mix(in srgb, var(--switch-on) 14%, transparent); border-radius: 10px; }
.bl__cell.is-byo { background: var(--fill); border-radius: 10px; }
.gearlist__group { border-left: 0; padding-left: 0; }
.gearlist__head { font-size: 15px; font-weight: 600; }
.nextup__gear { background: var(--fill); border-radius: 12px; }
.lend { border: 0; background: color-mix(in srgb, var(--switch-on) 16%, transparent); }

/* ---- Home ------------------------------------------------------------- */

.home__date { margin: 0 0 2px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.home__headline { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 4.4vw, 38px); line-height: 1.12; letter-spacing: .005em; max-width: 22ch; }
.homesec__title { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .005em; }
.homesec__more { color: var(--accent-text, var(--accent)); font-weight: 400; font-size: 17px; }
.homesec__more:hover { color: var(--accent-text, var(--accent)); text-decoration: none; opacity: .7; }
.checklist__mark { border: 1.5px solid var(--sep); }
.checklist li.is-done .checklist__mark { background: var(--switch-on); border-color: var(--switch-on); }
.face b { font-weight: 500; }

/* ---- Welcome ---------------------------------------------------------- */

.hero__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 7vw, 64px); line-height: 1.02; letter-spacing: -.01em; max-width: 12ch; }
.how { border-top: 0; }
.how > div { background: var(--panel); border-radius: 16px; padding: 18px; }
.how h2 { font-family: var(--f-display); font-weight: 600; font-size: 17px; margin: 0 0 4px; }
.how p { font-size: 15px; }
.hero__caption { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .dlg { animation: none; }
}

/* Inline links read as iOS tint links */
.need__text a, .later a, .booked a, .mcard__genres a, .lesson__main a, .suggest__who, .center a, .empty a:not(.btn) {
  color: var(--accent-text, var(--accent)); text-decoration: none;
}
.suggest__who b { color: var(--ink); }
.option .chip { white-space: nowrap; }
.dlg .option { background: var(--fill); border-radius: 12px; }
.dlg .option:hover { border: 0; background: var(--fill-strong); }

/* ---- Market ------------------------------------------------------------ */

.field--search { flex: 2 1 220px; max-width: 360px; }
.field--search input {
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; background-size: 16px;
}

.lgrid { display: grid; gap: 16px 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }
.lcard { position: relative; min-width: 0; }
.lcard__link { display: grid; gap: 8px; text-decoration: none; }
.lcard__link:active { opacity: .7; }
.lcard__media, .gallery__slide, .lrow__thumb {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--panel);
}
.lcard__media img, .gallery__slide img, .lrow__thumb img, .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art { width: 100%; height: 100%; display: grid; place-items: center; background: color-mix(in srgb, var(--cable) 14%, var(--panel)); }
.art svg { width: 44%; height: 44%; fill: none; stroke: var(--cable); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lcard__body { display: grid; gap: 1px; padding: 0 2px; }
.lcard__price { margin: 0; font-size: 17px; font-weight: 700; }
.lcard__title { margin: 0; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__meta { margin: 0; font-size: 13px; color: var(--muted); }

.lbadge {
  position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #fff; background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lbadge--new { background: var(--switch-on); }
.lbadge--reserved { background: #FF9500; }
.lbadge--sold { background: rgba(60, 60, 67, .75); }

.heart {
  position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--bar); color: var(--ink); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.heart svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.heart.is-on { color: var(--danger); }
.heart:active { transform: scale(.9); }
.heart--lg { position: static; width: 50px; height: 50px; border-radius: 14px; background: var(--fill); box-shadow: none; flex: none; }
.heart--lg svg { width: 24px; height: 24px; }

.rows { display: grid; background: var(--panel); border-radius: 16px; overflow: hidden; }
.lrow { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; }
.lrow + .lrow { border-top: .5px solid var(--sep); }
.lrow:active { background: var(--fill); }
.lrow__thumb { width: 56px; border-radius: 10px; }
.lrow__main { display: grid; min-width: 0; }
.lrow__main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow__main span { font-size: 14px; }
.lrow__alert { color: var(--accent-text, var(--accent)); font-weight: 600; }
.lrow__good { color: var(--ok); font-weight: 600; }
.lrow__price { font-weight: 600; }
.panel .rows { background: var(--fill); }

/* Item page */
.item { display: grid; gap: 20px; align-items: start; }
@media (min-width: 860px) { .item { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; } .gallery { position: sticky; top: 72px; } }
.gallery { position: relative; }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 20px; scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { scroll-snap-align: start; border-radius: 20px; }
.gallery__count { margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.gallery .lbadge { left: 12px; top: 12px; font-size: 12px; }
.item__info { min-width: 0; }
.item__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 4vw, 32px); line-height: 1.15; margin: 2px 0 6px; }
.item__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 16px; font-size: 28px; font-weight: 700; }
.item__price small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: -6px; }
.item__price .vtag { align-self: center; }
.item__desc { white-space: pre-line; }
.buybar { display: flex; gap: 10px; margin-bottom: 18px; }
.buybar .btn { flex: 1; }
.notice--ok { background: color-mix(in srgb, var(--switch-on) 14%, var(--panel)); }
.notice p { margin: 0 0 4px; }
.notice .row { margin-top: 10px; }

.specs { margin: 0 0 8px; background: var(--panel); border-radius: 16px; overflow: hidden; }
.specs > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 16px; }
.specs > div + div { border-top: .5px solid var(--sep); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; display: grid; }
.specs dd small { color: var(--muted); font-size: 13px; }

.sellercard { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--panel); border-radius: 16px; text-decoration: none; }
.sellercard span { display: grid; min-width: 0; }
.sellercard small { color: var(--muted); font-size: 13px; }
.sellercard__count { font-size: 13px; color: var(--accent-text, var(--accent)); white-space: nowrap; }

.offers { display: grid; background: var(--panel); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.offer { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; padding: 12px 14px; }
.offer + .offer { border-top: .5px solid var(--sep); }
.offer__main p { margin: 0; }
.offer__msg { font-size: 14px; color: var(--muted); font-style: italic; }
.offer__actions, .offer__tag { grid-column: 2; }
.offer__actions { display: flex; gap: 8px; }
.offer__tag { font-size: 13px; font-weight: 600; color: var(--muted); }
@media (min-width: 560px) {
  .offer { grid-template-columns: auto 1fr auto; }
  .offer__actions, .offer__tag { grid-column: auto; }
}
.quick { display: flex; gap: 8px; margin-top: 8px; }
.quick .chip { cursor: pointer; font-size: 14px; padding: 6px 12px; }

/* Sell form */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--panel); }
.photo button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
}
.photo span { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 600; }
.photo--add { display: grid; place-content: center; justify-items: center; gap: 2px; cursor: pointer; color: var(--accent-text, var(--accent)); border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.photo--add span { position: static; background: none; color: inherit; font-size: 28px; font-weight: 300; padding: 0; }
.photo--add small { font-size: 12px; font-weight: 600; }
.photo--add:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg--wide { display: flex; max-width: 280px; margin-bottom: 8px; }
.field > .toggle { justify-self: start; min-height: 44px; }
.need__icon--ok { background: color-mix(in srgb, var(--switch-on) 18%, transparent); color: var(--ok); font-weight: 700; }
@media (max-width: 600px) { .field--search { flex-basis: 100%; max-width: none; } }

/* ---- Private jams, sharing, artists ------------------------------------ */

.vtag--private { background: color-mix(in srgb, #FF9500 18%, transparent); color: #C93400; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vtag--private { color: #FFB340; } }
.vtag--private::before {
  content: ''; display: inline-block; width: 7px; height: 5px; margin-right: 4px; vertical-align: 0;
  border: 1.5px solid currentColor; border-radius: 1.5px; box-shadow: 0 -3px 0 -1.5px currentColor;
}
.jamcard__artists { margin: 0 0 2px; font-size: 14px; color: var(--accent-text, var(--accent)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip--love { background: var(--accent-soft); color: var(--accent-text, var(--accent)); }
.chip--avoid { background: var(--warn-soft); color: var(--danger); padding-right: 4px; }
.chip--avoid:not(:has(button)) { padding-right: 11px; text-decoration: line-through; }
.chip--avoid button {
  display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: none; color: inherit; font-size: 15px; line-height: 1; cursor: pointer;
}
.avoidbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  padding: 8px 12px; margin: -4px 0 12px; border-radius: 12px; background: var(--panel);
}
.avoidbar__label { font-size: 13px; color: var(--muted); }
.avoidbar .avoidbar__input {
  flex: 1 1 160px; min-height: 32px; padding: 4px 8px; background: none; font-size: 15px; border-radius: 8px;
}
.avoidnote { margin: 0 0 12px; }

.stackcol { display: grid; gap: 16px; align-content: start; }
.sharepanel .seg { margin-bottom: 8px; }
.seg button {
  flex: 1; border: 0; background: none; padding: 6px 16px; border-radius: 7px;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.seg button.is-on { background: var(--seg-active); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox input { flex: 1; min-width: 0; min-height: 36px !important; font-size: 14px !important; color: var(--muted); text-overflow: ellipsis; }

.locked { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 48px 16px; }
.locked__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--fill); margin-bottom: 8px; }
.locked__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.locked .lede { max-width: 40ch; margin-bottom: 12px; }

/* ---- Jam chat (Messages style) ------------------------------------------ */

.chat__head { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 4px 0 12px; border-bottom: .5px solid var(--sep); margin-bottom: 8px; }
.chat__faces { display: flex; }
.chat__faces .avatar { box-shadow: 0 0 0 2px var(--bg); }
.chat__faces .avatar + .avatar { margin-left: -8px; }
.chat__title { font-family: var(--f-display); font-size: 17px; font-weight: 600; }
.chat__head p { margin: 0; font-size: 13px; }

.thread { display: grid; gap: 4px; padding: 8px 0 16px; }
.thread__day { justify-self: center; margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.thread__note { justify-self: center; max-width: 80%; margin: 6px 0; font-size: 12px; color: var(--muted); text-align: center; }
.thread__empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 82%; }
.msg--first { margin-top: 8px; }
.msg--mine { justify-self: end; flex-direction: row-reverse; }
.msg__spacer { width: 34px; flex: none; }
.msg__body { display: grid; min-width: 0; }
.msg--mine .msg__body { justify-items: end; }
.msg__meta { font-size: 11px; color: var(--muted); margin: 0 12px 2px; }
.bubble {
  margin: 0; padding: 8px 13px; border-radius: 18px; font-size: 16px; line-height: 1.35;
  background: var(--fill-strong); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg--mine .bubble { background: var(--accent); color: var(--on-accent, #fff); }
.msg--mine .bubble a { color: var(--on-accent, #fff); }
.bubble a { color: var(--accent-text, var(--accent)); }

.composer {
  position: sticky; bottom: calc(var(--navh) + env(safe-area-inset-bottom) + 8px); z-index: 5;
  display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; margin-top: 8px;
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-radius: 22px; box-shadow: 0 0 0 .5px var(--sep), 0 6px 20px rgba(0, 0, 0, .08);
}
@media (min-width: 820px) { .composer { bottom: 16px; } }
.composer textarea {
  flex: 1; min-height: 32px !important; max-height: 160px; padding: 6px 0 !important; resize: none;
  background: none !important; box-shadow: none !important; border-radius: 0 !important; font-size: 17px; line-height: 1.3;
}
.composer__send {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--on-accent, #fff); cursor: pointer;
}
.composer__send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.composer:has(textarea:placeholder-shown) .composer__send { background: var(--fill-strong); }

.chatpreview .desk__head { margin-bottom: 8px; }
.chatlines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.chatlines li { display: flex; gap: 8px; align-items: flex-start; }
.chatlines p { margin: 0; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chatlines .avatar { margin-top: 1px; }
.jamcard__unread { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--accent-text, var(--accent)); }
.need__icon--chat { background: var(--accent-soft); }
.need__icon--chat svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }

/* ---- Setlist -------------------------------------------------------------- */

.setlist { margin-top: 16px; }
.songs { list-style: none; margin: 0; padding: 0; display: grid; }
.song {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px 10px; align-items: center;
  padding: 10px 0; border-top: .5px solid var(--sep);
}
.song:first-child { border-top: 0; }
.song__n { font-size: 15px; font-weight: 600; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.song__main { display: grid; min-width: 0; }
.song__main b { font-weight: 600; }
.song__main span { font-size: 14px; }
.song__know { display: flex; align-items: center; gap: 6px; justify-self: end; }
.song__faces { display: flex; }
.song__faces .avatar { box-shadow: 0 0 0 1.5px var(--panel); }
.song__faces .avatar + .avatar { margin-left: -6px; }
.song__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.knowbtn {
  min-height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--fill);
  font: inherit; font-size: 13px; font-weight: 600; color: var(--accent-text, var(--accent)); cursor: pointer; white-space: nowrap;
}
.knowbtn.is-on { background: color-mix(in srgb, var(--switch-on) 18%, transparent); color: var(--ok); }
.song__tools { grid-column: 2 / -1; display: flex; gap: 4px; justify-self: end; }
.iconbtn {
  display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: var(--fill); color: var(--ink); font-size: 15px; cursor: pointer;
}
.iconbtn:disabled { opacity: .35; cursor: default; }
.iconbtn--danger { color: var(--danger); }
@media (min-width: 700px) {
  .song { grid-template-columns: 28px minmax(0, 1fr) auto auto; }
  .song__tools { grid-column: auto; }
}
.songform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--sep); }
.songform [name="title"] { grid-column: 1 / -1; }
.songform .btn { align-self: stretch; }
@media (min-width: 700px) { .songform { grid-template-columns: 1.4fr 1fr 150px auto; } .songform [name="title"] { grid-column: auto; } }
.panel input:not([type="checkbox"]):not([type="radio"]), .panel textarea { background: var(--fill); }

/* ---- Installed app on Android -----------------------------------------
   The page itself never scrolls (so Chrome keeps its bottom strip in place);
   #app scrolls instead and stops above the tab bar. The tab bar is opaque and
   uses the manifest theme_color, so it and Chrome's strip read as one bar. */
html.inner-scroll, html.inner-scroll body { height: 100%; overflow: hidden; }
/* Pinned to the screen edges (top) and to the top of the tab bar (bottom), like the tab bar
   itself: no height math, so iOS's idea of 100vh/100% can't push the end under the bar. */
html.inner-scroll #app {
  position: fixed; top: 0; left: 0; right: 0; bottom: calc(var(--navh) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
}
html.inner-scroll body:not(:has(> .nav)) #app { bottom: 0; }
@media (min-width: 820px) { html.inner-scroll #app { bottom: 0; } } /* tablets: the bar isn't at the bottom */
html.inner-scroll .main { padding-bottom: 32px; }
html.android-app .nav { background: #F9F9F9; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.inner-scroll .composer, html.inner-scroll .cform { bottom: 8px; }
@media (prefers-color-scheme: dark) {
  html.android-app:not([data-theme="light"]) .nav { background: #161617; }
}

/* ======================================================================
   Breathing room: more space between sections and inside cards, fewer
   lines per card, filters as a row of pills, carousels on Home.
   ====================================================================== */

.main { padding-top: 28px; }
@media (min-width: 820px) { .main { padding-top: 40px; } }
.pagehead { margin-bottom: 24px; gap: 16px 24px; }
.subtitle { margin: 32px 0 12px; }
.panel > .subtitle:first-child { margin-top: 0; }
.stack { gap: 16px; }
.mgrid { gap: 16px; }
.lgrid { gap: 24px 14px; }
.cols { gap: 24px; margin-top: 24px; }
.stackcol { gap: 24px; }
.panel { padding: 22px; }
.desk { padding: 22px; margin-bottom: 0; }
.setlist, .backline { margin-top: 24px; }
.poster { margin-bottom: 28px; }
.notice { margin-bottom: 24px; }

/* Cards: one idea per line */
.mcard { gap: 14px; padding: 20px; border-radius: 20px; }
.mcard__head { align-items: flex-start; gap: 14px; }
.mcard__head p { margin: 2px 0 0; font-size: 15px; }
.mcard__name { font-size: 18px; }
.mcard__why { margin: 0; font-size: 15px; color: var(--accent-text, var(--accent)); }
.mcard__why--artists { font-weight: 600; }
.mcard__actions { margin-top: 2px; align-items: center; }
.mcard__actions .btn { flex: none; }
.score { font-size: 24px; }
.tcard__headline { font-size: 16px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard__next { font-size: 14px; color: var(--muted); border: 0; padding: 0; }

.jamcard { padding: 18px; gap: 16px; border-radius: 20px; }
.jamcard__title { font-size: 18px; margin-bottom: 6px; }
.jamcard__meta, .jamcard__artists { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jamcard__meta { font-size: 15px; margin-bottom: 4px; }
.jamcard__strip { display: flex; align-items: center; gap: 12px; }
.jamcard__open { font-size: 14px; color: var(--muted); white-space: nowrap; }
.jamcard .dateblock { width: 54px; }

/* Filters: one swipeable row of pills; a pill in use turns dark */
.searchbar { display: block; margin-bottom: 14px; }
.searchbar input {
  width: 100%; min-height: 48px !important; border-radius: 999px !important; padding-left: 44px !important;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.8-4.8'/%3E%3C/svg%3E") no-repeat 16px center !important;
}
.filters {
  flex-wrap: nowrap; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)) 24px; padding: 2px var(--gutter) 4px;
}
.filters::-webkit-scrollbar { display: none; }
.filters .field, .filters .field--search { flex: none; max-width: none; display: block; }
.filters .field > span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.filters select {
  width: auto; min-height: 38px; padding: 0 36px 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E");
  background-position: right 14px center; background-size: 11px 8px;
}
.filters select:not(:has(option:first-child:checked)) {
  background-color: var(--ink); color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .filters select:not(:has(option:first-child:checked)) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E");
  }
}
.filters input[type="search"], .filters input:not([type="checkbox"]) {
  width: 150px; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 15px;
}
.filters .toggle { position: relative; flex: none; min-height: 0; gap: 0; }
.filters .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filters .toggle input::before { display: none; }
.filters .toggle span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--panel); font-size: 15px; font-weight: 600; white-space: nowrap;
}
.filters .toggle:has(input:checked) span { background: var(--ink); color: var(--panel); }
.filters .toggle:has(input:focus-visible) span { outline: 3px solid var(--accent); outline-offset: 2px; }
.avoidbar { background: none; padding: 0; margin: -8px 0 20px; }
.avoidbar .avoidbar__input { background: var(--panel) !important; border-radius: 999px !important; padding: 4px 14px !important; }

/* Home */
.home__hello { margin-bottom: 28px; }
.home__headline { font-size: clamp(26px, 4vw, 34px); }
.home__grid, .home__col { gap: 40px; }
.homesec { gap: 16px; }
.homesec__title { font-size: 22px; }
.nextup { padding: 22px; gap: 18px; border-radius: 22px; }
.need { padding: 16px 18px; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick__item { display: grid; justify-items: center; gap: 8px; text-align: center; text-decoration: none; font-size: 13px; font-weight: 500; line-height: 1.25; }
.quick__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); transition: transform .12s; }
.quick__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quick__item:active .quick__icon { transform: scale(.94); }

.carousel, .minijams {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 46%); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding: 0 var(--gutter);
}
@media (min-width: 960px) {
  .carousel, .minijams { margin: 0; padding: 2px 0 6px; scroll-padding: 0; grid-auto-columns: minmax(168px, 44%); }
}
.carousel::-webkit-scrollbar, .minijams::-webkit-scrollbar { display: none; }
.minijam { padding: 16px; border-radius: 18px; gap: 4px; }
.minijam__title { font-size: 17px; }
.pcard {
  scroll-snap-align: start; display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: 20px 14px 16px; background: var(--panel); border-radius: 20px;
}
.pcard__link { display: grid; justify-items: center; gap: 4px; text-decoration: none; min-width: 0; width: 100%; }
.pcard__link .avatar { margin-bottom: 8px; }
.pcard__link b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pcard__link span { font-size: 14px; }
.pcard__plays { display: inline-flex; align-items: center; gap: 6px; }
.pcard__plays .jack { width: 8px; height: 8px; }
.pcard .btn { width: 100%; }

/* Jam page: backline folds away */
details.backline > summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; cursor: pointer; list-style: none; }
details.backline > summary::-webkit-details-marker { display: none; }
details.backline > summary .subtitle { margin: 0; }
details.backline > summary .muted { font-size: 14px; }
details.backline > summary::after { content: 'Show'; margin-left: auto; color: var(--accent-text, var(--accent)); font-size: 15px; }
details.backline[open] > summary::after { content: 'Hide'; }
details.backline[open] > summary { margin-bottom: 14px; }
.mcard__head .avatar--lg { width: 60px; height: 60px; font-size: 21px; }
.pcard .avatar--lg { width: 72px; height: 72px; font-size: 24px; }
.carousel, .minijams { grid-auto-columns: minmax(156px, 42%); }
.pagehead { align-items: center; }
.pagehead > .btn { min-height: 34px; padding: 0 16px; border-radius: 999px; font-size: 15px; }
@media (max-width: 600px) { .pagehead .lede { display: none; } .pagehead .title { margin-bottom: 0; } }
.mcard__head p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jamcard__artists { margin-bottom: 0; }
.lcard__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song { padding: 14px 0; }
details.backline > summary { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; }
details.backline > summary .muted { grid-row: 2; grid-column: 1 / -1; }
details.backline > summary::after { grid-row: 1; grid-column: 2; margin-left: 0; }

/* ---- Three tabs: Home · Community · Profile ----------------------------- */

.nav--3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 820px) { .nav--3 .nav__item { padding: 7px 22px; } }

.quick { grid-template-columns: repeat(5, 1fr); gap: 4px; }
.quick__icon { width: 56px; height: 56px; }
.quick__icon svg { width: 25px; height: 25px; }
.quick__item { font-size: 12.5px; }
.quick__item:first-child .quick__icon { background: var(--accent); }
.quick__item:first-child .quick__icon svg { stroke: #fff; }

/* iOS grouped list rows (Profile) */
.menu { display: grid; background: var(--panel); border-radius: 16px; overflow: hidden; }
.menurow {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px;
  text-decoration: none; color: var(--ink); background: none; border: 0; font: inherit; text-align: left; width: 100%; cursor: pointer;
}
.menurow + .menurow { box-shadow: inset 0 .5px 0 var(--sep); }
.menurow:active { background: var(--fill); }
.menurow__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); flex: none; }
.menurow__icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menurow__label { flex: 1; min-width: 0; font-size: 17px; }
.menurow__detail { color: var(--muted); font-size: 17px; }
.menurow__chev { width: 8px; height: 8px; border: solid #C4C4C7; border-width: 2px 2px 0 0; transform: rotate(45deg); margin-left: 4px; flex: none; }
.menurow--danger .menurow__label { color: var(--danger); }
.menu--account { margin-top: 32px; }
.btn--block { display: flex; width: 100%; margin: 16px 0 8px; }
.profilehead--me { margin-bottom: 0; }
.profilehead--me .lede { font-size: 15px; }
.profilecard .eyebrow { margin: 16px 0 8px; }
.profilecard .eyebrow:first-child { margin-top: 0; }

/* Messages inbox */
.inboxrow { grid-template-columns: 52px 1fr auto; padding: 12px 16px; }
.inboxrow__date .dateblock { width: 48px; border-radius: 11px; }
.inboxrow__date .dateblock__d { font-size: 22px; }
.inboxrow__date .dateblock__m { display: none; }
.inboxrow .lrow__main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inboxrow.is-unread .lrow__main span { color: var(--ink); font-weight: 500; }
.inboxrow__meta { display: grid; justify-items: end; gap: 4px; font-size: 13px; }

/* ---- Photos ------------------------------------------------------------ */

.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photopick { display: flex; align-items: center; gap: 16px; }
.photopick__actions { display: grid; gap: 4px; justify-items: start; }
.photopick__actions .hint { margin: 2px 0 0; }
.photopick .avatar--lg { width: 80px; height: 80px; font-size: 28px; }

.cover { margin: 0 0 20px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--fill); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) { .cover { aspect-ratio: 16 / 9; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; } }

.scard { padding-top: 0; overflow: hidden; }
.scard__media { display: block; margin: 0 -20px 4px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fill); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.scard:hover .scard__media img { transform: scale(1.03); }

.minijam { overflow: hidden; }
.minijam__media { display: block; margin: -16px -16px 10px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fill); }
.minijam__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Notifications ------------------------------------------------------ */

.top { gap: 12px; }
.bell { position: relative; margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.bell:hover { background: var(--fill); }
.bell svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.bell__dot {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  box-shadow: 0 0 0 2px var(--bg);
}
.back--btn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

.notes { display: grid; background: var(--panel); border-radius: 16px; overflow: hidden; }
.note { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.note + .note { box-shadow: inset 0 .5px 0 var(--sep); }
.note:active { background: var(--fill); }
.note.is-new { background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.note__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fill); }
.note__icon svg { width: 21px; height: 21px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note__icon--soon { background: color-mix(in srgb, #FF9500 18%, transparent); } .note__icon--soon svg { stroke: #C93400; }
.note__icon--chat, .note__icon--invite { background: var(--accent-soft); } .note__icon--chat svg, .note__icon--invite svg { stroke: var(--accent); }
.note__icon--joined, .note__icon--lesson { background: color-mix(in srgb, var(--switch-on) 18%, transparent); } .note__icon--joined svg, .note__icon--lesson svg { stroke: var(--ok); }
.note__icon--offer { background: color-mix(in srgb, #AF52DE 16%, transparent); } .note__icon--offer svg { stroke: #8944AB; }
.note__text { font-size: 15px; line-height: 1.4; min-width: 0; }
.note__text b { font-weight: 600; }
.note__quote { display: block; margin-top: 2px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note__time { font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.note.is-new .note__time { color: var(--accent-text, var(--accent)); font-weight: 600; }

/* ---- Screens without the app header ------------------------------------- */

.main--bare { --main-top: calc(env(safe-area-inset-top, 0px) + 20px); padding-top: var(--main-top); }
@media (min-width: 820px) { .main--bare { --main-top: 76px; } } /* clears the floating tab bar */

/* Detail photo with a floating back button (jams, studios) */
.hero-cover { position: relative; margin: 0 0 24px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--fill); }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-cover::after { /* soft shade so the back button reads on bright photos */
  content: ''; position: absolute; inset: 0 0 auto; height: 90px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .28), transparent);
}
.fab-back {
  position: absolute; z-index: 1; top: 14px; left: 14px; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--ink);
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.fab-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fab-back:active { transform: scale(.94); }
@media (max-width: 600px) {
  .hero-cover {
    aspect-ratio: 4 / 3; border-radius: 0;
    margin: calc(-1 * var(--main-top, 20px)) calc(-1 * var(--gutter)) 24px;
  }
  .fab-back { top: calc(env(safe-area-inset-top, 0px) + 12px); left: 12px; }
}

/* Jam: chat first, then calendar and share */
.jamactions { display: flex; align-items: center; gap: 10px; margin: -6px 0 24px; }
.jamactions__chat { flex: 1; gap: 10px; }
.jamactions__chat svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.roundbtn {
  flex: none; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: var(--panel); color: var(--accent-text, var(--accent)); cursor: pointer;
}
.roundbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.roundbtn:active { transform: scale(.94); }
@media (min-width: 700px) { .jamactions { max-width: 520px; } }

/* ---- Join flow: review, then celebration --------------------------------- */

.joinflow .title { margin-bottom: 18px; }
.joincard { background: var(--panel); border-radius: 20px; overflow: hidden; }
.joincard__media { aspect-ratio: 16 / 7; overflow: hidden; }
.joincard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.joincard__body { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 18px; }
.joincard__title { font-family: var(--f-display); font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.joincard__body p { margin: 0; font-size: 15px; }
.joincard__host { display: flex; align-items: center; gap: 6px; margin-top: 6px !important; color: var(--ink); }

.joinpart__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chip--big { font-size: 16px; font-weight: 600; padding: 7px 14px; }
.chip--big .jack { width: 12px; height: 12px; }
.joinpart__strip { margin-bottom: 10px; }
.joinpart p { margin: 0; font-size: 14px; }

.checklist2 { list-style: none; margin: 0; padding: 0; display: grid; background: var(--panel); border-radius: 16px; overflow: hidden; }
.checklist2 li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 14px 16px; font-size: 15px; }
.checklist2 li + li { box-shadow: inset 0 .5px 0 var(--sep); }
.checklist2 b { font-weight: 600; }
.checklist2__text { margin: 0; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.checklist2__text .jack { position: relative; top: 1px; }

.joinflow__confirm { margin-top: 28px; display: grid; gap: 14px; }
.commit { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--panel); border-radius: 16px; cursor: pointer; font-size: 15px; line-height: 1.4; }
.commit input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.joinflow__actions { display: grid; gap: 8px; margin-top: 4px; }
.joinflow__actions .btn { width: 100%; }

/* Celebration */
.joined { display: grid; justify-items: center; text-align: center; padding-top: 24px; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }
.joined__check { width: 96px; height: 96px; margin-bottom: 18px; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.joined__check svg { width: 100%; height: 100%; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.joined__check circle { fill: var(--switch-on); stroke: none; }
.joined__check path { stroke: #fff; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .3s ease-out forwards; }
.joined__title { font-size: 40px; animation: rise .5s .15s ease-out both; }
.joined__lede { max-width: 32ch; margin: 0 auto 24px; color: var(--ink); animation: rise .5s .25s ease-out both; }
.joined__strip { margin-bottom: 28px; animation: rise .5s .35s ease-out both; }
.joined__strip .strip { justify-content: center; }
.joined__actions { display: grid; gap: 8px; width: 100%; max-width: 380px; animation: rise .5s .45s ease-out both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .joined__check, .joined__title, .joined__lede, .joined__strip, .joined__actions { animation: none; }
  .joined__check path { animation: none; stroke-dashoffset: 0; }
}
/* The whole lineup on one row in the join screens */
.joined__strip, .joinpart__strip { width: 100%; }
.joined__strip .strip--lg, .joinpart__strip .strip--lg { flex-wrap: nowrap; gap: 8px; justify-content: center; }
.joined__strip .strip--lg .ch, .joinpart__strip .strip--lg .ch { --track-h: 104px; width: auto; flex: 1 1 0; max-width: 66px; min-width: 0; }
.joined__strip .ch__who, .joinpart__strip .ch__who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.joined__strip .ch__fader, .joinpart__strip .ch__fader { border-radius: 16px; }

/* ---- Chat: composer always at the bottom (like Messages) ------------------
   The chat screen fills the viewport; messages stack toward the composer,
   and the composer stays pinned just above the tab bar while scrolling. */
.main:has(> .chat), html.inner-scroll .main:has(> .chat) { padding-bottom: 0; }
.chat {
  --chat-bottom: calc(var(--navh) + env(safe-area-inset-bottom, 0px) + 8px);
  display: flex; flex-direction: column;
  min-height: calc(100dvh - var(--main-top, 20px));
  padding-bottom: var(--chat-bottom);
}
.chat .thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.chat .thread > * { align-self: flex-start; }
.chat .thread > .msg--mine { align-self: flex-end; }
.chat .thread > .thread__day, .chat .thread > .thread__note, .chat .thread > .thread__empty { align-self: center; }
.chat .composer { bottom: var(--chat-bottom); margin-top: 8px; flex: none; }
.chat > .notice { margin: 8px 0 0; }
@media (min-width: 820px) { .chat { --chat-bottom: 16px; } }
html.inner-scroll .chat {
  --chat-bottom: 8px;
  min-height: calc(100dvh - var(--navh) - env(safe-area-inset-bottom, 0px) - var(--main-top, 20px));
}

/* ---- Join review: a ticket, a short checklist and a checkout bar ---------- */

.review .title { margin-bottom: 20px; }
.ticket { position: relative; background: var(--panel); border-radius: 22px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -18px rgba(0, 0, 0, .25); }
.ticket__band {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: 22px 22px 0 0; background: color-mix(in srgb, var(--cable) 16%, var(--panel));
}
.ticket__glyph { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--cable); }
.ticket__glyph svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ticket__part { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ticket__title { font-family: var(--f-display); font-size: 21px; font-weight: 700; line-height: 1.2; }
.ticket__rows { margin: 0; padding: 6px 20px 10px; }
.ticket__rows > div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px 0; }
.ticket__rows > div + div { box-shadow: inset 0 .5px 0 var(--sep); }
.ticket__rows dt { color: var(--muted); font-size: 15px; }
.ticket__rows dd { margin: 0; font-size: 15px; font-weight: 500; display: grid; gap: 6px; }
.ticket__host { display: flex !important; align-items: center; gap: 8px; }
.ldots { display: flex; gap: 6px; }
.ldot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cable) 55%, transparent); }
.ldot.is-filled { background: var(--cable); box-shadow: none; }
.ldot.is-you { background: var(--cable); box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--cable); animation: you-pulse 1.6s ease-in-out infinite; }
@keyframes you-pulse { 50% { box-shadow: 0 0 0 2px var(--panel), 0 0 0 6px color-mix(in srgb, var(--cable) 45%, transparent); } }
.ticket__rows dd .muted { font-weight: 400; font-size: 14px; }

/* perforation with notches cut out of each side */
.ticket__tear { position: relative; height: 22px; margin: 0 20px; background: linear-gradient(to right, var(--sep) 55%, transparent 0) center / 12px 1.5px repeat-x; }
.ticket__tear::before, .ticket__tear::after {
  content: ''; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bg);
}
.ticket__tear::before { left: -31px; }
.ticket__tear::after { right: -31px; }
.ticket__fee { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 20px 20px; }
.ticket__fee > div { display: grid; gap: 2px; }
.ticket__fee .muted { font-size: 13px; }
.ticket__amount { font-family: var(--f-display); font-size: 22px; font-weight: 700; white-space: nowrap; }

.brows { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.brows li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.brows li > span:last-child { display: grid; gap: 2px; font-size: 15px; }
.brows b { font-weight: 600; }
.brow__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--panel); }
.brow__icon svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* checkout bar pinned above the tab bar */
.review { padding-bottom: 8px; }
.checkout {
  position: sticky; bottom: calc(var(--navh) + env(safe-area-inset-bottom, 0px) + 8px); z-index: 5;
  display: grid; gap: 10px; margin-top: 28px; padding: 14px;
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-radius: 22px; box-shadow: 0 0 0 .5px var(--sep), 0 10px 30px rgba(0, 0, 0, .12);
}
.checkout .commit { background: none; padding: 0 2px; font-size: 14px; }
.checkout .commit input { width: 22px; height: 22px; }
.checkout .form-error { margin: 0; }
.checkout .btn { width: 100%; }
@media (min-width: 820px) { .checkout { bottom: 16px; } }
html.inner-scroll .checkout { bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .ldot.is-you { animation: none; } }

/* ---- Screen transitions (iOS-style push / pop, fade between tabs) -------- */

.nav { view-transition-name: tabbar; } /* the tab bar stays put while screens move */
::view-transition-group(root) { animation-duration: .38s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); mix-blend-mode: normal; }

html[data-nav="push"]::view-transition-old(root) { animation-name: vt-out-left; }
html[data-nav="push"]::view-transition-new(root) { animation-name: vt-in-right; }
html[data-nav="pop"]::view-transition-old(root)  { animation-name: vt-out-right; z-index: 2; }
html[data-nav="pop"]::view-transition-new(root)  { animation-name: vt-in-left; }
html[data-nav="fade"]::view-transition-old(root) { animation: vt-fade-out .18s ease both; }
html[data-nav="fade"]::view-transition-new(root) { animation: vt-fade-in .22s ease both; }

@keyframes vt-in-right  { from { transform: translateX(100%); box-shadow: -12px 0 30px rgba(0, 0, 0, .12); } to { transform: none; box-shadow: -12px 0 30px rgba(0, 0, 0, 0); } }
@keyframes vt-out-left  { to { transform: translateX(-28%); filter: brightness(.92); } }
@keyframes vt-out-right { to { transform: translateX(100%); } }
@keyframes vt-in-left   { from { transform: translateX(-28%); filter: brightness(.92); } }
@keyframes vt-fade-out  { to { opacity: 0; } }
@keyframes vt-fade-in   { from { opacity: 0; } }

/* Fallback for browsers without View Transitions: animate the incoming screen */
.main.enter-push { animation: vt-in-right .34s cubic-bezier(.22, .8, .24, 1); }
.main.enter-pop  { animation: vt-in-left .34s cubic-bezier(.22, .8, .24, 1); }
.main.enter-fade { animation: vt-fade-in .2s ease; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .main.enter-push, .main.enter-pop, .main.enter-fade { animation: none; }
}

/* ---- Spanish: texts that live in CSS ---------------------------------- */
html[lang^="es"] details.backline > summary::after { content: 'Ver'; }
html[lang^="es"] details.backline[open] > summary::after { content: 'Ocultar'; }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.hero__top .wordmark--hero { margin: 0; }
.seg--lang { display: inline-flex; margin: 0; }
.seg--lang button { padding: 5px 12px; }

/* ---- Join celebration: black screen, the band assembles, fireworks -------- */

.cel {
  --cy: 32%;
  position: fixed; inset: 0; z-index: 90; overflow: hidden;
  background: #000; color: #fff; animation: cel-in .3s ease both;
}
@keyframes cel-in { from { opacity: 0; } }
.cel__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.cel__band { position: absolute; left: 50%; top: var(--cy); width: 0; height: 0; }
.cel__ico {
  position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 20px; background: var(--cable);
  opacity: 0; transition: transform .75s cubic-bezier(.2, 1.3, .4, 1), opacity .4s ease; will-change: transform;
}
.cel__ico svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cel__ico--you {
  width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 30px; z-index: 1;
  box-shadow: 0 0 46px color-mix(in srgb, var(--cable) 70%, transparent);
}
.cel__ico--you svg { width: 62px; height: 62px; }
.cel__ring {
  position: absolute; left: 50%; top: var(--cy); width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; border: 3px solid var(--cable); opacity: 0;
}
.cel__ring.is-go { animation: cel-ring .9s ease-out forwards; }
@keyframes cel-ring { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(30); } }

.cel__text {
  position: absolute; left: 24px; right: 24px; top: calc(var(--cy) + 92px); text-align: center;
  opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease;
}
.cel__text h1 { font-family: var(--f-display); font-size: 36px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.cel__text p { margin: 8px auto 0; max-width: 30ch; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.cel__text b { color: #fff; }
.cel__actions {
  position: absolute; left: 20px; right: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  max-width: 420px; margin: 0 auto; display: grid; gap: 8px;
  opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease;
}
.cel__actions .btn { width: 100%; }
.cel__actions .btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.cel__actions .btn--quiet { color: rgba(255, 255, 255, .75); }
.cel.is-text .cel__text, .cel.is-actions .cel__actions { opacity: 1; transform: none; }
@media (max-height: 640px) { .cel { --cy: 27%; } .cel__text { top: calc(var(--cy) + 76px); } }
@media (prefers-reduced-motion: reduce) { .cel { animation: none; } .cel__text, .cel__actions { transition: none; } }

/* ---- Full-screen experiences (chats, new jam, join, a post's comments) ----
   On phones the tab bar steps aside; everything that sat above it moves down to the edge.
   Computers keep the sidebar. */
@media (max-width: 1023px) {
  .nav.nav--away { display: none; }
  .main--full { --navh: 0px; }
  html.inner-scroll body:has(> .nav--away) #app { bottom: 0; }
  /* Installed apps: with no tab bar, bottom bars clear the home indicator themselves. */
  html.inner-scroll .main--full .chat { --chat-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
  html.inner-scroll .main--full .composer, html.inner-scroll .main--full .cform, html.inner-scroll .main--full .checkout { bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
  html.inner-scroll .main--full { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }
}

/* No double-tap zoom anywhere (taps also respond right away); pinch stays for open photos. */
html { touch-action: manipulation; }
/* iPhone zooms into any field with text under 16px when you tap it: keep fields at 16px on phones. */
@media (max-width: 820px) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: max(16px, 1em) !important; }
}

/* Character counter under long text fields (js/limits.js) */
.charcount { margin: 4px 2px 0; font-size: 12px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.charcount.is-low { color: var(--warn, #FF9500); font-weight: 600; }

/* Save bar: editing your profile or a jam. Rides along at the bottom of the screen. */
.savebar {
  position: sticky; z-index: 6; bottom: calc(var(--navh) + env(safe-area-inset-bottom) + 8px);
  display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 8px 8px 16px;
  border-radius: 18px; background: var(--panel); box-shadow: 0 0 0 1px var(--line, var(--sep)), 0 8px 24px rgba(0, 0, 0, .12);
}
.savebar__note { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.savebar__dirty { display: none; color: var(--ink); font-weight: 600; }
.savebar__dirty::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.savebar.is-dirty .savebar__clean { display: none; }
.savebar.is-dirty .savebar__dirty { display: inline; }
.savebar .btn { flex: none; }
.savebar__save { min-width: 96px; }
html.inner-scroll .savebar { bottom: 8px; }
html.inner-scroll .main--full .savebar { bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
@media (min-width: 820px) { .savebar { bottom: 16px; } }
body:has(> .nav--away) .savebar { bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }

/* Celebrations: your instrument's photo behind, poster style (js/join.js celPhoto) */
.cel__bg { position: absolute; inset: 0; z-index: 0; isolation: isolate; overflow: hidden; pointer-events: none; background: #12100E; }
.cel__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(1.35); animation: cel-bg 1.2s ease both; }
.cel__bg::before { content: ''; position: absolute; inset: 0; z-index: 1; background: #D9480F; mix-blend-mode: multiply; opacity: .85; }
.cel__bg::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: var(--grain) repeat, linear-gradient(180deg, rgba(18, 16, 14, .1) 0%, rgba(18, 16, 14, .2) 32%, rgba(18, 16, 14, .78) 58%, #12100E 90%);
  background-blend-mode: overlay, normal; opacity: 1;
}
@keyframes cel-bg { from { opacity: 0; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .cel__bg img { animation: none; } }
.cel__bg.is-dark img { filter: grayscale(1) contrast(1.05) brightness(1.9); }
