@font-face {
  font-family: Space Grotesk;
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Archivo Black;
  src: url("/assets/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --black: #070707;
  --panel: #101110;
  --line: #292b29;
  --muted: #a3a59c;
  --white: #f3f3ee;
  --acid: #d8ff3e;
  --control-height: 40px;
  color-scheme: dark;
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--white);
  background: var(--black);
  font-synthesis: none;
}
[hidden] {
  display: none !important;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 7vw;
  background: radial-gradient(ellipse at 0% 0%, #222a0e, transparent 65%);
}
.login-brand img {
  width: min(400px, 100%);
}
.login-brand .eyebrow {
  margin-top: 30px;
}
.login-panel {
  width: 100%;
  max-width: 430px;
  justify-self: center;
  padding: 36px;
  background: #101110;
  border: 1px solid var(--line);
  border-top: 3px solid var(--acid);
  border-radius: 5px;
}
.login-panel h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: 48px;
  letter-spacing: -0.06em;
  line-height: 1.1;
  margin: 12px 0 32px;
}
.login-panel h1 span {
  color: var(--acid);
}
.login-panel h2 {
  font-size: 22px;
}
.login-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.login-panel .field {
  margin: 18px 0;
}
.login-panel button {
  width: 100%;
  margin-top: 8px;
}
.login-panel .inline-error {
  color: #ffa9a4;
}
.night-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding: 8px 10px;
}
.scheduled-set {
  display: grid;
  gap: 5px;
  border-left: 2px solid var(--acid);
  padding-left: 6px;
  min-width: 0;
}
.scheduled-time {
  font-size: 11px;
  color: var(--acid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.empty-set {
  display: grid;
  gap: 4px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 7px;
  min-width: 0;
}
.empty-set .hint {
  margin: 0;
  font-size: 10px;
}
.scheduled-time span {
  font-size: 9px;
  color: var(--muted);
}
.card-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  height: 25px;
  width: 25px;
  padding: 3px;
  color: var(--muted);
  background: #1a1c18;
  border-color: transparent;
  z-index: 1;
}
.card-remove:hover {
  color: #ffa9a4;
  background: #31201e;
}
.card-confirmation {
  position: absolute;
  top: 33px;
  right: 3px;
  height: 25px;
  width: 25px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 3px;
  background: #1a1c18;
  border: 1px solid #50583e;
  border-radius: 3px;
  color: #858a7d;
  z-index: 1;
}
.card-confirmation.is-confirmed {
  color: #111;
  background: var(--acid);
  border-color: var(--acid);
}
.dj-card:has(.card-confirmation) .card-open {
  padding-right: 34px;
}
.can-remove .card-open {
  padding-right: 34px;
}
.can-remove .card-title {
  padding-right: 0;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 18px 0;
}
.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--acid);
}
.plan-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-rows {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.plan-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #171a14;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.plan-order {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.plan-order > span {
  width: 100%;
  color: var(--muted);
  font-size: 10px;
}
.plan-order .small {
  padding: 4px 8px;
}
.plan-artists {
  display: grid;
  gap: 7px;
  font-size: 13px;
  min-width: 0;
}
.plan-artists strong {
  overflow-wrap: anywhere;
}
.plan-artists select {
  width: 100%;
  font-size: 11px;
}
.plan-time {
  font-size: 11px;
  color: var(--acid);
}
.plan-duration input {
  width: 100%;
}
.b2b-badge {
  color: var(--acid);
  font-size: 10px;
}
.snapshot-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.snapshot-composer .field {
  margin: 0;
}
.snapshot-composer button {
  height: var(--control-height);
  white-space: nowrap;
}
.saved-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.saved-state strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.history-entry {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
}
.history-entry summary {
  cursor: pointer;
  color: var(--acid);
  font-size: 11px;
}
.history-change {
  padding: 10px;
  background: #171a14;
  margin-top: 8px;
}
.history-change code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 10px;
  color: var(--muted);
}
.history-change span {
  color: var(--muted);
}
.history-change pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  margin: 5px 0 12px;
}
.compact .night-actions {
  grid-template-columns: 1fr 1fr;
}
.compact .night-actions button {
  font-size: 9px;
  padding: 5px;
}
.compact .card-remove {
  height: 24px;
  width: 22px;
  top: 3px;
}
.compact .card-confirmation {
  top: 3px;
  right: 27px;
  width: 22px;
  height: 24px;
}
.compact .card-confirmation .icon {
  width: 13px;
  height: 13px;
}
.compact .dj-card:has(.card-confirmation) .card-open {
  padding-right: 55px;
}
.compact .dj-card:not(.can-remove) .card-confirmation {
  right: 3px;
}
.compact .dj-card:not(.can-remove):has(.card-confirmation) .card-open {
  padding-right: 29px;
}
.compact .can-remove .card-open {
  padding-right: 29px;
}
.compact .can-remove .card-title {
  padding-right: 0;
}
.compact .scheduled-time {
  font-size: 10px;
}
@media (max-width: 1300px) {
  .topbar .brand-divider {
    display: none;
  }
  .import-status:not(.error) {
    display: none;
  }
}
@media (max-width: 700px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 18px;
  }
  .login-brand {
    text-align: center;
  }
  .login-brand img {
    width: 180px;
  }
  .login-brand .eyebrow {
    margin-top: 14px;
  }
  .login-panel {
    padding: 24px;
  }
  .plan-row {
    grid-template-columns: 50px minmax(0, 1fr) 62px;
    gap: 6px;
    padding: 9px;
  }
  .plan-order .small {
    padding: 4px 5px;
  }
  .snapshot-composer {
    grid-template-columns: minmax(0, 1fr);
  }
  .saved-state {
    align-items: flex-start;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
#app:has(.board) {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
#app:has(.board) > :not(.board) {
  flex-shrink: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
button {
  color: var(--white);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 14px;
  border-radius: 3px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
button:hover {
  border-color: #6c7162;
  background: #1b1e17;
}
button.primary {
  background: var(--acid);
  color: #111;
  border-color: var(--acid);
}
button.primary:hover {
  background: #e4ff78;
}
button.ghost {
  border-color: transparent;
  background: transparent;
}
button.small {
  padding: 6px 9px;
  font-size: 11px;
}
button.danger {
  color: #ffa9a4;
  border-color: #603733;
}
a {
  color: var(--acid);
}
svg.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar {
  height: 48px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.brand img {
  width: 100px;
  height: 32px;
  object-fit: contain;
}
.brand-divider {
  height: 28px;
  width: 1px;
  background: var(--line);
}
.workspace-title {
  margin: 0;
  font:
    400 22px/1 "Archivo Black",
    Arial Black,
    sans-serif;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.workspace-title span {
  color: var(--acid);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-actions > button,
.term-select {
  height: 32px;
}
.nav-actions > button {
  white-space: nowrap;
}
.create-label-short {
  display: none;
}
.control-label-short {
  display: none;
}
.term-select {
  font-weight: 700;
  width: 130px;
  padding: 4px 10px;
  line-height: 22px;
}
.avatar {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #282d21;
  color: var(--acid);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.account-control {
  position: relative;
  flex-shrink: 0;
}
.avatar[aria-expanded="true"] {
  border-color: var(--acid);
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(270px, calc(100vw - 32px));
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  z-index: 10;
  padding: 6px;
  background: #141710;
  border: 1px solid #50583e;
  border-radius: 5px;
  box-shadow: 0 12px 36px #0009;
}
.account-identity {
  padding: 10px;
  overflow-wrap: anywhere;
}
.account-identity strong,
.account-identity span {
  display: block;
}
.account-identity strong {
  font-size: 13px;
}
.account-identity span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.account-context {
  margin: 0 10px 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.account-dropdown button,
.account-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  padding: 10px;
  max-width: none;
  border: 0;
  color: var(--white);
  background: transparent;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}
.account-dropdown button:hover,
.account-dropdown a:hover {
  background: #282d21;
}
.account-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.account-section > span {
  display: block;
  padding: 8px 10px 4px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.account-dropdown .account-signout {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  border-radius: 0;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  display: inline-block;
  margin-right: 7px;
}

.eyebrow {
  color: var(--acid);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin: 0 0 12px;
}

.toolbar {
  margin: 0 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filters {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) minmax(140px, 0.9fr) minmax(
      140px,
      1.1fr
    );
  flex: 1 1 460px;
  min-width: 0;
  gap: 8px;
  align-items: center;
}
.filters select {
  width: 100%;
  min-width: 0;
}
.search {
  position: relative;
  min-width: 0;
  margin: 0;
}
.search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.search input {
  padding-left: 34px;
  width: 100%;
}
.toolbar input,
.toolbar select {
  height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 11px;
}
.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.toolbar-right button {
  min-height: 32px;
  white-space: nowrap;
}
.import-status {
  color: var(--muted);
  font-size: 10px;
  max-width: 280px;
  line-height: 1.5;
}
.import-status.error {
  color: #ffaea8;
}

.board-help {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 3px 32px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}
#drag-help {
  display: none;
}
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.legend i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--acid);
}
.legend .outside i {
  background: #f2bd62;
}
.legend .unavailable i {
  background: #e99898;
}
.board {
  padding: 0 32px 28px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  min-height: 400px;
  scrollbar-color: #4b513e transparent;
}
.column {
  flex: 0 0 280px;
  background: #101110;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.column.unassigned {
  flex-basis: 285px;
  background: #0e100c;
}
.column-header {
  padding: 16px 14px 13px;
  border-bottom: 1px solid var(--line);
  min-height: 105px;
}
.unassigned .column-header {
  border-top: 3px solid var(--acid);
  padding-top: 13px;
}
.column-kicker {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.column-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.mobile-night-nav,
.mobile-page-count {
  display: none;
}
.column-heading h2 {
  font-size: 18px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
  font-weight: 600;
}
.count {
  color: var(--muted);
  font-size: 10px;
  padding: 2px 5px;
  border: 1px solid #343730;
  border-radius: 3px;
  font-weight: 400;
  margin-left: 4px;
}
.night-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.night-meta button {
  padding: 3px 0;
  color: var(--muted);
  font-weight: 400;
  border: 0;
}
.cards {
  padding: 10px;
  display: grid;
  gap: 8px;
  min-height: 150px;
}
.dj-card {
  background: #1a1c18;
  border: 1px solid #34372e;
  border-radius: 4px;
  position: relative;
  transition:
    border-color 0.15s,
    transform 0.15s;
  overflow: hidden;
}
.dj-card:hover {
  border-color: #7c8567;
  transform: translateY(-1px);
}
.dj-card[draggable="true"] {
  cursor: grab;
}
.card-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 0;
  text-align: left;
  padding: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
}
.card-open:hover {
  background: transparent;
  border: 0;
}
.card-title {
  grid-column: 1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-title .grip {
  margin-left: auto;
  color: #6b7260;
  width: 11px;
}
.card-title > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.card-availability {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 6px);
  gap: 3px;
}
.availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #858a7d;
}
.availability-dot.available {
  background: #a8df6a;
}
.availability-dot.outside {
  background: #f2bd62;
}
.availability-dot.unavailable {
  background: #e99898;
}
.genres {
  grid-column: 1 / -1;
  font-size: 11px;
  color: #b4b8ac;
  font-weight: 400;
  margin: 6px 0 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  grid-column: 1 / -1;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: nowrap;
}
.badge {
  font-size: 9px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 3px;
  padding: 5px 6px;
  text-transform: capitalize;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge.absolute-beginner {
  background: #27392f;
  color: #b0e8c4;
  border-color: #395342;
}
.badge.beginner {
  background: #29334a;
  color: #b8ceff;
  border-color: #394a6e;
}
.badge.bedroom {
  background: #3b3044;
  color: #e2c0f5;
  border-color: #524260;
}
.badge.gigging {
  background: #403522;
  color: #f2d49a;
  border-color: #5d4b29;
}
.card-symbols {
  display: inline-flex;
  margin-left: auto;
  gap: 8px;
  color: #c0c5b5;
  font-size: 10px;
  align-items: center;
}
.card-symbols span {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.card-symbols .icon {
  width: 13px;
  height: 13px;
}
.review {
  font-size: 9px;
  color: #edc16d;
  font-weight: 400;
  margin-top: 8px;
}
.duplicate-marker {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #99a18d;
  margin-top: 8px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.duplicate-marker svg {
  width: 10px;
  height: 10px;
}
.slot-list {
  padding: 7px 10px 0;
}
.slot-row {
  padding-top: 7px;
}
.slot-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 5px;
}
.slot-label span:last-child {
  color: #67705d;
}
.slot {
  min-height: 61px;
  border: 1px dashed #343a2b;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #69735e;
  font-size: 10px;
}
.slot:has(.dj-card) {
  border: 0;
  display: block;
}
.slot .dj-card {
  width: 100%;
}
.slot .card-open {
  padding: 10px;
}
.slot .genres {
  margin-bottom: 9px;
}
.add-card {
  display: flex;
  width: calc(100% - 20px);
  margin: 12px 10px;
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
  border: 1px dashed #3b4132;
  background: transparent;
  justify-content: flex-start;
}
.add-card:hover {
  color: var(--acid);
  border-color: var(--acid);
}
.empty-message {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 20px 10px;
  line-height: 1.6;
}
.availability-warning {
  padding: 0 10px 9px;
  color: #f2bd62;
  font-size: 9px;
  line-height: 1.4;
}
.drop-zone[data-availability="available"] {
  outline: 1px solid var(--acid);
  background: #1c2510;
}
.drop-zone[data-availability="outside"] {
  outline: 1px solid #c99642;
  background: #241e12;
}
.drop-zone[data-availability="unavailable"] {
  outline: 1px solid #995b58;
  background: #251514;
}
.drop-zone[data-availability="unknown"] {
  outline: 1px dashed #888c7f;
}
.drop-zone.drag-over {
  outline-width: 3px;
  outline-offset: -1px;
}
.dragging {
  opacity: 0.35;
}
.footnote {
  padding: 2px 32px 4px;
  color: #777e6e;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.collaboration-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 10px;
}
#sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#sync-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a7a79a;
  flex-shrink: 0;
}
#sync-status[data-status="live"]::before {
  background: var(--lime);
}
#sync-status[data-status="error"]::before,
#sync-status[data-status="offline"]::before {
  background: #e38f69;
}
#collaborators {
  display: flex;
  align-items: center;
}
.collaborator-avatar {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-left: -4px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: #303925;
  color: var(--lime);
  font-size: 8px;
  font-weight: 700;
}
.collaborator-overflow {
  padding-left: 3px;
}
.collaboration-control > button {
  padding: 2px 7px;
  font-size: 10px;
  min-height: 22px;
}
.dj-card.being-edited {
  outline: 2px solid #e5ba69;
  outline-offset: -2px;
}
.dj-card.save-pending {
  box-shadow: inset 3px 0 #e5ba69;
}
.editing-presence {
  color: #e5ba69;
  font-size: 12px;
  margin-top: 6px;
}
.collaboration-notice {
  padding: 10px 12px;
  border: 1px solid #465238;
  border-radius: 6px;
  background: #192015;
  color: #d2ddc5;
  font-size: 12px;
  margin-bottom: 12px;
}
.collaboration-notice button {
  margin: 6px 6px 0 0;
}
.conflict-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.conflict-choice {
  border: 1px solid #79583d;
  padding: 10px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.conflict-choice p {
  margin: 5px 0 8px;
  max-height: 100px;
  overflow: auto;
  white-space: pre-wrap;
}
.conflict-choice button {
  margin: 3px 5px 0 0;
}
@media (max-width: 1300px) {
  .board-help:has(.collaboration-control) #drag-help {
    display: none;
  }
}
@media (max-width: 800px) {
  .board-help:has([data-action="pending-saves"]:not([hidden])) .legend {
    display: none;
  }
  .collaboration-control {
    gap: 5px;
    font-size: 8px;
  }
  .collaboration-control > button {
    font-size: 8px;
    min-height: 18px;
  }
  .collaborator-avatar {
    width: 18px;
    height: 18px;
    font-size: 6px;
  }
  .collaborator-avatar:nth-child(n + 3) {
    display: none;
  }
  #sync-status {
    max-width: 105px;
  }
}
.loading,
.empty-board {
  padding: 70px 32px;
  text-align: center;
  color: var(--muted);
}
.empty-board h2 {
  color: var(--white);
}
input,
select,
textarea {
  border: 1px solid #3b4035;
  background: #171a13;
  color: var(--white);
  border-radius: 3px;
  padding: 10px 11px;
  font-size: 12px;
  width: 100%;
  min-width: 0;
}
input,
select {
  height: var(--control-height);
}
textarea {
  resize: vertical;
  min-height: 85px;
  line-height: 1.6;
}
select {
  width: auto;
}
input[type="checkbox"] {
  accent-color: var(--acid);
  width: 16px;
  height: 16px;
}
label {
  font-size: 11px;
  color: #b7bcae;
  display: block;
  margin-bottom: 7px;
}
label:has(input[type="checkbox"]) {
  display: flex;
  gap: 8px;
  align-items: center;
}
dialog {
  width: min(760px, calc(100vw - 30px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #50583e;
  background: #10120d;
  color: var(--white);
  border-radius: 7px;
  box-shadow: 0 24px 90px #0008;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
.modal-header {
  padding: 23px 24px 17px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin: 0 0 7px;
}
.modal-header p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.modal-header .eyebrow {
  color: var(--acid);
  font-size: 9px;
  margin-bottom: 8px;
}
.modal-body {
  padding: 22px 24px;
}
.modal-footer {
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.modal-footer .push-left {
  margin-right: auto;
}
.field {
  margin-bottom: 17px;
  min-width: 0;
}
.field select {
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 16px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--acid);
  margin: 8px 0 15px;
}
.availability-editor {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px 13px;
  margin-bottom: 22px;
  align-items: center;
}
.availability-editor select {
  width: 100%;
}
.availability-editor .date-pref {
  font-size: 11px;
}
.hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 8px 0;
}
.transcript {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
}
.transcript summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--white);
  padding-bottom: 12px;
}
.transcript .field {
  padding-top: 8px;
}
.transcript label {
  line-height: 1.5;
}
.transcript textarea {
  min-height: 48px;
  font-size: 11px;
}
.original-response {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.original-response dt {
  margin-top: 12px;
  color: var(--white);
}
.original-response dd {
  margin: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.comment {
  border-left: 2px solid #4f5939;
  background: #181c12;
  padding: 10px 12px;
  margin-bottom: 9px;
}
.comment-meta {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 5px;
}
.comment p {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  line-height: 1.6;
}
.comment-composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 13px;
}
.comment-composer textarea {
  min-height: 55px;
  flex: 1;
}
.comment-composer button {
  white-space: nowrap;
}
.inline-error {
  font-size: 12px;
  color: #ffb3ad;
  padding: 12px;
  background: #2b1716;
  border: 1px solid #6b3733;
  border-radius: 3px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.source-preview {
  padding: 13px;
  border: 1px solid #424c2e;
  background: #192011;
  margin: 15px 0;
}
.source-preview p {
  font-size: 12px;
  margin: 0 0 9px;
}
.date-chip {
  display: inline-block;
  padding: 5px 7px;
  margin: 3px 5px 3px 0;
  font-size: 10px;
  border: 1px solid #424c2e;
}
.picker-list {
  display: grid;
  gap: 7px;
  max-height: 360px;
  overflow-y: auto;
}
.picker-item {
  text-align: left;
  justify-content: space-between;
  padding: 12px;
}
.picker-item strong {
  font-size: 12px;
}
.picker-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 17px;
  gap: 15px;
}
.tabs button {
  border: 0;
  border-radius: 0;
  color: var(--muted);
  padding: 10px 0;
}
.tabs button.active {
  border-bottom: 2px solid var(--acid);
  color: var(--acid);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #d8ff3e;
  color: #111;
  padding: 12px 20px;
  border-radius: 4px;
  z-index: 20;
  font-size: 12px;
  box-shadow: 0 4px 30px #0006;
  max-width: min(600px, 90vw);
  display: none;
}
#toast.visible {
  display: block;
}
#toast.error {
  background: #ffd3cc;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1700px) {
  .column {
    flex: 1 0 270px;
  }
  .column.unassigned {
    flex: 1 0 285px;
  }
}
@media (max-width: 800px) {
  .topbar {
    padding: 0 16px;
    height: 65px;
  }
  .brand-divider,
  .nav-actions .export-label {
    display: none;
  }
  .brand img {
    width: 93px;
    height: 36px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions > button {
    padding: 8px;
    font-size: 10px;
  }

  .toolbar {
    margin: 0 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 3px 0;
  }
  .filters {
    flex: none;
    width: 100%;
  }
  .toolbar-right {
    width: 100%;
    justify-content: flex-start;
  }
  .toolbar-right button.small {
    font-size: 10px;
    padding: 5px 7px;
  }
  .search input {
    width: 100%;
  }
  .filters select {
    max-width: none;
  }
  .filters {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px;
  }
  .search {
    grid-column: auto;
  }
  .board {
    padding: 0 16px 4px;
  }
  .board-help {
    margin: 2px 16px;
    flex-direction: row;
    gap: 4px;
  }
  .legend {
    font-size: 8px;
    gap: 8px;
  }

  .footnote {
    display: none;
  }
  .modal-header {
    padding: 18px;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-footer {
    padding: 14px 18px;
  }
  .availability-editor {
    grid-template-columns: 130px 1fr;
  }
  .form-grid {
    gap: 0 10px;
  }
}
@media (max-width: 450px) {
  .brand img {
    display: none;
  }
  .workspace-title {
    font-size: 16px;
    line-height: 1;
  }
  .workspace-title span {
    display: block;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .availability-editor {
    grid-template-columns: 1fr;
  }
  .comment-composer {
    flex-direction: column;
    align-items: stretch;
  }
  .filters {
    width: 100%;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }

  .modal-footer .push-left {
    width: 100%;
    justify-content: flex-start;
  }
}
.board {
  height: auto;
  min-height: 0;
  flex: 1;
  padding-bottom: 6px;
  align-items: stretch;
  overflow-y: hidden;
}
.column {
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.column-header {
  flex-shrink: 0;
}
.column-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-color: #444b36 transparent;
}
.unassigned > .cards {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-color: #444b36 transparent;
}
.add-card {
  flex-shrink: 0;
}
.dj-card {
  color: var(--white);
  flex-shrink: 0;
}
.unassigned > .cards {
  display: flex;
  flex-direction: column;
}
.card-open .grip {
  stroke-width: 3;
}
.slot > span {
  pointer-events: none;
}
@media (max-width: 800px) {
  .board {
    height: auto;
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header,
.modal-footer {
  flex-shrink: 0;
}
.modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
@media (max-width: 450px) {
  .brand img {
    width: 80px;
  }
  .topbar {
    gap: 8px;
  }
  .term-select {
    width: 110px;
  }
  .nav-actions > button {
    max-width: 90px;
    gap: 5px;
    white-space: normal;
    line-height: 1.2;
  }
  .nav-actions > button span {
    min-width: 0;
  }
  .nav-actions .create-label {
    display: none;
  }
  .nav-actions .create-label-short {
    display: inline;
  }
}

[hidden] {
  display: none !important;
}
.period-list {
  border-bottom: 1px solid var(--line);
}
.period-heading button {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  padding: 11px 10px;
  font-size: 12px;
  background: #141710;
}
.period-time {
  color: var(--muted);
  font-size: 10px;
  margin-left: auto;
  font-weight: 400;
}
.period-list .cards {
  min-height: 42px;
  align-content: start;
  padding-top: 0;
}
.period-list .empty-message {
  padding: 6px 3px;
  margin: 0;
}
.chevron {
  color: var(--acid);
  width: 9px;
}
.set-planner {
  padding: 12px 10px;
}
.set-planner summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
}
.set-planner summary span {
  float: right;
}
.set-planner .slot {
  min-height: 33px;
}
.set-assignment {
  width: 100%;
  font-size: 11px;
  justify-content: flex-start;
  border: 0;
  padding: 8px;
}
.set-time {
  color: var(--acid);
}
.placement-outside {
  border-left: 3px solid #f2bd62;
}
.placement-unavailable {
  border-left: 3px solid #e99898;
}
.placement-warning {
  grid-column: 1 / -1;
  font-size: 9px;
  color: #f2bd62;
  margin-top: 7px;
}
.placement-unavailable .placement-warning {
  color: #e99898;
}
.review-symbol {
  color: #f2bd62;
}
.availability-summary {
  padding: 12px;
  border: 1px solid var(--line);
  background: #141710;
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.availability-result.is-available {
  color: var(--acid);
}
.compact-toggle[aria-pressed="true"] {
  color: var(--acid);
  border-color: var(--acid);
}
.card-details-toggle[aria-pressed="true"] {
  color: var(--acid);
  border-color: var(--acid);
}

.compact .topbar {
  height: 48px;
  flex-shrink: 0;
}
.compact .brand img {
  height: 32px;
}

.compact .toolbar {
  padding: 5px 0;
  flex-shrink: 0;
}
.compact .toolbar input,
.compact .toolbar select {
  height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.compact .toolbar-right button {
  min-height: 32px;
}
.compact .board-help {
  margin: 3px 32px;
  flex-shrink: 0;
}
.compact .board {
  height: auto;
  min-height: 0;
  flex: 1;
  padding-bottom: 6px;
}
.compact .column-header {
  min-height: 69px;
  padding: 8px 10px;
}
.compact .column-kicker {
  margin-bottom: 4px;
  font-size: 8px;
}
.compact .column-heading h2 {
  font-size: 15px;
}
.compact .night-meta {
  margin-top: 4px;
  font-size: 9px;
}
.compact .cards {
  gap: 2px;
  padding: 4px 6px;
}
.compact .period-heading button {
  padding: 3px 8px;
  font-size: 11px;
  height: 24px;
}
.compact .period-list .cards {
  min-height: 23px;
}
.compact .period-list .empty-message {
  padding: 1px;
  font-size: 9px;
}
.compact .period-list .cards.is-empty {
  min-height: 0;
  padding: 0;
}
.compact .period-list .cards.is-empty .empty-message {
  display: none;
}
.compact .dj-card {
  height: 32px;
  min-height: 32px;
}
.compact .column,
.compact .column.unassigned {
  flex-basis: 320px;
}
.compact .card-open {
  height: 100%;
  padding: 3px 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: 13px 10px;
  gap: 0 4px;
}
.compact .card-title {
  font-size: 11px;
  line-height: 13px;
  min-width: 0;
}
.compact .card-title > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact .card-title .grip {
  display: none;
}
.compact .card-availability {
  grid-row: 1 / 3;
  grid-template-rows: repeat(2, 5px);
  gap: 3px;
}
.compact .availability-dot {
  width: 5px;
  height: 5px;
}
.compact .genres {
  grid-column: 1;
  grid-row: 2;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0;
  font-size: 9px;
  line-height: 10px;
}
.compact .card-footer {
  grid-column: 3;
  grid-row: 1 / 3;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
}
.compact .badge {
  font-size: 8px;
  padding: 2px 4px;
  max-width: 91px;
  white-space: nowrap;
}
.compact .card-symbols {
  margin-left: 0;
  gap: 6px;
  font-size: 8px;
  line-height: 10px;
}
.compact .card-symbols .icon {
  width: 11px;
  height: 11px;
}
.compact .placement-warning {
  display: none;
}
.compact .set-planner {
  padding: 7px 8px;
}
.compact .add-card {
  padding: 7px;
  margin: 6px;
  width: calc(100% - 12px);
  font-size: 10px;
}
.compact .footnote {
  padding: 2px 32px 4px;
  flex-shrink: 0;
  font-size: 9px;
}
@media (max-width: 800px) {
  .compact .import-status,
  .compact #drag-help {
    display: none;
  }
  .compact .toolbar-right {
    justify-content: flex-start;
    gap: 8px;
  }
  .compact .board-help {
    margin: 2px 16px;
  }
  .compact .footnote {
    padding: 0 16px 6px;
    font-size: 8px;
  }
}
@media (max-width: 800px) {
  .topbar,
  .compact .topbar {
    height: auto;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .brand {
    flex-shrink: 0;
    gap: 8px;
  }
  .brand img {
    width: clamp(60px, 12vw, 93px);
    height: 32px;
  }
  .workspace-title {
    font-size: clamp(16px, 2.75vw, 22px);
    white-space: nowrap;
  }
  .nav-actions {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .nav-actions > button {
    font-size: 10px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .nav-actions .create-label {
    display: none;
  }
  .nav-actions .create-label-short {
    display: inline;
  }
  .term-select {
    width: clamp(90px, 16vw, 130px);
    min-width: 80px;
    max-width: 130px;
  }
}
@media (max-width: 800px) and (max-height: 700px) {
  .board-help {
    display: none;
  }
}
@media (max-width: 1300px) {
  .compact-toggle .control-label {
    display: none;
  }
  .compact-toggle .control-label-short {
    display: inline;
  }
}
@media (max-width: 800px) {
  .toolbar-right .control-label {
    display: none;
  }
  .toolbar-right .control-label-short {
    display: inline;
  }
}
@media (max-width: 380px) {
  .nav-actions > [data-action="create"] {
    width: 40px;
  }
  .nav-actions > [data-action="create"] span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 800px) {
  .board,
  .compact .board {
    overflow-x: hidden;
    gap: 0;
  }
  .board > .column,
  .compact .board > .column {
    display: none;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .board > .column.mobile-active {
    display: flex;
  }
  .column-heading h2 {
    flex: 1;
    min-width: 0;
  }
  .mobile-night-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    min-height: 36px;
    padding: 0;
  }
  .mobile-page-count {
    display: block;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
  }
}
