/* Standalone pages inherit the workspace preference, including native controls. */
html[data-theme="dark"] .account-body{background:var(--canvas);color:var(--text)}
html[data-theme="dark"] :is(.profile-page .surface,.account-panel){background:var(--surface);color:var(--text);border-color:var(--border)}
html[data-theme="dark"] .account-story{background:#203f40;color:var(--text)}
html[data-theme="dark"] :is(.account-story p,.account-story small,.password-help,.invitation-form-note,.group-member small){color:var(--muted)}
html[data-theme="dark"] .account-body :is(input:not([type="checkbox"]):not([type="hidden"]),select,textarea){background:#243f40;color:var(--text);border-color:#43686a}
html[data-theme="dark"] .account-body :is(input,select,textarea):focus-visible{outline-color:var(--primary)}
html[data-theme="dark"] .account-body input::file-selector-button{background:#355455;color:var(--text);border:1px solid #567779;border-radius:5px;padding:5px 8px}
html[data-theme="dark"] .account-body input[readonly]{background:#203839!important;color:var(--muted)}
html[data-theme="dark"] .account-body :is(.secondary,.invite-link-box,.invitation-empty,.invitation-heading-icon,.invitation-section-heading>span,.account-notice){background:#243f40;color:var(--text);border-color:var(--border)}
html[data-theme="dark"] .account-body :is(.invitation-record,.invitation-section-heading,.group-picker,.group-member){border-color:var(--border)}
html[data-theme="dark"] .invitation-empty strong{color:var(--text)}
html[data-theme="dark"] .account-body :is(.field-error,.errorlist,.error,.group-danger){color:#ffb4ab!important}
html[data-theme="dark"] .account-body :is(.account-notice.error,.account-notice.errorlist){background:#4b2c2b;color:#ffb4ab}
html[data-theme="dark"] .account-body .account-notice.success{background:#244d3c;color:#ace2c4}
html[data-theme="dark"] .account-body input[aria-invalid="true"]{border-color:#ffb4ab;background:#402c2c}
html[data-theme="dark"] .group-member-actions button{color:var(--primary)}
html[data-theme="dark"] .group-member-actions button:hover{background:#2d4f50}
html[data-theme="dark"] .account-body .primary{background:#007c83;color:white}
html[data-theme="dark"] .account-body .primary:hover{background:#00646b}
