/* Page locale : mêmes surfaces et dimensions que les commandes et panneaux Séries. */
#zbd-notification-settings-page.notifications-modernized {
  --series-line: rgba(139, 148, 158, .2);
  --series-panel: #1a1e25;
  max-width: 100%;
  padding: 1.5rem 0 0;
}
.notifications-modernized [hidden] { display: none !important; }
.notifications-modernized :is(button, a, input, select):focus-visible { outline: 2px solid #58a6ff; outline-offset: 3px; }
.notifications-modernized :is(button, a, label) { touch-action: manipulation; }
.notifications-modernized .series-list-header { padding: .25rem 0 1.25rem; margin-bottom: .5rem; }
.notifications-modernized .series-list-heading { max-width: 46rem; min-width: 0; }
.notifications-modernized .series-list-kicker { display: block; margin-bottom: .4rem; color: var(--ft-zbd-accent, #f0b90b); font-size: .7rem; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.notifications-modernized .series-list-title { margin: 0; color: var(--ft-zbd-text-primary, #f0f6fc); font-family: var(--zbd-font-sans); font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-align: start; text-wrap: balance; }
.notifications-modernized .notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.notifications-modernized .notification-heading > .btn { flex-shrink: 0; min-height: 44px; font-size: 13px; }
.notifications-modernized .notification-alerts-section { margin-top: 24px; }
.notifications-modernized .notification-alerts-empty { padding: 28px 20px; border: 1px solid #303c4b; border-radius: 12px; background: #191f28; }
.notifications-modernized .notification-alerts-empty .btn { min-height: 44px; max-width: 100%; border-radius: 10px; font-size: 13px; white-space: normal; }
.notifications-modernized .notification-alerts-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.notifications-modernized .notification-alerts-heading h2 { margin: 0; font-size: 18px; font-weight: 650; }
.notifications-modernized .notification-alerts-heading .zbd-alert-quota-card { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; width: auto; max-width: 100%; margin: 0 !important; padding: 0; border: 0; background: transparent; box-shadow: none; }
.notifications-modernized .notification-primary-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; margin-bottom: 20px; }
.notifications-modernized .series-search-control { position: relative; min-width: 0; }
.notifications-modernized .series-search-icon { position: absolute; inset: 12px auto auto 13px; color: #a5aeb9; pointer-events: none; }
.notifications-modernized .series-search-control input { height: 44px; padding-left: 38px; border: 1px solid #3c4654; border-radius: 10px; background: #1e2026; color: #f0f6fc; font-size: 14px; }
.notifications-modernized .series-settings-tools { display: flex; align-items: start; }
.notifications-modernized .series-settings-trigger { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 54px; padding: 0; border: 0; background: transparent; color: #c9d4e0; font-size: .65rem; line-height: 1.3; }
.notifications-modernized .series-round-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #3c4654; border-radius: 50%; background: var(--series-panel); color: #e1e8f0; box-shadow: 0 2px 8px #0003; font-size: 1.15rem; transition: border-color .15s, background-color .15s; }
.notifications-modernized .series-settings-trigger:hover .series-round-icon { border-color: #58a6ff; background: #252e39; }
.notifications-modernized .notification-preferences-trigger { min-width: 0; width: min(140px, 100%); justify-self: center; }
.notifications-modernized .notification-preferences-label-mobile { display: none; }
.notifications-modernized .notification-primary-controls .zbd-binder-mode-btn { min-height: 44px; margin: 0; padding: 8px 12px; border: 1px solid #3c4654; border-radius: 10px; background: #1a1e25; color: #c9d4e0; font-size: 12px; white-space: nowrap; }
.notifications-modernized .notification-primary-controls .zbd-binder-mode-btn:hover,
.notifications-modernized .notification-primary-controls .zbd-binder-mode-btn[aria-pressed="true"] { border-color: #58a6ff; background: #252e39; }

/* Le contenu des panneaux conserve les champs et événements existants. */
.notifications-modernized dialog:not([open]) { display: none; }
.notifications-modernized .notification-dialog-backdrop { position: fixed; inset: 0; z-index: 2500; background: #03080fbd; }
.notifications-modernized dialog.notification-dialog-fallback { position: fixed; inset: 0; z-index: 2501; }
.notifications-modernized .series-filter-dialog { width: 100%; max-width: 100%; height: min(35rem, 90vh); height: min(35rem, 90dvh); max-height: 90vh; max-height: 90dvh; margin: auto 0 0; padding: 0; border: 1px solid #4b596d; border-radius: 18px 18px 0 0; overflow: hidden; background: #1b2028; color: #f0f6fc; box-shadow: 0 20px 50px #0008; }
.notifications-modernized .series-filter-dialog[open] { display: flex; flex-direction: column; }
.notifications-modernized .series-filter-dialog::backdrop { background: #03080fbd; }
.notifications-modernized .series-sheet-handle { flex-shrink: 0; width: 36px; height: 4px; margin: .6rem auto .3rem; border-radius: 4px; background: #667080; }
.notifications-modernized .series-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-shrink: 0; padding: 0 .9rem .4rem; }
.notifications-modernized .series-dialog-heading h2 { min-width: 0; margin: 0; font-size: 1rem; }
.notifications-modernized .series-dialog-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; border: 1px solid #3c4654; border-radius: 50%; background: #222c37; color: #c9d4e0; }
.notifications-modernized .notification-dialog-body { flex: 1; min-height: 0; padding: 18px; overflow: auto; overscroll-behavior: contain; }
.notifications-modernized .notification-display-form { display: block; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.notifications-modernized .notification-display-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.notifications-modernized .notification-display-form .zbd-alert-filter-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.notifications-modernized .notification-display-form .zbd-filter-label { display: block; margin-bottom: 7px; color: #a8b4c4; font-size: 13px; }
.notifications-modernized .notification-display-form .form-select { min-height: 44px; border: 1px solid #3c4654; border-radius: 9px; background-color: #222a36; color: #e4eaf1; font-size: 14px; }
.notifications-modernized .series-sheet-footer { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .5rem; flex-shrink: 0; padding: .8rem max(.9rem, env(safe-area-inset-right)) max(.8rem, env(safe-area-inset-bottom)) max(.9rem, env(safe-area-inset-left)); border-top: 1px solid var(--series-line); background: #1b2028; }
.notifications-modernized .series-sheet-footer button { min-width: 0; min-height: 44px; font-size: .875rem; }
.notifications-modernized #notification-reset-filters { border: 1px solid #3c4654; border-radius: 10px; background: none; color: #c9d4e0; }
.notifications-modernized .notification-preferences-dialog { height: fit-content; }
.notifications-modernized .notification-preferences-body { flex: initial; }
.notifications-modernized .notification-preferences-dialog .series-sheet-footer { grid-template-columns: minmax(0, 1fr); }
.notifications-modernized .notification-local-panel { margin: 0; border-color: #30363d; background: #191d24; box-shadow: none; }
.notifications-modernized .notification-local-panel .zbd-local-notification-settings__copy { grid-template-columns: minmax(0, 1fr); }
.notifications-modernized .notification-local-panel h3 { font-size: 14px; font-weight: 650; }
.notifications-modernized .notification-local-panel p { max-width: 55rem; }
.notifications-modernized .notification-local-panel .zbd-local-notification-settings__status { min-height: 0; font-size: 11px; font-weight: 500; }

/* Trois emplacements fixes : les boutons masqués ne déplacent pas leurs voisins. */
.notifications-modernized .notification-floating-actions { position: fixed; right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 1047; display: none; grid-template-columns: 48px; grid-template-rows: repeat(3, 48px); align-items: center; justify-items: center; gap: 10px; pointer-events: none; }
.notifications-modernized .notification-floating-actions > button { position: static; inset: auto; display: grid; place-items: center; grid-column: 1; width: 48px; height: 48px; margin: 0; padding: 0; border: 1px solid #4b596d; border-radius: 50%; background: #1b2028; color: #f0f6fc; box-shadow: 0 5px 16px #0006; font-size: 20px; pointer-events: auto; }
.notifications-modernized .notification-display-fab { grid-row: 1; }
.notifications-modernized .notification-floating-actions > .notification-scroll-top { grid-row: 2; width: 2.9rem; height: 2.9rem; min-width: 2.9rem; }
.notifications-modernized .notification-floating-actions > .zbd-alert-add-fab { grid-row: 3; }
.notifications-modernized.is-alert-selection-mode .notification-floating-actions > .zbd-alert-add-fab,
body.notification-settings-dialog-open .notifications-modernized .notification-floating-actions,
body.zbd-alert-sheet-open .notifications-modernized .notification-floating-actions,
body.modal-open .notifications-modernized .notification-floating-actions { display: none; }
body.notification-settings-dialog-open { overflow: hidden; }

/* Ajout d’alerte : mêmes surfaces, onglets et commandes que les panneaux Séries. */
.notifications-modernized .zbd-alert-add-panel {
  width: min(760px, calc(100vw - 3rem)); height: min(680px, calc(100vh - 3rem)); height: min(680px, calc(100dvh - 3rem)); max-height: calc(100vh - 3rem); max-height: calc(100dvh - 3rem);
  gap: 0; padding: 0 !important; border: 1px solid #4b596d; border-radius: 16px;
  background: #1b2028; box-shadow: 0 20px 50px #0008; color-scheme: dark; overflow: hidden;
}
.notifications-modernized .zbd-alert-add-panel.is-configuring { height: min(600px, calc(100vh - 3rem)); height: min(600px, calc(100dvh - 3rem)); }
.notifications-modernized .is-configuring #notification-add-description { display: none; }
.notifications-modernized .zbd-alert-create-head { flex-wrap: nowrap; align-items: center; margin: 0; padding: 20px 24px 16px; }
.notifications-modernized .zbd-alert-create-head > div { min-width: 0; }
/* Le quota ouvert depuis une fiche conserve les marges de la nouvelle fenêtre. */
.notifications-modernized .zbd-alert-quota-panel { padding: 8px 24px 24px; }
.notifications-modernized .zbd-alert-quota-panel .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.notifications-modernized .zbd-alert-create-head h2 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.notifications-modernized .zbd-alert-create-head p { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.notifications-modernized .zbd-alert-add-panel .zbd-alert-sheet-close { display: grid; width: 44px; height: 44px; border-radius: 50%; font-size: 14px; }
.notifications-modernized .zbd-alert-add-panel .zbd-alert-sheet-close:hover { background: #303e4e; border-color: #718399; }
.notifications-modernized .zbd-alert-source-tabs { gap: .4rem; margin: 0; padding: 0 24px 14px; border: 0; border-bottom: 1px solid var(--series-line); border-radius: 0; background: none; }
.notifications-modernized .zbd-alert-source-tab { min-height: 44px; padding: .5rem; border-radius: 10px; font-size: 14px; font-weight: 600; }
.notifications-modernized .zbd-alert-source-tab[aria-selected="true"] { border-color: #f0b90b4d; background: #f0b90b14; color: #f0b90b; }
.notifications-modernized .zbd-alert-source-tab:hover { background: #ffffff05; }
.notifications-modernized .zbd-alert-source-tab span { overflow: visible; text-overflow: clip; }
.notifications-modernized .zbd-alert-source-panels { padding: 18px 24px 24px; overflow: auto; scrollbar-gutter: stable; }
.notifications-modernized .zbd-alert-source-panel { gap: 16px; overflow: visible; }
.notifications-modernized .zbd-alert-source-panel__head { flex-direction: row; align-items: center; gap: 12px; }
.notifications-modernized .zbd-alert-source-panel__head h3 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.notifications-modernized .zbd-alert-source-panel__head > a { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; border-color: #3c4654; border-radius: 10px; color: #c9d4e0; font-size: 12px; }
.notifications-modernized .zbd-alert-add-panel .zbd-alert-chip-list { gap: 10px; }
.notifications-modernized .zbd-alert-add-panel .zbd-alert-chip--suggestion { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #303c4b; border-radius: 12px; background: #191f28; box-shadow: none; }
.notifications-modernized .zbd-alert-chip--suggestion .zbd-alert-chip__actions { grid-column: auto; width: auto; margin: 0; }
.notifications-modernized :is(.zbd-alert-chip--suggestion .zbd-alert-chip__actions, .zbd-alert-search-result) .btn { width: auto; min-height: 44px; padding: 8px 12px; border: 1px solid #4b596d; border-radius: 10px; background: #222c37; color: #e1e8f0; font-size: 12px; font-weight: 600; box-shadow: none; }
.notifications-modernized :is(.zbd-alert-chip--suggestion .zbd-alert-chip__actions, .zbd-alert-search-result) .btn:hover:not(:disabled) { border-color: #f0b90b80; background: #f0b90b14; color: #f0b90b; }
.notifications-modernized .zbd-alert-add-panel .zbd-notification-row-title { font-size: 13px; font-weight: 650; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.notifications-modernized .zbd-alert-add-panel .zbd-notification-row-meta { font-size: 12px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.notifications-modernized .zbd-alert-source-panel__head--search { flex-direction: column; align-items: stretch; }
.notifications-modernized .zbd-alert-search-controls { display: flex; justify-content: space-between; gap: 12px; }
.notifications-modernized .zbd-alert-type-control { flex: 0 1 auto; padding: 3px; border-color: #3c4654; border-radius: 10px; background: #151b23; }
.notifications-modernized .zbd-alert-type-control__btn { min-height: 40px; min-width: 84px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.notifications-modernized .zbd-alert-lang-control { flex: 0 1 auto; gap: 12px; }
/* Sélecteur de langue de series.php, limité à la modale des alertes. */
.notifications-modernized .series-language-control { width: 180px; max-width: 100%; }
.notifications-modernized .series-language-toggle { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; height: 44px; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--ft-zbd-border, #30363d); border-radius: var(--zbd-radius-md, 10px); background: var(--ft-zbd-surface-1, #161b22); color: var(--ft-zbd-text-primary, #f0f6fc); font-size: .875rem; font-weight: 600; line-height: 1.5; transition: border-color .12s ease, background-color .12s ease; }
.notifications-modernized .series-language-toggle::after { margin-left: auto; color: var(--ft-zbd-text-muted, #a5aeb9); }
.notifications-modernized .series-language-toggle:hover:not(:disabled),
.notifications-modernized .series-language-toggle.show { border-color: var(--ft-zbd-accent, #f0b90b); background: var(--ft-zbd-surface-2, #21262d); }
.notifications-modernized .series-language-menu { width: 100%; min-width: 10rem; margin-top: .3rem !important; padding: .25rem; border: 1px solid var(--ft-zbd-border, #30363d); border-radius: var(--zbd-radius-md, 10px); background: var(--ft-zbd-surface-1, #161b22); box-shadow: 0 8px 20px #0005; }
.notifications-modernized .series-language-option { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px; padding: .6rem .55rem; border: 0; border-radius: 6px; background: transparent; color: var(--ft-zbd-text-primary, #f0f6fc); font-size: .875rem; font-weight: 600; line-height: 1.5; white-space: nowrap; transition: background-color .12s ease, color .12s ease; }
.notifications-modernized .series-language-option::after { content: ""; width: 6px; height: 10px; margin-right: .25rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: 0; }
.notifications-modernized .series-language-option:hover:not(:disabled),
.notifications-modernized .series-language-option:focus { background: var(--ft-zbd-surface-2, #21262d); }
.notifications-modernized .series-language-option.active,
.notifications-modernized .series-language-option.active:hover { background: rgba(240,185,11,.1); color: var(--ft-zbd-accent, #f0b90b); font-weight: 700; }
.notifications-modernized .series-language-option.active::after { opacity: 1; }
.notifications-modernized :is(.series-language-toggle, .series-language-option):focus-visible { z-index: 1; outline: 2px solid var(--ft-zbd-accent-secondary, #58a6ff); outline-offset: 2px; box-shadow: none; }
.notifications-modernized :is(.series-language-toggle, .series-language-option):disabled { opacity: .65; }
.notifications-modernized .series-language-label { display: inline-flex; align-items: center; gap: .5rem; }
.notifications-modernized .series-language-label .zbd-flag { width: 18px; height: 12px; flex-shrink: 0; border: 0; border-radius: 2px; }
.notifications-modernized .zbd-alert-add-panel .zbd-alert-search { padding: 0; border: 0; background: none; box-shadow: none; }
.notifications-modernized .zbd-alert-add-panel :is(.form-control, .form-select) { min-height: 46px; border-color: #3c4654; border-radius: 10px; background-color: #151b23; color: #f0f6fc; font-size: 16px; }
.notifications-modernized .zbd-alert-add-panel .input-group > .form-control { border-radius: 10px 0 0 10px; }
.notifications-modernized #zbd-alert-search-inline-clear { width: 44px; border-color: #3c4654; border-radius: 0 10px 10px 0; background: #222c37; color: #c9d4e0; }
.notifications-modernized .zbd-alert-search-results { max-height: none; overflow: visible; }
.notifications-modernized .zbd-alert-search-results .list-group-item { padding: 12px; border: 1px solid #303c4b; border-radius: 12px; background: #191f28; }
.notifications-modernized .zbd-alert-search-result__title { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.notifications-modernized .zbd-alert-search-result__subtitle { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.notifications-modernized .zbd-alert-config-panel { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.notifications-modernized .zbd-alert-config-panel__head { flex-shrink: 0; align-items: center; gap: 12px; padding: 0 24px 16px; }
.notifications-modernized .zbd-alert-config-panel__head h3 { font-size: 14px; font-weight: 600; }
.notifications-modernized .zbd-alert-config-panel__head p { margin-top: 4px; font-size: 12px; }
.notifications-modernized .zbd-alert-add-panel .zbd-alert-secondary-btn { min-height: 44px; border-color: #3c4654; border-radius: 10px; background: #222c37; color: #c9d4e0; font-weight: 600; }
.notifications-modernized .zbd-alert-create-form { display: flex; flex-direction: column; flex: 1; gap: 0; min-height: 0; }
.notifications-modernized .notification-alert-rule-body { flex: 1; min-height: 0; padding: 0 24px 20px; overflow: auto; overscroll-behavior: contain; }
.notifications-modernized .zbd-alert-selected-item { display: flex; gap: 12px; margin-bottom: 20px; padding: 14px; border-color: #3c4654; border-radius: 12px; background: #191f28; }
.notifications-modernized .zbd-alert-selected-item__body strong { font-size: 14px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.notifications-modernized .zbd-alert-selected-item__price { margin-top: 4px; font-size: 16px; font-weight: 700; }
.notifications-modernized #zbd-alert-selected-item-clear { flex-shrink: 0; width: auto; }
.notifications-modernized .zbd-alert-create-rule { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: none; gap: 20px 16px; }
.notifications-modernized .zbd-alert-create-rule > * { grid-area: auto; }
.notifications-modernized .zbd-alert-create-rule :is(.form-label, .zbd-alert-threshold-presets__label) { color: #b8c3d1; font-size: 13px; font-weight: 500; }
.notifications-modernized :is(.zbd-alert-create-rule__intent, .zbd-alert-create-rule__price) { gap: 8px; }
.notifications-modernized .zbd-alert-direction-toggle { padding: 3px; border-color: #3c4654; border-radius: 10px; background: #151b23; }
.notifications-modernized .zbd-alert-direction-choice__surface { min-height: 40px; padding: 8px; font-weight: 600; }
.notifications-modernized .zbd-alert-direction-choice__text { font-size: 13px; }
.notifications-modernized .zbd-alert-create-rule .zbd-alert-threshold-presets { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0; border: 0; background: none; }
.notifications-modernized .zbd-alert-threshold-presets__base { font-size: 12px; color: #a8b4c4; }
.notifications-modernized .zbd-alert-threshold-presets__head { display: flex; justify-content: space-between; min-width: 0; }
.notifications-modernized .zbd-alert-threshold-presets__buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.notifications-modernized .zbd-alert-threshold-preset { min-height: 50px; flex-direction: column; gap: 5px; border-color: #3c4654; border-radius: 10px; background: #222c37; font-size: 13px; font-weight: 600; box-shadow: none; }
.notifications-modernized .zbd-alert-threshold-preset small { font-size: 11px; color: #a8b4c4; }
.notifications-modernized .zbd-alert-threshold-preset[aria-pressed="true"] { border-color: #f0b90b80; background: #f0b90b14; color: #f0b90b; }
.notifications-modernized .zbd-alert-create-inline-issue { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.notifications-modernized .notification-alert-submit { flex-shrink: 0; padding: 16px 24px; border-top: 1px solid var(--series-line); background: #1b2028; }
.notifications-modernized .notification-alert-submit .btn { min-height: 46px; border-radius: 10px; font-size: 14px; font-weight: 650; }
@media (max-width: 767.98px) {
  .notifications-modernized .zbd-alert-add-panel,
  .notifications-modernized .zbd-alert-add-panel.is-configuring { inset: 0; width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border: 0; border-radius: 0; padding: 0 !important; }
  .notifications-modernized .zbd-alert-create-head { padding: max(12px, env(safe-area-inset-top)) 16px 12px; }
  .notifications-modernized .zbd-alert-quota-panel { padding: 8px 16px 24px; }
  .notifications-modernized .zbd-alert-create-head h2 { font-size: 18px; }
  .notifications-modernized .zbd-alert-create-head p { font-size: 12px; }
  .notifications-modernized .zbd-alert-source-tabs { gap: 4px; padding: 0 12px 12px; }
  .notifications-modernized .zbd-alert-source-tab { flex-direction: row; padding: 8px 2px; font-size: 12px; }
  .notifications-modernized .zbd-alert-source-panels { padding: 14px 12px max(16px, env(safe-area-inset-bottom)); }
  .notifications-modernized .zbd-alert-source-panel__head > a { padding: 8px; font-size: 11px; }
  .notifications-modernized .zbd-alert-add-panel .zbd-alert-chip--suggestion { gap: 8px; padding: 10px; }
  .notifications-modernized .zbd-alert-chip--suggestion .zbd-alert-chip__actions .btn { padding: 8px; font-size: 11px; }
  .notifications-modernized .zbd-alert-search-controls { gap: 10px; }
  .notifications-modernized .zbd-alert-type-control { flex: 1 1 100%; }
  .notifications-modernized .zbd-alert-type-control__btn { flex: 1; }
  .notifications-modernized .zbd-alert-lang-control { flex: 1 1 100%; justify-content: space-between; }
  .notifications-modernized .zbd-alert-lang-control__label { display: inline; font-size: 12px; }
  .notifications-modernized .zbd-alert-lang-control .series-language-control { flex: 1; }
  .notifications-modernized .zbd-alert-config-panel__head { padding: 0 16px 14px; }
  .notifications-modernized .notification-alert-rule-body { padding: 0 16px 20px; }
  .notifications-modernized .zbd-alert-selected-item { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .notifications-modernized .zbd-alert-selected-item__body { flex: 1 1 120px; }
  .notifications-modernized .zbd-alert-selected-item__img { width: 48px; height: 68px; }
  .notifications-modernized #zbd-alert-selected-item-clear { margin-left: auto; }
  .notifications-modernized .zbd-alert-create-rule { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .notifications-modernized .zbd-alert-threshold-presets__buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notifications-modernized .notification-alert-submit { padding: 12px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
}
@media (prefers-reduced-motion: reduce) {
  .notifications-modernized :is(.zbd-alert-add-panel, .series-language-toggle, .series-language-option) { transition: none; }
}

@media (min-width: 768px) {
  .notifications-modernized .series-list-title { font-size: 1.75rem; }
  .notifications-modernized .series-filter-dialog { width: min(560px, calc(100% - 3rem)); max-width: 560px; margin: auto; border-radius: 16px; }
  .notifications-modernized .series-filter-dialog .series-sheet-handle { display: none; }
  .notifications-modernized .series-filter-dialog .series-dialog-heading { padding-top: .8rem; }
}
@media (min-width: 992px) {
  .notifications-modernized .series-settings-trigger { flex-direction: row; justify-content: center; gap: .5rem; width: auto; height: 44px; padding: .5rem .75rem; border: 1px solid #3c4654; border-radius: 10px; background: var(--series-panel); font-size: .8rem; }
  .notifications-modernized .series-settings-trigger:hover { border-color: #58a6ff; background: #252e39; }
  .notifications-modernized .series-settings-trigger .series-round-icon { width: 22px; height: 22px; border: 0; background: transparent; box-shadow: none; font-size: 1rem; }
  .notifications-modernized .notification-preferences-trigger { width: auto; white-space: nowrap; }
}
@media (max-width: 767.98px) {
  #zbd-notification-settings-page.notifications-modernized { padding-bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px)); }
  .notifications-modernized .notification-heading { display: block; }
  .notifications-modernized .notification-alerts-heading { display: block; }
  .notifications-modernized .notification-alerts-heading h2 { margin-bottom: 12px; font-size: 16px; }
  .notifications-modernized .notification-alerts-heading .zbd-alert-quota-card { width: 100%; padding: 0; }
  .notifications-modernized .notification-alerts-section { margin-top: 22px; }
  .notifications-modernized .notification-primary-controls { grid-template-columns: minmax(0, 1fr) 64px 54px; align-items: start; gap: 10px 6px; margin-bottom: 16px; }
  .notifications-modernized .series-search-control { grid-column: 1 / -1; }
  .notifications-modernized .series-search-control input { font-size: 16px; }
  .notifications-modernized .notification-primary-controls .zbd-binder-mode-btn { grid-column: 1; grid-row: 2; align-self: center; justify-self: start; }
  .notifications-modernized .notification-preferences-trigger { grid-column: 2; grid-row: 2; width: 64px; }
  .notifications-modernized .notification-preferences-label-desktop { display: none; }
  .notifications-modernized .notification-preferences-label-mobile { display: block; }
  .notifications-modernized .series-settings-tools { grid-column: 3; grid-row: 2; justify-self: end; }
  .notifications-modernized .notification-display-form .form-select { font-size: 16px; }
  .notifications-modernized .notification-local-panel { padding: 13px !important; }
  .notifications-modernized .notification-local-panel h3 { font-size: 13px; }
  .notifications-modernized .notification-local-panel .zbd-local-notification-settings__copy p { font-size: 11px; line-height: 1.6; }
  .notifications-modernized .notification-floating-actions { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .notifications-modernized .series-round-icon { transition: none; }
}

/* Compteur et paywall : présentation du quota de Mes annonces. */
.notifications-modernized .notification-quota-label{font-size:12px;font-weight:400;color:#a5aeb9;line-height:1.5}
.notifications-modernized .notification-quota-value{font-size:14px;line-height:1.5;font-weight:650;white-space:nowrap}
.notifications-modernized .notification-quota-value .text-muted{font-size:13px;font-weight:400}
.notifications-modernized .zbd-alert-dashboard-progress{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
.notifications-modernized .notification-quota-upgrade{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:8px 12px;border:1px solid #f0b90b66;border-radius:10px;background:#f0b90b14;color:#f0b90b;font-size:12px;font-weight:600;line-height:1.4;text-align:center}
.notifications-modernized .notification-quota-upgrade:hover{border-color:#f0b90b;background:#f0b90b24;color:#ffcf40}
.notifications-modernized[data-notifications-plan="free"] #zbd-alert-quota-warning{display:none!important}
.notifications-modernized #zbd-alert-quota-warning{flex-basis:100%;font-size:12px;line-height:1.6}
.notifications-modernized [data-alert-bulk-upgrade="true"] #zbd-alert-quick-hint{display:none!important}
@media(max-width:767.98px){.notifications-modernized .notification-quota-upgrade{flex-basis:100%}}
#zbd-notification-settings-page.notifications-modernized .notification-quota-dialog{width:min(34rem,calc(100% - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid rgba(236,191,60,.28);border-radius:1.4rem;background:radial-gradient(circle at 50% 0%,rgba(236,191,60,.16),transparent 42%),linear-gradient(180deg,#171d27 0%,#0e131b 100%);color:#f0f6fc;box-shadow:0 30px 80px #0009;overflow:hidden}
#zbd-notification-settings-page .notification-quota-dialog.notification-dialog-fallback{top:50%;bottom:auto;margin:0 auto;transform:translateY(-50%)}
#zbd-notification-settings-page .notification-quota-dialog::backdrop{background:rgba(0,0,0,.65)}
#zbd-notification-settings-page .notification-quota-dialog[open]{display:flex;flex-direction:column}
/* Présentation du paywall Historique de stats.php, adaptée au quota d’alertes. */
#zbd-notification-settings-page .notification-quota-heading{display:grid;grid-template-columns:2.75rem minmax(0,1fr) 2.75rem;align-items:center;gap:.5rem;flex-shrink:0;padding:.65rem .65rem 0}
#zbd-notification-settings-page .notification-quota-heading .btn-close{position:static;grid-column:3;grid-row:1;justify-self:end;width:2.75rem;height:2.75rem;margin:0;padding:0;border-radius:50%;background-color:#ffffff0f;background-size:.8rem;box-shadow:none;opacity:.8}
#zbd-notification-settings-page .notification-quota-heading .btn-close:hover,#zbd-notification-settings-page .notification-quota-heading .btn-close:focus-visible{background-color:#ffffff1f;opacity:1}
#zbd-notification-settings-page .notification-quota-brand{grid-column:2;grid-row:1;min-width:0;text-align:center;font-family:var(--zbd-font-sans);font-size:.95rem;font-weight:800;line-height:1.2}
#zbd-notification-settings-page .notification-quota-brand span{color:#f0b90b}
#zbd-notification-settings-page .notification-quota-dialog-body{display:flex;flex-direction:column;align-items:center;min-height:0;padding:.75rem clamp(1.15rem,4vw,2rem) 1.5rem;overflow:auto;overscroll-behavior:contain;text-align:center}
#zbd-notification-settings-page #notification-quota-title{max-width:22ch;margin:0;font-family:var(--zbd-font-sans);font-size:clamp(1.45rem,5vw,2rem);font-weight:900;line-height:1.12;letter-spacing:-.025em;text-wrap:balance}
#zbd-notification-settings-page #notification-quota-description{max-width:46ch;margin:.85rem 0 0;color:#b8c3d1;line-height:1.58}
#zbd-notification-settings-page .notification-quota-coverage{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;margin:.95rem 0 0;color:#ffffffd1;font-size:.82rem;font-weight:650}
#zbd-notification-settings-page .notification-quota-coverage .bi{color:#f0b90b;font-size:.95rem}
#zbd-notification-settings-page .notification-quota-cta{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:min(100%,25rem);min-height:3rem;margin-top:1.2rem;border-radius:999px;font-weight:800;white-space:nowrap}
#zbd-notification-settings-page .notification-quota-price{margin:.65rem 0 0;color:#8b949e;font-size:.78rem}
#zbd-notification-settings-page .notification-quota-dismiss{min-height:44px;margin-top:.25rem;color:#b8c3d1;font-size:.82rem;text-decoration:none;white-space:normal}
#zbd-notification-settings-page .notification-quota-dismiss:hover,#zbd-notification-settings-page .notification-quota-dismiss:focus-visible{color:#f0f6fc}
#zbd-notification-settings-page .notification-quota-alternative{margin:.65rem 0 0;color:#8b949e;font-size:.75rem;line-height:1.5}
@media(max-width:575.98px){#zbd-notification-settings-page .notification-quota-cta{padding:.65rem .75rem;font-size:clamp(.875rem,4vw,1rem);line-height:1.3}}
