
.prod {
  --prod-cyan: #7ee8f5;
  --prod-glass: rgba(136, 108, 255, .13);
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

.prod [hidden],
.prod-screen [hidden] {
  display: none !important;
}

.prod h1,
.prod h2,
.prod h3,
.prod p,
.prod-screen h1,
.prod-screen p {
  margin: 0;
}

.prod-head {
  display: grid;
  gap: .55rem;
  margin-block-end: .4rem;
}

.prod-head p,
.prod p {
  line-height: 1.55;
}

.prod h2 {
  font-size: 1.16rem;
}

.prod > .button,
.prod-share {
  justify-self: stretch;
  text-align: center;
}

.prod-options,
.prod-controls,
.prod-status-grid,
.prod-zodiacs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.prod-option {
  min-height: 115px;
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid var(--line, #343149);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--prod-glass), transparent), var(--surface, #181725);
  color: var(--text, #f8f6ff);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.prod-option > svg,
.prod-kit-icon,
.prod-media > svg,
.prod-preview-art > svg {
  color: var(--prod-cyan);
}

.prod-option[aria-expanded=true] {
  border-color: #ad97ff;
  background-color: #35285d;
}

.prod-option strong,
.prod-option small,
.prod-schedule strong,
.prod-schedule small {
  display: block;
}

.prod-option small,
.prod-schedule small {
  margin-block-start: .2rem;
  color: var(--muted, #b9b5ca);
  line-height: 1.35;
}

.prod-work:empty,
.prod-preview:empty {
  display: none;
}

.prod-work,
.prod-empty,
.prod-upload,
.prod-calendar,
.prod-builder,
.prod-studio,
.prod-kit,
.prod-outlets,
.prod-kit-files {
  display: grid;
  gap: .85rem;
  min-width: 0;
}

.prod-frame,
.prod-media,
.prod-preview-art {
  position: relative;
  overflow: hidden;
  border: 1px solid #49405f;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 48% 110%, #4e3980 0%, transparent 64%),
    linear-gradient(160deg, #211c35, #0d101c 65%);
}

.prod-studio {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border: 0;
  color: var(--text, #f8f6ff);
  background: #0b0d14;
  overflow: hidden;
  align-content: stretch;
  grid-template-columns: minmax(0, 39rem);
  grid-template-rows: clamp(110px, 42dvh, 480px) minmax(0, 1fr);
  justify-content: center;
}

.prod-studio[open] {
  display: grid;
}

.prod-studio::backdrop {
  background: #0b0d14;
}

.prod-studio-tools {
  display: grid;
  align-content: start;
  min-height: 0;
  gap: .85rem;
  padding: .2rem .15rem 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.prod-studio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .8rem;
}

.prod-line-count {
  font-size: .88rem;
}

.prod-frame {
  border-top: 0;
  border-radius: 0 0 18px 18px;
  isolation: isolate;
}

.prod-frame video,
.prod-frame-guide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.prod-frame video {
  object-fit: cover;
}

.prod-frame-guide {
  width: 56%;
  height: 65%;
  margin: auto;
  inset-block-start: 23%;
  border: 1px dashed #c4b0ff84;
  border-radius: 46% 46% 20% 20%;
  pointer-events: none;
}

.prod-prompter {
  position: relative;
  width: min(100% - 1rem, 32ch);
  max-height: 19dvh;
  margin: .35rem auto 0;
  padding: .4rem .6rem;
  color: #fff;
  background: #100d1ded;
  border-radius: 10px;
  font-size: clamp(1.05rem, 3.9vw, 1.6rem);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  overflow-y: auto;
}

.prod-prompter > .dinprima-prompter-text {
  max-block-size: calc(19dvh - .8rem) !important;
}

.prod-pairing {
  padding: 0 .75rem .75rem;
  border: 1px solid var(--line, #343149);
  border-radius: 12px;
}

.prod-pairing summary {
  display: list-item;
  padding: .65rem 0;
  cursor: pointer;
}

.prod-pairing > :not(summary) {
  margin-block-start: .65rem;
}

.prod-pairing > .button,
.prod-screen > .button {
  justify-self: start;
  width: fit-content;
}

.prod-camera-info,
.prod-ai {
  width: fit-content;
  max-width: 100%;
  padding: .35rem .65rem;
  border-radius: 8px;
  background: #211b36;
  border: 1px solid #594d78;
  color: #efe7ff;
  font-size: .82rem;
}

.prod-camera-info {
  position: absolute;
  bottom: .7rem;
  left: .7rem;
}

.prod-camera-info.is-recording {
  border-color: #ff8296;
}

.prod-frame > .prod-ai {
  position: absolute;
  bottom: .7rem;
  right: .7rem;
}


.prod :where(button, select, input[type=date], input[type=file], summary),
.prod-screen button {
  min-height: 48px;
}

.prod input[type=file] {
  max-width: 100%;
  color: var(--text, #f8f6ff);
  font: inherit;
}

.prod input::file-selector-button {
  min-height: 48px;
  margin-inline-end: .45rem;
  padding-inline: .5rem;
  border: 1px solid var(--line, #343149);
  border-radius: 8px;
  background: #29223f;
  color: inherit;
  font: inherit;
}

.prod-field {
  display: grid;
  min-width: 0;
  gap: .35rem;
  font-size: .92rem;
}

.prod-field :is(select, input) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: .55rem;
  border: 1px solid var(--line, #343149);
  border-radius: 10px;
  color: var(--text, #f8f6ff);
  background: var(--surface, #181725);
  font: inherit;
  color-scheme: dark;
}

.prod :is(button, input, select, a, summary):focus-visible {
  outline: 2px solid #bdafff;
  outline-offset: 3px;
}

.prod-transfers,
.prod-review-list,
.prod-schedule,
.prod-kit-files ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prod-transfers li {
  display: grid;
  gap: .25rem;
  padding-block: .45rem;
  overflow-wrap: anywhere;
}

.prod-transfers progress {
  width: 100%;
  accent-color: var(--prod-cyan);
}

.prod-status {
  border-radius: 9px;
  background: #272638;
  color: #e4dff4;
  padding: .45rem .6rem;
  font-size: .79rem;
  line-height: 1.25;
}

.prod-status strong {
  display: block;
  font-size: 1.34rem;
  margin-block-end: .15rem;
}

.prod-green { color: #a7f5ce; background: #163427; }
.prod-yellow { color: #ffe4a0; background: #403014; }
.prod-red { color: #ffb8c5; background: #4a2332; }

.prod-review-list {
  border-top: 1px solid var(--line, #343149);
}

.prod-review-list li,
.prod-schedule li {
  border-bottom: 1px solid var(--line, #343149);
}

.prod-review-list summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 60px;
  padding: .5rem .3rem;
  gap: .55rem;
  cursor: pointer;
  list-style: none;
  overflow-wrap: anywhere;
}

.prod-review-list summary > .prod-status {
  text-align: center;
  max-width: 8rem;
}

.prod-review-list summary::-webkit-details-marker {
  display: none;
}

.prod-review-list details[open] summary > span:first-child {
  color: #ede3ff;
}

.prod-review-body {
  display: grid;
  gap: .6rem;
  padding: .5rem 0 .85rem;
}

.prod-media {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .5rem;
  min-height: 125px;
  padding: 1.2rem;
  color: #e3daf8;
  text-align: center;
}

.prod-video {
  display: grid;
  gap: .5rem;
}

.prod-video video {
  width: min(100%, 360px);
  max-height: 460px;
  background: #10101a;
  border-radius: 12px;
}

.prod-dates {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: end;
  gap: .55rem;
}

.prod-dates button {
  padding: 0;
  font-size: 1.45rem;
}

.prod-date-label {
  text-transform: capitalize;
}

.prod-schedule li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
}

.prod-schedule time {
  padding-block: .75rem;
  color: var(--prod-cyan);
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
}

.prod-schedule :is(button[data-plan], summary) {
  width: 100%;
  padding: .65rem .15rem;
  text-align: start;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.prod-zodiacs {
  padding-block-end: .7rem;
}

.prod-zodiacs .button {
  padding-inline: .25rem;
  font-size: .85rem;
}

.prod-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
  gap: .75rem;
  align-items: start;
}

.prod-preview-layout ol {
  margin: .45rem 0;
  padding-inline-start: 1.2rem;
}

.prod-preview-art {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .5rem;
  padding: .5rem;
  min-height: 140px;
  text-align: center;
  font-size: .8rem;
}

.prod-kit-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--prod-glass);
  border-radius: 14px;
}

.prod-kit-files a,
.prod-kit-files li {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.prod-outlets > .panel {
  display: grid;
  align-content: start;
  gap: .35rem;
}

.prod-screen {
  display: grid;
  gap: 1rem;
  align-content: center;
  min-height: 90vh;
  max-width: 75ch;
  margin: auto;
  padding: 1rem;
}

.prod-screen [data-text] {
  font-size: clamp(1.5rem, 4vw, 3rem);
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.prod-print {
  display: none;
}

@media (min-width: 760px) {
  .prod-option {
    min-height: 110px;
    padding: 1rem;
  }

  .prod-status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (prefers-reduced-motion: reduce) {
  .prod-option { transition: none; }
}

@media print {
  body:has(> .prod-print) > :not(.prod-print) {
    display: none !important;
  }

  body:has(> .prod-print) {
    color: #000;
    background: #fff;
  }

  .prod-print {
    display: block;
    font: 11pt/1.35 system-ui, sans-serif;
  }

  .prod-print article {
    break-inside: avoid;
  }

  .prod-print h2 {
    margin-bottom: .2em;
    font-size: 11pt;
  }

  .prod-print p {
    margin-top: 0;
  }
}

.prod-end-card {
  display: block;
  margin-block: .65rem;
  padding: .5rem .65rem;
  border-inline-start: 2px solid var(--accent);
  background: #211b36;
  overflow-wrap: anywhere;
}
.prod-pair-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(104px, 30vw, 128px);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101725;
}
.prod-pair-card output {
  display: block;
  margin-block: 4px 8px;
  color: #a7f2ff;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.35rem, 6vw, 2.1rem);
  font-weight: 750;
  letter-spacing: .14em;
}
.prod-pair-card a { display: inline-flex; align-items: center; min-height: 48px; color: #c9c1ff; }
.prod-pair-card canvas { width: 100%; height: auto; border-radius: 6px; }
.prod-remote {
  display: grid;
  gap: 20px;
  max-width: 520px;
  margin: clamp(24px, 8vh, 75px) auto;
  border-top: 2px solid #8e75ff;
}
.prod-remote header, .prod-remote-live { display: grid; gap: 12px; }
.prod-remote h1, .prod-remote p { margin: 0; }
.prod-remote [data-remote-account]:empty { display: none; }
.prod-remote [data-remote-account] .account { padding: 0; border: 0; box-shadow: none; background: none; }
.prod-remote [data-remote-line] {
  padding: 18px;
  border-radius: 12px;
  background: #0b0d14;
  font-size: clamp(1.18rem, 4.8vw, 1.65rem);
  color: #f3efff;
  overflow-wrap: anywhere;
}
.prod-remote-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.prod-remote-controls .button { padding-inline: 5px; }
.prod-upload .prod-prompter { padding: 14px; background: #0b0d14; border-radius: 12px; }
.prod-approval { display: grid; gap: 10px; padding-block-end: 14px; border-bottom: 1px solid var(--line); }
.prod-approval h3 { margin: 0; }
