/* ======================================================
   APP TOKENS (light + dark)
   ====================================================== */
:root {
    /* ============================================================
       DESIGN SYSTEM PALETTE
       Full scale registered here. Use semantic aliases below.
    ============================================================ */

    /* Primary */
    --color-primary-50: #f7f7f8;
    --color-primary-100: #ececf2;
    --color-primary-200: #d2d3e9;
    --color-primary-300: #b3b4e7;
    --color-primary-400: #8e90e9;
    --color-primary-500: #6467f2;
    --color-primary-600: #2e31e2;
    --color-primary-700: #2123a8;
    --color-primary-800: #1b1c68;
    --color-primary-900: #0f102e;
    --color-primary-950: #070713;

    /* Secondary */
    --color-secondary-50: #f7f7f8;
    --color-secondary-100: #efecf2;
    --color-secondary-200: #ddd2e9;
    --color-secondary-300: #ccb3e7;
    --color-secondary-400: #ba8eea;
    --color-secondary-500: #a863f2;
    --color-secondary-600: #852ce3;
    --color-secondary-700: #6220a9;
    --color-secondary-800: #401b68;
    --color-secondary-900: #1e0f2e;
    --color-secondary-950: #0d0713;

    /* Success */
    --color-success-50: #f7f8f7;
    --color-success-100: #e5ece8;
    --color-success-200: #bcdac7;
    --color-success-300: #8bd1a4;
    --color-success-400: #51cf7f;
    --color-success-500: #21c45d;
    --color-success-600: #21974c;
    --color-success-700: #1e6d3b;
    --color-success-800: #184629;
    --color-success-900: #0e2215;
    --color-success-950: #08120b;

    /* Warning */
    --color-warning-50: #f8f8f7;
    --color-warning-100: #eeebe6;
    --color-warning-200: #e2d4bd;
    --color-warning-300: #dec08b;
    --color-warning-400: #e5ae4f;
    --color-warning-500: #f59f0a;
    --color-warning-600: #ba7d12;
    --color-warning-700: #855c14;
    --color-warning-800: #543c12;
    --color-warning-900: #281d0b;
    --color-warning-950: #130e06;

    /* Danger */
    --color-danger-50: #f8f7f7;
    --color-danger-100: #f0eaea;
    --color-danger-200: #e5caca;
    --color-danger-300: #e2a4a4;
    --color-danger-400: #e57777;
    --color-danger-500: #ef4343;
    --color-danger-600: #d61e1e;
    --color-danger-700: #981e1e;
    --color-danger-800: #5e1919;
    --color-danger-900: #2b0e0e;
    --color-danger-950: #130707;

    /* Neutral */
    --color-neutral-50: #f7f7f7;
    --color-neutral-100: #e9eaeb;
    --color-neutral-200: #cdcdd2;
    --color-neutral-300: #afb0ba;
    --color-neutral-400: #9091a4;
    --color-neutral-500: #70718f;
    --color-neutral-600: #5b5c71;
    --color-neutral-700: #454654;
    --color-neutral-800: #2f2f37;
    --color-neutral-900: #18181b;
    --color-neutral-950: #0c0c0e;

    /* ============================================================
       SEMANTIC ALIASES - Light Mode
    ============================================================ */
    --color-brand: var(--color-primary-600);
    --color-brand-hover: var(--color-primary-700);
    --color-brand-light: var(--color-primary-100);
    --color-brand-border: var(--color-primary-300);
    --color-brand-text: var(--color-primary-700);
    --color-text-on-brand: #ffffff;

    --color-canvas: var(--color-neutral-50);
    --color-surface: #ffffff;
    --color-overlay: var(--color-neutral-100);

    --color-text-primary: var(--color-neutral-900);
    --color-text-secondary: var(--color-neutral-600);
    --color-text-muted: var(--color-neutral-400);

    --color-border: var(--color-neutral-200);
    --color-border-strong: var(--color-neutral-300);

    --color-success-bg: var(--color-success-100);
    --color-success-border: var(--color-success-300);
    --color-success-text: var(--color-success-700);

    --color-warning-bg: var(--color-warning-100);
    --color-warning-border: var(--color-warning-300);
    --color-warning-text: var(--color-warning-700);

    --color-danger-bg: var(--color-danger-100);
    --color-danger-border: var(--color-danger-300);
    --color-danger-text: var(--color-danger-700);

    --priority-high-bg: var(--color-danger-50);
    --priority-high-border: var(--color-danger-300);
    --priority-high-text: var(--color-danger-700);
    --priority-high-bar: var(--color-danger-500);

    --priority-medium-bg: var(--color-warning-50);
    --priority-medium-border: var(--color-warning-300);
    --priority-medium-text: var(--color-warning-700);
    --priority-medium-bar: var(--color-warning-500);

    --priority-low-bg: var(--color-success-50);
    --priority-low-border: var(--color-success-300);
    --priority-low-text: var(--color-success-700);
    --priority-low-bar: var(--color-success-500);

    --status-reported-bg: var(--color-neutral-100);
    --status-reported-border: var(--color-neutral-300);
    --status-reported-text: var(--color-neutral-700);

    --status-accepted-bg: var(--color-primary-100);
    --status-accepted-border: var(--color-primary-300);
    --status-accepted-text: var(--color-primary-700);

    --status-arrived-bg: var(--color-secondary-100);
    --status-arrived-border: var(--color-secondary-300);
    --status-arrived-text: var(--color-secondary-700);

    --status-assessment-bg: var(--color-warning-100);
    --status-assessment-border: var(--color-warning-300);
    --status-assessment-text: var(--color-warning-700);

    --status-resolved-bg: var(--color-success-100);
    --status-resolved-border: var(--color-success-300);
    --status-resolved-text: var(--color-success-700);

    --stat-open-bar: var(--color-brand);
    --stat-assigned-bar: var(--color-success-500);
    --stat-unassigned-bar: var(--color-warning-500);
    --stat-duty-bar: var(--color-neutral-400);

    --unit-off-duty-bg: var(--color-neutral-100);
    --unit-off-duty-border: var(--color-neutral-300);
    --unit-off-duty-text: var(--color-neutral-600);

    --shadow-xs: 0 1px 2px color-mix(in srgb, var(--color-neutral-950) 8%, transparent);
    --shadow-sm: 0 2px 8px color-mix(in srgb, var(--color-neutral-950) 9%, transparent), 0 1px 2px color-mix(in srgb, var(--color-neutral-950) 5%, transparent);
    --shadow-md: 0 4px 16px color-mix(in srgb, var(--color-neutral-950) 11%, transparent), 0 2px 4px color-mix(in srgb, var(--color-neutral-950) 6%, transparent);
    --shadow-lg: 0 8px 24px color-mix(in srgb, var(--color-neutral-950) 14%, transparent), 0 4px 8px color-mix(in srgb, var(--color-neutral-950) 8%, transparent);

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;

    --transition-fast: 100ms ease;
    --transition-base: 180ms ease;
    --transition-slow: 320ms ease;

    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-md: 17px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 30px;

    --app-surface: #ffffff;
    --app-surface-2: #f8f9fa;
    --app-border: rgba(0, 0, 0, 0.08);
    --app-text: #212529;
    --app-muted: #6c757d;
    --app-hover: rgba(0, 0, 0, 0.04);
    --app-input-bg: #ffffff;
    --app-input-border: rgba(0, 0, 0, 0.14);
}

html[data-bs-theme="dark"],
html[data-theme="dark"],
.dark-mode {
    --color-brand: var(--color-primary-400);
    --color-brand-hover: var(--color-primary-300);
    --color-brand-light: var(--color-primary-900);
    --color-brand-border: var(--color-primary-700);
    --color-brand-text: var(--color-primary-300);
    --color-text-on-brand: #ffffff;

    --color-canvas: var(--color-neutral-950);
    --color-surface: var(--color-neutral-900);
    --color-overlay: var(--color-neutral-800);

    --color-text-primary: var(--color-neutral-50);
    --color-text-secondary: var(--color-neutral-300);
    --color-text-muted: var(--color-neutral-500);

    --color-border: var(--color-neutral-700);
    --color-border-strong: var(--color-neutral-600);

    --color-success-bg: var(--color-success-900);
    --color-success-border: var(--color-success-700);
    --color-success-text: var(--color-success-300);

    --color-warning-bg: var(--color-warning-900);
    --color-warning-border: var(--color-warning-700);
    --color-warning-text: var(--color-warning-300);

    --color-danger-bg: var(--color-danger-900);
    --color-danger-border: var(--color-danger-700);
    --color-danger-text: var(--color-danger-300);

    --priority-high-bg: var(--color-danger-900);
    --priority-high-border: var(--color-danger-700);
    --priority-high-text: var(--color-danger-300);
    --priority-high-bar: var(--color-danger-500);

    --priority-medium-bg: var(--color-warning-900);
    --priority-medium-border: var(--color-warning-700);
    --priority-medium-text: var(--color-warning-300);
    --priority-medium-bar: var(--color-warning-500);

    --priority-low-bg: var(--color-success-900);
    --priority-low-border: var(--color-success-700);
    --priority-low-text: var(--color-success-300);
    --priority-low-bar: var(--color-success-500);

    --status-reported-bg: var(--color-neutral-800);
    --status-reported-border: var(--color-neutral-600);
    --status-reported-text: var(--color-neutral-300);

    --status-accepted-bg: var(--color-primary-900);
    --status-accepted-border: var(--color-primary-700);
    --status-accepted-text: var(--color-primary-300);

    --status-arrived-bg: var(--color-secondary-900);
    --status-arrived-border: var(--color-secondary-700);
    --status-arrived-text: var(--color-secondary-300);

    --status-assessment-bg: var(--color-warning-900);
    --status-assessment-border: var(--color-warning-700);
    --status-assessment-text: var(--color-warning-300);

    --status-resolved-bg: var(--color-success-900);
    --status-resolved-border: var(--color-success-700);
    --status-resolved-text: var(--color-success-300);

    --stat-open-bar: var(--color-brand);
    --stat-assigned-bar: var(--color-success-500);
    --stat-unassigned-bar: var(--color-warning-500);
    --stat-duty-bar: var(--color-neutral-500);

    --unit-off-duty-bg: var(--color-neutral-800);
    --unit-off-duty-border: var(--color-neutral-600);
    --unit-off-duty-text: var(--color-neutral-300);

    --app-surface: var(--bs-card-bg);
    --app-surface-2: var(--bs-card-cap-bg, var(--bs-secondary-bg));
    --app-border: rgba(255, 255, 255, 0.1);
    --app-text: #e5e7eb;
    --app-muted: rgba(229, 231, 235, 0.7);
    --app-hover: rgba(255, 255, 255, 0.06);
    --app-input-bg: #0b1220;
    --app-input-border: rgba(255, 255, 255, 0.14);
}

/* ======================================================
   SHARED CARD
   ====================================================== */
.app-card {
    background: var(--app-surface);
    color: var(--app-text);
    border: 1px solid var(--app-border) !important;
}
.app-card-header {
    background: var(--app-surface-2);
    color: var(--app-text);
    border-bottom: 1px solid var(--app-border);
}

/* ======================================================
   SHARED INPUT GROUP
   ====================================================== */
.app-input-addon {
    background: var(--app-input-bg) !important;
    border-color: var(--app-input-border) !important;
    color: var(--app-muted) !important;
}
.app-input {
    background: var(--app-input-bg) !important;
    border-color: var(--app-input-border) !important;
    color: var(--app-text) !important;
}
.app-input::placeholder {
    color: var(--app-muted) !important;
}

/* ======================================================
   SHARED TABLE
   ====================================================== */
.app-table {
    color: var(--app-text);
    border-color: var(--app-border);
}
.app-table thead th {
    background: var(--app-surface-2);
    color: var(--app-text);
    border-bottom: 1px solid var(--app-border);
}
.app-table tbody td {
    border-top: 1px solid var(--app-border);
}
.app-table.table-hover tbody tr:hover {
    background: var(--app-hover);
    color: var(--app-text);
}

/* ======================================================
   DROPDOWN THEME
   ====================================================== */
.dropdown-menu {
    background: var(--app-surface) !important;
    border-color: var(--app-border) !important;
}
.dropdown-item {
    color: var(--app-text) !important;
}
.dropdown-item:hover {
    background: var(--app-hover) !important;
}
.dropdown-divider {
    border-top-color: var(--app-border) !important;
}

/* ======================================================
   MOBILE CARDS - GENERIC BASE (REUSE ACROSS MODULES)
   ====================================================== */
.app-mobile-cards {
    overflow: visible;
}

.app-mcard {
    position: relative;
    overflow: visible;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    padding: 14px;
    background: var(--app-surface);
    color: var(--app-text);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
}
html[data-bs-theme="dark"] .app-mcard {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.app-mcard.dropdown-open {
    z-index: 2000;
}
.app-mobile-cards .dropdown-menu {
    z-index: 2005;
}

.app-mmeta {
    font-size: 0.85rem;
    color: var(--app-muted);
}
.app-mtitle {
    font-weight: 800;
    font-size: 1.02rem;
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
    color: var(--app-text);
}

.app-kv {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0.35rem 0.75rem;
    align-items: start;
}
.app-k {
    font-size: 0.82rem;
    color: var(--app-muted);
    font-weight: 700;
}
.app-v {
    font-size: 0.9rem;
    color: var(--app-text);
    word-break: break-word;
}

/* inline vs kebab actions */
.app-actions-inline {
    display: inline-flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.app-actions-inline .btn {
    border-radius: 12px;
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.app-actions-inline .btn i {
    margin: 0;
}

.app-actions-menu {
    display: none;
}
.app-actions-menu .dropdown-toggle::after {
    display: none;
}
.app-actions-menu .dropdown-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-text);
}
.app-actions-menu .dropdown-toggle:hover {
    background: var(--app-hover) !important;
}
.app-actions-menu .dropdown-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 575.98px) {
    .app-actions-inline {
        display: none !important;
    }
    .app-actions-menu {
        display: inline-flex !important;
    }
    .app-mobile-cards .dropdown-menu {
        min-width: 190px;
    }

    /* DataTable/mobile-card row actions: keep menu rows opaque in dark mode */
    .app-mobile-cards .app-actions-menu .dropdown-menu,
    .dataTables_wrapper .sponsors-row-actions .dropdown-menu,
    div.dt-container .sponsors-row-actions .dropdown-menu {
        background-color: var(--bs-dropdown-bg) !important;
        border: 1px solid var(--bs-dropdown-border-color);
    }

    .app-mobile-cards .app-actions-menu .dropdown-menu .dropdown-item,
    .dataTables_wrapper .sponsors-row-actions .dropdown-menu .dropdown-item,
    div.dt-container .sponsors-row-actions .dropdown-menu .dropdown-item {
        background-color: var(--bs-dropdown-bg) !important;
        color: var(--bs-dropdown-link-color) !important;
    }

    .app-mobile-cards .app-actions-menu .dropdown-menu .dropdown-item:hover,
    .app-mobile-cards .app-actions-menu .dropdown-menu .dropdown-item:focus,
    .dataTables_wrapper .sponsors-row-actions .dropdown-menu .dropdown-item:hover,
    .dataTables_wrapper .sponsors-row-actions .dropdown-menu .dropdown-item:focus,
    div.dt-container .sponsors-row-actions .dropdown-menu .dropdown-item:hover,
    div.dt-container .sponsors-row-actions .dropdown-menu .dropdown-item:focus {
        background-color: var(--bs-dropdown-link-hover-bg) !important;
        color: var(--bs-dropdown-link-hover-color) !important;
    }
}

/* Keep kebab/list action menus opaque in dark mode on desktop as well. */
@media (min-width: 576px) {
    html[data-bs-theme="dark"] .app-actions-menu .dropdown-menu,
    html[data-bs-theme="dark"] .admin-index-row-actions-menu .dropdown-menu,
    html[data-bs-theme="dark"] .sponsors-row-actions .dropdown-menu {
        background-color: var(--bs-dropdown-bg) !important;
        border: 1px solid var(--bs-dropdown-border-color);
    }

    html[data-bs-theme="dark"] .app-actions-menu .dropdown-menu .dropdown-item,
    html[data-bs-theme="dark"] .admin-index-row-actions-menu .dropdown-menu .dropdown-item,
    html[data-bs-theme="dark"] .sponsors-row-actions .dropdown-menu .dropdown-item {
        background-color: var(--bs-dropdown-bg) !important;
        color: var(--bs-dropdown-link-color) !important;
    }

    html[data-bs-theme="dark"] .app-actions-menu .dropdown-menu .dropdown-item:hover,
    html[data-bs-theme="dark"] .app-actions-menu .dropdown-menu .dropdown-item:focus,
    html[data-bs-theme="dark"] .admin-index-row-actions-menu .dropdown-menu .dropdown-item:hover,
    html[data-bs-theme="dark"] .admin-index-row-actions-menu .dropdown-menu .dropdown-item:focus,
    html[data-bs-theme="dark"] .sponsors-row-actions .dropdown-menu .dropdown-item:hover,
    html[data-bs-theme="dark"] .sponsors-row-actions .dropdown-menu .dropdown-item:focus {
        background-color: var(--bs-dropdown-link-hover-bg) !important;
        color: var(--bs-dropdown-link-hover-color) !important;
    }
}

/* optional: icon contrast on colored buttons */
.btn-success i,
.btn-danger i {
    color: #fff !important;
}
.btn-warning i {
    color: #111827 !important;
}

/* ======================================================
   RESPONDER INCIDENT DASHBOARD
   ====================================================== */
body[data-page="responder-incidents-index"] .app-main-shell,
body[data-page="responder-incidents-index"] .app-main,
body[data-page="responder-incidents-index"] .app-container {
    max-width: 100%;
    overflow-x: hidden;
}

.responder-dashboard,
.responder-dashboard *,
.responder-dashboard *::before,
.responder-dashboard *::after {
    box-sizing: border-box;
}

.responder-dashboard {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 0 1.5rem;
    color: var(--color-text-primary);
}

.responder-dashboard__canvas {
    max-width: 100%;
    overflow-x: hidden;
    padding: clamp(1rem, 1vw + 0.75rem, 1.5rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, var(--color-canvas) 0%, var(--color-overlay) 100%);
}

.responder-dashboard button,
.responder-dashboard a,
.responder-dashboard [role="button"],
.responder-dashboard .responder-incident-card,
.responder-dashboard .responder-filter-card,
.responder-dashboard .responder-filter-summary-card,
.responder-dashboard .responder-feed-panel,
.responder-dashboard .form-select,
.responder-dashboard .form-control,
.responder-dashboard .page-link {
    transition:
        color var(--transition-base),
        background-color var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base),
        opacity var(--transition-base);
}

.responder-dashboard a {
    color: inherit;
    text-decoration: none;
}

.responder-dashboard .form-control,
.responder-dashboard .form-select {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-overlay);
    color: var(--color-text-primary);
    box-shadow: none;
}

.responder-dashboard .form-control::placeholder {
    color: var(--color-text-muted);
}

.responder-dashboard .form-control:focus,
.responder-dashboard .form-select:focus,
.responder-dashboard .form-check-input:focus,
.responder-dashboard .page-link:focus,
.responder-dashboard .btn:focus {
    border-color: var(--color-brand-border);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--color-brand) 18%, transparent);
}

.responder-dashboard .form-check-input {
    border-color: var(--color-border-strong);
    background-color: var(--color-surface);
}

.responder-dashboard .form-check-input:checked {
    background-color: var(--color-brand);
    border-color: var(--color-brand);
}

.responder-dashboard__summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.responder-metric-card,
.responder-panel,
.responder-filter-card,
.responder-filter-summary-card,
.responder-feed-panel,
.responder-incident-card,
.responder-empty-state {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.responder-metric-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 84px;
    padding: 0.75rem 1rem;
    border-top: 3px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.responder-metric-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: var(--radius-md);
    font-size: 18px;
}

.responder-metric-card__content {
    min-width: 0;
    flex: 1 1 auto;
}

.responder-metric-card__label {
    margin-bottom: 3px;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.responder-metric-card__value {
    color: var(--color-text-primary);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.responder-metric-card__meta {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card--open {
    border-top-color: var(--stat-open-bar);
}

.stat-card--open .responder-metric-card__icon {
    background: color-mix(in srgb, var(--stat-open-bar) 14%, var(--color-surface));
    color: var(--stat-open-bar);
}

.stat-card--assigned {
    border-top-color: var(--stat-assigned-bar);
}

.stat-card--assigned .responder-metric-card__icon {
    background: color-mix(in srgb, var(--stat-assigned-bar) 14%, var(--color-surface));
    color: var(--stat-assigned-bar);
}

.stat-card--unassigned {
    border-top-color: var(--stat-unassigned-bar);
}

.stat-card--unassigned .responder-metric-card__icon {
    background: color-mix(in srgb, var(--stat-unassigned-bar) 14%, var(--color-surface));
    color: var(--stat-unassigned-bar);
}

.stat-card--duty {
    border-top-color: var(--stat-duty-bar);
}

.stat-card--duty .responder-metric-card__icon {
    background: color-mix(in srgb, var(--stat-duty-bar) 14%, var(--color-surface));
    color: var(--stat-duty-bar);
}

.responder-dashboard__row2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 280px);
    gap: 0.625rem;
    margin-top: 0.75rem;
    align-items: stretch;
}

.responder-summary-card {
    min-height: 68px;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
}

.responder-dashboard__row2 .unit-card-header {
    align-items: center;
    gap: 0.5rem;
}

.responder-dashboard__row2 .unit-card-header > div {
    min-width: 0;
    flex: 1 1 auto;
}

.responder-dashboard__row2 .unit-card-label {
    margin-bottom: 1px;
    font-size: 10px;
}

.responder-dashboard__row2 .unit-card-title {
    margin-bottom: 0;
    font-size: var(--text-base);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.responder-dashboard__row2 .unit-card-sub {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.responder-dashboard__row2 .unit-status-badge {
    display: inline-flex;
    flex-shrink: 0;
    max-width: 132px;
    padding: 3px 9px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.responder-dashboard__row2 .unit-team-chip,
.responder-dashboard__row2 .unit-coverage-body,
.responder-dashboard__row2 .no-schedule-box {
    display: none;
}

.responder-filter-summary-card {
    min-height: 68px;
    padding: 0;
    overflow: hidden;
}

.responder-filter-summary-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    text-align: left;
}

.responder-filter-summary-toggle__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.125rem;
}

.responder-filter-summary-toggle:hover,
.responder-filter-summary-toggle:focus-visible {
    background: var(--color-overlay);
}

.responder-filter-summary-toggle__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.responder-filter-summary-toggle__meta {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.responder-filter-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    min-height: 18px;
    padding: 0 0.35rem;
    border: 1px solid var(--color-brand-border);
    border-radius: var(--radius-full);
    background: var(--color-brand-light);
    color: var(--color-brand-text);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.responder-filter-summary-toggle__chevron {
    margin-left: auto;
    color: var(--color-text-muted);
    font-size: 11px;
    transition: transform var(--transition-base);
}

.responder-filter-summary-toggle[aria-expanded="true"] .responder-filter-summary-toggle__chevron {
    transform: rotate(180deg);
}

.responder-desktop-filter-collapse {
    margin-top: 0.625rem;
}

.responder-filter-card--inline {
    position: static;
    top: auto;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
}

.responder-filter-form--inline .responder-filter-grid {
    display: flex;
    align-items: flex-end;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.responder-filter-form--inline .filter-field {
    flex: 1 1 140px;
    min-width: 120px;
    max-width: 200px;
    margin: 0;
}

.responder-filter-form--inline .filter-field + .filter-field {
    margin-top: 0;
}

.responder-filter-form--inline .filter-field--switch {
    flex: 0 1 190px;
}

.responder-filter-form--inline .filter-field--actions {
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
    margin-left: auto;
}

.responder-filter-form--inline .filter-field .form-select,
.responder-filter-form--inline .filter-field .form-control {
    min-height: 32px;
    padding: 0.3rem 0.5rem;
}

.responder-filter-form--inline .responder-filter-switch {
    min-height: 32px;
    margin: 0 0 1px;
}

.responder-filter-form--inline .responder-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 0.375rem;
}

.responder-filter-form--inline .responder-button--primary,
.responder-filter-form--inline .responder-button--secondary {
    width: auto;
    min-height: 32px;
    padding: 0.3rem 0.8rem;
    font-size: var(--text-sm);
    white-space: nowrap;
}

.responder-filter-form--inline .btn-apply,
.responder-filter-form--inline .btn-reset {
    margin-top: 0;
}

.responder-dashboard__support {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 1rem;
    margin-top: 1rem;
}

.responder-panel {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
}

.responder-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.responder-panel__eyebrow {
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.responder-panel__title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.2;
}

.responder-panel__copy {
    margin: 4px 0 0;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.45;
}

.responder-status-chip,
.responder-assignment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 2px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-overlay);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.2;
}

.responder-inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.34rem 0.68rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-overlay);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1;
}

.responder-status-chip.is-on-duty,
.responder-inline-pill.is-on-duty,
.responder-assignment-chip.is-viewer {
    background: var(--color-success-bg);
    border-color: var(--color-success-border);
    color: var(--color-success-text);
}

.responder-assignment-chip.is-viewer {
    padding: 1px 7px;
    font-size: 10px;
}

.responder-status-chip--off-duty {
    background: var(--unit-off-duty-bg);
    border-color: var(--unit-off-duty-border);
    color: var(--unit-off-duty-text);
}

.responder-inline-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.responder-coverage-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.responder-coverage-item {
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.responder-coverage-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.responder-coverage-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.responder-coverage-item__title {
    color: var(--color-text-primary);
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.3;
}

.responder-coverage-item__meta,
.responder-coverage-item__copy {
    margin-top: 0.2rem;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.responder-dashboard__content {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-top: 1rem;
}

.responder-dashboard__filters,
.responder-dashboard__feed {
    min-width: 0;
}

.responder-dashboard__feed-shell {
    margin-top: 0.75rem;
    min-width: 0;
}

.responder-feed-panel {
    min-width: 0;
    overflow: hidden;
}

.responder-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--color-border);
}

.responder-feed-header__title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.2;
}

.responder-feed-header__copy,
.responder-feed-header__page {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    line-height: 1.4;
}

.responder-feed-header__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.feed-title-block {
    min-width: 0;
}

.feed-pagination-meta {
    margin-top: 2px;
}

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

.responder-location-button,
.responder-button--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: auto;
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 700;
}

.responder-location-button:hover,
.responder-button--secondary:hover,
.responder-location-button:focus-visible,
.responder-button--secondary:focus-visible {
    border-color: var(--color-border-strong);
    background: var(--color-overlay);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.btn-use-location {
    padding: 0.3rem 0.75rem;
    font-size: var(--text-xs);
    background: var(--color-surface);
    gap: 5px;
}

.btn-use-location:hover,
.btn-use-location:focus-visible {
    border-color: var(--color-brand);
    color: var(--color-brand);
    background: var(--color-surface);
}

.responder-filter-card {
    position: sticky;
    top: 1rem;
    max-width: 100%;
    overflow: hidden;
    padding: 1rem;
}

.responder-filter-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--color-border);
}

.responder-filter-card__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-weight: 700;
}

.responder-filter-card__title-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.responder-filter-card__title-meta {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 600;
}

.responder-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-text-secondary);
}

.responder-filter-toggle:hover,
.responder-filter-toggle:focus-visible {
    border-color: var(--color-border-strong);
    background: var(--color-overlay);
    color: var(--color-text-primary);
}

.responder-filter-toggle i {
    transition: transform var(--transition-base);
}

.responder-filter-toggle.collapsed i {
    transform: rotate(180deg);
}

.responder-filter-grid {
    display: block;
}

.filter-field {
    margin-bottom: 0;
}

.filter-field + .filter-field {
    margin-top: 0.5rem;
}

.responder-filter-form .form-label,
.filter-field label {
    display: block;
    margin-bottom: 3px;
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.filter-field .form-select,
.filter-field .form-control {
    min-height: auto;
    height: auto;
    padding: 0.375rem 0.625rem;
    font-size: var(--text-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-overlay);
    color: var(--color-text-primary);
    width: 100%;
    box-sizing: border-box;
}

.filter-field .form-select:focus,
.filter-field .form-control:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand) 12%, transparent);
    outline: none;
}

.filter-card .form-select,
.filter-card .form-control,
.filter-card input[type="date"] {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: var(--text-sm);
    min-height: unset;
    height: auto;
    line-height: 1.4;
}

.responder-filter-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: auto;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.responder-filter-switch .form-check-input {
    flex: 0 0 auto;
    margin: 0;
    width: 2.35rem;
    height: 1.25rem;
}

.responder-filter-switch .form-check-label {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.responder-filter-actions {
    display: grid;
    gap: 0.375rem;
}

.responder-button--primary,
.responder-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    border: 1px solid var(--color-brand);
    border-radius: var(--radius-sm);
    background: var(--color-brand);
    color: var(--color-text-on-brand);
    font-size: var(--text-sm);
    font-weight: 700;
}

.responder-button--primary {
    width: 100%;
    padding: 0.4rem 1rem;
    min-height: auto;
    font-weight: 600;
}

.responder-button--primary:hover,
.responder-button--primary:focus-visible,
.responder-view-button:hover,
.responder-view-button:focus-visible {
    background: var(--color-brand-hover);
    border-color: var(--color-brand-hover);
    color: var(--color-text-on-brand);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}

.responder-button--secondary {
    width: 100%;
    min-height: auto;
    padding: 0.35rem 1rem;
    font-weight: 500;
}

.btn-apply {
    margin-top: 0.5rem;
}

.btn-reset {
    margin-top: 0.375rem;
}

.responder-mobile-filter-bar {
    position: sticky;
    top: 0.75rem;
    z-index: 6;
    margin-bottom: 1rem;
}

.responder-mobile-filter-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-sm);
}

.responder-mobile-filter-trigger:hover,
.responder-mobile-filter-trigger:focus-visible {
    border-color: var(--color-border-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.responder-mobile-filter-trigger__label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 700;
}

.responder-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0 0.55rem;
    border: 1px solid var(--color-brand-border);
    border-radius: var(--radius-full);
    background: var(--color-brand-light);
    color: var(--color-brand-text);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1;
}

.responder-filter-offcanvas {
    width: min(92vw, 360px);
    background: var(--color-surface);
    color: var(--color-text-primary);
}

.responder-filter-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--color-border);
}

.responder-filter-offcanvas .offcanvas-title {
    color: var(--color-text-primary);
    font-size: var(--text-base);
    font-weight: 700;
}

.responder-filter-offcanvas .offcanvas-body {
    padding-top: 1rem;
}

.feed-table-header {
    margin-bottom: 0;
}

.incident-table-wrap {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.incident-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.incident-table thead tr {
    background: var(--color-overlay);
}

.incident-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 7px 10px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-overlay);
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.incident-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    font-size: var(--text-sm);
}

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

.incident-table tbody tr:hover td {
    background: var(--color-overlay);
}

.incident-table tbody tr:active td {
    background: var(--color-brand-light);
}

.incident-row {
    cursor: pointer;
}

.incident-bar-cell {
    width: 4px !important;
    padding: 0 !important;
}

.incident-bar {
    width: 4px;
    min-height: 52px;
    height: 100%;
    border-radius: 2px 0 0 2px;
}

.incident-bar.priority-high {
    background: var(--priority-high-bar);
}

.incident-bar.priority-medium {
    background: var(--priority-medium-bar);
}

.incident-bar.priority-low {
    background: var(--priority-low-bar);
}

.incident-info-cell {
    min-width: 0;
}

.incident-info-cell > span {
    display: block;
}

.row-inc-ref {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.row-inc-title {
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-inc-sub {
    color: var(--color-text-secondary);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-priority-badge {
    font-size: 10px;
}

.row-score,
.row-casualties,
.row-time {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 10px;
    line-height: 1.3;
}

.row-status-badge {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-unit-name {
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-your-unit {
    margin-top: 2px;
}

.row-reporter-name,
.row-reporter-phone {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.row-reporter-name {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-reporter-phone {
    margin-top: 1px;
    color: var(--color-text-muted);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-reporter-name span,
.row-reporter-phone span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-date {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    white-space: nowrap;
}

.row-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: var(--color-brand);
    color: var(--color-text-on-brand);
    font-size: 14px;
}

.row-view-btn:hover,
.row-view-btn:focus-visible {
    background: var(--color-brand-hover);
    color: var(--color-text-on-brand);
    transform: scale(1.06);
}

.incident-table-empty {
    padding: 2rem !important;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    text-align: center;
}

.incident-table-empty i {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 24px;
}

.feed-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.875rem;
}

.responder-incident-list {
    display: grid;
    gap: 0.5rem;
}

.responder-incident-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    max-width: 100%;
    overflow: hidden;
    padding: 0.625rem 0.875rem;
}

.responder-incident-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.incident-left-bar {
    width: 4px;
    align-self: stretch;
    border-radius: 3px;
    flex-shrink: 0;
}

.incident-card.priority-high .incident-left-bar {
    background: var(--priority-high-bar);
}

.incident-card.priority-medium .incident-left-bar {
    background: var(--priority-medium-bar);
}

.incident-card.priority-low .incident-left-bar {
    background: var(--priority-low-bar);
}

.responder-incident-card__body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.responder-incident-card__priority-status {
    display: contents;
}

.responder-incident-card__priority {
    flex: 0 0 80px;
    text-align: center;
}

.responder-incident-card__insight {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.responder-incident-card__status {
    flex: 0 0 auto;
    min-width: 84px;
    text-align: center;
}

.responder-incident-card__assignment {
    flex: 0 0 auto;
    min-width: 132px;
    text-align: right;
}

.responder-incident-card__reported {
    flex: 0 0 auto;
    min-width: 84px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    text-align: right;
    white-space: nowrap;
}

.responder-incident-card__action {
    flex: 0 0 auto;
    flex-shrink: 0;
}

.responder-incident-card__reference {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 1px;
}

.incident-title-block {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    overflow: hidden;
}

.incident-title-block > * {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.responder-incident-card__title {
    margin: 0 0 2px;
    color: var(--color-text-primary);
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.2;
}

.responder-incident-card__meta {
    margin-top: 0;
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.responder-incident-card__location,
.responder-incident-card__reporter,
.responder-incident-card__contact {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.responder-incident-card__location {
    margin-top: 0;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    line-height: 1.3;
    overflow-wrap: anywhere;
    white-space: nowrap;
    overflow: hidden;
}

.responder-incident-card__reporter {
    margin-top: 3px;
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    line-height: 1.3;
    justify-content: flex-end;
}

.responder-incident-card__contact {
    margin-top: 1px;
    color: var(--color-text-muted);
    font-size: 10px;
    line-height: 1.3;
    justify-content: flex-end;
}

.responder-incident-card__location i,
.responder-incident-card__reporter i,
.responder-incident-card__contact i {
    color: var(--color-text-muted);
    line-height: 1.3;
    flex-shrink: 0;
}

.responder-incident-card__location-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.responder-incident-card__priority-inline {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.responder-incident-card__ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 3px;
    font-size: 10px;
    color: var(--color-text-muted);
    line-height: 1.2;
}

.responder-ai-pill {
    padding: 1px 7px;
}

.responder-incident-card__score {
    color: var(--color-text-muted);
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.responder-incident-card__unit {
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.responder-incident-card__assignment-chip-wrap {
    margin-top: 3px;
}

.mobile-card-row-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-top: 3px;
}

.mobile-card-reporter {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1 1 auto;
}

.mobile-card-date--solo {
    margin-left: auto;
}

.responder-incident-card__date {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    line-height: 1.3;
    white-space: nowrap;
}

.responder-incident-card__time {
    color: var(--color-text-muted);
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
}

.responder-view-button {
    min-width: 42px;
    min-height: auto;
    padding: 6px 9px;
    line-height: 1;
}

.responder-view-button__label {
    display: none;
}

.badge-priority-high,
.badge-priority-medium,
.badge-priority-low,
.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1;
}

.badge-priority-high,
.badge-priority-medium,
.badge-priority-low {
    padding: 2px 8px;
}

.badge-priority-neutral {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border: 1px solid var(--status-reported-border);
    border-radius: var(--radius-full);
    background: var(--status-reported-bg);
    color: var(--status-reported-text);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1;
}

.badge-priority-high {
    background: var(--priority-high-bg);
    border-color: var(--priority-high-border);
    color: var(--priority-high-text);
}

.badge-priority-medium {
    background: var(--priority-medium-bg);
    border-color: var(--priority-medium-border);
    color: var(--priority-medium-text);
}

.badge-priority-low {
    background: var(--priority-low-bg);
    border-color: var(--priority-low-border);
    color: var(--priority-low-text);
}

.badge-status {
    padding: 3px 10px;
    font-weight: 600;
}

.badge-status.reported {
    background: var(--status-reported-bg);
    border-color: var(--status-reported-border);
    color: var(--status-reported-text);
}

.badge-status.accepted {
    background: var(--status-accepted-bg);
    border-color: var(--status-accepted-border);
    color: var(--status-accepted-text);
}

.badge-status.arrived {
    background: var(--status-arrived-bg);
    border-color: var(--status-arrived-border);
    color: var(--status-arrived-text);
}

.badge-status.assessment {
    background: var(--status-assessment-bg);
    border-color: var(--status-assessment-border);
    color: var(--status-assessment-text);
}

.badge-status.resolved {
    background: var(--status-resolved-bg);
    border-color: var(--status-resolved-border);
    color: var(--status-resolved-text);
}

.responder-incident-card__casualties {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 10px;
    line-height: 1.3;
}

.responder-empty-state {
    padding: 2rem 1.25rem;
    text-align: center;
}

.responder-empty-state--nested {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--color-overlay);
    border-color: var(--color-border);
    box-shadow: none;
}

.responder-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-overlay);
    color: var(--color-text-secondary);
    font-size: 1.15rem;
}

.responder-empty-state--nested .responder-empty-state__icon {
    width: auto;
    height: auto;
    margin-bottom: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    color: var(--color-text-muted);
    font-size: 1.5rem;
}

.responder-empty-state__title {
    color: var(--color-text-primary);
    font-size: var(--text-base);
    font-weight: 700;
}

.responder-empty-state__copy {
    margin-top: 0.35rem;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.responder-empty-state--nested .responder-empty-state__title {
    margin-top: 8px;
    font-size: var(--text-sm);
}

.responder-empty-state--nested .responder-empty-state__copy {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    line-height: 1.45;
}

.responder-pagination-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.responder-pagination-summary {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.4;
}

.responder-pagination {
    max-width: 100%;
    overflow-x: auto;
    margin-left: auto;
    padding-top: 0;
}

.responder-pagination .pagination {
    margin-bottom: 0;
    gap: 0.35rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.responder-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm) !important;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    box-shadow: none;
}

.responder-pagination .page-link:hover {
    border-color: var(--color-border-strong);
    background: var(--color-overlay);
    color: var(--color-text-primary);
}

.responder-pagination .page-item.active .page-link {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-text-on-brand);
}

.responder-pagination .page-item.disabled .page-link {
    border-color: var(--color-border);
    background: var(--color-overlay);
    color: var(--color-text-muted);
}

@media (max-width: 1199.98px) {
    .responder-dashboard__support {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .responder-dashboard__content {
        grid-template-columns: 1fr;
    }

    .responder-filter-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .responder-dashboard__summary {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 0.625rem;
        padding: 0.125rem 0.625rem 0.5rem;
        margin: 0 -0.625rem 0.875rem;
    }

    .responder-dashboard__summary::-webkit-scrollbar {
        display: none;
    }

    .responder-dashboard__canvas {
        padding: 0.625rem;
        border-radius: var(--radius-lg);
    }

    .responder-dashboard__summary > .responder-metric-card {
        flex: 0 0 150px;
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        min-height: 92px;
        padding: 0.75rem 0.875rem;
        margin-bottom: 0;
        scroll-snap-align: start;
    }

    .responder-dashboard__summary > .responder-metric-card .responder-metric-card__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 16px;
    }

    .responder-dashboard__summary > .responder-metric-card .responder-metric-card__label {
        margin-bottom: 4px;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .responder-dashboard__summary > .responder-metric-card .responder-metric-card__value {
        font-size: 28px;
        font-weight: 800;
        line-height: 1;
    }

    .responder-dashboard__summary > .responder-metric-card .responder-metric-card__meta {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .feed-table-footer {
        align-items: stretch;
    }

    .responder-pagination-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .responder-pagination {
        margin-left: 0;
        width: 100%;
    }

    .responder-pagination .pagination {
        justify-content: flex-start;
    }

    .responder-dashboard__row2 {
        gap: 0.5rem;
        margin-top: 0;
        grid-template-columns: 1fr;
    }

    .primary-unit-card,
    .scheduled-units-card {
        padding: 0.625rem 0.875rem;
        margin-bottom: 0;
        border-radius: var(--radius-md);
    }

    .primary-unit-card .unit-card-header,
    .scheduled-units-card .unit-card-header {
        align-items: center;
        gap: 0.5rem;
    }

    .primary-unit-card .unit-card-header > div,
    .scheduled-units-card .unit-card-header > div {
        min-width: 0;
        flex: 1 1 auto;
    }

    .primary-unit-card .unit-card-sub,
    .primary-unit-card .unit-team-chip,
    .scheduled-units-card .unit-card-sub,
    .scheduled-units-card .unit-coverage-body,
    .scheduled-units-card .no-schedule-box {
        display: none !important;
    }

    .primary-unit-card .unit-card-label,
    .scheduled-units-card .unit-card-label {
        margin-bottom: 2px;
        font-size: 10px;
    }

    .primary-unit-card .unit-card-title,
    .scheduled-units-card .unit-card-title {
        margin-bottom: 0;
        font-size: var(--text-base);
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .primary-unit-card .unit-status-badge,
    .scheduled-units-card .unit-status-badge {
        display: inline-flex;
        flex-shrink: 0;
        max-width: 120px;
        padding: 2px 8px;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .scheduled-units-card .unit-summary-line {
        display: block;
        margin-top: 2px;
        color: var(--color-text-secondary);
        font-size: var(--text-xs);
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .scheduled-units-card .unit-ambulance-name,
    .scheduled-units-card .unit-member-count {
        display: inline;
        color: inherit;
        font-size: inherit;
    }

    .responder-feed-header {
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: nowrap;
        margin-bottom: 0.625rem;
        padding-bottom: 0.5rem;
    }

    .responder-feed-header .feed-title-block {
        display: flex;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
    }

    .responder-feed-header__title {
        font-size: var(--text-lg);
        font-weight: 800;
    }

    .responder-feed-header__copy,
    .responder-feed-header__page,
    .feed-pagination-meta {
        font-size: var(--text-xs);
        margin: 0;
    }

    .responder-feed-header__meta {
        width: auto;
        flex-shrink: 0;
        justify-content: flex-end;
        gap: 0.5rem;
        flex-wrap: nowrap;
        margin-left: 0;
    }

    .responder-feed-panel {
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .feed-table-header {
        margin-bottom: 0.625rem;
    }

    .responder-location-button {
        width: auto;
        padding: 0.4rem 0.625rem;
        border-radius: var(--radius-sm);
        font-size: 13px;
        gap: 4px;
        white-space: nowrap;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .responder-incident-card {
        align-items: stretch;
        gap: 0;
        padding: 0;
        margin-bottom: 0.625rem;
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .incident-left-bar {
        border-radius: 0;
    }

    .responder-incident-card__body {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.625rem 0.75rem 0;
    }

    .responder-incident-card__priority-status {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.125rem;
    }

    .responder-incident-card__priority,
    .responder-incident-card__status,
    .responder-incident-card__assignment,
    .responder-incident-card__action {
        width: 100%;
        min-width: 0;
        text-align: left;
        white-space: normal;
    }

    .responder-incident-card__priority {
        flex: 0 0 auto;
        text-align: left;
    }

    .responder-incident-card__priority-inline {
        align-items: flex-start;
        gap: 1px;
    }

    .responder-incident-card__status {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        text-align: right;
    }

    .responder-incident-card .badge-status,
    .responder-incident-card .status-badge {
        display: inline-block;
        max-width: 140px;
        padding: 2px 8px;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .responder-incident-card__casualties,
    .responder-incident-card__ai,
    .responder-incident-card__score {
        margin-top: 0;
        font-size: 10px;
    }

    .responder-incident-card__reference {
        margin-bottom: 0;
        font-size: 10px;
        line-height: 1.2;
    }

    .responder-incident-card__title {
        margin-bottom: 0;
        font-size: var(--text-base);
        font-weight: 800;
        line-height: 1.2;
    }

    .responder-incident-card__meta {
        margin-bottom: 0;
        font-size: var(--text-xs);
        line-height: 1.2;
    }

    .responder-incident-card__location {
        max-width: 100%;
        font-size: var(--text-xs);
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .responder-incident-card__assignment {
        align-items: flex-start;
        gap: 0;
        text-align: left;
    }

    .responder-incident-card__unit {
        font-size: var(--text-xs);
    }

    .responder-incident-card__assignment-chip-wrap {
        margin-top: 0.25rem;
    }

    .mobile-card-row-bottom {
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.25rem;
        margin-top: 0.375rem;
        padding-top: 0.375rem;
        border-top: 1px solid var(--color-border);
    }

    .mobile-card-reporter {
        gap: 1px;
        min-width: 0;
        text-align: left;
    }

    .responder-incident-card__reporter,
    .responder-incident-card__contact {
        justify-content: flex-start;
        margin-top: 0;
    }

    .mobile-card-reporter-name {
        display: flex;
        align-items: center;
        gap: 3px;
        color: var(--color-text-secondary);
        font-size: var(--text-xs);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-card-reporter-phone {
        display: flex;
        align-items: center;
        gap: 3px;
        color: var(--color-text-muted);
        font-size: 10px;
        white-space: nowrap;
    }

    .responder-incident-card__reported,
    .mobile-card-date {
        min-width: auto;
        flex: 0 0 auto;
        align-items: flex-end;
        text-align: right;
        white-space: nowrap;
    }

    .mobile-card-date--solo {
        margin-left: auto;
    }

    .responder-incident-card__date,
    .responder-incident-card__time {
        font-size: 10px;
        line-height: 1.3;
    }

    .responder-incident-card__action,
    .card-action-area,
    .view-btn-wrapper {
        width: 100%;
        padding: 0;
        margin: 0 -0.75rem;
    }

    .responder-incident-card__reason {
        display: block;
        -webkit-line-clamp: initial;
        -webkit-box-orient: initial;
        overflow: visible;
    }

    .responder-view-button {
        width: 100%;
        min-height: auto;
        padding: 0.625rem;
        margin-top: 0.5rem;
        border: none;
        border-radius: 0;
        border-bottom-left-radius: var(--radius-md);
        border-bottom-right-radius: var(--radius-md);
        font-size: var(--text-sm);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .responder-view-button:active {
        background: var(--color-brand-hover);
    }

    .responder-view-button__label {
        display: inline;
    }

    .responder-pagination .pagination {
        justify-content: center;
    }

    .incident-table-wrap {
        display: none !important;
    }

    .incident-mobile-list {
        display: grid !important;
    }
}

@media (min-width: 768px) {
    .feed-table-header {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .incident-mobile-list {
        display: none !important;
    }

    .incident-table-wrap {
        display: block !important;
    }

    .feed-table-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.625rem 1rem;
        border-top: 1px solid var(--color-border);
    }

    .feed-table-footer .responder-pagination {
        padding-top: 0;
    }

    .feed-table-footer .pagination {
        justify-content: flex-end;
    }
}

@media (max-width: 479.98px) {
    .responder-mobile-filter-trigger {
        padding: 0.8rem 0.9rem;
    }

    .responder-panel,
    .responder-filter-card {
        padding-inline: 1rem;
    }
}

@media (max-width: 390px) {
    .btn-use-location-text {
        display: none;
    }
}
