/* Only the five approved settings pages. Account-detail permissions retain their existing UI. */
#settingsView .settings-logout-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 24px; padding: 12px 18px; border: 1px solid #edd7d2; border-radius: 16px; background: #fff5f2; color: #a63d32; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
#settingsView .settings-logout-button svg { width: 21px; height: 21px; }
#settingsView .settings-logout-button:active { background: #f8e6e0; }
#settingsView .settings-logout-button:focus-visible { outline: 3px solid #a63d32; outline-offset: 3px; }
body:has(:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)).active) { background: #f5f8f5; }
body:has(:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)).active) #appMain { width: 100%; margin: 0; padding: 0; }
body:has(:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)).active) .app-header { display: none; }
body:has(:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)).active) #aiAssistantToggle { top: auto !important; left: auto !important; right: 16px; bottom: calc(104px + env(safe-area-inset-bottom)); }
:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)) {
  --settings-green: #207653;
  --settings-ink: #173e2d;
  --settings-muted: #607166;
  min-height: 100vh; min-height: 100svh;
  padding: 40px 22px calc(120px + env(safe-area-inset-bottom));
  color: var(--settings-ink);
  background: #f5f8f5 url('./assets/settings-pond-v387.webp') center bottom 65px / min(100%, 760px) auto no-repeat;
}
:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)) > .panel { width: min(660px, 100%); margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)) > .back-button { display: none; }
:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)) h2 { color: var(--settings-ink); font-size: 28px; line-height: 1.3; }
:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)) .eyebrow { display: none; }
:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)) .primary-button { width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: 14px; color: white; background: var(--settings-green); box-shadow: none; font-size: 16px; }
:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)) input:not([type=file]) { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #ccd9d0; border-radius: 14px; background: #ffffffef; color: #172b24; font-size: 16px; }
:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)) :is(input, button):focus-visible { outline: 3px solid #207653; outline-offset: 3px; }
:is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)) .primary-button:active { background: #185b40; }
#profileSettingsView .settings-hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; background: transparent; }
#profileSettingsView .settings-hero > div { order: -1; }
#profileSettingsView .settings-hero .settings-account { margin: 10px 0 0; color: #607166; font-size: 15px; }
#profileSettingsView .settings-hero img { width: 104px; height: 104px; align-self: center; margin-top: 28px; border-radius: 26px; object-fit: cover; box-shadow: none; }
#profileSettingsView .brand-settings-form { display: flex; flex-direction: column; gap: 22px; margin-top: 16px; }
#profileSettingsView .brand-settings-form > button { flex: 0 0 auto; height: auto; }
#profileSettingsView .brand-settings-form > label:not(.brand-settings-upload) { display: grid; gap: 10px; font-size: 15px; color: #173e2d; }
#profileSettingsView .brand-settings-upload { position: relative; order: -1; align-self: center; display: grid; place-items: center; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 24px; color: #207653; background: #e2f1e5; cursor: pointer; }
#profileSettingsView .brand-settings-upload > span { display: flex; align-items: center; gap: 8px; font-size: 15px; }
#profileSettingsView .brand-settings-upload svg { width: 22px; height: 22px; }
#profileSettingsView .brand-settings-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#profileSettingsView .brand-settings-upload:focus-within { outline: 3px solid #207653; outline-offset: 3px; }
#passwordSettingsView .password-settings-head { align-items: flex-start; gap: 14px; }
#passwordSettingsView .password-settings-head > span { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 16px; color: #ad6a13; background: #fff3dc; }
#passwordSettingsView .password-settings-head > div > p:last-child { margin-top: 10px; color: #607166; font-size: 14px; line-height: 1.5; }
#passwordSettingsView .password-settings-form { gap: 20px; margin-top: 28px; }
#passwordSettingsView .password-settings-form label { gap: 10px; font-size: 15px; color: #173e2d; }
#passwordSettingsView .password-settings-feedback:empty { display: none; }
#passwordSettingsView .password-settings-feedback { margin: 0; }
#userManageView:not(.account-detail-active) .panel-head { margin-bottom: 12px; }
#userManageView:not(.account-detail-active) > .panel > .panel-head h2 { color: #173e2d; font-size: 28px; line-height: 1.3; }
#userManageView:not(.account-detail-active) > .panel > .auth-subtitle { font-size: 14px; font-weight: 400; color: #607166; line-height: 1.6; margin: 0 0 24px; }
#userManageView:not(.account-detail-active) .account-role-section { margin: 0; }
#userManageView:not(.account-detail-active) .account-role-grid { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0 14px; border: 1px solid #dce6df; border-radius: 20px; background: #fff; }
#userManageView:not(.account-detail-active) .account-role-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; min-height: 92px; margin: 0; padding: 18px 0; border: 0; border-radius: 0; color: #173e2d; background: transparent; box-shadow: none; text-align: left; }
#userManageView:not(.account-detail-active) .account-role-card + .account-role-card { border-left: 0; border-top: 1px solid #e5ece7; }
#userManageView:not(.account-detail-active) .account-role-card > svg:first-child { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: #efebff; color: #6852ee; }
#userManageView:not(.account-detail-active) .account-role-card[data-auth-role-panel=customer] > svg:first-child { background: #fff3dc; color: #ad6a13; }
#userManageView:not(.account-detail-active) .account-role-card > span { color: #173e2d; font-size: 18px; font-weight: 700; }
#userManageView:not(.account-detail-active) .account-role-card small { display: block; margin-top: 6px; color: #607166; font-size: 13px; font-weight: 400; line-height: 1.5; }
#userManageView:not(.account-detail-active) .account-role-card strong { color: #207653; font-size: 18px; }
#userManageView:not(.account-detail-active) .account-role-card > svg:last-child { width: 18px; height: 18px; color: #607166; }
#userManageView:not(.account-detail-active) .account-list-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#userManageView:not(.account-detail-active) .account-list-head { margin: 0 0 26px; padding: 0; }
#userManageView:not(.account-detail-active) .account-list-head h3 { color: #173e2d; font-size: 28px; }
#userManageView:not(.account-detail-active) .account-list-head > button { display: none; }
#userManageView:not(.account-detail-active) .account-invite-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px 14px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#userManageView:not(.account-detail-active) .account-invite-icon { width: 52px; height: 52px; border-radius: 18px; }
#userManageView:not(.account-detail-active) .account-invite-card h3 { margin: 0 0 8px; font-size: 20px; color: #173e2d; }
#userManageView:not(.account-detail-active) .account-invite-card p { color: #607166; font-size: 14px; line-height: 1.6; }
#userManageView:not(.account-detail-active) .account-invite-card label { font-size: 15px; color: #173e2d; }
#userManageView:not(.account-detail-active) .account-invite-feedback:empty { display: none; }
#userManageView:not(.account-detail-active) .settings-account-list-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #dce6df; }
#userManageView:not(.account-detail-active) .settings-account-list-summary h3 { font-size: 20px; color: #173e2d; }
#userManageView:not(.account-detail-active) .settings-account-list-summary strong { color: #207653; }
#userManageView:not(.account-detail-active) .settings-account-list-summary small { grid-column: 1 / -1; color: #607166; font-size: 13px; }
#userManageView:not(.account-detail-active) .compact-empty { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 0; border: 0; color: #607166; background: transparent; font-size: 14px; }
#userManageView:not(.account-detail-active) .compact-empty svg { width: 58px; height: 58px; padding: 14px; border-radius: 50%; background: #e4eee7; color: #607166; }
@media (max-width: 360px) { :is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)) { padding-inline: 16px; } #userManageView:not(.account-detail-active) .account-role-card { gap: 8px; grid-template-columns: 40px minmax(0, 1fr) auto 16px; } }
@media (max-height: 550px) { :is(#profileSettingsView, #passwordSettingsView, #userManageView:not(.account-detail-active)) { padding-top: 24px; padding-bottom: calc(140px + env(safe-area-inset-bottom)); background-image: none; } }
