/* Scoped account recovery UI; uses the application's chosen font and theme. */
@layer sppk-account-recovery {
html .sppk-recovery-ui {
    --recovery-bg: #fff; --recovery-soft: #f7f7f7; --recovery-text: #363636;
    --recovery-muted: #686868; --recovery-line: #dedede; --recovery-primary: #292929;
    --recovery-on-primary: #fff; --recovery-error: #a63340;
    font: 14px/1.6 var(--global-font, system-ui) !important;
    color: var(--recovery-text) !important;
}
html.dark .sppk-recovery-ui, html body.dark .sppk-recovery-ui {
    --recovery-bg: #202020; --recovery-soft: #292929; --recovery-text: #ededed;
    --recovery-muted: #b5b5b5; --recovery-line: #424242; --recovery-primary: #ededed;
    --recovery-on-primary: #252525; --recovery-error: #ff9ba4;
}
html .sppk-recovery-ui *, html .sppk-recovery-ui { box-sizing: border-box !important; }
html .sppk-recovery-ui [hidden] { display: none !important; }
html .sppk-recovery-ui p { margin: 0 0 12px !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.6 !important; color: var(--recovery-text) !important; -webkit-text-fill-color: currentColor !important; overflow-wrap: anywhere; }
html .sppk-recovery-ui strong { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
html .sppk-recovery-ui summary { cursor: pointer; color: var(--recovery-text) !important; }
html .sppk-recovery-help { margin: 0 0 22px !important; }
html .sppk-recovery-help details[open] summary { margin-bottom: 12px; }
html .sppk-recovery-help p { font-size: 13px !important; color: var(--recovery-muted) !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel {
    width: 100% !important; min-width: 0 !important;
    margin: 0 0 20px !important; padding: 0 !important;
    border: 1px solid var(--recovery-line) !important; border-radius: 10px !important;
    background: var(--recovery-bg) !important; box-shadow: none !important;
    container: recovery-information / inline-size;
}
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel > summary {
    display: flex !important; flex-wrap: wrap !important; align-items: center !important;
    justify-content: space-between !important; gap: 10px 20px !important;
    width: 100% !important; margin: 0 !important; padding: 14px 18px !important;
    list-style: none !important; border: 0 !important;
    color: var(--recovery-text) !important; text-transform: none !important;
}
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel > summary::-webkit-details-marker { display: none !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel > summary::marker { content: '' !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel > summary::before, html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel > summary::after,
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-summary-title::before { content: none !important; display: none !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel[open] > summary { border-bottom: 1px solid var(--recovery-line) !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-summary-title {
    display: inline-flex !important; align-items: center !important; gap: 8px !important;
    min-width: 0 !important; margin: 0 !important; padding: 0 !important;
    color: var(--recovery-text) !important; font-size: 14px !important; font-weight: 600 !important;
    line-height: 1.5 !important; letter-spacing: normal !important;
}
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-chevron {
    flex: 0 0 14px !important; width: 14px !important; height: 14px !important;
    color: inherit !important; transform: none !important;
}
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel[open] .sppk-recovery-chevron { transform: rotate(90deg) !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel > summary > [data-recovery-owner-status] {
    display: inline-block !important; flex: 0 1 auto !important; max-width: 100% !important;
    margin: 0 !important; padding: 4px 8px !important; border-radius: 6px !important;
    background: var(--recovery-soft) !important; color: var(--recovery-muted) !important;
    font-size: 12px !important; font-weight: 400 !important; line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
}
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-panel-body { margin: 0 !important; padding: 16px 18px 18px !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-instructions { display: grid !important; gap: 7px !important; margin: 0 !important; padding: 0 !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-instructions p { margin: 0 !important; padding: 0 !important; font-size: 14px !important; line-height: 1.65 !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-owner-row {
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important; gap: 16px 24px !important;
    margin: 16px 0 0 !important; padding: 16px 0 0 !important;
    border-top: 1px solid var(--recovery-line) !important;
}
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-owner-row > div { min-width: 0 !important; margin: 0 !important; padding: 0 !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-owner-row > div > strong { display: block !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.5 !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-owner-row p { max-width: 76ch !important; margin: 6px 0 0 !important; padding: 0 !important; font-size: 13px !important; line-height: 1.65 !important; color: var(--recovery-muted) !important; }
html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-owner-row > button { align-self: center !important; justify-self: end !important; margin: 0 !important; }
@container recovery-information (max-width: 640px) {
    html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-owner-row { grid-template-columns: minmax(0, 1fr) !important; }
    html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel .sppk-recovery-owner-row > button { justify-self: start !important; }
}
@container recovery-information (max-width: 420px) {
    html body#sppkAppShell.sppk-app-shell #sppkPageContent #sppkAccessControl .sppk-recovery-panel > summary > [data-recovery-owner-status] { margin-left: 22px !important; }
}
html .sppk-recovery-ui .sppk-recovery-meta { font-size: 12px !important; color: var(--recovery-muted) !important; }
html .sppk-recovery-ui .sppk-recovery-error { color: var(--recovery-error) !important; -webkit-text-fill-color: currentColor !important; }
html dialog.sppk-recovery-dialog { position: fixed !important; inset: 0 !important; width: min(560px, calc(100vw - 32px)) !important; max-width: calc(100vw - 24px) !important; max-height: calc(100dvh - 32px) !important; margin: auto !important; padding: 0 !important; border: 1px solid var(--recovery-line) !important; border-radius: 14px !important; background: var(--recovery-bg) !important; box-shadow: 0 20px 70px #0004 !important; overflow: hidden !important; }
html dialog.sppk-recovery-dialog:not([open]) { display: none !important; }
html dialog.sppk-recovery-dialog[open] { display: flex !important; flex-direction: column !important; }
html dialog.sppk-recovery-dialog::backdrop { background: #0008; }
html .sppk-recovery-dialog > header { display: flex !important; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px !important; border-bottom: 1px solid var(--recovery-line); }
html .sppk-recovery-dialog h2 { margin: 0 !important; color: var(--recovery-text) !important; -webkit-text-fill-color: currentColor !important; font: 600 18px/1.4 var(--global-font, system-ui) !important; text-shadow: none !important; text-transform: none !important; }
html .sppk-recovery-close { flex: 0 0 34px !important; display: grid !important; place-items: center; width: 34px !important; height: 34px !important; padding: 0 !important; border: 0 !important; border-radius: 7px !important; background: transparent !important; color: var(--recovery-text) !important; font-size: 24px !important; cursor: pointer; }
html .sppk-recovery-dialog-body { padding: 20px !important; overflow-y: auto !important; overscroll-behavior: contain; min-height: 0 !important; }
html .sppk-recovery-dialog form { display: grid !important; gap: 16px !important; margin: 0 !important; max-width: 100% !important; }
html .sppk-recovery-ui .sppk-recovery-field { display: flex !important; flex-direction: column !important; gap: 6px !important; margin: 0 !important; color: var(--recovery-text) !important; font: 500 14px/1.6 var(--global-font, system-ui) !important; }
html .sppk-recovery-field :is(input, textarea) { display: block !important; width: 100% !important; min-width: 0 !important; min-height: 42px !important; padding: 9px 11px !important; border: 1px solid var(--recovery-line) !important; border-radius: 8px !important; background: var(--recovery-bg) !important; color: var(--recovery-text) !important; -webkit-text-fill-color: currentColor !important; font: 400 14px/1.5 var(--global-font, system-ui) !important; box-shadow: none !important; }
html .sppk-recovery-field textarea { resize: vertical; min-height: 88px !important; overflow-wrap: anywhere; font-size: 12px !important; }
html .sppk-recovery-ui .sppk-recovery-check { display: flex !important; align-items: flex-start !important; gap: 10px !important; font-size: 13px !important; color: var(--recovery-text) !important; }
html .sppk-recovery-check input { flex: 0 0 17px !important; width: 17px !important; height: 17px !important; margin: 3px 0 0 !important; accent-color: var(--recovery-text); }
html .sppk-recovery-ui .sppk-recovery-form-actions { display: flex !important; justify-content: flex-end !important; align-items: center !important; flex-wrap: wrap !important; gap: 8px !important; margin-top: 14px !important; }
html .sppk-recovery-ui .sppk-recovery-button { display: inline-flex !important; align-items: center; justify-content: center; min-height: 38px !important; max-width: 100% !important; padding: 8px 12px !important; border: 1px solid var(--recovery-line) !important; border-radius: 8px !important; background: var(--recovery-bg) !important; color: var(--recovery-text) !important; -webkit-text-fill-color: currentColor !important; font: 500 13px/1.5 var(--global-font, system-ui) !important; cursor: pointer; }
html .sppk-recovery-ui .sppk-recovery-button:hover { background: var(--recovery-soft) !important; }
html .sppk-recovery-ui .sppk-recovery-button.is-primary { background: var(--recovery-primary) !important; color: var(--recovery-on-primary) !important; }
html .sppk-recovery-ui button:disabled { opacity: .55; cursor: wait; }
html .sppk-recovery-ui :is(button,input,textarea,summary):focus-visible { outline: 2px solid var(--recovery-muted) !important; outline-offset: 3px !important; }
html .sppk-recovery-ui [hidden] { display: none !important; }

}
