.photo-studio { display: grid; gap: 24px; }
.photo-character-picker { display: flex; align-items: end; gap: 24px; margin-bottom: 24px; }
.photo-character-picker label { display: grid; gap: 8px; min-width: min(350px, 100%); }
.photo-reference-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.photo-reference { display: grid; align-content: start; gap: 10px; min-width: 0; }
.photo-reference strong { font-size: 12px; min-height: 32px; }
.photo-reference-image { display: block; width: 100%; height: 190px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 5px; padding: 0; overflow: hidden; cursor: pointer; }
.photo-reference-image img { width: 100%; height: 100%; object-fit: contain; }
.photo-reference-image span { display: grid; place-items: center; height: 100%; font-size: 32px; color: var(--muted); }
.photo-reference-library { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 12px; max-height: 60vh; overflow-y: auto; margin: 20px 0; }
.photo-reference-modal { width: min(950px,95vw); }
.photo-reference-choice { padding: 8px; border: 1px solid var(--line-soft); background: var(--panel); color: var(--text); display: grid; gap: 8px; cursor: pointer; border-radius: 4px; }
.photo-reference-choice img { width: 100%; height: 160px; object-fit: contain; }
.photo-reference-choice span { font-size: 11px; overflow-wrap: anywhere; }
.photo-compose-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 24px; align-items: start; }
.photo-studio h2 { font-size: 18px; margin: 0 0 14px; }
.photo-prompt-panel textarea, .photo-ideas-panel textarea { width: 100%; resize: vertical; font: inherit; font-size: 13px; line-height: 1.65; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.photo-model-control { display: grid; gap: 8px; font-size: 12px; margin: 16px 0; }
.photo-ideas-panel > label { display: grid; gap: 8px; margin: 18px 0; font-size: 12px; }
.photo-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
.photo-options label { display: grid; gap: 8px; font-size: 12px; }
.photo-option-wide { grid-column: 1 / -1; }
.photo-option-summary { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.photo-start-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line-soft); padding-top: 22px; margin-top: 18px; }
.photo-ideas { display: grid; gap: 22px; }
.photo-idea { padding-top: 18px; border-top: 1px solid var(--line-soft); }
.photo-idea h3 { margin: 0 0 16px; font-size: 16px; }
.photo-idea dl { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 10px; font-size: 12px; line-height: 1.55; }
.photo-idea dt { color: var(--muted); }
.photo-idea dd { margin: 0; }
.photo-idea details { font-size: 12px; margin: 18px 0; }
.photo-idea summary { cursor: pointer; }
.photo-idea-prompt, .photo-review-prompt { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.photo-review-prompt { max-height: 30vh; overflow-y: auto; padding: 14px; background: var(--bg); font-size: 13px; }
.photo-review-references { display: flex; gap: 8px; }
.photo-review-references img { width: calc((100% - 32px)/5); height: 95px; object-fit: contain; background: var(--bg); }
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 22px; }
.photo-gallery > .empty { grid-column: 1 / -1; }
.photo-result { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 6px; }
.photo-result-image { display: block; width: 100%; background: var(--bg); border: 0; padding: 0; cursor: zoom-in; }
.photo-result-image img { width: 100%; height: 350px; object-fit: contain; }
.photo-result-info { padding: 16px; }
.photo-result-info > p { max-height: 90px; overflow-y: auto; white-space: pre-wrap; }
.photo-result-pending { background: var(--bg); padding: 30px; min-height: 220px; }
@media(max-width:1000px) { .photo-compose-grid { grid-template-columns: 1fr; } .photo-reference-strip { gap: 10px; } .photo-reference-image { height: 140px; } }
@media(max-width:600px) { .photo-character-picker { flex-wrap: wrap; } .photo-reference-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; } .photo-reference-image { height: 190px; } .photo-start-row { flex-wrap: wrap; } .photo-reference strong { min-height: auto; } }
