:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #21314e; background: #f3f6fc; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button,input { font: inherit; }
button { min-height: 44px; cursor: pointer; border-radius: 10px; border: 1px solid #d9e2f0; background: white; color: #263b65; padding: 10px 16px; font-size: 15px; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #91b1ff; outline-offset: 3px; }
.entry { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; justify-items: center; padding: max(28px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); }
.login-card { width: min(100%,460px); background: white; border: 1px solid #e2e8f3; border-radius: 22px; padding: 34px; box-shadow: 0 14px 44px #223d6c0c; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #273b61; color: white; font: 700 23px/1 Consolas,monospace; letter-spacing: -2px; padding-right: 2px; }
.eyebrow { margin: 24px 0 10px; color: #6e7f9b; font-size: 10px; letter-spacing: 1.8px; }
h1 { margin: 0; font-size: 29px; letter-spacing: -.7px; line-height: 1.4; }
.intro { color: #6a7890; line-height: 1.8; font-size: 15px; margin: 13px 0 26px; }
label { display: block; font-size: 13px; margin-bottom: 9px; font-weight: 650; }
.password-field { display: flex; align-items: stretch; background: #fafbfe; border: 1px solid #d7e0ef; border-radius: 11px; overflow: hidden; }
input { width: 100%; min-width: 0; height: 48px; padding: 12px 14px; font-size: 16px; border: 0; border-radius: 0; background: transparent; color: #243554; }
.text-button { border: 0; border-radius: 0; background: transparent; color: #59729a; font-size: 13px; flex-shrink: 0; }
.primary { width: 100%; background: #315ed5; color: #fff; border-color: #315ed5; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; font-weight: 650; }
.form-status { font-size: 13px; line-height: 1.65; color: #a03c40; margin: 10px 0 0; min-height: 21px; overflow-wrap: anywhere; }
.cache-line { display: flex; align-items: baseline; gap: 7px; color: #677893; font-size: 12px; line-height: 1.7; padding-top: 18px; border-top: 1px solid #edf0f6; margin-top: 13px; }
.status-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #8294b2; }
.cache-ready .status-dot { background: #38826b; }
.small { font-size: 12px; color: #677893; line-height: 1.65; }
.small:empty { display: none; }
.secondary { width: 100%; margin-top: 16px; }
.help { margin-top: 18px; font-size: 12px; color: #627390; line-height: 1.8; }
.help summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: #385787; }
.help p { margin: 8px 0 12px; }
.privacy-note { font-size: 11px; color: #8591a5; line-height: 1.8; margin: 15px 0 0; }
.entry-footer { text-align: center; margin: 22px 0 0; font-size: 11px; letter-spacing: .5px; color: #8591a5; }
.reader { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0,1fr); height: 100vh; height: 100dvh; background: white; }
.reader-bar { display: flex; align-items: center; gap: 12px; background: #f3f6fc; border-bottom: 1px solid #dfe6f1; padding: calc(4px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 4px max(14px,env(safe-area-inset-left)); }
.reader-bar strong { font-size: 13px; }
.reader-bar span { font-size: 11px; color: #7685a0; }
.reader-bar button { margin-left: auto; min-width: 62px; border: 0; background: transparent; color: #315ed5; }
.frame-host { min-height: 0; padding-bottom: env(safe-area-inset-bottom); }
.frame-host iframe { width: 100%; height: 100%; border: 0; display: block; background: white; }
body.is-reading { overflow: hidden; }
@media (max-width:400px) { .login-card { padding: 25px; border-radius: 18px; } h1 { font-size: 26px; } .entry { padding-inline: 14px; } .reader-bar span { display: none; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; } }
