/* MCFG green brand, UI only. Generated router scripts and portal previews stay unchanged. */
:root, html[data-theme="light"], html[data-theme="light"] body {
  --brand-green: #15803d;
  --brand-green-hover: #116530;
  --brand-soft: #edf8ef;
  --brand-border: #cde3d2;
  --bg: #f5f8f5; --soft: #edf8ef; --ink: #172b20; --muted: #617568;
  --line: #d5e4d9; --blue: #15803d; --success: #15803d;
  --ui-bg: #f5f8f5!important; --ui-bg-2: #f0f6f1!important;
  --ui-surface: #fff!important; --ui-surface-2: #f1f8f2!important;
  --ui-border: #d5e4d9!important; --ui-text: #172b20!important;
  --ui-muted: #617568!important; --ui-accent: #15803d!important;
  --ui-accent-2: #22a447!important; --ui-nav: #fff!important;
  --ui-input: #fff!important; --ui-code: #f6faf6!important;
  --mcfg-text: #172b20; --mcfg-muted: #617568;
  --mcfg-border: #d5e4d9; --mcfg-surface: #fff; --mcfg-surface-2: #edf8ef;
}
html[data-theme="light"] body { background-color: var(--bg)!important; }
html[data-theme="light"] body :is(.primary,.btn-primary,.btn-green,.copy,.copy-btn,.copy-button,.generate-btn,.mtech-result-copy,
  button[onclick^="generate"],button[onclick^="copy"],.router-optional-copy,#backupPasswordSave) {
  background: var(--brand-green)!important; color: #fff!important; border-color: var(--brand-green)!important;
  box-shadow: none!important;
}
html[data-theme="light"] body :is(.primary,.btn-primary,.btn-green,.copy,.copy-btn,.copy-button,.generate-btn,.mtech-result-copy,
  button[onclick^="generate"],button[onclick^="copy"],.router-optional-copy,#backupPasswordSave):hover {
  background: var(--brand-green-hover)!important;
}
html[data-theme="light"] body :is(.nav-menu a.current,.nav-menu a.active,.script-tab-btn.active,.tab-btn.active,.dashboard-link.active) {
  color: #126b33!important; background: #e9f6ec!important; border-color: #b9ddc3!important; box-shadow: none!important;
}
html[data-theme="light"] body .nav-menu a.current::before {
  background: #22a447!important;
}
html[data-theme="light"] body .nav-menu a:hover {
  color: #126b33!important; background: #f0f8f2!important;
}
/* Main navigation: only the icon changes on hover, focus, or selection. */
html[data-theme="light"] body :is(nav.main-nav,.mcfg-sidebar) :is(.nav-link,.nav-dropdown>summary),
html[data-theme="light"] body :is(nav.main-nav,.mcfg-sidebar) :is(.nav-link:hover,.nav-link.active,.nav-link:focus-visible,
  .nav-dropdown>summary:hover,.nav-dropdown>summary:focus-visible,.nav-dropdown[open]>summary,.nav-dropdown.current>summary) {
  color: var(--mcfg-muted)!important; background: transparent!important;
  border-color: transparent!important; box-shadow: none!important; transform: none!important;
}
html[data-theme="light"] body :is(nav.main-nav,.mcfg-sidebar) :is(.nav-link,.nav-dropdown>summary)>span:not(.nav-icon) {
  color: var(--mcfg-muted)!important;
}
html[data-theme="light"] body :is(nav.main-nav,.mcfg-sidebar) :is(.nav-link,.nav-dropdown>summary) .nav-icon {
  color: var(--mcfg-muted)!important; background: transparent!important;
  border-color: transparent!important; box-shadow: none!important; filter: none!important;
  transition: color .15s ease;
}
html[data-theme="light"] body :is(nav.main-nav,.mcfg-sidebar) :is(.nav-link:hover,.nav-link.active,.nav-link:focus-visible,
  .nav-dropdown>summary:hover,.nav-dropdown>summary:focus-visible,.nav-dropdown[open]>summary,.nav-dropdown.current>summary) .nav-icon {
  color: var(--brand-green)!important;
}
html[data-theme="light"] body :is(nav.main-nav,.mcfg-sidebar) :is(.nav-link,.nav-dropdown>summary)::before,
html[data-theme="light"] body :is(nav.main-nav,.mcfg-sidebar) :is(.nav-link,.nav-dropdown>summary)::after {
  background: transparent!important; box-shadow: none!important;
}
html[data-theme="light"] body :is(input,select,textarea):focus {
  border-color: #15803d!important; outline-color: #15803d!important; box-shadow: 0 0 0 3px #15803d18!important;
}
html[data-theme="light"] body :is(input[type="checkbox"],input[type="radio"]) { accent-color: #15803d; }
html[data-theme="light"] body :is(button,a,summary):focus-visible { outline-color: #15803d!important; }
html[data-theme="light"] body :is(.eyebrow,.show-title) { color: #15803d!important; }
html[data-theme="light"] body :is(.profile-avatar,.mcfg-account-avatar) { background: #e9f6ec!important; color: #176936!important; }
html[data-theme="light"] body :is(.panel-title,.old-pass-box>summary) { background: #f0f8f2!important; }
html[data-theme="light"] body .status-dot { background: #22a447; }
html[data-theme="light"] body .brand-logo { border-radius: 0; background: transparent; object-fit: contain; }
html[data-theme="light"] body :is(.mcfg-topbar-copy,.topbar-copy)::before { content: "MCFG SCRIPT"!important; }
html[data-theme="light"] body :is(.mtech-result-box,.result-box.mtech-result-box,.mcfg-notes-panel) {
  border-color: var(--brand-border)!important; background: #fff!important;
  box-shadow: 0 6px 18px #172b2008!important;
}
html[data-theme="light"] body :is(.mtech-result-head,.result-box.mtech-result-box .result-head,
  .mcfg-notes-head,.mcfg-notes-foot,.mcfg-notes-list) {
  background: var(--brand-soft)!important; border-color: var(--brand-border)!important; color: #176936!important;
}
html[data-theme="light"] body :is(.mtech-result-title,.result-box.mtech-result-box .result-title) { color: #176936!important; }
html[data-theme="light"] body :is(.mtech-result-box textarea,.mtech-result-box pre,
  .mcfg-notes-text,.mcfg-notes-workspace,.mcfg-notes-editor) {
  background: #f7faf7!important; color: #172b20!important;
}
html[data-theme="light"] body .mcfg-notes-list-item.active {
  background: #e9f6ec!important; border-color: #b9ddc3!important; color: #176936!important;
}
html[data-theme="light"] body :is(.group>h2,.panel>h2,.box>h2) { color: #176936!important; }
html[data-theme="light"] body :is(.auto-preview,.tab-note) {
  background: var(--brand-soft)!important; color: #176936!important; border-color: var(--brand-border)!important;
}
html[data-theme="light"] body .small-note { background: transparent!important; }
html[data-theme="light"] body :is(.mtech-result-box textarea,.mtech-result-box pre) {
  scrollbar-color: #94b49c #f0f6f1;
}
html[data-theme="light"] body :is(.mtech-result-box textarea,.mtech-result-box pre)::-webkit-scrollbar-thumb { background: #94b49c!important; }
html[data-theme="light"] body :is(.mtech-result-box textarea,.mtech-result-box pre)::-webkit-scrollbar-track { background: #f0f6f1!important; }
