.mobile-table-toolbar, .mobile-table-cell-label, .mobile-table-disclosure { display: none; }
.mobile-table-scroll-hint { margin: .5rem 0; padding: 0 .75rem; font-size: .75rem; line-height: 1.5; color: #64748b; }
.mobile-table-scroll-hint[hidden] { display: none; }
.mobile-table-shell { min-width: 0; max-width: 100%; }
@media (max-width: 639px) {
    .mobile-table-shell { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
    .mobile-table-shell:focus-visible { outline: 2px solid #7c3aed; outline-offset: -2px; }
    .mobile-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; color: #64748b; font-size: .75rem; }
    .mobile-table-toolbar button, .mobile-table-disclosure button { min-height: 44px; padding: .5rem .75rem; border: 1px solid #ddd6fe; border-radius: .625rem; background: #faf5ff; color: #6d28d9; font-size: .8125rem; font-weight: 600; }
    .mobile-table-toolbar button:focus-visible, .mobile-table-disclosure button:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
    .mobile-table-shell table.mobile-table-ready { display: table; width: 100%; max-width: none; border-collapse: collapse; font-size: .8125rem; }
    .mobile-table-shell table.mobile-table-ready:not(.mobile-table-cards) :is(th,td) { min-width: 6rem; max-width: 18rem; padding: .625rem; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
    .mobile-table-shell table.mobile-table-ready:not(.mobile-table-cards) .mobile-table-frozen-cell { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 #e2e8f0; }
    .mobile-table-shell table.mobile-table-ready:not(.mobile-table-cards) thead .mobile-table-frozen-cell { z-index: 2; background: #f8fafc; }
    .mobile-table-shell table.mobile-table-ready:not(.mobile-table-cards) .mobile-table-select-cell { min-width: 3rem; width: 3rem; max-width: 3rem; }
    .mobile-table-shell table.mobile-table-ready input[type="checkbox"] { width: 20px; height: 20px; }
    .mobile-table-shell table.mobile-table-cards { display: block; table-layout: auto; background: transparent; }
    .mobile-table-shell table.mobile-table-cards thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .mobile-table-shell table.mobile-table-cards tbody { display: grid; gap: .625rem; padding: .5rem; border: 0; }
    .mobile-table-shell table.mobile-table-cards tbody tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: .5rem .75rem; margin: 0; padding: .75rem; border: 1px solid #e2e8f0; border-radius: .875rem; background: #fff; box-shadow: 0 1px 2px #0f172a05; }
    .mobile-table-shell table.mobile-table-cards tbody tr.hidden, .mobile-table-shell table.mobile-table-cards tbody tr[hidden] { display: none !important; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-cell { display: block; order: var(--mobile-cell-order); min-width: 0; max-width: 100%; width: auto; padding: 0; border: 0; font-size: .8125rem; line-height: 1.5; text-align: left; white-space: normal; overflow-wrap: anywhere; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-cell :is(.whitespace-nowrap,.truncate) { white-space: normal; overflow-wrap: anywhere; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-cell img { max-width: 100%; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-cell a, .mobile-table-shell table.mobile-table-cards .mobile-table-cell button { min-height: 44px; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-cell button { min-width: 44px; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-detail { display: none; grid-column: 1 / -1; padding-top: .5rem; border-top: 1px solid #f1f5f9; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-expanded .mobile-table-detail { display: block; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-detail .mobile-table-cell-label { display: block; margin-bottom: .25rem; color: #64748b; font-size: .6875rem; font-weight: 500; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-disclosure { display: block; grid-column: 1 / -1; order: 999; padding: .25rem 0 0; border: 0; text-align: right; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-empty-row { display: block; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-empty-row > :is(td,th) { display: block; width: 100%; padding: .75rem; border: 0; }
}
@media (max-width: 639px) {
    .mobile-table-shell table.mobile-table-cards .mobile-table-primary-last { grid-column: 1 / -1; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-primary .w-8.h-8 { width: 1.5rem; height: 1.5rem; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-primary .space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: .375rem; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-primary > span.inline-flex { padding: .25rem .5rem; }
}
@media (max-width: 639px) {
    .bulk-email-container, .bulk-sms-container { grid-template-columns: minmax(0,1fr); min-width: 0; }
    :is(.bulk-email-container,.bulk-sms-container) :is(.email-compose-panel,.sms-compose-panel,.recipients-panel) { min-width: 0; padding: .75rem; overflow-wrap: anywhere; }
    :is(.bulk-email-container,.bulk-sms-container) :is(input,textarea,iframe) { box-sizing: border-box; max-width: 100%; }
    :is(.bulk-email-container,.bulk-sms-container) :is(.select-controls,.tab-buttons) { flex-wrap: wrap; }
    :is(.bulk-email-container,.bulk-sms-container) :is(.tab-btn,.select-controls button) { min-height: 44px; }
    :is(.bulk-email-container,.bulk-sms-container) .recipient-count { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 639px) {
    .mobile-table-shell { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
    .mobile-table-shell::-webkit-scrollbar { height: 4px; width: 4px; }
    .mobile-table-shell::-webkit-scrollbar-track { background: transparent; }
    .mobile-table-shell::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
}
@media (max-width: 639px) {
    .mobile-table-shell { scroll-margin-top: 6rem; }
    .mobile-table-shell table.mobile-table-ready { overflow: visible; }
}
@media (max-width: 639px) {
    .mobile-table-shell table.mobile-table-cards .mobile-table-compact-row { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
    .mobile-table-shell table.mobile-table-cards .mobile-table-compact-row:not(.mobile-table-expanded) .mobile-table-primary-last,
    .mobile-table-shell table.mobile-table-cards .mobile-table-compact-row:not(.mobile-table-expanded) .mobile-table-disclosure { grid-column: auto; align-self: center; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-compact-row:not(.mobile-table-expanded) .mobile-table-primary .flex-shrink-0 { display: none; }
    .mobile-table-shell table.mobile-table-cards .mobile-table-compact-row:not(.mobile-table-expanded) .mobile-table-primary .space-x-3 > * { margin-left: 0; }
}
@media (max-width: 639px) {
    .mobile-table-shell table.mobile-table-ready a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
}
