:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #18212f;
  --muted: #5a687c;
  --border: #d9e2f0;
  --primary: #3366ff;
  --primary-dark: #244fd0;
  --accent: #8ea9ff;
  --success: #188b5a;
  --danger: #c23d4b;
  --shadow: 0 18px 45px rgba(36, 55, 89, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(142, 169, 255, 0.22), transparent 32%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

body {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 226, 240, 0.7);
  background: rgba(244, 247, 251, 0.82);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link,
.text-link {
  color: var(--primary-dark);
  font-weight: 600;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.page-stack {
  display: grid;
  gap: 28px;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.invite-status-banner {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.invite-status-banner--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.invite-status-banner--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.invite-status-banner--warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}

.invite-status-banner--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.hero {
  padding: 36px;
}

.hero-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
}

.hero-copy h1,
.page-heading h1,
.profile-header-card h1 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.hero-panel p,
.feature-card p,
.form-card p,
.status-card p,
.page-heading p,
.surface-card p,
.helper-text,
small {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.9), rgba(255, 255, 255, 0.95));
  border: 1px solid var(--border);
}

.hero-panel h3,
.feature-card h3,
.surface-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.check-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.centered {
  justify-content: center;
}

.feature-grid,
.stats-grid,
.profile-grid,
.content-grid {
  display: grid;
  gap: 20px;
}

.feature-grid,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid,
.profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.stat-card {
  padding: 24px;
}

.stat-card {
  display: grid;
  gap: 8px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.stat-card strong {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dashboard-stack {
  gap: 10px;
}

.dashboard-heading {
  margin-bottom: 0;
}

.dashboard-title {
  margin: 4px 0 0;
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  line-height: 1.12;
}

.form-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
}

.form-card,
.status-card {
  width: min(100%, 560px);
  padding: 32px;
}

.status-card {
  text-align: center;
}

.status-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 1.8rem;
  font-weight: 800;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 700;
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fbfcff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(51, 102, 255, 0.14);
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spaced {
  justify-content: space-between;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(51, 102, 255, 0.24);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

.full-width {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.profile-menu {
  position: relative;
  z-index: 20;
}

.profile-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(36, 55, 89, 0.12);
}

.profile-menu-trigger:hover {
  background: var(--surface-soft);
}

.profile-menu-trigger .profile-avatar {
  width: 38px;
  height: 38px;
}

.profile-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 180px;
  padding: 8px;
  display: grid;
  gap: 4px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.profile-menu-item {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.profile-menu-item:hover {
  background: var(--surface-soft);
}

.profile-menu-item.danger {
  color: var(--danger);
}

.profile-menu-item.danger:hover {
  background: rgba(194, 61, 75, 0.1);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-weight: 800;
}

.profile-avatar.large {
  width: 84px;
  height: 84px;
  font-size: 2rem;
}

.profile-header-card {
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.studio-shell,
.studio-shell-header,
.studio-shell-intro,
.studio-shell-grid,
.studio-status-card,
.studio-status-meta,
.studio-live-shell,
.studio-live-toolbar,
.studio-live-actions,
.studio-live-analyzer-panel,
.studio-live-analyzer-meta,
.studio-room-grid,
.studio-recording-hud,
.studio-recording-toolbar,
.studio-recording-actions,
.studio-recording-utility-bar,
.studio-track-list,
.studio-track-row,
.studio-track-row-main,
.studio-track-row-leading,
.studio-track-row-copy,
.studio-track-waveform-preview,
.studio-recording-track-shell,
.studio-recording-track-header,
.studio-recording-track,
.studio-recording-track-content {
  min-width: 0;
  max-width: 100%;
}

.studio-shell {
  width: 100%;
  overflow-x: hidden;
}

.studio-shell-header {
  min-width: 0;
}

.studio-status-card {
  min-width: 0;
}

.studio-shell p,
.studio-shell strong,
.studio-live-stat,
.studio-status-meta span,
.studio-recording-meta span,
.studio-track-row-copy strong,
.studio-track-row-copy span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.studio-shell-intro,
.studio-shell-grid,
.studio-status-meta {
  min-width: 0;
}

.studio-live-shell {
  position: relative;
  margin-top: 1rem;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.96), rgba(4, 7, 15, 0.96));
  box-shadow: 0 22px 52px rgba(2, 6, 23, 0.28);
  color: #ffffff;
  overflow: hidden;
}

.studio-live-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.studio-live-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-live-eyebrow {
  margin: 0 0 6px;
  color: rgba(191, 219, 254, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-live-title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
}

.studio-live-stat {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.84rem;
  font-weight: 700;
}

.studio-live-analyzer-panel {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.studio-live-analyzer-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.studio-live-analyzer-label {
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.studio-live-analyzer-copy {
  color: rgba(191, 219, 254, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
}

.studio-live-analyzer-canvas {
  display: block;
  width: 100%;
  height: 152px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(2, 6, 23, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.studio-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  min-height: 260px;
}

.studio-room-card {
  position: relative;
  min-width: 0;
  min-height: 220px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.studio-room-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.studio-room-card-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: #f8fafc;
}

.studio-room-card-role {
  font-size: 0.76rem;
  color: rgba(191, 219, 254, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.studio-room-video {
  width: 100%;
  height: 100%;
  min-height: 180px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #020617;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.studio-room-placeholder {
  width: 100%;
  min-height: 180px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.45), rgba(15, 23, 42, 0.95));
  color: white;
  font-size: 3rem;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.studio-video-pane {
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.studio-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-video-label {
  font-size: 0.98rem;
  font-weight: 800;
}

.studio-video-role {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.studio-video {
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #020617;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.studio-live-shell:fullscreen,
.studio-live-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  padding: 24px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #020617;
}

.studio-live-shell:fullscreen .studio-live-toolbar .btn-secondary,
.studio-live-shell:-webkit-full-screen .studio-live-toolbar .btn-secondary {
  display: none;
}

.studio-exit-fullscreen {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.72);
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.studio-exit-fullscreen:hover {
  background: rgba(15, 23, 42, 0.92);
}

.studio-exit-fullscreen.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.studio-live-shell:fullscreen .studio-video-split,
.studio-live-shell:-webkit-full-screen .studio-video-split {
  flex: 1;
  min-height: 0;
}

.studio-live-shell:fullscreen .studio-video-pane,
.studio-live-shell:-webkit-full-screen .studio-video-pane {
  min-height: 0;
}

.studio-live-shell:fullscreen .studio-video,
.studio-live-shell:-webkit-full-screen .studio-video {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.studio-live-shell:fullscreen .studio-room-grid,
.studio-live-shell:-webkit-full-screen .studio-room-grid {
  flex: 1;
  min-height: 0;
}

.studio-live-shell:fullscreen .studio-live-analyzer-panel,
.studio-live-shell:-webkit-full-screen .studio-live-analyzer-panel {
  margin-bottom: 20px;
}

.studio-live-shell:fullscreen .studio-live-analyzer-canvas,
.studio-live-shell:-webkit-full-screen .studio-live-analyzer-canvas {
  height: 190px;
}

.studio-recording-hud {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(10px);
}

.studio-recording-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.studio-recording-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-transport-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.studio-transport-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(191, 219, 254, 0.48);
}

.studio-transport-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.studio-transport-button.is-active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.72);
  color: #dbeafe;
}

.studio-transport-button--record {
  color: #fee2e2;
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(248, 113, 113, 0.5);
}

.studio-transport-button--record.is-active {
  background: rgba(220, 38, 38, 0.3);
  border-color: rgba(252, 165, 165, 0.84);
}

.studio-transport-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.studio-recording-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.9rem;
  font-weight: 700;
}

.studio-recording-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.studio-metronome-settings {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.studio-metronome-settings-label {
  color: rgba(226, 232, 240, 0.88);
  font-weight: 700;
  font-size: 0.88rem;
}

.studio-metronome-input {
  width: 96px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.studio-metronome-input:focus {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.studio-track-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.studio-track-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.9fr);
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.studio-track-row:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 219, 254, 0.42);
  background: rgba(30, 41, 59, 0.72);
}

.studio-track-row:focus-visible {
  outline: none;
  border-color: rgba(96, 165, 250, 0.86);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.studio-track-row.is-selected {
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(30, 64, 175, 0.18);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.studio-track-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.studio-track-row-leading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.studio-track-selected-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: #dbeafe;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.studio-track-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.studio-track-row-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.studio-track-row-copy strong {
  color: #f8fafc;
  font-size: 0.95rem;
}

.studio-track-row-copy span {
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.84rem;
}

.studio-track-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.studio-track-icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(191, 219, 254, 0.42);
}

.studio-track-icon-button.is-active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.76);
  color: #dbeafe;
}

.studio-track-icon-button.is-muted {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.54);
  color: #fee2e2;
}

.studio-track-icon-button--danger {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.studio-track-icon-button--record {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
}

.studio-track-waveform-preview {
  min-width: 180px;
  display: flex;
  align-items: center;
}

.studio-track-waveform-bars {
  position: relative;
  height: 58px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(51, 102, 255, 0.18), rgba(15, 23, 42, 0.42));
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.studio-track-waveform-bars::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  background: rgba(191, 219, 254, 0.18);
  transform: translateY(-0.5px);
}

.studio-track-waveform-bar {
  flex: 1 1 0;
  align-self: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(224, 231, 255, 0.98), rgba(96, 165, 250, 0.92));
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.18);
  min-height: 6px;
}

.studio-track-waveform-empty {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.36);
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.84rem;
  font-weight: 600;
}

.studio-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.studio-modal {
  width: min(100%, 460px);
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(217, 226, 240, 0.9);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  color: #0f172a;
}

.studio-modal-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-modal-title {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.studio-modal-copy {
  margin: 12px 0 0;
  color: #475569;
  line-height: 1.65;
}

.studio-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.studio-modal-danger-button {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
}

.studio-modal-danger-button:hover {
  background: #b91c1c;
}

.studio-recording-track-shell {
  margin-top: 10px;
}

.studio-recording-track-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.studio-recording-track-title {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 800;
}

.studio-recording-track-subtitle {
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
}

.studio-recording-track {
  position: relative;
  height: 110px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow-x: auto;
  overflow-y: hidden;
  cursor: pointer;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.studio-recording-track::-webkit-scrollbar {
  height: 10px;
}

.studio-recording-track::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.studio-recording-track-content {
  position: relative;
  height: 100%;
  min-width: 100%;
  padding: 12px;
}

.studio-recording-bars {
  height: 100%;
  width: 100%;
  display: grid;
  align-items: center;
  gap: 2px;
}

.studio-recording-bar {
  width: 100%;
  align-self: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #8ea9ff, #3366ff);
  opacity: 0.92;
  min-height: 6px;
}

.studio-recording-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.4);
  transform: translateX(-1px);
}

.studio-recording-cursor::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f8fafc;
  transform: translateX(-50%);
}

.studio-recording-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(203, 213, 225, 0.76);
  text-align: center;
  font-weight: 600;
}

.info-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row span {
  color: var(--muted);
}

.form-error,
.form-success {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
}

.form-error {
  background: rgba(194, 61, 75, 0.1);
  color: var(--danger);
}

.form-success {
  background: rgba(24, 139, 90, 0.12);
  color: var(--success);
}

@media (max-width: 900px) {
  .hero-layout,
  .feature-grid,
  .stats-grid,
  .content-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .page-heading {
    align-items: start;
  }

  .studio-track-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .form-card,
  .status-card,
  .profile-header-card,
  .feature-card,
  .stat-card,
  .surface-card {
    padding: 22px;
  }

  .dashboard-heading .eyebrow,
  .studio-live-eyebrow,
  .studio-live-analyzer-copy,
  .studio-secondary-copy,
  .studio-recording-track-subtitle,
  .studio-recording-note,
  .studio-track-row-copy span,
  .studio-recording-toolbar .studio-recording-meta span:last-child,
  .studio-recording-utility-bar .studio-recording-meta span:last-child {
    display: none;
  }

  .dashboard-title {
    font-size: 1.4rem;
  }

  .studio-shell {
    padding: 1rem !important;
  }

  .studio-shell-header,
  .studio-shell-intro {
    min-width: 0;
  }

  .studio-shell-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .studio-shell-copy,
  .studio-status-meta {
    width: 100%;
    max-width: 100%;
  }

  .studio-status-meta span,
  .studio-shell-copy {
    max-width: 100%;
  }

  .studio-live-shell {
    padding: 16px;
  }

  .studio-live-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .studio-live-analyzer-meta {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 6px;
  }

  .studio-live-analyzer-canvas {
    height: 132px;
  }

  .studio-room-grid,
  .studio-video-split {
    grid-template-columns: 1fr;
  }

  .studio-room-video,
  .studio-video {
    min-height: 240px;
  }

  .studio-recording-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .studio-recording-meta {
    gap: 8px;
    font-size: 0.82rem;
  }

  .studio-recording-track {
    height: 96px;
  }

  .info-row {
    flex-direction: column;
  }
}
