.production-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 16px 0;
}
.production-toolbar > .input {
  width: auto;
  max-width: 230px;
}
.production-toolbar .field {
  max-width: 140px;
}
.production-meta .formgrid {
  grid-template-columns: 2fr 2fr 1fr 1fr;
}
.production-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.production-logos > img,
.production-logo-upload img {
  width: 230px;
  height: 78px;
  object-fit: contain;
}
.production-logos {
  background: #fff;
  color: #18212c;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.production-logo-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 50%;
  font-size: 12px;
}
.production-logo-upload input {
  max-width: 100%;
  font-size: 11px;
}
.production-table {
  min-width: 1460px;
}
.production-table th {
  white-space: nowrap;
}
.production-table textarea {
  min-width: 105px;
  resize: vertical;
  font-size: 13px;
}
.production-table td:nth-child(3) textarea {
  min-width: 180px;
}
.production-row-tools {
  width: 42px;
}
.production-row-tools .btn {
  padding: 6px;
  display: flex;
  margin: 10px 0;
  min-width: 40px;
  min-height: 40px;
}
.production-stage {
  position: relative;
  aspect-ratio: 1.6;
  min-height: 300px;
  border: 2px solid var(--border);
  background: var(--surface);
  margin: 28px 0 40px;
  touch-action: pan-y;
}
.production-stage-back,
.production-stage-front,
.production-stage-left,
.production-stage-right {
  position: absolute;
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
}
.production-stage-back {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.production-stage-front {
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
}
.production-stage-left {
  bottom: -28px;
  left: 0;
}
.production-stage-right {
  bottom: -28px;
  right: 0;
}
.production-stage-item {
  position: absolute;
  width: 100px;
  min-height: 48px;
  padding: 5px;
  border: 1.5px solid var(--text);
  background: var(--surface);
  color: var(--text);
  border-radius: 4px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  font: inherit;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.production-stage-item.monitor {
  border-style: solid;
  background: #e7eef8;
  color: #18212c;
}
.event-artists-section { margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.event-artist-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 16px; }
.event-artist-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; min-width: 0; }
.event-artist-summary .badge { white-space: normal; overflow-wrap: anywhere; }
.event-artists-dialog { width: min(700px,94vw); }
.event-artist-row,.event-artist-add { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.event-artist-row .input,.event-artist-add .input { min-width: 0; flex: 1; }
.event-artists-dialog .btn { min-height: 44px; flex-shrink: 0; }
.production-organizer { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; padding: 24px 0; border: 0; box-shadow: none; background: transparent; }
.production-organizer img { width: 120px; height: 40px; object-fit: contain; }
.production-toolbar .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.modal [data-act="cancel"] { margin-right: 12px; margin-bottom: 8px; }
.production-toolbar .btn { min-height: 44px; }
.production-table { border-collapse: collapse; }
.production-table td { padding: 12px; vertical-align: top; }
.production-table .input { border-width: 1px; }
.production-table { table-layout: fixed; width: 1680px; min-width: 1680px; }
.production-table th:first-child { width: 85px; }
.production-table th:nth-child(2) { width: 90px; }
.production-table th:last-child { width: 70px; }
.production-table th.production-col-title { width: 260px; }
.production-table th.production-col-duration { width: 145px; }
.production-table th.production-col-bpm { width: 100px; }
.production-table th.production-col-key { width: 140px; }
.production-table th.production-col-audio { width: 260px; }
.production-table th.production-col-lighting { width: 210px; }
.production-table th.production-col-notes { width: 240px; }
.production-table td textarea,.production-table td:nth-child(3) textarea { width: 100%; min-width: 0; }
.production-table td select { width: 100%; min-width: 0; }
.production-key { display: grid; gap: 12px; }
.production-key label { display: grid; gap: 6px; font-size: 12px; }
.production-duration { display: flex; gap: 8px; }
.production-duration label { flex: 1; min-width: 0; display: grid; gap: 6px; }
.production-required { color: #c62828; font-size: 11px; margin-left: 4px; }
.production-track-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.production-track-actions .btn { min-height: 44px; }
.production-file-input { display: none; }
.production-table tbody tr.production-track-inner,
.production-table tbody tr.production-track-inner > td:not(.production-track-cell) { border-bottom: 0; box-shadow: none; }
.production-table tbody tr.production-track-inner + tr > td { border-top: 0; }
.production-table tbody .production-track-cell { vertical-align: middle; border-bottom: 1px solid var(--border); padding: 12px 8px; }
.production-track-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 48px; min-height: 72px; cursor: pointer; }
.production-track-pick input[type="checkbox"] { appearance: auto; position: static; width: 20px; height: 20px; margin: 0; flex: none; transform: none; }
.production-track-pick strong { line-height: 1.2; text-align: center; }
.production-split { margin-top: 12px; min-height: 40px; }
.production-logo-upload { border: 0; }
.production-logo-upload > .btn { align-self: flex-start; min-height: 44px; }
.production-cue-preset { margin-bottom: 12px; min-width: 180px; }
.production-logo-upload { max-width: 100%; }
html[data-one-product] .main .section.production-meta,
html[data-one-product] .main .section:has(.production-stage),
html[data-one-product] .main .section:has(.production-table),
html[data-one-product] .main .section:has(.production-preview),
html[data-one-product] .main .section:has([data-notes]),
html[data-one-product] .main .section.production-organizer {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 0;
  background: transparent;
}
.production-stage-item.selected {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.production-stage-item:active {
  cursor: grabbing;
}
.production-stage-item:disabled {
  opacity: 1;
  cursor: default;
}
.production-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.production-selection label {
  max-width: 160px;
  font-size: 12px;
}
.production-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.production-preview canvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}
.production-import {
  width: min(820px, 95vw);
}
.production-stage {
  width: 100%;
  box-sizing: border-box;
}
.production-stage-back,
.production-stage-front,
.production-stage-left,
.production-stage-right {
  color: var(--muted);
}
.section:has(.production-stage),
.section.production-meta,
.section:has(.production-table),
.section:has(.production-preview),
.section:has([data-notes]) {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 20px 0;
  background: transparent;
}
.production-meta .formgrid {
  display: grid;
  gap: 16px;
}
.production-meta .field {
  min-width: 0;
}
.production-meta .field input {
  max-width: 100%;
}
@media (max-width: 700px) {
  .production-meta .formgrid {
    grid-template-columns: 1fr 1fr;
  }
  .production-logos {
    gap: 12px;
    padding: 10px;
  }
  .production-logos > img,
  .production-logo-upload img {
    width: 140px;
    height: 60px;
  }
  .production-toolbar .segmented {
    max-width: 100%;
    overflow: auto;
  }
  .production-toolbar .segmented button {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px;
  }
  .production-stage-item {
    width: 64px;
    min-height: 38px;
    font-size: 11px;
  }
  .production-stage {
    min-height: 260px;
  }
  .production-selection label {
    max-width: 120px;
  }
}
