/* ============================================================
   components.css — Buttons, cards, tables, forms, badges, toasts.
   Depends on theme.css.
   ============================================================ */

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 36px;
    padding: 0 var(--space-4);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--transition), border-color var(--transition),
                color var(--transition), box-shadow var(--transition);
    -webkit-user-select: none;
    user-select: none;
}
.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.btn:disabled,
.btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn i {
    font-size: 15px;
}

/* Primary */
.btn--primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.btn--primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
    text-decoration: none;
}

/* Secondary / outline */
.btn--secondary {
    background-color: var(--color-surface);
    border-color: var(--color-border-strong);
    color: var(--color-text-primary);
}
.btn--secondary:hover {
    background-color: var(--color-surface-hover);
    border-color: var(--color-border-strong);
    color: var(--color-text-primary);
    text-decoration: none;
}

/* Ghost */
.btn--ghost {
    background-color: transparent;
    border-color: transparent;
    color: var(--color-text-secondary);
}
.btn--ghost:hover {
    background-color: var(--color-surface-hover);
    color: var(--color-text-primary);
    text-decoration: none;
}

/* Danger */
.btn--danger {
    background-color: var(--color-danger-light);
    border-color: transparent;
    color: var(--color-danger);
}
.btn--danger:hover {
    background-color: var(--color-danger);
    color: #fff;
    text-decoration: none;
}

/* Kill switch — deliberately its own token/colour, not .btn--danger, so it
   reads as distinct from routine "delete" actions elsewhere in the app. */
.btn--kill-switch {
    background-color: var(--color-kill-switch);
    border-color: var(--color-kill-switch);
    color: #fff;
}
.btn--kill-switch:hover {
    background-color: #991b1b;
    border-color: #991b1b;
    color: #fff;
    text-decoration: none;
}

/* Sizes */
.btn--sm {
    height: 28px;
    padding: 0 var(--space-3);
    font-size: var(--font-size-xs);
}
.btn--lg {
    height: 44px;
    padding: 0 var(--space-6);
    font-size: var(--font-size-base);
}
.btn--full {
    width: 100%;
}

/* Icon-only */
.btn--icon {
    width: 36px;
    padding: 0;
}
.btn--icon.btn--sm {
    width: 28px;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.card__title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-primary);
}

.card__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.card__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card__body {
    padding: var(--space-6);
}

.card__footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    background-color: var(--color-divider);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* Stat / metric card */
.stat-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    padding: var(--space-6);
}

.stat-card__label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.stat-card__value {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-card__meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-2);
}

/* !important: these are unconditional utility classes ("this number is
   signed, colour it") — deliberately meant to override any component's
   own color rule (e.g. .table tbody td, .stat-card__value), regardless
   of which has higher selector specificity or comes later in this file.
   Found via real user testing: .table tbody td's higher specificity
   (0,1,2 vs these classes' 0,1,0) was silently winning and leaving every
   P&L figure in every table uncoloured despite the class being applied
   correctly in the DOM. */
.text-pnl-positive { color: var(--color-pnl-positive) !important; }
.text-pnl-negative { color: var(--color-pnl-negative) !important; }

.chart-container {
    position: relative;
    width: 100%;
    height: 340px;
}

.js-range-btn.is-active {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.market-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}
.market-status strong { color: var(--color-text-primary); }

.affordability-warning {
    display: flex;
    align-items: flex-start;
    gap: var(--space-1);
    margin-top: var(--space-2);
    max-width: 220px;
    font-size: var(--font-size-xs);
    color: var(--color-warning);
    line-height: 1.4;
}
.affordability-warning[hidden] { display: none; }
.rule-row--unaffordable { background-color: var(--color-warning-light); }

/* Grid helpers */
.grid {
    display: grid;
    gap: var(--space-5);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    font-size: var(--font-size-sm);
    border-collapse: collapse;
}

.table thead th {
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-divider);
    white-space: nowrap;
}

.table tbody td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-primary);
    vertical-align: middle;
}

.table--sortable thead th[data-sortable] {
    cursor: pointer;
    user-select: none;
}
.table--sortable thead th[data-sortable]:hover { color: var(--color-text-primary); }
.table--sortable thead th[data-sortable]::after {
    content: '\2195';
    display: inline-block;
    margin-left: var(--space-1);
    opacity: 0.35;
    font-size: var(--font-size-sm);
}
.table--sortable thead th.is-sorted-asc::after { content: '\2191'; opacity: 1; }
.table--sortable thead th.is-sorted-desc::after { content: '\2193'; opacity: 1; }

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

.table tbody tr:nth-child(even) td {
    background-color: rgba(0,0,0,.012);
}

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

.table .col-actions {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.table-empty {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}
.table-empty i {
    font-size: 32px;
    display: block;
    margin-bottom: var(--space-3);
    opacity: 0.4;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}
.form-label .required {
    color: var(--color-danger);
    margin-left: 2px;
}

.form-control {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 var(--space-3);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-control::placeholder {
    color: var(--color-text-muted);
}
.form-control:disabled {
    background-color: var(--color-divider);
    color: var(--color-text-muted);
    cursor: not-allowed;
}
.form-control.is-invalid {
    border-color: var(--color-danger);
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

textarea.form-control {
    height: auto;
    padding: var(--space-3);
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
}

.form-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

.form-hint.text-danger { color: var(--color-danger); }

.form-hint--callout {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background-color: var(--color-accent-light);
    border-radius: var(--radius-sm);
    color: var(--color-accent-text);
    font-size: var(--font-size-sm);
}
.form-hint--callout strong { font-size: var(--font-size-base); }

.form-error {
    font-size: var(--font-size-xs);
    color: var(--color-danger);
    margin-top: var(--space-1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
}

.form-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-6) 0;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-6);
}

/* ── Range sliders (Rules screen) ────────────────────────────── */
.range-field { margin-bottom: var(--space-6); }
.range-field__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}
.range-field__value {
    font-weight: 600;
    color: var(--color-accent-text);
}
.range-field input[type="range"] {
    width: 100%;
    accent-color: var(--color-accent);
    cursor: pointer;
}
.range-field__scale {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.badge--blue {
    background-color: var(--color-accent-light);
    color: var(--color-accent-text);
}
.badge--green {
    background-color: var(--color-success-light);
    color: #15803d;
}
.badge--red {
    background-color: var(--color-danger-light);
    color: #b91c1c;
}
.badge--yellow {
    background-color: var(--color-warning-light);
    color: #92400e;
}
.badge--grey {
    background-color: var(--color-divider);
    color: var(--color-text-secondary);
}

/* Status dot */
.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot--green  { background-color: var(--color-success); }
.status-dot--blue   { background-color: var(--color-accent); }
.status-dot--yellow { background-color: var(--color-warning); }
.status-dot--red    { background-color: var(--color-danger); }
.status-dot--grey   { background-color: var(--color-text-muted); }

/* ── Alert / inline notices ───────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-5);
}
.alert i { font-size: 16px; flex-shrink: 0; margin-top: 2px; }

.alert--info    { background-color: var(--color-accent-light);  color: var(--color-accent-text); }
.alert--success { background-color: var(--color-success-light); color: #15803d; }
.alert--warning { background-color: var(--color-warning-light); color: #92400e; }
.alert--danger  { background-color: var(--color-danger-light);  color: #b91c1c; }
.alert--error   { background-color: var(--color-danger-light);  color: #b91c1c; }

/* ── Kill switch status banner (dashboard) ───────────────────── */
.kill-switch-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
}
.kill-switch-banner__text { font-size: var(--font-size-base); }
.kill-switch-banner__text strong { display: block; font-size: var(--font-size-lg); margin-bottom: 2px; }
.kill-switch-banner--halted {
    background-color: var(--color-kill-switch);
    color: #fff;
}
.kill-switch-banner--active {
    background-color: var(--color-success-light);
    color: #15803d;
}

/* ── Toasts ───────────────────────────────────────────────── */
.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    min-width: 280px;
    max-width: 380px;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-5);
    pointer-events: all;
    animation: toast-in 200ms ease forwards;
}

.toast.is-hiding {
    animation: toast-out 200ms ease forwards;
}

.toast__icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.toast--success .toast__icon { color: var(--color-success); }
.toast--error   .toast__icon { color: var(--color-danger);  }
.toast--info    .toast__icon { color: var(--color-accent);  }
.toast--warning .toast__icon { color: var(--color-warning); }

.toast__body {
    flex: 1;
    min-width: 0;
}
.toast__title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}
.toast__message {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.toast__close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    transition: color var(--transition);
}
.toast__close:hover {
    color: var(--color-text-primary);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(20px); }
}

/* ── Dropdowns ────────────────────────────────────────────── */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    z-index: 200;
    display: none;
    padding: var(--space-1) 0;
}
.dropdown__menu.is-open {
    display: block;
}

.dropdown__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition);
    white-space: nowrap;
}
.dropdown__item:hover {
    background-color: var(--color-surface-hover);
    text-decoration: none;
    color: var(--color-text-primary);
}
.dropdown__item--danger { color: var(--color-danger); }
.dropdown__item--danger:hover { background-color: var(--color-danger-light); }
.dropdown__item.is-active {
    background-color: var(--color-accent-light);
    color: var(--color-accent-text);
    font-weight: 500;
}

.dropdown__divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-1) 0;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-4) 0;
}

.pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 var(--space-2);
    font-size: var(--font-size-sm);
    border-radius: var(--radius);
    color: var(--color-text-secondary);
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition);
}
.pagination__item:hover {
    background-color: var(--color-surface-hover);
    color: var(--color-text-primary);
    text-decoration: none;
}
.pagination__item.is-active {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.pagination__item.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,.45);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
}

.modal {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
}
.modal__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
}
.modal__body {
    padding: var(--space-6);
    overflow-y: auto;
    flex: 1;
}
.modal__footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
}
.empty-state__icon {
    font-size: 48px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    opacity: 0.4;
}
.empty-state__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}
.empty-state__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    max-width: 320px;
    margin: 0 auto var(--space-6);
}

/* ── Utility ──────────────────────────────────────────────── */
.text-muted    { color: var(--color-text-secondary); }
.text-sm       { font-size: var(--font-size-sm); }
.text-xs       { font-size: var(--font-size-xs); }
.text-right    { text-align: right; }
.text-center   { text-align: center; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.gap-3 { gap: var(--space-3); }

.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-end      { display: flex; align-items: center; justify-content: flex-end; }
.flex-wrap     { flex-wrap: wrap; }
.flex-1        { flex: 1; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-6) 0;
}

/* ── Permission toggle (roles matrix) ────────────────────── */
.perm-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.perm-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.perm-toggle__track {
    display: inline-block;
    width: 36px;
    height: 20px;
    background-color: var(--color-border-strong);
    border-radius: var(--radius-full);
    position: relative;
    transition: background-color var(--transition);
    flex-shrink: 0;
}
.perm-toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.perm-toggle input:checked + .perm-toggle__track {
    background-color: var(--color-accent);
}
.perm-toggle input:checked + .perm-toggle__track::after {
    transform: translateX(16px);
}

/* ── SweetAlert2 theme overrides ──────────────────────────── */
.swal2-popup {
    font-family: var(--font-family) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: var(--space-6) !important;
}
.swal2-title {
    font-size: var(--font-size-lg) !important;
    font-weight: 600 !important;
    color: var(--color-text-primary) !important;
}
.swal2-html-container {
    font-size: var(--font-size-sm) !important;
    color: var(--color-text-secondary) !important;
}
.swal2-actions {
    gap: var(--space-2) !important;
}
.swal2-confirm {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-sm) !important;
    font-weight: 500 !important;
    border-radius: var(--radius) !important;
    height: 36px !important;
    padding: 0 var(--space-4) !important;
    box-shadow: none !important;
}
.swal2-cancel {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-sm) !important;
    font-weight: 500 !important;
    border-radius: var(--radius) !important;
    height: 36px !important;
    padding: 0 var(--space-4) !important;
    background-color: var(--color-surface) !important;
    border: 1px solid var(--color-border-strong) !important;
    color: var(--color-text-primary) !important;
    box-shadow: none !important;
}
.swal2-cancel:hover {
    background-color: var(--color-surface-hover) !important;
}
.swal2-icon {
    margin-bottom: var(--space-4) !important;
}

/* ── Bulk action bar ──────────────────────────────────────── */
.bulk-bar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 10px var(--space-5);
    background: var(--color-accent-light);
    border-bottom: 1px solid var(--color-border);
}
.bulk-bar__count {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    white-space: nowrap;
}
.bulk-bar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
}

/* ── Filter tabs (status filter bar) ─────────────────────── */
.filter-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    padding: 0 var(--space-5);
    overflow-x: auto;
}
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.filter-tab:hover { color: var(--color-text-primary); }
.filter-tab--active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}
.filter-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background-color: var(--color-surface-secondary);
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 600;
}
.filter-tab--active .filter-tab__count {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

/* ── Checkbox list ────────────────────────────────────────── */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    cursor: pointer;
    user-select: none;
}
.checkbox-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--color-accent);
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Badge outline variant ────────────────────────────────── */
.badge--outline {
    background-color: transparent;
    border: 1px solid currentColor;
}
.badge--blue.badge--outline {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent-light);
}

/* ── Text link ────────────────────────────────────────────── */
.text-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
}
.text-link:hover { color: var(--color-accent); text-decoration: underline; }

/* ── Stat row (import results) ────────────────────────────── */
.stat-item { text-align: center; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--color-text-primary); }
.stat-label { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-top: 2px; }
.text-green { color: var(--color-success); }
.text-blue  { color: var(--color-accent); }

/* ── Template editor layout ───────────────────────────────── */
.template-editor-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    align-items: flex-start;
}
.template-editor-main  { min-width: 0; }
.template-editor-sidebar { position: sticky; top: 20px; }

/* ── Editor tabs ──────────────────────────────────────────── */
.editor-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}
.editor-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.editor-tab:hover { color: var(--color-text-primary); }
.editor-tab--active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}
.code-editor {
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    background: var(--color-surface-secondary);
    color: var(--color-text-primary);
    resize: vertical;
}

/* ── Variable reference sidebar ───────────────────────────── */
.var-list { display: flex; flex-direction: column; gap: 2px; }
.var-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 8px 10px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-align: left;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}
.var-item:hover {
    background: var(--color-surface-secondary);
    border-color: var(--color-border);
}
.var-item__code {
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--color-accent);
    background: var(--color-accent-light);
    padding: 1px 5px;
    border-radius: 3px;
    display: inline-block;
}
.var-item__desc {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}
.var-copy-feedback {
    margin-top: 10px;
    font-size: var(--font-size-sm);
    color: var(--color-success);
}

/* ── Tips list ────────────────────────────────────────────── */
.tips-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}
.tips-list li { margin-bottom: 6px; }
.tips-list code { font-size: 11px; color: var(--color-accent); }

/* ── Preview modal ────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(0,0,0,0.3));
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}
.modal--xl { max-width: 800px; }
.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}
.modal__title { font-weight: 600; font-size: 15px; }
.modal__close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
    line-height: 1;
}
.modal__close:hover { color: var(--color-text-primary); background: var(--color-surface-secondary); }
.modal__body { flex: 1; overflow: auto; }

/* ── Campaign detail layout ───────────────────────────────── */
.campaign-detail-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 20px;
    align-items: flex-start;
}
.campaign-detail-main     { min-width: 0; }
.campaign-detail-sidebar  { position: sticky; top: 20px; }

/* ── Detail list (key/value pairs) ───────────────────────── */
.detail-list { display: flex; flex-direction: column; gap: 0; }
.detail-list__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: baseline;
}
.detail-list__row:last-child { border-bottom: none; }
.detail-list dt {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}
.detail-list dd {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    margin: 0;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid var(--color-border);
    gap: 12px;
}
.pagination__info {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    white-space: nowrap;
}
.pagination__controls {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pagination__controls .btn.is-active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.pagination__disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}
.pagination__ellipsis {
    padding: 0 4px;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 32px;
}

/* ── Security banner (2FA pester) ─────────────────────────── */
.security-banner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    color: #92400e;
    font-size: var(--font-size-sm);
}
.security-banner i {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #d97706;
}
.security-banner span {
    flex: 1;
}
.security-banner .btn--secondary {
    flex-shrink: 0;
    background: #fff;
    border-color: #fbbf24;
    color: #92400e;
}
.security-banner .btn--secondary:hover {
    background: #fef3c7;
    border-color: #d97706;
}

/* ── Password field — wrapper, toggle, strength meter ─────── */
.pw-wrap {
    position: relative;
}
.pw-wrap .form-control {
    padding-right: 42px;
}
.pw-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: color var(--transition);
}
.pw-toggle:hover { color: var(--color-text-primary); }
.pw-meter {
    display: none;
    margin-top: 6px;
}
.pw-meter__bar {
    height: 4px;
    background: var(--color-divider);
    border-radius: 2px;
    overflow: hidden;
}
.pw-meter__fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.25s ease, background 0.25s ease;
}
.pw-meter__label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-top: 3px;
}
.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}
.form-label-row .form-label {
    margin-bottom: 0;
}
.form-group--narrow {
    max-width: 400px;
}
.form--narrow {
    max-width: 320px;
}
.form-label-link {
    float: right;
    font-weight: 400;
    font-size: var(--font-size-xs);
}
.input--otp {
    letter-spacing: 0.2em;
    text-align: center;
    font-size: var(--font-size-xl);
}
.section-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

/* ── QR code (2FA setup) ──────────────────────────────────── */
.qr-code {
    text-align: center;
    margin: var(--space-5) 0;
}
.qr-code img {
    border: 8px solid #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

/* ── Secret key box (2FA setup) ───────────────────────────── */
.secret-box {
    background: var(--color-divider);
    border-radius: var(--radius);
    padding: var(--space-4);
}
.secret-box__label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}
.secret-box__code {
    display: block;
    font-size: var(--font-size-sm);
    letter-spacing: 0.1em;
    word-break: break-all;
}

/* ── Onboarding wizard ────────────────────────────────────── */
.wizard {
    max-width: 740px;
    margin: 0 auto;
}

.wizard__stepper {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-8);
}

.wizard__stepper-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.wizard__stepper-item:hover {
    text-decoration: none;
    color: inherit;
}

.wizard__stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}
.wizard__stepper-item.is-done:not(:last-child)::after {
    background: var(--color-accent);
}

.wizard__stepper-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.wizard__stepper-item.is-done .wizard__stepper-num {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.wizard__stepper-item.is-active .wizard__stepper-num {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.wizard__stepper-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
    text-align: center;
    white-space: nowrap;
}
.wizard__stepper-item.is-active .wizard__stepper-label {
    color: var(--color-accent);
    font-weight: 600;
}
.wizard__stepper-item.is-done .wizard__stepper-label {
    color: var(--color-text-secondary);
}

.wizard__card {
    overflow: visible;
}

.wizard__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-5);
    text-decoration: none;
}
.wizard__back:hover {
    color: var(--color-text-primary);
    text-decoration: none;
}

/* Tone selector cards */
.tone-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}
.tone-option { position: relative; }
.tone-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.tone-option label {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition);
    height: 100%;
}
.tone-option label:hover {
    border-color: var(--color-accent);
    background-color: var(--color-accent-light);
}
.tone-option input[type="radio"]:checked + label {
    border-color: var(--color-accent);
    background-color: var(--color-accent-light);
}
.tone-option__icon { font-size: 22px; color: var(--color-accent); }
.tone-option__name { font-weight: 600; color: var(--color-text-primary); }
.tone-option__desc { font-size: var(--font-size-sm); color: var(--color-text-secondary); }

/* Plan selector cards */
.plan-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}
.plan-option { position: relative; }
.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.plan-option label {
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition);
    height: 100%;
}
.plan-option label:hover { border-color: var(--color-accent); }
.plan-option input[type="radio"]:checked + label {
    border-color: var(--color-accent);
    background-color: var(--color-accent-light);
}
.plan-recommended {
    margin-top: -16px;
    padding-top: 16px;
}
.plan-recommended::before {
    content: 'Most popular';
    display: block;
    text-align: center;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-full) var(--radius-full) 0 0;
    margin: -16px -2px var(--space-3) -2px;
}
.plan-option__name {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-1);
}
.plan-option__price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.1;
    margin-bottom: 2px;
}
.plan-option__price span { font-size: var(--font-size-sm); font-weight: 400; color: var(--color-text-secondary); }
.plan-option__replies {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}
.plan-option__features {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.plan-option__features li { display: flex; align-items: center; gap: var(--space-2); }
.plan-option__features li i { color: var(--color-success); font-size: 13px; flex-shrink: 0; }

/* Stripe element wrapper */
.stripe-wrap {
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}
#payment-message {
    font-size: var(--font-size-sm);
    color: var(--color-danger);
    min-height: 20px;
    margin-bottom: var(--space-2);
}
.wizard__payment-meta {
    display: flex;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding: var(--space-3) var(--space-4);
    background: var(--color-divider);
    border-radius: var(--radius);
}

/* Wizard success screen */
.wizard__success {
    text-align: center;
    padding: var(--space-10) var(--space-6);
}
.wizard__success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-success-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: 36px;
    color: var(--color-success);
}
.wizard__success h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
}
.wizard__success p {
    color: var(--color-text-secondary);
    max-width: 460px;
    margin: 0 auto var(--space-8);
}
.wizard__success-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* Onboarding info banner (blue) */
.security-banner--info {
    background: var(--color-accent-light);
    border-bottom-color: #bfdbfe;
    color: var(--color-accent-text);
}
.security-banner--info i { color: var(--color-accent); }
.security-banner--info .btn--secondary {
    background: #fff;
    border-color: #93c5fd;
    color: var(--color-accent-text);
}
.security-banner--info .btn--secondary:hover {
    background: #eff6ff;
    border-color: var(--color-accent);
}

/* ── Blocked / error pages ────────────────────────────────── */
.blocked-icon {
    text-align: center;
    padding: var(--space-4) 0 var(--space-2);
}
.blocked-icon i {
    font-size: 2.5rem;
    color: var(--color-danger);
}
.error-page__icon {
    font-size: 3rem;
    color: var(--color-text-muted);
}

/* ── Empty state (bare elements) ──────────────────────────── */
.empty-state i {
    display: block;
    font-size: 3rem;
    color: var(--color-text-muted);
    opacity: 0.4;
    margin-bottom: var(--space-4);
}
.empty-state h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}
.empty-state p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    max-width: 340px;
    margin: 0 auto var(--space-6);
}
.empty-state__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ── Card variants & header extensions ───────────────────── */
.card__body--flush {
    padding: 0;
}
.card__header-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}
.card__header-filters {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.card--aside {
    flex-shrink: 0;
    align-self: flex-start;
}
.card--danger {
    border-color: var(--color-danger-light);
}

/* ── Table utilities ──────────────────────────────────────── */
.table-link {
    color: var(--color-text-primary);
    font-weight: 500;
    text-decoration: none;
}
.table-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}
.table-meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
    max-width: 360px;
}
.table-date {
    white-space: nowrap;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}
.table-actions {
    white-space: nowrap;
    text-align: right;
}
.table-actions .btn + .btn,
.table-actions form + .btn,
.table-actions .btn + form {
    margin-left: var(--space-1);
}

/* ── Utility additions ────────────────────────────────────── */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mt-3 { margin-top: var(--space-3); }
.d-inline { display: inline; }

/* ── Radio option cards ───────────────────────────────────── */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s;
}
.radio-option:hover {
    border-color: var(--color-accent);
}
.radio-option input[type="radio"] {
    flex-shrink: 0;
    accent-color: var(--color-accent);
}
.radio-option__label {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
}
.radio-option:has(input:checked) {
    border-color: var(--color-accent);
    background-color: var(--color-accent-light, #eff6ff);
}

/* ── Danger zone (delete section at bottom of edit pages) ── */
.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.danger-zone p {
    margin-bottom: 0;
}

/* ── Two-column layout ────────────────────────────────────── */
.layout-cols {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
    align-items: flex-start;
}
@media (max-width: 900px) {
    .layout-cols {
        grid-template-columns: 1fr;
    }
}

/* ── Code/format example block ───────────────────────────── */
.code-example strong {
    display: block;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-1);
}
.code-example pre {
    background: var(--color-divider);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    font-size: var(--font-size-xs);
    color: var(--color-text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* ── FAQ preview list ─────────────────────────────────────── */
.faq-preview-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.faq-preview-item {
    display: flex;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}
.faq-preview-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.faq-preview-item__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-divider);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-top: 6px;
}
.faq-preview-item__fields {
    flex: 1;
    min-width: 0;
}

/* ── Form control size variant ───────────────────────────── */
.form-control--sm {
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-sm);
    height: auto;
}
.form-control--narrow {
    max-width: 120px;
}

/* ── Inline form group (input + button on one row) ───────── */
.form-group--inline {
    display: flex;
    gap: var(--space-2);
    align-items: stretch;
}
.form-group--inline .form-control { flex: 1; }

/* ── Colour picker control ────────────────────────────────── */
.form-control--color {
    width: 64px;
    height: 38px;
    padding: 2px;
    cursor: pointer;
}

/* ── Domain whitelist (Live Chat Widget settings) ─────────── */
.domain-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.domain-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}
.domain-list__item:last-child { border-bottom: none; }
.domain-list__name {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
}
.domain-list__name i { color: var(--color-text-muted); margin-right: 6px; }


/* =============================================================================
 * Xnet Desk — components added for modules 04 → 11
 * Built on top of the aireceptionist base; no inline styles in views.
 * ============================================================================= */


/* ── Status badges (CLAUDE.md ticket statuses) ───────────────────────── */
.badge--new              { background: #eff6ff; color: #1d4ed8; }            /* accent blue */
.badge--open             { background: var(--color-success-light); color: #15803d; }
.badge--customer-responded { background: #ede9fe; color: #6d28d9; }          /* violet — needs an agent reply */
.badge--pending-customer { background: var(--color-warning-light); color: #92400e; }
.badge--pending-3rd      { background: #fff7ed; color: #9a3412; }
.badge--pending-3rdparty { background: #fff7ed; color: #9a3412; }            /* CSS-friendly alias */
.badge--pending          { background: var(--color-warning-light); color: #92400e; }
.badge--resolved         { background: #f1f5f9; color: #475569; }
.badge--closed           { background: #f3f4f6; color: #374151; }
.badge--merged           { background: #f3f4f6; color: #6b7280; }

/* ── Priority badges (CLAUDE.md priorities) ──────────────────────────── */
.badge--low     { background: #f1f5f9; color: #475569; }
.badge--normal  { background: var(--color-accent-light); color: var(--color-accent-text); }
.badge--high    { background: var(--color-warning-light); color: #92400e; }
.badge--urgent  { background: var(--color-danger-light); color: #b91c1c; }

/* ── Semantic badge aliases used across views ────────────────────────── */
.badge--success   { background: var(--color-success-light); color: #15803d; }
.badge--info      { background: var(--color-accent-light); color: var(--color-accent-text); }
.badge--warning   { background: var(--color-warning-light); color: #92400e; }
.badge--danger    { background: var(--color-danger-light); color: #b91c1c; }
.badge--secondary { background: var(--color-divider); color: var(--color-text-secondary); }

/* Coloured dot used in the categories list (data-driven via --swatch). */
.badge-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--swatch, var(--color-text-muted));
    border: 1px solid var(--color-border);
    vertical-align: middle;
}

/* ── Tables: clickable rows + new-ticket accent + fixed-width col ───── */
.table--clickable tr { cursor: pointer; transition: background 80ms; }
.table--clickable tr:hover { background: var(--color-surface-hover); }
.table .row--accent { background: #eff6ff; }
.table .row--accent:hover { background: #dbeafe; }
.table th.col-fit,
.table td.col-fit { width: 1%; white-space: nowrap; }

/* ── Tabs strip (tickets/index status filters) ────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: var(--font-size-sm);
    transition: color 80ms, border-color 80ms;
}
.tabs__tab:hover { color: var(--color-text-primary); }
.tabs__tab.is-active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    font-weight: 600;
}
.tabs__count {
    background: var(--color-divider);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full, 999px);
    padding: 1px 8px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}
.tabs__tab.is-active .tabs__count { background: var(--color-accent-light); color: var(--color-accent-text); }

/* ── Toolbar (search + actions row above lists) ──────────────────────── */
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.toolbar__search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    min-width: 280px;
}
.toolbar__search .form-control { flex-grow: 1; min-width: 200px; }

.toolbar__filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    flex-wrap: wrap;
    min-width: 280px;
}
.toolbar__filters input[type="search"] { flex-grow: 1; min-width: 180px; }
.toolbar__filters select.form-control { width: auto; min-width: 140px; }

/* Per-row action buttons in list tables (block / delete). */
.row-actions { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }

/* ── Pagination ───────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* ── Dashboard stat cards ─────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
/* ── Ticket view: two-column layout, sidebar + thread ────────────────── */
/* Conversation left (fluid), properties sidebar right (fixed). Two-class
   selector so it outranks the generic `.ticket-view { display:block }`
   page-wrapper reset further down this file (equal specificity would lose). */
.ticket-view.ticket-view--split {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .ticket-view.ticket-view--split { grid-template-columns: 1fr; }
    /* Stack with properties first on narrow screens so they're not buried. */
    .ticket-view.ticket-view--split .ticket-sidebar { order: -1; }
}
.ticket-sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ticket-thread  { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ticket-actions { display: flex; gap: 8px; align-items: center; }
.ticket-actions form { margin: 0; }

/* ── Email-like conversation thread ──────────────────────────────────── */
.thread { display: flex; flex-direction: column; gap: 2px; }
/* Each message is a <details>: summary = one-line header (always visible),
   body = full content (shown when open). Newest first; latest is open. */
.msg {
    padding: 0;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-divider, #e2e8f0);
    border-radius: 10px;
}
.msg + .msg { margin-top: 10px; }
.msg__summary {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;            /* hide the native disclosure triangle */
}
.msg__summary::-webkit-details-marker { display: none; }
.msg__chevron {
    flex: 0 0 auto;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    transition: transform 0.15s ease;
}
.msg[open] .msg__chevron { transform: rotate(90deg); }
.msg__avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs, 12px);
    font-weight: 600;
    color: #fff;
    background: #94a3b8;
}
.msg--inbound  .msg__avatar { background: #3b82f6; }
.msg--outbound .msg__avatar { background: #64748b; }
.msg--note     .msg__avatar { background: #f59e0b; }
.msg__head { display: flex; align-items: baseline; gap: 6px; flex: 1; min-width: 0; }
.msg__author { font-weight: 600; color: var(--color-text-primary); white-space: nowrap; }
.msg__meta   { color: var(--color-text-muted); font-size: var(--font-size-sm); white-space: nowrap; }
.msg__clip   { color: var(--color-text-muted); font-size: var(--font-size-sm); }
/* Preview only shows while collapsed; truncates to keep the row one line. */
.msg__preview {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}
.msg[open] .msg__preview { display: none; }
.msg__when   { margin-left: auto; color: var(--color-text-muted); font-size: var(--font-size-xs); white-space: nowrap; }
/* Body aligns under the header text (chevron + avatar + gaps). */
.msg__main   { min-width: 0; padding: 0 16px 16px 76px; }
.msg__cc     { font-size: 12px; margin-bottom: 8px; word-wrap: break-word; }
.msg__body   { color: var(--color-text-primary); line-height: 1.55; white-space: normal; word-wrap: break-word; }
/* Outbound (agent) replies get a subtle tint; notes an amber wash. */
.msg--outbound { background: #f8fafc; }
.msg--note     { background: #fffbeb; border-color: #fde68a; }

/* Attachment chips on a message + the reply composer */
.msg__attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid var(--color-divider, #e2e8f0);
    border-radius: 8px;
    background: var(--color-surface, #fff);
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    text-decoration: none;
}
.attachment-chip:hover { border-color: var(--color-accent, #3b82f6); }
.attachment-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.attachment-chip__size { color: var(--color-text-muted); font-size: var(--font-size-xs); }

/* Image attachments render as a clickable thumbnail (opens the lightbox). */
.attachment-thumb {
    display: inline-block;
    border: 1px solid var(--color-divider, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    cursor: pointer;
}
.attachment-thumb:hover { border-color: var(--color-accent, #3b82f6); }
.attachment-thumb img { display: block; max-width: 160px; max-height: 110px; object-fit: cover; }

/* Lightbox overlay for full-size image preview. */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;            /* JS flips to flex */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    background: rgba(15, 23, 42, 0.85);
}
.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__caption { color: #e2e8f0; font-size: var(--font-size-sm); text-align: center; max-width: 90vw; }
.lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}
.lightbox__close:hover { opacity: 1; }

.ticket-meta__ref {
    display: inline-block;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    background: var(--color-divider);
    padding: 2px 8px;
    border-radius: 6px;
}
.ticket-meta__subject {
    margin: 8px 0 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
}

/* The inline-edit selects in the ticket sidebar (status / priority / etc.) */
.inline-select {
    margin: 0 0 12px;
}
.inline-select .form-label {
    display: block;
    margin-bottom: 4px;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.inline-form {
    display: inline-block;
    margin: 0;
}

/* ── Message thread bubbles ──────────────────────────────────────────── */
.message {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px);
    padding: 14px 16px;
    max-width: 88%;
}
.message__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}
.message__from { font-weight: 600; color: var(--color-text-primary); display: inline-flex; align-items: center; gap: 6px; }
.message__when { color: var(--color-text-muted); white-space: nowrap; }
.message__body { color: var(--color-text-primary); line-height: var(--line-height); word-wrap: break-word; }
.message__body p { margin: 0 0 0.6em; }
.message__body p:last-child { margin-bottom: 0; }

.message--inbound  { align-self: flex-start; }
.message--outbound { align-self: flex-end; background: var(--color-accent-light); border-color: #bfdbfe; }
.message--note     {
    align-self: stretch;
    max-width: 100%;
    background: var(--color-warning-light);
    border-color: #fde68a;
}
.message--note .message__from { color: #92400e; }

/* ── Composer (reply/note tabs at the bottom of the thread) ──────────── */
.composer__tabs { display: flex; gap: 4px; }
.composer__tab {
    appearance: none;
    background: none;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
    color: var(--color-text-secondary);
    border-bottom: 2px solid transparent;
    font-size: var(--font-size-sm);
    font-weight: 500;
}
.composer__tab.is-active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    font-weight: 600;
}
.composer__form { display: none; }
.composer__form.is-active { display: block; }

/* ── Audit list (sidebar log of state changes) ───────────────────────── */
/* Inline text button — looks like a link, behaves like a <button> */
.btn-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--color-accent, #3b82f6);
    cursor: pointer;
    text-decoration: underline;
}
.btn-link:hover { opacity: 0.85; }

/* Collapsible audit trail (a <details> styled as a card) */
.audit-details__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    list-style: none;            /* hide the default marker (we use the chevron below) */
    user-select: none;
}
.audit-details__summary::-webkit-details-marker { display: none; }
.audit-details__summary::after {
    content: "\F285";            /* bootstrap-icons chevron-down */
    font-family: "bootstrap-icons";
    color: var(--color-text-muted);
    transition: transform 0.15s ease;
}
.audit-details[open] .audit-details__summary::after { transform: rotate(180deg); }
.audit-details__count {
    margin-left: auto;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    background: var(--color-content-bg, #f1f5f9);
    border-radius: 999px;
    padding: 1px 8px;
}

.audit-list { list-style: none; margin: 0; padding: 0; font-size: var(--font-size-sm); }
.audit-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-divider);
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--color-text-secondary);
}
.audit-list li:last-child { border-bottom: none; }
.audit-list__when   { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.audit-list__action { color: var(--color-text-primary); font-weight: 500; }
.audit-list__diff   { color: var(--color-text-secondary); }
.audit-list__who    { color: var(--color-text-muted); font-size: var(--font-size-xs); }

/* ── Data list (key / value pairs in detail panels) ──────────────────── */
.data-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0;
    align-items: baseline;
}
.data-list dt { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.data-list dd { margin: 0; color: var(--color-text-primary); }
.data-list--compact dt, .data-list--compact dd { font-size: var(--font-size-sm); }

/* ── Plain list (used in customer extra-emails view) ─────────────────── */
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-divider);
    color: var(--color-text-primary);
}
.plain-list li:last-child { border-bottom: none; }

/* ── Search dropdown (new-ticket customer typeahead) ─────────────────── */
.search-dropdown {
    position: relative;
    margin-top: 4px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-height: 260px;
    overflow-y: auto;
    z-index: 10;
}
.search-dropdown__item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-divider);
    font-size: var(--font-size-sm);
}
.search-dropdown__item:last-child { border-bottom: none; }
.search-dropdown__item:hover      { background: var(--color-surface-hover); }
.search-dropdown__empty {
    padding: 10px 12px;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-style: italic;
}

/* ── Checkbox grid (group members, agent groups) ─────────────────────── */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

/* ── Notification list ───────────────────────────────────────────────── */
.notification-list { list-style: none; margin: 0; padding: 0; }
.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-divider);
}
.notification-item:last-child { border-bottom: none; }
.notification-item.is-unread { background: #f8fafc; }
.notification-item__body { flex-grow: 1; min-width: 0; }
.notification-item__meta { color: var(--color-text-muted); font-size: var(--font-size-xs); margin-top: 4px; }

/* ── Topbar notification bell ────────────────────────────────────────── */
.topbar__bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    margin-right: 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: background 80ms, color 80ms;
}
.topbar__bell:hover { background: var(--color-surface-hover); color: var(--color-text-primary); }
.topbar__bell-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--color-danger);
    color: #fff;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* No bubble at all when there's nothing unread — the class's display:inline-flex
   would otherwise override the [hidden] attribute and show a stray "0". */
.topbar__bell-count[hidden] { display: none; }

/* ── Notification bell dropdown ──────────────────────────────────────── */
.topbar__notify { position: relative; margin-left: auto; margin-right: 12px; }
.topbar__notify .topbar__bell {
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: inherit;
}
.topbar__notify-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(15, 23, 42, 0.18));
    z-index: 60;
    overflow: hidden;
}
.topbar__notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text-primary);
}
.topbar__notify-body { max-height: 360px; overflow-y: auto; }
.topbar__notify-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}
.notify-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}
.notify-item:last-child { border-bottom: none; }
.notify-item:hover { background: var(--color-surface-hover); }
.notify-item__body { flex: 1 1 auto; min-width: 0; }
.notify-item__msg { color: var(--color-text-primary); text-decoration: none; display: block; }
.notify-item__msg:hover { color: var(--color-accent); }
.notify-item__meta { color: var(--color-text-muted); font-size: var(--font-size-xs); margin-top: 4px; }
.notify-item__read {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: var(--radius);
    line-height: 1;
}
.notify-item__read:hover { background: var(--color-accent-light); color: var(--color-accent); }
.topbar__notify-foot {
    display: block;
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-accent);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
}
.topbar__notify-foot:hover { background: var(--color-surface-hover); }

/* ── Template editor preview pane ────────────────────────────────────── */
.preview-pane { border: 2px dashed var(--color-border-strong); }
.preview-meta { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-bottom: 8px; }
.preview-body { line-height: var(--line-height); color: var(--color-text-primary); }
.preview-body p { margin: 0 0 0.6em; }

/* ── Form-control variants ───────────────────────────────────────────── */
.form-control--mono   { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--font-size-sm); }
.form-control--colour { padding: 4px; height: 40px; max-width: 80px; }
.form-control--colour::-webkit-color-swatch { border-radius: 4px; border: 1px solid var(--color-border); }

/* ── Section hint variant (dashboard cards prefer a tighter padding) ── */
.section-hint--flush { padding: 12px 16px 0; margin: 0; }

/* ── Empty-state variant for inline use inside other cards ───────────── */
.empty-state--inline { padding: 16px; }

/* ── Misc utility ────────────────────────────────────────────────────── */
.nowrap { white-space: nowrap; }
.ml-1   { margin-left:  4px; }
.ml-2   { margin-left:  8px; }
.my-3   { margin-top:  12px; margin-bottom: 12px; }

/* ── Page wrappers (mostly empty hooks, but keep them for future use) ─ */
.dashboard-page,
.tickets-page,
.ticket-new,
.ticket-view,
.customers-page,
.customer-view,
.customer-edit,
.agents-page,
.agent-new,
.agent-edit,
.groups-page,
.group-new,
.group-edit,
.categories-page,
.canned-page,
.templates-page,
.template-edit,
.notifications-page,
.settings-page,
.account-page { display: block; }

/* ── Body-preview snippet inside the canned-responses table ──────────── */
.body-preview { font-size: var(--font-size-sm); }

/* ── Bulk-edit toolbar (Rules page's per-stock table) ─────────────────── */
.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}
.bulk-actions__group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.bulk-actions__prefix {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}
.bulk-actions__hint {
    width: 100%;
    margin: 0;
}

