#collectionDialog.selection-panel {
  --selection-paper:#f6f4ed;
  --selection-ink:#211f1c;
  --selection-muted:#635e56;
  --selection-line:#d9d5cb;
  --selection-accent:#ad3826;
  position:fixed;inset:0 0 0 auto;margin:0;padding:0;
  width:min(100%,460px);height:100dvh;max-width:100%;max-height:100dvh;
  border:none;border-left:1px solid var(--selection-line);border-radius:0;
  color:var(--selection-ink);background:var(--selection-paper);
  box-shadow:-16px 0 80px #201a101a;overflow:hidden;
}
#collectionDialog.selection-panel[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto}
#collectionDialog.selection-panel::backdrop {background:#19171070;backdrop-filter:none}
.selection-panel button,.selection-panel select,.selection-panel textarea {font:inherit}
.selection-panel button {cursor:pointer}
.selection-panel button:focus-visible,.selection-panel summary:focus-visible,.selection-panel select:focus-visible,.selection-panel textarea:focus-visible {
  outline:2px solid var(--selection-accent);outline-offset:2px
}
.selection-panel .selection-head {
  position:relative;display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:21px 26px 20px;border-bottom:1px solid var(--selection-ink)
}
.selection-panel .selection-head h2 {
  display:flex;align-items:baseline;gap:9px;padding:0;margin:0;
  color:var(--selection-ink);font-size:clamp(24px,2.2vw,32px);
  font-weight:720;line-height:1.2;letter-spacing:-.065em
}
.selection-panel #selectionSize {font:500 13px/1.4 Inter,Pretendard,sans-serif;color:var(--selection-accent);letter-spacing:-.025em}
.selection-panel .selection-close,.selection-panel .selection-remove {
  display:grid;place-items:center;flex:none;background:transparent;color:var(--selection-ink);
  border:0;border-radius:0;padding:0;width:40px;height:40px;
  font:300 28px/1 Inter,Pretendard,sans-serif
}
.selection-panel .selection-close:hover,.selection-panel .selection-remove:hover {background:#e9e6dc}
.selection-panel .selection-scroll {overflow-y:auto;overscroll-behavior:contain;padding:0 26px;scrollbar-width:thin;scrollbar-color:#c4c0b6 transparent}
.selection-panel .selection-list {margin:0;padding:0;list-style:none;max-height:none;overflow:visible}
.selection-panel .selection-row {
  display:grid;grid-template-columns:94px minmax(0,1fr) auto;gap:15px;
  align-items:center;padding:16px 0;border-bottom:1px solid var(--selection-line)
}
.selection-panel .selection-thumb {display:block;width:94px;height:63px;object-fit:cover;background:#ece8df;border:1px solid #211f1c0d;border-radius:1px}
.selection-panel .selection-info {display:grid;gap:5px;min-width:0}
.selection-panel .selection-info strong {font-weight:670;font-size:17px;letter-spacing:-.045em;line-height:1.3;word-break:keep-all;overflow-wrap:anywhere}
.selection-panel .selection-info span {font:500 10.5px/1.35 Inter,Arial,sans-serif;color:var(--selection-muted);letter-spacing:.025em;overflow-wrap:anywhere}
.selection-panel .selection-remove {width:36px;height:40px;color:var(--selection-muted);font-size:23px}
.selection-panel .selection-clear {
  display:block;margin:10px 0 18px auto;padding:8px 0;background:transparent;color:var(--selection-muted);border:0;
  font-size:12px;font-weight:520;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px
}
.selection-panel .selection-clear:hover {color:var(--selection-accent)}
.selection-panel .selection-options {padding:0;margin:0 0 18px;border:none;border-top:1px solid var(--selection-line);border-radius:0;background:transparent}
.selection-panel .selection-options summary {
  display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;padding:18px 1px;
  list-style:none;color:var(--selection-ink);font-size:14px;font-weight:640;letter-spacing:-.025em;
}
.selection-panel .selection-options summary::-webkit-details-marker {display:none}
.selection-panel .disclosure-mark {width:8px;height:8px;margin:0 4px;border-right:1px solid;border-bottom:1px solid;transform:rotate(45deg) translate(-2px,-2px)}
.selection-panel details[open] .disclosure-mark {transform:rotate(225deg)}
.selection-panel .selection-fields {display:grid;gap:8px;padding:2px 0 10px}
.selection-panel .selection-fields label {font-size:12px;font-weight:620;color:var(--selection-ink);margin:10px 0 0}
.selection-panel .selection-fields label small {font-size:11px;font-weight:450;margin-left:4px;color:var(--selection-muted)}
.selection-panel .selection-fields select,.selection-panel .selection-fields textarea {
  display:block;width:100%;max-width:100%;min-width:0;margin:0;padding:10px 11px;border:1px solid var(--selection-line);
  border-radius:2px;background:#fcfbf7;color:var(--selection-ink);font-size:14px;line-height:1.45
}
.selection-panel .selection-fields textarea {resize:vertical;min-height:60px}
.selection-panel .selection-fields textarea[readonly] {background:transparent;color:var(--selection-muted)}
.selection-panel .selection-request-actions {display:flex;align-items:center;gap:18px;margin:3px 0}
.selection-panel .selection-request-actions button,.selection-panel .selection-browse {
  border:0;background:transparent;color:var(--selection-ink);padding:8px 0;
  font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:4px
}
.selection-panel .selection-empty {padding:clamp(60px,14vh,145px) 0 32px}
.selection-panel .selection-empty h3 {font-size:22px;font-weight:680;line-height:1.3;letter-spacing:-.05em;margin:0 0 8px}
.selection-panel .selection-empty p {color:var(--selection-muted);margin:0 0 14px;font-size:14px;line-height:1.5;word-break:keep-all}
.selection-panel .selection-browse {display:inline-flex;gap:20px;align-items:center}
.selection-panel .selection-export {
  display:grid;gap:6px;padding:14px 26px max(17px,env(safe-area-inset-bottom));border-top:1px solid var(--selection-ink);background:var(--selection-paper)
}
.selection-panel #copyStatus {margin:0;padding:0;color:var(--selection-muted);font-size:12px;line-height:1.4}
.selection-panel #copyStatus:empty {display:none}
.selection-panel .selection-download {
  display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 17px;
  min-height:52px;border:1px solid var(--selection-ink);border-radius:2px;background:var(--selection-ink);
  color:#faf8f0;font-size:15px;font-weight:620;letter-spacing:-.03em
}
.selection-panel .selection-download:hover {background:#38342e}
.selection-panel .selection-download:disabled {opacity:.55}
.selection-panel .export-arrow {font:400 24px/.7 Inter,Arial,sans-serif}
@media(max-width:540px) {
  #collectionDialog.selection-panel {width:100%;border-left:none}
  .selection-panel .selection-head {padding:15px 19px}
  .selection-panel .selection-scroll {padding-inline:19px}
  .selection-panel .selection-export {padding-inline:19px}
  .selection-panel .selection-row {grid-template-columns:80px minmax(0,1fr) auto;gap:12px;padding:14px 0}
  .selection-panel .selection-thumb {width:80px;height:55px}
  .selection-panel .selection-remove,.selection-panel .selection-close {width:44px;height:44px}
  .selection-panel .selection-fields textarea,.selection-panel .selection-fields select {font-size:16px}
}
@media(max-width:370px){.selection-panel .selection-head h2{flex-wrap:wrap;row-gap:2px}}
@media(prefers-reduced-motion:reduce){#collectionDialog.selection-panel[open]{animation:none}}
@media(max-height:420px){.selection-panel .selection-head,.selection-panel .selection-export{padding-block:6px}.selection-panel .selection-empty{padding:22px 0}}
