#selection-admin-root { --sel-green: #9bc3a6; }
#selection-admin-root [hidden] { display: none !important; }
.sel-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 6px 0 18px; }
.sel-intro h3 { font-size: clamp(21px, 2.1vw, 29px); font-weight: 500; margin: 8px 0; letter-spacing: .02em; }
.sel-intro p { color: var(--muted); margin: 0; }
.sel-intro .primary-action { flex-shrink: 0; }
.sel-message { color: var(--accent); font-size: 13px; line-height: 1.8; min-height: 20px; margin-bottom: 16px; overflow-wrap: anywhere; }
.sel-message-error { color: #eea3a3; }
.sel-create { margin-bottom: 22px; }
.sel-create-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sel-create-title h3 { font-weight: 500; margin: 0; }
.sel-create-fields { display: grid; grid-template-columns: minmax(140px, 2fr) minmax(110px, 1fr) 110px auto; gap: 18px; align-items: end; }
.sel-create-fields .primary-action { min-height: 46px; }
.sel-hint { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 8px 0 0; }
.sel-workspace { display: grid; grid-template-columns: minmax(240px, 280px) minmax(0, 1fr); gap: 24px; align-items: start; }
.sel-sidebar { padding: 18px !important; position: sticky; top: 20px; }
.sel-list-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sel-list-heading .ghost-action { padding: 6px 10px; font-size: 12px; }
.sel-search { display: block; margin-bottom: 18px; }
.sel-albums { max-height: 70vh; overflow: auto; display: grid; gap: 9px; }
.sel-album { color: var(--text); background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; width: 100%; text-align: left; cursor: pointer; }
.sel-album:hover { border-color: var(--line-strong); background: var(--accent-soft); }
.sel-album.is-active { border-color: rgba(212,184,118,.65); background: rgba(212,184,118,.07); }
.sel-album-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sel-album-top strong { font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.sel-status { display: inline-flex; font-size: 11px; white-space: nowrap; padding: 3px 8px; border-radius: 20px; color: var(--accent); background: var(--accent-soft); vertical-align: middle; }
.sel-status.is-submitted { color: var(--sel-green); background: rgba(125,169,135,.13); }
.sel-album-customer { display: block; margin: 8px 0 16px; font-size: 12px; color: var(--muted); }
.sel-album-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.sel-album-meta span { color: var(--accent); }
.sel-detail { min-width: 0; }
.sel-album-summary { margin-bottom: 18px; }
.sel-summary-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.sel-summary-top h3 { margin: 8px 0 14px; font-size: 25px; font-weight: 500; overflow-wrap: anywhere; }
.sel-summary-top p { margin: 0; }
.sel-summary-top .primary-action { flex-shrink: 0; }
.sel-summary-time { font-size: 11px; color: var(--muted); margin-left: 12px; }
.sel-metrics { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.3fr 1.6fr; gap: 20px; align-items: center; }
.sel-metrics strong { display: block; font-size: 30px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--accent); }
.sel-metrics strong small { font-size: 16px; color: var(--muted); }
.sel-metrics span { color: var(--muted); font-size: 11px; }
.sel-progress-description .sel-progress { margin-top: 14px; }
.sel-progress { height: 4px; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.sel-progress i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s; }
.sel-upload-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sel-upload-panel strong { font-weight: 500; }
.sel-upload-label { position: relative; overflow: hidden; cursor: pointer; flex-shrink: 0; }
.sel-upload-label input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.sel-upload-label.is-disabled { opacity: .4; cursor: default; }
.sel-upload-progress { flex: 1 0 100%; border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px; color: var(--muted); }
.sel-upload-count { display: flex; justify-content: space-between; margin-bottom: 10px; }
.sel-upload-errors { color: #eea3a3; overflow-wrap: anywhere; }
.sel-upload-progress p { margin: 8px 0; }
.sel-client-note { margin-bottom: 20px; }
.sel-client-note p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0; }
.sel-photo-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 18px; }
.sel-tabs { display: flex; gap: 18px; }
.sel-tabs button { background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: 10px 0; cursor: pointer; }
.sel-tabs button.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.sel-tabs span { font-size: 11px; margin-left: 6px; opacity: .7; }
.sel-export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sel-export-actions .ghost-action { font-size: 11px; padding: 8px 11px; }
.sel-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sel-photo { border: 1px solid var(--line); border-radius: 13px; background: var(--panel); overflow: hidden; }
.sel-photo.is-selected { border-color: rgba(212,184,118,.6); }
.sel-photo-image { display: block; width: 100%; padding: 0; background: #151413; border: 0; position: relative; aspect-ratio: 3/4; cursor: zoom-in; }
.sel-photo-image img { display: block; width: 100%; height: 100%; object-fit: cover; color: var(--muted); font-size: 11px; }
.sel-photo-marker { position: absolute; top: 10px; right: 10px; border-radius: 20px; font-size: 11px; padding: 4px 9px; color: #eee; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.sel-photo.is-selected .sel-photo-marker { background: var(--accent); color: #16130c; }
.sel-photo-caption { padding: 13px 12px; }
.sel-photo-caption strong { font-weight: 500; font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-photo-caption p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; color: var(--accent); margin: 8px 0 0; line-height: 1.7; }
.sel-photo-caption .sel-photo-note-empty { color: var(--muted); }
.sel-empty { grid-column: 1 / -1; text-align: center; padding: 70px 24px !important; color: var(--muted); }
.sel-empty-symbol { font-size: 42px; opacity: .5; color: var(--accent); }
.sel-empty h3 { font-size: 20px; color: var(--text); font-weight: 400; }
.sel-empty p { font-size: 13px; max-width: 320px; margin: 12px auto 0; line-height: 1.9; }
.sel-list-empty { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 0; }
.sel-dialog { color: var(--text); background: #151310; border: 1px solid var(--line-strong); border-radius: 22px; width: min(480px, calc(100vw - 30px)); padding: 26px; max-height: 90vh; overflow: auto; }
.sel-dialog::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(5px); }
.sel-dialog-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.sel-dialog-head h3 { margin: 8px 0 0; font-weight: 500; font-size: 20px; }
.sel-dialog-head .ghost-action { padding: 5px 10px; }
.sel-dialog-actions { display: flex; gap: 12px; }
.sel-code-stage { background: #f8f6f1; color: #89857e; min-height: 245px; margin: 20px 0 14px; display: grid; place-items: center; border-radius: 14px; text-align: center; font-size: 12px; padding: 18px; }
.sel-code-stage img { width: 100%; max-width: 285px; display: block; }
.sel-code-status { color: var(--accent); font-size: 12px; line-height: 1.9; min-height: 24px; overflow-wrap: anywhere; }
.sel-preview-dialog { width: min(1050px, calc(100vw - 30px)); }
#sel-preview-stage { min-height: 200px; text-align: center; color: var(--muted); }
#sel-preview-stage img { display: block; max-width: 100%; max-height: 75vh; object-fit: contain; margin: 0 auto; }
.sel-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
#selection-admin-root button:disabled { opacity: .4; cursor: default; }
@media (min-width: 1700px) { .sel-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1250px) { .sel-workspace { grid-template-columns: 235px minmax(0, 1fr); gap: 16px; } .sel-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sel-create-fields { grid-template-columns: 1fr 1fr; } .sel-summary-top { flex-wrap: wrap; } .sel-metrics { grid-template-columns: 1fr 1fr; } .sel-progress-description { grid-column: 1 / -1; } }
@media (max-width: 900px) { .sel-workspace { grid-template-columns: 1fr; } .sel-sidebar { position: static; } .sel-albums { max-height: 260px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .sel-summary-top { flex-wrap: nowrap; } }
@media (max-width: 560px) { .sel-intro { align-items: flex-start; flex-direction: column; gap: 18px; } .sel-create-fields { grid-template-columns: 1fr; } .sel-albums { grid-template-columns: 1fr; } .sel-summary-top { flex-wrap: wrap; } .sel-summary-time { display: block; margin: 9px 0 0; } .sel-photos { gap: 10px; } .sel-photo-caption { padding: 10px; } .sel-dialog { padding: 20px; } .sel-photo-toolbar { align-items: flex-start; } }

.sel-copy-panel { margin: 18px 0; border-color: rgba(212,184,118,.4); }
.sel-copy-panel strong { font-size: 16px; font-weight: 500; }
.sel-copy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.sel-copy-status { font-size: 12px; color: var(--accent); line-height: 1.8; margin: 12px 0; }
.sel-copy-text { display: block; width: 100%; min-height: 250px; resize: vertical; margin: 18px 0; font-family: monospace; line-height: 1.8; }
.sel-preview-dialog .sel-dialog-head strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.sel-summary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.sel-danger { color: #ba5044; }
.sel-deleted-album { cursor: default; }
.sel-deleted-album > .ghost-action { margin-top: 12px; }
