/* Familiar settings typography, three clear starting points, details on demand. */
#seafix-demo [data-screen="account-privacy"] .sf-privacy-intro{margin:0 0 20px;color:var(--sf-muted);font-size:14px;line-height:1.6}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-intro p{margin:0;max-width:62ch}
#seafix-demo .sf-privacy-choices{display:grid;gap:10px;margin:0 0 24px}
#seafix-demo .sf-privacy-choice{display:flex;align-items:center;gap:14px;width:100%;min-width:0;padding:18px 16px;text-align:left;border:1px solid var(--sf-line);border-radius:14px;background:var(--sf-surface);color:var(--sf-text);font:inherit;cursor:pointer}
#seafix-demo .sf-privacy-choice>svg{flex:0 0 23px;width:23px!important;height:23px!important;stroke-width:1.6;color:var(--sf-heading)}
#seafix-demo .sf-privacy-choice>svg:last-child{width:17px!important;height:17px!important;flex-basis:17px;color:var(--sf-muted)}
#seafix-demo .sf-privacy-choice>span{flex:1;min-width:0}
#seafix-demo .sf-privacy-choice strong{display:block;font-size:15px;font-weight:600;line-height:1.4}
#seafix-demo .sf-privacy-choice small{display:block;margin-top:5px;max-width:54ch;font-size:13px;line-height:1.5;color:var(--sf-muted)}
#seafix-demo .sf-privacy-choice[hidden]{display:none}
#seafix-demo .sf-privacy-choice:hover{background:var(--sf-surface-raised)}
#seafix-demo .sf-privacy-choice:focus-visible{outline:2px solid var(--sf-heading);outline-offset:2px}
#seafix-demo .sf-privacy-section-title{margin:28px 0 10px;font-size:14px;font-weight:600;color:var(--sf-heading)}
#seafix-demo [data-screen="account-privacy"] .sf-profile-options{gap:10px}
#seafix-demo [data-screen="account-privacy"] .sf-profile-option{border:1px solid var(--sf-line);border-radius:14px;overflow:hidden;background:var(--sf-surface)}
#seafix-demo [data-screen="account-privacy"] .sf-profile-option>summary{padding:16px;min-height:64px;cursor:pointer}
#seafix-demo [data-screen="account-privacy"] .sf-profile-option>summary strong{font-size:14px;line-height:1.4}
#seafix-demo [data-screen="account-privacy"] .sf-profile-option>summary small{font-size:12px;line-height:1.5;margin-top:4px;color:var(--sf-muted)}
#seafix-demo [data-screen="account-privacy"] :is(.sf-backup-content,.sf-chat-help-content){padding:0 16px 16px;font-size:14px;line-height:1.6}
#seafix-demo [data-screen="account-privacy"] :is(.sf-backup-content,.sf-chat-help-content)>p{margin:12px 0}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-detail{margin-top:16px;border-top:1px solid var(--sf-line);padding-top:12px}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-detail>summary{font-size:14px;font-weight:500;cursor:pointer;min-height:36px}
#seafix-demo [data-screen="account-privacy"] [data-backup-date]{font-size:12px;color:var(--sf-muted)}
#seafix-demo #sf-privacy-action-note{padding:12px 14px;border:1px solid var(--sf-line);border-radius:12px;font-size:14px;line-height:1.5}
#seafix-demo [data-screen="account-privacy"] [hidden]{display:none!important}
@media(max-width:759px){#seafix-demo .sf-privacy-choice{padding:16px 12px;gap:12px}}

/* Help content: one check, an explicit next step, then distinct recovery actions. */
#seafix-demo #sf-chat-help .sf-chat-help-content{padding:0 18px 18px}
#seafix-demo #sf-chat-help .sf-help-section{padding:20px 0;border-top:1px solid var(--sf-line)}
#seafix-demo #sf-chat-help .sf-help-section h3{display:flex;align-items:center;gap:9px;margin:0 0 10px;font-size:15px;font-weight:600;line-height:1.4;color:var(--sf-heading)}
#seafix-demo #sf-chat-help .sf-help-section h3>svg{width:20px;height:20px;flex:none}
#seafix-demo #sf-chat-help .sf-help-intro{margin:0 0 16px;font-size:13px;color:var(--sf-muted);line-height:1.6;max-width:60ch}
#seafix-demo #sf-chat-help [data-chat-help-check]{min-height:44px;margin:0;padding:11px 16px;border-radius:10px;font:inherit;font-size:13px;font-weight:550}
#seafix-demo #sf-chat-help [data-chat-help-results]{display:grid;gap:0;margin:18px 0 0;padding:0}
#seafix-demo #sf-chat-help [data-chat-help-results]:empty{display:none}
#seafix-demo #sf-chat-help [data-chat-help-results]>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:start;gap:12px;padding:11px 0;border-bottom:1px solid var(--sf-line);font-size:13px;line-height:1.5}
#seafix-demo #sf-chat-help [data-chat-help-results] dt{color:var(--sf-muted)}
#seafix-demo #sf-chat-help [data-chat-help-results] dd{margin:0;text-align:right;font-weight:550;color:var(--sf-heading)}
#seafix-demo #sf-chat-help .sf-help-guidance{margin-top:16px;padding:14px;border:1px solid var(--sf-line);border-radius:12px;background:var(--sf-surface-raised)}
#seafix-demo #sf-chat-help .sf-help-guidance>strong{display:block;font-size:13px;font-weight:600;color:var(--sf-heading)}
#seafix-demo #sf-chat-help .sf-help-guidance p{margin:6px 0 0;font-size:13px;line-height:1.6;color:var(--sf-text)}
#seafix-demo #sf-chat-help .sf-help-actions{display:flex;flex-direction:column;margin-top:4px}
#seafix-demo #sf-chat-help .sf-help-action{display:flex;align-items:center;gap:12px;width:100%;margin:0;padding:15px 0;border:0;border-bottom:1px solid var(--sf-line);border-radius:0;background:transparent;color:var(--sf-text);font:inherit;text-align:left;cursor:pointer}
#seafix-demo #sf-chat-help .sf-help-action:last-child{border-bottom:0}
#seafix-demo #sf-chat-help .sf-help-action[hidden]{display:none}
#seafix-demo #sf-chat-help .sf-help-action>span{flex:1;min-width:0}
#seafix-demo #sf-chat-help .sf-help-action strong{display:block;font-size:14px;font-weight:550;line-height:1.4}
#seafix-demo #sf-chat-help .sf-help-action small{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:var(--sf-muted)}
#seafix-demo #sf-chat-help .sf-help-action>svg{flex:none;width:22px!important;height:22px!important;color:var(--sf-heading)}
#seafix-demo #sf-chat-help .sf-help-action>svg:last-child{width:15px!important;height:15px!important;color:var(--sf-muted)}
#seafix-demo #sf-chat-help .sf-help-action:hover{color:var(--sf-heading);background:var(--sf-surface-raised)}
#seafix-demo #sf-chat-help .sf-help-action:focus-visible{outline:2px solid var(--sf-heading);outline-offset:2px;border-radius:8px}
#seafix-demo #sf-chat-help .sf-help-preserve{display:flex;align-items:flex-start;gap:10px;padding:14px 0;border-top:1px solid var(--sf-line);color:var(--sf-muted)}
#seafix-demo #sf-chat-help .sf-help-preserve>svg{flex:none;width:20px;height:20px;margin-top:2px}
#seafix-demo #sf-chat-help .sf-help-preserve p{margin:0;font-size:12px;line-height:1.6}
#seafix-demo #sf-chat-help .sf-help-detail{margin:0;border-top:1px solid var(--sf-line);padding:0}
#seafix-demo #sf-chat-help .sf-help-detail>summary{padding:14px 0;min-height:44px;box-sizing:border-box;font-size:13px;font-weight:500;line-height:1.5;cursor:pointer}
#seafix-demo #sf-chat-help .sf-help-detail>p{margin:0 0 14px;font-size:13px;line-height:1.6}
#seafix-demo #sf-chat-help .sf-help-detail .sf-collab-quiet{min-height:42px;padding:10px 12px;border:1px solid var(--sf-line);border-radius:9px;background:var(--sf-surface-raised);color:var(--sf-text);font:inherit;font-size:13px;cursor:pointer}
#seafix-demo #sf-chat-help .sf-help-reset>summary{color:var(--sf-muted)}
#seafix-demo #sf-chat-help .sf-help-diagnostics-note{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--sf-line);font-size:11px;line-height:1.6;color:var(--sf-muted)}
#seafix-demo #sf-chat-help :is([data-chat-admin-reset],[data-chat-help-storage],[data-chat-reset-result]):empty{display:none}
@media(max-width:759px){#seafix-demo #sf-chat-help .sf-chat-help-content{padding-inline:14px}#seafix-demo #sf-chat-help .sf-help-action{gap:10px}}

/* Shared reading and form layout for every Privacy panel. */
#seafix-demo [data-screen="account-privacy"] .sf-profile-option>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none}
#seafix-demo [data-screen="account-privacy"] .sf-profile-option>summary::-webkit-details-marker{display:none}
#seafix-demo [data-screen="account-privacy"] .sf-profile-option>summary::after{content:"";flex:none;width:7px;height:7px;margin-right:3px;border-right:1.5px solid var(--sf-muted);border-bottom:1.5px solid var(--sf-muted);transform:rotate(45deg)}
#seafix-demo [data-screen="account-privacy"] .sf-profile-option[open]>summary::after{transform:rotate(225deg)}
#seafix-demo [data-screen="account-privacy"] .sf-profile-option>summary:focus-visible{outline:2px solid var(--sf-heading);outline-offset:-3px;border-radius:12px}
#seafix-demo [data-screen="account-privacy"] .sf-profile-option .sf-privacy-panel-body{padding:0 18px 18px}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-section{margin:0;padding:20px 0;border-top:1px solid var(--sf-line)}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-heading{display:flex;align-items:center;gap:9px;margin:0 0 10px;font-size:15px;font-weight:600;line-height:1.4;color:var(--sf-heading)}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-heading>svg{width:20px;height:20px;flex:none}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-description{margin:0 0 16px;font-size:13px;color:var(--sf-muted);line-height:1.6;max-width:60ch}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-guidance{margin:16px 0;padding:14px;border:1px solid var(--sf-line);border-radius:12px;background:var(--sf-surface-raised)}
#seafix-demo #sf-matrix-backup .sf-privacy-guidance [data-backup-state]{margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--sf-heading);font-size:13px;line-height:1.6;font-weight:550}
#seafix-demo #sf-matrix-backup .sf-privacy-guidance [data-backup-state].is-error{color:var(--sf-danger,#b42335)}
#seafix-demo #sf-matrix-backup .sf-privacy-guidance [data-backup-date]{margin:8px 0 0;font-size:12px;line-height:1.6;color:var(--sf-muted)}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-form{display:grid;gap:10px;margin:0;padding:0;font-size:13px;line-height:1.6}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-form.sf-privacy-section{padding:20px 0}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-form p{margin:0;color:var(--sf-muted);font-size:13px;line-height:1.6}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-form .sf-label{margin:6px 0 0;color:var(--sf-text);font-size:13px;line-height:1.5;font-weight:500}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-form .sf-input-wrap{margin:0;padding:0;border:0;background:transparent}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-form :is(input:not([type="checkbox"]):not([type="hidden"]),textarea){box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;min-height:44px;margin:0;padding:11px 12px;border:1px solid var(--sf-line);border-radius:10px;background:var(--sf-surface);color:var(--sf-text);font:inherit;font-size:16px;line-height:1.5}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-form textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical;overflow-wrap:anywhere}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-form input[type="file"]{padding:8px;font-size:12px;overflow:hidden}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-form input[type="file"]::file-selector-button{min-height:36px;margin-right:10px;padding:7px 10px;border:1px solid var(--sf-line);border-radius:7px;background:var(--sf-surface-raised);color:var(--sf-text);font:inherit;cursor:pointer}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-form label:has(>input[type="checkbox"]){display:flex;align-items:flex-start;gap:10px;min-height:44px;margin:8px 0;cursor:pointer}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-form input[type="checkbox"]{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--sf-heading)}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-panel-body .sf-primary-action{justify-self:start;width:auto;max-width:100%;min-height:44px;margin:4px 0 0;padding:11px 16px;border:1px solid var(--sf-heading);border-radius:10px;background:var(--sf-heading);color:var(--sf-surface);font:inherit;font-size:13px;font-weight:550;line-height:1.5;white-space:normal}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-panel-body button:disabled{opacity:.5;cursor:default}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-panel-body :is(button,input,textarea):focus-visible{outline:2px solid var(--sf-heading);outline-offset:2px}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-detail{margin:0;border-top:1px solid var(--sf-line);padding:0}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-detail>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;padding:14px 0;font-size:13px;font-weight:500;line-height:1.5;list-style:none;cursor:pointer}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-detail>summary::-webkit-details-marker{display:none}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-detail>summary::after{content:"";flex:none;width:7px;height:7px;margin-right:3px;border-right:1.5px solid var(--sf-muted);border-bottom:1.5px solid var(--sf-muted);transform:rotate(45deg)}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-detail[open]>summary::after{transform:rotate(225deg)}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-detail>summary:focus-visible{outline:2px solid var(--sf-heading);outline-offset:2px;border-radius:4px}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-detail> :last-child:not(summary){margin-bottom:18px}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-explanation p{margin:0 0 14px;font-size:13px;line-height:1.65;color:var(--sf-muted)}
#seafix-demo [data-screen="account-privacy"] .sf-privacy-explanation p:last-child{margin-bottom:0}
#seafix-demo :is(#sf-matrix-backup,#sf-matrix-recovery) .sf-privacy-panel-body>[role="status"]{margin:14px 0;padding:14px;border:1px solid var(--sf-line);border-radius:12px;background:var(--sf-surface-raised);color:var(--sf-text);font-size:13px;line-height:1.6}
#seafix-demo :is(#sf-matrix-backup,#sf-matrix-recovery) .sf-privacy-panel-body>[role="status"].is-error{color:var(--sf-danger,#b42335);border-color:color-mix(in srgb,var(--sf-danger,#b42335) 35%,var(--sf-line))}

/* Privacy dialogs use the same compact headings, dividers and neutral guidance. */
#seafix-demo #sf-history-protection h2{font-size:20px;line-height:1.3;letter-spacing:normal;font-weight:600}
#seafix-demo #sf-history-protection .sf-history-heading{padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid var(--sf-line)}
#seafix-demo #sf-history-protection [data-history-icon] svg{width:22px;height:24px}
#seafix-demo #sf-history-protection .sf-history-hint{border:1px solid var(--sf-line);border-radius:12px}
#seafix-demo #sf-device-verification.sf-compact-recovery .sf-recovery-dialog-heading{padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid var(--sf-line)}
#seafix-demo #sf-device-verification.sf-compact-recovery .sf-recovery-choice{padding:15px 0;border:0;border-bottom:1px solid var(--sf-line);border-radius:0;background:transparent;font-size:14px;line-height:1.5}
#seafix-demo #sf-device-verification.sf-compact-recovery .sf-recovery-choice:hover{background:var(--sf-surface-raised)}
#seafix-demo #sf-device-verification.sf-compact-recovery [data-verify-alternatives]{padding:0}
#seafix-demo #sf-device-verification.sf-compact-recovery [data-verify-alternatives]>summary{min-height:44px;padding:14px 0;font-size:13px}
#seafix-demo #sf-chat-security-dialog{width:min(560px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);margin:auto;border-radius:20px;background:var(--sf-surface)}
#seafix-demo #sf-chat-security-dialog .sf-chat-security-page{padding:0 22px 18px}
#seafix-demo #sf-chat-security-dialog .sf-chat-security-heading{display:flex;align-items:center;gap:10px;padding:18px 0;margin:0;background:var(--sf-surface);border-bottom:1px solid var(--sf-line)}
#seafix-demo #sf-chat-security-dialog .sf-chat-security-flow{display:none}
#seafix-demo #sf-chat-security-dialog .sf-chat-security-heading>svg{display:block;flex:none;width:22px;height:22px}
#seafix-demo #sf-chat-security-dialog .sf-chat-security-heading h2{position:static;flex:1;width:auto;height:auto;min-width:0;margin:0;padding:0;overflow:visible;clip-path:none;white-space:normal;font-size:20px;line-height:1.3;font-weight:600}
#seafix-demo #sf-chat-security-dialog #sf-chat-security-close{position:static;display:grid;place-items:center;flex:none;width:36px;height:36px;margin:0 -8px 0 0;padding:0;border:0;border-radius:8px;background:transparent}
#seafix-demo #sf-chat-security-dialog #sf-chat-security-close svg{width:18px!important;height:18px!important}
#seafix-demo #sf-chat-security-dialog #sf-chat-security-close:focus-visible{outline:2px solid var(--sf-heading)!important;outline-offset:0}
#seafix-demo #sf-chat-security-dialog section{margin:0;padding:20px 0;border:0;border-bottom:1px solid var(--sf-line);border-radius:0;background:transparent}
#seafix-demo #sf-chat-security-dialog h3{gap:9px;margin:0 0 10px;font-size:15px;font-weight:600;line-height:1.4}
#seafix-demo #sf-chat-security-dialog h3 svg{width:20px;height:20px}
#seafix-demo #sf-chat-security-dialog p{margin:0;font-size:13px;line-height:1.65;color:var(--sf-muted)}
#seafix-demo #sf-chat-security-dialog .sf-privacy-info-detail{border-bottom:1px solid var(--sf-line)}
#seafix-demo #sf-chat-security-dialog .sf-privacy-info-detail:last-child{border-bottom:0}
#seafix-demo #sf-chat-security-dialog .sf-privacy-info-detail>summary{padding:15px 0;min-height:44px;font-size:13px;font-weight:500;cursor:pointer}
#seafix-demo #sf-chat-security-dialog .sf-privacy-info-detail>summary svg{display:none}
#seafix-demo #sf-chat-security-dialog .sf-privacy-info-detail p{padding-bottom:16px}
@media(max-width:759px){#seafix-demo [data-screen="account-privacy"] .sf-profile-option .sf-privacy-panel-body{padding-inline:14px}#seafix-demo #sf-chat-security-dialog .sf-chat-security-page{padding-inline:18px}}
