.catch-album { max-width:900px; margin:16px auto; padding:16px; color:#152d3c; background:#fff; border-radius:14px; }
.catch-album form,.catch-album [data-box-host],.bulk-session [data-box-host] { min-width:0; max-width:100%; }
.catch-box-strip { display:flex; align-items:flex-start; gap:8px; width:100%; min-width:0; overflow-x:auto; padding:3px 1px 8px; overscroll-behavior-x:contain; }
.catch-box-strip .catch-box { box-sizing:border-box; flex:0 0 clamp(155px,43vw,225px); padding:7px; border:1px solid #a6bbc8; border-radius:10px; background:#f5f8fa; color:#142f40; }
.catch-box-strip .catch-box.over { outline:3px solid #ff8124; outline-offset:-3px; }
.catch-box-strip .catch-box h4 { font:700 .94rem/1.2 system-ui; margin:1px 0 6px; }
.catch-box-tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:calc((clamp(155px,43vw,225px) - 22px)/2 + 20px); align-content:start; gap:3px; height:calc(clamp(155px,43vw,225px) + 22px); overflow-y:auto; }
.catch-box-thumb { position:relative; min-width:0; overflow:hidden; border-radius:4px; background:#d5e1e8; }
.catch-box-figure { margin:0; min-height:0; min-width:0; display:grid; grid-template-rows:minmax(0,1fr) 20px; }
.catch-box-figure figcaption { color:#173248; font:700 12px/20px system-ui; text-align:center; }
.catch-box-figure:only-child { grid-column:span 2; grid-row:span 2; }
.catch-box-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.catch-box-thumb .catch-box-time { position:absolute; inset:auto 0 0; color:white; background:#10202ce6; font:600 10px/1.25 system-ui; padding:2px 3px; text-align:left; white-space:pre-line; pointer-events:none; }
.catch-box-thumb input[type=checkbox] { position:absolute; top:0; left:0; margin:0; width:25px; height:25px; accent-color:#087b66; cursor:pointer; }
.catch-box-thumb .catch-box-grip { position:absolute; top:0; right:0; width:44px; height:44px; padding:0; border:0; border-radius:0 0 0 6px; color:#fff; background:#142c3ed9; font:700 12px system-ui; touch-action:none; user-select:none; -webkit-touch-callout:none; cursor:grab; }
.catch-box-thumb .catch-box-preview { display:block; width:100%; height:100%; margin:0; padding:0; border:0; background:transparent; cursor:zoom-in; }
.catch-box-preview img,.catch-box-thumb { -webkit-user-drag:none; -webkit-touch-callout:none; user-select:none; }
.catch-box-thumb.is-dragging { opacity:.55; }
.catch-photo-viewer { box-sizing:border-box; width:min(96vw,800px); max-height:95dvh; padding:10px; border:0; border-radius:12px; background:#101f2b; color:white; }
.catch-photo-viewer::backdrop { background:#081019d9; }
.catch-photo-viewer header,.catch-photo-viewer footer { display:flex; align-items:center; gap:8px; padding:4px; flex-wrap:wrap; }
.catch-photo-viewer header { justify-content:space-between; flex-wrap:nowrap; }
.catch-photo-viewer strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.catch-photo-viewer button,.catch-photo-viewer select { min-width:44px; min-height:44px; border:1px solid #768895; border-radius:7px; background:#203849; color:white; font:inherit; }
.catch-photo-viewer button:disabled { opacity:.45; }
.catch-photo-viewer footer label { display:flex; align-items:center; gap:5px; margin-left:auto; }
.catch-photo-viewer select { max-width:47vw; }
.catch-photo-stage { height:min(62dvh,620px); overflow:auto; overscroll-behavior:contain; background:#081019; touch-action:pan-x pan-y; }
.catch-photo-canvas { display:grid; place-items:center; }
.catch-photo-canvas img { display:block; max-width:none; max-height:none; user-select:none; -webkit-touch-callout:none; }

.catch-box-ghost { position:fixed; transform:translate(-50%,-110%); width:54px; height:54px; object-fit:cover; pointer-events:none; z-index:99999; }
.catch-box details summary,.catch-album summary { padding:7px 0; cursor:pointer; font-size:.85rem; }
.catch-box details fieldset { margin:5px 0; padding:4px; min-width:0; }
.catch-box details legend { max-width:100%; overflow-wrap:anywhere; font-size:.8rem; }
.catch-box details label,.catch-box details select { display:block; width:100%; max-width:100%; font-size:.85rem; }
.catch-box-status:empty { margin:0; }
.catch-box-help { font-size:.9rem; margin:.4em 0; color:#435966; }
.catch-album [hidden] { display:none!important; }
.catch-album button[type=submit] { padding:10px 16px; border:0; border-radius:8px; background:#ff8124; font-weight:700; }

.catch-box .catch-box-tag { display:flex; align-items:center; gap:4px; margin:5px 0 0; font-size:.75rem; }
.catch-box .catch-box-tag select { flex:1; min-width:0; max-width:100%; font-size:.8rem; }

.catch-box-tiles.catch-box-empty { display:grid; grid-template:1fr / 1fr; place-items:center; align-content:center; color:#526876; border:1px dashed #9bb0bc; border-radius:6px; font-size:.85rem; }

.catch-box-strip .catch-box h4 small { display:block; font:500 .75rem/1.3 system-ui; color:#475c69; overflow-wrap:anywhere; }

[data-box-host] > h5 { margin:14px 0 4px; font:700 .9rem/1.3 system-ui; color:#233e50; }
.catch-box-strip .catch-box.is-sorted { border:2px solid #258052; background:#f5fbf7; }
.catch-box.is-sorted > small { display:block; margin-bottom:5px; color:#18643d; font-weight:700; }
.catch-review-actions { display:flex; gap:8px; flex-wrap:wrap; }
@media(max-width:700px) {
  .catch-review-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr)); }
  .catch-review-actions .bulk-button { min-height:44px; }
}

.catch-album .catch-box input[type=number] { box-sizing:border-box; width:100%; min-width:0; }

.catch-box-figure.has-photo-editor { grid-template-rows:minmax(0,1fr) 24px; }
.catch-box-figure figcaption button { width:100%; height:24px; padding:0; border:0; background:transparent; color:#18557b; font:inherit; text-decoration:underline; cursor:pointer; }
