/* AnywhereExp charcoal theme. Layout, photography and motion remain original. */
html[data-palette="dark"] {
  color-scheme: dark;
  --theme-bg:#141113; --theme-surface:#201b1e; --theme-surface2:#2b2328;
  --theme-ink:#f5f0eb; --theme-muted:#b5a6ad; --theme-subtle:#a08c96;
  --theme-line:#4c3a44; --theme-red:#e23950; --theme-red-hover:#f25066;
  --theme-red-soft:#392028; --theme-cream:#f5f0eb; --theme-on-red:#fff8f3;
  --theme-accent-text:#ff8194; --theme-red-button:#c92b43;
  --theme-red-control:#c92b43; --theme-red-control-hover:#d53049;
  --theme-success:#b1d1b1; --theme-success-bg:#223126;
  --theme-warning:#e3bf84; --theme-warning-bg:#372b1e;
  --theme-danger:#ff9bad; --theme-danger-bg:#42222d;
  --theme-shadow:rgb(0 0 0 / .28); --theme-image-bg:#171317;
}
html[data-palette] {
  --bg:var(--theme-bg); --panel:var(--theme-surface); --panel2:var(--theme-surface2);
  --panel3:var(--theme-surface2); --white:var(--theme-ink); --muted:var(--theme-muted);
  --soft:var(--theme-subtle); --line:var(--theme-line); --red:var(--theme-red);
  --redhot:var(--theme-accent-text); --redsoft:var(--theme-red-soft); --home-red:var(--theme-red);
  --ax-card-bg:var(--theme-surface); --ax-card-border:var(--theme-line);
  --ax-card-rule:var(--theme-line); --ax-card-muted:var(--theme-muted); --ax-card-accent:var(--theme-accent-text);
  scrollbar-color:var(--theme-line) var(--theme-bg);
}
html[data-palette] body { background:var(--theme-bg); color:var(--theme-ink); }
html[data-palette] ::selection { background:var(--theme-red-button); color:var(--theme-on-red); }

/* style.css · color normalization */
html[data-palette] ::selection{color:var(--theme-ink)}
html[data-palette] .admin-link{border:1px solid var(--theme-line);color:var(--theme-ink)}
html[data-palette] .admin-link:hover{background:var(--theme-surface)}
html[data-palette] .eyebrow{color:var(--theme-muted)}
html[data-palette] .btn-red{color:var(--theme-ink)}
html[data-palette] .btn-outline{border-color:var(--theme-line);background:var(--theme-surface)}
html[data-palette] .brush-caption{color:var(--theme-subtle)}
html[data-palette] .collective-image{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .collective-image span{color:var(--theme-ink)}
html[data-palette] .search-wrap{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .search-wrap span{color:var(--theme-muted)}
html[data-palette] .search-wrap input{color:var(--theme-ink)}
html[data-palette] .results-label{color:var(--theme-muted)}
html[data-palette] .chip{background:var(--theme-surface);border:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .chip.selected,html[data-palette] .chip:hover{background:var(--theme-red-soft);border-color:var(--theme-red);color:var(--theme-ink)}
html[data-palette] .member-card,html[data-palette] .fleet-card{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .member-card:hover,html[data-palette] .fleet-card:hover{border-color:var(--theme-red)}
html[data-palette] .member-visual{background:radial-gradient(ellipse at 50% 40%,var(--theme-red-soft) 0,var(--theme-surface) 45%,var(--theme-bg) 90%)}
html[data-palette] .red-label{color:var(--theme-accent-text)}
html[data-palette] .member-content h3,html[data-palette] .fleet-content h3{color:var(--theme-ink)}
html[data-palette] .member-content .handle{color:var(--theme-muted)}
html[data-palette] .member-content p{color:var(--theme-muted)}
html[data-palette] .member-content .meta-bottom{border-top:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .member-content .meta-bottom b{color:var(--theme-accent-text)}
html[data-palette] .fleet-image{background:radial-gradient(ellipse at 50% 42%,var(--theme-red-soft),var(--theme-bg) 76%)}
html[data-palette] .fleet-category{border:1px solid var(--theme-line)}
html[data-palette] .fleet-content small{color:var(--theme-accent-text)}
html[data-palette] .fleet-content p{color:var(--theme-muted)}
html[data-palette] .crew-chip{background:var(--theme-surface2);border:1px solid var(--theme-line);color:var(--theme-ink)}
html[data-palette] .crew-chip em{color:var(--theme-muted)}
html[data-palette] .fleet-footer{border-top:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .blank{border:1px dashed var(--theme-line);color:var(--theme-muted)}
html[data-palette] .blank h3{color:var(--theme-ink)}
html[data-palette] .site-footer{background:var(--theme-bg)}
html[data-palette] .footer-brand small{color:var(--theme-muted)}
html[data-palette] .site-footer p{color:var(--theme-subtle)}
html[data-palette] .site-footer>a{color:var(--theme-accent-text)}
html[data-palette] .detail-dialog{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .x-button{border:1px solid var(--theme-line)}
html[data-palette] .detail-cover{background:var(--theme-surface)}
html[data-palette] .detail-sub{color:var(--theme-muted)}
html[data-palette] .detail-bio{color:var(--theme-muted)}
html[data-palette] .detail-facts{border-top:1px solid var(--theme-line)}
html[data-palette] .detail-facts div{border-left:2px solid var(--theme-red)}
html[data-palette] .detail-facts small{color:var(--theme-muted)}
html[data-palette] .detail-crew h3{color:var(--theme-accent-text)}
html[data-palette] .detail-person-link{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .detail-person-link small{color:var(--theme-accent-text)}
html[data-palette] .detail-person-link:hover{background:var(--theme-red-soft)}
html[data-palette] .admin-drawer{background:var(--theme-surface);border-left:1px solid var(--theme-line)}
html[data-palette] .drawer-heading{border-bottom:1px solid var(--theme-line)}
html[data-palette] .drawer-heading span{color:var(--theme-accent-text)}
html[data-palette] .drawer-heading button{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .muted{color:var(--theme-muted)}
html[data-palette] .system-note{background:var(--theme-surface);color:var(--theme-accent-text);border:1px solid var(--theme-line)}
html[data-palette] .field{color:var(--theme-ink)}
html[data-palette] .field span,html[data-palette] .field>label{color:var(--theme-accent-text)}
html[data-palette] .field input:not([type=checkbox]),html[data-palette] .field select,html[data-palette] .field textarea{background:var(--theme-bg);border:1px solid var(--theme-line);color:var(--theme-ink)}
html[data-palette] .form-error{background:var(--theme-red-soft);color:var(--theme-accent-text);border:1px solid var(--theme-red)}
html[data-palette] .manage-tabs button{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .manage-tabs button.selected{background:var(--theme-red-soft);border-color:var(--theme-red)}
html[data-palette] .record-row{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .record-row.selected{border-color:var(--theme-red)}
html[data-palette] .record-row small{color:var(--theme-muted)}
html[data-palette] .editor-title{border-top:1px solid var(--theme-line)}
html[data-palette] .ghost-button,html[data-palette] .ghost-danger{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .ghost-danger{border-color:var(--theme-red);color:var(--theme-accent-text)}
html[data-palette] .crew-editor{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .crew-editor>strong{color:var(--theme-accent-text)}
html[data-palette] .crew-editor>p{color:var(--theme-muted)}
html[data-palette] .crew-editor-entry{border-top:1px solid var(--theme-line)}
html[data-palette] .crew-role-input{background:var(--theme-bg);border:1px solid var(--theme-line);color:var(--theme-ink)}
html[data-palette] .small-label{color:var(--theme-muted)}
html[data-palette] .toast{background:var(--theme-red-soft);border:1px solid var(--theme-red);color:var(--theme-ink)}
html[data-palette] .registry-tip{color:var(--theme-muted)}
html[data-palette] .ship-owner-line{color:var(--theme-muted)}
html[data-palette] .ship-owner-line strong{color:var(--theme-accent-text)}
html[data-palette] .back-to-registry{color:var(--theme-ink);border:1px solid var(--theme-line)}
html[data-palette] .profile-portrait{border:1px solid var(--theme-line);background:radial-gradient(circle at center,var(--theme-red-soft),var(--theme-surface) 52%,var(--theme-bg))}
html[data-palette] .profile-handle{color:var(--theme-accent-text)}
html[data-palette] .profile-pills span{border:1px solid var(--theme-red);background:var(--theme-red-soft);color:var(--theme-accent-text)}
html[data-palette] .profile-bio{color:var(--theme-muted)}
html[data-palette] .profile-vessels-head h2 em{color:var(--theme-accent-text)}
html[data-palette] .profile-vessels-head>a{color:var(--theme-accent-text)}
html[data-palette] .catalog-hint,html[data-palette] .field-help{color:var(--theme-muted)}
html[data-palette] .image-present{color:var(--theme-success)}
html[data-palette] .remove-image{color:var(--theme-muted)}
html[data-palette] .remove-image input{accent-color:var(--theme-red)}
html[data-palette] .field input[type=file]::file-selector-button{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-ink)}
html[data-palette] .member-department{color:var(--theme-ink)}
html[data-palette] .department-parent{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-accent-text)}
html[data-palette] .member-department small{color:var(--theme-muted)}
html[data-palette] .department-pending{color:var(--theme-muted)}
html[data-palette] .profile-department small{color:var(--theme-muted)}
html[data-palette] .field select optgroup{background:var(--theme-surface);color:var(--theme-accent-text)}
html[data-palette] .field select option{background:var(--theme-bg);color:var(--theme-ink)}
html[data-palette] .official-photo-preview{background:var(--theme-bg);border:1px solid var(--theme-line)}
html[data-palette] .official-photo-empty{color:var(--theme-muted)}
html[data-palette] .official-photo-preview .official-source{color:var(--theme-ink)}
html[data-palette] .image-unavailable{color:var(--theme-muted)}
html[data-palette] .detail-sub .official-source{color:var(--theme-muted)}
html[data-palette] .official-photo-preview .official-source:hover,html[data-palette] .detail-sub .official-source:hover{color:var(--theme-accent-text)}
html[data-palette] .ship-photo-field legend{color:var(--theme-accent-text)}
html[data-palette] .photo-source-switch label{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .photo-source-switch label:has(input:checked){border-color:var(--theme-red);background:var(--theme-red-soft)}
html[data-palette] .photo-source-switch input{accent-color:var(--theme-red)}
html[data-palette] .photo-source-switch small{color:var(--theme-muted)}
html[data-palette] .photo-file-label{color:var(--theme-accent-text)}
html[data-palette] .ship-photo-field input[type=file]{border:1px dashed var(--theme-line);color:var(--theme-muted);background:var(--theme-bg)}
html[data-palette] .ship-photo-field input[type=file]::file-selector-button{background:var(--theme-red-soft);border:1px solid var(--theme-red);color:var(--theme-accent-text)}
html[data-palette] .custom-photo-preview{background:var(--theme-bg);border:1px solid var(--theme-line)}
html[data-palette] .custom-photo-preview>span{background:var(--theme-surface);color:var(--theme-accent-text)}
html[data-palette] .photo-file-status{color:var(--theme-muted)}
html[data-palette] .photo-file-status.photo-status-error{color:var(--theme-accent-text)}
html[data-palette] .custom-photo-credit{color:var(--theme-muted)}
html[data-palette] .profile-discord{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .discord-contact-copy code{color:var(--theme-muted)}
html[data-palette] .discord-contact-note{color:var(--theme-muted)}
html[data-palette] .member-discord-hint{color:var(--theme-muted)}
html[data-palette] .discord-editor>label{color:var(--theme-accent-text)}
html[data-palette] .discord-editor .discord-invalid{color:var(--theme-accent-text)}
html[data-palette] .discord-editor input[aria-invalid=true]{border-color:var(--theme-red)}
html[data-palette] .discord-id-help{color:var(--theme-muted)}
html[data-palette] .discord-id-help summary{color:var(--theme-ink)}
html[data-palette] .member-card-name{color:var(--theme-ink)}
html[data-palette] .member-rank{color:var(--theme-accent-text)}
html[data-palette] .rank-star{stroke:var(--theme-subtle)}
html[data-palette] .rank-star.is-active{fill:var(--theme-accent-text);stroke:var(--theme-accent-text)}
html[data-palette] .member-departments{color:var(--theme-muted)}
html[data-palette] .member-department-line.is-unassigned{color:var(--theme-muted)}
html[data-palette] .member-card .meta-bottom{color:var(--theme-muted)}

/* accounts.css · color normalization */
html[data-palette] .account-intro p{color:var(--theme-muted)}
html[data-palette] .email-admin-login{border-top:1px solid var(--theme-line)}
html[data-palette] .email-admin-login summary{color:var(--theme-muted)}
html[data-palette] .account-summary{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .account-status{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-accent-text)}
html[data-palette] .account-status.approved{color:var(--theme-ink);border-color:var(--theme-line);background:var(--theme-surface)}
html[data-palette] .account-status.suspended,html[data-palette] .account-status.rejected{background:var(--theme-red-soft);border-color:var(--theme-red)}
html[data-palette] .account-identity{color:var(--theme-muted)}
html[data-palette] .account-identity code{color:var(--theme-ink)}
html[data-palette] .identity-note{color:var(--theme-muted)}
html[data-palette] .permission-summary{border-top:1px solid var(--theme-line);border-bottom:1px solid var(--theme-line)}
html[data-palette] .permission-summary span{color:var(--theme-muted)}
html[data-palette] .owner-locked{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .owner-locked small{color:var(--theme-muted)}
html[data-palette] .review-toolbar select{background:var(--theme-surface);color:var(--theme-ink);border:1px solid var(--theme-line)}
html[data-palette] .review-card{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .review-request dt{color:var(--theme-muted)}
html[data-palette] .review-request dd{color:var(--theme-ink)}
html[data-palette] .grant-options{border:1px solid var(--theme-line)}
html[data-palette] .grant-options legend{color:var(--theme-muted)}
html[data-palette] .grant-options input{accent-color:var(--theme-red)}
html[data-palette] .account-admin-summary{border:1px solid var(--theme-line)}
html[data-palette] .account-admin-summary>summary{color:var(--theme-muted)}
html[data-palette] .profile-privacy{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .profile-privacy p{color:var(--theme-muted)}
html[data-palette] .profile-privacy-track{border:1px solid var(--theme-line);background:var(--theme-surface2)}
html[data-palette] .profile-privacy-track:after{background:var(--theme-surface2)}
html[data-palette] .profile-privacy-toggle input:checked+.profile-privacy-track{background:var(--theme-red);border-color:var(--theme-red)}
html[data-palette] .profile-privacy-toggle input:checked+.profile-privacy-track:after{background:var(--theme-surface2)}
html[data-palette] .profile-privacy-toggle input:focus-visible+.profile-privacy-track{outline:2px solid var(--theme-line)}
html[data-palette] .profile-privacy .form-error{color:var(--theme-accent-text)}
html[data-palette] .application-heading{border-top:1px solid var(--theme-line)}
html[data-palette] .application-heading p,html[data-palette] .privacy-note{color:var(--theme-muted)}
html[data-palette] .privacy-note{background:var(--theme-surface);border-left:2px solid var(--theme-red)}
html[data-palette] .request-match-warning{border:1px solid var(--theme-red);color:var(--theme-warning);background:var(--theme-surface)}
html[data-palette] .review-form select{background:var(--theme-surface);color:var(--theme-ink);border:1px solid var(--theme-line)}

/* personal-dashboard.css · color normalization */
html[data-palette] .dashboard-toolbar-button{background:var(--theme-surface);border:1px solid var(--theme-line);color:var(--theme-ink)}
html[data-palette] .dashboard-toolbar-button span{color:var(--theme-accent-text)}
html[data-palette] .dashboard-toolbar-button:hover{border-color:var(--theme-red);color:var(--theme-ink)}
html[data-palette] .dashboard-logout{color:var(--theme-ink)}
html[data-palette] .dashboard-breadcrumb,html[data-palette] .dashboard-kicker{color:var(--theme-muted)}
html[data-palette] .dashboard-breadcrumb{color:var(--theme-subtle)}
html[data-palette] .dashboard-breadcrumb span{color:var(--theme-accent-text)}
html[data-palette] .dashboard-hero{background:linear-gradient(112deg,var(--theme-surface) 0%,var(--theme-surface) 72%,var(--theme-surface) 100%);border:1px solid var(--theme-line);border-left:3px solid var(--theme-red)}
html[data-palette] .dashboard-avatar{color:var(--theme-ink);background:var(--theme-surface2);border:1px solid var(--theme-line)}
html[data-palette] .dashboard-identity p{color:var(--theme-muted)}
html[data-palette] .dashboard-rank{color:var(--theme-accent-text);background:var(--theme-surface2);border:1px solid var(--theme-line)}
html[data-palette] .dashboard-rank.pending{color:var(--theme-muted)}
html[data-palette] .dashboard-tabs{border-bottom:1px solid var(--theme-line)}
html[data-palette] .dashboard-tab{color:var(--theme-muted)}
html[data-palette] .dashboard-tab:hover{color:var(--theme-ink)}
html[data-palette] .dashboard-tab.active{color:var(--theme-ink);border-color:var(--theme-red)}
html[data-palette] .dashboard-tab-indicator{background:var(--theme-red)}
html[data-palette] .dashboard-section-head h2 span{color:var(--theme-muted)}
html[data-palette] .dashboard-section-head p,html[data-palette] .dashboard-notice p{color:var(--theme-muted)}
html[data-palette] .dashboard-inline-link{color:var(--theme-accent-text)}
html[data-palette] .dashboard-inline-link:hover{color:var(--theme-ink)}
html[data-palette] .dashboard-fleet #manage-scope-note{color:var(--theme-muted)}
html[data-palette] .dashboard-fleet #add-record{background:var(--theme-surface);border:1px solid var(--theme-line);color:var(--theme-ink)}
html[data-palette] .dashboard-fleet #add-record:hover{border-color:var(--theme-red)}
html[data-palette] .dashboard-fleet #record-editor{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .dashboard-ship-row{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .dashboard-ship-row:hover,html[data-palette] .dashboard-ship-row.selected{border-color:var(--theme-red);background:var(--theme-surface)}
html[data-palette] .dashboard-ship-art{background:var(--theme-bg)}
html[data-palette] .dashboard-ship-copy small{color:var(--theme-muted)}
html[data-palette] .dashboard-ship-edit{color:var(--theme-accent-text)}
html[data-palette] .dashboard-empty{border:1px dashed var(--theme-line);background:var(--theme-surface);color:var(--theme-muted)}
html[data-palette] .dashboard-form,html[data-palette] .dashboard-info-card,html[data-palette] .dashboard-notice{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .dashboard-form .field>span{color:var(--theme-ink)}
html[data-palette] .dashboard-field-note{color:var(--theme-muted)}
html[data-palette] .dashboard-savebar{background:var(--theme-surface);border-top:1px solid var(--theme-line)}
html[data-palette] .dashboard-savebar span{color:var(--theme-muted)}
html[data-palette] .dashboard-card-label{color:var(--theme-muted)}
html[data-palette] .dashboard-info-card p,html[data-palette] .dashboard-info-card small{color:var(--theme-muted)}
html[data-palette] .dashboard-login-wrap #login-panel{background:var(--theme-surface);border:1px solid var(--theme-line);border-top:2px solid var(--theme-red)}
html[data-palette] .dashboard-ship-item{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .dashboard-ship-item:hover,html[data-palette] .dashboard-ship-item:focus-within{border-color:var(--theme-red)}
html[data-palette] .dashboard-ship-selection{background:var(--theme-red)}
html[data-palette] .ship-pin-toggle{color:var(--theme-muted)}
html[data-palette] .ship-pin-toggle:hover{border-color:var(--theme-line);background:var(--theme-surface)}
html[data-palette] .ship-pin-toggle[aria-pressed="true"]{color:var(--theme-warning)}
html[data-palette] .ship-pin-toggle:focus-visible{outline:2px solid var(--theme-red)}
html[data-palette] .profile-ship-grid .profile-pin-badge{border:1px solid var(--theme-red);background:var(--theme-surface);color:var(--theme-warning)}
html[data-palette] .ship-editor-meta{color:var(--theme-muted)}
html[data-palette] .ship-editor-meta strong{color:var(--theme-ink)}
html[data-palette] .ship-editor-first-use{border-left:2px solid var(--theme-red);background:var(--theme-surface);color:var(--theme-ink)}
html[data-palette] .ship-editor-tabs{border-bottom:1px solid var(--theme-line)}
html[data-palette] .ship-editor-tabs button{color:var(--theme-muted)}
html[data-palette] .ship-editor-tabs button[aria-selected="true"]{border-bottom-color:var(--theme-red);color:var(--theme-ink)}
html[data-palette] .ship-editor-classification{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .ship-editor-classification summary{color:var(--theme-accent-text)}
html[data-palette] .ship-editor-classification .classification-panel{border-top:1px solid var(--theme-line)}
html[data-palette] .ship-editor-actions{border-top:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .personal-ship-editor .drawer-actions{border-top:1px solid var(--theme-line)}

/* directory.css · color normalization */
html[data-palette] .directory-alert{border:1px solid var(--theme-line);border-left:3px solid var(--theme-red);background:var(--theme-surface);color:var(--theme-accent-text)}
html[data-palette] .member-card.text-only-member:hover:not(.redacted-member){border-color:var(--theme-line);background:var(--theme-surface)}
html[data-palette] .member-card .rank-star{stroke:var(--theme-subtle)}
html[data-palette] .member-card .member-departments{color:var(--theme-muted)}
html[data-palette] .registry-tabs button{color:var(--theme-muted)}
html[data-palette] .registry-tabs button:hover{background:var(--theme-surface)}
html[data-palette] .registry-tabs button[aria-selected="true"]{border-color:var(--theme-red);background:var(--theme-red-soft)}
html[data-palette] .registry-toolbar .search-wrap input::placeholder{color:var(--theme-muted)}
html[data-palette] .registry-department{color:var(--theme-muted)}
html[data-palette] .registry-department.is-open{border-color:var(--theme-line)}
html[data-palette] .registry-department-options{scrollbar-color:var(--theme-line) var(--theme-line);border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .registry-department-choice{color:var(--theme-ink)}
html[data-palette] .registry-department-choice:hover{background:var(--theme-surface)}
html[data-palette] .registry-department-choice[aria-pressed="true"]{border-color:var(--theme-line);background:var(--theme-red-soft)}
html[data-palette] .registry-department-group{border-top:1px solid var(--theme-line)}
html[data-palette] .registry-department-group > span{color:var(--theme-accent-text)}

/* registry-motion.css · color normalization */
html[data-palette] .registry-tab-indicator{border:1px solid var(--theme-red);background:var(--theme-red-soft)}
html[data-palette] .registry-tabs:not(.has-motion-indicator)::before{border:1px solid var(--theme-red);background:var(--theme-red-soft)}
html[data-palette] #members-list button.member-card[data-member]:is(:hover, :focus-visible){border-color:var(--theme-line);background:var(--theme-surface)}
html[data-palette] #members-list button.member-card[data-member]:focus-visible{outline:2px solid var(--theme-red)}
html[data-palette] #members-list button.member-card[data-member] .meta-bottom::after{background:var(--theme-red)}
html[data-palette] .back-to-registry:hover{background-color:var(--theme-surface)}
html[data-palette] .action-feedback::before{background:linear-gradient(110deg, color-mix(in srgb, var(--theme-surface2) 3.14%, transparent), color-mix(in srgb, var(--theme-red) 14.12%, transparent))}
html[data-palette] .action-feedback:is(:hover, :focus-visible){border-color:var(--theme-red)}

/* fleet-overview.css · color normalization */
html[data-palette] .fleet-summary{border:1px solid var(--theme-line);border-left:3px solid var(--theme-red);background:linear-gradient(110deg,var(--theme-surface),var(--theme-bg))}
html[data-palette] .fleet-summary-caption{color:var(--theme-muted)}
html[data-palette] .fleet-stat{border-left:1px solid var(--theme-line)}
html[data-palette] .fleet-stat-label{color:var(--theme-muted)}
html[data-palette] .fleet-stat:last-child .fleet-stat-number{color:var(--theme-accent-text)}
html[data-palette] .fleet-stat-note{color:var(--theme-muted)}
html[data-palette] .fleet-sort-control{color:var(--theme-muted)}
html[data-palette] .fleet-sort-control select{background:var(--theme-surface);color:var(--theme-ink);border:1px solid var(--theme-line)}
html[data-palette] .fleet-sort-control select:focus-visible{outline:2px solid var(--theme-red)}
html[data-palette] .fleet-stat-number .fleet-unit{color:var(--theme-muted)}
html[data-palette] .fleet-stat-note:is(#fleet-msrp-note,#fleet-auec-note){color:var(--theme-muted)}

/* fleet-stacks.css · color normalization */
html[data-palette] .fleet-stack-guide{border-top:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .fleet-stack-guide span:first-child{color:var(--theme-ink)}
html[data-palette] .stack-guide-icon{border:1px solid var(--theme-red)}
html[data-palette] .fleet-stack-back{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .fleet-stack-back.back-one{border-color:var(--theme-red)}
html[data-palette] .fleet-stack-back.back-two{border-color:var(--theme-line)}
html[data-palette] .fleet-stack .fleet-stack-face{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .fleet-stack .fleet-image{background:var(--theme-bg)}
html[data-palette] .stack-quantity{background:color-mix(in srgb, var(--theme-surface) 92.94%, transparent);border:1px solid var(--theme-red);color:var(--theme-ink)}
html[data-palette] .stack-quantity>span{color:var(--theme-accent-text)}
html[data-palette] .stack-quantity small{color:var(--theme-accent-text)}
html[data-palette] .fleet-stack-toggle:hover,html[data-palette] .fleet-stack-toggle[aria-expanded="true"]{background:var(--theme-red-soft);border-color:var(--theme-red)}
html[data-palette] .fleet-stack-records li,html[data-palette] .fleet-stack-more{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .fleet-stack-records li strong{color:var(--theme-ink)}
html[data-palette] .fleet-stack-records li > span{color:var(--theme-muted)}
html[data-palette] .fleet-stack-more{color:var(--theme-accent-text)}
html[data-palette] .fleet-stack-more:hover{border-color:var(--theme-red)}
html[data-palette] .stack-price{color:var(--theme-ink)}
html[data-palette] .stack-price small{color:var(--theme-muted)}
html[data-palette] .fleet-stack:hover .fleet-stack-face{border-color:var(--theme-red)}
html[data-palette] .fleet-stack:hover .back-one{border-color:var(--theme-red)}
html[data-palette] .fleet-stack:hover .back-two{border-color:var(--theme-red)}
html[data-palette] .ship-lookup-link{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-accent-text)}
html[data-palette] .ship-lookup-link > span{color:var(--theme-accent-text)}
html[data-palette] .ship-lookup-link:is(:hover, :focus-visible){background:var(--theme-surface);border-color:var(--theme-red);color:var(--theme-ink)}
html[data-palette] .model-nav{border-bottom:1px solid var(--theme-line)}
html[data-palette] .model-back-link{color:var(--theme-muted)}
html[data-palette] .model-back-link>span{color:var(--theme-accent-text)}
html[data-palette] .model-back-link:hover{color:var(--theme-ink)}
html[data-palette] .model-breadcrumb{color:var(--theme-subtle)}
html[data-palette] .model-heading{border-bottom:1px solid var(--theme-line)}
html[data-palette] .model-heading .eyebrow{color:var(--theme-accent-text)}
html[data-palette] .model-class-path{color:var(--theme-muted)}
html[data-palette] .model-totals{border-left:1px solid var(--theme-line)}
html[data-palette] .model-totals strong{color:var(--theme-ink)}
html[data-palette] .model-totals div:first-child strong{color:var(--theme-accent-text)}
html[data-palette] .model-totals small{color:var(--theme-muted)}
html[data-palette] .model-description{color:var(--theme-muted)}
html[data-palette] .model-price-note{color:var(--theme-subtle)}
html[data-palette] .model-record-count{color:var(--theme-accent-text)}
html[data-palette] .model-vessel{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .model-vessel-cover{background:var(--theme-bg)}
html[data-palette] .model-photo-caption{border-top:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-muted)}
html[data-palette] .model-photo-caption a:hover{color:var(--theme-ink)}
html[data-palette] .model-photo-index{color:var(--theme-accent-text)}
html[data-palette] .model-vessel-label{color:var(--theme-muted)}
html[data-palette] .model-owner-row{border-top:1px solid var(--theme-line);border-bottom:1px solid var(--theme-line)}
html[data-palette] .model-owner-copy>small{color:var(--theme-muted)}
html[data-palette] .model-owner-copy>strong{color:var(--theme-ink)}
html[data-palette] .model-owner-link>span{color:var(--theme-accent-text)}
html[data-palette] .model-owner-link:hover .model-owner-copy>strong{color:var(--theme-accent-text)}
html[data-palette] .model-owner-unassigned{color:var(--theme-muted)}
html[data-palette] .model-bio h4{color:var(--theme-accent-text)}
html[data-palette] .model-bio p{color:var(--theme-muted)}
html[data-palette] .model-endnote{border-top:1px solid var(--theme-line);color:var(--theme-subtle)}
html[data-palette] .model-totals{border-top:1px solid var(--theme-line)}
html[data-palette] .model-standard-count{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-accent-text)}
html[data-palette] .model-registration{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] :is(.model-registration, .model-standard-disclosure) > summary{color:var(--theme-ink)}
html[data-palette] .model-registration > summary:hover,html[data-palette] .model-registration[open] > summary{background:var(--theme-surface)}
html[data-palette] :is(.model-registration, .model-standard-disclosure) > summary::after{border:solid var(--theme-line)}
html[data-palette] .model-standard-disclosure > summary{color:var(--theme-accent-text)}
html[data-palette] .model-standard-disclosure > summary:hover{color:var(--theme-ink)}
html[data-palette] .model-registration-mine,html[data-palette] .model-registration-count{color:var(--theme-accent-text)}
html[data-palette] .model-registration-mine{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .model-registration-record{border-top:1px solid var(--theme-line);color:var(--theme-ink)}
html[data-palette] .model-registration-record small{color:var(--theme-muted)}
html[data-palette] .model-registration-profile,html[data-palette] .model-edit-vessel{color:var(--theme-accent-text)}
html[data-palette] .model-edit-vessel{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .model-registration-profile:hover{color:var(--theme-ink)}
html[data-palette] .model-edit-vessel:hover{border-color:var(--theme-line);background:var(--theme-red-soft)}

/* admin-fleet.css · color normalization */
html[data-palette] .fleet-group-card:hover{background:var(--theme-surface)}
html[data-palette] .fleet-admin-model-cover{background:var(--theme-bg)}
html[data-palette] .fleet-admin-vessel-card{background:var(--theme-surface);border:1px solid var(--theme-line);color:var(--theme-ink)}
html[data-palette] .fleet-admin-vessel-card:hover{border-color:var(--theme-red)}
html[data-palette] .fleet-admin-vessel-card>.fleet-image{background:var(--theme-bg)}
html[data-palette] .fleet-admin-vessel-card .fleet-content>small{color:var(--theme-muted)}
html[data-palette] .fleet-admin-vessel-owner{color:var(--theme-muted)}
html[data-palette] .fleet-admin-vessel-card .fleet-footer b{color:var(--theme-accent-text)}
html[data-palette] .fleet-admin-vessel-card .fleet-footer>span{color:var(--theme-muted)}
html[data-palette] .fleet-model-editor{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .fleet-model-editor .field-help{color:var(--theme-muted)}
html[data-palette] .fleet-model-preview{background:var(--theme-bg)}
html[data-palette] .fleet-model-error{color:var(--theme-accent-text);background:var(--theme-red-soft)}

/* taxonomy.css · color normalization */
html[data-palette] #fleet-filters .fleet-group-btn{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-muted)}
html[data-palette] #fleet-filters .fleet-group-btn:hover{color:var(--theme-ink);border-color:var(--theme-line);background:var(--theme-surface)}
html[data-palette] #fleet-filters .fleet-group-btn.selected{border-color:var(--theme-red);background:var(--theme-red-soft);color:var(--theme-ink)}
html[data-palette] #fleet-filters .fleet-group-count{color:var(--theme-muted)}
html[data-palette] #fleet-filters .fleet-group-btn.selected .fleet-group-count{color:var(--theme-accent-text)}
html[data-palette] #fleet-filters .filter-chevron{color:var(--theme-accent-text)}
html[data-palette] .subtype-panel{border:1px solid var(--theme-line);border-top:2px solid var(--theme-red);background:var(--theme-bg)}
html[data-palette] .subtype-head h3{color:var(--theme-ink)}
html[data-palette] .subtype-head h3 small{color:var(--theme-accent-text)}
html[data-palette] .subtype-head p{color:var(--theme-muted)}
html[data-palette] .subtype-collapse{border:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .subtype-option{background:var(--theme-surface);border:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .subtype-option:hover{border-color:var(--theme-red);color:var(--theme-ink)}
html[data-palette] .subtype-option.active{border-color:var(--theme-red);background:var(--theme-red-soft);color:var(--theme-ink)}
html[data-palette] .subtype-option small{color:var(--theme-muted)}
html[data-palette] .subtype-option.active small{color:var(--theme-accent-text)}
html[data-palette] .subtype-option b{color:var(--theme-accent-text)}
html[data-palette] .filter-path{color:var(--theme-muted)}
html[data-palette] .filter-path strong{color:var(--theme-accent-text)}
html[data-palette] .filter-path button,html[data-palette] .filter-reset{background:var(--theme-surface);border:1px solid var(--theme-line);color:var(--theme-accent-text)}
html[data-palette] .taxonomy-note{color:var(--theme-muted)}
html[data-palette] .taxonomy-note a{color:var(--theme-muted);border-bottom:1px solid var(--theme-line)}
html[data-palette] .taxonomy-note a:hover{color:var(--theme-accent-text)}
html[data-palette] .ship-role-chip{color:var(--theme-muted);background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .ship-role-chip small{color:var(--theme-accent-text)}
html[data-palette] .ship-role-chip.pending{background:var(--theme-surface);color:var(--theme-muted);border-color:var(--theme-line)}
html[data-palette] .classification-panel{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .classification-panel>span{color:var(--theme-muted)}
html[data-palette] .classification-panel strong{color:var(--theme-accent-text)}
html[data-palette] .classification-panel p{color:var(--theme-accent-text)}
html[data-palette] .classification-panel small{color:var(--theme-muted)}
html[data-palette] .classification-panel a{color:var(--theme-accent-text)}
html[data-palette] .classification-panel.pending{border-color:var(--theme-line);background:var(--theme-surface)}
html[data-palette] .category-compat-help{color:var(--theme-muted)}
html[data-palette] #fleet-filters button:focus-visible,html[data-palette] .subtype-panel button:focus-visible,html[data-palette] .filter-path button:focus-visible,html[data-palette] .filter-reset:focus-visible{outline:2px solid var(--theme-red)}
html[data-palette] .focus-filter{border-top:1px solid var(--theme-line)}
html[data-palette] .focus-filter-heading{color:var(--theme-muted)}
html[data-palette] .focus-filter-heading small{color:var(--theme-subtle)}
html[data-palette] .focus-option{border:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .focus-option small{color:var(--theme-accent-text)}
html[data-palette] .focus-option:hover{border-color:var(--theme-red);color:var(--theme-ink)}
html[data-palette] .focus-option.active{color:var(--theme-accent-text);border-color:var(--theme-red);background:var(--theme-red-soft)}

/* organization.css · color normalization */
html[data-palette] .organization-view .org-page-nav{border-bottom:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .organization-view .org-page-nav a:hover{color:var(--theme-ink)}
html[data-palette] .organization-view .org-page-nav>span{color:var(--theme-subtle)}
html[data-palette] .organization-view .org-page-heading p{color:var(--theme-muted)}
html[data-palette] .organization-view .org-heading-mark{color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-toolbar{background:var(--theme-bg);border:1px solid var(--theme-line)}
html[data-palette] .organization-view .org-search{background:var(--theme-bg);border:1px solid var(--theme-line)}
html[data-palette] .organization-view .org-search>span[aria-hidden]{color:var(--theme-muted)}
html[data-palette] .organization-view .org-search input::placeholder{color:var(--theme-subtle)}
html[data-palette] .organization-view .org-search:focus-within{border-color:var(--theme-red)}
html[data-palette] .organization-view .org-filter select{background:var(--theme-surface);color:var(--theme-ink);border:1px solid var(--theme-line)}
html[data-palette] .organization-view .org-filter option,html[data-palette] .organization-view .org-filter optgroup{background:var(--theme-bg);color:var(--theme-ink)}
html[data-palette] .organization-view .org-zoom{border:1px solid var(--theme-line)}
html[data-palette] .organization-view .org-zoom button{background:var(--theme-surface);color:var(--theme-ink)}
html[data-palette] .organization-view .org-zoom button+button{border-left:1px solid var(--theme-line)}
html[data-palette] .organization-view .org-zoom button:hover:not(:disabled){background:var(--theme-red-soft);color:var(--theme-ink)}
html[data-palette] .organization-view .org-reading-guide{color:var(--theme-muted)}
html[data-palette] .organization-view .org-live-dot{background:var(--theme-red)}
html[data-palette] .organization-view .org-guide-divider{color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-results{color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-interaction-hint{color:var(--theme-muted)}
html[data-palette] .organization-view .org-viewport{border:1px solid var(--theme-line);background-color:var(--theme-bg);background-image:radial-gradient(var(--theme-surface2) 1px,transparent 1px);scrollbar-color:var(--theme-line) var(--theme-line)}
html[data-palette] .organization-view .org-chart-company{background:linear-gradient(125deg,var(--theme-red-soft),var(--theme-surface));border:1px solid var(--theme-red);border-top:3px solid var(--theme-red)}
html[data-palette] .organization-view .org-chart-company:after{background:var(--theme-red)}
html[data-palette] .organization-view .org-chart-company-label{color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-chart-company-count{color:var(--theme-muted)}
html[data-palette] .organization-view .org-branches:before{background:var(--theme-red-soft)}
html[data-palette] .organization-view .org-group:before{background:var(--theme-red-soft)}
html[data-palette] .organization-view .org-group-head{background:var(--theme-surface);border:1px solid var(--theme-line);border-top:2px solid var(--theme-red)}
html[data-palette] .organization-view .org-group-head:before{border:1px solid var(--theme-red);background:var(--theme-surface)}
html[data-palette] .organization-view .org-group-index{color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-group-label{color:var(--theme-muted)}
html[data-palette] .organization-view .org-group-count{color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-group-count small{color:var(--theme-muted)}
html[data-palette] .organization-view .org-leaves{border-left:1px solid var(--theme-line)}
html[data-palette] .organization-view .org-leaf{background:var(--theme-bg);border:1px solid var(--theme-line)}
html[data-palette] .organization-view .org-leaf:before{background:var(--theme-surface2)}
html[data-palette] .organization-view .org-leaf-head{border-bottom:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .organization-view .org-leaf-head h3{color:var(--theme-ink)}
html[data-palette] .organization-view .org-leaf-head p{color:var(--theme-muted)}
html[data-palette] .organization-view .org-leaf-head>span{color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-rank-label{color:var(--theme-muted)}
html[data-palette] .organization-view .org-rank-label h4{color:var(--theme-muted)}
html[data-palette] .organization-view .org-rank-label>span:last-child{color:var(--theme-subtle)}
html[data-palette] .organization-view .org-rank-level{background:var(--theme-surface);color:var(--theme-accent-text);border:1px solid var(--theme-line)}
html[data-palette] .organization-view .org-person{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .organization-view .org-person:hover:not(.is-redacted){border-color:var(--theme-red);background:var(--theme-surface)}
html[data-palette] .organization-view .org-person-mark{background:var(--theme-surface2);border:1px solid var(--theme-line);color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-person-name{color:var(--theme-ink)}
html[data-palette] .organization-view .org-person-arrow{color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-person.is-redacted{background:repeating-linear-gradient(-50deg,var(--theme-surface) 0,var(--theme-surface) 6px,var(--theme-surface) 6px,var(--theme-surface) 7px);border-color:var(--theme-red)}
html[data-palette] .organization-view .org-person.is-redacted .org-person-mark{color:var(--theme-accent-text);background:var(--theme-red-soft);border-color:var(--theme-red)}
html[data-palette] .organization-view .org-person.is-redacted .org-person-name{color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-person-private{color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-empty>span{color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-empty h2{color:var(--theme-ink)}
html[data-palette] .organization-view .org-empty p{color:var(--theme-muted)}
html[data-palette] .organization-view .org-reset-filters{background:var(--theme-red-soft);border:1px solid var(--theme-red);color:var(--theme-accent-text)}
html[data-palette] .organization-view .org-footer-note{color:var(--theme-subtle)}
html[data-palette] .organization-view .org-hidden-members{border-top:1px solid var(--ax-card-rule,var(--theme-line))}
html[data-palette] .organization-view .org-hidden-heading>div>span{color:var(--theme-muted)}
html[data-palette] .organization-view .org-hidden-heading h2{color:var(--theme-ink)}
html[data-palette] .organization-view .org-hidden-heading h2 em{color:var(--theme-muted)}
html[data-palette] .organization-view .org-hidden-heading p{color:var(--ax-card-muted,var(--theme-muted))}
html[data-palette] .organization-view .org-redacted-fallback{border:1px solid var(--theme-red);background:var(--theme-surface);color:var(--theme-accent-text)}

/* role-platform.css · color normalization */
html[data-palette] .department-checks{border:1px solid var(--theme-line)}
html[data-palette] .department-checks input{accent-color:var(--theme-red)}
html[data-palette] .review-toolbar input,html[data-palette] .review-toolbar select{background:var(--theme-bg);color:var(--theme-ink);border:1px solid var(--theme-line)}
html[data-palette] .discord-role-chip{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-ink)}
html[data-palette] .discord-role-summary{border:1px solid var(--theme-line)}
html[data-palette] .discord-role-summary legend{color:var(--theme-muted)}
html[data-palette] .joined-date{color:var(--theme-muted)}
html[data-palette] .review-association{border-top:1px solid var(--theme-line)}
html[data-palette] .role-dialog{color:var(--theme-ink);background:var(--theme-bg);border:1px solid var(--theme-line)}
html[data-palette] .role-dialog #role-close{border:1px solid var(--theme-line);color:var(--theme-ink)}
html[data-palette] .role-dialog p{color:var(--theme-muted)}
html[data-palette] .role-option{border-bottom:1px solid var(--theme-line)}
html[data-palette] .role-option input{accent-color:var(--theme-red)}
html[data-palette] .role-option small{color:var(--theme-muted)}
html[data-palette] .fleet-group-card{background:var(--theme-surface);border:1px solid var(--theme-line);color:var(--theme-ink)}
html[data-palette] .fleet-group-card:hover,html[data-palette] .fleet-group-card.selected{border-color:var(--theme-red)}
html[data-palette] .fleet-group-card small{color:var(--theme-muted)}
html[data-palette] .fleet-group-card span,html[data-palette] .fleet-group-card p{color:var(--theme-muted)}
html[data-palette] .fleet-group-card b{color:var(--theme-accent-text)}
html[data-palette] .fleet-group-detail{border-top:1px solid var(--theme-line)}
html[data-palette] .fleet-group-detail h3 small{color:var(--theme-muted)}
html[data-palette] .admin-pagination{color:var(--theme-muted)}
html[data-palette] .cache-age{color:var(--theme-muted)}
html[data-palette] .load-status,html[data-palette] .row-progress{color:var(--theme-accent-text);border-left:2px solid var(--theme-red);background:var(--theme-surface)}
html[data-palette] .load-status:not(.hidden)::before,html[data-palette] [aria-busy=true] #role-dialog-status::before{border:2px solid var(--theme-line);border-top-color:var(--theme-red)}
html[data-palette] .review-card [data-role-age]{color:var(--theme-muted)}
html[data-palette] .fleet-dialog{color:var(--theme-ink);background:var(--theme-bg);border:1px solid var(--theme-line)}
html[data-palette] .fleet-dialog>header{background:var(--theme-bg);border-bottom:1px solid var(--theme-line)}
html[data-palette] .fleet-dialog .record-row{color:var(--theme-ink)}
html[data-palette] .fleet-dialog .editor-title{border-bottom:1px solid var(--theme-line)}

/* company-members.css · color normalization */
html[data-palette] .company-page-heading p,html[data-palette] .company-card-header p{color:var(--theme-muted)}
html[data-palette] .company-card{border:1px solid var(--theme-line);background:linear-gradient(130deg,var(--theme-surface),var(--theme-bg))}
html[data-palette] .company-toolbar input,html[data-palette] .company-note-form textarea{border:1px solid var(--theme-line);background:var(--theme-bg);color:var(--theme-ink)}
html[data-palette] .company-tabs{border-bottom:1px solid var(--theme-line)}
html[data-palette] .company-tabs button{color:var(--theme-muted)}
html[data-palette] .company-tabs [aria-selected=true]{color:var(--theme-ink);border-color:var(--theme-red);background:color-mix(in srgb, var(--theme-red) 10.20%, transparent)}
html[data-palette] .company-status{color:var(--theme-accent-text)}
html[data-palette] .company-member-row{border-top:1px solid var(--theme-line)}
html[data-palette] .company-member-row header span{color:var(--theme-accent-text)}
html[data-palette] .company-member-row dt{color:var(--theme-muted)}
html[data-palette] .company-note-form label{color:var(--theme-muted)}
html[data-palette] .company-import-summary{border:1px solid var(--theme-line);background:var(--theme-red-soft)}
html[data-palette] .company-empty{color:var(--theme-muted)}
html[data-palette] .member-department-group{border-left:2px solid var(--theme-red)}
html[data-palette] .member-department-group strong{color:var(--theme-ink)}
html[data-palette] .member-department-group small{color:var(--theme-muted)}
html[data-palette] .member-company-tenure{color:var(--theme-muted)}
html[data-palette] .fleet-msrp{border:1px solid var(--theme-line);border-left:3px solid var(--theme-red);background:linear-gradient(100deg,var(--theme-surface),var(--theme-bg))}
html[data-palette] .fleet-msrp small{color:var(--theme-muted)}
html[data-palette] .fleet-msrp p{color:var(--theme-muted)}
html[data-palette] .company-card button:focus-visible,html[data-palette] .company-card input:focus-visible,html[data-palette] .company-card textarea:focus-visible{outline:2px solid var(--theme-red)}
html[data-palette] .is-redacted-owner strong{color:var(--theme-accent-text)}
html[data-palette] .detail-person-link.is-redacted-owner{color:var(--theme-accent-text)}

/* ship-metadata-preview.css · color normalization */
html[data-palette] .wiki-parameter-note{color:var(--theme-muted)}

/* ship-photo-crop.css · color normalization */
html[data-palette] .ship-photo-crop{border:1px solid var(--theme-line);background:var(--theme-bg);color:var(--white, var(--theme-ink))}
html[data-palette] .ship-photo-crop-header{border-bottom:1px solid var(--theme-line)}
html[data-palette] .ship-photo-crop-kicker{color:var(--theme-accent-text)}
html[data-palette] .ship-photo-crop-ratio{border:1px solid var(--theme-line);background:var(--theme-surface2);color:var(--theme-accent-text)}
html[data-palette] .ship-photo-crop-frame{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .ship-photo-crop-frame::after{background:linear-gradient(90deg, transparent calc(100% - 1px), color-mix(in srgb, var(--theme-surface2) 33.33%, transparent) 0) 0 0 / calc(100% / 3) 100%,
    linear-gradient(transparent calc(100% - 1px), color-mix(in srgb, var(--theme-surface2) 33.33%, transparent) 0) 0 0 / 100% calc(100% / 3)}
html[data-palette] .ship-photo-crop :is(canvas, input, button):focus-visible{outline:2px solid var(--theme-red)}
html[data-palette] .ship-photo-crop p{color:var(--theme-muted)}
html[data-palette] .ship-photo-crop-scale input{accent-color:var(--theme-red)}
html[data-palette] .ship-photo-crop-result{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .ship-photo-crop-result-label{color:var(--theme-ink)}
html[data-palette] #ship-photo-crop-size{color:var(--theme-muted)}
html[data-palette] .ship-photo-crop-footer{border-top:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] #ship-photo-crop-status{color:var(--theme-accent-text)}

/* tool-sites.css · color normalization */
html[data-palette] .tools-heading>p{color:var(--theme-muted)}
html[data-palette] .tools-back{color:var(--theme-muted)}
html[data-palette] .tools-back:hover{color:var(--theme-ink)}
html[data-palette] .tools-feature{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .tools-feature:hover{background:var(--theme-surface)}
html[data-palette] .tools-feature p{color:var(--theme-muted)}
html[data-palette] .tools-feature-meta{color:var(--theme-muted)}
html[data-palette] .tools-feature-art{background:linear-gradient(90deg,color-mix(in srgb, var(--theme-bg) 66.67%, transparent),color-mix(in srgb, var(--theme-bg) 0.00%, transparent)),repeating-linear-gradient(0deg,transparent 0 39px,color-mix(in srgb, var(--theme-red-soft) 5.10%, transparent) 40px),repeating-linear-gradient(90deg,transparent 0 39px,color-mix(in srgb, var(--theme-red-soft) 5.10%, transparent) 40px);border-left:1px solid color-mix(in srgb, var(--theme-line) 33.33%, transparent)}
html[data-palette] .tools-feature-art:before,html[data-palette] .tools-feature-art:after{border:1px solid color-mix(in srgb, var(--theme-line) 20.00%, transparent)}
html[data-palette] .tools-art-window{background:var(--theme-surface);border:1px solid var(--theme-line)}
html[data-palette] .tools-art-bar{border-bottom:1px solid var(--theme-line)}
html[data-palette] .tools-art-bar i{background:var(--theme-red-soft)}
html[data-palette] .tools-art-grid i{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-accent-text)}
html[data-palette] .tools-art-grid i:first-child{color:var(--theme-ink)}
html[data-palette] .tools-art-caption{color:var(--theme-subtle)}
html[data-palette] .tools-future{color:var(--theme-muted)}
html[data-palette] .tool-directory-count{color:var(--theme-ink)}
html[data-palette] .tool-directory-count small{color:var(--theme-muted)}
html[data-palette] .tool-category-nav{border-bottom:1px solid var(--theme-line)}
html[data-palette] .tool-category-nav a{border:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .tool-category-nav a:hover{background:var(--theme-red-soft);color:var(--theme-ink)}
html[data-palette] .tool-category-heading>small{color:var(--theme-muted)}
html[data-palette] .tool-card{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .tool-card:hover{border-color:var(--theme-red)}
html[data-palette] .tool-logo-stage{background:radial-gradient(ellipse at center,var(--theme-surface2) 0,var(--theme-surface) 70%);border-bottom:1px solid var(--theme-line)}
html[data-palette] .tool-logo-stage:before,html[data-palette] .tool-logo-stage:after{border-color:var(--theme-line)}
html[data-palette] .tool-card-number{color:var(--theme-subtle)}
html[data-palette] .tool-card p{color:var(--theme-muted)}
html[data-palette] .tool-card-domain{border-top:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .tool-directory-note{border-top:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .tools-feature-art{border-bottom:1px solid color-mix(in srgb, var(--theme-line) 33.33%, transparent)}
html[data-palette] .tool-category-nav a[aria-current="location"]{background:var(--theme-red-soft);color:var(--theme-ink)}

/* wiki-ships.css · color normalization */
html[data-palette] .wiki-feature .tools-feature-art{background:radial-gradient(ellipse at center,color-mix(in srgb, var(--theme-red-soft) 25.10%, transparent),transparent 65%),repeating-linear-gradient(0deg,transparent 0 39px,color-mix(in srgb, var(--theme-red-soft) 5.10%, transparent) 40px),repeating-linear-gradient(90deg,transparent 0 39px,color-mix(in srgb, var(--theme-red-soft) 5.10%, transparent) 40px)}
html[data-palette] .wiki-feature-radar:before,html[data-palette] .wiki-feature-radar:after{border:1px solid color-mix(in srgb, var(--theme-line) 50.20%, transparent)}
html[data-palette] .wiki-feature-radar svg{color:var(--theme-accent-text)}
html[data-palette] .wiki-heading p{color:var(--theme-muted)}
html[data-palette] .wiki-source-link{color:var(--theme-muted)}
html[data-palette] .wiki-source-link:hover{color:var(--theme-ink)}
html[data-palette] .wiki-search-form>label{color:var(--theme-muted)}
html[data-palette] .wiki-search-field{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .wiki-search-field>span{color:var(--theme-accent-text)}
html[data-palette] .wiki-search-field input{color:var(--theme-ink)}
html[data-palette] .wiki-reload{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-ink)}
html[data-palette] .wiki-source-status{color:var(--theme-muted);border-bottom:1px solid var(--theme-line)}
html[data-palette] .wiki-results{color:var(--theme-muted)}
html[data-palette] .wiki-ship-card{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .wiki-ship-card:focus-within{border-color:var(--theme-red)}
html[data-palette] .wiki-ship-card:hover{border-color:var(--theme-red)}
html[data-palette] .wiki-ship-image{background:var(--theme-surface)}
html[data-palette] .wiki-ship-image:after{border-bottom:1px solid var(--theme-line)}
html[data-palette] .wiki-image-fallback{color:var(--theme-subtle)}
html[data-palette] .wiki-production{background:color-mix(in srgb, var(--theme-bg) 90.98%, transparent);border:1px solid var(--theme-line);color:var(--theme-accent-text)}
html[data-palette] .wiki-production.is-ready{border-color:var(--theme-line);color:var(--theme-success);background:color-mix(in srgb, var(--theme-surface) 86.67%, transparent)}
html[data-palette] .wiki-manufacturer{color:var(--theme-muted)}
html[data-palette] .wiki-role{color:var(--theme-muted)}
html[data-palette] .wiki-card-stats dt{color:var(--theme-muted)}
html[data-palette] .wiki-card-stats dd{color:var(--theme-ink)}
html[data-palette] .wiki-card-action{border-top:1px solid var(--theme-line);color:var(--theme-muted)}
html[data-palette] .wiki-empty{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .wiki-empty p{color:var(--theme-muted)}
html[data-palette] .wiki-pagination button{border:1px solid var(--theme-line);background:var(--theme-surface)}
html[data-palette] .wiki-pagination>span{color:var(--theme-muted)}
html[data-palette] .wiki-ship-dialog{background:var(--theme-bg);border:1px solid var(--theme-line)}
html[data-palette] .wiki-detail-header{border-bottom:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .wiki-detail-header button{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-ink)}
html[data-palette] .wiki-detail-image{background:var(--theme-surface)}
html[data-palette] .wiki-detail-image-unavailable{color:var(--theme-muted)}
html[data-palette] .wiki-detail-section h3{border-bottom:1px solid var(--theme-line)}
html[data-palette] .wiki-detail-section dt{color:var(--theme-muted)}
html[data-palette] .wiki-detail-section dd{color:var(--theme-ink)}
html[data-palette] .wiki-detail-footer p{color:var(--theme-muted)}
html[data-palette] .wiki-detail-date{color:var(--theme-muted)}
html[data-palette] .wiki-image-credit{color:var(--theme-muted)}

/* redacted-card.css · color normalization */
html[data-palette] .ax-redaction{background:var(--ax-card-bg,var(--theme-bg));border:1px solid var(--ax-card-border,var(--theme-line));color:var(--ax-card-muted,var(--theme-muted))}
html[data-palette] .ax-redaction:before{background:repeating-linear-gradient(0deg,transparent 0,transparent 3px,color-mix(in srgb, var(--theme-surface2) 1.96%, transparent) 3px,color-mix(in srgb, var(--theme-surface2) 1.96%, transparent) 4px)}
html[data-palette] .ax-redaction-label{color:var(--ax-card-muted,var(--theme-muted))}
html[data-palette] .ax-redaction-band{background:repeating-linear-gradient(0deg,color-mix(in srgb, var(--theme-red-soft) 20.00%, transparent) 0,color-mix(in srgb, var(--theme-red-soft) 20.00%, transparent) 1px,transparent 1px,transparent 3px),linear-gradient(90deg,var(--theme-red-soft),var(--theme-red-soft) 22%,var(--theme-red-soft) 78%,var(--theme-red-soft));border-top:1px solid var(--theme-red);border-bottom:1px solid var(--theme-red)}
html[data-palette] .ax-redaction-band:before{background:linear-gradient(0deg,transparent 24%,color-mix(in srgb, var(--theme-red) 7.06%, transparent) 24%,color-mix(in srgb, var(--theme-red) 7.06%, transparent) 25%,transparent 25%,transparent 71%,color-mix(in srgb, var(--theme-red) 5.49%, transparent) 71%,color-mix(in srgb, var(--theme-red) 5.49%, transparent) 73%,transparent 73%)}
html[data-palette] .ax-redaction-band:after{background:linear-gradient(90deg,transparent 0,transparent 22%,color-mix(in srgb, var(--theme-red) 4.71%, transparent) 22%,color-mix(in srgb, var(--theme-red) 4.71%, transparent) 25%,transparent 25%,transparent 68%,color-mix(in srgb, var(--theme-red) 3.14%, transparent) 68%,color-mix(in srgb, var(--theme-red) 3.14%, transparent) 72%,transparent 72%)}
html[data-palette] .ax-redaction-word{color:var(--theme-accent-text)}
html[data-palette] .ax-redaction-word:before{color:var(--theme-accent-text)}
html[data-palette] .ax-redaction-word:after{color:var(--theme-accent-text)}
html[data-palette] .ax-redaction-footer{border-top:1px solid var(--ax-card-rule,var(--theme-line));color:var(--ax-card-muted,var(--theme-muted))}
html[data-palette] .ax-redaction-footer span:last-child{color:var(--theme-subtle)}
html[data-palette] .ax-redaction-corner{border-color:var(--theme-line)}
html[data-palette] .ax-redaction-tick{background:var(--theme-red)}

/* updates.css · color normalization */
html[data-palette] .btn-discord{background:var(--theme-surface2);border:1px solid var(--theme-line);color:var(--theme-ink)}
html[data-palette] .btn-discord:hover{background:var(--theme-surface2);border-color:var(--theme-line)}
html[data-palette] .tools-view{background:var(--theme-bg)}
html[data-palette] .tools-status{color:var(--theme-muted);border:1px solid var(--theme-line)}
html[data-palette] .tools-number{color:color-mix(in srgb, var(--theme-ink) 1.18%, transparent)}
html[data-palette] .tools-placeholder p{color:var(--theme-muted)}
html[data-palette] .tools-bottomline{border-top:1px solid var(--theme-line);color:var(--theme-subtle)}
html[data-palette] .profile-bio{color:var(--theme-muted)}
html[data-palette] .profile-callsign{color:var(--theme-accent-text)}
html[data-palette] .admin-drawer.is-admin-center{background:var(--theme-bg)}
html[data-palette] .is-admin-center .drawer-heading{background:var(--theme-bg)}
html[data-palette] .is-admin-center .account-admin-summary{border:1px solid var(--theme-line);background:var(--theme-bg)}
html[data-palette] .is-admin-center .account-admin-summary>summary{color:var(--theme-muted)}
html[data-palette] .is-admin-center #editor-title{border-bottom:1px solid var(--theme-line)}
html[data-palette] .is-admin-center .review-card{background:var(--theme-bg)}

/* Shared controls: all routes retain the same hierarchy and keyboard states. */
html[data-palette] :is(.btn-red,.full-width.btn-red) {
  background:var(--theme-red-button); border-color:var(--theme-red-button); color:var(--theme-on-red);
}
html[data-palette] .btn-red:is(:hover,:focus-visible) { background:var(--theme-red-hover); border-color:var(--theme-red-hover); color:var(--theme-on-red); }
html[data-palette] :is(.btn-outline,.ghost-button,.dashboard-toolbar-button,.wiki-reload,.ship-lookup-link,.back-to-registry,.model-edit-vessel) {
  color:var(--theme-ink); background:var(--theme-surface); border-color:var(--theme-line);
}
html[data-palette] :is(.btn-outline,.ghost-button,.dashboard-toolbar-button,.wiki-reload,.ship-lookup-link,.back-to-registry,.model-edit-vessel):is(:hover,:focus-visible) {
  color:var(--theme-accent-text); background:var(--theme-red-soft); border-color:var(--theme-red);
}
html[data-palette] .btn-discord { background:var(--theme-surface2); border-color:var(--theme-line); color:var(--theme-ink); }
html[data-palette] :is(input,select,textarea) { color-scheme:inherit; accent-color:var(--theme-red); }
html[data-palette] :is(.field input:not([type=checkbox]),.field select,.field textarea,.company-toolbar input,.company-note-form textarea,.review-toolbar input,.review-toolbar select,.review-form select,.fleet-sort-control select,.org-filter select,.crew-role-input) {
  background:var(--theme-bg); color:var(--theme-ink); border-color:var(--theme-line);
}
html[data-palette] :is(.search-wrap input,.wiki-search-field input,.org-search input) { background:transparent; color:var(--theme-ink); }
html[data-palette] :is(input,textarea)::placeholder { color:var(--theme-subtle); opacity:1; }
html[data-palette] :is(option,optgroup) { background:var(--theme-surface); color:var(--theme-ink); }
html[data-palette] :is(.field input,.field textarea,.field select,.review-toolbar input,.review-toolbar select):focus { border-color:var(--theme-red); }
html[data-palette] :is(button,input,textarea,select,a):focus-visible { outline-color:var(--theme-red); }
html[data-palette] .registry-department select { color-scheme:inherit; }
html[data-palette] :is(.registry-tabs button[aria-selected=true],.chip.selected,.chip:hover,.subtype-option.active,.focus-option.active,.registry-department-choice[aria-pressed=true],.manage-tabs button.selected,.photo-source-switch label:has(input:checked)) {
  background:var(--theme-red-soft); color:var(--theme-accent-text); border-color:var(--theme-red);
}
html[data-palette] :is(.dashboard-tab.active,.company-tabs [aria-selected=true],.ship-editor-tabs button[aria-selected=true]) { color:var(--theme-ink); }
html[data-palette] :is(.registry-tabs button:hover,.registry-department-choice:hover,.subtype-option:hover,.focus-option:hover) { color:var(--theme-ink); }
html[data-palette] :is(.registry-department-options,.detail-dialog,.admin-drawer,.role-dialog,.fleet-dialog,.wiki-ship-dialog,.wiki-detail-header,.fleet-dialog>header,.dashboard-savebar,.ship-editor-actions) {
  background:var(--theme-surface); color:var(--theme-ink); border-color:var(--theme-line);
}
html[data-palette] .fleet-dialog>header { box-shadow:0 -30px 0 var(--theme-surface); }
html[data-palette] :is(.drawer-heading,.wiki-detail-header,.ship-editor-actions,.dashboard-savebar) { border-color:var(--theme-line); }
html[data-palette] :is(.x-button,.drawer-heading button,#wiki-detail-close,#role-close) { background:var(--theme-surface2); border-color:var(--theme-line); color:var(--theme-ink); }
html[data-palette] :is(.registry-department-options,.fleet-stack .fleet-stack-face,.organization-view .org-chart-company) { box-shadow:0 12px 32px var(--theme-shadow); }
html[data-palette] .admin-drawer.is-admin-center { box-shadow:none; }
html[data-palette] .toast { background:var(--theme-surface); border-color:var(--theme-red); color:var(--theme-ink); box-shadow:0 12px 32px var(--theme-shadow); }

/* Personnel and ownership keep the red accent restrained. */
html[data-palette] .member-card.text-only-member { background:var(--theme-surface); border-color:var(--theme-line); }
html[data-palette] .member-card.text-only-member:hover:not(.redacted-member) { background:var(--theme-surface); border-color:var(--theme-red); }
html[data-palette] :is(.member-card-name,.member-card .member-card-name,.member-content h3,.fleet-content h3,.model-owner-copy>strong) { color:var(--theme-ink); }
html[data-palette] :is(.member-card .member-departments,.member-department,.member-department-group small,.member-company-tenure,.model-class-path,.model-description,.detail-bio,.profile-bio,.profile-callsign) { color:var(--theme-muted); }
html[data-palette] :is(.member-rank,.member-card .member-rank,.meta-bottom b,.member-card .meta-bottom b,.red-label,.model-heading .eyebrow) { color:var(--theme-accent-text); }
html[data-palette] .rank-star { stroke:var(--theme-line); }
html[data-palette] .rank-star.is-active { fill:var(--theme-accent-text); stroke:var(--theme-accent-text); }
html[data-palette] :is(.model-vessel,.model-registration,.fleet-admin-vessel-card,.dashboard-ship-row,.dashboard-ship-item,.fleet-stack .fleet-stack-face) { background:var(--theme-surface); border-color:var(--theme-line); }
html[data-palette] :is(.model-photo-caption,.model-registration>summary:hover,.model-registration[open]>summary) { background:var(--theme-surface2); }
html[data-palette] :is(.model-standard-disclosure>summary,.model-registration-profile,.model-registration-count,.model-registration-mine,.model-photo-index,.fleet-footer b,.ship-owner-line strong) { color:var(--theme-accent-text); }
html[data-palette] :is(.fleet-summary,.fleet-msrp,.dashboard-hero,.company-card) { background:linear-gradient(115deg,var(--theme-surface2),var(--theme-surface)); border-color:var(--theme-line); }
html[data-palette] :is(.fleet-summary,.fleet-msrp,.dashboard-hero) { border-left-color:var(--theme-red); }
html[data-palette] .fleet-stat:last-child .fleet-stat-number { color:var(--theme-accent-text); }
html[data-palette] :is(.fleet-stat-number,.model-totals strong,.tool-directory-count,.wiki-card-stats dd,.wiki-detail-section dd) { color:var(--theme-ink); }
html[data-palette] .model-totals div:first-child strong { color:var(--theme-red); }
html[data-palette] :is(.fleet-stat-label,.fleet-stat-note,.fleet-stat-number .fleet-unit,.fleet-summary-caption,.model-totals small) { color:var(--theme-muted); }

/* Image-bound labels remain dark-backed in every palette; photos are unfiltered. */
html[data-palette] :is(.fleet-category,.stack-quantity,.profile-pin-badge,.wiki-production,.official-photo-preview .official-source) {
  background:rgb(29 23 27 / .92); color:#f7f1e9; border-color:#80616f;
}
html[data-palette] :is(.stack-quantity>span,.stack-quantity small) { color:#f7dce2; }
html[data-palette] .wiki-production.is-ready { background:rgb(29 41 31 / .94); color:#e9f1df; border-color:#8c9c7b; }
html[data-palette] .official-photo-preview .official-source:hover { color:#fff; }
html[data-palette] :is(.fleet-image,.model-vessel-cover,.wiki-ship-image,.detail-cover,.official-photo-preview,.fleet-model-preview,.custom-photo-preview) { background:var(--theme-surface2); }
html[data-palette] .tool-logo-stage { background:radial-gradient(ellipse at center,#322a31,#201b1e 74%); border-color:var(--theme-line); }
html[data-palette] .tool-logo-stage .tool-card-number { color:#bca9b3; }
html[data-palette] .tool-logo-stage::before,html[data-palette] .tool-logo-stage::after { border-color:#75616d; }
html[data-palette] .tools-art-grid i:first-child { background:var(--theme-red-button); border-color:var(--theme-red-button); color:var(--theme-on-red); }
html[data-palette] .wiki-feature-radar svg { color:var(--theme-red); filter:none; }

/* Semantic statuses keep their meaning across light and dark surfaces. */
html[data-palette] :is(.account-status.approved,.image-present,.photo-file-status:not(.photo-status-error)) { color:var(--theme-success); }
html[data-palette] .account-status.approved { background:var(--theme-success-bg); border-color:color-mix(in srgb,var(--theme-success) 40%,var(--theme-line)); }
html[data-palette] :is(.request-match-warning,.profile-ship-grid .profile-pin-badge) { background:var(--theme-warning-bg); color:var(--theme-warning); border-color:color-mix(in srgb,var(--theme-warning) 45%,var(--theme-line)); }
html[data-palette] .ship-pin-toggle[aria-pressed=true] { color:var(--theme-warning); }
html[data-palette] :is(.form-error,.fleet-model-error,.account-status.suspended,.account-status.rejected) { color:var(--theme-danger); background:var(--theme-danger-bg); border-color:color-mix(in srgb,var(--theme-danger) 45%,var(--theme-line)); }
html[data-palette] :is(.ghost-danger,.photo-file-status.photo-status-error,.discord-editor .discord-invalid) { color:var(--theme-danger); }
html[data-palette] :is(.system-note,.load-status,.ship-editor-first-use,.classification-panel,.privacy-note) { color:var(--theme-muted); background:var(--theme-red-soft); border-color:var(--theme-line); }
html[data-palette] :is(.classification-panel strong,.ship-editor-classification summary) { color:var(--theme-accent-text); }
html[data-palette] :is(.account-status,.department-parent,.profile-pills span,.ship-role-chip,.discord-role-chip,.model-standard-count) { background:var(--theme-red-soft); border-color:var(--theme-line); color:var(--theme-accent-text); }
html[data-palette] .account-status.approved { background:var(--theme-success-bg); color:var(--theme-success); }

/* Organization map: neutral surfaces, brand-red hierarchy lines. */
html[data-palette] .organization-view .org-viewport { background-color:var(--theme-bg); background-image:radial-gradient(var(--theme-line) 1px,transparent 1px); scrollbar-color:var(--theme-line) var(--theme-bg); }
html[data-palette] .organization-view :is(.org-chart-company,.org-group-head,.org-leaf-head) { background:var(--theme-surface2); border-color:var(--theme-line); }
html[data-palette] .organization-view :is(.org-person,.org-leaf) { background:var(--theme-surface); border-color:var(--theme-line); }
html[data-palette] .organization-view .org-person:hover:not(.is-redacted) { background:var(--theme-red-soft); border-color:var(--theme-red); }
html[data-palette] .organization-view :is(.org-person-name,.org-leaf-head h3,.org-chart-company strong) { color:var(--theme-ink); }
html[data-palette] .organization-view :is(.org-chart-company::after,.org-branches::before,.org-group::before,.org-leaf::before) { background:var(--theme-line); }
html[data-palette] .organization-view :is(.org-group-count,.org-rank-level,.org-person-mark,.org-person-arrow,.org-chart-company-label) { color:var(--theme-accent-text); }
html[data-palette] .organization-view .org-person-mark { background:var(--theme-red-soft); border-color:var(--theme-line); }
html[data-palette] .organization-view .org-person.is-redacted { background:repeating-linear-gradient(-50deg,var(--theme-red-soft) 0,var(--theme-red-soft) 6px,var(--theme-surface2) 6px,var(--theme-surface2) 7px); }
html[data-palette] .organization-view .org-person.is-redacted .org-person-name { color:var(--theme-accent-text); }
html[data-palette] :is(.site-footer,.tools-view) { background:var(--theme-bg); color:var(--theme-ink); }
html[data-palette] .site-footer p { color:var(--theme-muted); }
html[data-palette] .site-footer .footer-credit { color:var(--theme-ink); }

/* Small primary labels retain readable contrast; decorative reds stay brighter. */
html[data-palette] .btn-red { background:var(--theme-red-control); color:var(--theme-on-red); border-color:var(--theme-red-control); }
html[data-palette] .btn-red:hover { background:var(--theme-red-control-hover); border-color:var(--theme-red-control-hover); color:var(--theme-on-red); }
html[data-palette] ::selection { background:var(--theme-red-control); color:var(--theme-on-red); }

html[data-palette] .admin-drawer { box-shadow:-20px 0 60px var(--theme-shadow); }
html[data-palette] .dashboard-ship-selection { background:var(--theme-red-control); border-color:var(--theme-red-control); color:var(--theme-on-red); }

/* Static Hangar Sync pages share the same palette and semantic feedback. */
html[data-palette] { --text:var(--theme-ink); --accent:var(--theme-accent-text); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) { color:var(--theme-ink); background:var(--theme-bg); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(.brand small,.back,.lead,.steps,.notes p,td small,.confirm-area label,.confirm-area #sync-disclosure,.import-community-footer p) { color:var(--theme-muted); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .import-community-footer p+p { color:var(--theme-ink); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(.eyebrow,.heading h1 span,.summary strong) { color:var(--theme-accent-text); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(.beta,.empty,th,tr,#legacy-removals,#unresolved-section,#legacy-removals li+li,.unresolved-item) { border-color:var(--theme-line); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .beta { background:var(--theme-red-soft); color:var(--theme-accent-text); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(.button,select,.unresolved-item input,.unresolved-item select) { color:var(--theme-ink); background:var(--theme-surface2); border-color:var(--theme-line); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .button:is(:hover,:focus-visible) { background:var(--theme-red-soft); border-color:var(--theme-red); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(.button.primary,.extension-install-button) { background:var(--theme-red-control); border-color:var(--theme-red-control); color:var(--theme-on-red); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(.button.primary,.extension-install-button):is(:hover,:focus-visible) { background:var(--theme-red-control-hover); border-color:var(--theme-red-control-hover); color:var(--theme-on-red); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .button:disabled { opacity:.6; }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .button.subtle { background:transparent; color:var(--theme-muted); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(th,td:nth-child(2)::before,td:nth-child(3)::before) { color:var(--theme-muted); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) td:nth-child(1) { color:var(--theme-ink); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(#legacy-removals,#unresolved-section) { background:var(--theme-surface2); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) #message:not(:empty) { color:var(--theme-accent-text); background:var(--theme-red-soft); border-color:var(--theme-red); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .error { color:var(--theme-danger)!important; }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .ok { color:var(--theme-success); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .warn { color:var(--theme-warning); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(#legacy-removals input,.confirm-area input) { accent-color:var(--theme-red-control); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(.extension-install-button,#legacy-removals input):focus-visible { outline-color:var(--theme-red); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .sync-steps::before { background:var(--theme-line); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .sync-steps::after { background:var(--theme-red); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .sync-step-dot { border-color:var(--theme-line); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .sync-steps li:is([aria-current],[data-reached="true"]) { color:var(--theme-ink); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .sync-steps li[aria-current] .sync-step-dot { border-color:var(--theme-red); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .sync-steps li[data-reached="true"] .sync-step-dot { border-color:var(--theme-red); background:var(--theme-red); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .sync-changes strong { color:var(--theme-ink); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(.sync-changes .has-removals,.sync-changes .has-removals strong) { color:var(--theme-danger); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .sync-receipt { color:var(--theme-success); background:var(--theme-success-bg); border-color:var(--theme-success); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) :is(.sync-receipt strong,.sync-receipt-check) { color:var(--theme-success); border-color:var(--theme-success); }
html[data-palette]:has(link[href^="hangar-sync/import.css"]) .sync-receipt p { color:var(--theme-success); }
