.auth-mail-help{margin-top:20px;border-top:1px solid var(--line);padding-top:18px;color:var(--ink);text-align:left}.auth-mail-help summary{cursor:pointer;font-weight:600;color:var(--ink)}.auth-mail-help p{font-size:14px;line-height:1.6}.auth-mail-help button{width:100%;white-space:normal;min-height:48px}.auth-mail-help button:disabled{opacity:.55;cursor:wait}
.auth-language{display:flex;justify-content:center;gap:8px;margin:0 0 24px}.auth-language button,.language-choice button{border:1px solid var(--line);border-radius:12px;padding:11px 18px;background:var(--surface);color:var(--ink);font:600 14px inherit;cursor:pointer}.auth-language button[aria-pressed=true],.language-choice button[aria-pressed=true]{background:var(--hero);color:var(--on-dark);border-color:var(--brand)}.auth-mode{display:flex;background:var(--surface-2);border-radius:14px;padding:4px;margin:20px 0}.auth-mode button{flex:1;padding:12px;border:0;border-radius:11px;color:var(--ink);background:transparent;font:600 14px inherit;cursor:pointer}.auth-mode button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 2px 7px var(--shadow-1)}.auth-card #auth-login-form{display:grid;gap:14px}.auth-success{padding:16px;border:1px solid var(--line);background:var(--surface-2);border-radius:14px;color:var(--ink);line-height:1.6}.language-choice{display:flex;gap:8px}.online-search-heading{display:flex;gap:16px;justify-content:space-between;align-items:center}.online-search-heading p{margin:5px 0;color:var(--muted);font-size:13px}.online-search-heading button{flex-shrink:0}#diary-online{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}.online-attribution{margin-top:16px;font-size:11px}.online-product{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:16px 4px;background:transparent;border:0;border-bottom:1px solid var(--line);text-align:left;color:var(--ink);cursor:pointer}.online-product strong,.online-product small{display:block}.online-product small{margin-top:5px;color:var(--muted);font-size:12px}.online-product>span:last-child{font-size:22px;color:var(--brand)}.online-product strong{font-size:14px}.diary-product-source{font-size:10px;color:var(--muted);margin-left:5px}.diary-source-note{font-size:11px;color:var(--muted);line-height:1.5}@media(max-width:480px){.online-search-heading{align-items:stretch;flex-direction:column}.auth-card{padding:24px!important}.auth-language{margin-bottom:18px}}

/* Auth owns its logo; the signed-in app header returns after login. */
body.auth-locked > .topbar{display:none!important}
body.auth-locked .auth-screen{min-height:100dvh;box-sizing:border-box}
.auth-loading{display:grid;place-items:center;min-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:32px 24px;background:var(--bg);text-align:center}
.auth-loading-content{width:min(100%,380px);display:flex;flex-direction:column;align-items:center;gap:24px}
.auth-loading-content>img{display:block;width:190px;max-width:75%;height:auto}
.auth-loading h1{font-size:22px;line-height:1.35;letter-spacing:-.5px;margin:0}
.auth-loading p{font-size:14px;line-height:1.65;color:var(--muted);margin:10px 0 0}
.auth-loading-spinner{width:28px;height:28px;border:3px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:auth-spin .9s linear infinite}
.auth-loading-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.auth-loading-actions button{min-height:44px;padding:12px 20px;border-radius:14px}
@keyframes auth-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.auth-loading-spinner{animation:none}}

.auth-price-note{padding:16px;background:var(--surface-2);border-radius:15px;margin:16px 0;color:var(--ink)}.auth-price-note strong{font-size:19px}.auth-price-note p{font-size:13px;line-height:1.65;margin:8px 0}.auth-price-note a{font-size:13px}.trust-links{display:flex;flex-wrap:wrap;gap:12px 20px;line-height:1.6}.trust-links a{font-size:12px;text-decoration:underline;text-underline-offset:3px}.auth-card>.trust-links{margin-top:22px}
.auth-beta-card{margin:22px 0;padding:20px;text-align:left;background:var(--surface-2);border:1px solid var(--line);border-radius:18px;color:var(--ink)}
.auth-beta-badge{display:inline-block;padding:5px 10px;border-radius:99px;background:var(--lime-soft);color:var(--ink);font-size:12px;font-weight:700;letter-spacing:.03em}
.auth-beta-card h2{font-size:20px;line-height:1.3;margin:13px 0 8px}.auth-beta-card p{font-size:14px;line-height:1.65;margin:8px 0}.auth-beta-card a{color:var(--brand);font-weight:650;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.auth-beta-card a:focus-visible{outline:3px solid var(--brand);outline-offset:4px}

.auth-activated{margin:22px 0;padding:20px;text-align:left;background:var(--surface-2);border:1px solid var(--brand);border-radius:18px;color:var(--ink)}.auth-activated .auth-beta-badge{background:var(--lime);color:var(--on-accent)}
.auth-activated h2{font-size:20px;line-height:1.3;margin:13px 0 8px}.auth-activated p{font-size:14px;line-height:1.65;margin:8px 0}
.auth-activated-link{display:flex;justify-content:center;align-items:center;min-height:48px;margin:14px 0 6px;padding:12px 16px;border-radius:14px;background:var(--hero);color:var(--on-dark)!important;font-size:15px;font-weight:700;text-decoration:none!important}.auth-activated-link:hover{background:var(--hero-2)}
.auth-activated #auth-activated-close{margin-top:4px;padding:8px 0;font-size:13px}
body.auth-locked .auth-card .auth-activated{background:var(--surface-2)}
/* Login (1.5.0): dawn photo behind everything (also under the status bar), light logo on top, frosted card, one line below. */
body.auth-locked{background:var(--hero)!important}
body.auth-locked .auth-screen{position:relative;isolation:isolate;justify-content:flex-start;gap:0;min-height:100dvh;padding:max(28px,calc(env(safe-area-inset-top) + 8px)) 20px max(32px,calc(env(safe-area-inset-bottom) + 20px))!important;background:none!important}
body.auth-locked .auth-screen::before{content:"";position:fixed;inset:0;z-index:-1;background-color:var(--hero);background-image:linear-gradient(180deg,var(--veil) 0%,var(--hero-image-overlay) 62%,var(--scrim) 100%),url(assets/hero/login-dawn.webp);background-position:center top,center;background-size:cover,cover;background-repeat:no-repeat;pointer-events:none}
@media(max-width:800px){body.auth-locked .auth-screen::before{background-image:linear-gradient(180deg,var(--veil) 0%,var(--hero-image-overlay) 62%,var(--scrim) 100%),url(assets/hero/login-dawn-small.webp)}}
.auth-hero-logo{width:200px;max-width:62%;aspect-ratio:3/1;margin:14px auto 22px;background:url(icons/livufit-logo-dark.png) center/contain no-repeat;filter:drop-shadow(0 2px 12px var(--scrim))}
body.auth-locked .auth-card{background:var(--frost)!important;border:1px solid var(--glass-2)!important;border-radius:24px!important;box-shadow:0 24px 60px var(--shadow-3)!important;-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);padding:26px 24px!important}
body.auth-locked .auth-card h1{font-size:30px;line-height:1.12;letter-spacing:-1px;margin:6px 0 10px}
body.auth-locked .auth-card .eyebrow{color:var(--brand)}
body.auth-locked .auth-card .auth-language{margin-bottom:18px}
body.auth-locked .auth-card .auth-language button{background:var(--surface-2)}
body.auth-locked .auth-card .auth-language button[aria-pressed=true]{background:var(--hero);color:var(--on-dark);border-color:var(--hero)}
body.auth-locked .auth-card input{background:var(--surface)}
body.auth-locked .auth-card .auth-beta-card{background:var(--surface-2);border-color:var(--line)}
body.auth-locked .auth-footer{margin:26px 0 0;color:var(--on-dark)!important;font-size:15px;font-weight:650;letter-spacing:-.2px;text-align:center;text-shadow:0 1px 10px var(--scrim)}
@media(min-width:721px){body.auth-locked .auth-screen{justify-content:center}.auth-hero-logo{width:230px}}
.invite-dialog{box-sizing:border-box;width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 28px);margin:auto;border:1px solid var(--line);border-radius:28px;padding:30px;overflow-y:auto;color:var(--ink);background:var(--surface);text-align:left}
.invite-dialog #invite-title:focus{outline:none}.invite-dialog a{color:var(--brand);text-underline-offset:3px}
.invite-dialog #invite-error:not([hidden]) + #invite-retry{margin-top:16px}
.invite-dialog::backdrop{background:var(--surface-2)}.invite-dialog h1{font-size:30px;line-height:1.2;margin:18px 0}.invite-dialog p{line-height:1.6}.invite-dialog .auth-lockup{display:block;width:165px;height:auto;margin:0 0 24px}.invite-dialog form{display:grid;gap:14px}.invite-dialog form[hidden]{display:none}.invite-dialog label{display:grid;gap:8px;font-weight:600}.invite-dialog input{box-sizing:border-box;width:100%;min-height:48px;min-width:0}.invite-dialog input[readonly]{background:var(--surface-2);color:var(--ink)}.invite-dialog .primary{width:100%;min-height:52px}.invite-dialog #invite-password-help{margin:0}.invite-dialog #invite-show{justify-self:start;min-height:44px}.invite-dialog .trust-links{margin:20px 0}.invite-dialog #invite-cancel{min-height:44px}.invite-dialog [disabled]{opacity:.6}.invite-dialog .auth-language button{min-height:44px}
