/* Scoped to Notifications so other portal forms keep their existing layout. */
#notifications {color-scheme:dark}
#notifications h3 {margin:0 0 10px;font-size:1.15rem}
#notifications p {overflow-wrap:anywhere}
#notifications .notification-tabs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px;border:1px solid #334e7b;border-radius:16px;background:#0b1936;margin:22px 0}
#notifications .notification-tabs button {padding:12px 8px;border-color:transparent;background:transparent;font-size:.9rem}
#notifications .notification-tabs button[aria-selected="true"] {background:#32558c;border-color:#7de7ed;color:white}
#notifications button:focus-visible,#notifications summary:focus-visible {outline:3px solid #75e7ed;outline-offset:4px}
#notifications .notification-account {border:1px solid #3b557e;border-radius:14px;background:#0d1c3a;padding:16px;margin:0 0 24px}
#notifications .notification-account details {margin:0}
#notifications .notification-account summary {font-weight:750;line-height:1.6}
#notifications #notification-selected {color:#7de7ed;font-weight:500}
#notifications #notification-recipient-form {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
#notifications #notification-recipient-form label {margin:0}
#notifications #notification-recipient-form button {margin-bottom:0}
#notifications #notification-recipients {display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}
#notifications label {display:block;margin:0;color:#d7e2f7;line-height:1.5;font-size:.9rem}
#notifications input:not([type="checkbox"]),#notifications select,#notifications textarea {display:block;width:100%;min-width:0;margin-top:8px}
#notifications fieldset {min-width:0;margin:0;padding:20px;border:1px solid #3b557e;border-radius:16px;background:#0d1c3a;display:grid;gap:16px}
#notifications legend {padding:0 8px;color:#7de7ed;font-size:1rem;font-weight:800}
#notifications #notification-create {display:grid;gap:22px}
#notifications #notification-create fieldset>.muted {margin:0}
#notifications .notification-check {display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:10px;flex-wrap:nowrap;cursor:pointer}
#notifications .notification-check input[type="checkbox"] {display:inline-block;width:19px;min-width:19px;height:19px;margin:2px 0 0;padding:0;flex:0 0 19px;accent-color:#79e5ed;cursor:pointer}
#notifications .notification-check span {flex:1;min-width:0}
#notifications details {margin-top:20px}
#notifications details>summary {line-height:1.5}
#notifications .notification-advanced {padding:16px;border:1px solid #334e7b;border-radius:12px;margin-top:0;background:#101f3c}
#notifications .notification-advanced[open] {display:block}
#notifications .notification-advanced>label,#notifications .notification-advanced>div,#notifications .notification-advanced>button {margin-top:16px}
#notifications .notification-card {border:1px solid #3b557e;border-radius:16px;margin:14px 0;background:#0d1c3a}
#notifications .notification-card>summary {display:flex;justify-content:space-between;align-items:center;gap:14px;cursor:pointer;padding:18px;list-style:none}
#notifications .notification-card>summary::after {content:"+";font-size:1.3rem;color:#7de7ed}
#notifications .notification-card[open]>summary::after {content:"−"}
#notifications .notification-card>summary strong {flex:1;min-width:0}
#notifications .notification-card .chip {margin:0;flex-shrink:0}
#notifications .notification-body {padding:0 18px 20px;display:grid;gap:16px}
#notifications .notification-body>.muted {margin:0}
#notifications .notification-preview {display:grid;gap:7px;padding:18px;border-radius:14px;border:1px solid #58739a;background:linear-gradient(145deg,#223858,#172942);overflow-wrap:anywhere}
#notifications .notification-preview small {font-size:.68rem;letter-spacing:.09em;color:#a9c9e0;font-weight:750}
#notifications .notification-preview strong {color:#fff}
#notifications .notification-preview p {margin:0;white-space:pre-wrap;line-height:1.5}
#notifications .notification-actions {display:flex;gap:10px;flex-wrap:wrap}
#notifications .notification-two-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#notifications .notification-setting-row {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid #3b557e}
#notifications .notification-setting-row p {margin:0;font-weight:750}
#notifications #notification-delivery-controls {display:grid;gap:20px}
#notifications .notification-weekdays {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#notifications .notification-weekdays .notification-check span {flex:0 1 auto}
#notifications .notification-campaign {border-bottom:1px solid #33476b;padding:16px 0}
#notifications .notification-campaign:first-child {padding-top:0}
#notifications .notification-campaign p {margin:8px 0}
#notifications #notification-history {max-height:480px;overflow:auto;margin-bottom:24px}
#notifications #notification-compose-status:empty {display:none}
#notifications #notification-pane-activity h3:not(:first-child) {margin-top:28px}
#notifications #notification-pane-settings>details {margin-top:16px}
#notifications button:disabled {cursor:default}
@media(max-width:590px) {
  #notifications .notification-tabs {grid-template-columns:repeat(2,minmax(0,1fr))}
  #notifications #notification-recipient-form,#notifications .notification-two-columns {grid-template-columns:1fr}
  #notifications fieldset {padding:16px}
  #notifications .notification-actions>button {width:100%}
  #notifications .notification-card>summary {padding:15px;gap:9px}
  #notifications .notification-body {padding:0 14px 16px}
  #notifications .notification-advanced {padding:13px}
  #notifications .notification-weekdays {grid-template-columns:repeat(3,minmax(0,1fr))}
}

