/* 캡처 직접 분류(capture-sort.js) — 보관함 분류 파일 칸 안에 그린다(2026-10-08 deneb: 리딩룸에서 다른 화면으로 보내지 말고 분류 파일 자리에서).
   색은 보관함 토큰(styles.css·theme.css)을 쓴다. 고르기 막대·알림·메뉴·끄는 사진은 화면에 붙어 뜬다(position: fixed). */
.cs-root { --row-h: 156px; --card-w: 96px; --tile-w: 78px; --info-soft: color-mix(in srgb, var(--info) 18%, transparent);
  margin: 4px 0 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cs-root[hidden], .cs-float[hidden], .cs-sheet-wrap[hidden] { display: none !important; }
.classification-section.is-capture-sort #fileGrid { display: none !important; }
/* 논텍스트 분류 줄에서는 위 안내 줄(문서 · 논텍스트 N장 · 전체 보기)과 시간·장소·인물 단추를 숨긴다(2026-10-10 deneb). */
.classification-section.is-capture-sort #shelfFilterNote,
.classification-section.is-capture-sort .place-switch [data-place-view] { display: none !important; }
.cs-list { padding: 0 0 calc(110px + env(safe-area-inset-bottom, 0px)); }
.cs-state { margin: 28px 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
.cs-state button { margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 8px 16px; font-weight: 700; }
/* 한 줄 */
.cs-row { position: relative; display: flex; height: var(--row-h); transition: background .15s; }
.cs-row.over { background: var(--info-soft); }
.cs-card { position: relative; flex: none; width: var(--card-w); height: 100%; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer;
  box-shadow: 0 0 0 2px var(--c), 4px 0 12px -4px rgba(0,0,0,.35); z-index: 2; }
.cs-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cs-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 8px 8px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.45) 60%, transparent); }
.cs-card .info b { display: block; font-size: 13px; line-height: 1.25; padding-right: 18px; word-break: keep-all; overflow-wrap: anywhere; }
.cs-card .info small { font-size: 11px; opacity: .78; font-variant-numeric: tabular-nums; }
.cs-card .dot { position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.cs-card .more { font: inherit; position: absolute; right: 0; bottom: 4px; width: 30px; height: 34px; border: 0; background: none; color: #fff; display: grid; place-items: center; padding: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.cs-card .more svg { width: 18px; height: 18px; fill: currentColor; }
.cs-strip { flex: 1; min-width: 0; display: flex; gap: 3px; padding: 0 0 0 6px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x pan-y; }
.cs-strip::-webkit-scrollbar { display: none; }
.selecting .cs-strip { touch-action: pan-y; }
.cs-tile { position: relative; flex: none; width: var(--tile-w); height: 100%; border-radius: 6px; overflow: hidden; background: var(--surface-2); transition: transform .12s, opacity .12s; }
.cs-tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.cs-tile .chk { position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); display: none; }
.selecting .cs-tile .chk { display: block; }
.cs-tile.sel { transform: scale(.92); border-radius: 10px; box-shadow: 0 0 0 3px var(--info); }
.cs-tile.sel .chk { background: var(--info) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.cs-tile.anchor::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px var(--info); }
.cs-tile.ghosted { opacity: .3; }
.cs-tile.flash { animation: cs-flash .35s; }
@keyframes cs-flash { 40% { transform: scale(.86); } }
.cs-end { flex: none; width: 1px; }
/* 줄 사이 틈 = 새 분류 자리. 고른 사진을 끌 때 벌어진다. */
.cs-gap { height: 12px; margin: 0; border-radius: 12px; display: grid; place-items: center; font-size: 12px; color: transparent; transition: height .18s, background .15s, color .15s; }
.dragging .cs-gap { height: 44px; color: var(--muted); background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px) top/100% 1.5px no-repeat, repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px) bottom/100% 1.5px no-repeat; }
.dragging .cs-gap.over { height: 64px; color: var(--info); background: var(--info-soft); }
.cs-row.fresh .cs-card { animation: cs-pop .5s; }
@keyframes cs-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } }
/* 끄는 사진 묶음 */
.cs-ghost { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; width: 70px; height: 112px; }
.cs-ghost img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.35); border: 2px solid #fff; background: var(--surface-2); }
.cs-ghost .n { position: absolute; right: -8px; top: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--info); color: #fff; font-weight: 700; font-size: 12px; line-height: 22px; text-align: center; z-index: 9; }
.cs-float { position: fixed; left: 12px; right: 12px; max-width: 560px; margin: 0 auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 18px; padding: 12px 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; z-index: 950;
  background: var(--ink); color: var(--bg); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.cs-float p { margin: 0; flex: 1 1 170px; min-width: 0; line-height: 1.45; }
.cs-float small { display: block; opacity: .7; font-size: 12px; }
.cs-float button { font: inherit; border: 0; border-radius: 999px; padding: 8px 13px; font-weight: 700; font-size: 13px; background: var(--bg); color: var(--ink); }
.cs-float button.ghostb { background: transparent; color: var(--bg); box-shadow: 0 0 0 1px currentColor inset; }
.cs-menu { position: fixed; z-index: 980; display: grid; min-width: 140px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.cs-menu button { font: inherit; padding: 11px 14px; border: 0; border-radius: 9px; background: none; color: var(--ink); font-size: 14px; text-align: left; }
.cs-menu button:active { background: var(--surface-2); }
.cs-menu button.danger { color: var(--danger); }
.cs-sheet-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; z-index: 1000; }
.cs-sheet { width: 100%; background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; }
.cs-sheet h2 { margin: 0; font-size: 17px; text-wrap: balance; }
.cs-sheet p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.cs-sheet input { font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-family: inherit; }
.cs-sheet .rowb { display: flex; gap: 8px; justify-content: flex-end; }
.cs-sheet button { font: inherit; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 13px; background: var(--surface-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.cs-sheet button.go { background: var(--ink); color: var(--bg); box-shadow: none; }
.cs-sheet button.danger { background: var(--danger); color: #fff; box-shadow: none; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
