:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #637083;
  --line: #d8dee8;
  --panel: #ffffff;
  --page: #f4f7fb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --success: #177245;
  --warn: #9a5b00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
}

.user-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 86px);
}

.server-list {
  padding: 18px;
  background: #e9eef6;
  border-right: 1px solid var(--line);
}

.server-link {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.server-link.active,
.server-link:hover {
  background: var(--panel);
}

.server-link img,
.server-link span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #c8d4e6;
  font-weight: 800;
}

.workspace {
  padding: 28px;
}

.status-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--warn);
  background: var(--panel);
  border-radius: 8px;
}

.status-band.subscribed {
  border-left-color: var(--success);
}

.status-band.trial {
  border-left-color: var(--brand);
}

.status-band span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.status-band small {
  display: block;
  margin-top: 8px;
  color: var(--warn);
  font-weight: 700;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 6px;
}

select,
input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

label small,
.inline-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.field-note {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.field-note span {
  color: var(--muted);
  font-size: 14px;
}

select[multiple] {
  min-height: 138px;
  padding: 8px;
}

.radio-row,
.toggle-row {
  display: flex;
  grid-column: auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.radio-row input,
.toggle-row input {
  min-height: auto;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: var(--brand);
}

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

.secondary-button {
  color: var(--brand);
  background: #edf4ff;
  border-color: #bed5ff;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.metric {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
}

.metric.ok {
  border-left-color: var(--success);
}

.metric.warn {
  border-left-color: var(--warn);
}

.metric span,
.metric small {
  color: var(--muted);
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6f4;
}

.meter i {
  display: block;
  height: 100%;
  background: var(--brand);
}

.library,
.events,
.support-panel {
  margin-top: 22px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
}

.track-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 8px;
}

.file-picker {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  cursor: pointer;
}

.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.file-picker-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
}

.inline-help {
  margin-bottom: 18px;
}

.track-list li {
  display: grid;
  grid-template-columns: 28px minmax(140px, 1fr) minmax(160px, auto) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.icon-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #f0c5c5;
  border-radius: 8px;
  color: #9f1d1d;
  background: #fff5f5;
  font-weight: 800;
  cursor: pointer;
}

.event-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.event-list li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.event-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.diagnostics div {
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.diagnostics dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.diagnostics dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.track-list li.dragging {
  opacity: 0.55;
}

.track-list li.inactive {
  opacity: 0.5;
}

.drag-handle {
  color: var(--muted);
  cursor: grab;
}

code {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.dashboard-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(56, 224, 255, 0.18), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(255, 88, 184, 0.15), transparent 24%),
    linear-gradient(135deg, #070b1d 0%, #11182f 46%, #21142e 100%);
  color: #eef6ff;
}

.dashboard-screen .topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(8, 13, 31, 0.84);
  border-bottom: 1px solid rgba(121, 229, 255, 0.18);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.dashboard-screen .topbar h1,
.dashboard-screen h2,
.dashboard-screen .status-band strong,
.dashboard-screen .metric strong,
.dashboard-screen .track-list strong,
.dashboard-screen .diagnostics dd,
.dashboard-screen .server-link strong {
  color: #ffffff;
}

.dashboard-screen .eyebrow {
  color: #50e2ff;
}

.dashboard-screen .user-strip,
.dashboard-screen .section-head,
.dashboard-screen .metric span,
.dashboard-screen .metric small,
.dashboard-screen label,
.dashboard-screen fieldset,
.dashboard-screen code,
.dashboard-screen .event-list span,
.dashboard-screen .diagnostics dt,
.dashboard-screen .status-band span,
.dashboard-screen label small,
.dashboard-screen .inline-help,
.dashboard-screen .field-note span {
  color: #aebbd2;
}

.dashboard-screen .layout {
  min-height: calc(100vh - 86px);
}

.dashboard-screen .server-list {
  background: rgba(4, 9, 24, 0.46);
  border-right: 1px solid rgba(121, 229, 255, 0.16);
}

.dashboard-screen .server-link {
  color: #dbe8ff;
}

.dashboard-screen .server-link.active,
.dashboard-screen .server-link:hover {
  background: rgba(79, 224, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(91, 230, 255, 0.16);
}

.dashboard-screen .server-link img,
.dashboard-screen .server-link span {
  background: rgba(73, 221, 255, 0.14);
  color: #ffffff;
}

.dashboard-screen .status-band,
.dashboard-screen .config-grid,
.dashboard-screen .library,
.dashboard-screen .events,
.dashboard-screen .support-panel,
.dashboard-screen .metric,
.dashboard-screen .empty-state {
  background: linear-gradient(180deg, rgba(14, 22, 48, 0.86), rgba(15, 19, 42, 0.74));
  border-color: rgba(126, 229, 255, 0.18);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.dashboard-screen .status-band {
  border-left-color: #ffbf4a;
}

.dashboard-screen .status-band.subscribed {
  border-left-color: #53f0a5;
}

.dashboard-screen .status-band.trial {
  border-left-color: #49ddff;
}

.dashboard-screen .status-band small {
  color: #ffd173;
}

.dashboard-screen .metric {
  border-left-color: #49ddff;
}

.dashboard-screen .metric.ok {
  border-left-color: #53f0a5;
}

.dashboard-screen .metric.warn {
  border-left-color: #ffbf4a;
}

.dashboard-screen select,
.dashboard-screen input {
  color: #f8fbff;
  background: rgba(5, 10, 25, 0.74);
  border-color: rgba(146, 228, 255, 0.2);
}

.dashboard-screen select option {
  color: #17202a;
  background: #ffffff;
}

.dashboard-screen fieldset,
.dashboard-screen .field-note,
.dashboard-screen .file-picker,
.dashboard-screen .track-list li,
.dashboard-screen .diagnostics div {
  background: rgba(5, 10, 25, 0.42);
  border-color: rgba(146, 228, 255, 0.16);
}

.dashboard-screen .file-picker:hover {
  border-color: rgba(73, 221, 255, 0.4);
  background: rgba(73, 221, 255, 0.08);
}

.dashboard-screen .file-picker-main {
  color: #07101f;
  background: linear-gradient(135deg, #42e4ff, #ffcf58);
}

.dashboard-screen .file-picker-meta {
  color: #c7d5eb;
}

.dashboard-screen .track-list li {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.dashboard-screen .meter {
  background: rgba(124, 229, 255, 0.13);
}

.dashboard-screen .meter i {
  background: linear-gradient(90deg, #49ddff, #ffcf58);
}

.dashboard-screen .primary-button {
  color: #07101f;
  background: linear-gradient(135deg, #42e4ff, #ffcf58);
  box-shadow: 0 14px 30px rgba(42, 206, 255, 0.18);
}

.dashboard-screen .primary-button:hover {
  background: linear-gradient(135deg, #70edff, #ffd978);
}

.dashboard-screen .secondary-button {
  color: #dffaff;
  background: rgba(73, 221, 255, 0.1);
  border-color: rgba(73, 221, 255, 0.28);
}

.dashboard-screen .secondary-button:hover {
  background: rgba(73, 221, 255, 0.18);
}

.dashboard-screen .secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dashboard-screen .icon-button {
  color: #ffd4dc;
  background: rgba(255, 76, 117, 0.1);
  border-color: rgba(255, 110, 142, 0.32);
}

.dashboard-screen .event-list li {
  border-top-color: rgba(146, 228, 255, 0.12);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(31, 211, 255, 0.24), transparent 28%),
    radial-gradient(circle at 22% 72%, rgba(255, 76, 174, 0.18), transparent 26%),
    linear-gradient(135deg, #070b1d 0%, #11182f 45%, #241333 100%);
  color: #f8fbff;
}

.login-panel {
  position: relative;
  width: min(500px, calc(100vw - 32px));
  padding: 38px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(11, 17, 38, 0.88), rgba(18, 22, 48, 0.76));
  border: 1px solid rgba(124, 229, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), 0 0 70px rgba(21, 202, 255, 0.12);
  text-align: center;
  backdrop-filter: blur(18px);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(54, 221, 255, 0.22), transparent 34%, rgba(255, 198, 74, 0.14));
}

.login-panel > * {
  position: relative;
}

.login-art {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(55, 223, 255, 0.25), rgba(255, 92, 174, 0.12) 60%, transparent 72%);
}

.login-art img {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 0 32px rgba(53, 226, 255, 0.34);
}

.login-kicker {
  color: #49ddff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-panel h1 {
  margin-top: 8px;
  color: #ffffff;
  font-size: 48px;
  line-height: 1;
}

.login-panel p {
  width: min(390px, 100%);
  margin: 14px auto 26px;
  color: #bac7dc;
  font-size: 17px;
  line-height: 1.55;
}

.login-panel .primary-button {
  min-height: 52px;
  padding: 0 24px;
  color: #07101f;
  background: linear-gradient(135deg, #42e4ff, #ffcf58);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(42, 206, 255, 0.24);
}

.login-panel .primary-button:hover {
  background: linear-gradient(135deg, #70edff, #ffd978);
}

.login-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  color: #aab8cf;
  font-size: 14px;
  font-weight: 700;
}

.login-links a:hover {
  color: #ffffff;
}

.empty-state {
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.legal-page h1 {
  margin-top: 6px;
  font-size: 34px;
}

.legal-page section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-page p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.legal-updated {
  color: var(--muted);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.legal-nav a {
  color: var(--brand);
  font-weight: 800;
}

.landing {
  min-height: 100vh;
  padding-bottom: 1px;
  background:
    radial-gradient(circle at 18% 8%, rgba(56, 224, 255, 0.2), transparent 27%),
    radial-gradient(circle at 86% 16%, rgba(255, 88, 184, 0.18), transparent 24%),
    linear-gradient(135deg, #070b1d 0%, #11182f 46%, #21142e 100%);
  color: #f8fbff;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 32px;
  min-height: 72vh;
  padding: 56px clamp(24px, 6vw, 88px);
  border-bottom: 1px solid rgba(126, 229, 255, 0.18);
}

.landing-copy {
  display: grid;
  gap: 18px;
  max-width: 660px;
}

.landing-copy h1 {
  font-size: 72px;
  line-height: 0.95;
}

.landing-copy p {
  max-width: 560px;
  color: #bac7dc;
  font-size: 20px;
  line-height: 1.55;
}

.landing .primary-button {
  color: #07101f;
  background: linear-gradient(135deg, #42e4ff, #ffcf58);
  box-shadow: 0 16px 36px rgba(42, 206, 255, 0.2);
}

.landing .secondary-button {
  color: #dffaff;
  background: rgba(73, 221, 255, 0.1);
  border-color: rgba(73, 221, 255, 0.28);
}

.landing-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(126, 229, 255, 0.18);
  border-radius: 8px;
  color: #bac7dc;
  background: rgba(7, 13, 30, 0.54);
}

.landing-stats strong {
  margin-right: 5px;
  color: #ffffff;
}

.jukie-preview {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(126, 229, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 22, 48, 0.86), rgba(15, 19, 42, 0.74));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.jukie-preview img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
}

.jukie-preview strong,
.jukie-preview span {
  display: block;
}

.jukie-preview span {
  margin-top: 4px;
  color: #bac7dc;
}

.jukie-preview ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #bac7dc;
}

.feature-band,
.pricing-band {
  display: grid;
  gap: 18px;
  padding: 36px clamp(24px, 6vw, 88px);
}

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

.feature-band article,
.pricing-band {
  background: linear-gradient(180deg, rgba(14, 22, 48, 0.86), rgba(15, 19, 42, 0.74));
  border: 1px solid rgba(126, 229, 255, 0.18);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.feature-band p,
.pricing-band p {
  margin-top: 8px;
  color: #bac7dc;
  line-height: 1.6;
}

.pricing-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin: 0 clamp(24px, 6vw, 88px) 56px;
  padding: 28px;
}

.landing::after {
  content: "";
  display: block;
  height: 56px;
}

@media (max-width: 820px) {
  .topbar,
  .status-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .layout,
  .config-grid,
  .health-grid,
  .diagnostics,
  .landing-hero,
  .feature-band,
  .pricing-band {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-copy h1 {
    font-size: 48px;
  }

  .pricing-band {
    margin-inline: 24px;
  }

  .server-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .track-list li,
  .event-list li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

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

  .track-list code,
  .event-list span {
    grid-column: 2;
  }
}
