/* Scene chooser. All artwork keeps its own proportions and orientation. */
.hero-pairs-dialog-open{overflow:hidden}
.hero-pairs-overlay{position:fixed;inset:0;z-index:1500;display:flex;align-items:center;justify-content:center;background:#050a12d9;padding:24px;backdrop-filter:blur(12px)}
.hero-pairs-overlay[hidden]{display:none!important}
.hero-pairs-panel{width:min(1080px,100%);max-height:min(900px,calc(100dvh - 48px));overflow:auto;overscroll-behavior:contain;border:1px solid #c6b17b47;border-radius:14px;background:linear-gradient(145deg,#1c242e,#0e151e 65%);color:#e9ecef;box-shadow:0 30px 100px #0009;padding:28px;scrollbar-color:#657181 #131b25;scrollbar-width:thin}
.hero-pairs-header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.hero-pairs-eyebrow{display:block;font-size:9px;letter-spacing:.18em;font-weight:800;color:#c8ad74;margin-bottom:7px}
.hero-pairs-header h2{font-size:28px;line-height:1.15;margin:0;font-weight:800}
.hero-pairs-panel button,.hero-pairs-panel input{font:inherit}
.hero-pairs-panel button{cursor:pointer}
.hero-pairs-panel button:disabled{cursor:default}
.hero-pairs-panel button:focus-visible,.hero-pairs-panel input:focus-visible{outline:2px solid #e5c77b;outline-offset:3px}
.hero-pairs-close{color:#cad4dc;background:#ffffff07;border:1px solid #ffffff18;border-radius:50%;width:42px;height:42px;font-size:27px!important;line-height:1;flex:0 0 42px}
.hero-pairs-count{color:#9aaaba;font-size:12px;line-height:1.6;margin:14px 0 18px}
.hero-pairs-selected{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:stretch}
.hero-pairs-person{display:flex;align-items:center;gap:12px;min-width:0;text-align:left;padding:10px 14px;border:1px solid #ffffff18;border-radius:8px;background:#0a121bd1;color:#ebf0f5}
.hero-pairs-person.is-active{border-color:#ddbd68a6;background:#c8a45912;box-shadow:inset 0 0 0 1px #d8b96520}
.hero-pairs-avatar{display:grid;place-items:center;width:56px;height:62px;flex:0 0 56px;background:radial-gradient(ellipse,#c8b27a14,transparent 70%);overflow:hidden}
.hero-pairs-avatar img,.hero-pairs-card-image img,.hero-pairs-suggestion-image img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
.hero-pairs-person-copy{display:block;min-width:0}
.hero-pairs-person-copy small{display:block;font-size:9px;letter-spacing:.12em;color:#9ba8b3;margin-bottom:6px}
.hero-pairs-person-copy strong{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.hero-pairs-swap{align-self:center;background:transparent;color:#b6c3cd;border:1px solid #ffffff20;border-radius:6px;min-height:42px;padding:9px 12px;font-size:11px!important}
.hero-pairs-compositions{display:flex;gap:7px;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid #ffffff0e}
.hero-pairs-composition,.hero-pairs-filter{font-size:11px!important;line-height:1.4;padding:8px 11px;min-height:36px;border:1px solid #ffffff18;border-radius:5px;background:#121c29;color:#9caebd}
.hero-pairs-composition.is-active{background:#c7a85b22;border-color:#d2b36a88;color:#efd89e}
.hero-pairs-composition:disabled{opacity:.32}
.hero-pairs-toolbar{display:flex;gap:10px;margin:18px 0 14px}
.hero-pairs-search{width:100%;min-width:0;flex:1;height:42px;border:1px solid #ffffff20;border-radius:6px;background:#09121c;color:#e9edf3;padding:10px 14px;font-size:13px!important}
.hero-pairs-filter{white-space:nowrap;min-width:130px}
.hero-pairs-roster{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.hero-pairs-card{min-width:0;display:flex;align-items:center;flex-direction:column;gap:5px;padding:10px 8px 12px;border:1px solid #ffffff14;border-radius:8px;background:linear-gradient(180deg,#1d2a37,#121c27);color:#e4eaf0;text-align:center;transition:border-color .15s,background .15s}
.hero-pairs-card:hover:not(:disabled){border-color:#baa56c8c;background:#26323a}
.hero-pairs-card.is-selected{border-color:#d7b86f;background:linear-gradient(180deg,#3a3528,#202624)}
.hero-pairs-card:disabled:not(.is-selected){opacity:.5}
.hero-pairs-card-image{display:grid;place-items:center;width:100%;height:84px;min-width:0;color:#c5b383;font-size:32px}
.hero-pairs-card strong{font-size:11px;line-height:1.4;font-weight:700;min-height:31px;display:flex;align-items:center;overflow-wrap:anywhere}
.hero-pairs-card small{font-size:9px;color:#a2b3bf;line-height:1.4}
.hero-pairs-card.is-selected small{color:#d6c08a}
.hero-pairs-empty{grid-column:1/-1;padding:20px;text-align:center;color:#91a6ba;font-size:13px}
.hero-pairs-suggestions{margin-top:22px}
.hero-pairs-suggestions h3{font-size:13px;font-weight:700;margin:0 0 10px;color:#becbd3}
.hero-pairs-suggestion-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hero-pairs-suggestion{display:flex;align-items:center;gap:10px;min-width:0;background:#111d29;border:1px solid #ffffff13;border-radius:6px;color:#dce6ec;text-align:left;padding:8px 10px}
.hero-pairs-suggestion:hover:not(:disabled){border-color:#bea66a77}
.hero-pairs-suggestion-image{display:grid;place-items:center;width:40px;height:44px;flex:0 0 40px}
.hero-pairs-suggestion strong,.hero-pairs-suggestion small{display:block;overflow-wrap:anywhere;font-size:11px;line-height:1.4}
.hero-pairs-suggestion small{color:#869bab;font-size:9px;margin-top:3px}
.hero-pairs-footer{position:sticky;bottom:-28px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0 22px;margin:18px 0 -22px;border-top:1px solid #ffffff12;background:linear-gradient(0deg,#101923 83%,#101923f0);z-index:2}
.hero-pairs-status{color:#c7bea4;font-size:11px;line-height:1.55;min-width:0;margin:0;flex:1}
.hero-pairs-actions{display:flex;gap:9px;margin-left:auto;flex:0 0 auto}
.hero-pairs-default,.hero-pairs-apply{padding:11px 16px;border-radius:5px;min-height:44px;font-size:12px!important;font-weight:800!important;line-height:1.4}
.hero-pairs-default{background:#18232e;border:1px solid #ffffff21;color:#a7b8c5}
.hero-pairs-apply{background:#dfc17c;border:1px solid #efd28e;color:#14202a}
.hero-pairs-actions button:disabled{opacity:.45}
.hero-pair-buffer{position:absolute;inset:0;visibility:hidden;pointer-events:none}
.hero-pair-buffer .portrait-rig{visibility:hidden;pointer-events:none}
.hero-pair-figure{aspect-ratio:2/3;transform:none}
@media(max-width:850px){.hero-pairs-roster{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-pairs-selected{grid-template-columns:1fr 1fr}.hero-pairs-swap{grid-column:1/-1;justify-self:center}.hero-pairs-suggestion-list{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-pairs-panel{padding:22px}.hero-pairs-footer{bottom:-22px}}
@media(max-width:520px){.hero-pairs-overlay{padding:9px}.hero-pairs-panel{max-height:calc(100dvh - 18px);border-radius:10px;padding:17px}.hero-pairs-header h2{font-size:23px}.hero-pairs-count{font-size:10px}.hero-pairs-roster{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.hero-pairs-card-image{height:72px}.hero-pairs-person{padding:8px;gap:7px}.hero-pairs-avatar{width:38px;height:48px;flex-basis:38px}.hero-pairs-person-copy strong{font-size:12px}.hero-pairs-person-copy small{font-size:8px}.hero-pairs-compositions{gap:6px}.hero-pairs-composition{font-size:10px!important;padding:7px 9px;flex:1 0 auto}.hero-pairs-filter{min-width:105px;font-size:10px!important}.hero-pairs-footer{bottom:-17px;flex-direction:column;align-items:stretch;gap:10px}.hero-pairs-actions{width:100%;margin:0}.hero-pairs-actions button{flex:1;padding-inline:10px}.hero-pairs-status:empty{display:none}.hero-pairs-suggestion-list{gap:6px}.hero-pairs-suggestion{padding:7px;gap:6px}.hero-pairs-suggestion-image{width:28px;flex-basis:28px}.hero-pairs-suggestion strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){.hero-pairs-card{transition:none}}
@media(forced-colors:active){.hero-pairs-overlay{background:Canvas}.hero-pairs-panel,.hero-pairs-footer{background:Canvas}.hero-pairs-card.is-selected,.hero-pairs-person.is-active,.hero-pairs-composition.is-active{outline:2px solid Highlight}}
