* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f5f7;
  color: #111;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #111827;
  color: white;
  padding: 24px;
}

.sidebar h1 {
  margin-top: 0;
  margin-bottom: 30px;
}

.nav {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  background: transparent;
  color: white;
  border: 0;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
}

.nav:hover,
.nav.active {
  background: #374151;
}

.main {
  flex: 1;
  padding: 32px;
}

.hidden {
  display: none !important;
}

.cards {
  display: flex;
  gap: 20px;
}

.card {
  background: white;
  padding: 24px;
  border-radius: 10px;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card span {
  display: block;
  color: #666;
  margin-bottom: 10px;
}

.card strong {
  font-size: 32px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button {
  cursor: pointer;
}

#addStoreButton,
#saveStore {
  background: #111827;
  color: white;
  border: 0;
  padding: 10px 16px;
  border-radius: 6px;
}

.store-card {
  background: white;
  margin-top: 15px;
  padding: 18px;
  border-radius: 8px;
}

.store-card strong {
  display: block;
  margin-bottom: 5px;
}

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

th,
td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: white;
  padding: 25px;
  width: 400px;
  border-radius: 10px;
}

.modal-box label {
  display: block;
  margin-top: 12px;
  margin-bottom: 5px;
}

.modal-box input {
  width: 100%;
  padding: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.error {
  color: red;
}
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5f7;
}

.login-card {
    width: 380px;
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.12);
}

.login-card h1 {
    margin-top: 0;
    margin-bottom: 8px;
}

.login-card p {
    color: #666;
}

.login-card label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
}

.login-card input {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.login-card button {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: #111827;
    color: white;
}

.login-card .error {
    color: #b91c1c;
    margin-top: 15px;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5f7;
}

.login-card {
    width: 380px;
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.12);
}

.login-card h1 {
    margin-top: 0;
    margin-bottom: 8px;
}

.login-card p {
    color: #666;
}

.login-card label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
}

.login-card input {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.login-card button {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: #111827;
    color: white;
}

.login-card .error {
    color: #b91c1c;
    margin-top: 15px;
}

.store-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.store-actions button {
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    background: #374151;
    color: white;
}

.store-actions button:hover {
    background: #111827;
}

.store-actions button:last-child {
    background: #991b1b;
}

.store-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.store-actions button {
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    background: #374151;
    color: white;
}

.store-actions button:hover {
    background: #111827;
}

.store-actions button:last-child {
    background: #991b1b;
}

.store-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.store-actions button {
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    background: #374151;
    color: white;
}

.store-actions button:hover {
    background: #111827;
}

.store-actions button:last-child {
    background: #991b1b;
}

.store-actions button[data-action="delete"] {
    background: #7f1d1d;
}

.store-actions button[data-action="delete"]:hover {
    background: #450a0a;
}

.store-actions button[data-action="klaviyo"] {
    background: #6d28d9;
}

.store-actions button[data-action="klaviyo"]:hover {
    background: #5b21b6;
}


/* =========================================================
   KLAVIYO SETTINGS
   ========================================================= */

.klaviyo-settings-panel {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 10px;
}

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

.klaviyo-settings-header h2 {
    margin: 0 0 6px;
}

.klaviyo-settings-header p {
    margin: 0;
    opacity: 0.7;
}

.klaviyo-settings-status {
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(128, 128, 128, 0.2);
}

.klaviyo-settings-status.connected {
    background: rgba(34, 197, 94, 0.15);
}

.klaviyo-setting-row {
    margin-bottom: 20px;
}

.klaviyo-setting-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.klaviyo-setting-row small {
    display: block;
    margin-top: 7px;
    opacity: 0.65;
}

.klaviyo-current-key {
    font-family: monospace;
    padding: 11px 12px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 7px;
}

.klaviyo-key-input-wrap {
    display: flex;
    gap: 8px;
}

.klaviyo-key-input-wrap input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 7px;
    border: 1px solid rgba(128, 128, 128, 0.35);
}

.klaviyo-key-input-wrap button {
    min-width: 70px;
}

.klaviyo-settings-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.klaviyo-settings-actions button {
    padding: 9px 16px;
    border-radius: 7px;
    border: 0;
    cursor: pointer;
}

#saveKlaviyoKey {
    background: #6d28d9;
    color: white;
}

#saveKlaviyoKey:hover {
    background: #5b21b6;
}

.klaviyo-settings-message {
    margin-top: 16px;
    min-height: 20px;
}

.klaviyo-settings-message.success {
    color: #16a34a;
}

.klaviyo-settings-message.error {
    color: #dc2626;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.page-subtitle {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.dashboard-heading,
.customer-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-heading h2,
.customer-page-heading h2 {
    margin: 0;
}

.primary-button {
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    background: #111827;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.primary-button:hover {
    background: #1f2937;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(190px, 1fr)
        );
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    min-height: 125px;
    display: flex;
    flex-direction: column;
}

.metric-label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.metric-value {
    margin-top: 10px;
    color: #111827;
    font-size: 30px;
    line-height: 1;
}

.metric-note {
    color: #9ca3af;
    font-size: 12px;
    margin-top: auto;
    padding-top: 12px;
}

.dashboard-two-column {
    display: grid;
    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(300px, 0.8fr);
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.panel-heading h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.panel-heading p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.panel-heading button {
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 7px;
    padding: 8px 12px;
    cursor: pointer;
}

.dashboard-store-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #f0f1f3;
}

.dashboard-store-row:first-child {
    border-top: 0;
}

.store-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.store-main > div:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.store-main strong {
    font-size: 14px;
}

.store-main span {
    color: #6b7280;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9ca3af;
    flex: 0 0 auto;
}

.store-status-dot.connected {
    background: #22c55e;
}

.store-stats {
    display: flex;
    gap: 30px;
}

.store-stats > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.store-stats span {
    color: #9ca3af;
    font-size: 11px;
}

.store-stats strong {
    font-size: 13px;
    margin-top: 3px;
}

.marketing-summary {
    border: 1px solid #eef0f3;
    border-radius: 9px;
    overflow: hidden;
}

.marketing-row {
    display: flex;
    justify-content: space-between;
    padding: 13px 14px;
    border-top: 1px solid #eef0f3;
}

.marketing-row:first-child {
    border-top: 0;
}

.marketing-row span {
    color: #6b7280;
    font-size: 13px;
}

.sync-times {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.sync-times > div {
    display: flex;
    flex-direction: column;
}

.sync-times span {
    color: #9ca3af;
    font-size: 11px;
}

.sync-times strong {
    margin-top: 3px;
    font-size: 12px;
}

.secondary-action {
    width: 100%;
    margin-top: 18px;
    padding: 9px 12px;
    border-radius: 7px;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
}

.recent-customer-row {
    width: 100%;
    border: 0;
    border-top: 1px solid #f0f1f3;
    background: transparent;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
}

.recent-customer-row:first-child {
    border-top: 0;
}

.recent-customer-row:hover {
    background: #fafafa;
}

.recent-customer-row > div:first-child {
    display: flex;
    flex-direction: column;
}

.recent-customer-row span {
    color: #6b7280;
    font-size: 12px;
}

.recent-customer-numbers {
    display: flex;
    align-items: center;
    gap: 24px;
}

.dashboard-empty {
    color: #6b7280;
    padding: 18px 0;
}


/* =========================================================
   CUSTOMERS
   ========================================================= */

.customer-total-badge {
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 999px;
    padding: 7px 12px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}

.customer-toolbar {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        220px
        220px
        auto;
    gap: 10px;
    margin-bottom: 16px;
}

.customer-toolbar input,
.customer-toolbar select {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    padding: 0 12px;
    font-size: 13px;
}

.customer-toolbar input:focus,
.customer-toolbar select:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow:
        0 0 0 3px
        rgba(17, 24, 39, 0.05);
}

.customer-refresh-button {
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    padding: 0 15px;
    cursor: pointer;
}

.customer-table-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.customer-table-scroll {
    overflow-x: auto;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
}

.customer-table thead {
    background: #f9fafb;
}

.customer-table th {
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.customer-table th[data-customer-sort] {
    cursor: pointer;
    user-select: none;
}

.customer-table th[data-customer-sort]::after {
    content: ' ↕';
    opacity: 0.3;
}

.customer-table th.sort-asc::after {
    content: ' ↑';
    opacity: 1;
}

.customer-table th.sort-desc::after {
    content: ' ↓';
    opacity: 1;
}

.customer-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 13px;
    vertical-align: middle;
}

.customer-row {
    cursor: pointer;
}

.customer-row:hover {
    background: #fafafa;
}

.customer-row:last-child td {
    border-bottom: 0;
}

.customer-name-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.customer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: white;
    font-weight: 700;
    font-size: 12px;
}

.customer-name-cell > div:last-child,
.customer-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-name-cell span,
.customer-contact span {
    color: #9ca3af;
    font-size: 11px;
}

.customer-contact strong {
    font-size: 12px;
}

.store-pill {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 999px;
    background: #f3f4f6;
    padding: 5px 9px;
    font-size: 11px;
    color: #4b5563;
}

.number-cell {
    font-variant-numeric:
        tabular-nums;
    white-space: nowrap;
}

.consent-badge,
.sync-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.consent-badge.subscribed {
    color: #166534;
    background: #dcfce7;
}

.consent-badge.unsubscribed {
    color: #991b1b;
    background: #fee2e2;
}

.consent-badge.unknown {
    color: #6b7280;
    background: #f3f4f6;
}

.sync-badge.synced {
    color: #5b21b6;
    background: #ede9fe;
}

.sync-badge.pending {
    color: #6b7280;
    background: #f3f4f6;
}

.empty-table-message {
    text-align: center;
    padding: 50px !important;
    color: #9ca3af;
}

.customer-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 12px;
}

.customer-pagination-buttons {
    display: flex;
    gap: 7px;
}

.customer-pagination button {
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 7px;
    padding: 7px 11px;
    cursor: pointer;
}

.customer-pagination button:disabled {
    opacity: 0.4;
    cursor: default;
}


/* =========================================================
   CUSTOMER DRAWER
   ========================================================= */

.customer-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(17,24,39,0.28);
    backdrop-filter: blur(1px);
}

.customer-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 901;
    width: min(520px, 94vw);
    background: white;
    box-shadow:
        -15px 0 40px
        rgba(0,0,0,0.13);
    display: flex;
    flex-direction: column;
}

.customer-drawer.hidden,
.customer-drawer-overlay.hidden {
    display: none !important;
}

.customer-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.customer-drawer-header h2 {
    margin: 4px 0;
}

.drawer-eyebrow {
    color: #6b7280;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.drawer-email {
    color: #6b7280;
    font-size: 13px;
}

.drawer-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.customer-drawer-content {
    padding: 22px 24px 50px;
    overflow-y: auto;
}

.drawer-metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.drawer-metric-grid > div {
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.drawer-metric-grid span {
    color: #6b7280;
    font-size: 11px;
}

.drawer-metric-grid strong {
    font-size: 21px;
    margin-top: 5px;
}

.drawer-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 21px;
    margin-top: 21px;
}

.drawer-section h3 {
    margin: 0 0 14px;
    font-size: 14px;
}

.drawer-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
}

.drawer-detail-row span {
    color: #6b7280;
    font-size: 12px;
}

.drawer-detail-row strong {
    font-size: 12px;
    text-align: right;
}

.drawer-consent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.drawer-consent-grid > div {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-consent-grid > div > span:first-child {
    color: #6b7280;
    font-size: 12px;
}

.drawer-store-card {
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 14px;
    margin-bottom: 9px;
}

.drawer-store-card > div:first-child {
    display: flex;
    flex-direction: column;
}

.drawer-store-card span {
    color: #9ca3af;
    font-size: 11px;
}

.drawer-store-metrics {
    margin-top: 12px;
    display: flex;
    gap: 25px;
}

.drawer-store-metrics > div {
    display: flex;
    flex-direction: column;
}

.drawer-store-metrics strong {
    margin-top: 3px;
    font-size: 12px;
}

.consent-history-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid #f0f1f3;
}

.consent-history-row:first-child {
    border-top: 0;
}

.consent-history-row > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.consent-history-row > div:last-child {
    flex-direction: column;
    align-items: flex-end;
}

.consent-history-row strong,
.consent-history-row span {
    font-size: 11px;
}

.drawer-loading,
.drawer-empty,
.drawer-error {
    padding: 30px 0;
    text-align: center;
    color: #6b7280;
}

.drawer-error {
    color: #b91c1c;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

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

    .customer-toolbar {
        grid-template-columns:
            1fr 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-heading,
    .customer-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-toolbar {
        grid-template-columns: 1fr;
    }

    .store-stats {
        gap: 12px;
    }

    .dashboard-store-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .drawer-metric-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ACCOUNT SETTINGS
   ========================================================= */

.account-page-heading {
    margin-bottom: 24px;
}

.account-page-heading h2 {
    margin: 0;
}

.account-settings-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 20px;
    max-width: 1000px;
}

.account-settings-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
}

.account-settings-card h3 {
    margin: 0 0 5px;
}

.settings-description {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 22px;
}

.account-settings-card label {
    display: block;
    margin: 17px 0 7px;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
}

.account-settings-card input {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
}

.account-settings-card input:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow:
        0 0 0 3px
        rgba(17,24,39,0.05);
}

.account-current-value {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #f9fafb;
    font-size: 13px;
}

.account-save-button {
    width: 100%;
    margin-top: 22px;
    border: 0;
    border-radius: 8px;
    padding: 11px 14px;
    background: #111827;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.account-save-button:hover {
    background: #1f2937;
}

.account-save-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.account-message {
    min-height: 20px;
    margin-top: 13px;
    font-size: 12px;
}

.account-message.success {
    color: #15803d;
}

.account-message.error {
    color: #b91c1c;
}

@media (max-width: 800px) {
    .account-settings-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SYNC HISTORY
   ========================================================= */

.sync-history-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auto-sync-status-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6b7280;
    font-size: 12px;
}

.auto-sync-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
}

.auto-sync-status-dot.active {
    background: #22c55e;
}

.auto-sync-status-dot.running {
    background: #f59e0b;
}

.sync-schedule-summary {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 12px;
    margin-bottom: 18px;
}

.sync-schedule-summary > div {
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
}

.sync-schedule-summary span {
    color: #9ca3af;
    font-size: 11px;
}

.sync-schedule-summary strong {
    margin-top: 4px;
    font-size: 13px;
}

.sync-history-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
}

.sync-history-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.sync-history-table th {
    padding: 11px 13px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    color: #6b7280;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sync-history-table td {
    padding: 12px 13px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 12px;
    vertical-align: middle;
}

.sync-history-table tr:last-child td {
    border-bottom: 0;
}

.job-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
}

.job-status.success {
    color: #166534;
    background: #dcfce7;
}

.job-status.failed {
    color: #991b1b;
    background: #fee2e2;
}

.job-status.running {
    color: #92400e;
    background: #fef3c7;
}

.job-status.pending {
    color: #4b5563;
    background: #f3f4f6;
}

.sync-error-text {
    display: block;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
}

@media (max-width: 760px) {
    .sync-history-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .sync-schedule-summary {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   KLAVIYO AUTOMATIC SYNC
   ========================================================= */

.klaviyo-auto-sync-panel {
    margin-top: 20px;
    padding: 20px 22px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.klaviyo-auto-sync-copy h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.klaviyo-auto-sync-copy p {
    max-width: 650px;
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.klaviyo-auto-sync-copy > span {
    font-size: 12px;
    color: #4b5563;
    font-weight: 600;
}

.settings-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex: 0 0 auto;
}

.settings-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: 0.2s;
}

.settings-switch-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    box-shadow:
        0 1px 3px
        rgba(0,0,0,0.25);
    transition: 0.2s;
}

.settings-switch input:checked +
.settings-switch-slider {
    background: #6d28d9;
}

.settings-switch input:checked +
.settings-switch-slider::before {
    transform: translateX(22px);
}

.settings-switch input:disabled +
.settings-switch-slider {
    opacity: 0.5;
    cursor: default;
}

@media (max-width: 700px) {
    .klaviyo-auto-sync-panel {
        align-items: flex-start;
    }
}


/* =========================================================
   KLAVIYO DELETED CUSTOMER
   ========================================================= */

.klaviyo-deleted-warning {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fef2f2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.klaviyo-deleted-warning strong {
    color: #991b1b;
    font-size: 13px;
}

.klaviyo-deleted-warning span {
    color: #7f1d1d;
    font-size: 11px;
}

.allow-klaviyo-sync-button {
    margin-top: 8px;
    align-self: flex-start;
    border: 1px solid #dc2626;
    border-radius: 7px;
    background: white;
    color: #991b1b;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.allow-klaviyo-sync-button:hover {
    background: #fee2e2;
}

.allow-klaviyo-sync-button:disabled {
    opacity: 0.5;
    cursor: default;
}


/* =========================================================
   KLAVIYO DELETED STATUS
   ========================================================= */

.sync-badge.deleted {
    color: #991b1b;
    background: #fee2e2;
}


/* =========================================================
   KLAVIYO-INSPIRED UI REFRESH
   ========================================================= */

:root {
    --app-bg: #f7f7f8;
    --surface: #ffffff;
    --surface-soft: #fafafa;
    --border: #e4e4e7;
    --border-strong: #d4d4d8;

    --text: #18181b;
    --text-soft: #71717a;
    --text-muted: #a1a1aa;

    --accent: #f3a6bc;
    --accent-soft: #fff1f5;
    --accent-border: #f8c8d6;

    --success-soft: #e9f9ef;
    --success: #17803d;

    --warning-soft: #fff7df;
    --warning: #a15c00;

    --danger-soft: #fff0f0;
    --danger: #b42318;

    --black: #18181b;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;

    --shadow-card:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 8px 30px rgba(0, 0, 0, 0.03);
}


/* =========================================================
   GLOBAL
   ========================================================= */

html,
body {
    background: var(--app-bg);
    color: var(--text);
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    letter-spacing: -0.01em;
}

main {
    background: var(--app-bg);
}

.page {
    padding: 36px 34px 60px;
}

.page h1,
.page h2 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.page h2 {
    font-size: 30px;
    line-height: 1.1;
}

.page h3 {
    color: var(--text);
    font-weight: 650;
    letter-spacing: -0.02em;
}

.page-header {
    margin-bottom: 28px;
}

.page-subtitle,
.settings-description {
    color: var(--text-soft);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    background: #ffffff !important;
    border-right: 1px solid var(--border);
    box-shadow: none !important;
}

.sidebar h1,
.sidebar .logo,
.sidebar .brand,
.sidebar-title {
    color: var(--text) !important;
}

.sidebar a,
.sidebar button,
.sidebar nav button,
.sidebar nav a {
    color: #52525b !important;
    border-radius: 9px;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.sidebar a:hover,
.sidebar button:hover,
.sidebar nav button:hover,
.sidebar nav a:hover {
    background: #f4f4f5 !important;
    color: var(--text) !important;
}

.sidebar .active,
.sidebar a.active,
.sidebar button.active,
.sidebar nav .active {
    background: #ededee !important;
    color: var(--text) !important;
    font-weight: 600;
}

.sidebar hr {
    border-color: var(--border);
}


/* =========================================================
   CARDS
   ========================================================= */

.card,
.store-card,
.account-settings-card,
.dashboard-card,
.settings-card,
.klaviyo-auto-sync-panel {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-card) !important;
}

.card {
    padding: 24px 26px;
}

.cards {
    gap: 18px;
}

.cards .card {
    min-height: 110px;
}

.card span {
    color: var(--text-soft);
    font-size: 14px;
}

.card strong {
    color: var(--text);
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.035em;
}


/* =========================================================
   BUTTONS
   ========================================================= */

button {
    border-radius: 9px !important;
    font-weight: 600;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.08s ease,
        opacity 0.15s ease;
}

button:active {
    transform: translateY(1px);
}

.page-header > button,
#connectKlaviyoButton,
#addStoreButton,
#saveStore,
.account-save-button {
    background: var(--black) !important;
    color: white !important;
    border: 1px solid var(--black) !important;
}

.page-header > button:hover,
#connectKlaviyoButton:hover,
#addStoreButton:hover,
#saveStore:hover,
.account-save-button:hover {
    background: #2f2f33 !important;
}

button[data-action="import"],
button[data-action="test"],
button[data-action="disconnect"] {
    background: #ffffff !important;
    color: var(--text) !important;
    border: 1px solid var(--border-strong) !important;
}

button[data-action="import"]:hover,
button[data-action="test"]:hover,
button[data-action="disconnect"]:hover {
    background: #f4f4f5 !important;
}

button[data-action="klaviyo"] {
    background: var(--accent-soft) !important;
    color: #7e2947 !important;
    border: 1px solid var(--accent-border) !important;
}

button[data-action="klaviyo"]:hover {
    background: #ffe7ee !important;
}

button[data-action="delete"] {
    background: var(--danger-soft) !important;
    color: var(--danger) !important;
    border: 1px solid #f4c5c1 !important;
}


/* =========================================================
   STORE CARDS
   ========================================================= */

.store-card {
    padding: 24px !important;
    margin-bottom: 18px;
}

.store-card > strong {
    font-size: 18px;
    color: var(--text);
    font-weight: 700;
}

.store-card > div:not(.store-actions):not(.error) {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.65;
}

.store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.store-actions button {
    padding: 9px 13px;
}


/* =========================================================
   TABLES
   ========================================================= */

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: var(--surface);
}

thead th {
    background: #fafafa !important;
    color: #71717a !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    font-weight: 700 !important;
    border-bottom: 1px solid var(--border) !important;
}

tbody td {
    color: var(--text);
    border-bottom: 1px solid #eeeeef !important;
}

tbody tr:hover td {
    background: #fafafa;
}

.customer-table-container,
.table-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}


/* =========================================================
   INPUTS
   ========================================================= */

input,
select,
textarea {
    background: #ffffff !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--text) !important;
    border-radius: 9px !important;
    min-height: 40px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #b9b9bf !important;
    box-shadow:
        0 0 0 3px rgba(24, 24, 27, 0.06) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}


/* =========================================================
   KLAVIYO PAGE
   ========================================================= */

#klaviyoPage .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#klaviyoPage > .card:first-of-type {
    padding: 28px 26px;
}

#klaviyoStatus {
    display: block;
    margin-top: 8px;
    font-size: 34px;
}

#klaviyoPage .cards .card {
    flex: 0 0 235px;
}

#klaviyoPage .cards {
    justify-content: flex-start;
}

#klaviyoPage .settings-card,
#klaviyoPage .klaviyo-auto-sync-panel {
    margin-top: 22px;
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.sync-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px !important;
    font-size: 11px;
    font-weight: 650;
}

.sync-badge.synced {
    background: var(--success-soft);
    color: var(--success);
}

.sync-badge.pending {
    background: #f4f4f5;
    color: #52525b;
}

.sync-badge.deleted {
    background: var(--danger-soft);
    color: var(--danger);
}


/* =========================================================
   MODALS
   ========================================================= */

.modal {
    backdrop-filter: blur(4px);
}

.modal-box {
    background: #ffffff !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl) !important;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.18) !important;
    padding: 28px !important;
}


/* =========================================================
   CUSTOMER DRAWER
   ========================================================= */

.customer-drawer {
    background: #ffffff !important;
    border-left: 1px solid var(--border);
    box-shadow:
        -16px 0 50px rgba(0, 0, 0, 0.08);
}

.customer-drawer-header {
    border-bottom: 1px solid var(--border);
}

.drawer-section {
    border-top: 1px solid var(--border);
}

.drawer-eyebrow {
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   KLAVIYO SETTINGS
   ========================================================= */

#klaviyoPage input {
    background: #ffffff !important;
}

.klaviyo-auto-sync-panel,
.settings-card {
    background: var(--surface) !important;
}

.settings-switch {
    background: #e4e4e7;
}

.settings-switch input:checked + span,
.settings-switch input:checked ~ span {
    background: var(--black);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.customer-pagination {
    margin-top: 18px;
}

.customer-pagination button {
    background: #ffffff !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

.customer-pagination button:hover {
    background: #f4f4f5 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .page {
        padding: 24px 18px 40px;
    }

    .cards {
        flex-direction: column;
    }

    #klaviyoPage .cards .card {
        flex: 1 1 auto;
    }
}


/* =========================================================
   APP BRAND
   ========================================================= */

.app-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 8px 28px;
}

.app-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--black);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 750;
}

.app-brand-name {
    color: var(--text);
    font-size: 15px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.app-brand-subtitle {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 10px;
    line-height: 1;
}


/* =========================================================
   DASHBOARD METRIC CARD FIX
   ========================================================= */

#dashboardPage .cards {
    display: grid !important;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(210px, 1fr)
        ) !important;
    gap: 18px !important;
}

#dashboardPage .cards .card {
    min-width: 0 !important;
    width: auto !important;
    overflow: hidden;
}

#dashboardPage .cards .card strong {
    display: block;
    max-width: 100%;
    font-size: clamp(
        26px,
        2.2vw,
        34px
    ) !important;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#dashboardPage .cards .card span {
    display: block;
    margin-bottom: 10px;
}

@media (min-width: 1450px) {

    #dashboardPage .cards {
        grid-template-columns:
            repeat(4, 1fr) !important;
    }
}

@media (max-width: 1100px) {

    #dashboardPage .cards {
        grid-template-columns:
            repeat(2, 1fr) !important;
    }
}

@media (max-width: 650px) {

    #dashboardPage .cards {
        grid-template-columns:
            1fr !important;
    }
}


/* =========================================================
   DASHBOARD METRICS — KLAVIYO STYLE LAYOUT
   ========================================================= */

#dashboardPage .dashboard-metrics,
#dashboardPage .cards:first-of-type {
    display: grid !important;
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100%;
}

#dashboardPage .dashboard-metrics .card,
#dashboardPage .cards:first-of-type .card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    padding: 22px !important;
}

#dashboardPage .dashboard-metrics .card strong,
#dashboardPage .cards:first-of-type .card strong {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 32px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#dashboardPage .dashboard-metrics .card span,
#dashboardPage .cards:first-of-type .card span {
    font-size: 13px !important;
}

#dashboardPage .dashboard-metrics .card p,
#dashboardPage .cards:first-of-type .card p {
    color: #8b8b95;
    font-size: 12px;
    margin-top: 12px;
}


/* Give Lifetime Spend extra room */

#dashboardPage .dashboard-metrics .card:nth-child(4) strong,
#dashboardPage .cards:first-of-type .card:nth-child(4) strong {
    font-size: 27px !important;
}


/* =========================================================
   RESPONSIVE DASHBOARD METRICS
   ========================================================= */

@media (max-width: 1350px) {

    #dashboardPage .dashboard-metrics,
    #dashboardPage .cards:first-of-type {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1050px) {

    #dashboardPage .dashboard-metrics,
    #dashboardPage .cards:first-of-type {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 650px) {

    #dashboardPage .dashboard-metrics,
    #dashboardPage .cards:first-of-type {
        grid-template-columns:
            1fr !important;
    }
}


/* =========================================================
   LIFETIME SPEND — EXACT FIX
   ========================================================= */

.metric-card {
    min-width: 0 !important;
    overflow: hidden !important;
}

.metric-value {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

#dashboardLifetimeSpend {
    font-size: 25px !important;
    letter-spacing: -0.04em !important;
    line-height: 1.08 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}


/* =========================================================
   KLAVIYO-STYLE SIDEBAR NAV
   ========================================================= */

.sidebar {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.sidebar-nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    min-height: 44px;
    padding: 0 12px !important;
    margin-bottom: 5px;
    text-align: left;
}

.sidebar-nav-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
}

.sidebar-nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-nav-item:hover
.sidebar-nav-icon {
    color: #18181b;
}

.sidebar-nav-item.active
.sidebar-nav-icon,
.sidebar .active
.sidebar-nav-icon {
    color: #18181b;
}


/* =========================================================
   CLEANER APP BUTTON SYSTEM
   ========================================================= */

button {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
    letter-spacing: -0.01em;
}

button:not(:disabled) {
    cursor: pointer;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

#dashboardRefresh,
#dashboardManageStores {
    border-radius: 10px !important;
}

#dashboardManageStores {
    background: white !important;
    color: #18181b !important;
    border: 1px solid #d4d4d8 !important;
}

#dashboardManageStores:hover {
    background: #f4f4f5 !important;
}


/* =========================================================
   DASHBOARD PANEL POLISH
   ========================================================= */

.dashboard-panel {
    border-radius: 18px !important;
    border: 1px solid #e4e4e7 !important;
    background: #ffffff !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 8px 30px rgba(0, 0, 0, 0.025);
}

.panel-heading {
    padding-bottom: 18px;
}

.panel-heading h3 {
    font-size: 18px !important;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.panel-heading p {
    color: #71717a;
    font-size: 13px;
}


/* =========================================================
   STORE ROW POLISH
   ========================================================= */

.dashboard-store-list > div {
    transition:
        background 0.15s ease;
}

.dashboard-store-list > div:hover {
    background: #fafafa;
}

.dashboard-store-list strong {
    letter-spacing: -0.015em;
}


/* =========================================================
   MARKETING SUMMARY POLISH
   ========================================================= */

.marketing-summary {
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid #e4e4e7 !important;
}

.marketing-row {
    padding: 14px 16px !important;
    border-bottom: 1px solid #eeeeef !important;
}

.marketing-row:last-child {
    border-bottom: 0 !important;
}

.marketing-row span {
    color: #71717a;
}

.marketing-row strong {
    font-weight: 700;
}


/* =========================================================
   STORE SYNC HEALTH
   ========================================================= */

.store-card {
    padding: 24px !important;
}

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

.store-card-title {
    display: block;
    color: #18181b;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.store-card-domain {
    margin-top: 5px;
    color: #8b8b95 !important;
    font-size: 12px !important;
}

.store-health-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 12px;
}

.store-health-section {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e7e7e9;
    border-radius: 13px;
    background: #fafafa;
}

.store-health-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 17px;
}

.store-health-heading > span:first-child {
    color: #3f3f46;
    font-size: 12px;
    font-weight: 700;
}

.store-health-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.store-health-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.store-health-pill.healthy {
    background: #e9f8ef;
    color: #18753b;
}

.store-health-pill.running {
    background: #fff5df;
    color: #946200;
}

.store-health-pill.error {
    background: #fff0f0;
    color: #b42318;
}

.store-health-pill.neutral {
    background: #ededee;
    color: #71717a;
}

.store-health-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.store-health-stat span {
    color: #71717a !important;
    font-size: 11px !important;
}

.store-health-stat strong {
    color: #18181b;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 700;
}

.store-health-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 12px;
}

.store-health-mini-stats span {
    color: #71717a !important;
    font-size: 10px !important;
}

.store-health-mini-stats strong {
    color: #3f3f46;
    font-size: inherit !important;
}

.store-health-time {
    color: #8b8b95 !important;
    font-size: 10px !important;
    line-height: 1.4;
}

.store-health-time.prominent {
    color: #52525b !important;
    font-size: 11px !important;
}

.store-health-error {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fff5f5;
    color: #b42318 !important;
    font-size: 11px !important;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.store-actions {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #eeeeef;
}

@media (max-width: 1100px) {

    .store-health-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .store-health-section:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {

    .store-health-grid {
        grid-template-columns: 1fr;
    }

    .store-health-section:last-child {
        grid-column: auto;
    }

    .store-card-header {
        flex-direction: column;
    }
}
