.notification-shell,
.notification-modal,
.botanik-rich-editor {
    --app-text: #0f172a;
    --app-text-muted: #475569;
    --app-surface: #ffffff;
    --app-surface-raised: #ffffff;
    --app-surface-muted: #f1f5f9;
    --app-border: #dbe4ee;
    --app-border-strong: #7c8798;
    --app-primary: #0f766e;
    --app-primary-strong: #115e59;
    --app-primary-soft: #ccfbf1;
    --app-focus: 0 0 0 3px rgba(13, 148, 136, 0.18);
    --app-shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
    color-scheme: light;
}

.notification-shell {
    display: grid;
    gap: 1rem;
    min-height: 100%;
    color: var(--app-text, #0f172a);
    background: #f6f8fc;
}

.notification-heading,
.notification-panel {
    min-width: 0;
    border: 1px solid var(--app-border, #dbe4ee);
    border-radius: var(--app-radius-lg, 1.125rem);
    background: var(--app-surface, #ffffff);
    box-shadow: var(--app-shadow, 0 18px 48px rgba(15, 23, 42, 0.09));
}

.notification-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.5rem);
    background:
        radial-gradient(circle at 92% -45%, rgba(79, 70, 229, 0.12), transparent 17rem),
        linear-gradient(145deg, #ffffff, #f0fdfa);
}

.notification-heading::after {
    position: absolute;
    top: -4rem;
    right: 7rem;
    width: 10rem;
    height: 10rem;
    border: 1px solid rgba(13, 148, 136, 0.14);
    border-radius: 999px;
    content: "";
    pointer-events: none;
}

.notification-heading-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.notification-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    color: #0f766e;
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.notification-heading h1,
.notification-modal h2 {
    margin: 0;
    color: var(--app-text, #0f172a);
    font-weight: 720;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.notification-heading h1 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.15;
}

.notification-heading p,
.notification-modal p {
    margin: 0.45rem 0 0;
    color: var(--app-text-muted, #475569);
    font-size: 0.875rem;
    line-height: 1.5;
}

.notification-panel {
    overflow: hidden;
}

.notification-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid var(--app-border, #dbe4ee);
    background: #f8fafc;
}

.notification-search-field {
    display: grid;
    width: min(30rem, 100%);
    min-width: 0;
    gap: 0.35rem;
}

.notification-search-field > label,
.notification-field label,
.notification-field-label {
    color: #334155;
    font-size: 0.75rem;
    font-weight: 680;
}

.notification-search-control {
    position: relative;
    min-width: 0;
}

.notification-search-control > i {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    color: #64748b;
    font-size: 0.8rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.notification-search,
.notification-field input,
.notification-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    border: 1px solid var(--app-border-strong, #cbd5e1);
    border-radius: var(--app-radius-sm, 0.625rem);
    background: #ffffff;
    color: var(--app-text, #0f172a);
    padding: 0.625rem 0.75rem;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.notification-search {
    padding-left: 2.35rem;
}

.notification-search::placeholder,
.notification-field input::placeholder,
.notification-field textarea::placeholder {
    color: #64748b;
}

.notification-search:hover,
.notification-field input:hover,
.notification-field textarea:hover {
    border-color: rgba(13, 148, 136, 0.48);
}

.notification-search:focus,
.notification-field input:focus,
.notification-field textarea:focus {
    border-color: var(--app-primary, #0f766e);
    background: #ffffff;
    box-shadow: var(--app-focus, 0 0 0 3px rgba(13, 148, 136, 0.18));
    outline: none;
}

.notification-summary {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.notification-summary span {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--app-border, #dbe4ee);
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 620;
}

.notification-summary span.live {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.notification-summary strong {
    color: #0f172a;
    font-size: 0.8rem;
}

.notification-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.notification-table {
    width: 100%;
    min-width: 64rem;
    border-collapse: collapse;
    color: #1e293b;
    font-size: 0.8125rem;
}

.notification-table th,
.notification-table td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.notification-table th {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 720;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.notification-table tbody tr {
    transition: background-color 130ms ease;
}

.notification-table tbody tr:hover {
    background: #f0fdfa;
}

.notification-table tbody tr:last-child td {
    border-bottom: 0;
}

.notification-title-cell {
    min-width: 15rem;
    max-width: 28rem;
    color: #0f172a;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.notification-muted,
.notification-record-id {
    color: var(--app-text-muted, #475569);
    font-size: 0.75rem;
}

.notification-badge {
    display: inline-flex;
    min-height: 1.75rem;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
}

.notification-badge.live {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.notification-badge.pending {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

.notification-badge.closed {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.notification-audio-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--app-text-muted, #475569);
    font-size: 0.72rem;
    font-weight: 650;
    white-space: nowrap;
}

.notification-audio-status.ready {
    color: #0f766e;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.notification-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border: 1px solid var(--app-border-strong, #cbd5e1);
    border-radius: var(--app-radius-sm, 0.625rem);
    background: #ffffff;
    color: #334155;
    padding: 0.625rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 680;
    line-height: 1;
    text-decoration: none;
    transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.notification-button:hover:not(:disabled) {
    border-color: rgba(13, 148, 136, 0.48);
    background: #f0fdfa;
    transform: translateY(-1px);
}

.notification-button:focus-visible {
    border-color: var(--app-primary, #0f766e);
    box-shadow: var(--app-focus, 0 0 0 3px rgba(13, 148, 136, 0.18));
    outline: none;
}

.notification-button.primary {
    border-color: #0f766e;
    background: linear-gradient(135deg, #0f766e, #4f46e5);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.2);
}

.notification-button.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #115e59, #4338ca);
}

.notification-button.danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.notification-button.danger:hover:not(:disabled) {
    border-color: #fca5a5;
    background: #fee2e2;
}

.notification-button.icon-only {
    width: 2.75rem;
    min-width: 2.75rem;
    padding: 0;
    font-size: 1rem;
}

.notification-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.notification-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    border: 1px solid #fecaca;
    border-radius: var(--app-radius, 0.875rem);
    padding: 0.75rem 0.875rem;
    background: #fff1f2;
    color: #991b1b;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.notification-alert.success {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.notification-loading,
.notification-empty {
    display: flex;
    min-height: 16rem;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    color: var(--app-text-muted, #475569);
    text-align: center;
}

.notification-loading {
    gap: 0.8rem;
}

.notification-loading > div {
    display: grid;
    gap: 0.2rem;
    text-align: left;
}

.notification-loading strong,
.notification-empty h2 {
    color: #1e293b;
    font-size: 0.95rem;
}

.notification-loading span:not(.notification-spinner),
.notification-empty p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
}

.notification-empty {
    flex-direction: column;
    gap: 0.65rem;
}

.notification-empty h2 {
    margin: 0;
}

.notification-empty-icon,
.notification-danger-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(13, 148, 136, 0.24);
    border-radius: 0.9rem;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 1.2rem;
}

.notification-spinner {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    border: 2px solid #cbd5e1;
    border-top-color: var(--app-primary, #0f766e);
    border-radius: 999px;
    animation: notification-spin 700ms linear infinite;
}

.notification-spinner.small {
    width: 0.95rem;
    height: 0.95rem;
}

@keyframes notification-spin {
    to { transform: rotate(360deg); }
}

.notification-pagination {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.125rem;
    border-top: 1px solid var(--app-border, #dbe4ee);
    color: var(--app-text-muted, #475569);
    font-size: 0.75rem;
}

.notification-pagination > div {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.notification-pagination strong {
    color: #1e293b;
}

.notification-mobile-list {
    display: none;
}

.notification-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
        max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(7px);
}

.notification-modal {
    display: flex;
    width: min(100%, 42rem);
    max-height: calc(100dvh - 1.5rem);
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--app-border-strong, #cbd5e1);
    border-radius: var(--app-radius-lg, 1.125rem);
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.22);
}

.notification-modal.wide {
    width: min(100%, 72rem);
}

.notification-modal.compact {
    width: min(100%, 34rem);
}

.notification-modal-header,
.notification-modal-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
}

.notification-modal-header {
    justify-content: space-between;
    border-bottom: 1px solid var(--app-border, #dbe4ee);
    background: #f8fafc;
}

.notification-modal-header > div {
    min-width: 0;
}

.notification-modal-header h2 {
    font-size: 1rem;
    line-height: 1.35;
}

.notification-modal-header p {
    font-size: 0.75rem;
}

.notification-modal-body {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem;
}

.notification-modal-body > .notification-alert {
    margin-bottom: 1rem;
}

.notification-modal-body.preview-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #eef2f7;
}

.notification-modal-actions {
    justify-content: flex-end;
    border-top: 1px solid var(--app-border, #dbe4ee);
    padding-bottom: max(0.9rem, env(safe-area-inset-bottom));
    background: #ffffff;
}

.notification-modal-header.danger-header {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1.125rem;
}

.notification-danger-icon {
    flex: 0 0 3rem;
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.notification-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.notification-field {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 0.38rem;
}

.notification-field.full {
    grid-column: 1 / -1;
}

.notification-field textarea {
    min-height: 7.5rem;
    resize: vertical;
    line-height: 1.5;
}

.notification-audio-preview,
.notification-preview-audio {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #99f6e4;
    border-radius: var(--app-radius-sm, 0.625rem);
    background: #f0fdfa;
    padding: 0.7rem 0.8rem;
}

.notification-audio-preview > span,
.notification-preview-audio strong {
    flex: 0 0 auto;
    color: #115e59;
    font-size: 0.75rem;
    font-weight: 700;
}

.notification-audio-preview audio,
.notification-preview-audio audio {
    width: min(100%, 28rem);
    min-width: 0;
    height: 2.5rem;
}

.notification-preview-audio {
    justify-content: space-between;
    background: #ffffff;
}

.notification-preview-audio > div {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.notification-preview-audio span {
    max-width: 42rem;
    overflow: hidden;
    color: var(--app-text-muted, #475569);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-field-label {
    display: block;
}

.notification-check {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--app-border, #dbe4ee);
    border-radius: var(--app-radius-sm, 0.625rem);
    background: #f8fafc;
    color: #334155;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
}

.notification-check input {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    accent-color: var(--app-primary-strong, #115e59);
}

.notification-check > span {
    display: grid;
    gap: 0.12rem;
}

.notification-check strong {
    color: #1e293b;
    font-size: 0.78rem;
}

.notification-check small {
    color: var(--app-text-muted, #475569);
    font-size: 0.6875rem;
    line-height: 1.4;
}

.notification-preview-frame {
    width: 100%;
    min-height: min(62dvh, 44rem);
    border: 0;
    border-radius: var(--app-radius, 0.875rem);
    background: #ffffff;
    box-shadow: 0 0 0 1px #dbe4ee;
}

.notification-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

.botanik-rich-editor {
    min-width: 0;
    margin-top: 0.25rem;
}

.botanik-rich-editor [hidden] {
    display: none !important;
}

.botanik-rich-editor-modebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--app-text-muted, #475569);
    font-size: 0.72rem;
}

.botanik-rich-editor-modebar > span {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.4;
}

.botanik-rich-editor-modebar button {
    display: inline-flex;
    min-height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: var(--app-radius-sm, 0.625rem);
    background: #f0fdfa;
    color: #115e59;
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 680;
}

.botanik-rich-editor-modebar button:hover,
.botanik-rich-editor-modebar button[aria-pressed="true"] {
    background: #ccfbf1;
}

.botanik-rich-editor [data-html-source-panel] label {
    display: block;
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 680;
}

.botanik-rich-editor [data-html-source] {
    display: block;
    width: 100%;
    min-height: 22rem;
    resize: vertical;
    border: 1px solid var(--app-border-strong);
    border-radius: var(--app-radius-sm, 0.625rem);
    padding: 0.9rem;
    background: #f8fafc;
    color: #0f172a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.botanik-rich-editor .ql-toolbar.ql-snow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-color: var(--app-border-strong, #cbd5e1);
    border-radius: var(--app-radius-sm, 0.625rem) var(--app-radius-sm, 0.625rem) 0 0;
    background: #f8fafc;
    padding: 0.35rem;
}

.botanik-rich-editor .ql-toolbar.ql-snow .ql-formats {
    display: inline-flex;
    margin-right: 0 !important;
}

.botanik-rich-editor .ql-toolbar.ql-snow button {
    width: 2.75rem;
    height: 2.75rem;
}

.botanik-rich-editor .ql-toolbar.ql-snow .ql-picker-label {
    min-height: 2.75rem;
    padding-top: 0.75rem;
}

.botanik-rich-editor .ql-container.ql-snow {
    /* Quill's default 100% height includes the space needed by the toolbar. */
    height: auto;
    min-height: 18rem;
    border-color: var(--app-border-strong, #cbd5e1);
    border-radius: 0 0 var(--app-radius-sm, 0.625rem) var(--app-radius-sm, 0.625rem);
    background: #ffffff;
    color: #0f172a;
    font-size: 0.9375rem;
}

.botanik-rich-editor .ql-editor {
    height: auto;
    min-height: 18rem;
    line-height: 1.6;
}

.botanik-rich-editor .ql-editor.ql-blank::before {
    color: #64748b;
}

.botanik-rich-editor .ql-snow .ql-stroke {
    stroke: #475569;
}

.botanik-rich-editor .ql-snow .ql-fill,
.botanik-rich-editor .ql-snow .ql-stroke.ql-fill {
    fill: #475569;
}

.botanik-rich-editor .ql-snow .ql-picker {
    color: #334155;
}

.botanik-rich-editor .ql-snow .ql-picker-options,
.botanik-rich-editor .ql-snow .ql-tooltip {
    border-color: var(--app-border-strong, #cbd5e1);
    background: #ffffff;
    color: #0f172a;
}

@media (max-width: 820px) {
    .notification-heading,
    .notification-toolbar,
    .notification-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-heading .notification-button.primary {
        width: 100%;
    }

    .notification-search-field {
        width: 100%;
    }

    .notification-summary {
        justify-content: flex-start;
    }

    .notification-desktop-table {
        display: none;
    }

    .notification-mobile-list {
        display: grid;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .notification-mobile-card {
        min-width: 0;
        border: 1px solid var(--app-border, #dbe4ee);
        border-radius: var(--app-radius, 0.875rem);
        background: #ffffff;
        padding: 0.875rem;
    }

    .notification-mobile-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .notification-mobile-card h3 {
        margin: 0.65rem 0 0;
        color: #0f172a;
        font-size: 0.9rem;
        font-weight: 680;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .notification-mobile-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        margin: 0.75rem 0;
    }

    .notification-mobile-meta > div {
        min-width: 0;
        border-radius: 0.65rem;
        background: #f1f5f9;
        padding: 0.6rem;
    }

    .notification-mobile-meta dt {
        color: #475569;
        font-size: 0.625rem;
        font-weight: 680;
    }

    .notification-mobile-meta dd {
        margin: 0.2rem 0 0;
        color: #334155;
        font-size: 0.72rem;
        font-weight: 620;
        overflow-wrap: anywhere;
    }

    .notification-mobile-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .notification-mobile-actions .notification-button {
        min-width: 0;
    }

    .notification-mobile-actions.content-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.75rem 2.75rem;
    }

    .notification-mobile-actions.content-actions .notification-button.danger {
        grid-column: 1 / -1;
    }

    .notification-pagination > div {
        justify-content: space-between;
    }

    .notification-form-grid {
        grid-template-columns: 1fr;
    }

    .notification-field.full {
        grid-column: auto;
    }

    .notification-preview-audio {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-preview-audio audio {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .notification-shell.app-page-shell {
        padding: 0.75rem;
    }

    .notification-modal-backdrop {
        align-items: end;
        padding: 0;
    }

    .notification-modal,
    .notification-modal.wide,
    .notification-modal.compact {
        width: 100%;
        max-height: calc(100dvh - env(safe-area-inset-top));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 1.125rem 1.125rem 0 0;
    }

    .notification-modal-body {
        padding: 0.875rem;
    }

    .notification-modal-actions {
        flex-wrap: wrap-reverse;
        padding: 0.75rem 0.875rem max(0.75rem, env(safe-area-inset-bottom));
    }

    .notification-modal-actions .notification-button {
        flex: 1 1 9rem;
    }

    .notification-preview-frame {
        min-height: 70dvh;
    }

    .botanik-rich-editor-modebar {
        align-items: stretch;
        flex-direction: column;
    }

    .botanik-rich-editor-modebar button {
        width: 100%;
    }

    .botanik-rich-editor [data-html-source],
    .botanik-rich-editor .ql-container.ql-snow,
    .botanik-rich-editor .ql-editor {
        min-height: 16rem;
    }
}

@media (max-width: 430px) {
    .notification-heading {
        padding: 1rem;
    }

    .notification-toolbar {
        padding: 0.875rem;
    }

    .notification-summary span {
        flex: 1 1 auto;
        justify-content: center;
    }

    .notification-mobile-meta {
        grid-template-columns: 1fr;
    }

    .notification-mobile-meta.compact-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notification-mobile-actions.content-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .notification-mobile-actions.content-actions .notification-button.icon-only {
        width: 100%;
    }

    .notification-modal-header {
        padding: 0.8rem 0.875rem;
    }

    .notification-modal-header p {
        max-width: calc(100vw - 5.5rem);
    }

    .notification-modal-header.danger-header p {
        max-width: none;
    }
}

@media (max-width: 360px) {
    .notification-shell.app-page-shell {
        padding: 0.625rem;
    }

    .notification-mobile-list {
        padding: 0.625rem;
    }

    .notification-mobile-card {
        padding: 0.75rem;
    }

    .notification-pagination .notification-button > span {
        display: none;
    }

    .notification-pagination .notification-button {
        width: 2.75rem;
        min-width: 2.75rem;
        padding: 0;
    }

    .notification-modal-header.danger-header {
        flex-direction: column;
    }

    .notification-modal-actions .notification-button {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notification-button,
    .notification-table tbody tr {
        transition: none;
    }

    .notification-spinner {
        animation-duration: 1.5s;
    }
}
