:root {
  color-scheme: dark;
  --ink: #0e0e0f;
  --charcoal: #161719;
  --panel: #202124;
  --status: #25262a;
  --border: #303136;
  --silver: #c7c5be;
  --steel: #7b7a76;
  --mist: #f0eee9;
  --paper: #f7f3ea;
  --locket: #bfa46a;
  --champagne: #d6c08a;
  --alert: #9f4b4f;
  --good: #8f9a87;
  --shadow-modal: 0 16px 50px rgba(16, 17, 20, 0.28);
  --radius-control: 6px;
  --radius-panel: 8px;
  --radius-sheet: 10px;
  --header-height: 72px;
  --bottom-height: 72px;
  --font-ui: Inter, "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 12px),
    radial-gradient(circle at 12% 8%, rgba(191, 164, 106, 0.08), transparent 28rem),
    linear-gradient(180deg, #101011 0%, var(--ink) 46%, #0a0a0b 100%);
  background-size: 12px 12px, auto, auto;
  color: var(--mist);
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input[type="file"]::file-selector-button {
  min-height: 44px;
}

button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background:
    radial-gradient(circle at 26% 12%, rgba(240, 238, 233, 0.085), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012) 34%, rgba(0,0,0,0.16) 100%),
    linear-gradient(180deg, #2b2c30, var(--status));
  color: var(--mist);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(240, 238, 233, 0.065),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(0, 0, 0, 0.38);
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: calc(var(--radius-control) - 1px);
  background:
    linear-gradient(115deg, rgba(255,255,255,0.14), transparent 28%),
    linear-gradient(260deg, transparent 0 58%, rgba(214, 192, 138, 0.045) 68%, transparent 78%);
  opacity: 0.72;
  pointer-events: none;
}

button > .glyph,
button > span,
button > strong {
  position: relative;
  z-index: 1;
}

button:hover {
  border-color: rgba(191, 164, 106, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(240, 238, 233, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.48),
    0 8px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(240, 238, 233, 0.04);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--locket);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.app {
  min-height: 100vh;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: var(--header-height) 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 540px) minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  height: var(--header-height);
  padding: 12px clamp(14px, 3vw, 28px);
  border-bottom: 1px solid rgba(48, 49, 54, 0.82);
  background:
    linear-gradient(180deg, rgba(32, 33, 36, 0.72), rgba(14, 14, 15, 0.94)),
    rgba(14, 14, 15, 0.94);
  backdrop-filter: blur(18px);
}

.glyph {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(191, 164, 106, 0.54);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(240, 238, 233, 0.14), transparent 32%),
    #101011;
  box-shadow:
    inset 0 0 0 1px rgba(214, 192, 138, 0.08),
    0 0 0 3px rgba(191, 164, 106, 0.08);
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  margin: 0;
  color: var(--mist);
  font-size: 18px;
  font-weight: 720;
  line-height: 1.05;
}

.brand-sub {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.2;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005)),
    var(--charcoal);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.segmented button {
  min-height: 38px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--silver);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.segmented button::before {
  opacity: 0;
}

.segmented button[aria-selected="true"] {
  background:
    radial-gradient(circle at 28% 14%, rgba(240, 238, 233, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(214, 192, 138, 0.23), rgba(191, 164, 106, 0.1) 52%, rgba(0,0,0,0.12));
  color: var(--champagne);
  box-shadow:
    inset 0 0 0 1px rgba(191, 164, 106, 0.42),
    inset 0 1px 0 rgba(240, 238, 233, 0.08),
    0 1px 0 rgba(0, 0, 0, 0.36);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(191, 164, 106, 0.35);
  border-radius: var(--radius-control);
  color: var(--champagne);
  background: rgba(191, 164, 106, 0.08);
  font-size: 12px;
  white-space: nowrap;
}

.trust-pill.alert {
  border-color: rgba(159, 75, 79, 0.52);
  color: #d9aaa9;
  background: rgba(159, 75, 79, 0.12);
}

.access-dot,
.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--locket);
}

.icon-btn {
  width: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--silver);
  border-color: rgba(199, 197, 190, 0.14);
}

.icon-btn:hover,
.compact-btn:hover {
  color: var(--champagne);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 7, 8, 0.7);
  backdrop-filter: blur(10px);
}

.limits-sheet {
  width: min(560px, 100%);
  max-height: min(680px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(191, 164, 106, 0.42);
  border-radius: var(--radius-sheet);
  background:
    radial-gradient(circle at 22% 0%, rgba(214, 192, 138, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(32, 33, 36, 0.98), rgba(17, 18, 20, 0.98));
  box-shadow: var(--shadow-modal);
}

.limit-list {
  display: grid;
  gap: 10px;
}

.limit-list p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(199, 197, 190, 0.13);
  border-radius: var(--radius-control);
  background: rgba(17, 18, 20, 0.62);
  color: var(--silver);
  font-size: 13px;
  line-height: 1.45;
}

.limit-list .glyph {
  margin-top: 1px;
  color: var(--champagne);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(280px, 380px);
  gap: 18px;
  width: min(1460px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
}

.panel {
  min-width: 0;
  border: 1px solid rgba(48, 49, 54, 0.92);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(145deg, rgba(240, 238, 233, 0.035), transparent 34%),
    linear-gradient(180deg, rgba(32, 33, 36, 0.8), rgba(22, 23, 25, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(240, 238, 233, 0.04),
    0 1px 0 rgba(0, 0, 0, 0.45);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  margin: 0;
  color: var(--mist);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-title .glyph {
  color: var(--champagne);
}

.panel-subtitle {
  margin: 2px 0 0;
  color: var(--steel);
  font-size: 12px;
}

.panel-body {
  padding: 14px;
}

.sidebar,
.inspector {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 36px);
  overflow: auto;
}

.search-wrap {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.search-input,
.field,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent),
    #111214;
  color: var(--mist);
}

.input-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #111214;
}

.input-shell .glyph {
  color: var(--champagne);
}

.input-shell .search-input {
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.search-input,
.field,
.select {
  min-height: 44px;
  padding: 0 12px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

.textarea.lyric {
  min-height: 170px;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}

.transcript-interim {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(191, 164, 106, 0.32);
  border-radius: var(--radius-control);
  background: rgba(191, 164, 106, 0.08);
  color: var(--champagne);
  font-size: 13px;
  line-height: 1.45;
}

.transcript-interim.is-hidden {
  display: none;
}

.filter-row,
.chip-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background:
    radial-gradient(circle at 24% 12%, rgba(240, 238, 233, 0.06), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.04), transparent 48%, rgba(0,0,0,0.12)),
    var(--status);
  color: var(--silver);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(240, 238, 233, 0.04),
    inset 0 -1px 0 rgba(0,0,0,0.28);
}

.chip .glyph {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
}

.chip.gold {
  border-color: rgba(191, 164, 106, 0.48);
  background:
    radial-gradient(circle at 25% 10%, rgba(240, 238, 233, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(191, 164, 106, 0.18), rgba(191, 164, 106, 0.08) 56%, rgba(0,0,0,0.08));
  color: var(--champagne);
}

.chip.good {
  border-color: rgba(143, 154, 135, 0.44);
  color: #c8d2bf;
}

.chip.alert {
  border-color: rgba(159, 75, 79, 0.52);
  color: #d9aaa9;
}

.chip.muted {
  color: var(--steel);
}

.chip.active,
.filter-row button.active {
  border-color: rgba(191, 164, 106, 0.6);
  background:
    radial-gradient(circle at 25% 10%, rgba(240, 238, 233, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(191, 164, 106, 0.2), rgba(191, 164, 106, 0.1) 58%, rgba(0,0,0,0.12));
  color: var(--champagne);
}

.song-list,
.stack {
  display: grid;
  gap: 8px;
}

.song-list {
  padding: 10px;
}

.song-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 96px;
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(48, 49, 54, 0.85);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent),
    #151618;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}

.song-row.active {
  border-color: rgba(191, 164, 106, 0.62);
  background: linear-gradient(180deg, rgba(191, 164, 106, 0.08), rgba(32, 33, 36, 0.42));
}

.song-title {
  margin: 0;
  color: var(--mist);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.22;
}

.song-row-main {
  min-width: 0;
}

.song-meta {
  margin: 6px 0 0;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.35;
}

.song-row .chip-row {
  margin-top: 10px;
}

.row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--steel);
  font-size: 12px;
}

.row-lock {
  color: var(--locket);
}

.song-object-tile,
.icon-medallion {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 197, 190, 0.18);
  border-radius: 12px;
  color: var(--champagne);
  background:
    radial-gradient(circle at 35% 18%, rgba(240, 238, 233, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(191, 164, 106, 0.16), rgba(32, 33, 36, 0.68)),
    #151618;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 8px 20px rgba(0,0,0,0.22);
}

.song-object-tile .glyph,
.icon-medallion .glyph {
  width: 30px;
  height: 30px;
  stroke-width: 1.55;
}

.song-object-tile.active {
  border-color: rgba(191, 164, 106, 0.48);
  background:
    radial-gradient(circle at 35% 18%, rgba(214, 192, 138, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(191, 164, 106, 0.25), rgba(32, 33, 36, 0.78));
}

.song-object-tile.small {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.song-object-tile.small .glyph,
.song-object-tile.mini .glyph {
  width: 23px;
  height: 23px;
}

.song-object-tile.mini {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.metric-card .panel-body {
  display: grid;
  gap: 8px;
}

.metric-card .icon-medallion {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.metric-card .icon-medallion .glyph {
  width: 22px;
  height: 22px;
}

.workspace-main {
  min-width: 0;
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(48, 49, 54, 0.92);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(115deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 12px),
    radial-gradient(circle at 95% 18%, rgba(191, 164, 106, 0.14), transparent 22rem),
    linear-gradient(145deg, rgba(191, 164, 106, 0.1), transparent 34%),
    rgba(22, 23, 25, 0.9);
  background-size: 12px 12px, auto, auto, auto;
}

.hero-strip h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.hero-strip p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--silver);
  line-height: 1.45;
}

.vault-command {
  align-items: stretch;
}

.vault-command .primary-btn {
  min-width: 120px;
  align-self: center;
}

.vault-command-chips {
  margin-top: 12px;
}

.primary-btn {
  border-color: rgba(191, 164, 106, 0.7);
  background:
    radial-gradient(circle at 26% 10%, rgba(255,255,255,0.42), transparent 31%),
    linear-gradient(145deg, #ecd48a 0%, #cfb36d 34%, #b99d5b 58%, #94763c 100%);
  color: #111214;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    inset 0 -1px 0 rgba(82, 61, 27, 0.38),
    0 8px 20px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(191, 164, 106, 0.1);
}

.primary-btn::before {
  background:
    linear-gradient(112deg, rgba(255,255,255,0.52), transparent 30%),
    linear-gradient(260deg, transparent 0 52%, rgba(255,255,255,0.14) 66%, transparent 78%);
  opacity: 0.7;
}

.primary-btn .glyph {
  color: #111214;
}

.secondary-btn {
  background: transparent;
}

.danger-btn {
  border-color: rgba(159, 75, 79, 0.5);
  color: #e0b4b2;
  background:
    radial-gradient(circle at 26% 12%, rgba(240, 238, 233, 0.06), transparent 34%),
    linear-gradient(145deg, rgba(159, 75, 79, 0.2), rgba(37,38,42,0.95) 56%, rgba(0,0,0,0.12));
}

.compact-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.start-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 13px;
  text-align: left;
  background:
    radial-gradient(circle at 30% 0%, rgba(214, 192, 138, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.045), transparent 48%, rgba(0,0,0,0.15)),
    #151618;
  box-shadow:
    inset 0 1px 0 rgba(240, 238, 233, 0.055),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38),
    0 8px 20px rgba(0, 0, 0, 0.14);
}

.start-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 164, 106, 0.28);
  border-radius: 9px;
  color: var(--champagne);
  background: rgba(191, 164, 106, 0.08);
}

.start-icon .glyph {
  width: 22px;
  height: 22px;
}

.start-card strong {
  color: var(--mist);
  font-size: 15px;
}

.start-card span {
  color: var(--steel);
  font-size: 12px;
  line-height: 1.35;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.editor-card {
  padding: 0;
  overflow: hidden;
}

.editor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.editor-boundary {
  margin: 10px 0 0;
}

.song-title-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--mist);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 780;
  line-height: 1.05;
}

.song-title-input:focus-visible {
  outline-offset: 5px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.field-label {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 12px;
}

.editor-body {
  padding: 16px;
}

.section-editor {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.section-editor h3,
.mini-title {
  margin: 0;
  color: var(--silver);
  font-size: 13px;
  font-weight: 740;
}

.section-editor h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--champagne);
}

.drag-grip {
  color: var(--steel);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.attachment-strip {
  display: grid;
  gap: 8px;
}

.attachment-row,
.related-row,
.reminder-row,
.snapshot-row,
.friend-row,
.activity-row {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), transparent),
    #151618;
}

.attachment-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.audio-console {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(191, 164, 106, 0.26);
  border-radius: var(--radius-panel);
  background: rgba(17, 18, 20, 0.72);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.support-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: rgba(17, 18, 20, 0.62);
  color: var(--silver);
  font-size: 12px;
  line-height: 1.25;
}

.support-pill.good {
  border-color: rgba(143, 154, 135, 0.42);
  color: #c8d2bf;
}

.support-pill.muted {
  color: var(--steel);
}

.support-pill .glyph {
  width: 15px;
  height: 15px;
}

.play-orb {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 164, 106, 0.55);
  border-radius: 50%;
  color: var(--champagne);
}

.console-time {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.related-panel {
  border-color: rgba(191, 164, 106, 0.32);
}

.related-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.related-main {
  display: grid;
  gap: 8px;
}

.related-score {
  color: var(--champagne);
  font-family: var(--font-mono);
  font-size: 11px;
}

.empty-state {
  min-height: 142px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px dashed rgba(199, 197, 190, 0.24);
  border-radius: var(--radius-panel);
  color: var(--steel);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.024), transparent),
    rgba(32, 33, 36, 0.42);
}

.small-copy {
  color: var(--steel);
  font-size: 12px;
  line-height: 1.45;
}

.small-copy.alert-copy {
  color: #d9aaa9;
}

.small-copy.good-copy {
  color: #c8d2bf;
}

.auth-panel {
  max-width: 620px;
}

.invite-link-field {
  min-width: min(100%, 360px);
  font-size: 12px;
}

.divider {
  height: 1px;
  margin: 14px 0;
  background: var(--border);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(191, 164, 106, 0.42);
  border-radius: var(--radius-panel);
  background: #171819;
  color: var(--champagne);
  box-shadow: var(--shadow-modal);
}

.song-summary {
  display: grid;
  gap: 10px;
}

.version-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.snapshot-row.sealed {
  border-color: rgba(191, 164, 106, 0.5);
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 192, 138, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,0.026), transparent),
    #151618;
}

.friend-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.friend-row > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.friend-row .select {
  min-width: 120px;
}

.friend-row .compact-btn,
.friend-row .chip {
  justify-self: end;
}

.avatar-chip {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(199, 197, 190, 0.18);
  border-radius: 50%;
  color: var(--champagne);
  background: rgba(191, 164, 106, 0.1);
  font-size: 11px;
  font-weight: 760;
}

.inline-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bottom-nav {
  display: none;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.print-sheet {
  display: none;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .inspector {
    display: none;
  }

  .topbar {
    grid-template-columns: minmax(160px, 1fr) minmax(260px, 440px) auto;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  body {
    background: var(--ink);
  }

  .shell {
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
    grid-template-rows: var(--header-height) minmax(0, 1fr) var(--bottom-height);
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 12px;
  }

  .topbar .segmented {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions .icon-btn {
    width: 38px;
    min-height: 38px;
  }

  .trust-pill {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark img {
    width: 30px;
    height: 30px;
  }

  .brand-sub {
    display: none;
  }

  .workspace {
    width: 100%;
    display: block;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
  }

  .sidebar,
  .inspector {
    display: none;
  }

  .workspace-main {
    padding: 12px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
    padding: 14px;
  }

  .hero-strip h2 {
    font-size: 24px;
  }

  .vault-command {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 12px;
  }

  .vault-command h2 {
    font-size: 22px;
  }

  .vault-command p {
    font-size: 13px;
  }

  .vault-command-chips,
  .vault-metrics {
    display: none;
  }

  .vault-command .primary-btn {
    min-width: 108px;
    min-height: 44px;
  }

  .panel {
    border-radius: var(--radius-panel);
  }

  .grid-2,
  .grid-3,
  .start-grid,
  .support-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .editor-head {
    grid-template-columns: 1fr;
  }

  .song-title-input {
    font-size: 28px;
  }

  .textarea.lyric {
    min-height: 220px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .mobile-only > .panel-header .compact-btn {
    display: none;
  }

  .bottom-nav {
    position: relative;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    min-height: calc(var(--bottom-height) - 8px);
    margin: 0 10px max(8px, env(safe-area-inset-bottom));
    padding: 7px;
    border: 1px solid rgba(199, 197, 190, 0.14);
    border-radius: 18px 18px 16px 16px;
    background:
      radial-gradient(circle at 18% 0%, rgba(240, 238, 233, 0.08), transparent 32%),
      linear-gradient(180deg, rgba(38, 39, 43, 0.94), rgba(14, 14, 15, 0.96) 68%, rgba(0, 0, 0, 0.92));
    box-shadow:
      inset 0 1px 0 rgba(240, 238, 233, 0.08),
      inset 0 -1px 0 rgba(0, 0, 0, 0.5),
      0 -10px 28px rgba(0, 0, 0, 0.28),
      0 8px 26px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(22px);
  }

  .bottom-nav::before {
    content: "";
    position: absolute;
    inset: 1px 9px auto;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(240, 238, 233, 0.28), rgba(191, 164, 106, 0.2), transparent);
    pointer-events: none;
  }

  .bottom-nav button {
    min-height: 54px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--steel);
    font-size: 11px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    padding: 5px 2px;
    box-shadow: none;
  }

  .bottom-nav button::before {
    opacity: 0;
  }

  .bottom-nav button[aria-selected="true"] {
    color: var(--champagne);
    border-color: rgba(191, 164, 106, 0.45);
    background:
      radial-gradient(circle at 28% 10%, rgba(240, 238, 233, 0.18), transparent 34%),
      linear-gradient(145deg, rgba(191, 164, 106, 0.18), rgba(191, 164, 106, 0.08) 54%, rgba(0, 0, 0, 0.16));
    box-shadow:
      inset 0 1px 0 rgba(240, 238, 233, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.38),
      0 6px 14px rgba(0, 0, 0, 0.22);
  }

  .bottom-nav .glyph {
    width: 21px;
    height: 21px;
  }

  .song-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .song-row .row-side {
    grid-column: 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .song-object-tile {
    width: 52px;
    height: 52px;
  }

  .song-object-tile .glyph {
    width: 27px;
    height: 27px;
  }

  .attachment-row,
  .related-row,
  .reminder-row,
  .friend-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .attachment-row audio,
  .friend-row .select {
    grid-column: 1 / -1;
    width: 100%;
  }

  .toast {
    right: 12px;
    bottom: calc(var(--bottom-height) + 12px);
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .shell,
  .toast {
    display: none !important;
  }

  .print-sheet {
    display: block;
    color: #111;
    font-family: Georgia, serif;
    padding: 32px;
  }
}
