/* Preferencias compartidas en portal y campus; conserva el tamaño del diálogo. */
.account-dialog.is-notifications-view:not(.is-settings-action) .account-dialog-content { display: flex; flex-direction: column; overflow: hidden; padding-block: 18px; }
.account-dialog .notification-panel { flex: 1; min-height: 0; height: auto; width: 100%; max-width: none; margin: 0; color: #21344e; }
.account-dialog .notification-heading { display: flex; align-items: center; gap: 13px; border: 0; padding: 0; margin: 0 0 12px; flex-shrink: 0; }
.account-dialog .notification-heading > .notification-heading-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; margin: 0; background: #edf4ff; color: #245dac; }
.account-dialog .notification-heading h3 { font-size: 23px; font-weight: 700; letter-spacing: -.5px; line-height: 1.25; }
.account-dialog .notification-heading p { font-size: 12px; font-weight: 400; color: #586b82; line-height: 1.5; margin: 5px 0 0; }
.notification-panel svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.account-dialog .notification-form { gap: 0; }
.account-dialog .notification-form .settings-notifications-body { position: relative; overflow-x: hidden; padding: 2px 4px 4px 2px; }
.account-dialog .notification-form .settings-fieldset { margin: 0 0 10px; }
.account-dialog .notification-form legend { color: #293c55; font-size: 12px; font-weight: 650; line-height: 1.4; margin: 0 0 9px; }
.account-dialog .notification-channels legend { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.notification-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.notification-channel { border: 1px solid #dce5ef; border-radius: 13px; background: #fff; min-width: 0; transition: border-color 160ms, background 160ms, box-shadow 160ms; }
.notification-channel.is-selected { border-color: #a9c6eb; background: #f6faff; }
.notification-channel:focus-within { outline: 3px solid #bfd5f5; outline-offset: 2px; }
.notification-channel-control { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 12px 0; cursor: pointer; }
.notification-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; background: #eef3fa; color: #58708e; }
.notification-channel.is-selected .notification-icon, .notification-topic.is-selected .notification-icon { background: #e7f0ff; color: #245dac; }
.notification-channel-copy { flex: 1; min-width: 0; }
.account-dialog .notification-channel-copy strong { display: block; color: #243751; font-size: 13px; font-weight: 650; line-height: 1.35; }
.notification-channel-copy > span { display: block; color: #5d6f85; font-size: 10px; font-weight: 400; line-height: 1.5; margin-top: 3px; }
.notification-channel.is-selected:not(.is-locked) .notification-channel-copy > span { color: #245dac; }
.notification-channel-detail { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px; }
.notification-channel-detail p { flex: 1; min-width: 0; }
.notification-channel-detail p { color: #586b82; font-size: 11px; line-height: 1.45; font-weight: 400; margin: 0; }
.account-dialog .notification-channel-detail button { border: 0; background: transparent; color: #245dac; font: inherit; font-size: 11px; font-weight: 600; min-height: 32px; cursor: pointer; padding: 4px 0; text-align: left; flex-shrink: 0; }
.notification-channel.is-locked .notification-channel-control { cursor: default; }
.notification-coming { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 0 3px; min-height: 24px; color: #697a90; }
.notification-coming > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.notification-coming svg { width: 15px; height: 15px; }
.notification-coming strong, .notification-coming > span:last-child { font-size: 10px; font-weight: 500; color: #586b82; }
.notification-coming > span:last-child { background: #f1f4f8; border-radius: 20px; padding: 3px 8px; color: #52657e; }
.notification-presets { display: flex; align-items: center; gap: 6px; margin: 0 0 9px; }
.account-dialog .notification-presets button { border: 1px solid #dce5ef; border-radius: 8px; background: #fff; color: #586b82; font: inherit; font-size: 11px; font-weight: 600; min-height: 32px; padding: 6px 13px; cursor: pointer; transition: background 160ms, color 160ms, border-color 160ms; }
.account-dialog .notification-presets button[aria-pressed="true"] { color: #245dac; background: #edf4ff; border-color: #bfd3ef; }
.notification-presets > span { margin-left: auto; color: #61748c; font-size: 10px; font-weight: 400; text-align: right; }
.account-dialog .notification-topics legend { float: left; line-height: 32px; margin-bottom: 8px; }
.notification-topics .notification-presets { float: right; margin-bottom: 8px; }
.notification-topics .notification-presets > span { display: none; }
.notification-topics .notification-topic-list { clear: both; }
.notification-topic-list { display: grid; gap: 6px; }
.account-dialog .notification-topic { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) 44px; gap: 0 11px; align-items: center; border: 1px solid #e3eaf3; border-radius: 10px; background: #fff; padding: 8px 12px; min-width: 0; cursor: pointer; transition: background 160ms, border-color 160ms; }
.account-dialog .notification-topic.is-selected { background: #f9fbff; border-color: #d6e2f3; }
.notification-topic .notification-icon { grid-row: 1; }
.notification-topic-copy { grid-row: 1; min-width: 0; }
.account-dialog .notification-topic-copy strong { font-size: 13px; font-weight: 600; line-height: 1.4; color: #293e58; }
.account-dialog .notification-topic-copy small { font-size: 11px; font-weight: 400; line-height: 1.4; color: #61748c; margin: 3px 0 0; }
.account-dialog .notification-form .settings-switch { display: grid; place-items: center; width: 44px; height: 32px; flex: 0 0 44px; }
.account-dialog .notification-form .settings-switch input { inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 8px; }
.account-dialog .notification-form .settings-switch > span { width: 38px; height: 22px; background: #acbacb; }
.account-dialog .notification-form .settings-switch > span::after { width: 16px; height: 16px; margin: 3px; }
.account-dialog .notification-form .settings-switch input:checked + span { background: #245dac; }
.account-dialog .notification-form .settings-switch input:checked + span::after { transform: translateX(16px); }
.account-dialog .notification-form .settings-switch input:disabled { cursor: default; }
.account-dialog .notification-form .settings-switch input:disabled + span { opacity: .5; }
.account-dialog .notification-form .settings-switch input:focus-visible + span { outline: 3px solid #90b6e9; outline-offset: 3px; }
.notification-topic .settings-switch { grid-column: 3; grid-row: 1; }
.notification-topic-state { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.notification-topic.is-selected .notification-topic-state { color: #245dac; }
.notification-summary { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 9px; background: #f0f7f6; color: #247065; }
.notification-summary svg { width: 16px; height: 16px; }
.notification-summary p { margin: 0; color: #32685f; font-size: 11px; font-weight: 400; line-height: 1.5; }
.notification-account-note { margin: 6px 0 0; color: #61748c; }
.notification-account-note summary { cursor: pointer; font-size: 10px; line-height: 1.5; padding: 5px 2px; }
.notification-account-note p { font-size: 11px; font-weight: 400; line-height: 1.6; padding: 7px 10px; margin: 0 0 8px; border-left: 2px solid #cbd8e9; }
.account-dialog .notification-form .notification-footer { align-items: center; flex-direction: row; flex-shrink: 0; gap: 14px; min-height: 56px; padding-top: 10px; }
.notification-footer-copy { min-width: 0; flex: 1; }
.notification-footer-copy > span { display: block; font-size: 11px; line-height: 1.4; color: #586b82; font-weight: 400; }
.notification-form[data-notification-dirty="true"] .notification-footer-copy > span { color: #8b6520; }
.account-dialog .notification-footer .account-action-feedback { font-size: 11px; line-height: 1.45; margin: 3px 0 0; overflow-wrap: anywhere; }
.notification-footer-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.account-dialog .notification-footer-actions button { min-height: 44px; border-radius: 9px; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.4; padding: 10px 13px; cursor: pointer; }
.account-dialog .notification-footer-actions .notification-discard { background: #fff; color: #526780; border: 1px solid #d8e3ef; }
.account-dialog .notification-footer-actions button:disabled { cursor: default; opacity: .55; }
.account-dialog .notification-form button:focus-visible, .notification-account-note summary:focus-visible { outline: 3px solid #90b6e9; outline-offset: 3px; }
.account-dialog .notification-form button:not(:disabled):hover { filter: brightness(.97); }
.account-dialog.is-notifications-view .settings-load-message { flex-shrink: 0; }
@media (min-width: 721px) {
  .account-dialog.is-notifications-view:not(.is-settings-action) .account-dialog-layout { grid-template-rows: minmax(0, 1fr); }
  .account-dialog.is-notifications-view .account-dialog-tabs { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 720px) {
  .account-dialog.is-notifications-view:not(.is-settings-action) .account-dialog-content { padding: 18px 16px 14px; }
  .account-dialog .notification-heading { gap: 10px; margin-bottom: 16px; }
  .account-dialog .notification-heading h3 { font-size: 21px; }
  .account-dialog .notification-heading > .notification-heading-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .notification-channel-grid { gap: 8px; }
  .notification-channel-control { flex-wrap: wrap; padding: 10px 10px 0; gap: 6px; }
  .notification-channel-control .notification-icon { display: none; }
  .notification-channel-copy { flex-basis: calc(100% - 50px); }
  .notification-channel-detail { flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 10px 10px; }
  .account-dialog .notification-channel-copy strong { font-size: 11px; }
  .account-dialog .notification-form .notification-footer { flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  .notification-footer-copy { flex-basis: 100%; }
  .notification-footer-actions { width: 100%; justify-content: flex-end; }
  .notification-footer-actions button[type="submit"] { flex: 1; }
  .account-dialog .notification-form .notification-footer-actions button[type="submit"] { width: auto; }
  .notification-presets > span { font-size: 9px; }
  .account-dialog .notification-topics legend { float: none; line-height: 1.4; margin-bottom: 9px; }
  .notification-topics .notification-presets { float: none; margin-bottom: 9px; }
}
@media (max-width: 360px) {
  .notification-channel-grid { grid-template-columns: 1fr; }
  .notification-channel-control { flex-wrap: nowrap; }
  .notification-channel-control .notification-icon { display: grid; }
  .notification-channel-copy { flex-basis: 0; }
  .account-dialog .notification-channel-copy strong { font-size: 12px; }
  .notification-channel-detail { padding-top: 3px; }
  .account-dialog .notification-topic { grid-template-columns: minmax(0, 1fr) 44px; gap: 0 8px; padding: 9px 10px; }
  .notification-topic > .notification-icon { display: none; }
  .notification-topic .settings-switch, .notification-topic-state { grid-column: 2; }
  .notification-presets > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .notification-panel *, .notification-panel *::after { transition: none !important; animation: none !important; }
}
