/*! © 2026 해밀 (haemil.ai). All rights reserved. 무단 복제·배포 금지. */
/* 파일 선반 (shelf.js): a narrow panel at the window's right edge. Locked (pro.js), it is not there at all. */
#shelf { width: 220px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--chrome); }
#shelf[hidden], #shelf.locked { display: none; }
#shelf.drop { box-shadow: inset 0 0 0 2px var(--accent); }
.shead { height: 36px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 12px; }
.scount { color: var(--dim); font-size: 12px; }
.sx { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--dim); }
.sx:hover { background: var(--hover); color: var(--text); }
.slist { flex: 1; min-height: 0; overflow: auto; padding: 2px 6px; }
.sitem { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 2px 0 6px; border: 1px solid transparent; border-radius: 4px; }
.sitem:hover { background: var(--hover); }
.sitem.sel { background: var(--sel); border-color: var(--sel-line); }
.sitem.gone { opacity: .45; }
.sitem > svg, .sitem > img { width: 24px; height: 24px; flex: none; object-fit: contain; }
.stx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.snm, .sdir { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sdir { font-size: 11px; color: var(--dim); }
.sdel { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--dim); visibility: hidden; }
.sdel svg { width: 12px; height: 12px; }
.sitem:hover .sdel { visibility: visible; }
.sdel:hover { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); }
.sempty { margin: 24px 8px; text-align: center; color: var(--dim); font-size: 12px; line-height: 1.6; }
.sbtns { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.sbtns button { height: 28px; padding: 0 6px; border: 1px solid var(--field-line); border-radius: 4px; background: var(--field); font-size: 12px; white-space: nowrap; }
.sbtns button:hover:not(:disabled) { background: var(--hover); }
.sbtns button:disabled { opacity: .45; }
.sbtns [data-act="clear"] { grid-column: span 2; border-color: transparent; background: transparent; color: var(--dim); }
