/* Scoped extraction from approved Guest Auth v1.1. No demo runtime. */
html.auth-root { font-family: var(--ui-font); font-size: calc(var(--ui-root-size) * var(--ui-reading-scale, 1)); color-scheme: var(--ui-color-scheme, dark); }
.guest-auth * { box-sizing: border-box; }
.guest-auth [hidden] { display: none !important; }
body.guest-auth { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 45%, var(--ui-theme-fill-soft-accent, #204b2124), transparent 48%), var(--ui-bg); color: var(--ui-text); font-size: 1rem; line-height: 1.5; }
.guest-auth button, .guest-auth input, .guest-auth select { font: inherit; }
.guest-auth button, .guest-auth a, .guest-auth input, .guest-auth select { -webkit-tap-highlight-color: transparent; }
.guest-auth a { color: var(--ui-accent); text-decoration: none; }
.guest-auth a:hover { text-decoration: underline; text-underline-offset: .2em; }
.guest-auth button { cursor: pointer; }
.guest-auth button:disabled, .guest-auth fieldset:disabled button { cursor: default; }
.guest-auth :focus-visible { outline: var(--ui-focus); outline-offset: 4px; }
.guest-auth h1, .guest-auth h2, .guest-auth p { margin: 0; }
.guest-auth svg.icon { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.guest-auth .icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.guest-auth .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.guest-auth .skip-link { position: fixed; top: .5rem; left: 1rem; z-index: 10; padding: .75rem; background: var(--ui-surface-high); transform: translateY(-200%); }
.guest-auth .skip-link:focus { transform: none; }
.guest-auth .auth-main { flex: 1 0 auto; display: grid; place-items: center; padding: 1rem clamp(1.25rem, 4vw, 5rem); }
.guest-auth .auth-layout { width: 100%; max-width: 31.5rem; }
.guest-auth .auth-card { min-width: 0; position: relative; border: 1px solid var(--ui-theme-line-control, #37432f); border-radius: 1rem; background: radial-gradient(ellipse at 100% 0, var(--ui-theme-fill-soft-accent, #344b232a), transparent 55%), linear-gradient(155deg, var(--ui-theme-fill-panel, #1b2318), var(--ui-theme-fill-panel, #11160f) 70%); box-shadow: 0 1.5rem 4rem var(--ui-theme-shadow, #0004), inset 0 1px 0 var(--ui-theme-gloss, #ffffff0b); }
.guest-auth .auth-card::before { content: ''; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--ui-theme-fill-soft-accent, #8faf5770), transparent); }
.guest-auth .card-topline { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-bottom: 1px solid var(--ui-theme-line, #2d3827); font-size: .625rem; letter-spacing: .13em; color: var(--ui-theme-ink-accent, #c0cfb5); }
.guest-auth .card-topline > span:first-child { display: inline-flex; align-items: center; gap: .45rem; }
.guest-auth .card-topline .icon { width: .95rem; height: .95rem; color: var(--ui-theme-ink-accent, #a8c88f); }
.guest-auth .card-step { color: var(--ui-theme-ink-accent, #afc0a1); font-size: .5625rem; letter-spacing: .12em; }
.guest-auth #auth-content { padding: 1.4rem 1.75rem 0; }
.guest-auth .form-heading { margin-bottom: 1.1rem; }
.guest-auth .form-heading h1, .guest-auth .status-view h1 { color: var(--ui-text); font-size: 1.625rem; line-height: 1.23; letter-spacing: -.035em; font-weight: 600; }
.guest-auth .heading-emoji { display: inline-block; font-size: 1.25rem; margin-left: .2rem; }
.guest-auth .form-heading p { color: var(--ui-muted); font-size: var(--ui-text-label); margin-top: .5rem; line-height: 1.55; }
.guest-auth fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: .875rem; }
.guest-auth .field { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.guest-auth .field > label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem; font-size: var(--ui-text-label); color: var(--ui-theme-ink-body, #d1dccc); }
.guest-auth .label-aside { font-size: .6875rem; color: var(--ui-muted); font-weight: 400; }
.guest-auth .field input:not([type="checkbox"]) { width: 100%; min-width: 0; height: 2.75rem; padding: .625rem .8rem; border: 1px solid var(--ui-theme-line-accent, #4c5b40); background: var(--ui-theme-fill-control, #0d130cf2); border-radius: var(--ui-radius-control); box-shadow: inset 0 1px 3px var(--ui-theme-shadow, #0003); color: var(--ui-text); font-size: 1rem; line-height: 1.25; transition: border-color 150ms, box-shadow 150ms; }
.guest-auth .field input::placeholder { color: var(--ui-theme-ink-muted, #97a68d); opacity: 1; font-size: .875rem; }
.guest-auth .field input:hover { border-color: var(--ui-theme-line-accent, #698354); }
.guest-auth .field input:focus { border-color: var(--ui-theme-line-accent, #6dc76c); outline: 2px solid var(--ui-theme-line-accent, #2fe36a40); outline-offset: 1px; }
.guest-auth .field input[aria-invalid="true"] { border-color: var(--ui-danger); }
.guest-auth .field-error:empty { display: none; }
.guest-auth .field-error { font-size: .8125rem; color: var(--ui-danger); }
.guest-auth .field-help, .guest-auth .caps-lock { font-size: .75rem; line-height: 1.45; color: var(--ui-muted); }
.guest-auth .field-help.is-match { color: var(--ui-accent); }
.guest-auth .field-help.is-mismatch, .guest-auth .caps-lock { color: var(--ui-warning); }
.guest-auth .password-input { position: relative; min-width: 0; }
.guest-auth .password-input input { padding-right: 3rem; }
.guest-auth .reveal-button { position: absolute; right: 0; top: 0; width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--ui-radius-control); background: transparent; color: var(--ui-theme-ink-accent, #b2c3a4); display: grid; place-items: center; }
.guest-auth .reveal-button:hover, .guest-auth .reveal-button[aria-pressed="true"] { color: var(--ui-accent); background: var(--ui-theme-fill-soft-accent, #2fe36a0a); }
.guest-auth .captcha-row { display: grid; grid-template-columns: minmax(5rem, 1fr) auto 2.75rem; gap: .5rem; min-width: 0; }
.guest-auth .captcha-sample { display: grid; place-items: center; min-width: 7rem; padding: 0 .65rem; border: 1px solid #59694b; border-radius: var(--ui-radius-control); background: repeating-linear-gradient(-18deg, #44503638 0, #44503638 1px, transparent 1px, transparent 6px), linear-gradient(125deg, #d1d9b8, #a5b68a); color: #20301a; font: italic 700 1.25rem Georgia, serif; letter-spacing: .2em; user-select: none; }
.guest-auth .refresh-button { min-width: 2.75rem; min-height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--ui-theme-line-accent, #445438); border-radius: var(--ui-radius-control); color: var(--ui-theme-ink-accent, #c0d0b2); background: linear-gradient(var(--ui-theme-fill-panel, #25311e), var(--ui-theme-fill-panel, #1c2517)); box-shadow: var(--ui-gloss); }
.guest-auth .refresh-button:hover { border-color: var(--ui-theme-line-accent, #719956); color: var(--ui-accent); }
.guest-auth .form-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .75rem; font-size: .8125rem; }
.guest-auth .check-label { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; min-height: 2rem; color: var(--ui-muted); }
.guest-auth .check-label input { accent-color: var(--ui-accent); width: 1rem; height: 1rem; margin: 0; }
.guest-auth .form-options > a { display: inline-flex; align-items: center; min-height: 2rem; }
.guest-auth .button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 2.875rem; width: 100%; border-radius: var(--ui-radius-control); border: 1px solid var(--ui-theme-line-accent, #51873d); padding: .7rem 1rem; font-size: .9375rem; font-weight: 700; line-height: 1.35; text-align: center; }
.guest-auth .button:hover { text-decoration: none; }
.guest-auth .primary { color: var(--ui-theme-on-accent, #071d0b); background: linear-gradient(180deg, var(--ui-theme-fill-accent, #a4dd7c), var(--ui-theme-fill-accent, #74bd4e)); box-shadow: inset 0 1px 0 var(--ui-theme-glow-accent, #e1ffd566), 0 .3rem 1rem var(--ui-theme-shadow, #0003); border-color: var(--ui-theme-line-accent, #94ca6a); text-shadow: 0 1px 0 var(--ui-theme-glow-accent, #bdf7a23b); }
.guest-auth .primary:hover { background: linear-gradient(180deg, var(--ui-theme-fill-accent, #b8ec91), var(--ui-theme-fill-accent, #86d35d)); }
.guest-auth .primary:active { box-shadow: inset 0 2px 3px var(--ui-theme-shadow, #0002); }
.guest-auth .primary:disabled { opacity: .7; }
.guest-auth .button[aria-busy="true"] .icon { animation: busy-spin 1s linear infinite; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
.guest-auth .form-switch { font-size: .8125rem; color: var(--ui-muted); text-align: center; margin: 1rem 0 0; padding-top: .75rem; border-top: 1px solid var(--ui-theme-line, #2d3827); }
.guest-auth .form-switch a { font-weight: 600; white-space: normal; }
.guest-auth .card-footnote { display: flex; align-items: flex-start; justify-content: center; gap: .4rem; color: var(--ui-muted); font-size: .6875rem; padding: .65rem 1.75rem .8rem; line-height: 1.5; }
.guest-auth .card-footnote .icon { width: .85rem; height: .85rem; margin-top: .08rem; }
.guest-auth .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .875rem; }
.guest-auth .form-grid input::placeholder { font-size: .8125rem; }
.guest-auth .back-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--ui-muted); font-size: .8125rem; margin: -.3rem 0 1rem; min-height: 2rem; }
.guest-auth .back-link .icon { width: 1rem; height: 1rem; }
.guest-auth .subtle-note { display: flex; align-items: flex-start; gap: .45rem; color: var(--ui-muted); font-size: .75rem; margin-top: 1rem; }
.guest-auth .subtle-note .icon { width: 1rem; height: 1rem; margin-top: .06rem; }
.guest-auth .message-slot:empty { display: none; }
.guest-auth .notice, .guest-auth .form-message { display: flex; align-items: flex-start; gap: .6rem; background: var(--ui-theme-fill-soft-accent, #2fe36a08); border: 1px solid var(--ui-theme-line-accent, #3b4f30); border-radius: .6rem; padding: .875rem 1rem; color: var(--ui-muted); font-size: .8125rem; line-height: 1.55; }
.guest-auth .notice .icon, .guest-auth .form-message .icon { width: 1.1rem; height: 1.1rem; margin-top: .12rem; color: var(--ui-theme-ink-accent, #9cce83); }
.guest-auth .notice strong { color: var(--ui-text); font-weight: 600; }
.guest-auth .notice.compact { margin-bottom: .85rem; }
.guest-auth .form-message { margin-bottom: 1rem; }
.guest-auth .form-message[data-tone="error"] { border-color: var(--ui-theme-line-danger, #874c37); background: var(--ui-theme-fill-soft-danger, #4a221f55); color: var(--ui-theme-ink-danger, #ffba9e); }
.guest-auth .form-message[data-tone="error"] .icon { color: var(--ui-danger); }
.guest-auth .form-message a { text-decoration: underline; text-underline-offset: .2em; }
.guest-auth .status-view { padding: .9rem 0 .3rem; text-align: center; }
.guest-auth .status-illustration { position: relative; display: grid; place-items: center; margin: 0 auto 1.5rem; width: 5rem; height: 5rem; border-radius: 1.4rem; border: 1px solid var(--ui-theme-line-accent, #557d3c); color: var(--ui-theme-ink-accent, #b4e286); background: radial-gradient(ellipse at 25% 15%, var(--ui-theme-fill-soft-accent, #587e333d), transparent 80%), linear-gradient(var(--ui-theme-fill-soft-accent, #28391d), var(--ui-theme-fill-panel, #192313)); box-shadow: inset 0 1px 0 var(--ui-theme-glow-accent, #f0ffd61a), 0 0 0 .5rem var(--ui-theme-glow-accent, #2fe36a05), 0 .6rem 1.5rem var(--ui-theme-shadow, #0002); }
.guest-auth .status-illustration .icon { width: 2.5rem; height: 2.5rem; stroke-width: 1.4; }
.guest-auth .status-spark { position: absolute; width: .4rem; height: .4rem; right: -.15rem; top: -.1rem; border-radius: 50%; background: var(--ui-accent); box-shadow: 0 0 .8rem var(--ui-theme-glow-accent, #2fe36a44); }
.guest-auth .status-eyebrow { color: var(--ui-theme-ink-accent, #adc397); font-size: .625rem; letter-spacing: .15em; margin-bottom: .6rem; }
.guest-auth .status-view > p:not(.status-eyebrow) { color: var(--ui-muted); font-size: .875rem; margin: .85rem auto 1.25rem; max-width: 37ch; line-height: 1.7; }
.guest-auth .status-view .notice { text-align: left; margin-bottom: 1.25rem; }
.guest-auth .status-view .button { margin-top: .25rem; }
.guest-auth .status-view.is-warning .status-illustration { border-color: var(--ui-theme-line-warning, #8b6135); color: var(--ui-theme-ink-warning, #f4c486); background: linear-gradient(var(--ui-theme-fill-soft-warning, #392e1f), var(--ui-theme-fill-panel, #211d15)); }
.guest-auth .status-view.is-warning .status-spark { background: var(--ui-warning); box-shadow: none; }
.guest-auth .status-view.is-warning .status-eyebrow { color: var(--ui-warning); }
.guest-auth .status-secondary { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .75rem; font-size: .8125rem; color: var(--ui-muted); }
.guest-auth .support-note { text-align: left; margin: 0 0 1.25rem; padding-left: .85rem; border-left: 2px solid var(--ui-theme-line-accent, #506c37); font-size: .8125rem; }
.guest-auth .support-note strong { font-weight: 600; color: var(--ui-theme-ink-body, #d1dec6); }
.guest-auth .support-note p { color: var(--ui-muted); margin-top: .25rem; line-height: 1.6; }
.guest-auth .no-script { text-align: center; color: var(--ui-warning); padding: 0 1.25rem 1rem; font-size: .8125rem; }
@media (min-width: 2200px) {
.guest-auth .auth-layout { max-width: 33rem; } }
@media (max-height: 740px) and (min-width: 1001px) {
.guest-auth #auth-content { padding-top: 1.1rem; }
.guest-auth fieldset { gap: .8rem; }
.guest-auth .card-footnote { padding-top: .8rem; padding-bottom: .8rem; } }
@media (max-width: 600px) {
.guest-auth .auth-main { padding: 1.25rem 1rem; }
.guest-auth .auth-card { border-radius: .875rem; }
.guest-auth .card-topline { padding: .9rem 1.25rem; }
.guest-auth #auth-content { padding: 1.25rem 1.25rem 0; }
.guest-auth .form-heading h1, .guest-auth .status-view h1 { font-size: 1.5rem; }
.guest-auth .card-footnote { padding-inline: 1.25rem; font-size: .6875rem; }
.guest-auth .form-grid { grid-template-columns: minmax(0, 1fr); }
.guest-auth .form-grid input::placeholder { font-size: .875rem; }
.guest-auth .form-options { font-size: .8125rem; }
.guest-auth .check-label, .guest-auth .form-options > a { min-height: 2.75rem; } }
@media (max-width: 359px) {
.guest-auth .auth-main { padding-inline: .6rem; }
.guest-auth #auth-content { padding-inline: 1rem; }
.guest-auth .card-topline { padding-inline: 1rem; }
.guest-auth .captcha-row { gap: .375rem; grid-template-columns: minmax(0, 1fr) auto 2.75rem; }
.guest-auth .captcha-sample { min-width: 5.5rem; font-size: 1.125rem; letter-spacing: .1em; }
.guest-auth .card-step { display: none; }
.guest-auth .form-options { gap: .25rem; } }
.guest-auth .auth-card { container-type: inline-size; container-name: authcard; }
@container authcard (max-width: 25rem) {
.guest-auth .form-grid { grid-template-columns: minmax(0, 1fr); } }
@container authcard (max-width: 19rem) {
.guest-auth .captcha-row { display: flex; flex-wrap: wrap; }
.guest-auth .captcha-row input { flex: 1 1 100%; }
.guest-auth .captcha-sample { flex: 1 0 7rem; min-height: 2.75rem; min-width: 0; }
.guest-auth .captcha-row .refresh-button { flex: 0 0 2.75rem; margin-left: auto; }
.guest-auth .card-step { display: none; } }
@media (prefers-reduced-motion: reduce) {
.guest-auth *, .guest-auth *::before, .guest-auth *::after { animation: none; transition: none; scroll-behavior: auto; } }
/* Real captcha and existing validation hooks. */
.guest-auth #auth-content { padding-bottom: 1.5rem; }
.guest-auth #cards { min-width: 0; overflow-wrap: anywhere; }
.guest-auth .field input:not([type="checkbox"]) { height: auto; min-height: 2.75rem; }
.guest-auth .captcha-row img { align-self: center; max-width: 100%; border: 1px solid var(--ui-border-control); border-radius: var(--ui-radius-control); }
.guest-auth .secondary { color: var(--ui-muted); background: linear-gradient(var(--ui-theme-fill-panel, #25311e), var(--ui-theme-fill-panel, #1c2517)); border-color: var(--ui-theme-line-accent, #445438); }
.guest-auth .field input.field-valid { border-color: var(--ui-accent); }
.guest-auth .field input.field-invalid, .guest-auth .field input[aria-invalid="true"] { border-color: var(--ui-danger); }
.guest-auth .error, .guest-auth .field-error { color: var(--ui-danger); }
.guest-auth .success { color: var(--ui-accent); }
.guest-auth .notice + .support-note { margin-top: 1rem; }
.guest-auth .status-illustration { font-size: 2.5rem; }
@container authcard (max-width: 19rem) { .guest-auth .captcha-row img { flex: 0 0 auto; } }
body.guest-auth:not(.auth-enhanced) [data-auth-reveal],
body.guest-auth:not(.auth-enhanced) [data-auth-refresh] { display: none; }
/* Toolbar stays in flow even on short screens and at large text sizes. */
.guest-auth .auth-toolbar { display: flex; justify-content: flex-end; flex: 0 0 auto; padding: .75rem clamp(1rem, 4vw, 5rem) 0; }
.guest-auth .auth-toolbar:has([data-ui-theme-toggle][hidden]) { display: none; }
.guest-auth .ui-theme-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: max(44px, 2.75rem); min-height: max(44px, 2.75rem); border: 1px solid var(--ui-border-control); border-radius: var(--ui-radius-control); color: var(--ui-muted); background: var(--ui-surface); padding: .5rem; }
.guest-auth .ui-theme-toggle:hover, .guest-auth .ui-theme-toggle:active { color: var(--ui-accent); background: var(--ui-accent-soft); }
.guest-auth .ui-theme-toggle [data-ui-theme-icon="moon"] { display: none; }
html[data-ui-theme="light"] .guest-auth .ui-theme-toggle [data-ui-theme-icon="sun"] { display: none; }
html[data-ui-theme="light"] .guest-auth .ui-theme-toggle [data-ui-theme-icon="moon"] { display: block; }
html.auth-root[data-ui-theme="light"] .field input:autofill { background-color: var(--ui-theme-fill-control); color: var(--ui-text); }
html.auth-root[data-ui-theme="light"] .field input:-webkit-autofill { -webkit-text-fill-color: var(--ui-text); box-shadow: inset 0 0 0 1000px var(--ui-theme-fill-control); caret-color: var(--ui-text); }
html.auth-root[data-ui-theme="light"] .guest-auth .primary:hover:not(:disabled) { background: var(--ui-primary-hover); border-color: var(--ui-primary-hover); }
html.auth-root[data-ui-theme="light"] .guest-auth .primary:active:not(:disabled) { background: var(--ui-primary-active); border-color: var(--ui-primary-active); }
