dialog {
  width: min(490px, calc(100vw - 32px));
  max-height: 90dvh;
  border: 1px solid #d8d8d7;
  padding: 0;
  color: var(--ink);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 24px 90px #16151c50;
  overflow: auto;
}
dialog.wide {
  width: min(820px, calc(100vw - 36px));
}
.buyer-auth .form-foot {
  padding-top: 0;
  margin-top: 0;
  border: 0;
}
.buyer-auth .form-foot button {
  width: 100%;
  min-height: 44px;
}
.auth-names summary {
  width: fit-content;
  cursor: pointer;
  font-size: 14px;
}
.auth-names[open] summary {
  margin-bottom: 12px;
}
.auth-source {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
  margin: 0 0 16px;
  font-size: 13px;
}
.auth-privacy {
  text-align: center;
  margin: 10px 0 0;
  font-size: 12px;
}
dialog::backdrop {
  background: #201e2c73;
  backdrop-filter: blur(3px);
}
.has-dialog {
  overflow: hidden;
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 23px;
  background: #fff;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 23px;
  letter-spacing: -0.8px;
}
.modal-body {
  padding: 20px 23px 23px;
}
.form-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}
.form-stack,
.form-stack fieldset:not(.source-fieldset) {
  display: grid;
  gap: 15px;
}
.form-stack fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.form-stack legend,
.field > span {
  font-weight: 650;
  font-size: 12px;
}
.source-fieldset legend {
  margin-bottom: 6px;
}
.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
}
.field > span small {
  font-weight: 400;
  margin-left: 3px;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  border: 1px solid #cbcbcf;
  border-radius: 7px;
  padding: 9px 11px;
  line-height: 1.4;
  min-height: 40px;
  width: 100%;
  background: #fff;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #84838c;
}
.field textarea {
  resize: vertical;
}
.field small,
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.form-foot {
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}
.inline-link,
.danger-link {
  align-self: flex-start;
  justify-self: start;
  color: var(--accent);
  padding: 0 4px;
  min-height: 28px;
  font-weight: 650;
}
.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.fields-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice-tabs {
  display: flex;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 8px;
  background: var(--soft);
}
.choice-tabs label {
  flex: 1;
  position: relative;
}
.choice-tabs input {
  position: absolute;
  opacity: 0;
  bottom: 0;
  left: 0;
}
.choice-tabs label span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  padding: 8px;
}
.choice-tabs input:checked + span {
  background: white;
  border-color: #d9d6e0;
  color: #4e4287;
  font-weight: 700;
}
.choice-tabs input:focus-visible + span {
  outline: 3px solid var(--focus);
}
.file-drop {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 23px;
  gap: 4px;
  background: #f4f3fa;
  border: 1px dashed #b7afd5;
  color: #594b88;
  border-radius: 10px;
  cursor: pointer;
}
.file-drop svg {
  margin-bottom: 3px;
}
.file-drop strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.file-drop span {
  font-size: 12px;
  color: #71688b;
}
.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.file-drop:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
#brief-source .field + .field {
  margin-top: 12px;
}
.localization {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.localization summary {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
.localization summary::-webkit-details-marker {
  display: none;
}
.localization summary svg:last-child {
  margin-left: auto;
}
.localization[open] > summary {
  margin-bottom: 10px;
}
.localization[open] > summary svg:last-child {
  transform: rotate(180deg);
}
.locale-row,
.platform-options {
  border: 1px solid var(--line);
  background: #fafaf9;
  padding: 12px;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  margin: 11px 0;
}
.locale-row .section-head {
  align-items: flex-start;
  margin: 0;
}
.locale-row .field small {
  font-size: 11px;
}
.editor {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(230px, 1.15fr);
  gap: 21px;
}
.player {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #24212a;
  border-radius: 10px;
  min-width: 0;
  align-self: start;
}
.player video {
  display: block;
  width: 100%;
  max-height: 62vh;
  aspect-ratio: 9/16;
  object-fit: contain;
}
.player .empty {
  width: 100%;
}
.editor-fields {
  min-width: 0;
}
.editor-meta {
  margin-bottom: 12px;
  gap: 8px;
  justify-content: space-between;
  font-size: 11px;
}
.editor-actions {
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.editor-actions .btn {
  font-size: 11px;
  padding: 7px 9px;
  min-height: 32px;
}
.editor-fields > .form-stack {
  gap: 10px;
}
.editor-fields fieldset {
  gap: 9px !important;
}
.quick-links {
  display: grid;
  gap: 4px;
}
.quick-links > button {
  padding: 12px 9px;
  text-align: left;
  justify-content: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
}
.quick-links > button:hover {
  background: var(--soft);
}
.quick-links strong {
  flex: 1;
}
.guide-list {
  display: grid;
  gap: 17px;
  padding-left: 20px;
  margin: 0 0 20px;
}
.guide-list li {
  padding-left: 5px;
}
.guide-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.danger,
.danger-link {
  color: #993f36;
}
.danger {
  background: #8e352e;
  color: #fff;
  border: 1px solid #8e352e;
}
.danger-zone {
  margin-top: 20px;
}
.check-row {
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
}
.check-row input {
  flex: none;
  margin-top: 1px;
}
.form-stack .platform-options {
  padding: 12px !important;
  border: 1px solid var(--line) !important;
}
.platform-options legend {
  padding: 0 3px;
}
.routing-table {
  overflow: auto;
  max-height: 43vh;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.routing-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.routing-table th,
.routing-table td {
  text-align: left;
  padding: 9px 10px;
  font-size: 12px;
  background: white;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.routing-table td {
  text-align: center;
}
.routing-table th > small,
.routing-table th > strong {
  display: block;
}
.routing-table th > small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.routing-table thead th {
  position: sticky;
  top: 0;
  background: #f4f3f7;
  z-index: 1;
  min-width: 105px;
}
.routing-table th:first-child {
  min-width: 116px;
}
.routing-table tbody th {
  min-width: 120px;
  font-weight: 650;
}
.form-error {
  padding: 10px 13px;
  background: #fae6e1;
  border-radius: 7px;
  color: #872f26;
  margin: 0 23px 20px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.platform-options .form-error {
  margin: 0;
}
#toast {
  pointer-events: none;
  position: fixed;
  bottom: 23px;
  left: 50%;
  z-index: 60;
  max-width: min(480px, 90vw);
  color: #fff;
  background: #302b3c;
  border-radius: 9px;
  padding: 11px 17px;
  box-shadow: 0 3px 14px #0002;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.16s,
    transform 0.16s;
  font-weight: 550;
  font-size: 13px;
}
#toast.shown {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  .feature {
    min-height: 290px;
  }
  .feature-copy {
    padding: 38px 45px;
  }
  .card-art {
    aspect-ratio: 2.1;
  }
  .library {
    margin-top: 37px;
  }
}
@media (max-width: 1140px) {
  .layout {
    grid-template-columns: 198px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .main {
    padding-inline: 24px;
  }
  .release-grid {
    gap: 12px;
  }
  .feature {
    min-height: 218px;
  }
  .hero-art {
    right: 5%;
  }
  .feature-copy {
    padding: 24px;
  }
  .platform-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-content {
    padding: 11px;
  }
  .card-meta {
    font-size: 10.5px;
  }
  .feature h2 {
    font-size: 35px;
  }
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(258px, 85vw);
    transform: translateX(-101%);
    visibility: hidden;
    transition:
      transform 0.18s ease,
      visibility 0.18s ease;
    box-shadow: 3px 0 20px #0001;
  }
  .nav-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #1e1b2a65;
    z-index: 9;
  }
  .crumb [data-action="menu"] {
    display: grid;
  }
  .crumb-icon {
    display: none;
  }
  .main {
    padding-top: 23px;
  }
  .topbar {
    height: 56px;
    padding: 0 19px;
  }
  .brand {
    margin: 0 11px 24px;
  }
  .nav-item {
    min-height: 44px;
  }
  .guide,
  .workspace-picker,
  .identity {
    min-height: 44px;
  }
  .feature h2 {
    font-size: 37px;
  }
  .group-label {
    margin-top: 20px;
  }
  .secondary-group {
    margin-top: 22px;
  }
}
@media (max-width: 640px) {
  .main {
    padding: 21px 16px 40px;
  }
  .topbar {
    padding-inline: 10px;
    gap: 6px;
  }
  .top-actions {
    gap: 2px;
  }
  .top-actions .btn {
    min-height: 38px;
  }
  .crumb {
    gap: 5px;
  }
  .crumb-workspace,
  .crumb-sep {
    display: none;
  }
  .crumb > strong {
    font-size: 13px;
  }
  .sample-pill {
    font-size: 10px;
    padding: 4px 7px;
  }
  .topbar .icon-btn {
    min-height: 42px;
    min-width: 36px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 17px;
  }
  .page-heading h1 {
    font-size: 33px;
    letter-spacing: -1.4px;
  }
  .page-heading p {
    font-size: 12.5px;
    line-height: 1.45;
    max-width: 39ch;
  }
  .page-heading > .action-row {
    justify-content: flex-end;
  }
  .btn {
    min-height: 42px;
  }
  .page-heading .btn {
    padding: 8px 10px;
    font-size: 11.5px;
  }
  .feature {
    min-height: 205px;
    border-radius: 12px;
  }
  .feature-copy {
    padding: 17px;
    width: 61%;
  }
  .feature h2 {
    font-size: 31px;
    line-height: 1.04;
    letter-spacing: -1.45px;
    max-width: 10.5ch;
  }
  .feature-label {
    font-size: 10px;
  }
  .feature-meta {
    font-size: 10px;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .feature-meta svg {
    height: 13px;
    width: 13px;
  }
  .hero-btn {
    min-height: 37px;
    font-size: 11px;
  }
  .hero-art {
    right: 7%;
    width: 26%;
    top: 20%;
    bottom: 18%;
  }
  .hero-art img {
    border-width: 1.25px;
    border-radius: 5px;
  }
  .hero-art .film-a {
    transform: translateX(-30%) translateY(3%) rotate(-12deg);
  }
  .hero-art .film-c {
    transform: translateX(30%) translateY(3%) rotate(12deg);
  }
  .feature-shade {
    background: linear-gradient(90deg, #211b29ee, #452c369a 70%, #33212a40);
  }
  .library,
  .lower-section {
    margin-top: 24px;
  }
  .section-head {
    margin-bottom: 11px;
  }
  .section-head h2 {
    font-size: 21px;
  }
  .library-controls {
    gap: 6px;
  }
  .sort-control {
    font-size: 11px;
  }
  .sort-control select {
    min-height: 35px;
  }
  .view-switch button {
    min-height: 30px;
    min-width: 30px;
  }
  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .filter-tabs {
    gap: 0;
  }
  .filter-tabs button {
    font-size: 10.5px;
    min-height: 38px;
    padding: 6px 9px;
  }
  .filter-bar {
    margin-bottom: 9px;
    gap: 3px;
  }
  .card-title {
    font-size: 16px;
  }
  .card-meta {
    font-size: 10px;
    gap: 3px;
  }
  .card-meta .dot-sep {
    margin: 0 1px;
  }
  .poster-label {
    font-size: 22px;
    bottom: 9px;
    left: 9px;
  }
  .image-count {
    font-size: 9px;
    top: 6px;
    right: 6px;
    padding: 2px 5px;
  }
  .release-grid.list-mode {
    grid-template-columns: 1fr;
  }
  .card-content {
    padding: 10px;
  }
  .card-art {
    aspect-ratio: 1.45;
  }
  .record-row,
  .queue-row {
    padding: 11px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .platform-icon {
    width: 32px;
    height: 32px;
  }
  .record-row .grow {
    flex-basis: 35%;
  }
  .platform-list {
    gap: 7px;
  }
  .platform-list > div {
    padding: 8px;
    gap: 6px;
    font-size: 11px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-box {
    padding: 17px;
  }
  .cuts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .release-summary {
    gap: 10px;
    margin-top: 0;
  }
  .release-summary > span {
    font-size: 11px;
  }
  .release-summary + .section-head {
    flex-wrap: wrap;
  }
  .cut-info {
    padding: 9px;
  }
  .editor {
    grid-template-columns: 1fr;
  }
  .player {
    max-width: 250px;
    width: 100%;
    justify-self: center;
  }
  .player video {
    max-height: 38vh;
  }
  .editor-fields {
    width: 100%;
  }
  .modal-body {
    padding: 15px;
  }
  .modal-head {
    padding: 12px 15px;
  }
  .modal-head h2 {
    font-size: 21px;
  }
  dialog,
  dialog.wide {
    width: calc(100vw - 18px);
    max-height: 94dvh;
    border-radius: 12px;
  }
  .field input:not([type="checkbox"]),
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .form-error {
    margin: 0 15px 15px;
  }
  .check-row input {
    width: 18px;
    height: 18px;
  }
  .sidebar-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .release-summary ~ .section-head .action-row {
    margin-left: auto;
  }
}
@media (max-width: 390px) {
  .main {
    padding-inline: 13px;
  }
  .feature-copy {
    padding-left: 14px;
  }
  .hero-art {
    right: 5.5%;
  }
  .sample-pill {
    padding: 4px 6px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading .btn {
    font-size: 11px;
  }
  .top-actions .small-quiet {
    font-size: 11px;
  }
  .card-meta {
    gap: 2px;
  }
  .card-meta svg {
    display: none;
  }
  .poster-label {
    font-size: 19px;
  }
  .fields-two {
    grid-template-columns: 1fr;
  }
  .platform-list {
    grid-template-columns: 1fr;
  }
  .feature h2 {
    font-size: 27px;
  }
}
@media (max-height: 650px) and (min-width: 851px) {
  .sidebar {
    padding-top: 15px;
  }
  .brand {
    margin-bottom: 13px;
  }
  .group-label,
  .secondary-group {
    margin-top: 15px;
  }
  .nav-item {
    min-height: 31px;
    padding-block: 5px;
  }
  .guide {
    display: none;
  }
  .identity {
    padding-top: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
.close-nav {
  display: none;
}
.advanced-fields {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}
.audience-evidence p,.audience-evidence blockquote { margin: 0; overflow-wrap: anywhere; }
.audience-evidence blockquote { border-inline-start: 2px solid currentColor; padding-inline-start: 12px; }
.time-list > strong {
  font-size: 12px;
}
.time-list .hint {
  font-size: 11px;
  margin: 4px 0;
}
.time-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  margin: 6px 0;
  background: #fff;
}
.interval-controls {
  display: flex;
  align-items: end;
  gap: 6px;
}
.interval-controls label {
  font-size: 10px;
  color: var(--muted);
  flex: 1;
  min-width: 0;
}
.interval-controls input {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 4px;
  font-size: 12px;
}
.interval-controls .icon-btn {
  min-height: 27px;
  min-width: 25px;
  padding: 2px;
}
.time-row > .field {
  margin-top: 6px;
}
.check-row a {
  color: var(--accent);
}
.time-list [data-action="move-shot"] svg {
  transform: rotate(90deg);
}
.time-row:first-child [data-action="move-shot"] {
  visibility: hidden;
}
@media (max-width: 850px) {
  .close-nav {
    display: grid;
    position: absolute;
    top: 24px;
    right: 14px;
  }
}
.cut-pager,
.cut-pager > div,
.review-filters,
.review-filters label {
  display: flex;
  align-items: center;
}
.cut-pager {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.cut-pager > div {
  gap: 5px;
}
.cut-pager .btn {
  font-size: 11px;
  min-height: 31px;
  padding: 5px 9px;
}
.review-filters {
  gap: 14px;
  flex-wrap: wrap;
  margin: -5px 0 15px;
  font-size: 12px;
  color: var(--muted);
}
.review-filters label {
  gap: 6px;
}
.review-filters select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 6px;
  font-size: 12px;
}
.column-toggle {
  font-size: 11px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 3px 0;
}
.routing-table th .column-toggle {
  display: block;
  margin: 4px 0 0;
}
@media (max-width: 640px) {
  .back-link + .page-heading {
    flex-direction: column;
    gap: 12px;
  }
  .back-link + .page-heading .action-row {
    justify-content: flex-start;
  }
  .cut-pager .btn {
    min-height: 36px;
  }
  .review-filters {
    gap: 8px;
  }
  .review-filters select {
    max-width: 130px;
  }
  .review-filters > span {
    margin-left: auto;
  }
  .column-toggle {
    min-height: 36px;
  }
}

.sample-player {
  width: min(100%, 280px);
  margin: 0 auto;
}
.sample-player video {
  width: 100%;
  max-height: 56dvh;
  display: block;
  border-radius: 8px;
  background: #24212a;
}
.sample-caption {
  text-align: center;
  margin-top: 10px;
}
.form-error > .btn {
  margin-left: 8px;
}
.edition-review {
  border-inline-start: 3px solid var(--ink);
  padding: 2px 0 2px 12px;
  margin-block: 10px 14px;
}
.edition-review p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 850px) {
  .sidebar {
    transition: none;
  }
  .nav-open .sidebar {
    transition: transform 0.18s ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-open .sidebar {
    transition: none;
  }
}
