.collector-hub { --hub-surface: rgba(7, 9, 22, .66); letter-spacing: 0; }
.hub-tabs-shell { position: sticky; top: var(--site-header-height); z-index: 40; border-bottom: 1px solid var(--line); background: rgba(5, 6, 21, .96); backdrop-filter: blur(18px); }
.hub-tabs-inner { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-block: 10px; }
.hub-tabs { display: flex; gap: 4px; flex: 1 0 auto; }
.hub-tabs button, .hub-rehearsal { flex: 0 0 auto; border: 1px solid transparent; border-radius: 6px; padding: 9px 10px; min-height: 40px; color: var(--muted); background: transparent; font-size: .76rem; font-weight: 850; cursor: pointer; white-space: nowrap; text-decoration: none; }
.hub-tabs button[aria-selected="true"] { color: var(--ink); border-color: rgba(56, 232, 255, .42); background: linear-gradient(115deg, rgba(56, 232, 255, .13), rgba(255, 78, 219, .11)); box-shadow: inset 0 -2px var(--cyan); }
.hub-rehearsal { color: var(--electric); }
.hub-workspace { padding-top: 22px; padding-bottom: 64px; min-height: 620px; }
.hub-heading, .hub-panel-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.hub-heading h1 { margin: 0; font-size: 1.6rem; line-height: 1.25; letter-spacing: 0; }
.hub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hub-actions a { color: var(--cyan); font-size: .82rem; font-weight: 750; text-underline-offset: 3px; }
.hub-account, .hub-badge { color: var(--mint); font-size: .72rem; font-weight: 800; }
.hub-status-line { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-height: 58px; padding-block: 8px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.hub-status-line p { margin: 0; font-size: .83rem; color: var(--muted); }
.hub-status-line p[data-state="error"] { color: #ff92a8; }
.hub-status-line p[data-state="success"] { color: var(--mint); }
.hub-panel { min-width: 0; outline-offset: 5px; }
.hub-panel h2 { font-size: 1.3rem; line-height: 1.3; margin: 0; letter-spacing: 0; }
.hub-panel h3 { font-size: 1rem; margin: 0 0 10px; letter-spacing: 0; }
.hub-panel-head { margin-bottom: 16px; }
.hub-note, .hub-empty { margin: 10px 0 18px; color: var(--muted); font-size: .83rem; line-height: 1.6; }
.hub-note.hub-warning { color: var(--gold); }
.hub-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 16px 24px; }
.hub-form label, .hub-fields label { display: grid; gap: 5px; color: var(--muted); font-size: .78rem; font-weight: 750; min-width: 0; }
.hub-form input, .hub-form select, .hub-form textarea, .hub-fields input, .hub-fields select, .hub-fields textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #090b1b; font: inherit; font-size: .87rem; }
.hub-form textarea, .hub-fields textarea { resize: vertical; }
.hub-form select option, .hub-fields select option { background: #090b1b; }
.hub-form input[type="checkbox"], .hub-fields input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; padding: 0; accent-color: var(--cyan); flex-shrink: 0; }
.hub-form .hub-check, .hub-check { display: flex; gap: 9px; align-items: center; font-size: .8rem; color: var(--muted); }
.hub-wide { grid-column: 1 / -1; }
.hub-form .hub-actions { align-self: end; }
.hub-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.hub-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 12px; border: 1px solid rgba(56, 232, 255, .36); border-radius: 6px; color: var(--ink); background: rgba(56, 232, 255, .07); font: inherit; font-size: .78rem; font-weight: 850; cursor: pointer; text-decoration: none; text-align: center; }
.hub-button.hub-primary { color: #050615; background: var(--electric); border-color: var(--electric); }
.hub-button.hub-danger { border-color: rgba(255, 85, 118, .45); color: #ffafbf; background: rgba(255, 85, 118, .07); }
.hub-button:hover:enabled { border-color: var(--mint); }
.collector-hub :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; }
.collector-hub :disabled { opacity: .55; cursor: not-allowed; }
.hub-list { display: grid; gap: 12px; margin-top: 16px; }
.hub-row { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--hub-surface); min-width: 0; }
.hub-row strong, .hub-row p, .hub-row span, .hub-row small, .hub-panel dd { overflow-wrap: anywhere; }
.hub-row p { margin: 0; }
.hub-row small, .hub-meta { font-size: .78rem; color: var(--muted); }
.hub-card-row { grid-template-columns: 76px minmax(0, 1fr); align-items: start; }
.hub-card-row > div { display: grid; gap: 7px; }
.hub-card-image { width: 76px; height: 106px; object-fit: contain; background: #03040c; border-radius: 5px; }
.hub-card-row:not(:has(> img)) { grid-template-columns: 1fr; }
.hub-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-block: 18px; border-block: 1px solid var(--line); }
.hub-metrics > div { padding: 14px 12px; min-width: 0; }
.hub-metrics dt { font-size: .74rem; color: var(--muted); }
.hub-metrics dd { margin: 3px 0 0; color: var(--electric); font-size: 1.1rem; font-weight: 850; }
.hub-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.hub-summary dt { font-size: .76rem; color: var(--muted); }
.hub-summary dd { margin: 3px 0 0; font-size: .9rem; }
.hub-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr); gap: 28px; }
.hub-passport-image { width: 100%; max-height: 430px; aspect-ratio: 245 / 342; object-fit: contain; background: #03040c; }
.hub-history { list-style: none; padding: 0; display: grid; gap: 0; }
.hub-history li { border-left: 2px solid var(--magenta); padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .84rem; }
.hub-history time { display: block; font-size: .74rem; color: var(--muted); }
.hub-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-block: 16px; }
.hub-photo-view { min-width: 0; display: grid; align-content: start; gap: 10px; }
.hub-photo-view .hub-fields { grid-template-columns: 1fr; margin: 0; }
.hub-photo-preview { position: relative; aspect-ratio: 245 / 342; background: #03040c; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.hub-photo-preview img { width: 100%; height: 100%; object-fit: contain; }
.hub-photo-preview .hub-button { position: absolute; right: 8px; bottom: 8px; background: #090b1b; min-width: 38px; }
.hub-photo-flags { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.hub-photo-flags .hub-check { font-size: .72rem; }
.hub-photo-flags input { width: 16px; height: 16px; accent-color: var(--gold); }
.hub-disclosures { border: 0; padding: 0; margin: 0; min-width: 0; }
.hub-disclosures legend { padding: 0 0 12px; font-size: .84rem; font-weight: 800; }
.hub-observations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.hub-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #03040c; border: 0; max-height: 580px; }
.hub-table-wrap { overflow-x: auto; }
.hub-table { border-collapse: collapse; width: 100%; font-size: .82rem; }
.hub-table th, .hub-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hub-table th { color: var(--muted); font-size: .73rem; }
.hub-set { padding-block: 12px; border-bottom: 1px solid var(--line); }
.hub-section-title, .hub-replay-publication { margin-top: 24px; }
.hub-replay-publication > summary { color: var(--mint); font-weight: 800; font-size: .86rem; cursor: pointer; }
.hub-set progress { width: 180px; height: 8px; accent-color: var(--mint); }
.hub-offers { border-top: 1px solid var(--line); padding-top: 12px; }
.hub-zoom-dialog { width: min(900px, calc(100% - 24px)); max-height: 92vh; border: 1px solid var(--cyan); border-radius: 8px; padding: 16px; color: var(--ink); background: #080a17; }
.hub-zoom-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.hub-zoom-dialog h2 { margin: 0; font-size: 1rem; flex: 1; }
.hub-zoom-control { display: flex; align-items: center; gap: 12px; margin-block: 12px; font-size: .8rem; }
.hub-zoom-control input { flex: 1; accent-color: var(--cyan); }
.hub-zoom-viewport { overflow: auto; max-height: 68vh; background: #03040c; }
.hub-zoom-viewport img { width: 100%; height: auto; max-width: none; object-fit: contain; }
@media (max-width: 980px) {
  .hub-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-split { grid-template-columns: 1fr; }
  .hub-passport-image { max-height: 320px; }
}
@media (max-width: 600px) {
  .hub-form, .hub-fields, .hub-summary { grid-template-columns: 1fr; }
  .hub-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-heading { align-items: flex-start; }
  .hub-heading h1 { font-size: 1.4rem; }
  .hub-actions { gap: 8px; }
  .hub-photos { gap: 10px; }
  .hub-observations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-photo-flags { gap: 6px; }
  .hub-workspace { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .collector-hub * { scroll-behavior: auto; } }
