#selection-dialog.selection-overlay{width:min(1180px,94vw);padding:0;background:#0e202a;border-color:#385665;box-shadow:0 28px 90px #0009;}
.selection-header{position:sticky;top:0;z-index:1;padding:20px 24px 16px;background:#0e202af5;border-bottom:1px solid #385665;backdrop-filter:blur(12px);}
.selection-header h2{margin:0 110px 7px 0;font-size:26px}.selection-header p{margin:0;color:#b7cbd4}.selection-header>.selection-back{position:absolute;right:20px;top:18px;padding:9px 20px;}
.selection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:22px;}
.selection-item{position:relative;display:flex;min-width:0}.selection-item .selection-card{width:100%;flex:1}.selection-actions{position:absolute;top:12px;right:12px;display:flex;gap:8px}.selection-actions .selection-only{display:grid;place-items:center;width:44px;height:44px;margin:0;padding:10px;border:1px solid #b7e9e680;border-radius:50%;background:#0b202de8;color:#eefaf8;box-shadow:0 2px 8px #0006;cursor:pointer}.selection-actions .selection-only:hover{background:#176657}.selection-actions .selection-only:focus-visible{outline:3px solid #fff;outline-offset:3px}.selection-actions svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.selection-card{display:flex;flex-direction:column;gap:0;margin:0;padding:0;overflow:hidden;text-align:left;white-space:normal;background:#192f3b;color:#eefaf8;border:2px solid #37515f;border-radius:13px;transition:border-color .15s,transform .15s;}
.selection-card:hover{border-color:#91c2cd;transform:translateY(-2px)}.selection-card[aria-pressed=true]{border-color:#27c4a8;box-shadow:0 0 0 1px #27c4a8;}
.selection-card canvas{touch-action:pan-y pinch-zoom;width:100%;height:auto;aspect-ratio:8/5;display:block;}
.selection-card strong{padding:14px 15px 0;font-size:19px;line-height:1.2;}.selection-card p{padding:8px 15px 16px;margin:0;font-size:13px;font-weight:400;line-height:1.5;color:#bbced6;}
@media(max-width:760px){.selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.selection-header{padding:16px}.selection-header h2{font-size:22px}.selection-header p{max-width:80%;}}
@media(max-width:450px){.selection-grid{grid-template-columns:1fr}}
.scene-tab-picker .selection-header{background:#102a31}
#selection-dialog.scene-tab-picker{container-type:inline-size}
.scene-category-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1rem}
.scene-category-tabs button{min-height:44px;max-width:100%;margin:0;padding:.45rem .9rem;border:1px solid #476870;border-radius:8px;background:#173941;color:#edf9f6;white-space:nowrap;font:inherit}
.scene-category-tabs button[aria-selected=true]{background:#9be5cd;border-color:#9be5cd;color:#102b2a}
.scene-category-tabs button:focus-visible{outline:2px solid #f7e7c5;outline-offset:2px}
#selection-dialog.scene-tab-picker .selection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.scene-tab-picker .selection-card canvas{aspect-ratio:16/9}
.scene-tab-picker .selection-card strong{overflow-wrap:anywhere}
.selection-empty{grid-column:1/-1;margin:0;color:#bbced6}
.selection-library{justify-self:start;grid-column:1/-1;min-height:44px}
@container(max-width:740px){
 #selection-dialog.scene-tab-picker .selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}
 .scene-category-tabs button{flex:1 0 auto;padding-inline:.5rem}
 .scene-tab-picker .selection-card strong,.scene-tab-picker .selection-card p{padding-inline:8px}
 .scene-tab-picker .selection-card strong{font-size:1rem}
 .scene-tab-picker .selection-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:6px 8px 12px;padding:0}
 .scene-tab-picker .selection-actions{top:5px;right:5px;gap:4px}
}

.scene-settings-shortcuts{display:flex;gap:8px;margin:8px 0 12px}.scene-settings-shortcuts button{display:grid;place-items:center;width:44px;height:44px;padding:0;background:#173744;color:#e9f9f8;border:1px solid #426371;border-radius:10px}.scene-settings-shortcuts button:hover,.scene-settings-shortcuts button:focus-visible{background:#236073;outline:2px solid #72e1d0;outline-offset:2px}.scene-settings-shortcuts svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.scene-created{display:block;color:#b7cbd4;font-size:.85em;margin:0 12px 8px}
