.bottom-shortest-dialog{width:min(620px,94vw);max-height:88vh;overflow:auto;box-sizing:border-box;background:#172838;color:#eef4ff;border:1px solid #718ca3;border-radius:12px;padding:16px}.bottom-shortest-dialog::backdrop{background:#0009}.bottom-shortest-dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.bottom-shortest-dialog h3{margin:0}.bottom-shortest-dialog button{border:1px solid #647b99;border-radius:6px;background:#263f59;color:#eff6ff;padding:8px}.bottom-shortest-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.bottom-shortest-dialog .shortest-hint{font-size:12px;color:#becbd9;line-height:1.5}.bottom-shortest-dialog .shortest-error{color:#ff8585}.bottom-shortest-dialog .shortest-stage-buttons{display:flex;gap:8px}.bottom-shortest-dialog button[aria-pressed=true]{border-color:#69e0ed;box-shadow:inset 0 0 0 2px #69e0ed}.bottom-shortest-dialog input[type=search]{box-sizing:border-box;width:100%;padding:10px;margin-top:10px}.bottom-shortest-dialog .shortest-exclusion-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.bottom-shortest-dialog .card[hidden]{display:none}.bottom-shortest-dialog .portrait{position:relative;display:block;padding:0;width:100%;aspect-ratio:1;overflow:hidden}.bottom-shortest-dialog .portraitMedia{display:block;position:relative;width:100%;height:100%}.bottom-shortest-dialog .portraitcontent,.bottom-shortest-dialog .portraitcontent img{width:100%;height:100%;object-fit:cover}.bottom-shortest-dialog .bottom-shortest-charge{position:absolute;bottom:1px;left:1px;background:#081425df;padding:2px;font-size:10px;color:white}.bottom-shortest-dialog .shortest-excluded-summary{font-size:12px;line-height:1.5}.bottom-shortest-dialog fieldset{border:1px solid #687a90;border-radius:6px}.bottom-shortest-dialog .shortest-stage-summary{font-size:12px}

.bottom-shortest-dialog .dialog-head{position:sticky;top:-16px;background:#172838;z-index:20;padding:8px 0}.bottom-shortest-dialog.shortest-exclusion-picker .dialog-actions{position:sticky;bottom:-16px;background:#172838;padding:10px 0;z-index:20}
/* 초상화 크기를 유지하며 화면 밖의 이미지·배지 그리기만 미룹니다. */
.shortest-exclusion-grid .portraitMedia{content-visibility:auto;overflow-clip-margin:5px}

.bottom-shortest-dialog .shortest-speed-option{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:14px}
.bottom-shortest-dialog .shortest-speed-option input[type=checkbox]{width:auto;min-width:0;flex:none;margin:0}

/* 옵션이 늘어나거나 안내를 펼쳐도 시작·취소는 화면 안에 유지합니다. */
.shortest-confirm[open]{display:flex;flex-direction:column;box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:hidden}
.shortest-confirm>.dialog-head,.shortest-confirm>.dialog-actions{flex:none}
.shortest-confirm>.dialog-head{margin-bottom:8px;padding-bottom:8px}
.shortest-confirm-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
.shortest-confirm-body>p{margin:6px 0;font-size:13px;line-height:1.4}
.shortest-confirm-body .shortest-excluded-summary{max-height:3.9em;overflow:auto}
.shortest-confirm-guide{margin-top:8px;font-size:12px;color:#aeb7c8}
.shortest-confirm-guide summary{cursor:pointer}
.shortest-confirm>.dialog-actions{margin-top:10px;padding-top:8px;border-top:1px solid #41536a;justify-content:flex-end}
.shortest-confirm .shortest-error:empty{display:none}
.bottom-shortest-dialog .shortest-target-option{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,8rem);align-items:center;gap:8px;margin-top:10px;font-size:13px;font-weight:700}
.bottom-shortest-dialog .shortest-target-option input{box-sizing:border-box;min-width:0;width:100%;padding:7px;font-size:16px;color:#eef4ff;background:#101d2a;border:1px solid #647b99;border-radius:5px}
.bottom-shortest-dialog.shortest-target-dialog[open]{display:flex;flex-direction:column;width:min(540px,calc(100vw - 12px));max-height:calc(100dvh - 24px);overflow:hidden;padding:10px}
.bottom-shortest-dialog.shortest-target-dialog>.dialog-head{flex:none;position:static;padding:0 0 8px;gap:5px}
.bottom-shortest-dialog.shortest-target-dialog h3{display:flex;align-items:center;gap:6px;min-width:0;font-size:clamp(13px,3.8vw,16px);line-height:1.4}
.bottom-shortest-dialog.shortest-target-dialog>.dialog-head>button{flex:none;white-space:nowrap;font-size:12px}
.bottom-shortest-dialog .shortest-target-completion{flex:none;color:#88e9ed;font-size:10px;background:#244c60;border-radius:5px;padding:4px 6px}
.bottom-shortest-dialog .shortest-target-status{flex:none;box-sizing:border-box;height:48px;min-height:48px;margin:3px 0 6px;font-size:12px;line-height:16px;overflow-y:auto;overflow-wrap:anywhere;overscroll-behavior:contain}
.bottom-shortest-dialog .shortest-target-filter:not([hidden]){flex:none;display:flex;align-items:center;gap:6px;margin-bottom:6px}
.bottom-shortest-dialog .shortest-target-filter input{flex:1;min-width:0;width:auto;margin:0;padding:6px;font-size:16px}
.bottom-shortest-dialog .shortest-target-filter output{flex:none;font-size:11px;white-space:nowrap}
.bottom-shortest-dialog .shortest-target-results:not([hidden]){flex:1 1 auto;display:block;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.bottom-shortest-dialog .shortest-target-choice{min-width:0;margin:0 0 7px;border:1px solid #506a82;border-radius:7px;padding:6px}
.bottom-shortest-dialog .shortest-target-choice:last-child{margin-bottom:0}
.bottom-shortest-dialog .shortest-target-preview,.bottom-shortest-dialog .shortest-target-preview .portrait{touch-action:pan-y}
.bottom-shortest-dialog .shortest-target-choice:has(input:checked){border-color:#81e8e2;background:#203842}
.bottom-shortest-dialog .shortest-target-select{display:flex;align-items:center;gap:6px;font-size:13px;cursor:pointer}
.bottom-shortest-dialog .shortest-target-select input{width:auto;margin:0;accent-color:#65dfec}
.bottom-shortest-dialog .shortest-target-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:4px}
.bottom-shortest-dialog .shortest-target-preview .slot-cell,.bottom-shortest-dialog .shortest-target-preview .card{min-width:0}
.bottom-shortest-dialog .bottom-shortest-frame{height:20px;color:#ff4c69;font-size:16px;font-weight:800;line-height:20px;text-align:center}
.bottom-shortest-dialog .bottom-shortest-name{display:block;margin-top:3px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.bottom-shortest-dialog .shortest-target-preview .jackalLinkButton{position:absolute;top:0;left:28%;z-index:10;pointer-events:none}
.bottom-shortest-dialog.shortest-target-dialog>.dialog-actions{flex:none;margin-top:8px;padding-top:8px;border-top:1px solid #41536a}
