.notification-picker { margin: 18px 0; }
.notification-picker > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.notification-picker > summary::before { content: '›'; font-size: 21px; transform: rotate(0deg); }
.notification-picker[open] > summary::before { transform: rotate(90deg); }
.notification-picker > summary span { margin-left: auto; font-size: 12px; font-weight: 400; }
.notification-picker-intro { color: var(--muted,#766d63); font-size: 13px; line-height: 1.5; margin: 12px 0; }
.notification-picker-search { display: block; margin: 12px 0; }
.notification-picker-search > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.notification-picker-search input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #d9c9b7; border-radius: 10px; background: #fffdf9; color: #25382d; padding: 11px 12px; font: inherit; font-size: 14px; }
.notification-picker-search input:focus { outline: 2px solid #39725d; outline-offset: 2px; }
.notification-picker-selected { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.notification-picker-chip { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; border: 1px solid #bdd2c4; border-radius: 8px; background: #edf4ee; color: #214838; padding: 7px 10px; line-height: 1.35; font: inherit; font-size: 12px; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.notification-picker-chip span { font-size: 18px; }
.notification-picker-results { max-height: 350px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; border: 1px solid #eadaca; border-radius: 12px; background: #fff; }
.notification-picker-row { display: flex; align-items: center; gap: 4px; padding: 3px 10px 3px calc(7px + var(--notification-depth,0) * 15px); min-height: 52px; border-bottom: 1px solid #f1e9df; }
.notification-picker-row:last-child { border-bottom: 0; }
.notification-picker-expand, .notification-picker-spacer { display: flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 40px; }
.notification-picker-expand { font-size: 26px; color: #23503c; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.notification-picker-expand:hover { background: #edf4ee; }
.notification-picker-row label { display: flex; align-items: center; flex: 1; min-width: 0; gap: 10px; margin: 0; padding: 9px 0; cursor: pointer; }
.notification-picker-row input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: #28533d; }
.notification-picker-row strong { display: block; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.notification-picker-row small { display: block; color: #766d63; font-size: 11px; line-height: 1.4; margin-top: 3px; overflow-wrap: anywhere; }
.notification-picker-child-count { padding: 3px 7px; border-radius: 6px; color: #766d63; background: #f6f1e9; font-size: 11px; }
.notification-picker-feedback { margin: 10px 0 0; color: #766d63; font-size: 11px; line-height: 1.5; }
.notification-picker-empty { display: grid; gap: 6px; padding: 22px 14px; font-size: 13px; }
.notification-picker-empty span { color: #766d63; }
@media(max-width: 420px) {
  .notification-picker-row { padding-right: 6px; padding-left: calc(3px + var(--notification-depth,0) * 10px); }
  .notification-picker-results { max-height: 320px; }
  .notification-picker-search input { font-size: 16px; }
}

.notification-consent-status { margin-top: 17px; }
.notification-consent-invite { padding: 16px; border: 1px solid #d0dfd2; border-radius: 12px; background: #f4f8f2; }
.notification-consent-invite strong { display: block; color: #234d39; font-size: 14px; }
.notification-consent-invite p { margin: 7px 0 12px; color: #756a5d; font-size: 12px; line-height: 1.6; }
.notification-consent-invite .button { min-height: 42px; }
.notification-consent-settings { margin-top: 12px; font-size: 12px; }
.notification-consent-sheet { width: min(100%,650px); }
.notification-consent-sheet h2 { font-size: 22px; line-height: 1.25; }
.notification-consent-explanation { color: #756a5d; font-size: 13px; line-height: 1.6; }
.notification-consent-document, .notification-consent-policy { margin: 15px 0; border: 1px solid #e5d7c6; border-radius: 10px; background: #fff; }
.notification-consent-document > summary, .notification-consent-policy > summary { padding: 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.notification-consent-document > .legal-body, .notification-consent-policy > .legal-body { max-height: 185px; overflow-y: auto; padding: 0 13px 12px; overscroll-behavior: contain; }
.notification-consent-channels { padding: 0; margin: 18px 0 0; border: 0; min-width: 0; }
.notification-consent-channels legend { padding: 0; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.notification-consent-sheet .consent-choice { padding: 8px 0; margin: 0; font-size: 13px; line-height: 1.5; }
.notification-consent-confirm { border-top: 1px solid #eadaca; margin-top: 12px !important; padding-top: 15px !important; }
.notification-consent-actions { display: grid; gap: 12px; margin-top: 16px; text-align: center; }
.notification-consent-actions button { min-height: 42px; }
.notification-consent-error { color: #963e29; font-size: 13px; line-height: 1.5; }
.notification-consent-withdraw { display: block; margin: 15px auto 0; font-size: 12px; }
@media(max-width:420px) {
  .notification-consent-sheet { width: calc(100% + 40px); }
  .notification-consent-invite .button { width: 100%; }
  .notification-consent-sheet h2 { font-size: 20px; }
  .notification-consent-document > .legal-body { max-height: 120px; }
}
