@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #111113;
  --surface: #1b1b1f;
  --text: #f5f2ed;
  --muted: #a09c99;
  --line: #343133;
  --accent: #ff8a3d;
  font-family: Inter, 'Segoe UI Variable', 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-width: 280px;
  background: var(--bg);
  color: var(--text);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #131316;
  color: var(--text);
  padding: 12px 13px;
  line-height: 1.5;
}
input:focus {
  border-color: #ff8a3d99;
}
input[readonly] {
  color: #c8c1bb;
  background: #161619;
}
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--accent);
  margin: 0;
}
::selection {
  background: #ff8a3d50;
  color: #fff;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 85% 0, #b85c1b14, transparent 55%);
}
.shell {
  max-width: 1120px;
  padding: 28px 32px 0;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.shell main {
  flex: 1;
  padding: 20px 0 48px;
  min-width: 0;
}
.page-header,
.brand,
.account,
.actions,
.section-heading,
.workspace-heading,
.dialog-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-header {
  min-height: 58px;
  justify-content: space-between;
  margin-bottom: 23px;
}
.brand {
  gap: 12px;
  min-width: 0;
}
.brand strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
}
.brand div > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid #ff8a3d33;
  border-radius: 12px;
  background: #ff8a3d0a;
  color: var(--accent);
  box-shadow: 0 0 25px #ff8a3d08;
  flex-shrink: 0;
}
.brand-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account {
  text-align: right;
  min-width: 0;
}
.account div {
  min-width: 0;
}
.account strong {
  display: block;
  font-size: 13px;
  max-width: 180px;
  overflow-wrap: anywhere;
}
.account div > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  margin-bottom: 11px;
}
.card {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #1e1d21, var(--surface));
  border-radius: 16px;
  padding: 26px;
  min-width: 0;
}
.login-card {
  width: min(100%, 420px);
  padding: 32px;
  margin: min(8vh, 64px) auto 40px;
  box-shadow:
    0 16px 80px #0002,
    0 0 70px #ff8a3d04;
}
.login-description {
  margin-top: 12px;
}
.role-switch {
  display: flex;
  gap: 5px;
  padding: 4px;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #121215;
}
.role-switch button {
  flex: 1;
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.role-switch button[aria-pressed='true'] {
  border-color: #ff8a3d35;
  color: #ffd0b1;
  background: #ff8a3d12;
  box-shadow: 0 0 16px #ff8a3d08;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #c1bbb6;
  margin-bottom: 18px;
  min-width: 0;
}
.field small {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition:
    background 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #24150b;
  box-shadow: 0 4px 23px #ff8a3d12;
}
.button.primary:hover:not(:disabled) {
  background: #ff9d5d;
  box-shadow: 0 4px 25px #ff8a3d25;
}
.button.secondary {
  background: #232227;
  border-color: #3b3739;
  color: #d7d0ca;
}
.button.secondary:hover:not(:disabled) {
  border-color: #ff8a3d77;
  background: #2b2523;
}
.button.danger {
  border-color: #ef827b44;
  color: #f3aaa4;
  background: #ef827b0a;
}
.button.compact {
  min-height: 37px;
  padding: 8px 12px;
  font-size: 11px;
}
.full-width {
  width: 100%;
}
.form-error {
  font-size: 12px;
  line-height: 1.6;
  color: #f3a9a3;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.workspace-heading {
  justify-content: space-between;
  margin-bottom: 28px;
  align-items: flex-end;
}
.actions {
  flex-wrap: wrap;
  gap: 9px;
}
.section-heading {
  justify-content: space-between;
  margin: 26px 0 15px;
}
.card .section-heading {
  margin-top: 0;
}
.section-heading p {
  margin-top: 7px;
}
.counter {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
}
.profile-card {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}
.profile-card .field {
  margin: 0;
}
.profile-card .eyebrow {
  margin-bottom: 7px;
}
.station-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.station-top,
.dj-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.station-top > div,
.dj-top > div {
  min-width: 0;
}
.status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid #9b969133;
  border-radius: 7px;
  background: #9b969108;
  padding: 5px 8px;
  color: #b6b0aa;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}
.status.live,
.status.enabled {
  color: #a9d8ad;
  border-color: #a9d8ad33;
  background: #a9d8ad08;
}
.status.live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px #a9d8ad55;
}
.connection-grid,
.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.connection-grid .field,
.credential-grid .field {
  margin: 0;
}
.connection-grid .wide {
  grid-column: 1 / -1;
}
.copy-field {
  display: flex;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
}
.copy-field input {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.copy-field .button {
  padding: 9px;
  min-width: 66px;
  font-size: 10px;
}
.connection-info {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}
.connection-info > span {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 7px;
}
.credential-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.credential-actions .muted {
  font-size: 11px;
}
.dj-list {
  display: grid;
  gap: 14px;
}
.dj-card {
  padding: 23px 25px;
}
.dj-top {
  margin-bottom: 14px;
}
.dj-login {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.station-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
}
.station-chip {
  font-size: 10px;
  line-height: 1.5;
  color: #bfb8b2;
  background: #28262a;
  border: 1px solid #393539;
  border-radius: 6px;
  padding: 5px 8px;
  overflow-wrap: anywhere;
}
.dj-card .actions .button {
  font-size: 11px;
  min-height: 38px;
  padding: 9px 12px;
}
.empty {
  text-align: center;
  padding: 35px 20px;
}
.empty h3 {
  margin-bottom: 9px;
}
.notice {
  padding: 14px 16px;
  border: 1px solid #ff8a3d33;
  border-radius: 10px;
  background: #ff8a3d08;
  color: #e9c2a8;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.error-notice {
  color: #f3aaa4;
  border-color: #ef827b44;
  background: #ef827b08;
}
.loading {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 38px;
}
dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100svh - 40px);
  background: #1b1b1f;
  border: 1px solid #5d4436;
  border-radius: 16px;
  color: var(--text);
  padding: 25px;
  box-shadow:
    0 20px 100px #0006,
    0 0 60px #ff8a3d08;
}
dialog::backdrop {
  background: #08080bba;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  justify-content: space-between;
  margin-bottom: 23px;
}
.dialog-heading h2 {
  line-height: 1.4;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  color: #bcb4ae;
  font-size: 24px;
  flex-shrink: 0;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}
.dialog-copy {
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 15px;
}
.form-grid > .wide {
  grid-column: 1 / -1;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #d2c9c1;
  margin-bottom: 15px;
  cursor: pointer;
}
.station-choices {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  margin: 5px 0 18px;
  max-height: 240px;
  overflow-y: auto;
}
.station-choices legend {
  font-size: 12px;
  padding: 0 6px;
  color: #c1bbb6;
}
.station-choices .checkbox-label {
  margin: 6px 0 12px;
}
.station-choices .checkbox-label:last-child {
  margin-bottom: 3px;
}
.station-choices span {
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #302d2f;
  padding: 22px 0 25px;
  font-size: 10px;
  color: #77716d;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  padding: 12px 18px;
  background: var(--accent);
  color: #20140d;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 10px;
  z-index: 20;
  width: min(360px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ff8a3d66;
  background: #29201bea;
  color: #f3d5c0;
  box-shadow:
    0 8px 35px #0005,
    0 0 25px #ff8a3d12;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.6;
  pointer-events: auto;
  animation: toast-in 0.2s ease-out;
}
.toast.error {
  border-color: #ef827b77;
  background: #2d1e1dea;
  color: #f3b8b2;
}
.toast > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.toast button {
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 700px) {
  .shell {
    padding: 18px 20px 0;
  }
  .page-header {
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
  }
  .account {
    margin-left: auto;
  }
  .station-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-heading {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
  .profile-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .card {
    padding: 22px;
  }
  .login-card {
    padding: 28px;
    margin-top: 25px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand div > span {
    font-size: 10px;
  }
  .account strong {
    max-width: 160px;
  }
}
@media (max-width: 420px) {
  .shell {
    padding: 15px 14px 0;
  }
  .shell main {
    padding-top: 10px;
  }
  .page-header {
    margin-bottom: 15px;
  }
  .card {
    padding: 20px 17px;
    border-radius: 13px;
  }
  .login-card {
    padding: 25px 20px;
  }
  .credential-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid > .wide {
    grid-column: auto;
  }
  .connection-grid {
    gap: 12px;
  }
  .connection-grid .copy-field {
    flex-wrap: wrap;
  }
  .connection-grid .copy-field .button {
    min-height: 31px;
    width: 100%;
    padding: 6px;
  }
  .station-top,
  .dj-top {
    gap: 10px;
    flex-wrap: wrap;
  }
  .dj-card .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dj-card .actions .button {
    padding: 9px;
    min-width: 0;
  }
  .button {
    font-size: 11px;
  }
  dialog {
    padding: 20px;
    width: calc(100% - 24px);
  }
  .dialog-actions .button {
    flex: 1;
  }
  .toast-stack {
    top: 12px;
    right: 12px;
    width: calc(100% - 24px);
  }
  footer {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
