/* Pearl light edition. Existing dark, print and forced-colors styles are untouched. */
@media screen and (forced-colors: none) {
html:root[data-theme="light"] body.royal-balanced-theme {
 --royal-surface:#fffefa;--royal-surface2:#f3f1ec;--royal-border:#d4d3ca;
 --royal-ink:#243449;--royal-muted:#536273;--royal-field:#fffefa;
 --royal-gold:#806025;--royal-shadow:#24344912;
 --panel:#fffefa;--panel2:#f3f1ec;--line:#d4d3ca;--line2:#d4d3ca;
 --mut:#536273;--mut2:#606d7b;--ink:#243449;--silver:#243449;--gold:#806025;
 background:radial-gradient(ellipse at 82% 0,#fffaf0,transparent 60%),#f3f2ee;
 color:#243449;color-scheme:light;
}
html:root[data-theme="light"] body.royal-balanced-theme:is(.portal-admin,.portal-customer) .royal-page-hero {
 background:linear-gradient(110deg,#fffefa,#faf8f0 58%,#efeee5);
 border-color:#cecaba;border-top-color:#fff;
 box-shadow:inset 0 1px #fff,0 1px 2px #24344907,0 8px 22px #2434490b;
}
html:root[data-theme="light"] body.royal-balanced-theme:is(.portal-admin,.portal-customer) .royal-page-hero::before {border-color:#c5b78e40}
html:root[data-theme="light"] body.royal-balanced-theme:is(.portal-admin,.portal-customer) .royal-page-hero::after {
 background:url('/assets/royal-light-20261008/autopay-light.png') center / contain no-repeat;
 opacity:1;mix-blend-mode:normal;filter:none;-webkit-mask-image:none;mask-image:none;
}
html:root[data-theme="light"] body.royal-balanced-theme:is(.portal-admin,.portal-customer) .royal-page-hero .royal-hero-copy :is(h1,.ptitle) {
 color:#243449;-webkit-text-fill-color:#243449;text-shadow:none;
}
html:root[data-theme="light"] body.royal-balanced-theme:is(.portal-admin,.portal-customer) .royal-page-hero .royal-hero-copy p {color:#536273;font-weight:400}
html:root[data-theme="light"] body.royal-balanced-theme:is(.portal-admin,.portal-customer) .royal-hero-eyebrow {color:#806025}
html:root[data-theme="light"] body.royal-balanced-theme .admin-brand strong {color:#243449!important}
html:root[data-theme="light"] body.royal-balanced-theme .admin-brand small {color:#536273!important}
html:root[data-theme="light"] body.royal-balanced-theme :is(.brand-img,.admin-brand img) {filter:none}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login .lbox {
 background:linear-gradient(145deg,#fffefa,#fbfaf6 65%,#f3f1ec);border-color:#cbd0c9;
 box-shadow:inset 0 1px #fff,0 2px 4px #24344908,0 18px 48px #24344912;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login :is(.tag,.help) {color:#536273;font-weight:400}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login label {color:#33465b}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login input {
 background:#fffefa;color:#243449;border-color:#89958f;box-shadow:inset 0 1px 3px #24344909;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login input::placeholder {color:#606d7b;opacity:1}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login input:focus-visible {outline:2px solid #8a682c;outline-offset:2px}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login button {
 color:#533b15;background:linear-gradient(160deg,#fff3d5,#ead6ad 58%,#debf87);
 border-color:#b69c68;border-top-color:#fff8e4;text-shadow:none;
 box-shadow:inset 0 1px #fff9,0 2px #b8a079,0 4px 9px #604b2517;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login button:hover {background:linear-gradient(160deg,#fff7e5,#f0dfbb 58%,#e5ca98);filter:none}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login :is(.lnk,.langbar a) {color:#40556d}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login .lnk {text-decoration:underline;text-underline-offset:3px}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login .langbar a:hover {color:#243449;background:#edf0eb;border-color:#c2cbc6}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login .langbar a.on {color:#533b15;background:linear-gradient(160deg,#fff3d5,#ead6ad);border-color:#b69c68}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login .msg {color:#28553e;background:#eef5ec;border-color:#b5c8b7}
html:root[data-theme="light"] body.royal-balanced-theme.portal-login .msg.err {color:#8e2736;background:#fff2f0;border-color:#ce9aa0}
@media (max-width:820px) {
 html:root[data-theme="light"] body.royal-balanced-theme:is(.portal-admin,.portal-customer) .royal-page-hero {flex-direction:column;align-items:stretch}
 html:root[data-theme="light"] body.royal-balanced-theme:is(.portal-admin,.portal-customer) .royal-page-hero .royal-hero-copy {padding-inline:0}
 html:root[data-theme="light"] body.royal-balanced-theme:is(.portal-admin,.portal-customer) .royal-page-hero::after {
  position:relative;inset:auto;width:100%;height:110px;margin:4px 0 -8px;flex:none;
 }
}
}

/* Light edition: ivory, pearl and slate. Presentation only.
   Every rule is confined to the light admin shell. Screen-only preserves the
   existing print and Windows high-contrast treatments. */
@media screen and (forced-colors: none) {
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin {
  --bg:#f3f2ee;--bg2:#fffefa;--panel:#fffefa;--panel2:#f3f1ec;
  --line:#ddddd5;--line2:#c9cdc8;--ink:#243449;--mut:#536273;--mut2:#606d7b;
  --text:#243449;--fg:#243449;--muted:#536273;--card:#fffefa;
  --gold:#806025;--gold-soft:#74531f;--blue:#285c87;--blue2:#e7ecee;
  --green:#246344;--red:#a13240;--amber:#7b5619;
  --royal-ink:#243449;--royal-muted:#536273;--royal-gold:#806025;
  --royal-align-canvas:#f3f2ee;--royal-align-surface:#fffefa;
  --royal-align-ink:#243449;--royal-align-muted:#536273;
  --royal-align-line:#ddddd5;--royal-align-frame:#c9cdc8;
  --royal-align-control:#89958f;--royal-align-gold:#806025;
  --royal-align-panel:linear-gradient(145deg,#fffefa,#fbfaf6 62%,#f3f1ec);
  --royal-align-raised:linear-gradient(165deg,#fffefa,#f2f2ed 56%,#e7ebe8);
  --royal-align-hover:linear-gradient(165deg,#fffefa,#e9efed 60%,#dfe7e4);
  --royal-align-field:#fffefa;
  --royal-align-header:linear-gradient(180deg,#f1f2ed,#e8ece8);
  --royal-align-row:#293d4905;--royal-align-row-hover:#e9efec;
  --royal-align-panel-shadow:inset 0 1px #fff,0 1px 2px #2434490a,0 8px 22px #2434490d;
  --royal-align-bevel:inset 0 1px #fff,inset 0 -1px #aeb8b329,0 2px #c3ccc7,0 4px 9px #2434490d;
  --royal-align-nav-face:var(--royal-align-raised);
  --royal-align-nav-edge:#c2cbc6;--royal-align-nav-top:#fff;
  --royal-align-nav-shadow:inset 0 1px #fff,0 2px #bdc7c1,0 4px 8px #2434490c;
  --royal-align-nav-inset:#fff8;--royal-align-nav-glint:#fffc;
  --royal-body-panel:var(--royal-align-panel);--royal-body-raised:var(--royal-align-raised);
  --royal-body-field:#fffefa;--royal-body-hover:#e9efec;--royal-body-edge:#fff;
  --royal-body-shadow:#2434490d;--royal-body-header:#edf0eb;
  color:var(--ink);background:radial-gradient(ellipse at 82% 0,#fffaf0,transparent 60%),#f3f2ee;
  color-scheme:light;
}

/* Navigation and the compact top bar use the same material as the workspace. */
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-rail {
  background:linear-gradient(160deg,#fbfaf6,#eeefea 76%);border-color:#cbd0c9;
  box-shadow:inset -1px 0 #fff,5px 0 22px #24344909;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .rail-label {color:#5d675f}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .rail-nav {background:none;border:0;box-shadow:none}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .rail-nav a,
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .rail-nav a:nth-child(even):not(.on) {
  color:#2d3e50!important;background:var(--royal-align-nav-face);
  border-color:#c2cbc6;border-top-color:#fff;box-shadow:var(--royal-align-nav-shadow);text-shadow:none!important;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .rail-nav a::before {
  border-color:#ffffff91;border-top-color:#fff;border-bottom-color:#aeb9b42b;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .rail-nav a.on {
  color:#533b15!important;background:linear-gradient(160deg,#fff3d5,#ead6ad 58%,#debf87);
  border-color:#b69c68;border-top-color:#fff8e4;
  box-shadow:inset 0 1px #fff9,0 2px #b8a079,0 4px 9px #604b2517;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .rail-nav a:not(.on):hover,
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .rail-nav a:nth-child(even):not(.on):hover {
  color:#20384a!important;background:var(--royal-align-hover);border-color:#9aaca2;
  box-shadow:inset 0 1px #fff,0 2px #b4c2b9,0 5px 10px #24344912;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .rail-nav a.on:hover {background:linear-gradient(160deg,#fff7e5,#f0dfbb 58%,#e5ca98)}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .rail-nav a:active {
  box-shadow:inset 0 1px 3px #657b6926,0 1px #bcc7c0;transform:translateY(1px);
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-topbar {
  background:linear-gradient(115deg,#fffefa,#f3f3ed);border-color:#d4d8d0;box-shadow:0 3px 14px #24344908;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-context strong {color:#243449}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-context span {color:#536273}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-profile {border-color:#cbd0c9}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-avatar {
  color:#634b20;background:linear-gradient(150deg,#fff9e9,#e2d2af);border-color:#bdab86;
  box-shadow:inset 0 1px #fff,0 2px 5px #604b2514;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-profile-copy > span {color:#43556a!important}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-profile-copy button {color:#5b4850!important;text-shadow:none}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin :is(.admin-menu-btn,.admin-theme-btn,.langgo) {
  background:var(--royal-align-raised);color:#2d3e50;border-color:#a8b4ac;
  box-shadow:inset 0 1px #fff,0 1px #bdc7c1,0 3px 6px #2434490b;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin :is(.admin-menu-btn,.admin-theme-btn,.langgo):hover {background:var(--royal-align-hover);filter:none}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-top-actions .langsel,
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-top-actions .langsel option {
  color:#243449;-webkit-text-fill-color:#243449;background:#fffefa;border-color:#a8b4ac;color-scheme:light;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-global-search input {
  color:#243449;background:#fffefa;border-color:#9aa89f;box-shadow:inset 0 1px 3px #2434490b;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-global-search input::placeholder {color:#606d7b;opacity:1}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-search-icon {color:#536273}

/* The summary and inventory share one warm-neutral surface system. */
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.card,.tablewrap,.topup,.form,.reg,.permcard,.box-panel,.box-summary-metrics,.royal-inventory) {
  color:#243449;background:var(--royal-align-panel);border-color:#c9cdc8;border-top-color:#fff;
  box-shadow:var(--royal-align-panel-shadow);
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .royal-portfolio > .chip {
  background:var(--royal-align-panel);border-color:#c9cdc8;border-top-color:#fff;box-shadow:var(--royal-align-panel-shadow);
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .royal-portfolio > .chip:is(.on,[aria-pressed=true],[aria-selected=true]) {
  border-color:#b79c66;background:linear-gradient(145deg,#fffdf5,#f5eddb);
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .royal-stat-icon {
  background:conic-gradient(from 30deg,#fffefa,#dce5e2,#f9faf6,#c5d1cb,#fffefa);
  border-color:#aebdb3;box-shadow:inset 0 1px #fff,inset 0 -1px #aab9b04d,0 2px 5px #24344912;color:#3b5a6a;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .royal-inventory-heading {background:#fffefa66;border-color:#ddddd5}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .royal-inventory-tools {background:linear-gradient(180deg,#f9f9f3,#eef1e9);border-color:#d4d9ce}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .royal-inventory > .tablewrap {background:transparent;border:0;box-shadow:none}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .bar .chip:not(.royal-portfolio > .chip) {color:#43556a;border-color:#c5cec6;background:var(--royal-align-raised)}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .bar a.chip.on:not(.royal-portfolio > .chip) {color:#533b15;border-color:#b69c68;background:#f2e5c9}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.tablewrap,.box-table-wrap) th,
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .royal-monitor-table #t thead th {
  color:#42566a;background:var(--royal-align-header);border-color:#cbd3ca;box-shadow:inset 0 1px #fff8;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.tablewrap,.box-table-wrap) td,
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .royal-monitor-table #t tbody td {border-color:#dfe3db}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main a.tenant {color:#285c87;border-bottom-color:#98acb9}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(a.tenant,.cp,a.map):hover {color:#153f64;border-bottom-color:#806025}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main a.map {color:#285c87}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(h2,h3,h4,.capname,.box-metric-value) {color:#243449}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.muted,.note,.permnote,.capdesc,.cappage,.capwho,.box-metric-top,.box-metric-foot,.box-subtenant-names,.box-panel-head p,.cr-not) {color:#536273}

/* Controls retain their existing labels, semantic colours and disabled states. */
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=submit],[type=button]),select,textarea) {
  color:#243449;-webkit-text-fill-color:#243449;background:#fffefa;border-color:#89958f;color-scheme:light;
  box-shadow:inset 0 1px 3px #2434490c,inset 0 -1px #fff;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(select option,select optgroup) {color:#243449;background:#fffefa}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(input,textarea)::placeholder {color:#606d7b;-webkit-text-fill-color:#606d7b;opacity:1}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(button,.btn,input[type=submit],input[type=button],.box-action,.box-map-link):not(.g,.b,.amber,.primary,.danger,.cancel,.box-action-primary,.box-action-danger) {
  color:#243449;background:var(--royal-align-raised);border-color:#89958f;border-top-color:#fff;border-bottom-color:#aebcb2;box-shadow:var(--royal-align-bevel);
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main a.royal-teleport {
  color:#243449;background:var(--royal-align-raised);border-color:#89958f;border-top-color:#fff;border-bottom-color:#aebcb2;box-shadow:var(--royal-align-bevel);
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main a.royal-teleport svg {color:#74531f}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(button,.btn,input[type=submit],input[type=button],.box-action):is(.b,.amber,.primary,.box-action-primary) {
  color:#463112;background:linear-gradient(155deg,#fff1cf,#e7cd99 58%,#d9ba7c);
  border-color:#ab8b4e;border-top-color:#fff6df;border-bottom-color:#a78b55;
  box-shadow:inset 0 1px #fff9,0 2px #b49b70,0 4px 9px #604b2514;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(button,.btn,input[type=submit],input[type=button]):is(.g,.cr-btn.ok) {
  color:#174c33;background:linear-gradient(155deg,#f2fbf0,#d4e8d6 58%,#bfd9c5);
  border-color:#7fa68b;border-top-color:#fafff8;box-shadow:inset 0 1px #fff,0 2px #9db7a4,0 4px 9px #1b4c2d12;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(button,.btn,input[type=submit],input[type=button],.box-action):is(.danger,.cancel,.box-action-danger,.cr-btn.no) {
  color:#812b37;background:linear-gradient(155deg,#fff5f3,#f1dad8 58%,#e6c5c4);
  border-color:#be9395;border-top-color:#fff8f7;box-shadow:inset 0 1px #fff,0 2px #c6a4a7,0 4px 9px #61253012;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(button,.btn,.box-action,.box-map-link,a.royal-teleport):hover {filter:brightness(.985);border-color:#806025}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(button:disabled,input:disabled,.btn[aria-disabled=true],.box-action.is-disabled) {filter:none;cursor:not-allowed}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin :is(a,button,input,select,textarea,summary):focus-visible {outline-color:#806025;outline-offset:3px}

/* Enamel status pills retain each original state and its text. */
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.pill,.badge) {
  --royal-status-ink:#354b5a;--royal-status-top:#fbfdfb;--royal-status-mid:#e7eee9;--royal-status-bottom:#d7e2db;--royal-status-rim:#a3b6a9;
  box-shadow:inset 0 1px #fff,inset 0 -1px #65847715,0 1px #becdc4,0 3px 5px #2434490c;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.pill,.badge):is(.p-rented,.on,.active,.credited,.done,.good,.staff,.tc-status-active) {
  --royal-status-ink:#22513a;--royal-status-top:#f5fbf3;--royal-status-mid:#deeddb;--royal-status-bottom:#c7ddc5;--royal-status-rim:#98b692;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.pill,.badge):is(.p-unknown,.dormant,.warn,.owner,.prim,.arch,.tc-status-warn) {
  --royal-status-ink:#674814;--royal-status-top:#fffaf0;--royal-status-mid:#f0e4c6;--royal-status-bottom:#e2cea0;--royal-status-rim:#bba574;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.pill,.badge):is(.p-overdue,.revoked,.failed,.danger,.unknown) {
  --royal-status-ink:#7f3445;--royal-status-top:#fff7f7;--royal-status-mid:#f0dfe3;--royal-status-bottom:#e4c7cf;--royal-status-rim:#bd9ba5;
}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.u-ok,.p-vacant,.s-vacant,.roff,.same,.off,.plnc) {color:#536273}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.u-over,.stale,.s-overdue,.plbad,.plunres,.bad,.imnote.bad,.tb-res .r-no,.box-status-overdue,.box-status-removed,.box-status-archived) {color:#a13240}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.u-soon,.u-warn,.s-unknown,.warnrow,.prims-stale) {color:#7b5619}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.s-rented,.box-status-rented,.ron,.gain,.imnote:not(.bad),.tb-res .r-ok) {color:#246344}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main span.on:not(.pill,.badge) {color:#246344}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.err,.cr-msg.hata) {color:#8a2e3c;background:#fff0ee;border-color:#d3a1a6}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.ok,.cr-msg.tamam) {color:#245a3a;background:#eef7eb;border-color:#a2bea0}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.plw,.warnbox,.cr-rozet.n,.box-status-notice.is-warning) {color:#694b17;background:#fff4db;border-color:#c6ad77;box-shadow:none}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .plw h4 {color:#694b17}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .warn:not(.pill,.badge) {color:#8a2e3c;background:#fff0ee;border-color:#d3a1a6}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.box-status-notice,.cr-msg.bilgi) {color:#2d536c;background:#edf5f7;border-color:#a9c3ca;box-shadow:none}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .box-status-notice :is(strong,span,.box-metric-foot) {color:inherit}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.box-financial-strip,.capbox,.tb-res,.wiki-staff-tools) {color:#243449;background:#f5f7f1;border-color:#c7d1c5;box-shadow:inset 0 1px #fff}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .capbox:nth-child(even) {background:#eef3ec}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .capbox:hover {background:#e8f0e6;border-color:#92a68f}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .cred {color:#245a3a;background:#eef7eb;border-color:#a2bea0;box-shadow:inset 0 1px #fff}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .cred b {color:#634919}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.lvl-high .caplvl,.cr-rozet.k) {color:#8a2e3c;background:#f6e3e2}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .lvl-med .caplvl {color:#694b17;background:#f3e7c8}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .lvl-low .caplvl {color:#35556a;background:#e3ecee}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .cr-rozet.y {color:#245a3a;background:#dfefdc}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .box-metric-icon {color:#40586b;border-color:#b6c4ba;background:var(--royal-align-raised);box-shadow:inset 0 1px #fff,0 1px #becdc4}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.box-panel-head,.box-metric) {border-color:#d2dacf}

/* These literal inline colours are emitted by existing operational PHP.
   Map only the observed colour families; never change visibility or handlers. */
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is([style*="color:#7ee0a0" i],[style*="color:#7fdca0" i],[style*="color:#5bc07f" i]) {color:#246344!important}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is([style*="color:#f0a252" i],[style*="color:#e7c87c" i],[style*="color:#e0a53a" i],[style*="color:#e7a34e" i],[style*="color:#f59e0b" i],[style*="color:#fbbf24" i],[style*="color:#e0a020" i]) {color:#79531b!important}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is([style*="color:#f87171" i],[style*="color:#e0603a" i],[style*="color:#e06c6c" i]) {color:#a13240!important}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main [style*="color:#3b82f6" i] {color:#285c87!important}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main [style*="color:#8a8f98" i] {color:#536273!important}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is([style*="background:#12301c" i],[style*="background:#16241b" i]) {color:#245a3a;background:#eef7eb!important;border-color:#a2bea0!important}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is([style*="background:#2a1f12" i],[style*="background:#3a2f1f" i]) {color:#694b17!important;background:#fff4db!important;border-color:#c6ad77!important}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(input,select,textarea)[style*="background:#0f1115" i] {background:#fffefa!important;color:#243449!important;border-color:#89958f!important}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main button[style*="background:#a5842f" i] {color:#463112!important;background:linear-gradient(155deg,#fff1cf,#e7cd99 58%,#d9ba7c)!important;border:1px solid #ab8b4e!important;box-shadow:inset 0 1px #fff9,0 2px #b49b70,0 4px 9px #604b2514}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main button[style*="background:#2e7d5b" i] {color:#174c33!important;background:linear-gradient(155deg,#f2fbf0,#d4e8d6 58%,#bfd9c5)!important;border:1px solid #7fa68b!important;box-shadow:inset 0 1px #fff,0 2px #9db7a4,0 4px 9px #1b4c2d12}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main button[style*="background:#2a2f3a" i] {color:#243449!important;background:var(--royal-align-raised)!important;border:1px solid #89958f!important}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(button,select)[style*="background:#2a1414" i],
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main button:is([style*="background:#4a1616" i],[style*="background:#3a2020" i]) {color:#812b37!important;background:#f5e1df!important;border:1px solid #be9395!important;box-shadow:inset 0 1px #fff,0 2px #c6a4a7,0 4px 9px #61253012}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .card:is([style*="border-color:#3a2e1f" i],[style*="border:1px solid #3a2e1f" i],[style*="border:1px solid #2e3a1f" i],[style*="border:1px solid #1f3a2e" i]) {border-color:#b8bcae!important}

/* Wiki / disclosure shells use the same ink, including focusable summaries. */
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .wiki {--wk-soft:#f3f5ee;--wk-surface:#fffefa;--silver:#243449;--txt:#243449;--inp:#fffefa}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.wiki-task,.wiki-rule,.wiki-article,.wiki-guide-card,.wiki-hero) {border-color:#cbd3c7}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main :is(.wiki-content,.wiki-task summary,.box-command-archive > summary span) {color:#243449}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .wiki-primary {background:#806025;color:#fff!important}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin .admin-main .wiki-categories button[aria-pressed=true] {color:#634715;border-color:#bda675;background:linear-gradient(#fff7e5,#eee0bf)}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin ::selection {color:#3a2b16;background:#ead6ad}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin * {scrollbar-color:#aab7ac transparent}
html:root[data-theme="light"] body.royal-balanced-theme.portal-admin ::-webkit-scrollbar-thumb {background:#aab7ac;background-clip:content-box}
}

/* Customer light refinement. Load after customer-fidelity-v2.css.
   Paint only: native controls, layout and the D AutoPay geometry are retained.
   Shared hero, brand and public authentication are owned by shared-light.css.
   Screen-only: existing print and Windows high-contrast paint is untouched. */
@media screen and (forced-colors:none) {
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer {
 --rf-canvas:#f3f2ee;--rf-surface:#fffefa;--rf-alt:#f0eee8;--rf-hover:#e9e7df;
 --rf-panel:linear-gradient(145deg,#fffefa,#f3f1ec);
 --rf-raised:linear-gradient(160deg,#fffefa,#f5f3ed 55%,#e8e5dc);
 --rf-frame:#d4d3ca;--rf-line:#d4d3ca;--rf-control:#89958f;
 --rf-ink:#243449;--rf-text:#344558;--rf-muted:#536273;
 --rf-gold:#8a682c;--rf-gold-pale:#76571f;
 --rf-metal:linear-gradient(145deg,#f6e8c6,#dbc394 52%,#bda06b);
 --rf-shadow:inset 0 1px #fff,0 5px 18px #24344910;
 --rf-bevel:inset 0 1px #fff,inset 0 -1px #c4c3b957,0 2px #bfc0b85c,0 4px 8px #24344912;
 --rc-panel:var(--rf-panel);--rc-raised:var(--rf-raised);--rc-frame:var(--rf-frame);
 --rc-line:var(--rf-line);--rc-soft:var(--rf-alt);--rc-field:#fffefa;
 --rc-ink:var(--rf-ink);--rc-text:var(--rf-text);--rc-muted:var(--rf-muted);
 --rc-gold:var(--rf-gold);--rc-gold-ink:var(--rf-gold-pale);--rc-shadow:var(--rf-shadow);
 --panel:#fffefa;--panel2:#f0eee8;--inp:#fffefa;--line:#d4d3ca;--line2:#24344916;
 --txt:#344558;--silver:#243449;--mut:#536273;
 --gold:#8a682c;--gold-b:#76571f;--gold-d:#76571f;
 --red:#9b3442;--green:#246747;--amber:#79571d;
}
/* Ivory navigation keeps the raised material without dark-theme black edges.
   Important text declarations override the existing balanced white nav text. */
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .customer-topbar .pills a {
 color:#344558!important;background:var(--rf-raised);
 border-color:#c6c8c5;border-top-color:#fff;
 box-shadow:var(--rf-bevel);
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .customer-topbar .pills a.on {
 color:#4e3b1b!important;background:linear-gradient(160deg,#faf0d8,#ead6ab 55%,#ddc18d);
 border-color:#b79b66;border-top-color:#fff7e4;
 box-shadow:inset 0 1px #fff9,0 2px #a78e6540,0 4px 8px #76571f12;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .customer-topbar .pills a:hover {
 border-color:#a28b62;background:linear-gradient(160deg,#fffefa,#ede8db);color:#243449!important;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .customer-topbar .pills a.on:hover {
 background:linear-gradient(160deg,#fff3d7,#e8d0a0);color:#4e3b1b!important;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .topright {
 border-color:#d4d3ca;box-shadow:0 3px 12px #2434490b;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .topright :is(.portal-signout,.royal-customer-menu) {
 color:#344558!important;background:var(--rf-raised);border-color:#89958f;box-shadow:var(--rf-bevel);
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .topright .portal-signout:hover {
 color:#243449!important;background:linear-gradient(160deg,#fffefa,#ede8db);border-color:#8a682c;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .topright :is(select,.langsel,.tgl) {
 color:#344558;background:#fffefa;border-color:#89958f;box-shadow:inset 0 1px 2px #2434490b;
}
/* Body surfaces: retain all inherited sizing, overflow and responsive layout. */
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer :is(.card,.paybox,.prev,.tablewrap,.txlist,.rc-balance-bar,.rc-residence,.rc-ledger,.rc-rental-activity,.rc-hud-status-panel,.rc-hud-topup-panel,.rc-hud-setup) {
 border-color:#d4d3ca;border-top-color:#fff;box-shadow:var(--rf-shadow);
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer :is(.rc-balance-bar,.prev) {
 border-color:#cbb78f;border-top-color:#fff8e5;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-balance-emblem {
 border-color:#bf9d60;box-shadow:inset 0 1px #fff,inset 0 -2px #8a682c40,0 3px 7px #76571f20;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-residence-emblem {
 background:linear-gradient(145deg,#fffefa,#e6e9e8 55%,#cfd6d9);border-color:#b8c0c2;
 box-shadow:inset 0 1px #fff,inset 0 -2px #89989f35,0 3px 7px #24344918;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer :is(.rc-unit,.rc-rent,.rc-autopay-note,.rc-balance-detail) {
 border-color:#d4d3ca;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-actions .rowact>form:has(.ap-on,.ap-off) {
 border-color:#d4d3ca;
}
/* Secondary actions use pearl; existing payment/save/top-up primary actions
   remain champagne. AutoPay buttons are deliberately excluded. */
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap :is(button,.btn,a.map):not(:is(.ap-on,.ap-off)) {
 color:#344558;background:var(--rf-raised);border-color:#89958f;border-top-color:#fff;
 box-shadow:var(--rf-bevel);
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap :is(.btn.cta:not(.ghost),button.pay,.formcard button,.schedule-actions button,.rc-hudpay .actions button:not(.ghost)) {
 color:#352811;background:linear-gradient(145deg,#f5e5bd,#dfc18a 58%,#c5a66c);
 border-color:#b39763;border-top-color:#fff4d9;
 box-shadow:inset 0 1px #fff8,0 2px #98784066,0 4px 9px #76571f1c;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap :is(button,.btn,a.map):not(:is(.ap-on,.ap-off)):is(:hover,:focus-visible) {
 color:#243449;border-color:#8a682c;filter:brightness(1.02);
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap :is(button,.btn,a.map):focus-visible,
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .customer-topbar :is(a,button,select):focus-visible {
 outline-color:#8a682c;
}
/* Native disabled state is still non-interactive; opacity no longer fades
   the label into the pale background. No enabled/disabled attributes change. */
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap :is(button,.btn):disabled:not(:is(.ap-on,.ap-off)) {
 color:#596574;background:#e6e8e6;border-color:#bac0c1;box-shadow:inset 0 1px #ffffff80;
 opacity:1;filter:none;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea) {
 color:#243449;background:#fffefa;border-color:#89958f;box-shadow:inset 0 1px 3px #2434490c;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap :is(input,textarea)::placeholder {
 color:#637080;opacity:1;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap :is(input,select,textarea):focus-visible {
 border-color:#8a682c;outline-color:#8a682c;box-shadow:0 0 0 3px #8a682c20;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap :is(input,select,textarea):disabled {
 color:#596574;background:#e6e8e6;border-color:#bac0c1;opacity:1;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap .paybox input[readonly][aria-label=UUID] {
 color:#536273!important;background:#f0eee8!important;border-color:#bfc4c4!important;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap .amt {
 color:#536273;background:#fffefa;border-color:#89958f;box-shadow:inset 0 1px 3px #2434490c;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap .amt input {
 background:transparent;box-shadow:none;
}
/* Status paint remains semantic and retains the exact native state labels. */
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-fidelity-page .pill {
 --badge-ink:#30465d;--badge-top:#f7fafb;--badge-mid:#e1e9ed;--badge-bottom:#cedbe2;--badge-rim:#a0b2bb;
 box-shadow:inset 0 1px #fff,inset 0 -1px #53627320,0 2px #9baab83b,0 3px 6px #2434490e;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-fidelity-page .pill.green {
 --badge-ink:#24513e;--badge-top:#f5fcf7;--badge-mid:#dfeee5;--badge-bottom:#c7dfd1;--badge-rim:#a0bcab;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-fidelity-page .pill.amber {
 --badge-ink:#654b18;--badge-top:#fffaf0;--badge-mid:#f0e4c9;--badge-bottom:#e4d3b0;--badge-rim:#c5b08a;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-fidelity-page .pill.red {
 --badge-ink:#793745;--badge-top:#fff6f8;--badge-mid:#f1e1e5;--badge-bottom:#e6cdd5;--badge-rim:#c9a5b0;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-home>.lowbal,
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap .msg.note {
 color:#79571d;background:#fff4dc;border-color:#ccb58a;box-shadow:inset 0 1px #fff;
}
/* AutoPay: color only. D's logical track/knob anchors, 160x48 hit area,
   46x26 track, 20x20 knob and RTL positions are not re-declared. */
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap .rc-actions button.sm:is(.ap-on,.ap-off)::before {
 background:linear-gradient(160deg,#c8d0d5,#aab8c2);border-color:#8295a3;
 box-shadow:inset 0 1px 3px #24344930;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap .rc-actions button.sm.ap-on::before {
 background:linear-gradient(160deg,#e5cf9f,#be9856);border-color:#92703a;
 box-shadow:inset 0 1px #fff5,inset 0 -1px #76571f30;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wrap .rc-actions button.sm:is(.ap-on,.ap-off)::after {
 background:linear-gradient(160deg,#fffefa,#ecece6);
 box-shadow:inset 0 0 0 1px #5263734d,0 1px 3px #24344940;
}
/* Reminder schedule, recipient history and HUD pairing surfaces. */
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-reminders :is(.schedule-current,.reminder-entry-row:not(.is-empty)) {
 background:linear-gradient(160deg,#fffefa,#eeeee8);border-color:#d4d3ca;
 box-shadow:inset 0 1px #fff,inset 0 -1px #2434490c;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-reminders .reminder-entry-row:nth-child(even):not(.is-empty) {
 background:linear-gradient(160deg,#f8f8f2,#e8ebe6);
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-reminders .reminder-entry-row.is-empty {
 border-color:#c2c8c6;box-shadow:none;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-reminders .reminder-slot-index {
 color:#344558;background:#e2e6e4;box-shadow:inset 0 0 0 1px #c4cdcc;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer :is(.channel-icon,.recipient-icon,.delivery-icon) {
 color:#76571f;background:var(--rf-raised);border-color:#c4c8c3;box-shadow:inset 0 1px #fff,inset 0 -1px #24344915;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer :is(.recipient-row,.delivery-row):nth-child(even) {
 background:#eeefe9;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .codebox {
 background:#fffefa;border-color:#b7bdbe;box-shadow:inset 0 1px 3px #2434490b;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .codebox .code {color:#76571f}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .rc-fidelity-page tbody tr:hover {
 background:#e8ecea;
}
/* Existing help filters keep their selected state visibly distinct. */
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wiki .wiki-categories button[aria-pressed=true] {
 color:#654b18;background:#efe0bd;border-color:#b49a67;box-shadow:inset 0 1px #fff;
}
html:root[data-theme="light"] body.royal-fidelity-theme.portal-customer .wiki :is(.wiki-clear,.wiki-reset) {
 color:#76571f;background:none;box-shadow:none;
}
}
