/* Public-site theme tokens. Importing this file alone does not theme the admin. */
html[data-portal-theme="light"]{color-scheme:light;--portal-page:#fff;--portal-card:#fff;--portal-raised:#f3f6fc;--portal-ink:#1f293f;--portal-muted:#64718a;--portal-border:#e0e6f1;--portal-primary:#3370ff;--portal-surface:#f6f8fc;--portal-footer-background:#f6f8fc;--portal-glass:rgba(255,255,255,.82)}
html[data-portal-theme="dark"]{color-scheme:dark;--portal-page:#0b1020;--portal-card:#131c2e;--portal-raised:#1b2740;--portal-ink:#edf2ff;--portal-muted:#a7b4ca;--portal-border:#2b3953;--portal-primary:#94b5ff;--portal-surface:#10182a;--portal-footer-background:#0c1323;--portal-glass:rgba(17,26,44,.88);background:#0b1020}
[data-portal-theme-control]{display:inline-flex;flex:none;position:relative;vertical-align:middle;min-width:40px}
.portal-theme-trigger{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif!important;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px!important;border:1px solid var(--portal-border,#e0e6f1)!important;border-radius:99px!important;background:var(--portal-glass,#ffffffd1)!important;color:var(--portal-muted,#64718a)!important;font-size:12px!important;font-weight:500!important;line-height:20px!important;cursor:pointer;white-space:nowrap;box-sizing:border-box;transition:background .18s,border-color .18s}
.portal-theme-trigger:hover,.portal-theme-trigger[aria-expanded="true"]{background:var(--portal-raised,#f3f6fc)!important;border-color:var(--portal-primary,#3370ff)!important;color:var(--portal-primary,#3370ff)!important}
.portal-theme-trigger svg,.portal-theme-menu svg{width:18px;height:18px;flex:none}
.portal-theme-menu{position:fixed;z-index:15000;box-sizing:border-box;padding:10px;background:var(--portal-card,#fff);color:var(--portal-ink,#1f293f);border:1px solid var(--portal-border,#e0e6f1);border-radius:18px;box-shadow:0 16px 60px #09152d29;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;animation:portal-theme-appear .15s ease-out}
.portal-theme-menu *{box-sizing:border-box}
.portal-theme-heading{font-size:11px!important;font-weight:500;letter-spacing:.8px;color:var(--portal-muted,#64718a);margin:7px 10px 9px!important;line-height:1.5!important}
.portal-theme-menu button{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:var(--portal-muted,#64718a);font:inherit;font-size:14px;line-height:22px;cursor:pointer;text-align:left}
.portal-theme-menu button:hover,.portal-theme-menu button[aria-checked="true"]{background:var(--portal-raised,#f3f6fc);color:var(--portal-primary,#3370ff)}
.portal-theme-menu button i{font-style:normal;margin-left:auto;opacity:0}.portal-theme-menu button[aria-checked="true"] i{opacity:1}
.portal-theme-note{border-top:1px solid var(--portal-border,#e0e6f1);margin:8px 2px 0!important;padding:11px 8px 3px;font-size:11px!important;font-weight:400;color:var(--portal-muted,#64718a);line-height:1.8!important}
.portal-theme-trigger:focus-visible,.portal-theme-menu button:focus-visible{outline:2px solid var(--portal-primary,#3370ff)!important;outline-offset:3px}
html[data-portal-theme="dark"] .portal-theme-menu{box-shadow:0 18px 60px #0008}
@media(max-width:1400px){.portal-theme-trigger .portal-theme-label{display:none}.portal-theme-trigger{width:40px;padding:8px!important}}
@media(prefers-reduced-motion:reduce){.portal-theme-menu{animation:none}.portal-theme-trigger{transition:none}}
@keyframes portal-theme-appear{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
/* Shared public mini-program share sheet stays legible, while QR codes keep a white quiet zone. */
.portal-adaptive-logo{display:block;aspect-ratio:1176/367;line-height:0;flex:none}
.portal-adaptive-logo .portal-logo-day,.portal-adaptive-logo .portal-logo-night{width:100%;height:100%;object-fit:contain;display:block}
.portal-adaptive-logo .portal-logo-night{display:none}
html[data-portal-theme="dark"] .portal-adaptive-logo .portal-logo-day{display:none}
html[data-portal-theme="dark"] .portal-adaptive-logo .portal-logo-night{display:block}
html[data-portal-theme="dark"] .yp-mini-launch{background:#172339;border-color:#344464;color:#bed0ed;box-shadow:inset 0 1px 0 #ffffff09}
html[data-portal-theme="dark"] .yp-mini-launch svg{background:#213454;border-color:#355079;color:#a3bfff}
html[data-portal-theme="dark"] .yp-mini-launch:hover{background:#213454;color:#e6eeff;border-color:#5d7eb1}
html[data-portal-theme="dark"] .yp-mini-overlay{background:#030919ad}
html[data-portal-theme="dark"] .yp-mini-dialog{background:radial-gradient(ellipse at 15% 0%,#233454,transparent 60%),#111c30;color:#edf2ff;border-color:#344464;box-shadow:0 24px 100px #0007}
html[data-portal-theme="dark"] .yp-mini-body{background:#152139;border-color:#2d405f}
html[data-portal-theme="dark"] .yp-mini-close,html[data-portal-theme="dark"] .yp-mini-native,html[data-portal-theme="dark"] .yp-mini-empty{background:#203250;border-color:#3a5074;color:#b3cbff}
html[data-portal-theme="dark"] .yp-mini-root .yp-mini-url{background:#0c1525;border-color:#354969;color:#b7c7e4}
html[data-portal-theme="dark"] .yp-mini-eyebrow,html[data-portal-theme="dark"] .yp-mini-body p,html[data-portal-theme="dark"] .yp-mini-status,html[data-portal-theme="dark"] .yp-mini-loading{color:#a6b7d2}
html[data-portal-theme="dark"] .yp-mini-page-title{border-color:#304364;color:#adcaff}
html[data-portal-theme="dark"] .yp-mini-retry{color:#aec7ff}
