/* Shared layout for template creation screens. */
.price-photo-view {
    --utility-bg: #30302e;
    --utility-panel: #3b3b37;
    --utility-raised: #454540;
    --utility-ink: #fbf8ef;
    --utility-muted: #d8d5c9;
    --utility-edge: #62625a;
    background: radial-gradient(ellipse at 50% 3%, #3e3e39, var(--utility-bg) 60%);
}

.price-photo-view .site-footer {
    --ink: var(--utility-ink);
    --muted: var(--utility-muted);
    color: var(--ink);
}

.price-photo-view .site-footer :focus-visible { outline-color: var(--signal); }

.price-photo-view .bar {
    min-height: 63px;
    padding-inline: max(clamp(16px, 4vw, 60px), calc((100% - 1136px) / 2));
    border-color: #64645b;
    color: var(--utility-ink);
    background: #30302d;
}

.price-photo-view .brand-symbol { width: 34px; height: 34px; }
.price-photo-view .brand > span { display: none; }
.price-photo-nav { display: flex; align-items: center; gap: 12px; }

.price-photo-template-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.price-photo-template-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.price-photo-view :is(.bar, .price-photo-start) :focus-visible { outline-color: var(--signal); }
.price-photo-view .home-content { width: min(100% - 32px, 660px); }

.price-photo-view .price-photo-intake {
    max-width: none;
    padding: clamp(24px, 4.1vw, 48px) 0 clamp(37px, 6vw, 76px);
    margin: 0;
    border: 0;
    background: transparent;
}

.price-photo-intake #source-heading {
    color: var(--utility-ink);
    font: 750 clamp(34px, 5vw, 54px)/1.08 var(--brand-sans);
    letter-spacing: -.018em;
    overflow-wrap: normal;
    text-align: center;
    text-wrap: balance;
}

.price-photo-intake .price-photo-intro {
    max-width: 46ch;
    margin: 10px auto 0;
    color: var(--utility-muted);
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.48;
    text-align: center;
    text-wrap: balance;
}

.price-photo-view.intake-focused .price-photo-intro { display: none; }

.price-photo-start {
    margin-top: 0;
}

.price-photo-start {
    min-width: 0;
    padding: clamp(15px, 2.6vw, 28px);
    border: 1px solid var(--utility-edge);
    border-radius: 13px;
    background: var(--utility-panel);
    color: var(--utility-ink);
    box-shadow: 0 14px 32px #16161231;
}

.price-photo-view:not(.intake-focused) .price-photo-start { margin-top: clamp(20px, 2.6vw, 29px); }

.price-photo-start .intake-pickers {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--action-gap);
}

.price-photo-start .intake-pickers :is(.file-choice, .intake-file-drop) {
    grid-column: auto;
    min-height: 55px;
    padding: 9px 13px;
    margin: 0;
    border: 1px solid #817f73;
    border-radius: 8px;
    background: var(--utility-raised);
    color: var(--utility-ink);
    font-size: 15px;
    font-weight: 750;
}

.price-photo-start .intake-pickers .intake-file-drop {
    border-style: dashed;
    border-color: #b9ae83;
    background: #353530;
}

.price-photo-start .intake-pickers .intake-file-drop:is(:hover, .is-file-over) { background: #42423a; }
.price-photo-start .intake-file-drop:focus-within { outline-color: var(--signal); }

.price-photo-view .price-photo-start :is(.intake-pickers .price-photo-primary, #parse-paste) {
    border-color: var(--signal);
    background: var(--signal);
    color: #24251e;
}

.price-photo-view .price-photo-start :is(.intake-pickers .price-photo-primary, #parse-paste):hover {
    filter: none;
    border-color: #ffe270;
    background: #ffe270;
}

.price-photo-view .price-photo-start .intake-file-drop.price-photo-primary { border-style: solid; }

.price-photo-start--text .intake-pickers {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--utility-edge);
}

.price-photo-start--text .price-photo-paste { margin-top: 0; }

.price-photo-intake .price-photo-formats {
    margin: var(--action-content-space) 0 0;
    color: var(--utility-muted);
    font-size: 12.5px;
    text-align: center;
}

.price-photo-secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--action-gap);
    margin-block-start: var(--action-content-space);
    padding-top: 6px;
    border-top: 1px solid var(--utility-edge);
}

.price-photo-secondary .price-photo-text {
    min-height: 44px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--utility-muted);
    font-size: 13px;
    font-weight: 650;
    text-align: start;
}

.price-photo-secondary .price-photo-text:hover {
    filter: none;
    color: var(--utility-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.price-photo-secondary [data-photo-src] { gap: 5px; color: #ffe175; }

.price-photo-paste label { display: block; font-size: 14px; font-weight: 750; }

.price-photo-paste :is(#menu-paste, #video-page-title) {
    display: block;
    width: 100%;
    min-height: 108px;
    margin: 8px 0 7px;
    padding: 10px 12px;
    border: 1px solid #89877b;
    border-radius: 8px;
    background: #2b2b27;
    color: var(--utility-ink);
    font: 400 16px/1.5 var(--brand-sans);
}

.price-photo-paste :is(#menu-paste, #video-page-title)::placeholder { color: #c0beb1; }
.price-photo-paste #menu-paste[aria-invalid="true"] { border-color: #ffacab; }
.price-photo-paste .video-intake-title { margin-top: 16px; }
.price-photo-paste-actions { display: flex; flex-wrap: wrap; gap: var(--action-gap); margin-top: var(--action-content-space); }
@media (max-width: 767px) {
    .price-photo-paste-actions:has(> button + button) > button { padding-inline: 8px; }
}
.price-photo-paste :is([data-utility-paste-hint], [role="status"]) { color: var(--utility-muted); font-size: 13px; }
.price-photo-paste [role="status"]:empty { display: none; }
.price-photo-paste [role="status"]:not(:empty) { margin: 8px 0 0; }
.price-photo-intake :is(#intake-source-tools, #source-status) { color:var(--utility-ink); }
.price-photo-intake :is(.photo-undo, .photo-queue, #source-files) .plain,
.price-photo-intake .scan-language-option summary { color:#ffe175; }
.price-photo-intake :is(.scan-language-option, .photo-queue) .hint,
.price-photo-intake #pending-scan-credit-cost { color:var(--utility-muted); }
.price-photo-intake .source-files .source-error { color:#ffb6ad; }
.price-photo-intake :is(.photo-pending-pdfs, #source-files, .scan-language-option) :focus-visible {
    outline-color:var(--signal);
}

@media (max-width: 600px) {
    .price-photo-view .bar { min-height: 59px; }
    .price-photo-view .price-photo-intake { padding-block: 24px 33px; }
    .price-photo-intake #source-heading { font-size: clamp(36px, 10.9vw, 52px); text-align: left; }
    .price-photo-intake .price-photo-intro { margin: 8px 0 0; text-align: left; }
    .price-photo-view:not(.intake-focused) .price-photo-start { margin-top: 19px; }
    .price-photo-start .intake-pickers :is(.file-choice, .intake-file-drop) { min-height: 50px; }
    .price-photo-secondary { justify-content: flex-start; }
}

.price-photo-paste input:is(#menu-paste, #video-page-title) { min-height: 46px; }
.priority-cover-field { margin-block: 14px 12px; }
.price-photo-start .intake-image-drop {
    --drop-edge: #a2946d;
    --drop-surface: #312e27;
    --drop-hover: #3b362b;
    --drop-ink: var(--utility-ink);
    --drop-focus: var(--signal);
    display: flex;
    justify-content: flex-start;
    min-height: 68px;
    gap: 12px;
    padding: 12px;
    border-width: 1px;
    text-align: left;
}
.intake-image-drop input { margin: 0; }
.intake-image-drop-copy { min-width: 0; }
.intake-image-drop-copy small {
    display: block;
    margin-block-start: 3px;
    color: var(--utility-muted);
    font-size: 13px;
    font-weight: 400;
    overflow-wrap: anywhere;
}
.intake-image-drop-icon {
    display: grid;
    flex: 0 0 36px;
    height: 36px;
    place-items: center;
    border-radius: 9px;
    color: var(--signal);
    background: #48402a;
}
.intake-image-drop-icon .ui-icon { width: 19px; height: 19px; }
.file-drop-field > .file-drop-status { color: var(--utility-muted, var(--muted)); font-size: 13px; }
.podcast-feed-finder { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 16%); }
.podcast-feed-finder summary { cursor: pointer; font-weight: 750; }
.podcast-feed-finder .hint { color: var(--utility-muted); font-size: 13px; }
.podcast-feed-finder input { display: block; width: 100%; margin: 6px 0 10px; }
.podcast-feed-finder ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.podcast-feed-finder ul:empty { display: none; }
.podcast-feed-finder li { display: grid; gap: 4px; padding: 10px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 8px; }
.podcast-feed-finder li button { justify-self: start; }

/* Podcast creation */
.price-photo-view .home-content:has(.podcast-intake) { width: min(100% - 40px, 1032px); }

.podcast-intake #source-heading {
    margin: 0 0 clamp(20px, 3.5vw, 37px);
    font-size: clamp(41px, 6.2vw, 80px);
    text-align: left;
}

.podcast-intake .price-photo-start {
    margin-top: 0;
    padding: 0;
    border: 1px solid #656058;
    border-radius: 22px;
    background: #272622;
    box-shadow: 0 22px 64px #1a191682;
}

.podcast-intake-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: start;
    gap: clamp(16px, 4vw, 52px);
    padding: clamp(18px, 4vw, 44px);
}

.podcast-intake #paste-option { min-width: 0; padding: 0; border: 0; background: transparent; }
.podcast-intake #menu-paste { min-height: 54px; border-radius: 10px; background: #35332d; }
.podcast-intake [data-utility-paste-hint] { margin: 0; }
.podcast-intake #menu-paste[aria-invalid="true"] { border-color: #ffacab; }
.podcast-intake label { letter-spacing: .005em; }

.podcast-image-input { margin-block: 22px 18px; }
.podcast-image-actions { display: flex; flex-wrap: wrap; gap: var(--action-gap); margin-top: var(--action-content-space); }
.podcast-image-actions button.secondary {
    min-height: 44px;
    padding: 3px 0;
    border: 0;
    color: #ffe7a6;
    background: transparent;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.podcast-image-actions[hidden], .podcast-image-detail[hidden] { display: none; }
.podcast-image-detail { margin: 6px 0 13px; }
.podcast-image-detail textarea { min-height: 70px; margin: 5px 0; }
.podcast-image-detail .podcast-note-choice { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.podcast-note-choice input { accent-color: var(--signal); }

.podcast-intake .price-photo-paste-actions { align-items: center; }
.podcast-intake #parse-paste, .podcast-intake [data-use-utility-example] { min-height: 48px; border-radius: 9px; }
.podcast-intake #parse-paste { display: inline-flex; align-items: center; gap: 10px; padding-inline: 15px; }
.podcast-intake #parse-paste .ui-icon { width: 16px; height: 16px; }
.podcast-intake [data-use-utility-example] { color: var(--utility-ink); background: transparent; border-color: #817968; }
.podcast-intake [data-use-utility-example]:hover { border-color: var(--signal); }
.podcast-intake .podcast-feed-finder { margin-top: 19px; padding-top: 4px; }
.podcast-intake .podcast-feed-finder summary { min-height: 44px; display: flex; align-items: center; gap: 8px; }
.podcast-intake :is(.podcast-feed-finder input, .podcast-image-detail textarea) {
    width: 100%;
    border: 1px solid #898477;
    border-radius: 8px;
    color: var(--utility-ink);
    background: #35332d;
}

.podcast-intake-example {
    position: relative;
    display: grid;
    align-items: end;
    min-width: 0;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    border-radius: 15px;
    background: #4a3e2b;
    color: #fff9e9;
    aspect-ratio: 1.06;
}
.podcast-intake-example img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.podcast-intake-example::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    background: linear-gradient(180deg, transparent 18%, #1f1b14a8 62%, #16140ff5 100%);
}
.podcast-intake-example figcaption { display: grid; gap: 6px; padding: clamp(16px, 2.7vw, 29px); }
.podcast-intake-example figcaption > span:first-child { font-size: 13px; font-weight: 700; }
.podcast-intake-example strong { font: 400 clamp(36px, 4vw, 57px)/1 var(--brand-serif); }
.podcast-example-episode {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    padding-top: 10px;
    border-top: 1px solid #fff9e966;
    font-size: 14px;
}
.podcast-example-episode .ui-icon { width: 16px; height: 16px; color: var(--signal); }

@media (max-width: 700px) {
    .price-photo-view .home-content:has(.podcast-intake) { width: min(100% - 32px, 470px); }
    .podcast-intake-layout { grid-template-columns: minmax(0, 1fr); }
    .podcast-intake-example { min-height: 0; aspect-ratio: 1.65; }
    .podcast-intake-example img { object-position: center 42%; }
}

.property-intake-options {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}
.property-intake-options label { display: grid; gap: 6px; font-size: 14px; font-weight: 750; }
.property-intake-options select {
    min-height: 46px;
    margin: 0;
    border: 1px solid #89877b;
    border-radius: 8px;
    padding: 8px 10px;
    background: #2b2b27;
    color: var(--utility-ink);
}
.property-intake-options p { color: var(--utility-muted); font-size: 13px; }
.property-intake-options p { margin: 0; }
.property-cover-field { margin-top: 17px; }

.product-cover-option {
    display: grid;
    gap: 6px;
    margin-block-end: 12px;
}
.product-cover-option[hidden] { display: none; }
.product-cover-option label { font-weight: 700; }
.product-cover-option select {
    width: 100%;
    min-height: 44px;
}
#product-cover-preview {
    object-fit: contain;
    border-radius: 6px;
    background: var(--tint);
}
