/* REPPTRADE v4.4.9 — complete light surface system
   Presentation only. Dark theme, source show themes, Supabase and persistence logic unchanged.
   Loaded last intentionally: resolves the legacy dark-only !important cascade. */
body[data-surface="light"][data-ui-theme="modern"]{
  color-scheme:light;
  --rt9-canvas:#f2f6fb;
  --rt9-paper:#ffffff;
  --rt9-pane:#e7eff8;
  --rt9-pane2:#f6f9fd;
  --rt9-border:#bbccdc;
  --rt9-ink:#172d44;
  --rt9-strong:#10263a;
  --rt9-muted:#526a82;
  --rt9-pink:#ba539e;
  --rt9-violet:#8257bf;
  --rt9-blue:#528db9;
  --bg:var(--rt9-canvas);
  --panel:var(--rt9-paper);
  --panel2:var(--rt9-pane);
  --line:var(--rt9-border);
  --text:var(--rt9-ink);
  --muted:var(--rt9-muted);
  background:var(--rt9-canvas)!important;
  color:var(--rt9-ink)!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.top,.mainnav,.drawerfilters,#drawerFilters){
  background:var(--rt9-canvas)!important;
  color:var(--rt9-ink)!important;
  border-color:var(--rt9-border)!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.hero,.page,.wrap,.toolbar,.tabbar,.master-toolbar-secondary,.nft-toolbar){color:var(--rt9-ink)!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.hero h2,.brand h1,.sectiontitle,.rc440-index-toolbar h3){color:var(--rt9-strong)!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.sectionsub,.hero p,.resultcount,.sectiondesc,.muted,.label,.eyebrow){color:var(--rt9-muted)!important}
body[data-surface="light"][data-ui-theme="modern"] .stat b{color:#354d8a!important}
body[data-surface="light"][data-ui-theme="modern"] .stat span{color:#526b83!important}
body[data-surface="light"][data-ui-theme="modern"] .mainnav .navbtn{color:#41586f!important;background:transparent!important;border-color:transparent!important}
body[data-surface="light"][data-ui-theme="modern"] .mainnav .navbtn:is(.active,:hover,:focus-visible){background:#e4eefa!important;color:#1b3651!important;border-left-color:#9762c4!important;box-shadow:0 0 0 1px #c5adf0!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.quicklink,.pack-chip,.appearance-toggle,.repp-mobile-nav-toggle,.drawer-edit,.close){background:#ffffff!important;color:#21405b!important;border-color:#b6c8db!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.appearance-toggle,.quicklink,.pack-chip):hover{background:#f5f0ff!important;border-color:#b991df!important}
/* Consistent light segmented controls and tabs; preserve gradient *edge*, not dark-filled buttons. */
body[data-surface="light"][data-ui-theme="modern"] :is(.seg,.master-view-toggle,.rc443-mode-switch,.nft-style-toggle){background:transparent!important;border:0!important;box-shadow:none!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.seg,.master-view-toggle,.rc443-mode-switch,.nft-style-toggle)>button,
body[data-surface="light"][data-ui-theme="modern"] .tabbar>.subtab{background:#f7faff!important;color:#344e66!important;border:1px solid #c3d2e0!important;box-shadow:none!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.seg,.master-view-toggle,.rc443-mode-switch,.nft-style-toggle)>button:is(.active,[aria-pressed="true"]),
body[data-surface="light"][data-ui-theme="modern"] .tabbar>.subtab.active{
  color:#223854!important;
  background:linear-gradient(#fff,#fff) padding-box,linear-gradient(110deg,#d872bf,#a690e3 56%,#71b0d6) border-box!important;
  border:1px solid transparent!important;
  box-shadow:0 0 9px rgba(162,105,204,.18)!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.seg,.master-view-toggle,.rc443-mode-switch,.nft-style-toggle)>button:hover:not(.active),
body[data-surface="light"][data-ui-theme="modern"] .tabbar>.subtab:hover:not(.active){color:#1e3551!important;background:#edf4fc!important;border-color:#a8bdd2!important}
body[data-surface="light"][data-ui-theme="modern"] .nft-style-toggle>.nft-style-label{color:#435c77!important}
/* Standard application buttons and fields: all interactive text remains legible. */
body[data-surface="light"][data-ui-theme="modern"] :is(.control,.field,textarea.field,input.field,select.field,.global-search input,
  #drawerShowSearch,.drawer-show-search,.rc440-index-toolbar input,.rc441-index-controls select,.rc443-filter-search input){
  background:#fff!important;color:#182f46!important;border-color:#b8cbdc!important;
  box-shadow:none!important;
}
body[data-surface="light"][data-ui-theme="modern"] input::placeholder,
body[data-surface="light"][data-ui-theme="modern"] textarea::placeholder{color:#62778d!important;opacity:1}
body[data-surface="light"][data-ui-theme="modern"] :is(.filter-trigger,.filter-trigger[aria-expanded],.filter-token,.filter-carry-note){color:#253e56!important;border-color:#a6bace!important;background:transparent!important}
body[data-surface="light"][data-ui-theme="modern"] .filter-trigger:hover,
body[data-surface="light"][data-ui-theme="modern"] .filter-trigger[aria-expanded="true"]{color:#70389b!important;border-bottom-color:#9e6dc9!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.btn:not(.danger):not(.primary),.bootactions .btn.secondary,.rc440-load button){
  background:#f7faff!important;color:#253f59!important;border-color:#b3c7d9!important;
}
body[data-surface="light"][data-ui-theme="modern"] .btn.primary{background:linear-gradient(110deg,#87437d,#63438e)!important;color:#fff!important;border-color:#a578bf!important}
body[data-surface="light"][data-ui-theme="modern"] .btn.danger{color:#fff!important}
/* Panels, forms, setup, audit, NFT, packs: light paper rather than dark-blue islands. */
body[data-surface="light"][data-ui-theme="modern"] :is(.panel,.formpanel,.reviewcard,.notice,.packitem,.savedpack,.nft-row,.setup-show-row,.setup-text-row,
  .setup-panel,.audit-panel,.audit-review,.audit-results,.nft-manager,.master-lists,.ledger,.from-catalogue-row,.modalassetnote){
  background:var(--rt9-paper)!important;color:var(--rt9-ink)!important;border-color:var(--rt9-border)!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.panel h3,.panel h4,.reviewcard h3,.packitem strong,.nft-title,.setup-panel h3,.setup-show-row strong){color:var(--rt9-ink)!important}
body[data-surface="light"][data-ui-theme="modern"] :is(#page-add,#page-packs,#page-setup) :is(.panel,.formpanel){background:var(--rt9-paper)!important;color:var(--rt9-ink)!important}
body[data-surface="light"][data-ui-theme="modern"] :is(#page-add,#page-packs,#page-setup) :is(input,textarea,select){background:#f8fbff!important;color:#203b54!important;border-color:#b2c6d8!important}
body[data-surface="light"][data-ui-theme="modern"] :is(#page-add,#page-packs,#page-setup) :is(input,textarea)::placeholder{color:#60788e!important}
body[data-surface="light"][data-ui-theme="modern"] :is(#page-add,#page-packs,#page-setup) :is(.formrow label,.sectionsub,.setup-row-meta,.setup-text-row small){color:#50677e!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.ledger th,.ledger td){background:#fff!important;color:#253c54!important;border-color:#d2deea!important}
body[data-surface="light"][data-ui-theme="modern"] .ledger tr:hover td{background:#eef5fc!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.form-preview,.record-title-preview,#fTitlePreview,#emTitlePreviewV433){background:#eaf1fa!important;color:#1a3853!important;border-color:#a9c4da!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.nft-pill,.nft-state){color:#233d56!important}
body[data-surface="light"][data-ui-theme="modern"] .audit-panel .audit-session-note,
body[data-surface="light"][data-ui-theme="modern"] .audit-empty{color:#526b82!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.audit-warning,.notice.warning){background:#fff8e8!important;color:#765121!important;border-color:#e5cca2!important}
/* The library body stays unframed. Easy Readability is a LIGHT reading mode when surface=light. */
body[data-surface="light"][data-ui-theme="modern"] :is(#libraryTiles,#libraryRecent,.recent-wrap){background:transparent!important;border:0!important;box-shadow:none!important}
body[data-surface="light"][data-ui-theme="modern"].easy-readability :is(#libraryTiles .showtile,#libraryRecent .recent-card,.drawer .boot){
  background:linear-gradient(#fff,#fff) padding-box,var(--show-easy-border,linear-gradient(120deg,var(--show-accent),var(--show-secondary))) border-box!important;
  border:2px solid transparent!important;color:#21384e!important;
  box-shadow:0 3px 13px rgba(29,49,78,.065)!important;
}
body[data-surface="light"][data-ui-theme="modern"].easy-readability :is(#libraryTiles .showtile,#libraryRecent .recent-card) :is(h3,.eyebrow,.recent-title,.recent-show,.tilemeta,.recording-count-chip){color:#233c53!important}
body[data-surface="light"][data-ui-theme="modern"].easy-readability .drawer .boot :is(.info,.detailbox,.block){background:#f6f9fe!important;color:#243c55!important;border-color:#cad7e4!important}
body[data-surface="light"][data-ui-theme="modern"].easy-readability .drawer .boot .boottitle{background:#f3f7fc!important;color:#152e48!important;border-color:#a7c0d5!important}
/* Master Catalogue: light cards + readable title panels; preserve release tags and ownership status. */
body[data-surface="light"][data-ui-theme="modern"] :is(.mastercard.v43-card.repp439-catalogue,.master-show-card){
  background:#fff!important;color:#20394f!important;
  box-shadow:0 5px 14px rgba(24,52,80,.07)!important;
}
body[data-surface="light"][data-ui-theme="modern"] .mastercard.v43-card.repp439-catalogue:not(.is-owned) h4,
body[data-surface="light"][data-ui-theme="modern"] .master-show-card .master-show-name{
  background:#f1f6fd!important;color:#1b344b!important;
  border-color:#b0c8dc!important;text-shadow:none!important;
}
body[data-surface="light"][data-ui-theme="modern"] .mastercard.v43-card.repp439-catalogue:not(.is-owned) :is(.catalogue-meta span,.catalogue-source-tag){background:#f2f7fc!important;color:#294965!important;border-color:#c1d4e5!important}
body[data-surface="light"][data-ui-theme="modern"] .mastercard.v43-card.repp439-catalogue.is-owned{
  background:#cfeee2!important;border-color:#21966c!important;color:#153d32!important;
}
body[data-surface="light"][data-ui-theme="modern"] .mastercard.v43-card.repp439-catalogue.is-owned h4{background:#eefaf3!important;color:#18513c!important;border-color:#5dad88!important}
body[data-surface="light"][data-ui-theme="modern"] .mastercard.v43-card.repp439-catalogue.is-owned .catalogue-meta span{background:#e5f6ed!important;color:#19553c!important;border-color:#92ceb0!important}
body[data-surface="light"][data-ui-theme="modern"] .mastercard.v43-card.repp439-catalogue.is-owned .catalogue-owned-footer{background:#fff!important;color:#166646!important}
body[data-surface="light"][data-ui-theme="modern"] .master-show-card :is(.master-show-count,.master-show-badge,.master-show-stats){color:#28415b!important}
/* Filters must be light all the way through: shell, sidebar, labels, search and choices. */
body[data-surface="light"][data-ui-theme="modern"] .filter-cascade{
  background:#fff!important;color:#172e44!important;border:1px solid #b4c9dd!important;
  box-shadow:0 17px 38px rgba(28,56,90,.16)!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.filter-cascade-categories,.filter-cascade-values,.filter-cascade-inner){background:#fff!important;color:#18364e!important;border-color:#d4dfeb!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.filter-cascade h3,.filter-cascade h4,.filter-cascade-title,.filter-category,.filter-option,.filter-close){color:#263f57!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.filter-category.current,.filter-category:hover,.filter-option:hover,.filter-option[aria-current="true"]){background:#e6f0fa!important;color:#17446a!important}
body[data-surface="light"][data-ui-theme="modern"] .filter-cascade input{background:#f6faff!important;color:#183449!important;border-color:#adbfce!important}
body[data-surface="light"][data-ui-theme="modern"] .filter-cascade .filter-option{border-color:#d9e4ec!important}
/* Cast and Roles index: bright backgrounds and readable cards. */
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-index-toolbar,.rc441-index-controls){border-color:#cad8e6!important;color:#233f5a!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-index-toolbar h3,.rc440-index-toolbar p){color:#183b54!important}
body[data-surface="light"][data-ui-theme="modern"] #libraryCast :is(.rc440-actor-card,.rc443-role-card){background:#fff!important;color:#1c3954!important;border-color:#b9cddd!important}
body[data-surface="light"][data-ui-theme="modern"] #libraryCast :is(.rc440-actor-card,.rc443-role-card) :is(strong,small,.rc440-actor-text,.rc443-role-card-copy span){color:#23415d!important}
body[data-surface="light"][data-ui-theme="modern"] #libraryCast :is(.rc440-actor-card,.rc443-role-card):is(:hover,:focus-visible){background:#e9f1fb!important;border-color:#9ba7d4!important}
body[data-surface="light"][data-ui-theme="modern"] #libraryCast :is(.rc440-actor-card,.rc443-role-card):is(:hover,:focus-visible) :is(strong,small,.rc440-actor-text,.rc443-role-card-copy span){color:#163751!important}
body[data-surface="light"][data-ui-theme="modern"] .rc440-actor-portrait{background-color:#e9f1fa!important;border-color:#abc0d5!important;color:#26435e!important}
/* Modal system: recording, actor, role, catalogue, forms and confirmation dialogs all have light interiors. */
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-window,.showmodal,.record-edit-modal-v433,.v4-wide-modal,.audit-modal,#catalogueDetailModal){
  background:#f9fbff!important;color:#1c364d!important;border-color:#afc4d7!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-head,.showmodal-head,.showmodal-actions,#catalogueDetailModal .showmodal-head,.record-edit-modal-v433 .showmodal-head,.record-edit-modal-v433 .showmodal-actions){
  background:#e9f2fb!important;color:#1b3953!important;border-color:#c5d7e6!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-head h2,.rc440-head>span,.showmodal-head h3,#catalogueDetailModal .showmodal-head h3){color:#152e47!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-body,.showmodal-body,#catalogueDetailModal .showmodal-body,.record-edit-modal-v433 .showmodal-body){background:#f9fbff!important;color:#1c344c!important}
body[data-surface="light"][data-ui-theme="modern"] :is(#rc440Close,.showmodal .close){background:#fff!important;color:#243d57!important;border-color:#9eb7cf!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-record-top,.rc440-field,.rc440-notes,.rc440-cast-member,.rc440-form-images,
 .catalogue-detail-box,.rc447-catalogue-control,.rc447-empty,.rc447-master-card,.rc447-master-record,.rc440-role-notice){
  background:#fff!important;color:#1a364e!important;border-color:#bed1e1!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-record-top h3,.rc440-field strong,.rc440-cast-member strong,.rc440-actor-heading h3,.rc440-role-group h4,.rc447-section-title,.rc447-master-role-group h4,.rc447-master-card-label strong,.rc440-section h3,.rc440-actor-show strong,
  .catalogue-detail-box .value){color:#19374e!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-record-top .rc440-kicker,.rc440-mini,.rc440-field span,.rc440-cast-member span,
  .rc440-actor-heading p,.rc440-section h3 small,.rc440-actor-show small,.rc447-description,.rc447-catalogue-control p,.rc447-master-card-label small,.rc447-record-meta,.rc440-muted,.rc440-empty){color:#536e86!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-actor-show,.rc447-master-card>summary,.rc447-master-record>summary){background:#f1f6fc!important;color:#19374f!important;border-color:#c1d1e0!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-actor-show,.rc447-master-card>summary,.rc447-master-record>summary):hover{background:#e2effa!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc447-catalogue-control .rc447-master-toggle,.rc447-record-meta strong){color:#233f59!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-upload button,.rc440-footer button,.rc440-footer a,.rc440-actor-heading button){background:#eaf3fb!important;border-color:#acc3da!important;color:#1b3b57!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-gallery,.rc440-section,.rc440-actor-heading,.rc440-footer,.rc447-section-title){border-color:#c6d8e7!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-form-images input,.record-edit-modal-v433 input,.record-edit-modal-v433 textarea,.record-edit-modal-v433 select,.showmodal input,.showmodal textarea,.showmodal select){background:#fff!important;color:#203d55!important;border-color:#abc2d5!important}
/* Show collection: retains artwork, yet the header, filter tools, and individual recording info are light. */
body[data-surface="light"][data-ui-theme="modern"] .drawer{
  background:#f5f9fe!important;color:#1a364f!important;border-left-color:#c0d0de!important;
}
body[data-surface="light"][data-ui-theme="modern"] .drawer .drawerhead{
  background:#eef5fc!important;color:#1c364b!important;
  border-color:var(--show-accent,#b3c5d6)!important;
}
body[data-surface="light"][data-ui-theme="modern"] .drawer .drawerhead :is(.eyebrow,#drawerSub){color:#33506a!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer .drawerhead h2{
  background:#fff!important;color:#152e46!important;border-color:#b5c7d8!important;text-shadow:none!important;
}
body[data-surface="light"][data-ui-theme="modern"] .drawer :is(.drawerfilters,#drawerFilters,.production-tabs,.drawer-filter-controls){background:#f4f8fd!important;color:#26455c!important;border-color:#c9d7e5!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer :is(.production-tab,.production-tab:not(.active)){
  background:#fff!important;color:#344e67!important;border-color:#afc5d8!important;
}
body[data-surface="light"][data-ui-theme="modern"] .drawer .production-tab.active{background:#dfecf8!important;color:#1b4562!important;border-left-color:var(--show-accent,#a477ca)!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer .production-tab:hover{background:#e6f2fb!important;color:#1c3d55!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer .drawerbody{background:#f5f9fe!important;color:#203a51!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer .boot{
  background:linear-gradient(115deg,#fff,#f7faff) padding-box,linear-gradient(125deg,var(--show-accent,#91a7d3),var(--show-secondary,#ca96d1)) border-box!important;
  border:2px solid transparent!important;color:#172f46!important;
  box-shadow:0 4px 16px rgba(33,58,90,.08)!important;
}
body[data-surface="light"][data-ui-theme="modern"] .drawer .boot .bootmain{background:transparent!important;color:#213f57!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer .boot .boottitle{
  background:#edf3fa!important;color:#18334c!important;border:1px solid #b3c9db!important;
}
body[data-surface="light"][data-ui-theme="modern"] .drawer .boot :is(.info,.detailbox,.block){
  background:#fff!important;color:#203b55!important;border-color:#c2d4e2!important;
}
body[data-surface="light"][data-ui-theme="modern"] .drawer .boot :is(.value,.cast,.notes,.label){color:#203b53!important;text-shadow:none!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer .boot .label{color:#506b84!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer .bootactions{background:#f0f5fb!important;color:#253d55!important;border-top-color:#c8d8e4!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer .bootactions :is(a,button):not(.primary):not(.danger){background:#fff!important;color:#25445e!important;border-color:#abbfd2!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer .bootactions .primary{background:#e6f0fb!important;color:#183d5b!important;border-color:#9bb9d5!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer .bootactions .danger{background:#fff4f5!important;color:#a22d46!important;border-color:#dfadbd!important}
/* A dedicated light scrollbar instead of legacy black/bronze scrollbars. */
body[data-surface="light"][data-ui-theme="modern"] *{scrollbar-color:#b0c1d3 #ecf2f8}
body[data-surface="light"][data-ui-theme="modern"] ::-webkit-scrollbar-track{background:#edf3f9!important}
body[data-surface="light"][data-ui-theme="modern"] ::-webkit-scrollbar-thumb{background:#b5c4d3!important;border:2px solid #edf3f9!important}
body[data-surface="light"][data-ui-theme="modern"] ::-webkit-scrollbar-thumb:hover{background:#aa87c2!important}
/* Motion still honors OS accessibility choices; no layout mutation. */
@media(prefers-reduced-motion:reduce){body[data-surface="light"][data-ui-theme="modern"] *{scroll-behavior:auto!important}}
/* Readability refinements discovered in real light-mode browser review. */
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-role-group .rc446-actor-role-link,.rc440-role-group h4 .rc446-actor-role-link,.rc447-master-role-group h4 a){
  color:#23527c!important;text-decoration-color:#7fa5cc!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc440-role-group .rc446-actor-role-link,.rc447-master-role-group h4 a):hover{color:#864fae!important}
body[data-surface="light"][data-ui-theme="modern"] .drawer :is(.production-heading,.production-heading span){
  color:#1d3854!important;background:#e8f1fb!important;border-color:var(--show-accent,#8aaed3)!important;
}
body[data-surface="light"][data-ui-theme="modern"] #drawerShowSearch,
body[data-surface="light"][data-ui-theme="modern"] .drawer #drawerShowSearch,
body[data-surface="light"][data-ui-theme="modern"] .drawer .drawer-show-search,
body[data-surface="light"][data-ui-theme="modern"] .drawer .drawer-search-wrap{
  background:#fff!important;color:#26455e!important;border-color:#adc4d8!important;
}
body[data-surface="light"][data-ui-theme="modern"] .drawer #drawerShowSearch::placeholder{color:#627e98!important}
body[data-surface="light"][data-ui-theme="modern"] .rc440-shot,
body[data-surface="light"][data-ui-theme="modern"] .rc440-role-art{background-color:#e9f1f9!important;border-color:#b6cddd!important}
body[data-surface="light"][data-ui-theme="modern"] .mastercard.v43-card.repp439-catalogue.is-owned .catalogue-source-tag{color:#1c5741!important}
body[data-surface="light"][data-ui-theme="modern"] .audit-readonly{
  background:#fff6e9!important;border:1px solid #e6cba4!important;color:#6c512d!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.audit-preflight span,.audit-preflight b){color:#264257!important}
body[data-surface="light"][data-ui-theme="modern"] .audit-preflight span{background:#eff6fd!important;border-color:#c4d8e8!important}
/* Targeted high-specificity fixes for dark-only legacy rules uncovered by screenshot QA. */
body[data-surface="light"][data-ui-theme="modern"] #catalogueDetailModal .showmodal-head h3,
body[data-surface="light"][data-ui-theme="modern"] #catalogueDetailTitle{
  background:#f3f7fd!important;color:#17344e!important;
  border:1px solid #bad0e3!important;
}
body[data-surface="light"][data-ui-theme="modern"] .rc446-cast-actor,
body[data-surface="light"][data-ui-theme="modern"] .catalogue-detail-cast .rc446-cast-actor{color:#1d3950!important}
body[data-surface="light"][data-ui-theme="modern"] .rc446-cast-role,
body[data-surface="light"][data-ui-theme="modern"] .catalogue-detail-cast .rc446-cast-role{color:#416884!important}
body[data-surface="light"][data-ui-theme="modern"] .rc446-cast-role span{color:#8757b1!important}
body[data-surface="light"][data-ui-theme="modern"] #page-setup .setup-show-row,
body[data-surface="light"][data-ui-theme="modern"] #page-setup .setup-text-row{
 background:#f8fbff!important;color:#1a344d!important;border:1px solid #c1d3e4!important;
}
body[data-surface="light"][data-ui-theme="modern"] #page-setup :is(.setup-show-row,.setup-text-row) :is(.setup-row-name,.setup-row-meta){color:#25455e!important}
body[data-surface="light"][data-ui-theme="modern"] .filter-cascade .filter-category,
body[data-surface="light"][data-ui-theme="modern"] .filter-cascade .filter-option,
body[data-surface="light"][data-ui-theme="modern"] .filter-cascade .filter-cascade-values h3{
  color:#254560!important;
}
body[data-surface="light"][data-ui-theme="modern"] .filter-cascade .filter-category.current,
body[data-surface="light"][data-ui-theme="modern"] .filter-cascade .filter-category:hover,
body[data-surface="light"][data-ui-theme="modern"] .filter-cascade .filter-option[aria-current="true"],
body[data-surface="light"][data-ui-theme="modern"] .filter-cascade .filter-option:hover{
  background:#e7f0fa!important;color:#1b486a!important;
}
body[data-surface="light"][data-ui-theme="modern"] .filter-cascade .filter-option[aria-current="true"]::before{color:#8759af!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.format-preview,#formatPreview,#emFormatPreviewV433,#emAltFormatPreviewV433){
  background:#edf4fb!important;color:#27425c!important;border:1px solid #b8cede!important;
}
body[data-surface="light"][data-ui-theme="modern"] .audit-readonly{
  background:#f2f5ff!important;color:#3f5178!important;border-color:#c8d5e9!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.setup-row-meta,.profile-note,.profile-status,.sectionsub,.master-suggest-copy){color:#526d86!important}
