/* Isolated additions: existing marketing CSS stays unchanged. */
.auth-controls { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.account-menu { position:relative; flex-shrink:0; }
.account-avatar { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex-shrink:0; padding:0; border:0; border-radius:50%; background:#1e40af; color:#fff; font-family:inherit; font-size:12px; font-weight:700; letter-spacing:.03em; cursor:pointer; }
.account-menu-popup { position:absolute; right:0; top:calc(100% + 8px); z-index:20; min-width:160px; max-width:calc(100vw - 32px); padding:6px; border:1px solid var(--border); border-radius:8px; background:var(--surface); box-shadow:0 8px 24px rgb(0 0 0 / 25%); }
.account-menu-popup button { display:block; width:100%; min-height:44px; padding:8px 12px; border:0; border-radius:4px; background:transparent; color:var(--text); font:inherit; text-align:start; cursor:pointer; }
.account-menu-popup button:hover, .account-menu-popup button:focus-visible { background:var(--bg-alt); }
.account-avatar:focus-visible, .account-menu-popup button:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
.auth-button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); padding: 8px 10px; font: inherit; cursor: pointer; }
.auth-button:focus-visible, .auth-dialog a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.auth-error { position: absolute; right: 20px; top: 100%; max-width: min(90vw,400px); padding: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 8px; }
@media (max-width: 800px) { .header-inner { gap: 10px; } .site-nav { gap: 12px; } .auth-button-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (max-width: 360px) { .header-inner { gap: 6px; } .auth-button { padding: 6px; } }

.auth-input { display:block; width:100%; box-sizing:border-box; margin:10px 0 16px; padding:12px; border:1px solid #586682; border-radius:8px; background:#0b1220; color:#fff; font:inherit; }
.auth-input:focus-visible { outline:2px solid #91b8ff; outline-offset:2px; }

.account-menu-popup a { display:block; min-height:44px; box-sizing:border-box; padding:8px 12px; border-radius:4px; color:var(--text); text-decoration:none; }
.account-menu-popup a:hover, .account-menu-popup a:focus-visible { background:var(--bg-alt); }
.account-menu-popup a:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
.settings-page { min-height:65vh; padding-top:40px; padding-bottom:64px; }
.settings-page h1 { margin-top:24px; }
.settings-page form { max-width:680px; }
.settings-section { margin:24px 0; padding:24px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
.settings-section h2 { margin-top:0; }
.settings-section p { color:var(--muted); }
.settings-section input { max-width:100%; }

.provider-badge { display: inline-grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.provider-badge img { display: block; width: 18px; height: 18px; object-fit: contain; }
.provider-badge--google img { width: 28px; height: 28px; }
.provider-badge--facebook { background: #0866ff; }
.provider-badge--facebook img { filter: brightness(0) invert(1); }

/* Login dialog: a compact, consistent panel at mobile and desktop sizes. */
.auth-dialog { position: fixed; box-sizing: border-box; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 32px 28px 24px; border: 1px solid #34425c; border-radius: 20px; background: linear-gradient(160deg, #17243d 0%, #101a2e 55%, #0d1728 100%); color: var(--text); box-shadow: 0 24px 80px #0008; }
.auth-dialog::backdrop { background: rgb(3 8 18 / 76%); backdrop-filter: blur(5px); }
.auth-dialog h2 { margin: 0; padding: 0 24px; text-align: center; font-size: 26px; line-height: 1.25; letter-spacing: -.5px; }
.auth-dialog .auth-description { margin: 10px 0 24px; text-align: center; color: #b9c6db; font-size: 14px; line-height: 1.5; }
.auth-dialog .auth-provider-list { display: grid; margin: 0; gap: 10px; }
.auth-provider-list > .btn { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; min-height: 54px; padding: 12px 16px; border: 1px solid #34435e; border-radius: 12px; background: #142139; color: #edf3ff; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; text-decoration: none; transition: background-color .15s, border-color .15s; }
.auth-provider-list > .btn > span:last-child { text-align: left; }
.auth-provider-list > .btn:hover:not(:disabled) { background: #1c2e4c; border-color: #6685b4; }
.auth-provider-list > .btn:focus-visible { outline: 2px solid #8bb8ff; outline-offset: 3px; }
.auth-provider-list > button:disabled { opacity: .5; cursor: not-allowed; }
.auth-dialog .auth-footnote { margin: 20px 0 0; text-align: center; color: #a6b5cd; font-size: 12px; line-height: 1.5; }
.auth-dialog-close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #bac7dc; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.auth-dialog-close:hover { background: #263650; color: #fff; }
.auth-dialog-close:focus-visible { outline: 2px solid #8bb8ff; outline-offset: 2px; }
@media (max-width: 360px) { .auth-dialog { padding: 28px 18px 22px; } .auth-provider-list > .btn { padding: 12px; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .auth-provider-list > .btn { transition: none; } }
