.page-loader { display: none; }
.is-page-loading .page-loader { display: flex; position: fixed; inset: 0; z-index: 100; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: #fff; color: #333; }
.page-loader img { object-fit: contain; }
.page-loader p { margin: 0; font-size: 14px; }
.page-loader-spinner { width: 26px; height: 26px; border: 2px solid #e5e5e5; border-block-start-color: #333; border-radius: 50%; animation: page-loader-spin .8s linear infinite; }
.page-loader button { border: 0; padding: 10px 16px; min-height: 44px; background: transparent; color: #666; font-size: 13px; text-decoration: underline; cursor: pointer; }
@keyframes page-loader-spin { to { transform: rotate(360deg); } }
.welcome-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 24px; border: 1px solid #e8e8e8; border-radius: 16px; background: #fff; color: #222; box-shadow: 0 16px 64px #0002; }
.welcome-dialog::backdrop { background: #0006; }
.welcome-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.welcome-heading h2 { font: 400 23px/1.3 var(--font-body); margin: 0; }
.welcome-heading h2:focus { outline: none; }
.welcome-heading .icon-button { flex: 0 0 44px; }
.welcome-dialog .welcome-intro { margin-block: 8px 20px; font-size: 14px; line-height: 1.7; color: #666; }
.welcome-option { border: 1px solid #e7e7e7; border-radius: 10px; padding: 16px; }
.welcome-option + .welcome-option { margin-block-start: 12px; }
.welcome-dialog h3 { font-size: 16px; font-weight: 600; line-height: 1.5; margin-block-end: 6px; }
.welcome-dialog p { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.welcome-option .button { margin-block-start: 14px; width: 100%; min-height: 44px; justify-content: center; padding: 10px 14px; border-radius: 7px; font-size: 14px; line-height: 1.5; text-align: center; }
.welcome-dialog .welcome-secondary { background: #fff; color: #222; border-color: #ccc; }
.welcome-dialog .welcome-hint { margin-block-start: 8px; color: #777; font-size: 12px; }
.welcome-text-button, .welcome-later, .visit-help-link { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-underline-offset: 3px; }
.welcome-text-button { display: block; min-height: 44px; padding: 10px 8px; margin-inline: auto; font-size: 13px; text-decoration: underline; }
.welcome-later { display: block; min-height: 44px; padding: 10px 20px; margin: 12px auto 0; font-size: 14px; color: #666; }
.welcome-instructions + .welcome-instructions { margin-block-start: 20px; }
.welcome-help-actions { display: grid; gap: 4px; margin-block-start: 24px; }
.welcome-help-actions .button { border-radius: 7px; justify-content: center; min-height: 44px; }
.welcome-status { margin-block-start: 12px; color: #555; }
.welcome-status:empty { display: none; }
.visit-help-link { padding: 0; text-align: start; }
.visit-help-link:hover { text-decoration: underline; }
@media (max-width: 480px) { .welcome-dialog { padding: 18px; } .welcome-heading h2 { font-size: 21px; } .welcome-option { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .page-loader-spinner { animation: none; } }
@media (forced-colors: active) { .is-page-loading .page-loader { background: Canvas; color: CanvasText; } .page-loader-spinner { border-color: GrayText; border-block-start-color: CanvasText; } }
