/* Full-width Unlisite layouts and accessible light/dark appearance.
   Kept separate from portal.css so page redesigns cannot overwrite preferences. */
.landing,.console,.setup-shell,.setup-main{max-width:none;width:100%;margin-left:0;margin-right:0}
.landing,.setup-shell{padding-inline:clamp(16px,3vw,56px)}
.auth-wrap{width:100%}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none}
.theme-toggle .theme-sun{display:inline-flex}
.theme-toggle .theme-moon{display:none}
html[data-theme="light"] .theme-toggle .theme-sun{display:none}
html[data-theme="light"] .theme-toggle .theme-moon{display:inline-flex}
.auth-wrap>.theme-toggle{position:fixed;top:26px;right:clamp(22px,5vw,80px);z-index:20}
@media(max-width:730px){
  .landing,.setup-shell{padding-inline:16px}
  .auth-wrap>.theme-toggle{top:24px;right:20px}
  .top-right{gap:7px}
  .console-top{gap:8px}
  .page-location{min-width:0;max-width:calc(100% - 108px);overflow:hidden;white-space:nowrap}
}
@media(max-width:490px){
  .landing-nav,.setup-nav{gap:7px}
  .landing-nav .nav-link,.setup-nav .nav-link{font-size:10px}
  .landing-top .brand-text,.setup-header .brand-text{font-size:17px}
}
@media(max-width:380px){.landing-top .brand-text,.setup-header .brand-text{display:none}}
html[data-theme="light"]{
  color-scheme:light;--bg:#f5f8fc;--surface:#ffffff;--panel:#ffffff;
  --line:rgba(38,74,100,.14);--line2:rgba(38,74,100,.26);
  --text:#172e42;--muted:#536c80;--mint:#087d73;--blue:#245fa7;
  --purple:#6950a6;--glow:rgba(8,125,115,.15)
}
html[data-theme="light"] ::selection{background:#c7ece5;color:#153b37}
html[data-theme="light"] .ambient{opacity:.14}
html[data-theme="light"] .grain{opacity:.08}
html[data-theme="light"] .brand-text{color:#172e42}
html[data-theme="light"] .brand-mark{background:#e2f5f1;border-color:#b8ded7;box-shadow:0 0 20px #087d7310}
html[data-theme="light"] .gradient-text{background:linear-gradient(100deg,#087c72,#2463ab 56%,#6a45a9);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-theme="light"] .rail{background:rgba(240,246,252,.95)}
html[data-theme="light"] .rail-item{color:#506a7e}
html[data-theme="light"] .rail-item:hover,html[data-theme="light"] .rail-item.current{background:#d9f1ed;color:#096c63;border-color:#c2e7df}
html[data-theme="light"] .icon-button,html[data-theme="light"] .help-icon{background:rgba(255,255,255,.84);border-color:var(--line2)}
html[data-theme="light"] .help-icon{background:transparent;border-color:transparent}
html[data-theme="light"] .pill{background:#fff;border-color:var(--line2);color:var(--text)}
html[data-theme="light"] .pill:hover{background:#eff7f6}
html[data-theme="light"] .pill.primary{background:var(--mint);border-color:var(--mint);color:#fff;box-shadow:0 6px 22px #087d732b}
html[data-theme="light"] .pill.primary:hover{background:#066a62;color:#fff}
html[data-theme="light"] .needs-login,html[data-theme="light"] .auth-card,
html[data-theme="light"] .surface,html[data-theme="light"] .stat,
html[data-theme="light"] .setup-panel,html[data-theme="light"] .setup-notice,
html[data-theme="light"] .uls-modal{background:linear-gradient(145deg,#ffffff,#f0f6fb);border-color:var(--line2);box-shadow:0 12px 40px rgba(34,71,98,.07)}
html[data-theme="light"] .need-choice{background:#fff;color:#415b6e}
html[data-theme="light"] .need-choice .ic{color:#557a8e}
html[data-theme="light"] .need-choice.current,html[data-theme="light"] .need-choice:hover{background:#e5f5f1;border-color:#78bfb3;color:#086b62}
html[data-theme="light"] .need-choice.current .ic,html[data-theme="light"] .need-choice:hover .ic{color:#086b62}
html[data-theme="light"] .auth-form input,html[data-theme="light"] .field input,html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea,html[data-theme="light"] .needs-idea-form textarea{background:#fff;border-color:var(--line2);color:var(--text)}
html[data-theme="light"] .auth-form label,html[data-theme="light"] .field,
html[data-theme="light"] .needs-idea-form>label{color:#38546b}
html[data-theme="light"] .auth-form input::placeholder,html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder,html[data-theme="light"] .needs-idea-form textarea::placeholder{color:#70879a}
html[data-theme="light"] dialog.uls-modal::backdrop{background:rgba(25,52,73,.12)!important}
html[data-theme="light"] .live{color:#35685c}
html[data-theme="light"] .page-location,html[data-theme="light"] .landing-bottom,html[data-theme="light"] .setup-foot,
html[data-theme="light"] .auth-side-text,html[data-theme="light"] .needs-domain,html[data-theme="light"] .needs-signup,
html[data-theme="light"] .empty-state,html[data-theme="light"] .row-sub,html[data-theme="light"] .recent-item small,
html[data-theme="light"] .stat-label,html[data-theme="light"] .stat-foot,html[data-theme="light"] .console-foot{color:#526e82}
html[data-theme="light"] .needs-login .auth-foot,html[data-theme="light"] .modal-content p,
html[data-theme="light"] .request-update,html[data-theme="light"] .setup-intro p,
html[data-theme="light"] .setup-panel p,html[data-theme="light"] .setup-notice p{color:#456176}
html[data-theme="light"] .badge{background:#e9f0f6;color:#4b6173}
html[data-theme="light"] .badge.ready,html[data-theme="light"] .badge.verified,html[data-theme="light"] .badge.resolved{background:#d9f3e7;color:#176644}
html[data-theme="light"] .badge.failed{background:#fbe7e8;color:#a8323c}
html[data-theme="light"] .badge.queued,html[data-theme="light"] .badge.processing,html[data-theme="light"] .badge.provisioning{background:#fff1d7;color:#8b5d13}
html[data-theme="light"] .action-tile,html[data-theme="light"] .feature{background:#fff;color:#2e4b62}
html[data-theme="light"] .action-tile:hover,html[data-theme="light"] .feature:hover,html[data-theme="light"] .recent-item:hover{background:#eaf4f7}
html[data-theme="light"] .ticket-message,html[data-theme="light"] .dns-record{background:#f1f6fa}
html[data-theme="light"] .dns-value{color:#254558}
html[data-theme="light"] .copy-btn,html[data-theme="light"] .setup-copy{background:#fff;color:#254c60;border-color:var(--line2)}
html[data-theme="light"] .setup-url{background:#eef8f6;border-color:#8dc7ba}
html[data-theme="light"] .setup-url code{color:#0b605a}
html[data-theme="light"] .setup-steps p em{color:#1a526d}
html[data-theme="light"] .form-alert{background:#fff1f1;color:#9b343b;border-color:#edbfc2}
html[data-theme="light"] .form-alert.success{background:#e4f6ed;color:#176644;border-color:#a9dec0}
html[data-theme="light"] .toast{background:#f0f9f5;color:#173c33;border-color:#9ad9c4;box-shadow:0 16px 55px #23394c2b}
html[data-theme="light"] .toast.error{background:#fff0f1;color:#912b3a;border-color:#e6a9b0}
html[data-theme="light"] .avatar{background:#d8efe8;color:#0a6c60;border-color:#afd8ce}
html[data-theme="light"] .mock-window{background:#eef5fb;box-shadow:0 20px 70px #23426220}
html[data-theme="light"] .float-chip{background:#f5fbffed;color:#325568}
html[data-theme="light"] .admin-console{--mint:#285ba7;--blue:#285ba7}
html[data-theme="light"] .admin-console .pill.primary{background:#285ba7;color:#fff;border-color:#285ba7}
html[data-theme="light"] .admin-console .brand-mark{background:#e4eeff;color:#285ba7;border-color:#b4cdf3}
html[data-theme="light"] .admin-console .rail-item.current{background:#e5eeff;color:#285ba7;border-color:#c6daf8}
html[data-theme="light"] .admin-console .row-icon{background:#e5eeff;color:#285ba7}
html[data-theme="light"] .admin-console .stripe,html[data-theme="light"] .admin-console .pulse{background:#285ba7}