/* Portrait design studio */
.portrait-studio {
    background: linear-gradient(180deg, #faf7f2 0%, #fff 240px);
}

.portrait-steps .portrait-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(61, 43, 31, 0.12);
    color: rgba(61, 43, 31, 0.55);
    font-size: 0.85rem;
    font-weight: 600;
}

.portrait-steps .portrait-step-pill .step-num {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 43, 31, 0.08);
    font-size: 0.75rem;
}

.portrait-steps .portrait-step-pill.active {
    border-color: var(--tea-accent, #d4af37);
    color: #3d2b1f;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.18);
}

.portrait-steps .portrait-step-pill.active .step-num {
    background: var(--tea-accent, #d4af37);
    color: #fff;
}

.portrait-steps .portrait-step-pill.completed {
    color: #3d2b1f;
}

.portrait-steps .portrait-step-pill--nav {
    cursor: pointer;
    user-select: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.portrait-steps .portrait-step-pill--nav:hover {
    border-color: var(--tea-accent, #d4af37);
    color: #3d2b1f;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.22);
    transform: translateY(-1px);
}

.portrait-steps .portrait-step-pill--nav:hover .step-num {
    background: rgba(212, 175, 55, 0.28);
    color: #3d2b1f;
}

.portrait-steps .portrait-step-pill--nav:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.14);
    background: rgba(212, 175, 55, 0.16);
}

.portrait-steps .portrait-step-pill--nav:focus-visible {
    outline: 2px solid var(--tea-accent, #d4af37);
    outline-offset: 2px;
}

.portrait-upload-zone {
    border: 2px dashed rgba(61, 43, 31, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.portrait-upload-zone:hover {
    border-color: var(--tea-accent, #d4af37);
    background: rgba(212, 175, 55, 0.06);
}

.portrait-photo-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.portrait-step-scope {
    background: #faf7f2;
}

.portrait-step-scope-list {
    list-style: none;
    padding-left: 0;
}

.portrait-step-scope-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.25rem;
}

.portrait-step-scope-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(61, 43, 31, 0.35);
    font-weight: 600;
}

#ai-subject-confirm .card-body {
    background: #faf7f2;
}

#ai-generation-direction.alert-success {
    background: rgba(25, 135, 84, 0.08);
}

#step2-direction-card .card-body {
    background: #faf7f2;
}

.portrait-photo-remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    opacity: 0.9;
}

.portrait-choice-card {
    border: 2px solid rgba(61, 43, 31, 0.1);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.portrait-choice-card:hover,
.portrait-choice-card.selected {
    border-color: var(--tea-accent, #d4af37);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.15);
}

.portrait-size-mockup {
    aspect-ratio: 1;
    background: #d4c8bc;
    border-radius: 8px;
    overflow: hidden;
}

.portrait-size-mockup__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.portrait-style-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.625rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.125rem 0.25rem 0.375rem;
    margin: 0 -0.25rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 43, 31, 0.25) transparent;
}

.portrait-style-grid::-webkit-scrollbar {
    height: 5px;
}

.portrait-style-grid::-webkit-scrollbar-thumb {
    background: rgba(61, 43, 31, 0.25);
    border-radius: 999px;
}

.portrait-style-grid .style-card-wrap {
    flex: 0 0 104px;
    width: 104px;
    max-width: 104px;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .portrait-style-grid .style-card-wrap {
        flex-basis: 116px;
        width: 116px;
        max-width: 116px;
    }
}

@media (min-width: 992px) {
    .portrait-style-grid .style-card-wrap {
        flex-basis: 128px;
        width: 128px;
        max-width: 128px;
    }
}

.portrait-choice-card.portrait-style-card {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portrait-style-card__img {
    width: 100%;
    height: auto;
    max-height: 160px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #ede4d4;
    pointer-events: none;
    user-select: none;
}

.portrait-style-card__body {
    border-top: 1px solid rgba(61, 43, 31, 0.08);
    padding: 0.375rem 0.5rem;
    flex: 1 1 auto;
}

.portrait-style-card__body strong {
    font-size: 0.8125rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portrait-style-card__badge {
    display: inline-block;
    margin-top: 0.2rem;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #3d2b1f;
    background: rgba(212, 175, 55, 0.22);
}

.portrait-style-card--recommended {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

.portrait-note-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.portrait-note-chip {
    border: 1px solid rgba(61, 43, 31, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #3d2b1f;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.portrait-note-chip:hover,
.portrait-note-chip:focus-visible {
    border-color: var(--tea-accent, #d4af37);
    background: rgba(212, 175, 55, 0.08);
    outline: none;
}

#style-guidance-banner {
    background: rgba(13, 110, 253, 0.06);
}

.portrait-addon-row {
    border: 1px solid rgba(61, 43, 31, 0.1);
    background: #fff;
    cursor: pointer;
}

.portrait-design-card {
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.portrait-design-card.border-primary {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.45);
}

.btn-select-design.active {
    box-shadow: 0 0 0 2px rgba(61, 43, 31, 0.18);
}

.studio-preview-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: min(520px, 70vh);
    background: rgba(61, 43, 31, 0.03);
}

.studio-preview-img--zoomable {
    cursor: zoom-in;
}

.studio-preview-img--zoomable:focus {
    outline: 2px solid rgba(212, 175, 55, 0.65);
    outline-offset: 2px;
}

.studio-preview-zoom {
    position: relative;
    display: block;
}

.studio-preview-zoom__hint {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(26, 21, 18, 0.72);
    color: #f8f6f2;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    pointer-events: none;
    opacity: 0.92;
    transition: opacity 0.15s ease;
}

.studio-preview-zoom__hint .fa-expand {
    font-size: 0.62rem;
}

.studio-preview-zoom-caption {
    line-height: 1.4;
}

.studio-preview-lightbox .modal-content.studio-preview-lightbox__content {
    background: #1a1512;
    color: #f8f6f2;
    border: 1px solid rgba(248, 246, 242, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.studio-preview-lightbox__header,
.studio-preview-lightbox__footer {
    background: transparent;
}

.studio-preview-lightbox__body {
    position: relative;
    min-height: min(50vh, 480px);
    max-height: calc(100vh - 8rem);
    overflow: auto;
}

.studio-preview-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: min(85vh, 1400px);
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 6px;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.studio-preview-lightbox__img.is-loading {
    opacity: 0.25;
}

.studio-preview-lightbox__spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.studio-preview-lightbox__disclaimer {
    max-width: 36rem;
    color: rgba(248, 246, 242, 0.65) !important;
}

@media (max-width: 575.98px) {
    .studio-preview-zoom__hint {
        font-size: 0.64rem;
    }
}

.studio-step4-summary {
    text-align: center;
}

.studio-step4-summary__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.studio-step4-summary__chip {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: #fff;
    border: 1px solid rgba(61, 43, 31, 0.12);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3d2b1f;
}

.studio-step4-summary__chip--muted {
    color: rgba(61, 43, 31, 0.65);
    font-weight: 500;
}

.studio-compare-item--selectable .studio-compare-item__actions {
    padding: 0.75rem;
    text-align: center;
}

.studio-compare-item--info {
    display: flex;
    flex-direction: column;
}

.studio-compare-item__info-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.studio-compare-item .studio-preview-img {
    border-radius: 0 0 12px 12px;
}

.portrait-checkout-banner img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.creative-path-btn.selected {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

.subject-element-card {
    background: rgba(255, 255, 255, 0.85);
}

/* Creative direction — bounded guided flow */
.creative-guide {
    margin-top: 1.25rem;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid rgba(61, 43, 31, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61, 43, 31, 0.06);
}

.creative-guide__header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.creative-guide__avatar {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    color: var(--tea-accent, #b8941f);
    font-size: 1rem;
}

.creative-guide__eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(61, 43, 31, 0.45);
}

.creative-guide__identified {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3d2b1f;
    line-height: 1.45;
}

.creative-guide__summary {
    font-size: 0.925rem;
    color: rgba(61, 43, 31, 0.75);
    line-height: 1.55;
    margin-bottom: 1.15rem;
}

.creative-guide__hint {
    font-size: 0.875rem;
    color: rgba(61, 43, 31, 0.6);
    margin-bottom: 0.85rem;
}

.creative-guide__cta {
    font-weight: 600;
    letter-spacing: 0.01em;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.creative-guide__link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.65rem;
    color: rgba(61, 43, 31, 0.55);
    text-decoration: none;
}

.creative-guide__link:hover {
    color: #3d2b1f;
}

.creative-guide__bubble {
    background: #f8f6f2;
    border-radius: 12px 12px 12px 4px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
}

.creative-guide__bubble-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(61, 43, 31, 0.45);
}

.creative-guide__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.creative-guide__option {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(61, 43, 31, 0.12);
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3d2b1f;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.creative-guide__option:hover {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.04);
}

.creative-guide__option.selected {
    border-color: var(--tea-accent, #d4af37);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.creative-guide__element {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(61, 43, 31, 0.08);
}

.creative-guide__element:last-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
}

.creative-guide__element-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3d2b1f;
}

.creative-guide__segmented {
    display: inline-flex;
    border-radius: 8px;
    border: 1px solid rgba(61, 43, 31, 0.12);
    overflow: hidden;
    background: #faf8f5;
}

.creative-guide__segment {
    border: none;
    background: transparent;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(61, 43, 31, 0.55);
    transition: background 0.15s, color 0.15s;
}

.creative-guide__segment + .creative-guide__segment {
    border-left: 1px solid rgba(61, 43, 31, 0.1);
}

.creative-guide__segment.active {
    background: #fff;
    color: #3d2b1f;
    box-shadow: 0 1px 3px rgba(61, 43, 31, 0.08);
}

.creative-guide__segment[data-action="remove"].active {
    background: rgba(220, 53, 69, 0.08);
    color: #b02a37;
}

.creative-guide__confirmed {
    display: flex;
    align-items: center;
    font-size: 0.925rem;
    font-weight: 600;
    color: #198754;
    padding: 0.5rem 0;
}

.creative-guide__note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(61, 43, 31, 0.55);
}

.creative-guide__note summary {
    cursor: pointer;
    user-select: none;
}

.creative-guide__note summary:hover {
    color: #3d2b1f;
}

.creative-guide__supplement {
    border-radius: 8px;
}

.creative-guide__direction-note {
    border-radius: 10px;
    resize: vertical;
    min-height: 3.25rem;
}

.creative-guide__composer {
    position: relative;
    z-index: 1;
}

.creative-guide__options--intents {
    margin-top: 0.35rem;
}

.creative-guide__thread {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.creative-guide__thread-row {
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.45;
}

.creative-guide__thread-row--assistant {
    background: rgba(61, 43, 31, 0.06);
    color: #3d2b1f;
}

.creative-guide__thread-row--user {
    background: rgba(139, 94, 60, 0.12);
    color: #3d2b1f;
    align-self: flex-end;
    max-width: 92%;
}

.creative-guide__confirmation-preview {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.18);
    color: #2e4a32;
}

.creative-guide__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.creative-guide__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(139, 94, 60, 0.1);
    color: #3d2b1f;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.creative-guide__plan {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(46, 125, 50, 0.06);
    border: 1px solid rgba(46, 125, 50, 0.16);
    color: #2e4a32;
}

.creative-guide__plan-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4a6741;
    margin-bottom: 0.35rem;
}

.creative-guide__plan-headline {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2e4a32;
}

.creative-guide__plan-list {
    padding-left: 1.15rem;
    margin-bottom: 0;
}

.creative-guide__plan-list li {
    margin-bottom: 0.35rem;
    line-height: 1.45;
}

.creative-guide__plan-list li:last-child {
    margin-bottom: 0;
}

.creative-guide__plan-note {
    font-size: 0.875rem;
    color: #3d5a35;
}

.creative-guide__plan-conversation summary {
    cursor: pointer;
    color: #4a6741;
}

.studio-summary-card__bullets {
    padding-left: 1.15rem;
    color: #5c4a3d;
    font-size: 0.9rem;
}

.studio-summary-card__bullets li + li {
    margin-top: 0.25rem;
}

/* Shared studio panels (Steps 2–5) */
.studio-summary-card {
    padding: 1.15rem 1.35rem;
    background: #fff;
    border: 1px solid rgba(61, 43, 31, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61, 43, 31, 0.06);
}

.studio-summary-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.studio-summary-card__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    font-size: 0.95rem;
}

.studio-summary-card__eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(61, 43, 31, 0.45);
}

.studio-summary-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3d2b1f;
    line-height: 1.45;
}

.studio-summary-card__meta {
    font-size: 0.85rem;
    color: rgba(61, 43, 31, 0.6);
    line-height: 1.45;
}

.studio-summary-card__actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(61, 43, 31, 0.08);
    font-size: 0.85rem;
}

.studio-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.studio-callout--info {
    background: rgba(13, 110, 253, 0.06);
    border: 1px solid rgba(13, 110, 253, 0.12);
    color: rgba(61, 43, 31, 0.85);
}

.studio-callout__icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: rgba(13, 110, 253, 0.75);
}

.studio-focus-card {
    position: relative;
    padding: 2rem 1.75rem;
    background: #fff;
    border: 1px solid rgba(61, 43, 31, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61, 43, 31, 0.06);
}

.studio-generating-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    border-radius: inherit;
    backdrop-filter: blur(2px);
}

.studio-step4-shell {
    position: relative;
    min-height: 16rem;
}

.studio-step4-shell > .studio-generating-overlay {
    border-radius: 16px;
}

.portrait-step-pill--disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

.studio-panel-card {
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid rgba(61, 43, 31, 0.08);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(61, 43, 31, 0.04);
}

.studio-panel-card--accent {
    border-color: rgba(212, 175, 55, 0.25);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, #fff 100%);
}

.studio-preview-frame {
    background: #f8f6f2;
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(61, 43, 31, 0.08);
}

.studio-preview-frame--selected {
    position: relative;
    min-height: 12rem;
}

.studio-preview-frame img {
    border-radius: 8px;
    display: block;
}

.studio-print-size-display {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #f8f6f2;
    border: 1px solid rgba(61, 43, 31, 0.08);
}

.studio-print-size-display strong {
    color: #3d2b1f;
}

.portrait-orientation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    max-width: 520px;
}

.portrait-orientation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    border: 1px solid rgba(61, 43, 31, 0.12);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portrait-orientation-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
}

.portrait-orientation-card.selected {
    border-color: rgba(212, 175, 55, 0.75);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.portrait-orientation-card__frame {
    display: block;
    border: 2px solid rgba(61, 43, 31, 0.35);
    border-radius: 3px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.12), rgba(61, 43, 31, 0.04));
}

.portrait-orientation-card__frame--portrait {
    width: 2.5rem;
    height: 3.25rem;
}

.portrait-orientation-card__frame--landscape {
    width: 3.25rem;
    height: 2.5rem;
}

.studio-disclaimer {
    line-height: 1.5;
}

.studio-compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .studio-compare-row {
        grid-template-columns: 1fr;
    }
}

.studio-compare-item {
    background: #fff;
    border: 1px solid rgba(61, 43, 31, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(61, 43, 31, 0.05);
}

.studio-compare-item__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(61, 43, 31, 0.5);
    padding: 0.5rem 0.75rem 0;
}

.studio-compare-item img.studio-preview-img {
    width: 100%;
}

.studio-compare-item__note {
    padding: 0.35rem 0.75rem 0.5rem;
    line-height: 1.45;
}

.studio-compare-item__photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem;
}

.studio-compare-item__photo-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-compare-item__photo-cell {
    position: relative;
}

.studio-compare-item__photo-cell .studio-preview-zoom {
    border-radius: 8px;
    overflow: hidden;
}

.studio-compare-item__photo-cell img.studio-preview-img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.studio-compare-item__photo-badge {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    z-index: 2;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(61, 43, 31, 0.72);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.35rem;
    text-align: center;
    pointer-events: none;
}

.studio-feedback-anchor__empty {
    padding: 0.75rem 1rem;
    border: 1px dashed rgba(61, 43, 31, 0.16);
    border-radius: 10px;
    background: rgba(250, 247, 242, 0.8);
}

.studio-feedback-anchor__body {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border: 1px solid rgba(61, 43, 31, 0.1);
    border-radius: 12px;
    background: #faf7f2;
}

.studio-feedback-anchor__thumb-wrap {
    flex: 0 0 88px;
    width: 88px;
}

.studio-feedback-anchor__thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.studio-feedback-anchor__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(61, 43, 31, 0.45);
}

.studio-feedback-anchor__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(61, 43, 31, 0.88);
}

.studio-feedback-anchor__note {
    margin-top: 0.25rem;
    line-height: 1.45;
}

.studio-feedback-sources__intro {
    line-height: 1.5;
}

.studio-feedback-sources__block {
    padding: 0.75rem;
    border: 1px solid rgba(61, 43, 31, 0.1);
    border-radius: 12px;
    background: #faf7f2;
}

.studio-feedback-sources__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(61, 43, 31, 0.5);
    margin-bottom: 0;
}

.studio-feedback-sources__hint {
    line-height: 1.45;
}

.studio-feedback-sources__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.studio-feedback-sources__cell {
    position: relative;
    flex: 0 0 4.5rem;
    width: 4.5rem;
}

.studio-feedback-sources__cell .studio-preview-zoom {
    border-radius: 8px;
    overflow: hidden;
}

.studio-feedback-sources__cell img.studio-preview-img {
    width: 100%;
    height: 4.5rem;
    max-height: 4.5rem;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.studio-feedback-sources__badge {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    z-index: 2;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: rgba(61, 43, 31, 0.72);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
    pointer-events: none;
}

@media (min-width: 576px) {
    .studio-feedback-sources__refs-compact {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .studio-feedback-sources__refs-compact .studio-feedback-sources__refs-copy {
        flex: 1 1 auto;
        min-width: 0;
    }
}

.portrait-design-card__version {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(61, 43, 31, 0.5);
}

.portrait-style-card__medium {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(61, 43, 31, 0.45);
}

/* Text-only art advisor (Phase Q2.5) */
.text-only-advisor__entry-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .text-only-advisor__entry-row {
        grid-template-columns: 1fr;
    }
}

.text-only-advisor__entry-btn {
    min-height: 3rem;
}

.text-only-advisor__template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.text-only-advisor__template-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 0.65rem;
    border: 1px solid rgba(61, 43, 31, 0.12);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.text-only-advisor__template-card:hover,
.text-only-advisor__template-card.selected {
    border-color: rgba(61, 43, 31, 0.35);
    box-shadow: 0 4px 16px rgba(61, 43, 31, 0.08);
}

.text-only-advisor__template-card.selected {
    outline: 2px solid rgba(61, 43, 31, 0.2);
    outline-offset: 1px;
}

.text-only-advisor__template-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: #e8eef2;
    flex-shrink: 0;
}

.text-only-advisor__template-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.text-only-advisor__template-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3d2b1f;
    line-height: 1.3;
}

.text-only-advisor__template-desc {
    font-size: 0.6875rem;
    color: rgba(61, 43, 31, 0.55);
    margin-top: 0.2rem;
    line-height: 1.35;
}

.text-only-advisor__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.text-only-advisor__chip {
    border: 1px solid rgba(61, 43, 31, 0.15);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    background: #fff;
    color: #3d2b1f;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.text-only-advisor__chip:hover {
    border-color: rgba(61, 43, 31, 0.3);
}

.text-only-advisor__chip.selected {
    background: rgba(61, 43, 31, 0.08);
    border-color: rgba(61, 43, 31, 0.35);
    font-weight: 600;
}

.text-only-advisor__wizard-step {
    margin-bottom: 0.5rem;
}

.studio-hd-panel .studio-panel-card {
    border: 1px solid rgba(61, 43, 31, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.72);
}

.studio-hd-loading {
    position: relative;
    min-height: 8rem;
    border-radius: 0.75rem;
    background: rgba(61, 43, 31, 0.03);
}

.studio-hd-compare__label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.studio-preview-frame--hd-compare {
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgba(61, 43, 31, 0.04);
}
