/* Global WLY light theme. Loaded once after page styles; no behavior overrides. */
/* Account list light palette matches the monitor dashboard; shared fleet behavior is unchanged. */
html.portal-light,:is(body.portal-light,body.portal-light:has(#feature-form)) {
 color-scheme:light; --bg:#f2f4eb; --card:#fff; --raised:#f5f7ef; --input:#f7f8f3;
 --hover:#edf3dc; --line:#dce3d0; --line-soft:#e5eadc; --text:#25301f; --muted:#5e6b53;
 --title:#25301f; --accent:#85a540; --accent-bright:#52722c; --accent-deep:#e8f1d2;
 --gold:#8a691f; --green:#497d36; --red:#b74440; --orange:#956719; --shadow:0 8px 26px rgba(45,61,22,.05);
}
:is(body.portal-light,body.portal-light:has(#feature-form)) { background:radial-gradient(ellipse at 88% 0%,#eaf0d6 0%,transparent 42%),var(--bg); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar { background:#fff; border-color:#e5eadc; box-shadow:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .brand { color:#252f1e; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .brand-mark { color:#d8f08a; background:#232b1c; border-color:#232b1c; box-shadow:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-caption { color:#626f56; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .nav-item { color:#5c6852; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .nav-item:hover { color:#29371e; background:#f0f4e6; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .nav-item.active { color:#fff; background:#242b1d; border-color:#242b1d; box-shadow:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .nav-item.active svg { color:#d3eb86; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-panel > header { color:#5e6b53; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-panel > header b { color:#536635; background:#eef4df; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-search input { color:#2f3e23; background:#f7f8f2; border-color:#e1e7d7; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-item { color:#566449; background:#f8f9f5; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-item:hover { color:#2e401e; background:#f0f5e3; border-color:#dce7c7; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-item.active { color:#2b411a; background:#edf5d5; border-color:#d4e5b1; box-shadow:inset 3px 0 #93b747; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-copy small { color:#5f6d51; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-state { color:#5f6d51; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-item.state-online .sidebar-account-state { color:#457136; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-item.state-busy .sidebar-account-state { color:#8e651b; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-item.state-error .sidebar-account-state { color:#a23734; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-state i { box-shadow:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .cloud-health strong,:is(body.portal-light,body.portal-light:has(#feature-form)) .user-copy strong { color:#314124; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .cloud-health[data-status="error"] strong { color:#a23734; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .avatar { color:#44592c; background:#edf4da; border-color:#d7e3c0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .user-panel { border-color:#e5eadc; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .mobile-bar { background:#fff; border-color:#e5eadc; color:#25301f; }

:is(body.portal-light,body.portal-light:has(#feature-form)) { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) h1,:is(body.portal-light,body.portal-light:has(#feature-form)) h2,:is(body.portal-light,body.portal-light:has(#feature-form)) h3 { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) label { color:var(--text); }
:where(body.portal-light) p,:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-identity small,:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-row-summary,
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-heartbeat,:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-batchbar [role="status"] { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .commercial-page-hero { background:none; border:0; box-shadow:none; padding:6px 0 12px; overflow:visible; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .commercial-page-hero::after { content:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .kicker { color:#52722c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .account-capacity-card { background:#fff; border-color:var(--line); box-shadow:var(--shadow); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .account-capacity-card strong { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .account-capacity-card > div span,:is(body.portal-light,body.portal-light:has(#feature-form)) .account-capacity-card strong small,
:is(body.portal-light,body.portal-light:has(#feature-form)) .account-capacity-card > small { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .account-capacity-card progress { background:#e8eddf; accent-color:#93b747; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .account-capacity-card progress::-webkit-progress-bar { background:#e8eddf; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .account-capacity-card progress::-webkit-progress-value { background:#93b747; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .account-capacity-card progress::-moz-progress-bar { background:#93b747; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-workbench { background:#fff; border-color:var(--line); box-shadow:var(--shadow); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-filterbar { background:#fff; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-batchbar { background:#f5f7ef; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-table-head { color:var(--muted); background:#f7f8f3; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-account-row { background:#fff; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-account-row:hover { background:#f8faf3; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-account-row.state-online { box-shadow:inset 3px 0 #79a25b; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-account-row.state-busy { box-shadow:inset 3px 0 #cfaa51; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-account-row.state-error { box-shadow:inset 3px 0 #c56b63; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-account-row:has([data-fleet-select]:checked) { background:#edf5d5; box-shadow:inset 3px 0 #93b747; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-identity a { color:var(--text); overflow-wrap:anywhere; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-identity a:hover { color:#52722c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) input[type="search"],:is(body.portal-light,body.portal-light:has(#feature-form)) select { color:#2e3a24; background:#f7f8f1; border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) input::placeholder { color:#68745e; }
:is(body.portal-light,body.portal-light:has(#feature-form)) input[type="checkbox"]:not(.toggle) { background-color:#fff; border-color:#7d8c65; }
:is(body.portal-light,body.portal-light:has(#feature-form)) input[type="checkbox"]:not(.toggle):hover:not(:disabled) { border-color:#52722c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) input[type="checkbox"]:not(.toggle):checked,
:is(body.portal-light,body.portal-light:has(#feature-form)) input[type="checkbox"]:not(.toggle):indeterminate { background-color:#cee978; border-color:#85a540; }
:is(body.portal-light,body.portal-light:has(#feature-form)) input[type="checkbox"]:not(.toggle):checked { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.25 8.25 6.5 11l6.25-6.5' fill='none' stroke='%23253413' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:is(body.portal-light,body.portal-light:has(#feature-form)) input[type="checkbox"]:not(.toggle):indeterminate { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='%23253413' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
:is(body.portal-light,body.portal-light:has(#feature-form)) input[type="checkbox"]:not(.toggle):focus-visible { outline-color:#658439; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-search > span { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .account-catalog-toolbar h2 b { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .account-catalog-toolbar h2 small,:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-sort,
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-updated { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) [data-action-result] { color:#7a5a12; }
:is(body.portal-light,body.portal-light:has(#feature-form)) [data-action-result][data-status="error"] { color:#a63535; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .filter-chip { color:#566449; background:#f7f8f2; border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .filter-chip b { color:#536635; background:#e9efdf; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .filter-chip:hover { color:#2e401e; background:#edf3dc; border-color:#b9caa1; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .filter-chip.active { color:#253413; background:#e8f1d2; border-color:#b9d28a; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .filter-chip.active b { color:#344e1e; background:#d8e9b3; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .button.primary,:is(body.portal-light,body.portal-light:has(#feature-form)) button.primary { color:#253413; background:#cee978; border-color:#bed966; box-shadow:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .button.primary:hover,:is(body.portal-light,body.portal-light:has(#feature-form)) button.primary:hover { color:#253413; background:#bfdc63; border-color:#a9c74e; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .button.secondary,:is(body.portal-light,body.portal-light:has(#feature-form)) button.secondary,:is(body.portal-light,body.portal-light:has(#feature-form)) .button.ghost,:is(body.portal-light,body.portal-light:has(#feature-form)) button.ghost { color:#35432b; background:#f4f6ed; border-color:#d8dfce; box-shadow:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .button.secondary:hover,:is(body.portal-light,body.portal-light:has(#feature-form)) button.secondary:hover,:is(body.portal-light,body.portal-light:has(#feature-form)) .button.ghost:hover,:is(body.portal-light,body.portal-light:has(#feature-form)) button.ghost:hover { color:#2e401e; background:#e9efdd; border-color:#b9caa1; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .status-badge.online { color:#366129; background:#edf6e6; border-color:#b9d5a8; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .status-badge.busy { color:#876018; background:#fff4db; border-color:#edd4a0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .status-badge.error { color:#a63535; background:#fff0ee; border-color:#e5b5b0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .status-badge.neutral { color:#626d59; background:#f3f5ec; border-color:#d9dfd0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .status-badge i { box-shadow:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .row-menu summary { color:#35432b; background:#f4f6ed; border-color:#d8dfce; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .row-menu[open] summary { color:#2e401e; background:#e9efdd; border-color:#b9caa1; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .row-menu > div { background:#fff; border-color:var(--line); box-shadow:0 12px 28px rgba(45,61,22,.12); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .row-menu a { color:#35432b; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .row-menu a:hover { color:#2e401e; background:#edf3dc; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .game-resources { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .resources-compact { border-color:var(--line-soft); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .resource-caption,:is(body.portal-light,body.portal-light:has(#feature-form)) .resource-foot { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) [data-resource-state] { color:#426d31; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .game-resources.is-stale [data-resource-state] { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .game-resources.is-stale .resource-values { opacity:1; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .resource-gold strong,:is(body.portal-light,body.portal-light:has(#feature-form)) .gold-summary strong { color:#755819; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .icon-vip { color:#755819; background:#f5efd9; border-color:#d8c994; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .icon-activity { color:#426d31; background:#edf4df; border-color:#bed09f; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-no-results strong { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .fleet-no-results span { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .empty-state { background:#fff; border-color:var(--line); box-shadow:var(--shadow); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .empty-orbit { background:#edf4df; border-color:#d7e3c0; box-shadow:0 0 0 10px rgba(147,183,71,.06); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .empty-orbit span { color:#52722c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(a,button,input,select,summary):focus-visible { outline:2px solid #658439; outline-offset:3px; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .mobile-brand { color:#25301f; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .mobile-brand span { color:#5e6b53; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .mobile-bar button { color:#35432b; background:#f3f6eb; border-color:#d8dfce; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .account-quota { color:#5e6b53; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sidebar-account-list { scrollbar-color:#b6c2a3 transparent; }

/* Credentials page shares the account-list palette without changing form behavior. */
:is(body.portal-light,body.portal-light:has(#feature-form)) .stepper { background:#fff; border-color:var(--line); box-shadow:var(--shadow); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .stepper li { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .stepper li:not(:last-child)::after { background:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .stepper b { color:var(--muted); background:#f5f7ef; border-color:#d8dfce; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .stepper small { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .stepper li.active { color:#354e20; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .stepper li.active b { color:#253413; background:#cee978; border-color:#bed966; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .form-card { background:#fff; border-color:var(--line); box-shadow:var(--shadow); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .form-card-head > div { min-width:0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .form-card-head h2 { overflow-wrap:anywhere; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .line-icon { color:#52722c; background:#edf4df; border-color:#c9d9ad; }
:is(body.portal-light,body.portal-light:has(#feature-form)) input[type="text"],:is(body.portal-light,body.portal-light:has(#feature-form)) input[type="password"] { color:#2e3a24; background:#f7f8f1; border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) input:focus { border-color:#85a540; box-shadow:0 0 0 3px rgba(133,165,64,.15); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .secure-note { background:#f2f7e6; border-color:#d7e3c0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .secure-note > span { color:#253413; background:#cee978; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .secure-note b { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .secure-note p { color:var(--muted); }

/* Shared panels, account onboarding, admin and authentication. */
:is(body.portal-light,body.portal-light:has(#feature-form)) { color-scheme:light; --bg-raised:#f5f7ef; --bg-card:#fff; --bg-input:#f7f8f3; --bg-hover:#edf3dc; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.app-frame,.auth-shell) { background:transparent; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(h1,h2,h3,label,td,.server-option b,.security-status strong,.metric-grid strong,.metric-card strong) { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(small,.field-hint,.table-sub,.session-list article > span,.check-line span,.setup-steps,.server-option small,.server-option em,.metric-grid > article span,.metric-card small,.metric-card strong i,.permission-details summary small,.audit-panel-footer,.audit-panel-footer b,.auth-card-footer,.auth-card-footer > span) { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.form-card,.data-panel,.panel,.metric-grid > article,.metric-card,.empty-mini,.discovery-stage,.server-picker,.session-list article,.permission-details,.auth-card .form-stack,.auth-login-form) { background:#fff; border-color:var(--line); box-shadow:var(--shadow); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { color:var(--text); background:var(--input); border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(input,textarea)::placeholder { color:#68745e; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(input,select,textarea):focus { border-color:#85a540; box-shadow:0 0 0 3px rgba(133,165,64,.15); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(a,button,input,select,textarea,summary):focus-visible { outline:2px solid #658439; outline-offset:3px; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.button,button):where(:not(.primary):not(.danger-button):not(.danger):not(.toggle)) { color:#35432b; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.danger-button,.button.danger,button.danger) { color:#a63535; border-color:#e5b5b0; background:#fff0ee; box-shadow:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.danger-button,.button.danger,button.danger):hover { background:#fbe1dd; border-color:#c8847b; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.count-badge,.admin-chip,.troop-badge,.auth-security-badge) { color:#52722c; background:#edf4df; border-color:#c9d9ad; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .metric-card::after { border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.metric-icon,.server-symbol,.activation-art) { color:#52722c; background:#edf4df; border-color:#c9d9ad; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .server-option { color:var(--text); background:#f7f8f3; border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .server-option:hover { background:#f0f5e3; border-color:#b9caa1; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .server-option:has(input:checked) { background:#edf5d5; border-color:#93b747; box-shadow:0 0 0 2px rgba(147,183,71,.12); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .server-radio { border-color:#7d8c65; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .server-option input:checked + .server-radio { border-color:#85a540; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .server-option:has(input:focus-visible) { outline:2px solid #658439; outline-offset:3px; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .radar { border-color:#b9caa1; background:#f7faee; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .radar b { color:#52722c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .discovery-stage > small { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .progress-track { background:#e8eddf; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .progress-track span { background:#93b747; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.admin-tabs a,.audit-toolbar button,.row-actions button,.auth-card a) { color:#52722c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .admin-tabs a.active { color:#253413; background:#e8f1d2; border-color:#b9d28a; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.audit-table thead th,.audit-panel-footer,.audit-detail pre) { background:#f5f7ef; border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.audit-detail summary,.audit-time small,.audit-actor code,.audit-action code,.audit-subject span,.audit-subject code,.audit-detail summary code,.audit-detail summary span,td code) { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .audit-detail pre { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .audit-table tbody tr:hover { background:#f8faf3; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(th,.permission-details summary span,.feature-search > span,.order-drag-handle.locked) { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .audit-table thead { background:#f5f7ef; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .audit-empty { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.empty-mini,.audit-time time > span) { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .audit-detail summary > span { background:#edf4df; color:#52722c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .table-state.ready,:is(body.portal-light,body.portal-light:has(#feature-form)) .alert.success,:is(body.portal-light,body.portal-light:has(#feature-form)) .security-status.good { color:#366129; background:#edf6e6; border-color:#b9d5a8; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .table-state.done,:is(body.portal-light,body.portal-light:has(#feature-form)) .alert.warning,:is(body.portal-light,body.portal-light:has(#feature-form)) .security-status.warning { color:#876018; background:#fff4db; border-color:#edd4a0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .table-state.error,:is(body.portal-light,body.portal-light:has(#feature-form)) .alert.error { color:#a63535; background:#fff0ee; border-color:#e5b5b0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .security-status span { color:inherit; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .auth-brand-panel { background:radial-gradient(circle at 84% 29%,#eaf2d5,transparent 45%),linear-gradient(145deg,#f5f8ed,#edf2e1); border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .auth-form-panel { background:#f7f8f3; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.auth-brand-panel::before,.auth-brand-panel::after,.auth-form-panel::before) { opacity:.3; border-color:#afc08a; box-shadow:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .auth-pitch h2 { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .auth-pitch h2 em { color:#52722c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.auth-brand small,.auth-pitch > p,.auth-proof,.auth-value-list > span,.auth-card-heading > p:last-child,.auth-field,.auth-mfa summary,.auth-mfa summary b,.auth-mfa summary small,.auth-form-assurance,.auth-card .center) { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.auth-pitch .kicker,.auth-card-heading .eyebrow,.auth-card-footer a) { color:#52722c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.auth-value-list i,.auth-mfa summary em,.auth-mfa) { color:#52722c; background:#edf4df; border-color:#c9d9ad; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .auth-input-shell svg { fill:#68745e; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .auth-form-assurance i { background:#bec9ad; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .auth-submit b { color:#253413; background:transparent; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .auth-mfa[open] > summary { color:#52722c; background:#edf4df; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.admin-tabs a,.panel-title > span) { background:#f5f7ef; border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .panel-title > span { color:#52722c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .auth-body,.auth-body.portal-light { color-scheme:light; }
/* Feature controls: retain all data hooks, setting semantics and layout. */
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-toolbar,.sticky-save,.feature-group > header) { background:#fff; border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-group { background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-group > header { border-radius:14px 14px 0 0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-bundle-setting,.build-priority-list li,.build-priority-help,.gold-limit-amount,.paid-refresh-off-state,.market-plan,.market-stat,.confidant-person-option,.ancient-good-option,.ancient-rule-strip,.troop-selection,[data-troop-progress]) { color:var(--text); background:#f7f8f3; border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-row:hover,.feature-category-nav a:hover,.confidant-person-option:hover,.ancient-good-option:hover) { background:#f5f8ed; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-category-nav a.active { color:#354e20; background:#edf5d5; border-color:#93b747; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-row.is-changed,.feature-bundle-setting.danger,.risk,.feature-bundle-copy em,.troop-notice) { background:#fff4db; border-color:#edd4a0; color:#876018; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-resource-status,.bundle-disclosure,.feature-note-details summary,.toggle:checked + .feature-switch-state,.feature-copy-panel a,.build-priority-name,.build-priority-help button,.order-controls button,.build-priority-list li > b,.build-priority-list li > em) { color:#52722c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-view-context [data-feature-modified-count],.feature-change-state,[data-save-state][data-dirty="true"],.copy-paid,.gold-limit-amount b,.ancient-good-option em) { color:#876018; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.build-priority-help small,.order-drag-hint,.feature-bulk-controls small,.market-plan p,.market-stat span,.troop-plan small,.confidant-person-option small,.ancient-good-option small,.ancient-rule-strip i) { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-copy-panel { background:#fff; border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.market-operation,.market-status span,.build-priority-editor) { background:#f7f8f3; color:var(--text); border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .market-details summary { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.market-details summary span,.build-priority-help button) { background:#edf4df; color:#52722c; border-color:#c9d9ad; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.market-option-note,.market-status,.market-details-help,.market-details summary span,.market-details summary small,.order-feedback) { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.build-priority-help button,.order-controls button):is(:hover,:focus-visible) { color:#354e20; background:#e8f1d2; border-color:#b9d28a; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .build-priority-list li[data-order-locked],:is(body.portal-light,body.portal-light:has(#feature-form)) .build-priority-list li.is-dragging { color:var(--text); background:#edf5d5; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-copy-panel summary,.ancient-rule-strip b,.ancient-rule-strip span,.market-plan strong,.market-stat strong,.confidant-person-option b) { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.order-controls button,.gold-limit-stepper > button,.build-priority-list li > b,.build-priority-list li > em,.ancient-rule-strip span) { background:#edf4df; border-color:#c9d9ad; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.confidant-person-option,.ancient-good-option):has(input:checked) { background:#edf5d5; border-color:#93b747; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .confidant-person-option.quality-purple b,:is(body.portal-light,body.portal-light:has(#feature-form)) .quality-purple .confidant-quality-badge,:is(body.portal-light,body.portal-light:has(#feature-form)) .quality-purple { color:#754ba0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .confidant-person-option.quality-orange b,:is(body.portal-light,body.portal-light:has(#feature-form)) .quality-orange .confidant-quality-badge,:is(body.portal-light,body.portal-light:has(#feature-form)) .quality-orange { color:#93611c; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.confidant-person-option.quality-purple,.confidant-person-option.quality-orange):is(:hover,:has(input:checked)) { background:#edf5d5; border-color:#93b747; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .confidant-person-option.quality-purple,:is(body.portal-light,body.portal-light:has(#feature-form)) .confidant-quality-legend .quality-purple { color:#754ba0; background:#f4eef9; border-color:#d8c6e8; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .confidant-person-option.quality-orange,:is(body.portal-light,body.portal-light:has(#feature-form)) .confidant-quality-legend .quality-orange { color:#93611c; background:#fff4db; border-color:#edd4a0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.confidant-quality-badge,.confidant-attr-badge,.ancient-good-option em) { background:#f6f1e3; border-color:#dacda8; }
:is(body.portal-light,body.portal-light:has(#feature-form)) input.toggle { background:#c5cfb7; border-color:#a5b88b; }
:is(body.portal-light,body.portal-light:has(#feature-form)) input.toggle:checked { background:#85a540; border-color:#658439; }
:is(body.portal-light,body.portal-light:has(#feature-form)) input.toggle::after { background:#fff; box-shadow:0 1px 3px rgba(45,61,22,.15); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.unsaved-dialog,.paid-review-dialog,.troop-confirm) { color:var(--text); background:#fff; border-color:var(--line); box-shadow:0 20px 60px rgba(45,61,22,.18); }
:is(body.portal-light,body.portal-light:has(#feature-form)) dialog::backdrop { background:rgba(31,40,24,.35); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.paid-review-dialog p,.paid-review-dialog ul) { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .paid-review-dialog [data-paid-review-estimate] { color:#876018; background:#fff4db; border-color:#edd4a0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .resources-detail { color:var(--text); background:#fff; border-color:var(--line); box-shadow:var(--shadow); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .resource-heading b { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .gold-summary article { background:#f7f8f3; border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.gold-summary p,.gold-summary small,.gold-summary summary,.gold-summary details[open] summary) { color:var(--muted); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .resources-compact .gold-summary article { background:none; border:0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.troop-members,.troop-members label,.troop-table-wrap,.troop-test) { border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .troop-table-wrap th { color:var(--muted); background:#f5f7ef; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .troop-table-wrap :is(td,th) { border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .troop-table-wrap tr[data-selected="true"] { background:#edf5d5; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .troop-blockers { color:#a63535; background:#fff0ee; border-color:#e5b5b0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .troop-plan [data-tone="error"] { color:#a63535; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.confidant-attr-badge.attr-1,.confidant-attr-badge.attr-3,.confidant-attr-badge.attr-5) { color:#93611c; background:#fff4db; border-color:#edd4a0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.confidant-attr-badge.attr-2,.confidant-attr-badge.attr-4,.confidant-attr-badge.attr-6) { color:#3e628e; background:#edf3fb; border-color:#bfd0e8; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-bulk-buttons [data-feature-bulk="on-free"] { color:#52722c; border-color:#b9caa1; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.sidebar-add-account,.sidebar-capacity-link) { color:#52722c; background:#edf4df; border-color:#c9d9ad; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.sidebar-add-account,.sidebar-capacity-link):hover { color:#354e20; background:#e2eecb; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-summary-strip article,.feature-summary-strip article:first-child) { background:#fff; border-color:var(--line); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-summary-strip strong { color:var(--text); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-summary-strip { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 20px; box-shadow:var(--shadow); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .monitor-dashboard .resources-detail { background:none; box-shadow:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-category-nav a small { color:#52722c; background:#edf4df; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-category-nav a.active small { color:#354e20; background:#d8e9b3; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .selected-menu summary { color:#35432b; background:#f4f6ed; border-color:#d8dfce; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .selected-menu[open] summary { color:#2e401e; background:#e9efdd; border-color:#b9caa1; }

/* Feature tools share the rounded, inset card treatment. */
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-copy-panel,.feature-resource-details) {
  margin:0 0 20px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 6px 20px rgba(49,65,36,.045);
  min-width:0;
}
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-copy-panel,.feature-resource-details,.feature-bulk-details) > summary {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f7f9f2;
  color:var(--text);
  font-weight:600;
  cursor:pointer;
  list-style:none;
}
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-copy-panel,.feature-resource-details,.feature-bulk-details) > summary::-webkit-details-marker { display:none; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-copy-panel,.feature-resource-details,.feature-bulk-details) > summary::before {
  content:"›";
  flex:0 0 16px;
  text-align:center;
  font-size:20px;
  line-height:1;
  color:#658439;
  transition:transform .15s ease;
}
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-copy-panel,.feature-resource-details,.feature-bulk-details)[open] > summary::before { transform:rotate(90deg); }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-copy-panel,.feature-resource-details,.feature-bulk-details) > summary:hover { background:#eef4e3; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-copy-panel > p { margin:16px 0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-copy-panel > small { display:block; line-height:1.65; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .copy-controls { gap:14px; margin-bottom:16px; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .copy-controls > label { min-width:0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .copy-controls select { min-width:0; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-toolbar { padding:10px 12px; border:1px solid var(--line); border-radius:16px; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-category-nav a { border-radius:10px; }
@media (max-width:760px) {
  :is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-copy-panel,.feature-resource-details) { padding:14px; border-radius:16px; }
  :is(body.portal-light,body.portal-light:has(#feature-form)) .feature-resource-details > summary { flex-wrap:wrap; }
  :is(body.portal-light,body.portal-light:has(#feature-form)) .feature-resource-details > summary span { flex-basis:100%; margin:0 0 0 26px; }
  :is(body.portal-light,body.portal-light:has(#feature-form)) .copy-controls select { max-width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  :is(body.portal-light,body.portal-light:has(#feature-form)) :is(.feature-copy-panel,.feature-resource-details,.feature-bulk-details) > summary::before { transition:none; }
}
:is(body.portal-light,body.portal-light:has(#feature-form)) .selected-menu > div { background:#fff; border-color:var(--line); box-shadow:0 12px 28px rgba(45,61,22,.12); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .selected-menu a { color:#35432b; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .selected-menu a:hover,:is(body.portal-light,body.portal-light:has(#feature-form)) .order-drag-handle:hover { color:#2e401e; background:#edf3dc; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is([data-troop-check-warning],#runtime-work-attention) { color:#876018; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .activity-panel[data-fresh="false"] [data-activity-notice] { color:#956719; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .troop-blockers p { color:#a63535; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .feature-bundle-setting.is-inactive { background:#f3f5ee; border-color:#e2e7d8; }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sticky-save { border-radius:12px; border:1px solid var(--line); box-shadow:0 -4px 22px rgba(45,61,22,.06); }
:is(body.portal-light,body.portal-light:has(#feature-form)) .sticky-save .save-actions button[value="monitor"] { color:#35432b; background:#f4f6ed; border-color:#d8dfce; }
:is(body.portal-light,body.portal-light:has(#feature-form)) :is(.confidant-person-grid,.build-priority-list,.table-wrap,.audit-scroll) { scrollbar-color:#b6c2a3 #f5f7ef; }
@media (max-width:600px) {
 :is(body.portal-light,body.portal-light:has(#feature-form)) .form-actions { flex-wrap:wrap; }
 :is(body.portal-light,body.portal-light:has(#feature-form)) .auth-security-badge { position:static; width:fit-content; margin-bottom:14px; }
}
