/**
 * Styles globaux admin - SlideMind
 *
 * @package SlideMind
 * @since 2.0.0
 */

/* Variables CSS — Brand palette: sage, terra, cream, sand, charcoal */
:root {
    --sm-primary: #7a9a78;
    --sm-primary-hover: #6b8b69;
    --sm-primary-light: #eef3ee;
    --sm-success: #10b981;
    --sm-success-light: #d1fae5;
    --sm-warning: #d99b6a;
    --sm-warning-light: #fdf4ec;
    --sm-error: #ef4444;
    --sm-error-light: #fee2e2;
    --sm-gray-50: #f7f6f3;
    --sm-gray-100: #f1efe9;
    --sm-gray-200: #e3dacc;
    --sm-gray-300: #d4cabb;
    --sm-gray-400: #a8a29e;
    --sm-gray-500: #78716c;
    --sm-gray-600: #57534e;
    --sm-gray-700: #44403c;
    --sm-gray-800: #292524;
    --sm-gray-900: #141413;
    --sm-radius: 8px;
    --sm-shadow: 0 1px 3px rgba(20, 20, 19, 0.08), 0 1px 2px rgba(20, 20, 19, 0.05);
    --sm-shadow-lg: 0 10px 15px -3px rgba(20, 20, 19, 0.08), 0 4px 6px -2px rgba(20, 20, 19, 0.04);
    --sm-pro-gradient: linear-gradient(135deg, #d99b6a, #c17d4a);
    --sm-pro-gradient-hover: linear-gradient(135deg, #c88f5e, #b06e3e);
}

/* Layout principal */
.sm-wrap {
    margin: 20px 20px 20px 0;
}

/* Form layout : main + sidebar */
.sm-form-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.sm-form-main {
    min-width: 0;
}

.sm-form-sidebar {
    position: sticky;
    top: 32px;
}

@media (max-width: 960px) {
    .sm-form-layout {
        grid-template-columns: 1fr;
    }
}

.sm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sm-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--sm-gray-900);
    margin: 0;
}

.sm-header-actions {
    display: flex;
    gap: 12px;
}

/* Cards */
.sm-card {
    background: #fff;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.sm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sm-gray-200);
}

.sm-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--sm-gray-900);
    margin: 0;
}

.sm-card-subtitle {
    font-size: 14px;
    color: var(--sm-gray-500);
    margin-top: 4px;
}

/* Grille de stats */
.sm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.sm-stat-card {
    background: #fff;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
    padding: 20px;
    text-align: center;
}

.sm-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--sm-primary);
    line-height: 1;
}

.sm-stat-label {
    font-size: 14px;
    color: var(--sm-gray-500);
    margin-top: 8px;
}

.sm-stat-card--success .sm-stat-value {
    color: var(--sm-success);
}

.sm-stat-card--warning .sm-stat-value {
    color: var(--sm-warning);
}

/* Boutons */
.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.sm-btn-primary {
    background: var(--sm-primary);
    color: #fff;
}

.sm-btn-primary:hover {
    background: var(--sm-primary-hover);
    color: #fff;
}

.sm-btn-secondary {
    background: var(--sm-gray-100);
    color: var(--sm-gray-700);
    border: 1px solid var(--sm-gray-300);
}

.sm-btn-secondary:hover {
    background: var(--sm-gray-200);
    color: var(--sm-gray-700);
}

.sm-btn-success {
    background: var(--sm-success);
    color: #fff;
}

.sm-btn-success:hover {
    background: #059669;
    color: #fff;
}

.sm-btn-danger {
    background: var(--sm-error);
    color: #fff;
}

.sm-btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.sm-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.sm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Formulaires */
.sm-form-group {
    margin-bottom: 20px;
}

.sm-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--sm-gray-700);
    margin-bottom: 6px;
}

.sm-form-label .required {
    color: var(--sm-error);
}

.sm-form-help {
    font-size: 13px;
    color: var(--sm-gray-500);
    margin-top: 4px;
}

.sm-clickable-var {
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.sm-clickable-var:hover {
    background-color: var(--sm-primary, #4f46e5);
    color: #fff;
    border-radius: 3px;
}

/* Inline variable tags in inherited content preview */
.sm-inherited-var-tag {
    font-size: 11px;
    color: var(--sm-gray-400);
    font-weight: normal;
    padding: 1px 4px;
    background: var(--sm-gray-100);
    border-radius: 3px;
    vertical-align: baseline;
}

/* Favorite Toggle */
.sm-favorite-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--sm-gray-300, #d1d5db);
    transition: color 0.15s;
    line-height: 1;
}

.sm-favorite-toggle:hover {
    color: #f59e0b;
}

.sm-favorite-toggle.is-favorite {
    color: #f59e0b;
}

/* Emoji Picker */
.sm-emoji-picker-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sm-emoji-input {
    width: 56px !important;
    min-width: 56px;
    text-align: center;
    font-size: 24px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
}

.sm-emoji-clear {
    background: none;
    border: none;
    color: var(--sm-gray-400, #9ca3af);
    padding: 2px;
    cursor: pointer;
}

.sm-emoji-clear:hover {
    color: var(--sm-error, #dc2626);
}

.sm-emoji-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--sm-gray-200, #e5e7eb);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    width: 280px;
    max-height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sm-emoji-search-wrap {
    padding: 8px;
    border-bottom: 1px solid var(--sm-gray-200, #e5e7eb);
}

.sm-emoji-search {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--sm-gray-200, #e5e7eb);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.sm-emoji-search:focus {
    border-color: var(--sm-primary, #4f46e5);
}

.sm-emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 8px;
    overflow-y: auto;
    max-height: 250px;
}

.sm-emoji-grid .sm-emoji-category {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 600;
    color: var(--sm-gray-500, #6b7280);
    padding: 6px 4px 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-emoji-grid .sm-emoji-category:first-child {
    padding-top: 0;
}

.sm-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.1s;
    border: none;
    background: none;
    padding: 0;
}

.sm-emoji-item:hover {
    background-color: var(--sm-gray-100, #f3f4f6);
}

.sm-form-input,
.sm-form-select,
.sm-form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--sm-gray-300);
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sm-form-input:focus,
.sm-form-select:focus,
.sm-form-textarea:focus {
    outline: none;
    border-color: var(--sm-primary);
    box-shadow: 0 0 0 3px var(--sm-primary-light);
}

.sm-form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.sm-editor-var-row {
    margin-bottom: 8px;
}

.sm-editor-var-row:last-child {
    margin-bottom: 0;
}

.sm-editor-var-reset {
    background: none;
    border: 1px solid var(--sm-gray-300);
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 6px 6px;
    color: var(--sm-gray-500, #6b7280);
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.sm-editor-var-reset:hover {
    color: var(--sm-primary);
    border-color: var(--sm-primary);
}

.sm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Tableaux */
.sm-table {
    width: 100%;
    border-collapse: collapse;
}

.sm-table th,
.sm-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sm-gray-200);
}

.sm-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sm-gray-500);
    background: var(--sm-gray-50);
}

.sm-table tbody tr:hover {
    background: var(--sm-gray-50);
}

.sm-table-actions {
    display: flex;
    gap: 8px;
}

/* Badges */
.sm-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.sm-badge-success {
    background: var(--sm-success-light);
    color: #065f46;
}

.sm-badge-warning {
    background: var(--sm-warning-light);
    color: #92400e;
}

.sm-badge-error {
    background: var(--sm-error-light);
    color: #991b1b;
}

.sm-badge-info {
    background: var(--sm-primary-light);
    color: #3730a3;
}

.sm-badge-muted {
    background: var(--sm-gray-200);
    color: var(--sm-gray-500);
}

.sm-collapsible-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* ID Configuration copiable */
.sm-copyable {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--sm-gray-100);
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    color: var(--sm-gray-700);
}

.sm-copyable-btn {
    background: none;
    border: none;
    color: var(--sm-primary);
    cursor: pointer;
    padding: 2px;
}

.sm-copyable-btn:hover {
    color: var(--sm-primary-hover);
}

.sm-code-block {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #1f2937;
    color: #e5e7eb;
    padding: 12px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
}

/* Messages */
.sm-notice {
    padding: 16px 20px;
    border-radius: var(--sm-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sm-notice-success {
    background: var(--sm-success-light);
    border: 1px solid var(--sm-success);
}

.sm-notice-warning {
    background: var(--sm-warning-light);
    border: 1px solid var(--sm-warning);
}

.sm-notice-error {
    background: var(--sm-error-light);
    border: 1px solid var(--sm-error);
}

.sm-notice-info {
    background: var(--sm-primary-light);
    border: 1px solid var(--sm-primary);
}

/* Loader / Spinner */
.sm-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--sm-gray-200);
    border-top-color: var(--sm-primary);
    border-radius: 50%;
    animation: sm-spin 0.8s linear infinite;
}

@keyframes sm-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal */
.sm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sm-modal {
    background: #fff;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.sm-modal-overlay.active .sm-modal {
    transform: scale(1);
}

.sm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--sm-gray-200);
}

.sm-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.sm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--sm-gray-400);
    cursor: pointer;
    line-height: 1;
}

.sm-modal-close:hover {
    color: var(--sm-gray-600);
}

.sm-modal-body {
    padding: 24px;
}

.sm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--sm-gray-200);
    background: var(--sm-gray-50);
}

/* Tabs */
.sm-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--sm-gray-200);
    margin-bottom: 24px;
}

.sm-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sm-gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.sm-tab:hover {
    color: var(--sm-gray-700);
}

.sm-tab.active {
    color: var(--sm-primary);
    border-bottom-color: var(--sm-primary);
}

.sm-tab-content {
    display: none;
}

.sm-tab-content.active {
    display: block;
}

/* Empty state */
.sm-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.sm-empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--sm-gray-300);
}

.sm-empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sm-gray-900);
    margin-bottom: 8px;
}

.sm-empty-state-description {
    font-size: 14px;
    color: var(--sm-gray-500);
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 782px) {
    .sm-wrap {
        margin: 10px;
    }

    .sm-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sm-form-row {
        grid-template-columns: 1fr;
    }

    .sm-table {
        display: block;
        overflow-x: auto;
    }
}

/* Collapsible sections (shared: settings, wizard) */
.sm-collapsible-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--sm-gray-50);
    border: 1px solid var(--sm-gray-200);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--sm-gray-700);
    transition: all 0.2s ease;
}

.sm-collapsible-toggle:hover {
    background: var(--sm-gray-100);
}

.sm-collapsible-toggle .dashicons:last-child {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.sm-collapsible-toggle.open .dashicons:last-child {
    transform: rotate(180deg);
}

.sm-collapsible-content {
    display: none;
    padding: 20px 0 0;
}

.sm-collapsible-content.open {
    display: block;
}

/* Select2 customization */
.sm-wrap .select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid var(--sm-gray-300);
    border-radius: 6px;
}

.sm-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 14px;
}

.sm-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

.sm-wrap .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--sm-primary);
    box-shadow: 0 0 0 3px var(--sm-primary-light);
}

.sm-wrap .select2-dropdown {
    border-color: var(--sm-gray-300);
    border-radius: 6px;
    box-shadow: var(--sm-shadow-lg);
}

/* ── Profile Fields ──────────────────────────────────── */

.sm-profile-field-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background-color 0.15s;
}

.sm-profile-field-row:hover {
    background-color: var(--sm-gray-50, #f9fafb);
}

.sm-profile-field-label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    margin: 0;
    flex-shrink: 0;
}

.sm-profile-display-name {
    font-size: 13px;
}

.sm-profile-original-name {
    font-size: 11px;
    font-style: italic;
    color: var(--sm-gray-400);
    white-space: nowrap;
}

.sm-profile-field-row:not(.sm-alias-active) .sm-profile-original-name {
    display: none;
}

.sm-profile-edit-alias {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--sm-gray-300);
    line-height: 1;
    transition: color 0.15s;
    flex-shrink: 0;
}

.sm-profile-edit-alias:hover,
.sm-profile-edit-alias:focus {
    color: var(--sm-primary);
    outline: none;
}

.sm-profile-edit-alias .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.sm-profile-alias-wrapper {
    display: flex;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
    flex-shrink: 0;
    margin-left: 0;
}

.sm-profile-alias-wrapper.sm-alias-visible {
    width: 152px;
    padding-left: 2px;
    opacity: 1;
    margin-left: 4px;
}

.sm-profile-field-row .sm-profile-alias-input.sm-form-input {
    width: 150px;
    min-width: 150px;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    box-sizing: border-box;
}

.sm-profile-var-tag {
    font-size: 11px;
    color: var(--sm-gray-400);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Mode Selector (radio cards) ─────────────────────── */
.sm-mode-selector {
    display: flex;
    gap: 12px;
}

.sm-mode-option {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 24px;
    min-height: 88px;
    border: 2px solid var(--sm-gray-200);
    border-radius: var(--sm-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
}

.sm-mode-option:hover {
    border-color: var(--sm-primary);
    background: var(--sm-primary-light);
}

.sm-mode-option--active {
    border-color: var(--sm-primary);
    background: var(--sm-primary-light);
}

.sm-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Text block — left-aligned, on top of watermark */
.sm-mode-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Watermark icon — large, right-aligned, faded */
.sm-mode-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 80px;
    height: 80px;
    transform: translateY(-50%);
    opacity: 0.08;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sm-mode-option:hover .sm-mode-icon {
    opacity: 0.12;
    transform: translateY(-50%) scale(1.08);
}

.sm-mode-option--active .sm-mode-icon {
    opacity: 0.18;
    transform: translateY(-50%) scale(1.15) rotate(8deg);
    filter: brightness(0) saturate(100%) invert(60%) sepia(15%) saturate(600%) hue-rotate(80deg) brightness(95%) contrast(90%);
}

.sm-mode-label {
    font-weight: 700;
    font-size: 16px;
    color: var(--sm-gray-700);
}

.sm-mode-option--active .sm-mode-label {
    color: var(--sm-primary);
}

.sm-mode-desc {
    font-size: 13px;
    color: var(--sm-gray-500);
}

/* ── Cost Projection ────────────────────────────────── */
.sm-cost-projection {
    background: var(--sm-gray-50);
    border: 1px solid var(--sm-gray-200);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}

.sm-cost-projection--warning {
    background: var(--sm-warning-light);
    border-color: var(--sm-warning);
    color: #92400e;
}

.sm-cost-projection--warning .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.sm-cost-projection-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--sm-gray-700);
}

.sm-cost-projection-help {
    font-size: 12px;
    color: var(--sm-gray-500);
    margin-top: 4px;
    line-height: 1.4;
}

/* ── Provider Select ─────────────────────────────────── */

/* ── Dashboard ──────────────────────────────────────────────────────────────── */

/* Alert */
.sm-dashboard-alert {
    position: relative;
    padding-right: 48px;
}

.sm-dashboard-alert-dismiss {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sm-gray-400);
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}

.sm-dashboard-alert-dismiss:hover {
    color: var(--sm-gray-700);
}

/* Hero */
.sm-dashboard-hero {
    background: #fff;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
    padding: 28px 32px 24px;
    margin-bottom: 24px;
}

.sm-dashboard-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sm-dashboard-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sm-dashboard-logo-img {
    height: 48px;
    width: auto;
}

.sm-dashboard-welcome-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--sm-gray-900);
    margin: 0 0 2px;
    line-height: 1.3;
}

.sm-dashboard-welcome-sub {
    font-size: 14px;
    color: var(--sm-gray-500);
    margin: 0;
}

/* Quick-start steps (inside hero) */
.sm-dashboard-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sm-dashboard-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--sm-gray-50);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, box-shadow 0.15s;
}

.sm-dashboard-step:hover {
    background: var(--sm-gray-100);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    color: inherit;
}

.sm-dashboard-step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--sm-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}

.sm-dashboard-step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-dashboard-step-content strong {
    font-size: 13px;
    color: var(--sm-gray-800);
}

.sm-dashboard-step-content span {
    font-size: 12px;
    color: var(--sm-gray-500);
    line-height: 1.4;
}

/* KPI Stats */
.sm-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.sm-dashboard-stat-card {
    background: #fff;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sm-dashboard-stat-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-dashboard-stat-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.sm-dashboard-stat-icon--primary {
    background: var(--sm-primary-light);
    color: var(--sm-primary);
}

.sm-dashboard-stat-icon--info {
    background: #dbeafe;
    color: #2563eb;
}

.sm-dashboard-stat-icon--warning {
    background: var(--sm-warning-light);
    color: #d97706;
}

.sm-dashboard-stat-icon--success {
    background: var(--sm-success-light);
    color: #059669;
}

.sm-dashboard-stat-icon--error {
    background: var(--sm-error-light);
    color: var(--sm-error);
}

.sm-dashboard-stat-body {
    min-width: 0;
}

.sm-dashboard-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--sm-gray-900);
    line-height: 1.1;
}

.sm-dashboard-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--sm-gray-600);
    margin-top: 2px;
}

.sm-dashboard-stat-sub {
    font-size: 12px;
    color: var(--sm-gray-400);
    margin-top: 4px;
}

.sm-dashboard-stat-projection {
    font-size: 12px;
    color: var(--sm-primary, #6366f1);
    margin-top: 6px;
    font-weight: 500;
}

/* Model pricing (non-wizard pages) */
.sm-model-pricing {
    margin-top: 8px;
}

/* Two-column layout */
.sm-dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.sm-dashboard-col-main {
    min-width: 0;
}

.sm-dashboard-col-side {
    min-width: 0;
}

/* Slide title in table */
.sm-dashboard-slide-title {
    font-weight: 500;
    color: var(--sm-gray-800);
}

/* Slide path breadcrumb */
.sm-dashboard-slide-path {
    font-size: 13px;
    color: var(--sm-gray-500);
}

.sm-dashboard-path-sep {
    margin: 0 4px;
    color: var(--sm-gray-300);
}

/* Palmarès / Top list */
.sm-dashboard-top-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sm-dashboard-top-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.sm-dashboard-top-item--gold .sm-dashboard-top-rank {
    background: #fef3c7;
    color: #b45309;
    border-color: #fbbf24;
}

.sm-dashboard-top-rank {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sm-gray-100);
    color: var(--sm-gray-500);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sm-gray-200);
}

.sm-dashboard-top-info {
    flex: 1;
    min-width: 0;
}

.sm-dashboard-top-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--sm-gray-700);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.sm-dashboard-top-bar-wrap {
    height: 6px;
    background: var(--sm-gray-100);
    border-radius: 3px;
    overflow: hidden;
}

.sm-dashboard-top-bar {
    height: 100%;
    background: var(--sm-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sm-dashboard-top-item--gold .sm-dashboard-top-bar {
    background: #f59e0b;
}

.sm-dashboard-top-count {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--sm-gray-600);
    min-width: 36px;
    text-align: right;
}

/* Quick links grid */
.sm-dashboard-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sm-dashboard-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--sm-gray-600);
    font-size: 12px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    text-align: center;
}

.sm-dashboard-quick-link:hover {
    background: var(--sm-primary-light);
    color: var(--sm-primary);
}

.sm-dashboard-quick-link .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 22px;
}

/* Muted text helper */
.sm-text-muted {
    color: var(--sm-gray-400);
    font-size: 13px;
}

/* ── Dashboard Responsive ───────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .sm-dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .sm-dashboard-columns {
        grid-template-columns: 1fr;
    }

    .sm-dashboard-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .sm-dashboard-hero {
        padding: 20px;
    }

    .sm-dashboard-hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sm-dashboard-hero-left {
        flex-direction: column;
        gap: 12px;
    }

    .sm-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm-dashboard-steps {
        grid-template-columns: 1fr;
    }

    .sm-dashboard-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Memory Variables Repeater ──────────────────────── */
.sm-memory-var-row {
    margin-bottom: 8px;
}

.sm-memory-var-fields {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sm-memory-var-name {
    width: 160px;
    flex-shrink: 0;
}

.sm-memory-var-scope {
    width: 120px;
    flex-shrink: 0;
}

.sm-memory-var-source {
    flex: 1;
    min-width: 0;
}

.sm-memory-var-remove {
    padding: 4px !important;
    width: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-memory-var-remove .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ── Auto-save Section ──────────────────────────────── */
.sm-autosave-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.sm-autosave-suboptions {
    margin-left: 24px;
    margin-top: 8px;
}

.sm-scope-hint {
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
}

@media (max-width: 782px) {
    .sm-memory-var-fields {
        flex-wrap: wrap;
    }
    .sm-memory-var-name,
    .sm-memory-var-scope {
        width: calc(50% - 4px);
    }
    .sm-memory-var-source {
        width: 100%;
        flex-basis: 100%;
    }
}

/* ── Compact Template Cards (slide edit) ───────────── */
.sm-template-cards--compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.sm-template-cards--compact .sm-template-card {
    cursor: pointer;
}

.sm-template-cards--compact .sm-template-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sm-template-cards--compact .sm-template-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 8px;
    border: 2px solid var(--sm-gray-200);
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.sm-template-cards--compact .sm-template-card-content:hover {
    border-color: var(--sm-gray-300);
    background: var(--sm-gray-50);
}

.sm-template-cards--compact .sm-template-card input:checked + .sm-template-card-content {
    border-color: var(--sm-primary);
    background: var(--sm-primary-light);
}

.sm-template-cards--compact .sm-template-icon {
    font-size: 20px;
    margin-bottom: 4px;
    line-height: 1;
}

.sm-template-cards--compact .sm-template-card-content strong {
    font-size: 12px;
    margin-bottom: 0;
    line-height: 1.3;
}

.sm-template-cards--compact .sm-template-more {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sm-template-cards--compact .sm-template-card-dropdown .sm-template-card-content {
    border-style: dashed;
}

.sm-template-cards--compact .sm-template-dropdown-select {
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid var(--sm-gray-200);
    border-radius: 6px;
    background: white;
    width: 100%;
}

@media (max-width: 782px) {
    .sm-template-cards--compact {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
}

/* ── Analytics: Call Log ───────────────────────────── */
.sm-log-table td { font-size: 13px; padding: 10px 16px; }
.sm-log-table code { background: var(--sm-gray-100); padding: 2px 6px; border-radius: 3px; font-size: 12px; }
.sm-log-error-detail { display: none; }
.sm-log-error-detail td { padding: 8px 16px 12px; background: var(--sm-error-light); }
.sm-log-has-error { cursor: pointer; }
.sm-log-has-error:hover { background: #fef2f2; }
.sm-log-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-top: 1px solid var(--sm-gray-200); }
.sm-log-collapse-btn { background: none; border: 1px solid var(--sm-gray-200); border-radius: 4px; cursor: pointer; padding: 4px; color: var(--sm-gray-500); line-height: 1; }
.sm-log-collapse-btn:hover { background: var(--sm-gray-100); color: var(--sm-gray-700); }
.sm-log-collapse-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* ── Pro Badge & Upsell ──────────────────────────── */

/* Sidebar menu pro badge — terra pill */
.sm-menu-pro-badge {
    display: inline-block;
    background: #d4715a;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 16px;
}

.sm-badge-pro {
    display: inline-block;
    background: var(--sm-pro-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.sm-upsell-card {
    background: var(--sm-gray-50);
    border: 1px dashed var(--sm-gray-300);
    border-radius: var(--sm-radius);
    padding: 24px;
    text-align: center;
}

.sm-upsell-card-content {
    max-width: 400px;
    margin: 0 auto;
}

.sm-upsell-card-text {
    color: var(--sm-gray-600);
    margin: 12px 0 16px;
    font-size: 13px;
    line-height: 1.5;
}

.sm-pro-locked {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.sm-pro-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    cursor: not-allowed;
    pointer-events: all;
}

/* ── Teaser (blurred preview + overlay) ────────────── */
.sm-teaser {
    position: relative;
    margin-top: 8px;
}

.sm-teaser__preview {
    filter: blur(3px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.sm-teaser__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.sm-teaser__card {
    background: #fff;
    border: 1px solid var(--sm-gray-200);
    border-radius: 12px;
    padding: 40px 48px;
    text-align: center;
    max-width: 480px;
    box-shadow:
        0 4px 6px -1px rgba(20, 20, 19, 0.06),
        0 10px 15px -3px rgba(20, 20, 19, 0.08);
}

.sm-teaser__lock-icon {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--sm-gray-300);
    margin-bottom: 8px;
}

.sm-teaser__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--sm-gray-900);
    margin: 8px 0 12px;
}

.sm-teaser__desc {
    font-size: 14px;
    color: var(--sm-gray-500);
    line-height: 1.6;
    margin: 0 0 24px;
}

.sm-teaser__cta-btn.sm-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
}

.sm-teaser__cta-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.sm-teaser__cta-btn:hover .dashicons {
    transform: translateX(3px);
}

.sm-teaser__sub {
    font-size: 12px;
    color: var(--sm-gray-400);
    margin: 12px 0 0;
}

/* ── Pricing Page — Artisanal Design ──────────────────────────────────────── */

/* Design tokens */
.sm-pricing-page {
    --sp-cream: #f7f6f3;
    --sp-sand: #e3dacc;
    --sp-charcoal: #141413;
    --sp-terra: #d4715a;
    --sp-sage: #93aa91;
    --sp-emerald: #5a9e7f;
    --sp-jaune: #d99b6a;
    --sp-outline: #88726d;
    --sp-on-surface-variant: #55423e;
    --sp-font-headline: 'Epilogue', Georgia, serif;
    --sp-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --sp-font-handwritten: 'Gochi Hand', cursive;
}

.sm-pricing-page {
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--sp-font-body);
}

/* ── Background decorations ───────────────────────────────────────────────── */

.sm-pricing-bg-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.sm-pricing-bg-blob--sage {
    top: -40px;
    left: -40px;
    width: 384px;
    height: 384px;
    background: rgba(147, 170, 145, 0.10);
}

.sm-pricing-bg-blob--terra {
    top: 25%;
    right: 0;
    width: 320px;
    height: 320px;
    background: rgba(212, 113, 90, 0.10);
}

/* ── Zone 1 — Hero ────────────────────────────────────────────────────────── */

.sm-pricing-hero {
    text-align: center;
    padding: 12px 0 32px;
    position: relative;
    z-index: 1;
}

.sm-pricing-hero-title {
    font-family: var(--sp-font-headline);
    font-size: 42px;
    font-weight: 900;
    color: var(--sp-charcoal);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.sm-pricing-hero-accent {
    font-style: italic;
    position: relative;
    display: inline-block;
}

.sm-pricing-hero-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -4px;
    right: -4px;
    height: 8px;
    background: var(--sp-terra);
    opacity: 0.25;
    border-radius: 4px;
    transform: rotate(-1deg);
}

.sm-pricing-hero-tagline {
    font-size: 16px;
    color: var(--sp-on-surface-variant);
    margin: 16px auto 0;
    line-height: 1.6;
    max-width: 560px;
    font-weight: 500;
}

/* ── Shared — Plan badges ─────────────────────────────────────────────────── */

.sm-pricing-plan-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 5px 18px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.sm-pricing-plan-badge--sage    { background: rgba(147, 170, 145, 0.12); color: #6b8b69; }
.sm-pricing-plan-badge--emerald { background: rgba(90, 158, 127, 0.12); color: #5a9e7f; }
.sm-pricing-plan-badge--terra   { background: rgba(212, 113, 90, 0.1);  color: var(--sp-terra); }
.sm-pricing-plan-badge--jaune   { background: rgba(217, 155, 106, 0.12); color: #c8894e; }

/* ── Shared — Features list ───────────────────────────────────────────────── */

.sm-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.sm-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--sp-on-surface-variant);
    padding: 7px 0;
    line-height: 1.5;
    font-weight: 500;
}

.sm-pricing-check {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.sm-pricing-check--sage    { color: var(--sp-sage); }
.sm-pricing-check--emerald { color: var(--sp-emerald); }
.sm-pricing-check--terra   { color: var(--sp-terra); }
.sm-pricing-check--jaune   { color: var(--sp-jaune); }

/* ── Shared — Buttons ─────────────────────────────────────────────────────── */

.sm-pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--sp-font-body);
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.sm-pricing-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.sm-pricing-btn:hover .dashicons {
    transform: translateX(3px);
}

.sm-pricing-btn--fullwidth {
    display: flex;
    width: 100%;
    max-width: 420px;
    padding: 18px 36px;
    font-size: 17px;
    box-sizing: border-box;
}

/* Dark CTA (Pro) */
.sm-pricing-btn--dark {
    background: var(--sp-charcoal);
    box-shadow: 0 4px 16px rgba(20, 20, 19, 0.2);
}

.sm-pricing-btn--dark:hover {
    background: var(--sp-terra);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 113, 90, 0.35);
}

/* Outlined buttons (alt cards) */
.sm-pricing-btn--outline {
    background: transparent;
    border: 2px solid currentColor;
    padding: 14px 36px;
}

.sm-pricing-btn--outline-sage {
    color: var(--sp-sage);
}

.sm-pricing-btn--outline-sage:hover {
    background: var(--sp-sage);
    color: #fff;
    border-color: var(--sp-sage);
    transform: translateY(-2px);
}

.sm-pricing-btn--outline-sand {
    color: var(--sp-on-surface-variant);
    border-color: var(--sp-sand);
}

.sm-pricing-btn--outline-sand:hover {
    background: var(--sp-sand);
    color: var(--sp-charcoal);
    border-color: var(--sp-sand);
    transform: translateY(-2px);
}

.sm-pricing-btn--outline-terra {
    color: var(--sp-terra);
}

.sm-pricing-btn--outline-terra:hover {
    background: var(--sp-terra);
    color: #fff;
    border-color: var(--sp-terra);
    transform: translateY(-2px);
}

/* ── Shared — Trial link ──────────────────────────────────────────────────── */

.sm-pricing-trial-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--sp-on-surface-variant);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.sm-pricing-trial-link:hover {
    color: var(--sp-terra);
}

/* ── Shared — Status badges ───────────────────────────────────────────────── */

.sm-pricing-current-badge,
.sm-pricing-trial-active-badge {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
}

.sm-pricing-current-badge {
    background: rgba(147, 170, 145, 0.1);
    color: var(--sm-primary);
}

.sm-pricing-trial-active-badge {
    background: var(--sm-warning-light);
    color: #92400e;
}

/* ── Zone 2 — Pro hero card ───────────────────────────────────────────────── */

.sm-pricing-section {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.sm-pricing-section--pro {
    margin-bottom: 0;
}

.sm-pricing-pro-card {
    background: #fff;
    border: 1px solid rgba(227, 218, 204, 0.5);
    border-radius: 2rem;
    box-shadow: 0 20px 50px -12px rgba(212, 113, 90, 0.15);
    position: relative;
    overflow: hidden;
}

.sm-pricing-pro-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--sp-terra) 0%, #e89582 100%);
    border-radius: 2rem 2rem 0 0;
}

.sm-pricing-pro-body {
    padding: 28px 40px 32px;
}

.sm-pricing-pro-header {
    text-align: center;
    padding: 0;
    margin-bottom: 24px;
}

.sm-pricing-pro-title {
    font-family: var(--sp-font-headline);
    font-size: 28px;
    font-weight: 900;
    color: var(--sp-charcoal);
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-left: auto;
    margin-right: auto;
}

.sm-pricing-pro-savings-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0;
}

.sm-pricing-pro-savings-line {
    display: block;
    width: 32px;
    height: 1px;
    background: rgba(147, 170, 145, 0.3);
}

.sm-pricing-pro-savings {
    display: inline-block;
    color: var(--sp-sage);
    font-size: 14px;
    font-weight: 500;
    font-style: italic;
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

/* Two-column features grid */
.sm-pricing-pro-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 24px;
}

.sm-pricing-pro-col {
    padding: 20px 24px;
    border-radius: 1rem;
}

.sm-pricing-pro-col--sage {
    background: rgba(147, 170, 145, 0.06);
    border: 1px solid rgba(147, 170, 145, 0.2);
}

.sm-pricing-pro-col--emerald {
    background: rgba(90, 158, 127, 0.06);
    border: 1px solid rgba(90, 158, 127, 0.2);
}

.sm-pricing-pro-col-title {
    font-family: var(--sp-font-headline);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sp-charcoal);
}

.sm-pricing-pro-col-title .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.sm-pricing-pro-col-title .sm-icon-brain {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.sm-pricing-pro-col-title--sage    .dashicons,
.sm-pricing-pro-col-title--sage    .sm-icon-brain { color: var(--sp-sage); }
.sm-pricing-pro-col-title--emerald .dashicons,
.sm-pricing-pro-col-title--emerald .sm-icon-brain { color: var(--sp-emerald); }

.sm-pricing-pro-col .sm-pricing-features li {
    padding: 4px 0;
    font-size: 14px;
}

/* Pro-exclusive features */
.sm-pricing-pro-exclusives {
    border-top: 1px solid var(--sp-sand);
    padding-top: 20px;
    margin: 0 0 24px;
}

.sm-pricing-pro-exclusives-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sp-terra);
    margin-bottom: 12px;
    text-align: center;
}

.sm-pricing-pro-exclusives-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.sm-pricing-pro-excl-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--sp-charcoal);
    font-weight: 500;
    background: none;
    border-radius: 0;
    padding: 0;
    position: relative;
    cursor: default;
    border-bottom: 1px dashed var(--sp-terra-light, rgba(212, 113, 90, 0.4));
    padding-bottom: 2px;
}

.sm-pricing-pro-excl-item:hover {
    border-bottom-style: solid;
    border-bottom-color: var(--sp-terra);
}

.sm-pricing-pro-excl-item .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--sp-terra);
}

/* Pro-exclusive tooltips */
.sm-pricing-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--sp-charcoal);
    color: var(--sp-cream);
    border-radius: 8px;
    padding: 10px;
    width: 230px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Arrow pointing down */
.sm-pricing-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--sp-charcoal);
}

.sm-pricing-tooltip-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.sm-pricing-tooltip-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.sm-pricing-pro-excl-item:hover .sm-pricing-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Pro footer — price + CTA */
.sm-pricing-pro-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sm-pricing-pro-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.sm-pricing-pro-price-amount {
    font-family: var(--sp-font-headline);
    font-size: 40px;
    font-weight: 900;
    color: var(--sp-charcoal);
    line-height: 1;
}

.sm-pricing-pro-price-monthly {
    font-size: 15px;
    color: var(--sp-on-surface-variant);
    font-weight: 500;
}

.sm-pricing-pro-footer .sm-pricing-trial-link {
    margin-top: 16px;
}

/* ── Zone 3 — SVG Connector ───────────────────────────────────────────────── */

.sm-pricing-connector-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -2rem;
    z-index: 0;
}

.sm-pricing-connector-svg {
    width: 100%;
    max-width: 960px;
    height: 120px;
    fill: none;
    stroke: rgba(227, 218, 204, 0.6);
    stroke-width: 2.5;
}

.sm-pricing-connector-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.sm-pricing-connector-label p {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 24px;
    border-radius: 100px;
    border: 1px solid rgba(227, 218, 204, 0.4);
    box-shadow: 0 2px 8px rgba(20, 20, 19, 0.04);
    font-family: var(--sp-font-headline);
    font-weight: 700;
    font-size: 13px;
    color: rgba(20, 20, 19, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-style: italic;
    margin: 48px 0 0;
}

/* ── Zone 4 — Alternative cards (Stitch) ──────────────────────────────────── */

.sm-pricing-alternatives {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
    align-items: stretch;
    padding-top: 48px;
    position: relative;
    z-index: 1;
}

/* Wrapper for label + card */
.sm-pricing-alt-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Label above card */
.sm-pricing-alt-label {
    text-align: center;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 100px;
    display: inline-block;
    align-self: center;
    border: 1px solid;
}

.sm-pricing-alt-label--sage {
    background: rgba(147, 170, 145, 0.1);
    color: var(--sp-sage);
    border-color: rgba(147, 170, 145, 0.2);
}

.sm-pricing-alt-label--sand {
    background: rgba(227, 218, 204, 0.3);
    color: var(--sp-charcoal);
    border-color: var(--sp-sand);
}

.sm-pricing-alt-label--terra {
    background: rgba(212, 113, 90, 0.1);
    color: var(--sp-terra);
    border-color: rgba(212, 113, 90, 0.2);
}

/* Card */
.sm-pricing-alt-card {
    background: #fff;
    border-radius: 2rem;
    border: 2px solid;
    display: flex;
    flex-direction: column;
    padding: 36px;
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sm-pricing-alt-card--sage    { border-color: rgba(147, 170, 145, 0.1); }
.sm-pricing-alt-card--emerald { border-color: rgba(227, 218, 204, 0.3); }
.sm-pricing-alt-card--jaune   { border-color: rgba(212, 113, 90, 0.1); }

.sm-pricing-alt-card:hover {
    box-shadow: 0 16px 48px rgba(20, 20, 19, 0.08);
}

.sm-pricing-alt-card--sage:hover    { border-color: rgba(147, 170, 145, 0.3); }
.sm-pricing-alt-card--emerald:hover { border-color: var(--sp-sand); }
.sm-pricing-alt-card--jaune:hover   { border-color: rgba(212, 113, 90, 0.3); }

/* Organic blob decoration */
.sm-pricing-alt-blob {
    position: absolute;
    top: -64px;
    right: -64px;
    width: 128px;
    height: 128px;
    border-radius: 60% 40% 70% 30% / 40% 50% 50% 60%;
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sm-pricing-alt-card:hover .sm-pricing-alt-blob {
    transform: scale(1.5);
}

.sm-pricing-alt-blob--sage  { background: rgba(147, 170, 145, 0.05); }
.sm-pricing-alt-blob--sand  { background: rgba(227, 218, 204, 0.2); }
.sm-pricing-alt-blob--terra { background: rgba(212, 113, 90, 0.05); }

/* Icon box */
.sm-pricing-alt-iconbox {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.sm-pricing-alt-card:hover .sm-pricing-alt-iconbox {
    transform: scale(1.1);
}

.sm-pricing-alt-iconbox .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.sm-pricing-alt-iconbox .sm-icon-brain {
    width: 24px;
    height: 24px;
}

.sm-pricing-alt-iconbox--sage {
    background: rgba(147, 170, 145, 0.1);
    border-color: rgba(147, 170, 145, 0.3);
    color: var(--sp-sage);
}

.sm-pricing-alt-iconbox--sand {
    background: rgba(227, 218, 204, 0.3);
    border-color: var(--sp-sand);
    color: var(--sp-charcoal);
}

.sm-pricing-alt-iconbox--terra {
    background: rgba(212, 113, 90, 0.1);
    border-color: rgba(212, 113, 90, 0.3);
    color: var(--sp-terra);
}

/* Plan title (large) */
.sm-pricing-alt-title {
    font-family: var(--sp-font-headline);
    font-size: 40px;
    font-weight: 900;
    color: var(--sp-charcoal);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

/* Subtitle */
.sm-pricing-alt-subtitle {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 16px;
}

.sm-pricing-alt-subtitle--sage    { color: var(--sp-sage); }
.sm-pricing-alt-subtitle--emerald { color: var(--sp-emerald); }
.sm-pricing-alt-subtitle--terra   { color: var(--sp-terra); }

/* Tagline */
.sm-pricing-alt-tagline {
    font-size: 14px;
    color: var(--sp-on-surface-variant);
    margin: 0 0 24px;
    line-height: 1.6;
    font-weight: 500;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Price */
.sm-pricing-alt-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 24px;
}

.sm-pricing-alt-price-amount {
    font-family: var(--sp-font-headline);
    font-size: 44px;
    font-weight: 900;
    color: var(--sp-charcoal);
    line-height: 1;
}

.sm-pricing-alt-price-period {
    font-size: 16px;
    color: var(--sp-on-surface-variant);
    font-weight: 700;
}

/* Features section */
.sm-pricing-alt-features {
    flex-grow: 1;
    margin-bottom: 24px;
}

.sm-pricing-feature-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.sm-pricing-feature-label--sage    { color: var(--sp-sage); }
.sm-pricing-feature-label--emerald { color: var(--sp-charcoal); }
.sm-pricing-feature-label--terra   { color: var(--sp-terra); }

/* Footnote */
.sm-pricing-alt-note {
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.4;
    padding-top: 14px;
    margin-top: 0;
    border-top: none;
    text-align: left;
}

.sm-pricing-alt-note--sage  { color: var(--sp-sage); border-top: 1px solid rgba(147, 170, 145, 0.1); }
.sm-pricing-alt-note--sand  { color: var(--sp-charcoal); border-top: 1px solid rgba(227, 218, 204, 0.3); }
.sm-pricing-alt-note--terra { color: var(--sp-terra); border-top: 1px solid rgba(212, 113, 90, 0.1); }

/* CTA area pushed to bottom */
.sm-pricing-alt-cta {
    margin-top: auto;
    padding-top: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ── Zone 5 — Free tier (collapsible) ─────────────────────────────────────── */

.sm-pricing-free-section {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.sm-pricing-free-details {
    background: #fff;
    border: 1px solid var(--sm-gray-200);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.sm-pricing-free-details[open] {
    border-color: rgba(147, 170, 145, 0.3);
}

.sm-pricing-free-details summary {
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sm-gray-700);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-pricing-free-details summary::-webkit-details-marker {
    display: none;
}

.sm-pricing-free-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 100px;
    background: rgba(147, 170, 145, 0.1);
    color: var(--sm-primary);
}

.sm-pricing-free-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 24px 16px;
}

.sm-pricing-free-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--sm-gray-600);
    padding: 10px 14px;
    background: var(--sm-gray-50);
    border: 1px solid var(--sm-gray-200);
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.sm-pricing-free-item:hover {
    border-color: var(--sm-gray-300);
}

.sm-pricing-free-item .dashicons {
    color: var(--sm-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sm-pricing-free-limits {
    font-size: 12px;
    color: var(--sm-gray-400);
    text-align: center;
    margin: 0;
    padding: 0 24px 16px;
}

/* ── Zone 6 — Guarantee ───────────────────────────────────────────────────── */

.sm-pricing-guarantee {
    text-align: center;
    font-size: 13px;
    color: var(--sm-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
}

.sm-pricing-guarantee .dashicons {
    color: var(--sm-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ── Zone 7 — Companion plugin (Bridge) ──────────────────────────────────── */

.sm-pricing-bridge {
	margin-top: 24px;
	margin-bottom: 8px;
	position: relative;
	z-index: 1;
}

.sm-pricing-bridge-card {
	background: #fff;
	border: 1px solid rgba(147, 170, 145, 0.3);
	border-left: 4px solid var(--sp-sage);
	border-radius: 14px;
	padding: 24px 28px;
	box-shadow: 0 2px 8px rgba(20, 20, 19, 0.06);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sm-pricing-bridge-card:hover {
	border-color: rgba(147, 170, 145, 0.5);
	box-shadow: 0 6px 20px rgba(147, 170, 145, 0.18);
}

.sm-pricing-bridge-title {
	font-family: var(--sp-font-headline);
	font-size: 16px;
	font-weight: 700;
	color: var(--sp-charcoal);
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sm-pricing-bridge-title .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: var(--sp-sage);
}

.sm-pricing-bridge-free-pill {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 2px 10px;
	border-radius: 100px;
	background: rgba(147, 170, 145, 0.1);
	color: #6b8b69;
}

.sm-pricing-bridge-text p {
	font-size: 13px;
	line-height: 1.6;
	color: var(--sp-on-surface-variant);
	margin: 0 0 12px;
	font-weight: 500;
}

.sm-pricing-bridge-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sp-sage);
	text-decoration: none;
	transition: color 0.2s ease;
}

.sm-pricing-bridge-link:hover {
	color: #6b8b69;
}

.sm-pricing-bridge-link .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.sm-pricing-bridge-link:hover .dashicons {
	transform: translateX(3px);
}

/* ── Zone 8 — FAQ ─────────────────────────────────────────────────────────── */

.sm-pricing-faq {
    margin-top: 40px;
    margin-bottom: 24px;
}

.sm-pricing-faq-title {
    font-family: var(--sp-font-headline);
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-charcoal);
    text-align: center;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.sm-pricing-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: start;
}

.sm-pricing-faq-item {
    background: #fff;
    border: 1px solid var(--sm-gray-200);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.sm-pricing-faq-item:hover {
    border-color: var(--sm-gray-300);
}

.sm-pricing-faq-item[open] {
    border-color: rgba(147, 170, 145, 0.3);
}

.sm-pricing-faq-item summary {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sm-gray-800);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sm-pricing-faq-item summary::-webkit-details-marker {
    display: none;
}

.sm-pricing-faq-item summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    color: var(--sm-gray-400);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sm-pricing-faq-item[open] summary::after {
    content: '\2212';
    color: var(--sm-primary);
}

.sm-pricing-faq-item p {
    padding: 0 18px 16px;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--sm-gray-600);
}

/* Freemius upgrade menu color override (safety net) */
.fs-submenu-item.pricing.upgrade-mode {
    color: var(--sm-warning) !important;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .sm-pricing-pro-body {
        padding: 32px 32px;
    }

    .sm-pricing-pro-title {
        font-size: 28px;
    }

    .sm-pricing-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sm-pricing-pro-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sm-pricing-connector-svg {
        display: none;
    }

    .sm-pricing-connector-label {
        position: static;
    }

    .sm-pricing-connector-label p {
        margin: 24px 0;
    }

    .sm-pricing-alternatives {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm-pricing-alt-wrap:last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        justify-self: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sm-pricing-hero-title {
        font-size: 32px;
    }

    .sm-pricing-pro-body {
        padding: 24px 20px;
    }

    .sm-pricing-pro-title {
        font-size: 24px;
    }

    .sm-pricing-alt-title {
        font-size: 32px;
    }

    .sm-pricing-alternatives {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .sm-pricing-alt-wrap:last-child {
        max-width: none;
    }

    .sm-pricing-free-grid {
        grid-template-columns: 1fr;
    }

    .sm-pricing-bg-blob {
        display: none;
    }

    .sm-pricing-tooltip {
        width: 190px;
    }

    .sm-pricing-tooltip-img {
        height: 60px;
    }

    .sm-pricing-tooltip-text {
        font-size: 11px;
    }
}

/* ── Animations ───────────────────────────────────────────────────────────── */

@keyframes sm-pricing-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sm-pricing-anim {
    animation: sm-pricing-fade-up 0.6s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .sm-pricing-anim {
        animation: none;
    }

    .sm-pricing-alt-blob {
        transition: none;
    }

    .sm-pricing-alt-iconbox {
        transition: none;
    }

    .sm-pricing-tooltip {
        transition: none;
    }
}

/* ── Inherited preview (slide-edit & module-edit) ───────────────────────── */

.sm-inherited-preview {
    background: #f9fafb;
    border-radius: 6px;
    padding: 16px;
}

.sm-inherited-section h4 {
    margin: 0 0 12px 0;
    color: var(--sm-gray-700);
    font-size: 14px;
}

.sm-inherited-field {
    margin-bottom: 8px;
    font-size: 13px;
}

.sm-inherited-field:last-child {
    margin-bottom: 0;
}

.sm-inherited-text {
    color: #6b7280;
    margin-top: 4px;
    max-height: 100px;
    overflow-y: auto;
}

/* ── Linked list (module-edit) ──────────────────────────────────────────── */

.sm-linked-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-linked-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sm-linked-list li:last-child {
    border-bottom: none;
}

.sm-linked-list a {
    color: var(--sm-primary);
    text-decoration: none;
}

.sm-linked-list small {
    color: #6b7280;
    margin-left: 8px;
}

/* ── Output variables repeater (slide-edit) ─────────────────────────────── */

.sm-output-var-row {
    margin-bottom: 8px;
}

.sm-output-var-fields {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sm-output-var-name {
    width: 160px;
    flex-shrink: 0;
}

.sm-output-var-type-wrap {
    width: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sm-output-var-values,
.sm-output-var-desc {
    flex: 1;
    min-width: 0;
}

.sm-output-var-remove {
    padding: 4px !important;
    width: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-output-var-remove .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sm-output-var-type-hint {
    font-size: 11px;
    color: #2271b1;
    font-style: italic;
    line-height: 1.2;
}

@media (max-width: 782px) {
    .sm-output-var-fields {
        flex-wrap: wrap;
    }
    .sm-output-var-name,
    .sm-output-var-type-wrap {
        width: calc(50% - 4px);
    }
    .sm-output-var-desc {
        width: 100%;
        flex-basis: 100%;
    }
}

/* ── Link-styled buttons ────────────────────────────────────────────────── */

.sm-link {
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 0 8px;
    color: var(--sm-primary);
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sm-link:hover,
.sm-link:focus {
    color: var(--sm-primary-hover);
    text-decoration: underline;
}

.sm-link:focus {
    outline: 2px solid var(--sm-primary-light);
    outline-offset: 2px;
}

/* ── Export & Import: per-section item picker ──────────────────────────── */

.sm-export-items-row > td {
    background: #fafafa;
    padding: 12px 16px 12px 56px;
    border-top: 1px solid #e5e7eb;
}

.sm-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
    column-count: 2;
    column-gap: 24px;
}

.sm-item-list li {
    break-inside: avoid;
    padding: 4px 0;
}

.sm-item-list label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

@media (max-width: 782px) {
    .sm-item-list {
        column-count: 1;
    }
    .sm-export-items-row > td {
        padding-left: 16px;
    }
}
