:root { --gold: #c9a96a; --cream: #f5f0e8; --ink: #1a1a1a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Georgia, 'Times New Roman', serif; background: #111; color: var(--cream); }
.wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: 12px; color: var(--gold); }
h1 { font-weight: normal; }
.muted { color: #999; }
.error { color: #e08080; }
a { color: var(--gold); }
.btn { background: var(--gold); color: #111; border: 0; padding: 10px 24px; font-size: 16px; cursor: pointer; border-radius: 4px; }
input[type=password], input[type=text] { padding: 10px; font-size: 16px; border-radius: 4px; border: 1px solid #444; background: #222; color: var(--cream); }
.small { font-size: 13px; }
.link { color: var(--gold); cursor: pointer; text-decoration: underline; }
.dropzone { border: 2px dashed #555; border-radius: 8px; padding: 32px; text-align: center; color: #999; margin: 12px 0; }
.dropzone.over { border-color: var(--gold); color: var(--gold); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 12px 0; }
.thumb { background: #1e1e1e; border-radius: 8px; padding: 8px; }
.thumb img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }
.thumb-actions { display: flex; justify-content: space-between; margin: 6px 0; }
.thumb-actions button { background: #333; color: var(--cream); border: 0; border-radius: 4px; padding: 4px 8px; cursor: pointer; font-size: 12px; }
.thumb-actions button:disabled { opacity: .5; }
.thumb select { width: 100%; background: #222; color: var(--cream); border: 1px solid #444; border-radius: 4px; padding: 4px; }
.btn.danger { background: #a33; }
.progress { display: inline-block; width: 200px; height: 12px; background: #333; border-radius: 6px; overflow: hidden; vertical-align: middle; }
.progress-bar { height: 100%; width: 0%; background: var(--gold); border-radius: 6px; transition: width .2s; }
.btn.small { padding: 4px 12px; font-size: 14px; }
.bulk-bar { display: flex; align-items: center; gap: 12px; background: #1e1e1e; border: 1px solid var(--gold); border-radius: 8px; padding: 10px 16px; margin-bottom: 12px; grid-column: 1 / -1; }
.bulk-bar select { background: #222; color: var(--cream); border: 1px solid #444; border-radius: 4px; padding: 6px; }
.thumb { position: relative; }
.select-box { position: absolute; top: 12px; left: 12px; z-index: 2; }
.select-box input { width: 20px; height: 20px; accent-color: var(--gold); cursor: pointer; }
#set-list li { padding: 8px 12px; border-radius: 6px; margin: 4px 0; }
#set-list li.drop-target { background: #2a2416; outline: 2px dashed var(--gold); }
.drag-handle { cursor: grab; color: var(--gold); padding: 0 8px 0 0; user-select: none; }
#set-list li { cursor: default; }
.thumb[draggable=true] { cursor: grab; }
.thumb[draggable=true]:active { cursor: grabbing; opacity: .7; }
.thumb.selected { outline: 3px solid var(--gold); }
.thumb.selected img { opacity: .85; }
.rubber-band { position: fixed; border: 2px dashed var(--gold); background: rgba(201,169,106,.15); z-index: 9999; pointer-events: none; }
.cat-section { border: 1px solid #333; border-radius: 10px; margin: 16px 0; overflow: hidden; }
.cat-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #1e1e1e; cursor: default; }
.cat-header.drop-target { background: #2a2416; outline: 2px dashed var(--gold); outline-offset: -2px; }
.cat-toggle { background: none; border: none; color: var(--gold); font-size: 16px; cursor: pointer; padding: 4px 8px; }
.cat-name { font-weight: 600; font-size: 18px; }
.cat-count { font-size: 14px; }
.cat-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cat-body { padding: 12px; }
.cat-section.collapsed .cat-body { display: none; }
.cat-section.collapsed .cat-toggle { transform: rotate(-90deg); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.modal-box { background: #1a1a1a; border: 1px solid #444; border-radius: 12px; padding: 28px; max-width: 420px; }
.modal-box input { width: 100%; padding: 10px; font-size: 16px; background: #222; color: var(--cream); border: 1px solid #555; border-radius: 6px; }
.btn.danger { background: #a33; }
.btn.danger:disabled { opacity: .4; cursor: not-allowed; }
