:root { color-scheme: light; --bg:#f1f4f3; --paper:#fff; --ink:#20322f; --muted:#596d63; --line:#cbd6d0; --accent:#206354; --bad:#b74743; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); background:var(--bg); font:13px/1.65 "Microsoft YaHei","PingFang SC","Segoe UI",sans-serif; }
.password-gate { min-height:100svh; display:grid; place-items:center; padding:24px; }
.password-panel { width:100%; max-width:380px; padding:32px; background:var(--paper); border-radius:14px; }
h1 { margin:0 0 8px; font-size:22px; line-height:1.4; }
.password-panel>p { margin:0 0 28px; color:var(--muted); }
label { display:block; margin-bottom:8px; font-weight:600; }
input,button { width:100%; min-height:44px; border:1px solid var(--line); border-radius:6px; font:inherit; }
input { padding:10px 12px; background:var(--paper); color:var(--ink); caret-color:var(--accent); }
input[aria-invalid="true"] { border-color:var(--bad); }
button { padding:10px 16px; background:var(--accent); color:#fff; border-color:var(--accent); cursor:pointer; }
button:hover { background:#153f39; }
button:disabled,input:disabled { opacity:.65; cursor:wait; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
::selection { background:#e2eee6; color:var(--ink); }
#password-error { min-height:20px; margin:8px 0 12px; color:var(--bad); font-size:12px; }
@media(max-width:420px) { .password-gate { padding:16px; } .password-panel { padding:28px 24px; } }
@media(prefers-color-scheme:dark) { :root { color-scheme:dark; --bg:#17212a; --paper:#202e39; --ink:#edf4f2; --muted:#bdcdc7; --line:#62786f; --accent:#206354; --bad:#ffb3ae; } }
#dashboard-refresh-preview{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:10;pointer-events:none;background:var(--bg)}
.refresh-preview-pending body>.password-gate,.refresh-preview-active body>.password-gate{visibility:hidden}
#refresh-status{position:fixed;right:20px;bottom:16px;z-index:11;display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--paper);color:var(--muted);border:1px solid var(--line);border-radius:6px;font-size:12px;animation:refresh-status-reveal 0s 1.5s both}
#refresh-status.has-error{animation:none;color:var(--bad)}
#refresh-status button{width:auto;min-height:36px;padding:4px 12px}
@keyframes refresh-status-reveal{from{visibility:hidden}to{visibility:visible}}
