/* V35 — theme consistency patch. Loaded after v34-theme.css. */
html[data-theme="dark"]{color-scheme:dark;--bg:#0b1729;--navy:#eaf2ff;--muted:#a9bdd8;--border:#334864;--blue:#79aaff}
@media(prefers-color-scheme:dark){html[data-theme="auto"]{color-scheme:dark;--bg:#0b1729;--navy:#eaf2ff;--muted:#a9bdd8;--border:#334864;--blue:#79aaff}}
@media(prefers-color-scheme:light){html[data-theme="auto"]{color-scheme:light}}
html[data-theme="light"]{color-scheme:light}
:is(html[data-theme="dark"],html[data-theme="auto"]:not([data-theme="light"])) .admin-content{min-width:0}
/* Scope the dark palette to explicit dark and OS-dark auto only. */
html[data-theme="dark"] body{background:#0b1729;color:#eaf2ff}
@media(prefers-color-scheme:dark){html[data-theme="auto"] body{background:#0b1729;color:#eaf2ff}}
html[data-theme="dark"] :is(.panel,.card,.dashboard-stats>div,.stats>div,.v10-admin-search,.edit-panel,.pd-section,.pd-source,.v7-card,.v7-filter,.catalog-search,.catalog-v4-search,.cv5-filter,.cv6-filter){background:#18283f;color:#eaf2ff;border-color:#334864}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:#102035;color:#f1f6ff;border-color:#3b5271;box-shadow:none}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#a3b7d1;opacity:1}
html[data-theme="dark"] :is(.v10-admin-search,.v7-search,.catalog-search-field,.catalog-v4-query,.cv5-search,.cv6-search){background:#102035!important;border:1px solid #3b5271!important;box-shadow:none!important;overflow:hidden}
html[data-theme="dark"] :is(.v10-admin-search,.v7-search,.catalog-search-field,.catalog-v4-query,.cv5-search,.cv6-search) input{background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;color:#f1f6ff!important;min-width:0}
html[data-theme="dark"] :is(.v10-admin-tools,.filters){display:flex;flex-wrap:wrap;align-items:center;gap:12px}
html[data-theme="dark"] :is(.ghost,.danger,button:not(.primary):not(.v7-submit):not(.catalog-submit):not(.catalog-v4-submit):not(.cv5-submit):not(.cv6-submit)){background:#20334d;color:#eaf2ff;border-color:#45607f}
html[data-theme="dark"] :is(.primary,.v7-action,.v7-submit,.catalog-submit,.catalog-v4-submit,.cv5-submit,.cv6-submit){background:#2563eb;color:#fff!important}
html[data-theme="dark"] :is(.dashboard-heading h1,.panel h2,.panel-heading h2,.v7-card-body h3 a,.pd-section h2,.pd-source h3,.v7-section-title h3){color:#f1f6ff}
html[data-theme="dark"] :is(.dashboard-heading p,.panel p,.hint,.dashboard-stats span,.dashboard-stats small,.v7-card-body p,.pd-prose,.pd-facts dt,.program-table th){color:#b5c5dc}
html[data-theme="dark"] :is(.program-table td,.program-table th,td,th){border-color:#344b68}
html[data-theme="dark"] :is(.v7-card-bottom,.catalog-v4-cardbottom){background:#132238;border-color:#344b68}
html[data-theme="dark"] :is(.pd-empty,.catalog-empty,.v7-empty){background:#132238;color:#b5c5dc;border-color:#425a79}
html[data-theme="dark"] :is(.top,footer){background:#12243a;color:#d5e4fa;border-color:#344b68}
html[data-theme="dark"] .top :is(.brand,.nav a){color:#eaf2ff}
html[data-theme="dark"] .yuc-theme-switch select{background:#14263d;color:#f1f6ff;border-color:#415b7b}
@media(prefers-color-scheme:dark){
html[data-theme="auto"] :is(.panel,.card,.dashboard-stats>div,.stats>div,.v10-admin-search,.edit-panel,.pd-section,.pd-source,.v7-card,.v7-filter,.catalog-search,.catalog-v4-search,.cv5-filter,.cv6-filter){background:#18283f;color:#eaf2ff;border-color:#334864}
html[data-theme="auto"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:#102035;color:#f1f6ff;border-color:#3b5271;box-shadow:none}
html[data-theme="auto"] :is(input,textarea)::placeholder{color:#a3b7d1;opacity:1}
html[data-theme="auto"] :is(.v10-admin-search,.v7-search,.catalog-search-field,.catalog-v4-query,.cv5-search,.cv6-search){background:#102035!important;border:1px solid #3b5271!important;box-shadow:none!important;overflow:hidden}
html[data-theme="auto"] :is(.v10-admin-search,.v7-search,.catalog-search-field,.catalog-v4-query,.cv5-search,.cv6-search) input{background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;color:#f1f6ff!important;min-width:0}
html[data-theme="auto"] :is(.ghost,.danger,button:not(.primary):not(.v7-submit):not(.catalog-submit):not(.catalog-v4-submit):not(.cv5-submit):not(.cv6-submit)){background:#20334d;color:#eaf2ff;border-color:#45607f}
html[data-theme="auto"] :is(.primary,.v7-action,.v7-submit,.catalog-submit,.catalog-v4-submit,.cv5-submit,.cv6-submit){background:#2563eb;color:#fff!important}
html[data-theme="auto"] :is(.dashboard-heading h1,.panel h2,.panel-heading h2,.v7-card-body h3 a,.pd-section h2,.pd-source h3){color:#f1f6ff}
html[data-theme="auto"] :is(.dashboard-heading p,.panel p,.hint,.dashboard-stats span,.dashboard-stats small,.v7-card-body p,.pd-prose,.pd-facts dt,.program-table th){color:#b5c5dc}
html[data-theme="auto"] :is(td,th){border-color:#344b68}
html[data-theme="auto"] :is(.v7-card-bottom,.catalog-v4-cardbottom){background:#132238;border-color:#344b68}
html[data-theme="auto"] :is(.top,footer){background:#12243a;color:#d5e4fa;border-color:#344b68}
html[data-theme="auto"] .top :is(.brand,.nav a){color:#eaf2ff}
html[data-theme="auto"] .yuc-theme-switch select{background:#14263d;color:#f1f6ff;border-color:#415b7b}
}
/* Keep search and filter layout usable in both themes. */
.v10-admin-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.v10-admin-search{min-width:min(100%,280px);flex:1 1 280px;max-width:none}
.v10-admin-search input{flex:1;min-width:0;width:100%}
.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.filters>*{min-width:0}
@media(min-width:760px){.filters select{flex:1 1 170px}.filters input{flex:2 1 250px}}
@media(max-width:759px){.filters{flex-direction:column;align-items:stretch}.filters>*{width:100%;max-width:none}}
