.th-advanced-summary .th-preview{position:relative}.th-preview-media{display:grid;place-items:center;width:100%;min-height:235px}.th-preview-media img,.th-preview-media video{width:100%;height:250px;object-fit:contain}.th-advanced-summary .th-preview-remove{position:absolute;z-index:3;top:10px;inset-inline-end:10px;width:auto!important;min-height:34px;margin:0!important;padding:7px 11px;border:1px solid rgba(255,255,255,.28);border-radius:10px;background:rgba(24,16,43,.88);color:#fff;font:800 10px/1.2 "Tajawal",Arial,sans-serif;backdrop-filter:blur(8px);cursor:pointer}.th-advanced-summary .th-preview-remove:hover,.th-advanced-summary .th-preview-remove:focus-visible{border-color:#c7b1ff;background:#5e37b5}.th-preview-remove[hidden]{display:none!important}
.th-character-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}.th-character-actions>button,.th-character-actions>label{display:flex!important;align-items:center;justify-content:center;gap:5px;min-width:0!important;padding:8px 6px!important;line-height:1.25;text-align:center;white-space:normal!important}.th-character-actions svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.th-character-actions span{overflow:hidden;text-overflow:ellipsis}.th-client-character-toggle{color:#673bc9!important}.th-client-character-toggle b{display:grid;place-items:center;min-width:17px;height:17px;padding:0 3px;border-radius:999px;background:#eee8ff;color:#673bc9;font-size:8px}
.th-client-character-library{grid-column:1/-1;padding:9px;border:1px solid var(--line);border-radius:11px;background:var(--panel)}.th-client-character-library>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.th-client-character-library>header div{display:grid;gap:2px}.th-client-character-library>header strong{font-size:11px}.th-client-character-library>header small{color:var(--muted);font-size:8px}.th-client-character-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-height:292px;overflow-y:auto}.th-client-character-card{display:grid;gap:4px;padding:4px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--ink);font:700 8px/1.3 "Tajawal",Arial,sans-serif;cursor:pointer;text-align:center}.th-client-character-card:hover,.th-client-character-card:focus-visible{border-color:#8d6be0;box-shadow:0 3px 10px rgba(103,59,201,.13)}.th-client-character-card img,.th-client-character-placeholder{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;background:#eee8ff}.th-client-character-placeholder{display:grid;place-items:center;color:#673bc9;font-size:18px}.th-client-character-card small{color:var(--muted);font-size:7px}.th-client-character-empty{grid-column:1/-1;padding:18px;color:var(--muted);font-size:10px;text-align:center}
.th-client-character-card:disabled{opacity:.58;cursor:default}
.th-advanced-voice-actions{grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr)!important;gap:6px!important}.th-advanced-voice-actions>button,.th-advanced-voice-actions>label{display:flex!important;align-items:center;justify-content:center;gap:6px;min-width:0;padding:8px 9px!important;white-space:normal!important}.th-advanced-voice-actions svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.th-advanced-voice-actions button{position:relative}.th-advanced-voice-actions button i{margin-inline-start:auto;color:#8d78bd;font-style:normal}.th-advanced-voice-actions button[aria-expanded="true"]{border-color:#7348db;background:#f7f4ff}.dark .th-advanced-voice-actions button[aria-expanded="true"]{background:#2d2544}.th-advanced-voice-library{padding:9px;border:1px solid var(--line);border-radius:11px;background:var(--panel)}.th-advanced-voice-library>header{display:grid;gap:2px;margin-bottom:7px}.th-advanced-voice-library>header strong{font-size:10px}.th-advanced-voice-library>header small{color:var(--muted);font-size:8px}.th-advanced-voice-library>div{display:grid;gap:5px;max-height:245px;overflow-y:auto}.th-advanced-voice-row{display:grid;grid-template-columns:28px minmax(0,1fr) 31px 48px;align-items:center;gap:7px;padding:6px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}.th-advanced-voice-row.selected{border-color:#b7a4e9;background:#f8f5ff}.dark .th-advanced-voice-row.selected{background:#2d2544}.th-advanced-voice-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#7348db,#21b6a8);color:#fff;font-size:11px;font-weight:800}.th-advanced-voice-row>div{display:grid;gap:1px;min-width:0}.th-advanced-voice-row strong{font-size:9px}.th-advanced-voice-row small{overflow:hidden;color:var(--muted);font-size:7px;text-overflow:ellipsis;white-space:nowrap}.th-advanced-voice-row button{height:28px;padding:0;border:1px solid #d8d1ed;border-radius:8px;background:var(--panel);color:#673bc9;font:800 8px "Tajawal",Arial,sans-serif;cursor:pointer}.th-advanced-voice-row button:disabled{opacity:.58;cursor:default}.th-advanced-voice-play{font-size:10px!important}
@media(max-width:700px){.th-client-character-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.th-character-actions{grid-template-columns:1fr!important}.th-character-actions>button,.th-character-actions>label{min-height:40px}}

.th-review-cycle{width:100%;margin:14px 0;padding:24px 18px;border:1px solid rgba(132,93,218,.12);border-radius:14px;background:linear-gradient(145deg,#211735,#2a1d43);color:#fff;overflow:hidden}.th-unified-workflow{box-sizing:border-box;margin:10px 0 22px}.th-review-cycle-steps{display:grid;grid-template-columns:repeat(var(--workflow-column-count,3),minmax(0,1fr));align-items:start;gap:24px 14px;width:100%}.th-review-cycle-step{position:relative;display:flex;min-width:0;align-items:center;flex-direction:column;gap:8px;text-align:center}.th-review-cycle-step:not(:last-child)::after{position:absolute;top:18px;inset-inline-end:-11px;color:#9f8cbf;content:"←";font-size:13px;font-weight:500;line-height:1}.th-review-cycle-step.is-row-end::after{display:none}.th-review-cycle-step>b{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#8251e8,#6936d3);box-shadow:0 7px 18px rgba(104,55,210,.24);color:#fff;font-size:13px}.th-review-cycle-step strong{max-width:125px;color:#fff;font-size:10px;line-height:1.55}.th-review-cycle-step small,.th-review-cycle-step em,.th-review-cycle-steps>i{display:none}html[dir="ltr"] .th-review-cycle-step:not(:last-child)::after{content:"→"}.th-studio-type-row button svg,.th-asset-icon svg,.th-reference-drop>svg{display:block;flex:0 0 auto;aspect-ratio:1;overflow:visible;shape-rendering:geometricPrecision}@media(max-width:700px){.th-review-cycle{padding:12px}.th-review-cycle-steps{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px}.th-review-cycle-step{min-height:96px;padding:10px 6px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.045);justify-content:flex-start}.th-review-cycle-step::after{display:none!important}.th-review-cycle-step>b{width:34px;height:34px;flex:0 0 34px;font-size:11px}.th-review-cycle-step strong{max-width:88px;font-size:9px;line-height:1.45}}

.th-reference-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:min(480px,100%);margin-top:5px}.th-reference-actions label,.th-reference-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;margin:0;padding:7px 10px;border:1px solid #d8d1ed;border-radius:9px;background:#7348db;color:#fff;font:800 10px "Tajawal",Arial,sans-serif;cursor:pointer}.th-reference-actions button{background:var(--panel);color:#673bc9}.th-reference-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.th-reference-actions span{margin:0;padding:0;background:transparent;color:inherit;font-size:inherit}.th-reference-drop>em{color:#188166;font-size:9px;font-style:normal;font-weight:800}.th-content-library-dialog{width:min(920px,94vw);max-height:88vh;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);padding:18px;box-shadow:0 28px 90px #0008}.th-content-library-dialog::backdrop{background:#0f0d20b8}.th-content-library-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.th-content-library-dialog h2{margin:0;font-size:18px}.th-content-library-dialog p{margin:4px 0 0;color:var(--muted);font-size:11px}.th-content-library-dialog>header>button{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);font-size:22px;cursor:pointer}.th-content-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px;max-height:65vh;overflow:auto}.th-content-library-card{display:grid;gap:5px;padding:7px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--ink);font:inherit;cursor:pointer;text-align:center}.th-content-library-card:hover,.th-content-library-card:focus-visible{border-color:#7348db;box-shadow:0 5px 15px rgba(103,59,201,.15)}.th-content-library-card img,.th-content-library-card video{width:100%;height:135px;object-fit:cover;border-radius:8px;background:#0f0d20}.th-content-library-card span{overflow:hidden;font-size:10px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.th-content-library-card small{color:var(--muted);font-size:8px}.th-content-library-empty{grid-column:1/-1;padding:24px;text-align:center}@media(max-width:600px){.th-reference-actions{grid-template-columns:1fr}.th-content-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.th-content-library-card img,.th-content-library-card video{height:110px}}

.th-advanced-layout [hidden]{display:none!important}.th-photo-session-options{display:grid;gap:12px;width:100%}.th-photo-session-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.th-photo-session-heading>div{display:grid;gap:3px}.th-photo-session-heading strong{font-size:13px}.th-photo-session-heading small{color:var(--muted);font-size:9px}.th-photo-session-heading>b{padding:6px 10px;border-radius:999px;background:#eee8ff;color:#673bc9;font-size:10px;white-space:nowrap}.dark .th-photo-session-heading>b{background:#342650;color:#d8c8ff}.th-photo-shot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.th-photo-shot-grid label{position:relative;display:block;min-width:0;cursor:pointer}.th-photo-shot-grid input{position:absolute;opacity:0;pointer-events:none}.th-photo-shot-grid span{display:grid;gap:3px;min-height:68px;padding:11px;border:1px solid var(--line);border-radius:12px;background:var(--soft);transition:.16s ease}.th-photo-shot-grid b{font-size:10px}.th-photo-shot-grid small{color:var(--muted);font-size:8px;line-height:1.45}.th-photo-shot-grid input:checked+span{border-color:#7348db;background:#f2edff;box-shadow:0 4px 14px rgba(103,59,201,.14)}.dark .th-photo-shot-grid input:checked+span{background:#342650}.th-photo-shot-grid input:focus-visible+span{outline:2px solid #8d6be0;outline-offset:2px}@media(max-width:700px){.th-photo-session-heading{align-items:flex-start}.th-photo-shot-grid span{min-height:62px}}

.th-photo-session-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:-3px}.th-photo-session-tools button{min-height:30px;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:#673bc9;font:800 9px "Tajawal",Arial,sans-serif;cursor:pointer}.th-photo-session-tools button:hover,.th-photo-session-tools button:focus-visible{border-color:#7348db;background:#f2edff;outline:none}.th-photo-session-tools span{color:var(--muted);font-size:8px}.th-photo-shot-grid span{grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;min-height:76px}.th-photo-shot-grid span>em{display:grid;gap:3px;min-width:0;font-style:normal}.th-photo-shot-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid #d9cffa;border-radius:10px;background:linear-gradient(145deg,#f7f3ff,#e9e0ff);color:#673bc9;font:900 16px/1 "Tajawal",Arial,sans-serif;box-shadow:inset 0 1px 0 #fff}.dark .th-photo-shot-icon{border-color:#554179;background:linear-gradient(145deg,#3a2b59,#2b2041);color:#d8c8ff;box-shadow:none}.th-photo-shot-grid input:checked+span .th-photo-shot-icon{border-color:#7348db;background:linear-gradient(145deg,#8257e8,#5f37bd);color:#fff;box-shadow:0 5px 13px rgba(103,59,201,.25)}@media(max-width:700px){.th-photo-shot-grid{grid-template-columns:1fr 1fr}.th-photo-shot-grid span{grid-template-columns:28px minmax(0,1fr);gap:7px;min-height:72px;padding:9px}.th-photo-shot-icon{width:27px;height:27px;border-radius:8px;font-size:13px}.th-photo-shot-grid b{font-size:9px}.th-photo-shot-grid small{font-size:7px}.th-photo-session-tools span{flex-basis:100%}}
.th-product-view-label{display:grid;gap:.35rem;margin-top:.55rem;font-size:.75rem;color:var(--muted,#a8a3bd)}
.th-product-view-label .field{min-height:2.35rem;padding:.4rem .65rem}
.th-photo-shot-grid mark{display:inline-flex;width:max-content;margin-top:.35rem;padding:.16rem .45rem;border-radius:999px;background:rgba(255,174,65,.13);color:#d89b35;font-size:.66rem;font-style:normal;font-weight:700}
.th-photo-shot-grid label.is-view-evidenced mark{background:rgba(75,206,146,.13);color:#45b982}
.th-photo-shot-grid label.is-view-estimated>span{border-color:rgba(255,174,65,.45)}
.th-photo-shot-evidence{margin:.7rem 0 0;color:var(--muted,#a8a3bd);font-size:.78rem;line-height:1.7}
