/* Shared appearance tokens. Preference is the only theme data retained locally. */
:root:not([data-theme="light"]){--bg2:#101723;--bg3:#182131;--line:rgba(148,163,184,.16);--line2:rgba(148,163,184,.25);--surface:rgba(20,28,42,.9)}
:root[data-theme="light"]{
 color-scheme:light;--bg:#e5e7eb;--bg2:#f3f4f6;--bg3:#dfe3e8;--bg-img:linear-gradient(145deg,#e5e7eb,#d9dde3);
 --panel:rgba(247,248,250,.96);--panel-2:#eef0f3;--tile:rgba(255,255,255,.5);--surface:#f3f4f6;--side-bg:rgba(229,231,235,.97);
 --text:#17212f;--muted:#4b5563;--faint:#647084;--dim:#586477;--border:rgba(55,65,81,.17);--border-2:rgba(55,65,81,.26);--line:rgba(55,65,81,.17);--line2:rgba(55,65,81,.26);
 --input:#f9fafb;--hover:rgba(55,65,81,.07);--accent:#075985;--accent-2:#0369a1;--cyan:#0369a1;--green:#15803d;--brand-l:#235da3;--danger:#b91c1c;
 --shadow:0 22px 60px -30px rgba(31,41,55,.32);--glow:rgba(100,116,139,.18)
}
:root:not([data-theme="light"]){color-scheme:dark}
.pn-theme-switch{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;border:1px solid var(--line);border-radius:10px;background:var(--bg2);color:var(--text);cursor:pointer;padding:8px}
.pn-theme-switch svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pn-theme-switch:focus-visible{outline:2px solid var(--accent,var(--cyan));outline-offset:3px}.login-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.pn-credit a{color:var(--accent,var(--cyan));font-weight:600;text-decoration:underline;text-underline-offset:3px}.pn-credit{line-height:1.6}
:root[data-theme="light"] .shell{background:#f3f4f6;box-shadow:0 24px 70px #37415125}
:root[data-theme="light"] .form-pane{background:rgba(249,250,251,.88)}
:root[data-theme="light"] .brand-pane{background:linear-gradient(145deg,#eef0f3,#e1e5eb)}
:root[data-theme="light"] .logo{--l1:#253046;--l2:#3c6fbb}
:root[data-theme="light"] .input{background:#f9fafb;color:var(--text)}
:root[data-theme="light"] .input:focus{background:#fff;border-color:#0369a1;box-shadow:0 0 0 4px #0369a11a}
:root[data-theme="light"] .input::placeholder{color:#647084}
:root[data-theme="light"] .orb{opacity:.12}:root[data-theme="light"] .grad{background:linear-gradient(100deg,#075985,#285e99,#166534);-webkit-background-clip:text;background-clip:text}
:root[data-theme="light"] .page-foot,:root[data-theme="light"] .page-foot span{color:#4b5563}
:root[data-theme="light"] .status,:root[data-theme="light"] .lang{background:#ffffff66}
:root[data-theme="light"] .lang button[aria-pressed=true]{background:#07598515}
:root[data-theme="light"] .pn-errors{color:#991b1b;background:#fee2e2;border-color:#f87171}
body:has(.page-foot){padding-bottom:54px}
@media(max-width:420px){.form-head{gap:10px;flex-wrap:wrap}.login-tools{justify-content:flex-start}.pn-credit{font-size:12px}}
