/* ISOHU 1.2.7.1 -- additive light BRG on independent surfaces; dark is unchanged. */
:root[data-isohu-effective="light"]{color-scheme:light;--bg:#f6f8f4;--panel:#ffffff;--panel2:#edf4ec;--stroke:#d0dfd0;--ink:#193c2a;--sub:#496653;--mint:#2d6a43;--gold:#8a5c21;--text:#193c2a;--muted:#4c6855;--surface:#ffffff;--surface-2:#ecf3ea;--line:#d2e1d3}
:root[data-isohu-effective="light"] body{background:radial-gradient(ellipse at 92% 2%,#deebdd 0%,transparent 48%),#f6f8f4;color:#193c2a}
/* Site navigation and its logo remain dark in every mode. */
:root[data-isohu-effective="light"] .isohu-site-nav{color-scheme:dark;--is-nav-bg:#12251b;--is-nav-text:#e9eee4;--is-nav-muted:#b1bcaf;background:linear-gradient(115deg,#14291e,#102117 85%);color:#e9eee4}
:root[data-isohu-effective="light"] .isohu-site-nav__tools{background:linear-gradient(95deg,#1c3425,#172d20)}
:root[data-isohu-effective="light"] .isohu-site-nav :is(a,button,summary){color:inherit}
:root[data-isohu-effective="light"] .isohu-site-nav__tools-inner a[aria-current="page"]{color:#173322}
/* Standalone Vault and Studio */
:root[data-isohu-effective="light"] :is(.upload,.vaultpanel,.import-workflow,.workarea,.pane,.panel,.workspace,.vault-overview,.panehead,.toolbar,.workhead,.layout-options,.search-summary,.work-save.vaultpanel,.keyboard-scroll,.note-editor,.compare-bar,.topbar,.banner,.why-registry){border-color:#ccdecd;color:#193c2a}
:root[data-isohu-effective="light"] :is(.upload,.vaultpanel,.import-workflow,.workarea,.pane,.panel,.workspace,.vault-overview,.panehead,.toolbar,.workhead,.layout-options,.search-summary,.work-save.vaultpanel,.compare-bar,.banner,.why-registry){background:#fff;box-shadow:0 8px 25px #25482a10}
:root[data-isohu-effective="light"] :is(.keyboard-scroll,.workspace,.topbar){background:linear-gradient(125deg,#e9f2e7,#f8faf7)}
:root[data-isohu-effective="light"] :is(.subtitle,.lede,.notice,.vdesc,.tip,.description,.status,.search-summary-note,.vault-legacy,.workflow-heading p,.note-editor p){color:#516b59}
:root[data-isohu-effective="light"] :is(h1,h2,h3,.brand,.upload-title,.panehead,.panel-title,.workflow-heading,.workhead){color:#183d2a}
:root[data-isohu-effective="light"] :is(.eyebrow,.step,.board-model,.search-summary-title,.vaultpanel .vstatus,.vault-overview-title){color:#2a6940}
:root[data-isohu-effective="light"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.find,.note-fields input,.note-fields textarea,.layout-choice select,.vaultpanel input,.vaultpanel select){background:#f8fbf7;color:#193c2a;border-color:#b7cfbb}
:root[data-isohu-effective="light"] input::placeholder,:root[data-isohu-effective="light"] textarea::placeholder{color:#748979}
:root[data-isohu-effective="light"] :is(button,input::file-selector-button,.studio-cta,.search-jump,.layers button,.search-jump.not-visible){background:#e5f0e4;color:#1b4a30;border-color:#a9c6ae}
:root[data-isohu-effective="light"] :is(button:hover,.studio-cta:hover,.search-jump:hover,.layers button:hover){background:#d3e5d2;color:#193e2b}
:root[data-isohu-effective="light"] :is(.layers button[aria-pressed="true"],.search-jump.current,.pill){background:#295b3a;color:#fff;border-color:#295b3a}
:root[data-isohu-effective="light"] :is(.key,.keycap,.keyboard-key){color:#202922} /* preserve existing keycap visuals */
:root[data-isohu-effective="light"] .key.search-current{outline-color:#287245!important}
:root[data-isohu-effective="light"] :is(.work-save .save-context,.note-message){color:#28613d}
:root[data-isohu-effective="light"] :is(.error,.warn,.layout-warning,.vaultpanel .warn){color:#9e4936}
/* Registry cards and filters: leave highlighted code/key tokens alone. */
:root[data-isohu-effective="light"] :is(.isohu-registry-page,.isohu-registry-page main){color:#183c2b;background:#f6f8f4}
:root[data-isohu-effective="light"] .isohu-registry-page :is(.panel,.banner,.why-registry,.field,.filter-grid,.result-card,.function-card){background:#fff;color:#193c2a;border-color:#cfdfd0}
:root[data-isohu-effective="light"] .isohu-registry-page :is(p,.subtitle,.description,.muted){color:#516b59}
/* Member access and recovery pages */
:root[data-isohu-effective="light"] body.isohu-account-page{background:radial-gradient(ellipse at top right,#e1ede0,#f8faf7 65%);color:#193c2a}
:root[data-isohu-effective="light"] .isohu-account-page main :is(.card,.notice,.success){background:#fff;color:#193c2a;border-color:#cddfcf;box-shadow:0 20px 50px #23442912}
:root[data-isohu-effective="light"] .isohu-account-page main :is(h1,.brand,strong,label){color:#193c2a}
:root[data-isohu-effective="light"] .isohu-account-page main :is(p,.muted,.toplink){color:#506b58}
:root[data-isohu-effective="light"] .isohu-account-page main :is(input,textarea,select){background:#f8fbf7;color:#193c2a;border-color:#b8cfbd}
:root[data-isohu-effective="light"] .isohu-account-page main :is(button,.button){background:#285d3b;color:#fff}
:root[data-isohu-effective="light"] .isohu-account-page main :is(button.secondary,.button.secondary){background:#e0eee0;color:#225335}
:root[data-isohu-effective="light"] .isohu-account-page main .notice:not(.success){background:#fff6eb;border-color:#dfc4a1;color:#7c4e1c}
:root[data-isohu-effective="light"] .isohu-account-page main .notice.success{background:#e7f4e7;border-color:#aed1b2;color:#205a34}
/* UI focus and reduced motion */
:root[data-isohu-effective="light"] :is(button,input,select,textarea,a):focus-visible{outline:2px solid #276e45;outline-offset:2px}

/* ISOHU 1.2.7.2 - Studio JSON upload contrast, light mode only.
   Preserve dark mode, native file input behavior and all upload handlers. */
:root[data-isohu-effective="light"] .filebox {
  background: #edf5eb;
  border: 1px dashed #9fbea5;
  color: #193c2a;
}
:root[data-isohu-effective="light"] .filebox label {
  color: #234a32;
}
:root[data-isohu-effective="light"] .filebox input[type="file"] {
  color: #435e4b;
  color-scheme: light;
}
:root[data-isohu-effective="light"] .filebox input[type="file"]::file-selector-button {
  background: #fff;
  color: #21482f;
  border: 1px solid #a5c3ab;
  border-radius: 6px;
}
:root[data-isohu-effective="light"] .filebox input[type="file"]::file-selector-button:hover {
  background: #daeada;
}

/* ISOHU 1.2.7.3 -- Safari/Chromium native file button contrast.
   Light mode only; never alter the input, upload handlers, or dark theme. */
:root[data-isohu-effective="light"] .filebox input[type="file"] {
  color-scheme: light !important;
  background: transparent !important;
  color: #173b29 !important;
}
:root[data-isohu-effective="light"] .filebox input[type="file"]::file-selector-button,
:root[data-isohu-effective="light"] .filebox input[type="file"]::-webkit-file-upload-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #e3eee2 !important;
  background-image: none !important;
  color: #173b29 !important;
  -webkit-text-fill-color: #173b29 !important;
  border: 1px solid #a8c7ad !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-weight: 650 !important;
  opacity: 1 !important;
}
:root[data-isohu-effective="light"] .filebox input[type="file"]::file-selector-button:hover,
:root[data-isohu-effective="light"] .filebox input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #d4e6d2 !important;
}

/* ISOHU 1.2.7.4 — Configuration Studio transfer / local draft light palette.
   Scoped to explicit effective light; no changes to functionality, keyboard keys,
   dark mode, shared navbar or export behavior. */
:root[data-isohu-effective="light"] .transfer-panel {
  background: linear-gradient(125deg,#f0f6ef,#ffffff) !important;
  border-color: #c2d8c5 !important;
  color: #193c2a !important;
  box-shadow: 0 8px 26px rgba(25,68,41,.07);
}
:root[data-isohu-effective="light"] .transfer-head,
:root[data-isohu-effective="light"] .transfer-head strong { color:#193c2a !important; }
:root[data-isohu-effective="light"] .transfer-head .eyebrow {color:#356846 !important;}
:root[data-isohu-effective="light"] .transfer-slot {
  background: #ffffff !important;
  border-color: #bfd5c2 !important;
  color: #193c2a !important;
}
:root[data-isohu-effective="light"] .transfer-slot .caption {color:#2c6942 !important;}
:root[data-isohu-effective="light"] .transfer-slot.target .caption {color:#905a1c !important;}
:root[data-isohu-effective="light"] .transfer-slot .value {color:#193c2a !important;}
:root[data-isohu-effective="light"] .transfer-slot .location {color:#4d6855 !important;}
:root[data-isohu-effective="light"] .transfer-arrow,
:root[data-isohu-effective="light"] .transfer-actions .changes {color:#2e7848 !important;}
:root[data-isohu-effective="light"] .transfer-info,
:root[data-isohu-effective="light"] .draft-hint {color:#506a58 !important;}
:root[data-isohu-effective="light"] .transfer-warning {color:#84531d !important;}
:root[data-isohu-effective="light"] .transfer-message {color:#205a34 !important;}
:root[data-isohu-effective="light"] .transfer-message.error {color:#a13f36 !important;}
:root[data-isohu-effective="light"] .draft-save {border-top-color:#d0dfd0 !important;}
:root[data-isohu-effective="light"] .draft-save label {color:#285d3a !important;}
:root[data-isohu-effective="light"] .draft-save input {
  background:#f8fbf7 !important;
  color:#193c2a !important;
  border-color:#aac5ae !important;
  -webkit-text-fill-color:#193c2a;
}
:root[data-isohu-effective="light"] .draft-save input::placeholder {color:#667e6b !important;}
:root[data-isohu-effective="light"] .draft-save button:not(:disabled) {
  background:#2d6842 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border-color:#235536 !important;
}
:root[data-isohu-effective="light"] .draft-save button:not(:disabled):hover {background:#225736 !important;}
:root[data-isohu-effective="light"] .draft-save button:disabled {
  background:#e1eae0 !important;
  color:#526b58 !important;
  -webkit-text-fill-color:#526b58 !important;
  border-color:#c4d5c6 !important;
  opacity:1 !important;
  cursor:not-allowed;
}
:root[data-isohu-effective="light"] .transfer-actions #applyOneKey:not(:disabled) {
  background:#cce5c7 !important;
  color:#173b29 !important;
  border-color:#93bc99 !important;
}
:root[data-isohu-effective="light"] .transfer-actions #exportVia:not(:disabled) {
  background:#edca9a !important;
  color:#352715 !important;
  border-color:#c69d71 !important;
}

/* ISOHU 1.2.7.5: Studio local draft contrast, explicit light only.
   Fixed by loading this updated file with v=1275 from Studio HTML. */
:root[data-isohu-effective="light"] section.transfer-panel {
  background:linear-gradient(125deg,#f0f6ef,#fff) !important;
  color:#193c2a !important;
  border-color:#c2d8c5 !important;
}
:root[data-isohu-effective="light"] section.transfer-panel .transfer-slot {
  background:#fff !important; color:#193c2a !important; border-color:#bfd5c2 !important;
}
:root[data-isohu-effective="light"] section.transfer-panel :is(.transfer-head,.transfer-slot .value) {color:#193c2a !important;}
:root[data-isohu-effective="light"] section.transfer-panel :is(.transfer-slot .location,.transfer-info,.draft-hint) {color:#4d6855 !important;}
:root[data-isohu-effective="light"] section.transfer-panel .transfer-head .eyebrow {color:#356846 !important;}
:root[data-isohu-effective="light"] section.transfer-panel .transfer-actions .changes {color:#2e7848 !important;}
:root[data-isohu-effective="light"] section.transfer-panel .transfer-warning {color:#84531d !important;}
:root[data-isohu-effective="light"] section.transfer-panel #saveStudioDraft:disabled {
  color:#526b58 !important; -webkit-text-fill-color:#526b58 !important;
  background:#e1eae0 !important; border-color:#c4d5c6 !important;
}

/* ISOHU 1.2.7.6 — Studio remaining light-only surfaces, targeted by source selectors. */
:root[data-isohu-effective="light"] .board-scroll {
  background:linear-gradient(145deg,#edf4eb,#f9fbf8) !important;
  border-color:#c5d9c8 !important;
  color:#193c2a !important;
}
:root[data-isohu-effective="light"] .board-scroll .blank {
  color:#4b6954 !important;
  background:transparent !important;
}
:root[data-isohu-effective="light"] .function-panel {
  background:linear-gradient(130deg,#edf5eb,#ffffff) !important;
  color:#193c2a !important;
  border-color:#c4d8c6 !important;
}
:root[data-isohu-effective="light"] .function-panel :is(h2,.function-target) {color:#183d2a !important;}
:root[data-isohu-effective="light"] .function-panel :is(.fhelp,.fstatus,.function-filters label,.function-hit small) {color:#4d6b56 !important;}
:root[data-isohu-effective="light"] .function-panel .flink {color:#286740 !important;}
:root[data-isohu-effective="light"] .function-panel .function-filters :is(input,select) {
  background:#fff !important;color:#193c2a !important;border-color:#abc9b1 !important;
  -webkit-text-fill-color:#193c2a !important;
}
:root[data-isohu-effective="light"] .function-panel .function-hit {
  background:#fff !important;color:#193c2a !important;border-color:#cadfcd !important;
}
:root[data-isohu-effective="light"] .function-panel .function-hit :is(strong,code) {color:#204b32 !important;}
:root[data-isohu-effective="light"] .function-panel .function-hit .review {color:#805018 !important;}
:root[data-isohu-effective="light"] .function-panel .function-hit .reported {color:#315a85 !important;}
:root[data-isohu-effective="light"] .function-panel .fstatus.error {color:#a04035 !important;}
/* Preserve distinct selected/unselected theme-switch states on the permanent dark navbar. */
:root[data-isohu-effective="light"] .isohu-site-nav .isohu-theme-switch button:not([aria-pressed="true"]) {
  background:transparent !important;color:#c7dac8 !important;
}
:root[data-isohu-effective="light"] .isohu-site-nav .isohu-theme-switch button[aria-pressed="true"] {
  background:#b4d3ad !important;color:#173423 !important;
}

/* ISOHU 1.2.7.7: high-contrast FROM / TO badges in light theme only. */
:root[data-isohu-effective="light"] .workspace .pane.from .badge {
  background:#245c3b !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border:1px solid #1d4b30 !important;
}
:root[data-isohu-effective="light"] .workspace .pane.to .badge {
  background:#76501d !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border:1px solid #613e14 !important;
}

/* ISOHU 1.2.7.8: Vault file inputs: readable native buttons on light BRG.
   Scoped to Vault markup; explicit light mode only. */
:root[data-isohu-effective="light"] .upload input[type="file"],
:root[data-isohu-effective="light"] .vaultpanel input[type="file"] {
  color:#284b35 !important;
  -webkit-text-fill-color:#284b35 !important;
  color-scheme:light;
}
:root[data-isohu-effective="light"] .upload input[type="file"]::file-selector-button,
:root[data-isohu-effective="light"] .upload input[type="file"]::-webkit-file-upload-button,
:root[data-isohu-effective="light"] .vaultpanel input[type="file"]::file-selector-button,
:root[data-isohu-effective="light"] .vaultpanel input[type="file"]::-webkit-file-upload-button {
  background:#e3eee2 !important;
  color:#173b29 !important;
  -webkit-text-fill-color:#173b29 !important;
  border:1px solid #a8c7ad !important;
  border-radius:10px;
  opacity:1;
}
:root[data-isohu-effective="light"] .upload input[type="file"]::file-selector-button:hover,
:root[data-isohu-effective="light"] .upload input[type="file"]::-webkit-file-upload-button:hover,
:root[data-isohu-effective="light"] .vaultpanel input[type="file"]::file-selector-button:hover,
:root[data-isohu-effective="light"] .vaultpanel input[type="file"]::-webkit-file-upload-button:hover {
  background:#cfe4cf !important;
}
/* Warmer gold, not brown, with contrasting dark lettering. */
:root[data-isohu-effective="light"] .workspace .pane.to .badge {
  background:#e3bd76 !important;
  color:#39280f !important;
  -webkit-text-fill-color:#39280f !important;
  border-color:#b48c47 !important;
}
