.interface-theme-toggle{display:inline-flex;margin:0;flex-shrink:0}
.interface-theme-toggle button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;font:500 12px/1.4 "IBM Plex Sans Arabic",sans-serif;cursor:pointer;white-space:nowrap}
.interface-theme-toggle button:hover{background:rgb(128 128 128 / 12%)}
.interface-theme-toggle button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.interface-theme-toggle button span{font:20px/1 system-ui,sans-serif}
.interface-theme-floating{position:fixed;top:14px;inset-inline-end:16px;z-index:50}
@media(max-width:600px){.interface-theme-toggle button{padding:0}.site-actions{flex-wrap:wrap}.interface-theme-floating{top:8px}}
html[data-interface-theme=night] .account-body :is(.form-panel,.panel,.profile-panel,.settings-panel,.create-panel,.payment-panel){background:var(--surface)}
html[data-interface-theme=night] .account-body :is(.balance-card,.invitee-balance){background:linear-gradient(135deg,var(--surface-2),var(--bg-deeper))}
html[data-interface-theme=night] .nc-popover,html[data-interface-theme=night] .nc-panel{background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-interface-theme=night] .input-shell input{background:var(--surface-2);color:var(--text);border-color:var(--line)}
/* Gold lettering needs a darker gradient on the white interface surfaces.
   Button fills and the artwork retain their separate gold gradients. */
html[data-interface-theme=day]{--gold-text-grad:linear-gradient(120deg,#5a3c12 0%,#896321 38%,#69481a 64%,#76541c 100%)}
/* Day mode changes interface surfaces; gift artwork keeps its own palette. */
html[data-interface-theme=day] :is(.value-card,.auth-card,.voucher,.card-section){background:var(--surface);color:var(--text)}
html[data-interface-theme=day] .control input:focus,html[data-interface-theme=day] .control select:focus,html[data-interface-theme=day] .control textarea:focus{background:var(--field)}
html[data-interface-theme=day] :is(.balance-card,.invitee-balance){background:linear-gradient(135deg,#fff,#f5f1e9)}
html[data-interface-theme=day] .identity-card{background:linear-gradient(135deg,#fff,#f5f1e9)}
html[data-interface-theme=day] .balance-stats div{background:var(--surface-2);border-color:var(--line);backdrop-filter:none}
html[data-interface-theme=day] :is(.nc-popover,.nc-panel,.bottom-nav,.user-menu-panel){background:#fff;color:var(--text);border-color:var(--line)}
/* The account sets the notification colours for the dark interface; the day interface needs its own, or the
   notification centre and browser-notification card stay black and the bell list's details turn pale. */
html[data-interface-theme=day] .account-body,html[data-interface-theme=day] .account-body .nc-panel{--nc-surface:#fff;--nc-ink:var(--text);--nc-muted:#6f675c;--nc-line:var(--line);--nc-accent:#896321}
html[data-interface-theme=day] .demo-ribbon{background:#f4f0e9;color:#61533e}
html[data-interface-theme=day] .phone{--gold-text-grad:var(--gold-grad);--text:#f7ede0;--text-2:#d2bea8;--text-3:#a08771;--gold:#dcb46e;--gold-soft:#efd6a4;color:var(--text)}
html[data-interface-theme=day] .float-card{background:#fff;color:#29231c}
/* Night sign-in pages: --ink turns light there, so the main action becomes gold with black text. */
html[data-interface-theme=night] :is(.auth-card button:not(.toggle-visibility,.text-link),.status-actions a,.print-toolbar button){background:var(--copper,#dcb46e);color:#111}
html[data-interface-theme=night] :is(.auth-card button:not(.toggle-visibility,.text-link),.status-actions a):hover{background:var(--copper-400,#e5c386)}
