:root {
  --void: #07080d;
  --paper: #f4efe6;
  --muted: rgba(244, 239, 230, 0.62);
  --warm: #e8b07a;
  --warm-2: #ffd6a3;
  --ice: #8fd4de;
  --rose: #d4786a;
  --stroke: rgba(255, 255, 255, 0.16);
  --glass: rgba(14, 16, 24, 0.38);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --kb: 0px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  color: var(--paper);
  font-family: var(--sans);
  background: var(--void);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
button, a.btn, .pill, .caret { touch-action: manipulation; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.atmosphere-photo {
  position: absolute;
  inset: -8%;
  background:
    url("/assets/avatar.jpg?v=29") center 42% / cover no-repeat;
  filter: blur(36px) saturate(1.2) brightness(0.42);
  transform: scale(1.08);
  opacity: 0.7;
}
.atmosphere-brush {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0) 1px,
      rgba(0, 0, 0, 0.06) 2px,
      rgba(255, 255, 255, 0) 3px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0px,
      transparent 2px
    );
}
.atmosphere-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 620px at 78% 8%, rgba(143, 212, 222, 0.16), transparent 55%),
    radial-gradient(800px 520px at 8% 92%, rgba(232, 176, 122, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(7, 8, 13, 0.2), rgba(7, 8, 13, 0.72));
}

.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid var(--stroke);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 24px 60px rgba(0, 0, 0, 0.32);
}

a { color: var(--warm); text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

.top {
  position: sticky;
  top: 12px;
  z-index: 30;
  margin: 12px auto 0;
  width: min(1120px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 14px;
  border-radius: 22px;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 40%;
  border: 1px solid var(--stroke);
}
.brand b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav button, .btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.nav button:hover, .btn.ghost:hover { color: var(--paper); }
.nav button.on {
  color: var(--void);
  background: linear-gradient(180deg, var(--warm-2), var(--warm));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn.primary, .cta .btn.primary {
  color: var(--void);
  background: linear-gradient(180deg, var(--warm-2), var(--warm));
  border-color: rgba(255, 214, 163, 0.4);
  font-weight: 600;
}
.btn.ghost {
  border-color: var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}
.btn.danger { color: var(--rose); border-color: rgba(212, 120, 106, 0.4); }
.who {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.landing-page:not(.authed) {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.deck-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 16px));
  margin: 16px auto 0;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: stretch;
}
body.authed .deck-shell { display: none; }
.deck {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.deck.hscroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.deck::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Thumb sits just right of the glass, not on the panel edge. */
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 239, 230, 0.42) transparent;
}
.slide::-webkit-scrollbar {
  width: 12px;
}
.slide::-webkit-scrollbar-track {
  background: transparent;
}
.slide::-webkit-scrollbar-thumb {
  background-color: rgba(244, 239, 230, 0.42);
  border-radius: 999px;
  border: 2px solid transparent;
  border-right-width: 4px;
  background-clip: padding-box;
}
#slide-home {
  overflow: hidden;
  padding-right: 0;
}

.landing {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
  height: 100%;
  min-height: 100%;
  padding: 0;
  box-sizing: border-box;
}

.hero {
  border-radius: 32px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0;
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.92;
  margin: 14px 0 18px;
}
.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.55;
  margin: 0;
}
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.legal-line {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 28rem;
  line-height: 1.45;
}
.cta .btn { padding: 12px 18px; }
.portrait-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100%;
}
.portrait {
  border-radius: 32px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
  background: #05060a;
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
}
.caret {
  position: relative;
  top: auto;
  transform: none;
  align-self: center;
  justify-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(14, 16, 24, 0.55);
  backdrop-filter: blur(16px);
  color: var(--paper);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 10px 24px rgba(0,0,0,0.28);
}
.deck-shell > .caret.prev { grid-column: 1; grid-row: 1; left: auto; right: auto; }
.deck-shell > .caret.next { grid-column: 3; grid-row: 1; left: auto; right: auto; }
.caret:hover { color: var(--void); background: linear-gradient(180deg, var(--warm-2), var(--warm)); }
.caret[hidden],
.deck-shell.is-home > .caret.prev,
.deck-shell.is-end > .caret.next { visibility: hidden; pointer-events: none; }

#slide-about,
#slide-can {
  container-type: size;
}
.bands {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 0 20px;
  box-sizing: border-box;
}
.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  min-height: 100cqh;
}
.band.alt .band-shot { order: 2; }
.band.alt .band-copy { order: 1; }
.band-shot {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #05060a;
  position: relative;
  min-height: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}
.band-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}
.band-shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--paper);
  background: rgba(7,8,13,0.55);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 999px;
}
.band-copy {
  min-height: 0;
}
.band-copy h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.band-copy h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  font-family: var(--mono);
  font-weight: 500;
}
.band-copy ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.band-copy li { margin: 0 0 6px; line-height: 1.4; }
.body-copy {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
}
.quote {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--warm-2);
  line-height: 1.35;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.two-col h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  font-family: var(--mono);
  font-weight: 500;
}
.two-col ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.two-col li { margin: 0 0 6px; line-height: 1.4; }
.cap-group h3 {
  margin: 8px 0 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}
.cap-group ul {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.cap-group li {
  margin: 0 0 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.cap-ico {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--ice);
  background: rgba(143, 212, 222, 0.12);
  border: 1px solid rgba(143, 212, 222, 0.22);
}
.cap-group li.is-paid .cap-ico {
  color: var(--warm-2);
  background: rgba(232, 176, 122, 0.14);
  border-color: rgba(232, 176, 122, 0.28);
}
.cap-ico-svg { width: 16px; height: 16px; display: block; }
.cap-label { flex: 1; min-width: 0; }
.chip.paid {
  color: #2a1a0c;
  background: linear-gradient(180deg, var(--warm-2), var(--warm));
  border-color: transparent;
  text-transform: none;
  letter-spacing: 0;
}

.app {
  display: none;
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 24px));
  margin: 18px auto 40px;
}
body.authed .app { display: flex; flex-direction: column; }

.stage {
  border-radius: 28px;
  min-height: calc(100dvh - 130px);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
}
.pane { display: none; flex: 1; min-height: 0; flex-direction: column; }
.pane.on { display: flex; overflow-x: hidden; }

.pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pane-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0 0 4px;
}
.pane-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36rem;
}

.transcript {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 6px 18px;
  min-height: 48vh;
}
.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}
.chat-row.user { flex-direction: row-reverse; }
.chat-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 36px;
  margin-top: 22px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.28);
}
.chat-col {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 46px);
  display: flex;
  flex-direction: column;
}
.chat-row.user .chat-col { align-items: flex-end; }
.chat-row.assistant .chat-col { align-items: flex-start; }
.chat-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
  max-width: min(100%, 640px);
  min-width: 0;
}
.chat-row.user .chat-stack { align-items: flex-start; }
.chat-row.assistant .chat-stack { align-items: flex-end; }
.bubble {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
}
.bubble.user { margin-left: 0; }
.bubble.hidden-ctx { opacity: 0.55; }
.bubble.hidden-ctx .txt { text-decoration: line-through; text-decoration-color: rgba(244, 239, 230, 0.35); }
.bubble .who {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
}
.bubble-when {
  display: none;
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--mono);
  padding: 0 4px;
  max-width: 100%;
}
.chat-row:hover .bubble-when, .chat-row:focus-within .bubble-when { display: block; }
.chat-row.user .bubble-when { text-align: left; }
.chat-row.assistant .bubble-when { text-align: right; }
.bubble .txt {
  padding: 12px 16px;
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.bubble.user .txt {
  border-radius: 18px 18px 6px 18px;
  background: rgba(232, 176, 122, 0.14);
  border-color: rgba(232, 176, 122, 0.32);
}
.bubble .txt.md p { margin: 0 0 0.7em; }
.bubble .txt.md p:last-child { margin-bottom: 0; }
.bubble .txt.md ul, .bubble .txt.md ol { margin: 0.2em 0 0.7em; padding-left: 1.2rem; }
.bubble .txt.md h1, .bubble .txt.md h2, .bubble .txt.md h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0.2em 0 0.45em;
  line-height: 1.25;
}
.bubble .txt.md a { color: var(--ice); }
.bubble .txt.md blockquote {
  margin: 0.3em 0 0.7em;
  padding: 0.2em 0 0.2em 12px;
  border-left: 2px solid var(--warm);
  color: var(--muted);
}
.bubble .txt.md table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4em 0 0.8em;
  font-size: 0.88rem;
  overflow: hidden;
  border-radius: 10px;
}
.bubble .txt.md th, .bubble .txt.md td {
  border: 1px solid var(--stroke);
  padding: 6px 8px;
  text-align: left;
}
.bubble .txt.md th { background: rgba(255, 255, 255, 0.06); font-weight: 500; }
.bubble .txt.md hr { border: 0; border-top: 1px solid var(--stroke); margin: 0.8em 0; }
.md-code {
  margin: 0.4em 0 0.8em;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}
.md-code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 0.72rem;
  color: var(--muted);
  border-bottom: 1px solid var(--stroke);
}
.md-code-lang { margin-right: auto; text-transform: lowercase; }
.md-code-bar button {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--paper);
  border-radius: 999px;
  padding: 2px 8px;
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}
.md-code pre {
  margin: 0;
  max-height: 220px;
  overflow: auto;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 0.82rem;
  white-space: pre;
}
.md-code.open pre { max-height: none; }
.md-code.open { position: relative; z-index: 4; }
.md-mermaid {
  margin: 0.4em 0 0.8em;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  overflow: auto;
}
.md-mermaid svg { max-width: 100%; height: auto; }
.md-mermaid-pending, .md-mermaid-fallback { color: var(--muted); font-size: 0.82rem; }
.bubble-tools {
  display: none;
  position: static;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(14, 16, 24, 0.55);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  width: max-content;
  max-width: 100%;
  flex-shrink: 0;
  z-index: 2;
}
.chat-row.user .bubble-tools { align-self: flex-start; }
.chat-row.assistant .bubble-tools { align-self: flex-end; margin-left: auto; }
.chat-row:hover .bubble-tools, .chat-row:focus-within .bubble-tools { display: flex; }
.bubble-tools button {
  background: transparent;
  border: 0;
  color: var(--paper);
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.bubble-tools button svg { width: 15px; height: 15px; display: block; }
.bubble-tools button:hover { background: rgba(255, 255, 255, 0.08); color: var(--warm-2); }
@media (hover: none) {
  .bubble-tools { display: flex; opacity: 0.9; }
}
.bubble img, .bubble video {
  display: block;
  max-width: min(360px, 100%);
  border-radius: 16px;
  margin-top: 8px;
  border: 1px solid var(--stroke);
}
.bubble audio {
  display: block;
  width: min(360px, 100%);
  margin-top: 8px;
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  position: sticky;
  bottom: 0;
}
.composer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 4px 0;
}
.pill-wrap { position: relative; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
}
.pill svg { width: 14px; height: 14px; display: block; }
.pill:hover, .pill[aria-expanded="true"] { color: var(--paper); border-color: rgba(255,255,255,0.28); }
.pill.on {
  color: var(--void);
  background: linear-gradient(180deg, var(--warm-2), var(--warm));
  border-color: transparent;
}
.dropup {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 240px;
  max-width: min(360px, 80vw);
  max-height: 320px;
  overflow: auto;
  border-radius: 16px;
  padding: 8px;
  z-index: 20;
}
.dropup .drop-item, .account-drop .drop-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--paper);
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}
.dropup .drop-item:hover, .account-drop .drop-item:hover {
  background: rgba(255,255,255,0.08);
}
.dropup .drop-item.new { color: var(--warm-2); font-weight: 600; }
.dropup .drop-item.on { background: rgba(232, 176, 122, 0.16); }
.hist-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
}
.notes-pop { min-width: 280px; }
.notes-lead {
  margin: 4px 6px 10px;
  color: var(--muted);
  font-size: 0.78rem;
}
.note-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 4px;
}
.note-row input[type="text"] {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 7px 8px;
}
.note-row .tiny {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}
.note-add {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.note-add input {
  flex: 1;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px 10px;
}
.attach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 6px;
}
.attach-row:empty { display: none; }
.attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  font-size: 0.72rem;
  color: var(--muted);
}
.attach img, .attach video {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 8px;
}
.attach button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0 2px;
}
.composer-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.composer textarea {
  flex: 1;
  min-height: 48px;
  max-height: 160px;
  resize: none;
  background: transparent;
  border: 0;
  padding: 12px 12px;
  outline: none;
}
.composer-row > button#send {
  background: linear-gradient(180deg, var(--warm-2), var(--warm));
  color: var(--void);
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  min-height: 48px;
  font-weight: 650;
  cursor: pointer;
}
.composer-row > button#send:disabled { opacity: 0.55; cursor: wait; }

.ledger, .servers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding-bottom: 12px;
}
.entry, .server {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.entry .when, .server .meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.entry .body {
  white-space: pre-wrap;
  line-height: 1.5;
}
.entry .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag {
  font-family: var(--mono);
  font-size: 0.64rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
}

.server {
  display: flex;
  align-items: center;
  gap: 12px;
}
.server img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.25);
}
.server .nm { flex: 1; font-weight: 500; }
.chip {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--ice);
}
.chip.in {
  color: #102018;
  background: linear-gradient(180deg, #c8e8d8, #8fbfa8);
  border-color: transparent;
}

.empty {
  color: var(--muted);
  padding: 28px 8px;
  line-height: 1.5;
}
.warn { color: var(--warm); font-size: 0.9rem; }

.site-foot {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  flex-shrink: 0;
}
body.landing-page:not(.authed) .site-foot {
  margin: 10px auto 12px;
}
.site-foot a { color: var(--muted); }
.site-foot a:hover,
.site-foot a[aria-current="page"] { color: var(--paper); }
.site-foot .copy { margin-left: 6px; opacity: 0.7; }
.site-foot .dot { opacity: 0.45; }
body.authed .site-foot { margin-bottom: 36px; }

.legal-wrap {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 24px));
  margin: 22px auto 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal-hero {
  border-radius: 28px;
  padding: clamp(22px, 4vw, 40px);
}
.legal-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 10px 0 12px;
  line-height: 1.02;
}
.legal-meta {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.legal-toc {
  border-radius: 22px;
  padding: 16px 18px 8px;
}
.legal-toc p {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}
.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 18px;
}
.legal-toc li {
  break-inside: avoid;
  margin: 0 0 8px;
}
.legal-toc a {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}
.legal-toc a:hover { color: var(--paper); }
.legal-doc {
  border-radius: 28px;
  padding: clamp(20px, 4vw, 42px);
}
.legal-doc section + section {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--stroke);
}
.legal-doc h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 0.8rem;
}
.legal-doc h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  margin: 1.2rem 0 0.45rem;
  color: var(--warm-2);
}
.legal-doc p,
.legal-doc li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.legal-doc p { margin: 0 0 0.8rem; }
.legal-doc ul, .legal-doc ol { margin: 0.2rem 0 1rem; padding-left: 1.2rem; }
.legal-doc li { margin: 0 0 0.4rem; }
.legal-doc a { text-decoration: underline; text-underline-offset: 3px; }
.legal-doc strong { color: var(--paper); font-weight: 600; }
.legal-doc code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--ice);
}
.nav a.btn.on {
  color: var(--void);
  background: linear-gradient(180deg, var(--warm-2), var(--warm));
  border-color: transparent;
}
.need-user { display: none; }
body.authed .need-user { display: inline-flex; }
.need-op { display: none !important; }
body.authed.is-op .need-op { display: inline-flex !important; }

.feature-card {
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  margin-top: 10px;
}
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row .nm { flex: 1; }
.feature-row .blurb { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.toggle {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.08);
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}
.toggle:checked {
  background: linear-gradient(180deg, var(--warm-2), var(--warm));
  border-color: transparent;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform 0.15s;
}
.toggle:checked::after { transform: translateX(18px); }
.spam-box {
  width: 100%;
  min-height: 72px;
  margin-top: 8px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px 10px;
  resize: vertical;
}
.pane[data-pane="spotify"].on { min-height: 0; overflow: hidden; }
.dj-box { flex: 1; min-height: 0; display: flex; }
.dj-app {
  flex: 1;
  min-height: 560px;
  height: calc(100dvh - 220px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 260px;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}
.dj-left {
  grid-column: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}
.dj-left .dj-player,
.dj-left .dj-settings { flex: 0 0 auto; }
.dj-stream { grid-column: 2; }
.dj-rail { grid-column: 3; }
.dj-player, .dj-stream, .dj-rail {
  min-width: 0;
  min-height: 0;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(14, 16, 24, 0.5);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dj-player { overflow: hidden; }
.dj-art-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 168px;
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 176, 122, 0.45), transparent 46%),
    radial-gradient(circle at 80% 80%, rgba(143, 212, 222, 0.35), transparent 42%),
    #12141c;
}
.dj-art { width: 100%; height: 168px; object-fit: cover; display: block; }
.dj-art[hidden] { display: none; }
.dj-player-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.dj-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0;
}
.dj-by, .dj-clock, .dj-note { color: var(--muted); margin: 0; }
.dj-clock { font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.dj-progress { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.12); overflow: hidden; }
.dj-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--warm), var(--ice));
}
.dj-transport { display: flex; align-items: center; justify-content: space-between; gap: 4px; flex-wrap: wrap; }
.dj-transport button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.dj-transport button.play {
  width: 46px;
  height: 46px;
  border: 0;
  color: var(--void);
  background: linear-gradient(180deg, var(--warm-2), var(--warm));
}
.dj-transport button.like.on,
.dj-mini button.like.on,
.dj-row button.like.on {
  color: #e25b78;
  background: rgba(226, 91, 120, 0.18);
  border-color: rgba(226, 91, 120, 0.75);
}
.dj-transport button.down.on,
.dj-mini button.down.on,
.dj-row button.down.on {
  color: #e8b07a;
  background: rgba(232, 176, 122, 0.18);
  border-color: rgba(232, 176, 122, 0.8);
}
.dj-transport button:disabled { opacity: 0.45; cursor: default; }
.dj-transport svg { width: 18px; height: 18px; fill: currentColor; }
.dj-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 18px;
}
.dj-modal[hidden] { display: none; }
.dj-sheet {
  width: min(420px, 100%);
  max-height: min(88vh, 640px);
  overflow: auto;
  background: #161820;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dj-sheet h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
.dj-reason {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 4px 0;
  cursor: pointer;
}
.dj-reason input { margin-top: 4px; accent-color: #e8b07a; }
.dj-reason b { display: block; font-weight: 560; }
.dj-reason span span { display: block; color: var(--muted); font-size: 0.78rem; }
.dj-sheet .btn:disabled { opacity: 0.45; cursor: default; }
.dj-extra { display: flex; gap: 6px; }
.dj-extra button {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  color: var(--paper);
  border-radius: 999px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0.75rem;
}
.dj-extra button:disabled { opacity: 0.45; cursor: default; }
.dj-extra button.on { color: var(--warm-2); border-color: rgba(232, 176, 122, 0.7); }
.dj-settings {
  min-height: 0;
  margin: 0 10px 12px;
  padding: 4px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(14, 16, 24, 0.5);
}
.dj-settings h3 {
  margin: 8px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 520;
}
.dj-field { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 0.78rem; }
.dj-field input {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--paper);
  padding: 8px 10px;
}
.dj-angle {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dj-angle .nm { flex: 1; min-width: 0; }
.dj-angle .nm b { display: block; font-weight: 560; }
.dj-angle .nm span { display: block; color: var(--muted); font-size: 0.78rem; }
#djBlocks .dj-row { grid-template-columns: minmax(0, 1fr) auto; }
#djBlocks .dj-sub { white-space: normal; }
.dj-switches { display: flex; gap: 8px; }
.dj-switches .btn { flex: 1; }
.dj-range { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.85rem; }
.dj-range input {
  width: 58px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--paper);
  padding: 6px 8px;
}
.dj-tabs { display: none; gap: 6px; }
.dj-tabs button {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 6px;
  cursor: pointer;
  font-size: 0.78rem;
}
.dj-tabs button.on {
  color: var(--void);
  background: linear-gradient(180deg, var(--warm-2), var(--warm));
  border-color: transparent;
}
.dj-chat, .dj-queue, .dj-lists { flex: 1; min-height: 0; overflow: auto; }
.dj-chat { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.dj-say { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--stroke); }
.dj-say input {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: inherit;
  padding: 10px 12px;
}
.dj-bubble { max-width: 92%; border-radius: 16px; padding: 10px 12px; overflow-wrap: anywhere; }
.dj-title, .dj-by { overflow-wrap: anywhere; }
.dj-bubble.user { align-self: flex-end; background: rgba(143, 212, 222, 0.16); border-bottom-right-radius: 6px; }
.dj-bubble.dj { align-self: flex-start; background: rgba(255,255,255,0.06); border-bottom-left-radius: 6px; }
.dj-bubble.system { align-self: center; color: var(--muted); font-size: 0.78rem; background: transparent; padding: 2px 8px; }
.dj-kicker { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.dj-track, .dj-row {
  display: grid;
  gap: 8px;
  align-items: center;
}
.dj-track {
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.22);
}
.dj-track.now { border-color: rgba(143, 212, 222, 0.55); }
.dj-track img, .dj-row img, .dj-ph {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 176, 122, 0.4), transparent 50%),
    #12141c;
}
.dj-row { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.dj-row img, .dj-row .dj-ph { width: 42px; height: 42px; }
.dj-name { font-weight: 560; }
.dj-name, .dj-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dj-sub { color: var(--muted); font-size: 0.82rem; }
.dj-mini { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.dj-mini button, .dj-row > button.icon, .dj-inline button {
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  color: var(--paper);
  border-radius: 999px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.75rem;
}
.dj-mini button.icon, .dj-row > button.icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.dj-mini svg, .dj-row > button.icon svg { width: 16px; height: 16px; fill: currentColor; }
.dj-mini button.on, .dj-row button.on { color: var(--ice); border-color: rgba(143, 212, 222, 0.65); }
.dj-rail h3, .dj-lists h3 {
  margin: 0;
  padding: 12px 12px 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 520;
}
.dj-queue, .dj-lists { padding: 8px 12px 12px; }
.dj-inline { display: flex; gap: 6px; margin: 8px 0; }
.dj-inline input {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: inherit;
  padding: 8px 10px;
}
.dj-account { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.wallet-hero {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 0 0 8px;
}
.wallet-note { color: var(--muted); margin: 0; }
.rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.rate-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px;
  background: rgba(14, 16, 24, 0.45);
  backdrop-filter: blur(12px);
  min-width: 0;
}
.rate-card b { display: block; font-size: 1.05rem; font-weight: 560; }
.rate-card span, .rate-card small { display: block; color: var(--muted); }
.rate-card small { margin-top: 4px; }
.pack-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pack-row .btn { min-height: 40px; }
.wallet-ledger { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.wallet-ledger .line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--stroke);
  min-width: 0;
}
.wallet-ledger .line span { min-width: 0; }
.wallet-custom { max-width: 120px; flex: 0 1 120px; }
.phone-card { margin: 0; max-width: 640px; }
.phone-card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 560; }
.phone-input {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.03em;
  max-width: 220px;
}
.mcp-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.mcp-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
}
.mcp-row b { font-weight: 560; }
.mcp-row small {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  word-break: break-all;
}
.wallet-row, .admin-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.wallet-row input, .admin-row input {
  flex: 1;
  min-width: 160px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
}
.code-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.code-pill {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.account { position: relative; flex: 0 0 auto; }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  color: var(--paper);
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
}
.account-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.25);
}
.account-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  border-radius: 16px;
  padding: 8px;
  z-index: 40;
}
.account-drop a { color: var(--paper); text-decoration: none; }

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.dash-tabs button {
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
}
.dash-tabs button.on {
  color: var(--void);
  background: linear-gradient(180deg, var(--warm-2), var(--warm));
  border-color: transparent;
}
#channelGuild { margin: 0 0 12px; max-width: 320px; }
.dash-panel { display: none; flex: 1; min-height: 0; overflow: auto; }
.dash-panel.on { display: flex; flex-direction: column; gap: 10px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.stat {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
}
.stat span { color: var(--muted); font-size: 0.8rem; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filters input, .filters select, select {
  background: rgba(14, 16, 24, 0.45);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 0;
  color: var(--paper);
  color-scheme: dark;
}
.filters input { flex: 1; min-width: 160px; }
.glass-select { position: relative; min-width: 160px; flex: 0 1 220px; }
.glass-select-btn {
  position: relative;
  width: 100%;
  text-align: left;
  background: rgba(14, 16, 24, 0.45);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px 28px 8px 10px;
  color: var(--paper);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.glass-select-btn::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transform: translateY(-50%);
}
.glass-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 240px;
  overflow: auto;
  border-radius: 14px;
  padding: 6px;
  z-index: 40;
  background: rgba(14, 16, 24, 0.55);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
}
.glass-select-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--paper);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.glass-select-opt:hover, .glass-select-opt.on { background: rgba(255, 255, 255, 0.08); }
.chart {
  border-radius: 18px;
  padding: 14px 16px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
}
.chart h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.chart svg { width: 100%; height: 140px; display: block; }
.chart-empty { color: var(--muted); font-size: 0.82rem; padding: 24px 0; text-align: center; }
.audit-card {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
}
.audit-card .when { color: var(--muted); font-size: 0.72rem; font-family: var(--mono); margin-bottom: 4px; }
.audit-diff {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.audit-diff b { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 500; }
.audit-diff p { margin: 0; white-space: pre-wrap; line-height: 1.4; }
.audit-avatars { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.audit-avatars img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--stroke);
}
.controllers { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.controller {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  background: rgba(14, 16, 24, 0.35);
  font-size: 0.78rem;
}
.controller img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.controller span { color: var(--muted); }
.extra-block {
  margin: 0 0 8px;
  padding: 8px 0 4px 8px;
  border-left: 2px solid rgba(232, 176, 122, 0.45);
}
.role-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  background: rgba(14, 16, 24, 0.3);
}
.role-chip input { accent-color: var(--warm); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
}
.msg img.ava {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
}
.msg .meta { color: var(--muted); font-size: 0.72rem; font-family: var(--mono); margin-bottom: 4px; }
.msg .body { white-space: pre-wrap; line-height: 1.45; }
.payer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.payer-row label { color: var(--muted); font-size: 0.82rem; }
.payer-row select, .payer-row .glass-select {
  flex: 1;
  min-width: 160px;
}
.payer-row select {
  background: rgba(14, 16, 24, 0.45);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--paper);
  color-scheme: dark;
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  color: var(--void);
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-weight: 600;
  z-index: 50;
}
.toast.show { opacity: 1; }

@media (max-width: 900px) {
  .deck, .slide, .bands, .stage, .pane.on, .transcript, .ledger, .dash-panel.on,
  .portrait, .portrait-wrap, .portrait img, .band-shot, .band-shot img, .landing, .hero,
  .dj-chat, .dj-queue, .dj-lists {
    touch-action: pan-y;
  }
  .dj-app {
    height: auto;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .dj-tabs { display: flex; }
  .dj-box, .dj-app, .dj-player, .dj-stream, .dj-rail, .dj-chat, .dj-say, .dj-settings, .dj-left { max-width: 100%; min-width: 0; }
  .dj-left { display: contents; }
  .dj-player { flex-direction: column; overflow: hidden; order: 1; }
  .dj-tabs { order: 2; }
  .dj-settings { order: 3; }
  .dj-stream { order: 4; }
  .dj-rail { order: 5; }
  .pane[data-pane="spotify"] .pane-head { margin-bottom: 6px; }
  .pane[data-pane="spotify"] .pane-head p { display: none; }
  .pane[data-pane="spotify"] .pane-head h2 { font-size: 1.35rem; }
  .dj-art-wrap { width: 100%; min-height: 0; overflow: hidden; }
  .dj-art { width: 100%; height: 42vw; max-height: 220px; min-height: 140px; object-fit: cover; }
  .dj-player-body { flex: 0 0 auto; min-width: 0; gap: 4px; padding: 8px 8px 8px 10px; }
  .dj-settings { display: none; border: 0; border-radius: 0; background: transparent; padding: 8px 2px 12px; }
  .dj-account { min-width: 0; }
  .dj-account .dj-sub { flex: 1; min-width: 0; }
  .dj-switches { min-width: 0; }
  .dj-switches .btn { min-width: 0; padding: 6px 8px; }
  .dj-tabs { min-width: 0; }
  .dj-tabs button { min-width: 0; padding: 8px 6px; }
  .dj-bubble { max-width: 100%; }
  .dj-title { font-size: 1.05rem; }
  .dj-transport button { width: 36px; height: 36px; }
  .dj-transport button.play { width: 44px; height: 44px; }
  .dj-app[data-tab="chat"] .dj-rail,
  .dj-app[data-tab="settings"] .dj-rail,
  .dj-app[data-tab="settings"] .dj-stream { display: none; }
  .dj-app[data-tab="settings"] .dj-settings { display: flex; flex: 1; min-height: 0; }
  .dj-app[data-tab="queue"] .dj-stream,
  .dj-app[data-tab="playlists"] .dj-stream { display: none; }
  .dj-app[data-tab="queue"] .dj-lists,
  .dj-app[data-tab="queue"] #djListsHead { display: none; }
  .dj-app[data-tab="playlists"] .dj-queue,
  .dj-app[data-tab="playlists"] #djQueueHead { display: none; }
  .dj-stream, .dj-rail { flex: 1; }
  .portrait img, .band-shot img, .chat-ava {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
  }
  .nav, .dash-tabs, .composer-pills {
    touch-action: pan-x pan-y;
  }
  body.landing-page:not(.authed) { height: 100svh; }
  .landing, .band { grid-template-columns: 1fr; min-height: auto; }
  .landing { padding: 0 0 12px; height: auto; overflow: visible; gap: 12px; }
  #slide-home { overflow-y: auto; }
  .portrait-wrap { order: -1; min-height: 0; }
  .portrait {
    min-height: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 36vh;
  }
  .hero { padding: 16px 16px 14px; border-radius: 24px; }
  h1 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    line-height: 1.02;
    margin: 8px 0 10px;
  }
  .lede { font-size: 0.95rem; line-height: 1.45; }
  .cta { margin-top: 14px; flex-direction: column; }
  .cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
  }
  .legal-line { margin-top: 10px; font-size: 0.78rem; }
  .band.alt .band-shot, .band.alt .band-copy { order: 0; }
  .bands { padding: 0 0 20px; gap: 14px; }
  .band { gap: 12px; min-height: 0; }
  .band-shot { border-radius: 24px; }
  .band-shot img {
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 46vh;
    width: 100%;
    object-fit: cover;
  }
  .band-copy { padding: 18px 16px; border-radius: 24px; }
  .band-copy h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .quote { font-size: 1.12rem; margin-top: 14px; }
  .deck-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: calc(100% - 12px);
    margin: 10px auto 0;
  }
  .deck { grid-column: 1; }
  .deck-shell > .caret.prev,
  .deck-shell > .caret.next {
    position: absolute;
    top: 28%;
    transform: translateY(-50%);
    grid-column: 1;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
  .deck-shell > .caret.prev { left: 6px; }
  .deck-shell > .caret.next { right: 6px; }
  .two-col { grid-template-columns: 1fr; }
  .top {
    top: max(8px, env(safe-area-inset-top));
    width: min(1120px, calc(100% - 16px));
    gap: 8px;
    padding: 7px 8px 7px 10px;
  }
  .brand b { font-size: 1.05rem; }
  .brand img { width: 30px; height: 30px; }
  .hdr-login, .top > .btn { white-space: nowrap; padding: 8px 12px; }
  .hdr-login, .account { margin-left: auto; }
  .hdr-invite { display: none; }
  .wide-only { display: none; }
  .who { display: none; }
  .app {
    width: min(1040px, calc(100% - 16px));
    margin: 10px auto 12px;
  }
  .stage {
    min-height: 0;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
    border-radius: 22px;
  }
  body.authed {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }
  body.authed .app {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 8px;
  }
  body.authed .stage { flex: 1; min-height: 0; }
  body.authed .top { flex-wrap: wrap; align-items: center; }
  body.authed .account { margin-left: auto; }
  body.authed .nav {
    width: 100%;
    order: 3;
    margin: 2px 0 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
  }
  body.authed .nav::-webkit-scrollbar { display: none; }
  body.authed .nav button.need-user {
    padding: 8px 12px;
    flex: 0 0 auto;
    min-height: 36px;
  }
  body.authed .nav { padding-right: 8px; }
  .transcript { min-height: 0; padding: 4px 2px 12px; gap: 12px; flex: 1 1 auto; }
  .pane[data-pane="chat"].on { flex: 1; min-height: 0; }
  .composer {
    padding: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    margin-top: auto;
    margin-bottom: var(--kb, 0px);
    border-radius: 18px;
  }
  .composer-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .composer-pills::-webkit-scrollbar { display: none; }
  .dropup, .notes-pop {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom) + var(--kb, 0px));
    max-width: none;
    min-width: 0;
    width: auto;
    max-height: min(50dvh, 360px);
  }
  .dash-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .dash-tabs::-webkit-scrollbar { display: none; }
  .dash-tabs button { flex: 0 0 auto; min-height: 36px; }
  .pane-head h2 { font-size: 1.45rem; }
  .pane-head p { font-size: 0.82rem; }
  .filters { align-items: stretch; }
  .filters input, .glass-select { flex: 1 1 100%; min-width: 0; width: 100%; }
  .wallet-hero { font-size: 1.8rem; }
  .site-foot {
    margin: 0 auto max(10px, env(safe-area-inset-bottom));
    width: min(1120px, calc(100% - 16px));
    font-size: 0.75rem;
  }
  .toast { bottom: calc(18px + env(safe-area-inset-bottom) + var(--kb, 0px)); }
  input, textarea, select { font-size: 16px; }
  .bubble .txt.md { overflow-x: auto; }
  .legal-body .nav { display: none; }
}

@media (max-width: 640px) {
  .pill-lbl { display: none; }
  .pill {
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
  }
  .bubble { max-width: 100%; }
  .chat-col { max-width: calc(100% - 40px); }
  .chat-ava { width: 30px; height: 30px; flex-basis: 30px; margin-top: 18px; }
  .legal-toc ol { columns: 1; }
  .legal-hero h1 { font-size: 1.7rem; }
  .account-btn { padding: 4px; }
  .composer textarea { min-height: 44px; padding: 10px 8px; }
  .composer-row > button#send { min-height: 44px; padding: 0 14px; }
}
