/* Production adaptations to the delivered order prototype. Admin never loads this file. */
.od-id { overflow-wrap: anywhere; }
.od-page #notice { position: sticky; top: calc(var(--h-top) + 8px); z-index: 25; margin-bottom: var(--sp-4); overflow-wrap: anywhere; }
.od-page .consent-panel { margin-bottom: var(--sp-5); }
#overseas-consent-section { scroll-margin-top: calc(var(--h-top) + 24px); }
.consent-panel .check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent-panel input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.consent-panel details { margin: var(--sp-3) 0; color: var(--ink-2); font-size: var(--fs-sm); }
.consent-panel li { margin-top: 10px; overflow-wrap: anywhere; }
.consent-panel button { min-height: 44px; padding: 10px 20px; border: 1px solid var(--accent); border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.ac-order__thumb, .od-summary-thumb { display: grid; place-items: center; overflow: hidden; }
.ac-order__thumb img, .od-summary-thumb img { width: 100%; height: 100%; object-fit: cover; }
.od-draft-preview { aspect-ratio: 3 / 4; background: linear-gradient(110deg, #17171c, #25252d, #17171c); background-size: 220% 100%; animation: od-draft-loading 2s ease-in-out infinite; }
.od-draft-preview.is-loaded { animation: none; }
@keyframes od-draft-loading { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .od-draft-preview { animation: none; } }
.od-draft-preview > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.od-draft .od-zoom { top: auto; bottom: 42px; width: 44px; height: 44px; }
.od-chosen-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.od-chosen-media { display: block; width: 100%; max-height: 200px; }
.od-final-player { width: 100%; height: auto; max-height: 70svh; background: #000; border-radius: var(--r-md); }
.od-downloads { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: var(--sp-4); }
.od-downloads .ac-btn { white-space: normal; text-align: left; }
.od-download-link { margin-top: var(--sp-3); }
.od-brief { font: inherit; font-size: var(--fs-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.od-ev-note, .od-quote { white-space: pre-wrap; }
.od-viewer { padding: 0; align-items: stretch; }
.od-viewer .ac-modal__panel { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; background: var(--bg); }
.od-viewer .ac-modal__panel::before { display: none; }
.od-viewer .ac-modal__head { flex: none; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.od-viewer .ac-modal__title { font: 600 16px/1.5 var(--ui); }
.od-viewer-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
.od-viewer-scroll img { position: static; display: block; width: min(100%, 1080px); max-width: none; height: auto; margin: 0 auto; }
.od-viewer .ac-modal__foot { flex: none; flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 12px calc(12px + var(--safe-b)); }
.od-viewer .ac-btn { min-width: 0; padding: 0 12px; font-size: 14px; flex: 1; }
.od-viewer .ac-btn--primary { flex: 1.4; }
#od-modal-error { margin: 0 20px 12px; }

/* The form keeps its three steps, field order and controls. Only dark colours
   and the original plain layout are applied locally to its containing panel. */
#legacy-intake { margin-top: var(--sp-5); max-width: 800px; }
#order-detail > :not(#order-requirements-details):not(.legacy-uploads) { display: none !important; }
#legacy-intake details { margin: 20px 0; }
#legacy-intake summary { cursor: pointer; color: var(--ink-2); padding: 12px 0; }
#legacy-intake section { padding: 24px; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
#legacy-intake h2 { margin: 0 0 18px; font-size: 20px; }
#legacy-intake h3 { margin: 24px 0 12px; font-size: 16px; }
#legacy-intake p { margin: 10px 0; }
#legacy-intake .muted { color: var(--ink-2); font-size: 14px; }
#legacy-intake label { display: block; font-size: 14px; font-weight: 600; margin-top: 12px; }
#legacy-intake :is(input, textarea, select) { display: block; width: 100%; min-height: 45px; margin: 6px 0 13px; padding: 10px 12px; border: 1px solid var(--line-3); border-radius: 3px; color: var(--ink); background: var(--surface-2); font-size: 16px; }
#legacy-intake textarea { resize: vertical; }
#legacy-intake input[type="checkbox"], #legacy-intake input[type="radio"] { width: 20px; height: 20px; min-height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
#legacy-intake button { min-height: 44px; padding: 8px 17px; background: var(--accent); border: 1px solid var(--accent); border-radius: 4px; color: var(--accent-ink); cursor: pointer; line-height: 1.4; }
#legacy-intake :is(.secondary, .quiet) { background: transparent; color: var(--ink); border-color: var(--line-3); }
#legacy-intake button:disabled { opacity: .5; cursor: not-allowed; }
#legacy-intake a { color: var(--accent); }
#legacy-intake .check, #legacy-intake .style-choice { display: flex; gap: 10px; align-items: center; }
#legacy-intake fieldset { margin: 18px 0; border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
#legacy-intake fieldset .check { display: inline-flex; margin: 5px 14px 5px 0; }
#legacy-intake :is(.actions, .voiceover-pause-controls) { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
#legacy-intake .upload-form { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; }
#legacy-intake .intake-steps { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
#legacy-intake .intake-steps .current { color: var(--accent); font-weight: 700; }
#legacy-intake :is(.style-cards, .files) { display: grid; gap: 16px; margin-top: 16px; }
#legacy-intake :is(.style-card, .file, .voice-sample) { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 4px; overflow-wrap: anywhere; }
#legacy-intake .style-card:has(input:checked) { border-color: var(--accent); }
#legacy-intake :is(.style-card img, .style-card video, audio) { display: block; width: 100%; margin: 12px 0; }
#legacy-intake :is(.style-card img, .style-card video) { aspect-ratio: 16 / 9; object-fit: contain; }
#legacy-intake pre { font: inherit; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
#legacy-intake .requirement dt { margin-top: 12px; color: var(--ink-2); font-size: 13px; }
#legacy-intake .requirement dd { margin: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#legacy-intake .price strong { font-size: 36px; line-height: 1.2; }
#legacy-intake #voiceover-pronunciations { max-height: 540px; overflow: auto; }
#legacy-intake .voiceover-pause { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
#legacy-intake #voiceover-editor { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 4px; }
#legacy-intake .voiceover-pause-controls input { width: 110px; margin: 0; }
#legacy-intake progress { max-width: 100%; accent-color: var(--accent); }
@media(min-width: 640px) { #legacy-intake .style-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 420px) {
  .ac-top__right { gap: 4px; }
  .ac-top-link { padding: 7px 9px; font-size: 12px; }
  .ac-top #logout { padding: 0 10px; font-size: 12px; }
  #legacy-intake section { padding: 19px; }
  .od-now { font-size: 28px; }
}

/* polish v1: loading / error / missing states + Plyr theme */
.od-loading { display: grid; gap: 14px; padding-top: 8px; }
.od-loading .ac-skeleton { display: block; height: 76px; border-radius: var(--r-md, 14px); }
.od-loading .od-sk--title { width: 46%; height: 40px; margin-bottom: 6px; }
@media (min-width: 1024px) { .od-loading { max-width: 760px; } }
#login-error, #load-error, .od-missing { display: grid; justify-items: center; gap: 10px; text-align: center; }
#login-error[hidden], #load-error[hidden], .od-loading[hidden] { display: none; }
.od-missing__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.od-film .plyr { --plyr-color-main: var(--accent, #F3B544); --plyr-video-background: #000; --plyr-font-family: inherit; --plyr-control-radius: 8px; border-radius: var(--r-sm, 10px); overflow: hidden; }
.od-film .plyr--video .plyr__control--overlaid { background: rgba(9, 9, 11, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.od-film .plyr--video .plyr__control--overlaid:hover { background: rgba(9, 9, 11, .9); }
.od-film .plyr__menu__container { --plyr-menu-background: #18181b; --plyr-menu-color: #f4f4f5; }

/* Review round B: readable decisions and downloads on narrow screens. */
.od-page :is(.ac-text-3, .ac-empty__text, .ac-order__meta, .ac-actionbar__label, .od-foot),
.od-page .ac-price__row--sub, .od-page .ac-next--idle .ac-next__label { color: var(--ink-2); }
.consent-panel h2 { margin-bottom: var(--sp-4); }
.od-draft .ac-style-card__name { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.od-draft .od-zoom { top: 8px; bottom: auto; }
.od-swipe-hint { margin-bottom: var(--sp-3); }
.od-revision-state { margin-bottom: var(--sp-4); }
.od-revision-quote .od-missing__acts { justify-content: flex-start; margin-top: var(--sp-4); }
.od-list .ac-order:has([data-status="revision_quoted"]) .ac-order__price { color: var(--ink-2); font-size: var(--fs-xs); font-weight: 400; }
.od-list .ac-order:has([data-status="revision_quoted"]) .od-order-status { color: var(--accent); font-weight: 600; }
.od-order-status { white-space: normal; text-align: right; }
.od-draft-row + .od-draft-row { border-top: 1px solid var(--line); margin-top: var(--sp-3); padding-top: var(--sp-3); }
.od-draft-actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-3); }
@media (max-width: 639px) {
  .od-film-download { width: 100%; justify-content: center; text-align: center; }
  .od-list .ac-order { grid-template-columns: 60px minmax(0, 1fr); }
  .od-list .ac-order__thumb { width: 60px; grid-row: 1 / 4; }
  .od-list :is(.ac-order__price, .od-order-status) { grid-column: 2; justify-self: start; text-align: left; }
  .od-list .ac-order__price { font-size: var(--fs-xs); font-weight: 400; color: var(--ink-2); }
  .od-order .ac-actionbar:has(#od-select) { flex-wrap: wrap; }
  .od-order .ac-actionbar:has(#od-select) .ac-actionbar__info { flex-basis: 100%; }
  #od-select { width: 100%; }
  body.ac-has-actionbar:has(#od-select) { padding-bottom: calc(140px + var(--safe-b)); }
  .od-viewer .ac-modal__foot { flex-wrap: wrap; }
  .od-viewer #viewer-select { flex-basis: 100%; order: 3; }
}
@media (min-width: 1024px) { .od-swipe-hint { display: none; } }
