* {
    box-sizing: border-box;
}

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #182033;
    --muted: #6f7890;
    --line: #e6e9f0;
    --primary: #315efb;
    --primary-dark: #2447c8;
    --success: #16794b;
    --success-bg: #eaf8f0;
    --danger: #b42318;
    --danger-bg: #fff0ee;
    --shadow: 0 14px 36px rgba(24, 32, 51, .08);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
}

.topbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 12px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    color: var(--text);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--text);
    color: white;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    padding: 9px 0;
    color: var(--text);
    font-weight: 650;
    white-space: nowrap;
}

.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    content: "";
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.user-menu span {
    font-weight: 650;
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin: 34px auto;
}

.login-wrapper {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.login-card {
    width: min(470px, 100%);
    padding: 34px;
}

.login-card h1,
.page-header h1 {
    margin: 0 0 8px;
}

.login-card p,
.page-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.form-group {
    margin-top: 20px;
}

.form-group.no-margin {
    margin-top: 0;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #cfd5e2;
    border-radius: 11px;
    background: white;
    color: var(--text);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(49, 94, 251, .13);
    border-color: var(--primary);
}

.field-help,
.table-subline,
.import-example small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 11px;
    background: var(--primary);
    color: white;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.button:hover {
    background: var(--primary-dark);
}

.button-secondary {
    border: 1px solid var(--line);
    background: white;
    color: var(--text);
}

.button-secondary:hover {
    background: #f1f3f8;
}

.button-full {
    width: 100%;
    margin-top: 24px;
}

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.danger-link {
    color: var(--danger);
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 650;
}

.alert-success {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid #bfe7cf;
}

.alert-error {
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid #ffd0cb;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.page-actions,
.empty-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    padding: 22px;
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.stat-value {
    margin-top: 8px;
    font-size: 32px;
    font-weight: 850;
}

.info-card,
.table-card,
.filters-card,
.form-card,
.detail-card {
    padding: 24px;
}

.info-card,
.table-card {
    margin-top: 22px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2,
.detail-card h2 {
    margin: 0 0 6px;
}

.section-heading p,
.muted {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.empty-state {
    padding: 34px 20px;
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    max-width: 620px;
    margin: 0 auto 20px;
    color: var(--muted);
    line-height: 1.55;
}

.empty-actions {
    justify-content: center;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

tbody tr:hover {
    background: #fafbfe;
}

.table-actions {
    display: flex;
    gap: 12px;
    white-space: nowrap;
}

.table-actions a {
    font-weight: 700;
}

.result-message {
    min-width: 240px;
    color: var(--muted);
    font-size: 13px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-blue {
    background: #eaf0ff;
    color: #2d55c7;
}

.badge-purple {
    background: #f1eaff;
    color: #6c3ab2;
}

.badge-yellow {
    background: #fff6d8;
    color: #805e00;
}

.badge-orange {
    background: #fff0df;
    color: #a65300;
}

.badge-green {
    background: #e6f7ed;
    color: #16794b;
}

.badge-red {
    background: #ffe9e7;
    color: #b42318;
}

.badge-gray {
    background: #eef0f4;
    color: #626b7c;
}

.form-card {
    max-width: 960px;
}

.import-card {
    max-width: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.import-example {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #dfe4ef;
    border-radius: 13px;
    background: #f8f9fc;
}

.import-example code {
    display: block;
    margin-top: 9px;
    padding: 12px;
    overflow-x: auto;
    border-radius: 9px;
    background: #182033;
    color: white;
    white-space: nowrap;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.summary-card {
    padding: 18px;
}

.summary-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.summary-card strong {
    display: block;
    margin-top: 5px;
    font-size: 27px;
}

.summary-new {
    border-color: #bfe7cf;
    background: var(--success-bg);
}

.summary-blocked {
    border-color: #ffd0cb;
    background: var(--danger-bg);
}

.suppression-layout {
    display: grid;
    grid-template-columns: minmax(300px, .75fr) minmax(0, 1.75fr);
    gap: 20px;
    align-items: start;
}

.suppression-form-card {
    position: sticky;
    top: 20px;
}

.suppression-table-card {
    margin-top: 0;
}

.inline-search {
    display: flex;
    gap: 9px;
    margin-bottom: 18px;
}

.inline-search input {
    flex: 1;
}

.footer {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 28px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1150px) {
    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        margin-left: 0;
    }

    .user-menu {
        margin-left: auto;
    }

    .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .suppression-layout {
        grid-template-columns: 1fr;
    }

    .suppression-form-card {
        position: static;
    }
}

@media (max-width: 650px) {
    .page-header,
    .section-heading {
        flex-direction: column;
    }

    .summary-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-actions,
    .empty-actions,
    .inline-search {
        width: 100%;
        flex-direction: column;
    }

    .page-actions .button,
    .empty-actions .button,
    .inline-search .button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .topbar {
        padding: 12px 16px;
    }

    .user-menu span {
        display: none;
    }

    .container {
        width: min(100% - 20px, 1280px);
        margin-top: 20px;
    }

    .info-card,
    .table-card,
    .form-card {
        padding: 18px;
    }
}


/* Etap 4 */
.import-options-grid {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 18px;
}

.import-tip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid #d8e2ff;
    border-radius: 12px;
    background: #f2f6ff;
}

.import-tip strong {
    color: #2447c8;
}

.import-tip span {
    color: var(--muted);
    line-height: 1.5;
}

.suppression-tools-grid {
    display: grid;
    grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 22px;
}

.bulk-suppression-card {
    max-width: none;
}

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

@media (max-width: 900px) {
    .import-options-grid,
    .suppression-tools-grid,
    .bulk-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Etap 5 */
.no-top-margin {
    margin-top: 0;
}

.queue-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.queue-filter-buttons {
    grid-column: span 2;
}

.queue-actions-card {
    position: sticky;
    top: 12px;
    z-index: 20;
    margin-bottom: 20px;
    padding: 20px 24px;
}

.queue-actions-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(210px, .9fr) minmax(190px, .75fr) minmax(190px, .75fr);
    gap: 14px;
}

.queue-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.queue-toolbar-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.copy-feedback {
    min-height: 20px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

.copy-feedback-success {
    color: var(--success);
}

.copy-feedback-error {
    color: var(--danger);
}

.checkbox-cell {
    width: 46px;
    text-align: center;
}

.checkbox-cell input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.history-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(150px, .8fr)) auto;
    gap: 14px;
    align-items: end;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.campaign-list,
.compact-contact-list {
    display: grid;
    gap: 10px;
}

.campaign-list-item,
.compact-contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.campaign-list-item:last-child,
.compact-contact-item:last-child {
    border-bottom: 0;
}

.campaign-list-item strong,
.campaign-list-item small,
.compact-contact-item strong,
.compact-contact-item small {
    display: block;
}

.campaign-list-item small,
.compact-contact-item small {
    margin-top: 4px;
    color: var(--muted);
}

.campaign-list-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    white-space: nowrap;
}

.compact-contact-item {
    color: var(--text);
}

@media (max-width: 1180px) {
    .queue-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .queue-filter-buttons {
        grid-column: auto;
    }

    .queue-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-columns {
        grid-template-columns: 1fr;
    }

    .queue-actions-card {
        position: static;
    }
}

@media (max-width: 650px) {
    .queue-filter-grid,
    .queue-actions-grid,
    .history-filter-grid {
        grid-template-columns: 1fr;
    }

    .queue-toolbar,
    .campaign-list-item,
    .compact-contact-item {
        align-items: stretch;
        flex-direction: column;
    }

    .queue-toolbar-buttons,
    .queue-toolbar-buttons .button {
        width: 100%;
    }

    .campaign-list-meta {
        justify-content: space-between;
    }
}


/* Etap 5.1: poprawa zaznaczania kontaktów */
.crm-checkbox-label {
    position: relative;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}

.crm-checkbox {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.crm-checkbox-box {
    position: relative;
    display: block;
    width: 23px;
    height: 23px;
    border: 2px solid #9ca8ba;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(24, 32, 51, .08);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.crm-checkbox-box::after {
    position: absolute;
    top: 4px;
    left: 7px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    content: "";
    opacity: 0;
    transform: rotate(45deg) scale(.6);
    transition: opacity .12s ease, transform .12s ease;
}

.crm-checkbox:checked + .crm-checkbox-box {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(49, 94, 251, .13);
}

.crm-checkbox:checked + .crm-checkbox-box::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.crm-checkbox:indeterminate + .crm-checkbox-box {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(49, 94, 251, .13);
}

.crm-checkbox:indeterminate + .crm-checkbox-box::after {
    top: 9px;
    left: 5px;
    width: 9px;
    height: 0;
    border-right: 0;
    border-bottom: 2px solid #ffffff;
    opacity: 1;
    transform: none;
}

.crm-checkbox:focus-visible + .crm-checkbox-box {
    outline: 3px solid rgba(49, 94, 251, .25);
    outline-offset: 2px;
}

.selectable-contact-row {
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
}

.selectable-contact-row:hover {
    background: #f7f9ff;
}

.selectable-contact-row.is-selected {
    background: #edf2ff;
    box-shadow: inset 4px 0 0 var(--primary);
}

.selectable-contact-row.is-selected:hover {
    background: #e7eeff;
}

.checkbox-cell {
    width: 58px;
    min-width: 58px;
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
}

.selection-dock {
    position: fixed;
    right: 24px;
    bottom: 20px;
    left: 24px;
    z-index: 100;
    display: flex;
    max-width: 1120px;
    min-height: 70px;
    margin: 0 auto;
    padding: 12px 14px 12px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #d6ddeb;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 50px rgba(24, 32, 51, .2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.selection-dock.has-selection {
    border-color: #aabcfb;
    box-shadow: 0 18px 50px rgba(49, 94, 251, .2);
}

.selection-dock-count {
    min-width: 160px;
    font-weight: 700;
}

.selection-dock-count strong {
    color: var(--primary);
    font-size: 22px;
}

.selection-dock-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

#send-queue-form {
    padding-bottom: 92px;
}

@media (max-width: 900px) {
    .selection-dock {
        right: 12px;
        bottom: 12px;
        left: 12px;
        align-items: stretch;
        flex-direction: column;
    }

    .selection-dock-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selection-dock-actions .button {
        width: 100%;
    }

    #send-queue-form {
        padding-bottom: 190px;
    }
}

@media (max-width: 560px) {
    .selection-dock-actions {
        grid-template-columns: 1fr;
    }

    #send-queue-form {
        padding-bottom: 310px;
    }
}

/* Etap 6: follow-upy i aktywności */
.queue-actions-grid {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.queue-note-field {
    grid-column: span 3;
}

.followup-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.followup-tab {
    display: flex;
    min-height: 86px;
    padding: 17px 19px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}

.followup-tab span {
    color: var(--muted);
    font-weight: 750;
}

.followup-tab strong {
    font-size: 28px;
}

.followup-tab.active {
    border-color: #9db2fa;
    background: #edf2ff;
}

.followup-tab.active.overdue {
    border-color: #ffb8b0;
    background: #fff0ee;
}

.followup-tab.active.today {
    border-color: #ffd3a3;
    background: #fff5e8;
}

.followup-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.followup-overdue-row {
    background: #fff8f7;
}

.followup-overdue-row:hover {
    background: #fff1ef;
}

.followup-actions {
    display: flex;
    min-width: 230px;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.button-small {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 13px;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
}

.followup-card {
    border-color: #cad5ff;
}

.followup-clear-button {
    display: block;
    width: 100%;
    margin-top: 15px;
    text-align: center;
}

.contact-activity-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 22px;
}

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

.activity-title-field,
.activity-notes-field {
    grid-column: span 2;
}

.activity-next-action {
    display: grid;
    grid-column: span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 16px;
    border: 1px solid #dce3f2;
    border-radius: 14px;
    background: #f8f9fc;
}

.activity-timeline {
    display: grid;
    gap: 0;
}

.activity-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #eef0f4;
    color: #626b7c;
    font-weight: 850;
}

.activity-reply {
    background: #eaf0ff;
    color: #2d55c7;
}

.activity-phone {
    background: #e6f7ed;
    color: #16794b;
}

.activity-meeting {
    background: #f1eaff;
    color: #6c3ab2;
}

.activity-offer {
    background: #fff0df;
    color: #a65300;
}

.activity-follow-up {
    background: #fff6d8;
    color: #805e00;
}

.activity-status {
    background: #eef0f4;
    color: #4d5668;
}

.activity-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.activity-heading strong,
.activity-heading span {
    display: block;
}

.activity-heading span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.activity-heading time {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.activity-content p {
    margin: 10px 0 0;
    color: var(--text);
    line-height: 1.6;
}

.activity-content small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.followup-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.followup-dashboard-card {
    display: flex;
    min-height: 118px;
    padding: 22px;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text);
}

.followup-dashboard-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.followup-dashboard-card span {
    font-weight: 800;
}

.followup-dashboard-card strong {
    font-size: 38px;
}

.followup-dashboard-card small {
    color: var(--muted);
}

.followup-dashboard-card.overdue {
    border-color: #ffd0cb;
    background: #fff7f6;
}

.followup-dashboard-card.overdue strong {
    color: var(--danger);
}

.followup-dashboard-card.today {
    border-color: #f2d48a;
    background: #fffaf0;
}

.followup-dashboard-card.today strong {
    color: #a65300;
}

@media (max-width: 1180px) {
    .followup-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .queue-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .queue-note-field {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .followup-tabs,
    .contact-activity-layout,
    .followup-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-activity-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .followup-tabs,
    .followup-filter-grid,
    .followup-dashboard-grid,
    .activity-form-grid,
    .activity-next-action {
        grid-template-columns: 1fr;
    }

    .activity-title-field,
    .activity-notes-field,
    .activity-next-action {
        grid-column: auto;
    }

    .activity-heading {
        flex-direction: column;
    }
}
