/* =====================
   Page Typography
   ===================== */
.page-heading {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #202223;
    line-height: 1.2;
}

.page-subheading {
    font-size: 16px;
    font-weight: 600;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* =====================
   Stat Cards
   ===================== */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    height: 100%;
    box-sizing: border-box;
}

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

.stat-card-label {
    font-size: 18px;
    font-weight: 600;
    color: #202223;
    margin: 0;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #202223;
    line-height: 1;
    margin: 0 0 12px;
}

.stat-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #e6f6f4;
    color: #1a8a7d;
    flex-shrink: 0;
}

.stat-icon-box svg,
.stat-icon-box img {
    width: 22px;
    height: 22px;
}

/* =====================
   Action Icon
   ===================== */
.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e6f6f4;
    color: #1a8a7d;
    flex-shrink: 0;
}

.action-icon svg,
.action-icon img {
    width: 20px;
    height: 20px;
}

/* ── Dashboard Quick Actions (db-) ── */
.db-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.db-action-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    background: #fff;
    border: 1.5px solid #e1e3e5;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.db-action-card:hover {
    border-color: #458fff;
    background: #f6faff;
    box-shadow: 0 3px 10px rgba(0, 91, 211, 0.08);
}

.db-action-card:active {
    background: #edf4ff;
    box-shadow: none;
}

.db-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}

.db-action-icon svg,
.db-action-icon img {
    width: 22px;
    height: 22px;
}

.db-action-content {
    flex: 1;
    min-width: 0;
}

.db-action-title {
    font-size: 14px;
    font-weight: 700;
    color: #202223;
    margin: 0 0 2px;
    line-height: 1.3;
}

.db-action-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #2c6ecb;
    margin: 0 0 5px;
    line-height: 1.3;
}

.db-action-desc {
    font-size: 12px;
    color: #6d7175;
    margin: 0;
    line-height: 1.5;
}

.db-action-arrow {
    flex-shrink: 0;
    color: #8c9196;
    margin-top: 2px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.db-action-card:hover .db-action-arrow {
    color: #2c6ecb;
    transform: translateX(2px);
}

/* Page header */
.ll-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

/* Bulk bar */
.ll-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f6f6f7;
    border-radius: 0pxpx;
    padding: 10px 14px;
    margin: 0px -16px 10px;
    gap: 12px;
}

.ll-bulk-count {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    white-space: nowrap;
}

/* Table */
.ll-table-wrap {
    margin: 0px -16px -16px;
}

.ll-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #202223;
}

.ll-th {
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #616161;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    background: #0000000d;
}

.ll-th--check,
.ll-td--check {
    width: 36px;
    padding-left: 14px;
}

.ll-th--actions,
.ll-td--actions {
    width: 60px;
    text-align: center;
}

.ll-tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}

.ll-tr:last-child {
    border-bottom: none;
}

.ll-tr:hover {
    background: #f9fafb;
}

.ll-tr--selected {
    background: #f6f6f7;
}

.ll-tr--selected:hover {
    background: #efefef;
}

.ll-td {
    padding: 12px;
    vertical-align: middle;
}

.ll-td--muted {
    color: #6d7175;
    font-size: 13px;
}

.ll-td--pages {
    color: #6d7175;
    font-size: 13px;
    max-width: 160px;
}

/* Name cell */
.ll-td--name {
    min-width: 140px;
}

.ll-name-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: block;
    text-align: left;
}

.ll-name-btn:hover {
    text-decoration: underline;
}

.ll-rule-count {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}


/* Row action menu */
.ll-action-menu {
    position: relative;
    display: flex;
    justify-content: center;
}

.ll-action-dropdown {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 130px;
    z-index: 100;
    padding: 4px 0;
}

.ll-action-item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    font-size: 14px;
    color: #202223;
    text-align: left;
    cursor: pointer;
    transition: background 0.1s;
}

.ll-action-item:hover {
    background: #f3f4f6;
}

.ll-action-item--destructive {
    color: #d82c0d;
}

.ll-action-item--destructive:hover {
    background: #fff4f4;
}

.ll-action-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 4px 0;
}

/* ── Pagination ── */
.ll-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.ll-pagination-info {
    font-size: 13px;
    color: #6b7280;
}

.ll-pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ll-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ll-page-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.ll-page-btn--active {
    background: #202223;
    border-color: #202223;
    color: #fff;
}

.ll-page-btn--active:hover {
    background: #3d4142;
    border-color: #3d4142;
}

.ll-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ll-page-ellipsis {
    font-size: 13px;
    color: #9ca3af;
    padding: 0 4px;
    user-select: none;
}

/* Empty state */
.ll-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    gap: 10px;
    text-align: center;
}

.ll-empty-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 6px;
}

.ll-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #202223;
    margin: 0;
}

/* =====================
   Label Design Editor (le-*)
   ===================== */

/* ── Keyframe animations ── */
@keyframes le-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes le-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes le-shake {

    0%,
    100% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }
}

@keyframes le-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ── Panel tabs ── */
.le-tabs {
    display: flex;
    border-bottom: 1.5px solid #e1e3e5;
    margin-bottom: 12px;
}

.le-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    font-size: 14px;
    font-weight: 500;
    color: #6d7175;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.le-tab:hover {
    color: #202223;
}

.le-tab--active {
    color: #202223;
    font-weight: 600;
    border-bottom-color: #202223;
}

/* ── Right preview panel ── */
.le-preview-panel {
    position: sticky;
    top: 20px;
}

.le-preview-inner {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.le-label {
    display: block;
    font-size: 13px;
    color: #202223;
    margin-bottom: 5px;
}

.le-field-error {
    font-size: 12px;
    color: #d82c0d;
    margin: 4px 0 0;
}

.le-hint-text {
    font-size: 12px;
    color: #6d7175;
    margin: 4px 0 0;
}

.le-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.le-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Label text editor ── */
.le-text-editor {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: visible;
    background: #ffffff;
    margin-bottom: 12px;
}

.le-text-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f6f6f7;
    border-bottom: 1px solid #d1d5db;
    border-radius: 8px 8px 0 0;
    gap: 6px;
}

.le-text-editor-toolbar-left {
    display: flex;
    align-items: center;
    gap: 2px;
}

.le-text-editor-toolbar-right {
    position: relative;
}

.le-toolbar-btn {
    width: 30px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: #3d4147;
    transition: background 0.15s, border-color 0.15s;
}

.le-toolbar-btn:hover {
    background: #e9eaeb;
    border-color: #d1d5db;
}

.le-toolbar-btn--active {
    background: #e0e2e5;
    border-color: #c1c4c9;
}

.le-toolbar-btn--bold {
    font-weight: 700;
}

.le-toolbar-btn--italic {
    font-style: italic;
    font-weight: 500;
}

.le-toolbar-btn--underline {
    text-decoration: underline;
}

.le-text-editor-input-wrap {
    position: relative;
}

.le-text-editor-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 12px;
    z-index: 100;
    background: #1f2937;
    color: #f9fafb;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.le-text-editor-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 12px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1f2937;
}

.le-text-editor-input-wrap:hover .le-text-editor-tooltip {
    display: block;
}

.le-plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 0px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: #e8f4fd;
    color: #0070c4;
    border: 1px solid #b3d7f5;
    cursor: default;
    white-space: nowrap;
    opacity: 1 !important;
}

.le-plan-badge-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: #1f2937;
    color: #f9fafb;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 7px 12px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.le-plan-badge-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1f2937;
}

.le-text-editor-input {
    width: 100%;
    min-height: 72px;
    border: none;
    outline: none;
    resize: none;
    padding: 10px 12px;
    font-size: 13px;
    color: #202223;
    background: transparent;
    font-family: inherit;
    box-sizing: border-box;
    border-radius: 0 0 8px 8px;
}

/* ── Variable popover ── */
.le-var-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 50;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    min-width: 240px;
    max-height: 280px;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.le-var-popover--right {
    left: auto;
    right: 0;
}

.le-var-popover-title {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px 4px;
    margin: 0;
    flex-shrink: 0;
}

.le-var-list {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 0 6px;
}

.le-var-list::-webkit-scrollbar {
    width: 4px;
}

.le-var-list::-webkit-scrollbar-track {
    background: transparent;
}

.le-var-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.le-var-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 7px 14px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s;
}

.le-var-item:hover {
    background: #f3f4f6;
}

.le-var-label {
    font-size: 13px;
    font-weight: 500;
    color: #202223;
}

.le-var-code {
    font-size: 11px;
    color: #6d7175;
    font-family: monospace;
}

.le-var-preview {
    font-size: 10px;
    color: #aeb4ba;
    font-style: italic;
    margin-top: 1px;
}

/* ── Shape grid ── */
.le-shape-btn {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px;
}

.le-shape-btn--active {
    border-color: #000000;
    border-width: 1.5px;

}

.le-shape-item-preview {
    width: 100%;
    height: auto;
}

/* ── Position UI ── */
.le-position-card {
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    padding: 12px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.le-position-card--active {
    border-color: #000000;
    border-width: 1.5px;
    background: #ffffff;
}

.le-position-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.le-position-label {
    font-size: 13px;
    color: #202123;
    font-weight: 500;
}

/* ── AI generate section ── */
.le-ai-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6d7175;
    padding: 4px 0;
}

.le-ai-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.le-ai-suggestion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
}

.le-ai-suggestion-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.le-ai-swatch {
    border-radius: 6px;
    height: 36px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.le-ai-suggestion-info {
    flex: 1;
    min-width: 0;
}

.le-ai-suggestion-desc {
    font-size: 13px;
    font-weight: 500;
    color: #202223;
    margin: 0 0 2px;
}

.le-ai-suggestion-anim {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    text-transform: capitalize;
}

/* ── Preview header (New) ── */
.le-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    margin: -20px -20px 20px -20px;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
}

.le-preview-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.le-preview-label {
    font-size: 15px;
    font-weight: 600;
    color: #202223;
}

.le-preview-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.le-preview-page-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #202223;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.le-preview-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
}

.le-preview-device-toggle {
    display: flex;
    gap: 4px;
    background: #f6f6f7;
    padding: 3px;
    border-radius: 8px;
}

.le-device-icon.active {
    background: #ffffff;
    color: #202223;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


.le-status-btn.active {
    background: #def7ec;
    color: #03543f;
}


.le-status-btn+.le-status-btn.active {
    background: #f3f4f6;
    color: #202223;
}

/* ── Preview stage & grid ── */
.le-preview-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    border-radius: 0 0 12px 12px;
    position: relative;
    overflow: hidden;
}

.le-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* Browser/Desktop Frame */
.le-desktop-frame {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.le-browser-bar {
    height: 38px;
    background: #f3f4f6;
    border-bottom: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.le-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.le-dot--red {
    background: #ff5f56;
    border: 1px solid #e0443e;
}

.le-dot--yellow {
    background: #ffbd2e;
    border: 1px solid #dea123;
}

.le-dot--green {
    background: #27c93f;
    border: 1px solid #1aab29;
}

.le-preview-grid--desktop {
    padding: 30px;
}

/* Mobile Frame */
.le-mobile-frame {
    width: 380px;
    height: 580px;
    background: #ffffff;
    border: 12px solid #b2b2b2;
    border-radius: 42px;
    position: relative;
    padding: 40px 0px 24px;
    overflow-y: auto;
    scrollbar-width: none;
}

.le-mobile-frame::-webkit-scrollbar {
    display: none;
}

.le-mobile-notch {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 6px;
    background: #b2b2b2;
    border-radius: 3px;
}

.le-preview-grid--mobile {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px;
}

.le-preview-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.le-card-image-container {
    position: relative;
    background: #f6f6f7;
    border-radius: 0px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
}

.le-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.le-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.le-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    margin: 0;
}

.le-product-price {
    font-size: 12px;
    color: #6d7175;
    margin: 0;
}

/* ── Product page (PDP) preview layout ── */
.le-pdp-layout {
    display: flex;
    gap: 28px;
    padding: 16px;
    background: #ffffff;
    min-height: 300px;
    align-items: flex-start;
}

.le-pdp-layout--mobile {
    flex-direction: column;
    gap: 16px;
    padding: 12px;
}

.le-pdp-image-col {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.le-pdp-layout--mobile .le-pdp-image-col {
    flex: none;
    width: 100%;
}

.le-pdp-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #e8eaed;
    border: 1px solid #d1d5db;
}

.le-pdp-placeholder-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.le-pdp-details-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.le-pdp-title {
    font-size: 17px;
    font-weight: 700;
    color: #202223;
    margin: 0 0 6px;
    line-height: 1.3;
}

.le-pdp-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.le-pdp-price {
    font-size: 20px;
    font-weight: 700;
    color: #202223;
}

.le-pdp-divider {
    height: 1px;
    background: #e1e3e5;
    margin: 10px 0;
}

.le-pdp-variant-label {
    font-size: 12px;
    color: #6d7175;
    margin: 0 0 8px;
}

.le-pdp-swatches {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.le-pdp-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
}

.le-pdp-swatch--active {
    outline: 2px solid #202223;
    outline-offset: 2px;
}

.le-pdp-qty-label {
    font-size: 12px;
    color: #6d7175;
    margin: 0 0 6px;
}

.le-pdp-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.le-pdp-qty-counter {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #c9cccf;
    border-radius: 6px;
    overflow: hidden;
}

.le-pdp-qty-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 400;
    color: #202223;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.1s;
}

.le-pdp-qty-btn:hover {
    background: #f1f2f3;
}

.le-pdp-qty-val {
    min-width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #202223;
    border-left: 1.5px solid #c9cccf;
    border-right: 1.5px solid #c9cccf;
    padding: 0 4px;
    line-height: 32px;
}

.le-pdp-atc-btn {
    width: 100%;
    padding: 11px 0;
    background: #202223;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.15s;
}

.le-pdp-atc-btn:hover {
    background: #3a3c3e;
}

/* ── Rule builder ── */
.le-condition-operator-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.le-condition-operator-row .le-label {
    flex: 0 0 auto;
}

.le-condition-operator-row s-select {
    flex: 0 0 auto;
    width: auto;
    display: inline-block;
}

.le-condition-operator-row s-select::part(select),
.le-condition-operator-row s-select select {
    width: auto;
    min-width: 0;
    padding-right: 28px;
}

.le-condition-operator-toggle {
    display: inline-flex;
    border: 1.5px solid #c9cccf;
    border-radius: 6px;
    overflow: hidden;
}

.le-op-btn {
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    color: #6d7175;
    transition: background 0.12s, color 0.12s;
}

.le-op-btn+.le-op-btn {
    border-left: 1.5px solid #c9cccf;
}

.le-op-btn--active {
    background: #202223;
    color: #ffffff;
}

.le-condition-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.le-condition-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: #f6f6f7;
    border: 1px solid #e1e3e5;
    border-radius: 8px;
    padding: 8px 10px;
}

.le-cond-between {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.le-cond-picker-btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 13px;
    border: 1.5px dashed #c9cccf;
    border-radius: 6px;
    background: #ffffff;
    color: #6d7175;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 0.12s, color 0.12s;
}

.le-cond-picker-btn:hover {
    border-color: #202223;
    color: #202223;
}

.le-cond-picker-btn--error {
    border-color: #d72c0d;
    color: #d72c0d;
}

/* ── Selected products list ── */
.le-selected-products {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.le-selected-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f6f6f7;
    border: 1px solid #e1e3e5;
    border-radius: 6px;
    padding: 6px 10px;
}

.le-selected-product-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #e1e3e5;
}

.le-selected-product-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #202223;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-selected-product-remove {
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    color: #8c9196;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: background 0.1s, color 0.1s;
}

.le-selected-product-remove:hover {
    background: #e1e3e5;
    color: #202223;
}

/* ── Badge preview (positioned absolutely inside container) ── */
.le-badge-preview {
    cursor: default;
    line-height: 1.2;
    text-align: center;
    pointer-events: auto;
    position: relative;
}

/* ── Tooltip preview — rendered via portal, no CSS needed ── */

/* =====================
   Campaign Planner (cp-)
   ===================== */

/* ── Page header ── */
.cp-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* ── Uiverse.io Pill Radio Tab ── */
.cp-tab-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 4px;
    background-color: #dadadb85;
    border-radius: 9px;
    width: 100%;
    box-sizing: border-box;
}

.cp-tab-indicator {
    width: 50%;
    height: 36px;
    background: #ffffff;
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 9;
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.12), 0px 3px 1px rgba(0, 0, 0, 0.04);
    border-radius: 7px;
    transition: left 0.2s ease-out;
}

.cp-tab {
    width: 50%;
    height: 36px;
    position: absolute;
    z-index: 99;
    outline: none;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.cp-tab-label {
    width: 50%;
    height: 36px;
    position: relative;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s ease;
    user-select: none;
}

.cp-tab--1:checked~.cp-tab-indicator {
    left: 4px;
}

.cp-tab--2:checked~.cp-tab-indicator {
    left: calc(50% + -4px);
}

.cp-tab--1:checked+.cp-tab-label,
.cp-tab--2:checked+.cp-tab-label {
    opacity: 1;
    font-weight: 600;
}


/* ── Calendar ── */
.cp-calendar {
    display: flex;
    flex-direction: column;
}

.cp-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cp-cal-nav {
    width: 32px;
    height: 32px;
    background: #f1f2f3;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s;
}

.cp-cal-nav:hover {
    background: #e1e3e5;
}

.cp-cal-month {
    font-size: 16px;
    font-weight: 700;
    color: #202223;
}

.cp-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #e1e3e5;
    border-top: 1px solid #e1e3e5;
}

.cp-cal-day-header {
    padding: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #8c9196;
    text-align: center;
    border-right: 1px solid #e1e3e5;
    border-bottom: 1px solid #e1e3e5;
    background: #fafbfb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cp-cal-day {
    min-height: 80px;
    padding: 6px 4px 4px;
    border-right: 1px solid #e1e3e5;
    border-bottom: 1px solid #e1e3e5;
    background: #ffffff;
    position: relative;
}

.cp-cal-day--empty {
    background: #fafbfb;
}

.cp-cal-day--today {
    background: #fffbf0;
}

.cp-cal-day-num {
    font-size: 11px;
    font-weight: 600;
    color: #6d7175;
    margin-bottom: 4px;
    line-height: 1;
}

.cp-cal-event {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    border-radius: 3px;
    padding: 2px 5px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    display: block;
}

.cp-form-row {
    display: flex;
    gap: 16px;
}

.cp-form-row>* {
    flex: 1;
}

.cp-date-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cp-date-label {
    font-size: 13px;
    font-weight: 500;
    color: #202223;
}

.cp-date-input {
    padding: 8px 10px;
    border: 1.5px solid #c9cccf;
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    color: #202223;
    background: #ffffff;
}

.cp-date-input:focus {
    outline: none;
    border-color: #202223;
}

.cp-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}


.cp-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f2f3;
}

.cp-switch-row:last-child {
    border-bottom: none;
}

/* ── Options Panel (opt-) ── */
.opt-card {
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.opt-card--active {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.opt-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.opt-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f1f2f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.opt-card--active .opt-icon {
    background: #e9e9ea;
}

.opt-body {
    flex: 1;
    min-width: 0;
}

.opt-title {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    line-height: 1.3;
}

.opt-desc {
    font-size: 12px;
    color: #8c9196;
    margin-top: 2px;
    line-height: 1.4;
}

.opt-expand {
    padding: 0 16px 16px;
    animation: opt-slide-down 0.15s ease;
}

.opt-expand-divider {
    height: 1px;
    background: #f1f2f3;
    margin-bottom: 14px;
}

@keyframes opt-slide-down {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Targeting Panel (tgt-) ── */
.tgt-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #f1f2f3;
    padding-bottom: 0;
}

.tgt-tab-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 500;
    color: #6d7175;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.tgt-tab-btn:hover {
    color: #202223;
}

.tgt-tab-btn--active {
    color: #202223;
    font-weight: 600;
    border-bottom-color: #202223;
}

.tgt-tab-btn--danger {
    color: #d82c0d;
}

.tgt-tab-btn--danger:hover {
    color: #b52309;
}

.tgt-tab-btn--danger.tgt-tab-btn--active {
    color: #d82c0d;
    border-bottom-color: #d82c0d;
}

/* Settings tabs — scrollable on smaller widths */
.st-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
}

.st-tabs::-webkit-scrollbar {
    display: none;
}

.tgt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e3e3e3;
    color: #6d7175;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.tgt-badge--active {
    background: #202223;
    color: #ffffff;
}

.tgt-panel {
    padding-top: 14px;
}

.tgt-hint {
    font-size: 13px;
    color: #8c9196;
    margin-bottom: 12px;
}

/* Label Cards */
.tgt-label-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1.5px solid #e1e3e5;
    border-radius: 8px;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.tgt-label-card:hover {
    border-color: #c9cccf;
    background: #fafbfb;
}

.tgt-label-card--selected {
    border-color: #202223;
    background: #f6f6f7;
}

.tgt-label-check {
    width: 18px;
    height: 18px;
    border: 2px solid #c9cccf;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.tgt-label-card--selected .tgt-label-check {
    background: #202223;
    border-color: #202223;
}

.tgt-label-check-icon {
    display: none;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.tgt-label-card--selected .tgt-label-check-icon {
    display: block;
}

.tgt-label-name {
    font-size: 13px;
    font-weight: 500;
    color: #202223;
    flex: 1;
}


.tgt-empty {
    text-align: center;
    padding: 32px 16px;
    color: #8c9196;
    font-size: 13px;
    border: 1.5px dashed #e1e3e5;
    border-radius: 8px;
}

.tgt-error-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff4f4;
    border: 1.5px solid #ffd2d2;
    border-radius: 8px;
    font-size: 13px;
    color: #d72c0d;
    margin-bottom: 8px;
}

/* Targeting — header + summary */
.tgt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.tgt-summary {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tgt-summary-pill {
    font-size: 12px;
    font-weight: 500;
    color: #6d7175;
    background: #f1f2f3;
    border-radius: 20px;
    padding: 3px 10px;
}

.tgt-summary-pill--labels {
    background: #e8f4f0;
    color: #007a5a;
}

.tgt-summary-sep {
    color: #c4cdd5;
    font-size: 14px;
}

/* Targeting — toolbar (search + actions) */
.tgt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.tgt-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.tgt-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.tgt-search {
    width: 100%;
    padding: 7px 30px 7px 32px;
    font-size: 13px;
    border: 1.5px solid #e1e3e5;
    border-radius: 8px;
    outline: none;
    color: #202223;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.tgt-search:focus {
    border-color: #202223;
}

.tgt-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8c9196;
    cursor: pointer;
    font-size: 11px;
    padding: 2px 4px;
    line-height: 1;
    border-radius: 4px;
}

.tgt-search-clear:hover {
    color: #202223;
}

.tgt-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.tgt-action-btn {
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 500;
    color: #202223;
    background: #f1f2f3;
    border: 1.5px solid #e1e3e5;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

.tgt-action-btn:hover {
    background: #e4e5e7;
    border-color: #c4cdd5;
}

/* Targeting — label type badge */
.tgt-label-type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: auto;
    flex-shrink: 0;
    background: #f1f2f3;
    color: #6d7175;
}

.tgt-label-type--image {
    background: #f3ecfa;
    color: #7c4daa;
}

.tgt-label-type--text {
    background: #e8f4f0;
    color: #007a5a;
}

.tgt-label-type--icon {
    background: #fdf3e7;
    color: #b56c0a;
}

/* Targeting — scrollable label list */
.tgt-label-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 325px;
    overflow-y: auto;
    padding-right: 2px;
}

.tgt-label-list::-webkit-scrollbar {
    width: 5px;
}

.tgt-label-list::-webkit-scrollbar-track {
    background: transparent;
}

.tgt-label-list::-webkit-scrollbar-thumb {
    background: #c4cdd5;
    border-radius: 4px;
}

/* Targeting — scope toggle */
.tgt-scope-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.tgt-scope-btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #6d7175;
    background: #f6f6f7;
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.tgt-scope-btn:hover {
    background: #f0f0f1;
    border-color: #c4cdd5;
    color: #202223;
}

.tgt-scope-btn--active {
    background: #202223;
    border-color: #202223;
    color: #ffffff;
}

/* Targeting — worldwide info card */
.tgt-worldwide-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #f6f6f7;
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    margin-top: 12px;
}

.tgt-worldwide-globe {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.tgt-worldwide-title {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    margin-bottom: 4px;
}

.tgt-worldwide-desc {
    font-size: 12px;
    color: #6d7175;
    line-height: 1.5;
}

/* Targeting — country chips */
.tgt-country-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 315px;
    overflow-y: auto;
    padding-right: 2px;
}

.tgt-country-grid::-webkit-scrollbar {
    width: 5px;
}

.tgt-country-grid::-webkit-scrollbar-track {
    background: transparent;
}

.tgt-country-grid::-webkit-scrollbar-thumb {
    background: #c4cdd5;
    border-radius: 4px;
}

.tgt-country-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.12s, background 0.12s;
    overflow: hidden;
}

.tgt-country-chip:hover {
    border-color: #c9cccf;
    background: #fafbfb;
}

.tgt-country-chip--selected {
    border-color: #202223;
    background: #f6f6f7;
}

.tgt-country-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.tgt-country-name {
    font-size: 12px;
    font-weight: 500;
    color: #202223;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tgt-country-code {
    font-size: 10px;
    color: #8c9196;
    font-weight: 600;
}


/* ── Campaign Details time fields (cd-) ── */
.cd-time-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 6px 0 0;
}

.cd-time-label {
    font-size: 13px;
    font-weight: 500;
    color: #202223;
}

.cd-time-optional {
    font-size: 11px;
    font-weight: 400;
    color: #8c9196;
}

.cd-time-input {
    width: 86%;
    padding: 5px 10px;
    font-size: 13px;
    color: #202223;
    background: #fff;
    border: 1.5px solid #c9cccf;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
    cursor: pointer;
}

.cd-time-input:focus {
    border-color: #202223;
    box-shadow: 0 0 0 2px rgba(32, 34, 35, 0.1);
}

.cd-time-input--error {
    border-color: #d82c0d;
}

.cd-time-input--error:focus {
    border-color: #d82c0d;
    box-shadow: 0 0 0 2px rgba(216, 44, 13, 0.1);
}

.cd-time-error {
    font-size: 12px;
    color: #d82c0d;
    margin-top: 2px;
}

/* =====================
   Analytics Dashboard (an-)
   ===================== */

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

.an-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.an-date-select {
    padding: 7px 12px;
    font-size: 13px;
    border: 1.5px solid #c9cccf;
    border-radius: 6px;
    background: #ffffff;
    color: #202223;
    cursor: pointer;
    appearance: auto;
}

.an-date-select:focus {
    outline: none;
    border-color: #202223;
}

.an-export-btn {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid #c9cccf;
    border-radius: 6px;
    background: #ffffff;
    color: #202223;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s, border-color 0.12s;
}

.an-export-btn:hover {
    background: #f1f2f3;
    border-color: #8c9196;
}

/* ── Metrics bar ── */
.an-metrics-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .an-metrics-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

.an-metric-card {
    background: #ffffff;
    border: 1px solid #e1e3e5;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.an-metric-label {
    font-size: 12px;
    font-weight: 500;
    color: #6d7175;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.an-metric-value {
    font-size: 26px;
    font-weight: 700;
    color: #202223;
    margin: 0;
    line-height: 1.2;
}

.an-metric-sub {
    font-size: 12px;
    color: #8c9196;
    margin: 0;
}

.an-metric-change {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

.an-metric-change--up {
    color: #1a8a7d;
}

.an-metric-change--down {
    color: #d72c0d;
}

/* ── Section heading ── */
.an-section-heading {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    margin: 0 0 10px;
}

.an-hint {
    font-size: 13px;
    color: #6d7175;
    margin: 0 0 16px;
}

/* ── Label performance table ── */
.an-table-wrap {
    overflow-x: auto;
}

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

.an-th {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #e1e3e5;
    color: #6d7175;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color 0.12s;
}

.an-th:hover {
    color: #202223;
}

.an-sort-icon {
    font-size: 11px;
    color: #c9cccf;
    margin-left: 4px;
}

.an-sort-icon--active {
    color: #202223;
}

.an-tr:hover .an-td {
    background: #fafbfb;
}

.an-td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #f1f2f3;
    color: #202223;
    vertical-align: middle;
}

.an-td--name {
    font-weight: 600;
}

/* ── Device breakdown ── */
.an-device-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.an-device-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.an-device-label {
    font-size: 13px;
    font-weight: 500;
    color: #202223;
    width: 64px;
    flex-shrink: 0;
}

.an-device-bar-wrap {
    flex: 1;
    height: 8px;
    background: #f1f2f3;
    border-radius: 4px;
    overflow: hidden;
}

.an-device-bar {
    height: 100%;
    background: #5c6ac4;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.an-device-pct {
    font-size: 12px;
    font-weight: 600;
    color: #202223;
    width: 38px;
    text-align: right;
    flex-shrink: 0;
}

.an-device-num {
    font-size: 11px;
    color: #8c9196;
    width: 80px;
    flex-shrink: 0;
}

/* ── Before vs After (card layout) ── */
.an-ba-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.an-ba-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #202223;
    margin: 0;
}

.an-ba-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.an-ba-card-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.an-ba-card-period {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8c9196;
}

.an-ba-card-val {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.an-ba-card-val--before {
    color: #6d7175;
}

.an-ba-card-val--after {
    color: #202223;
}

.an-ba-card-arrow {
    font-size: 18px;
    color: #8c9196;
    flex-shrink: 0;
    padding-top: 14px;
}

.an-change-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

.an-change-tag--up {
    background: #d4edda;
    color: #1a8a7d;
}

.an-change-tag--down {
    background: #fde8e8;
    color: #d72c0d;
}

.an-chart-skeleton {
    background: linear-gradient(90deg, #f1f2f3 25%, #e8eaed 50%, #f1f2f3 75%);
    background-size: 200% 100%;
    animation: an-shimmer 1.4s infinite;
    border-radius: 6px;
    width: 100%;
}

@keyframes an-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BULK OPERATIONS  (bulk-*)
═══════════════════════════════════════════════════════════════ */

/* ── Undo banner ── */
.bulk-undo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f0faf8;
    border: 1px solid #b3e0d8;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 4px;
}

.bulk-undo-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bulk-undo-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a8a7d;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.bulk-undo-msg {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    margin: 0 0 2px;
}

.bulk-undo-hint {
    font-size: 12px;
    color: #6d7175;
    margin: 0;
}

.bulk-undo-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.bulk-undo-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #6d7175;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
}

.bulk-undo-dismiss:hover {
    color: #202223;
    background: #e1e3e5;
}

/* ── Toolbar ── */
.bulk-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.bulk-toolbar-select {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}

.bulk-label-label {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
}

.bulk-toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-selected-hint {
    font-size: 12px;
    color: #6d7175;
    margin: 0;
    align-self: center;
}

/* ── Product thumbnail ── */
.bulk-th-img,
.bulk-td-img {
    width: 52px;
    padding: 8px 6px 8px 12px !important;
}

.bulk-product-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    border: 1px solid #e1e3e5;
}

.bulk-product-img--placeholder {
    background: #f1f2f3;
}

/* ═══════════════════════════════════════════════════════════════
   ONBOARDING WIZARD  (ob-*)
═══════════════════════════════════════════════════════════════ */

/* ── Backdrop ───────────────────────────────────────────────── */
.ob-backdrop {
    position: fixed;
    inset: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

/* ── Card ───────────────────────────────────────────────────── */
.ob-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 570px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}

/* ── Step indicator ─────────────────────────────────────────── */
.ob-step-wrap {
    padding: 32px 0 28px;
    display: flex;
    justify-content: center;
    background: #ffffff;
}

.ob-step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
}

.ob-step-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.ob-step-dot--active {
    background: #1a1a1a;
    color: #ffffff;
}

.ob-step-dot--idle {
    background: #e8e8e8;
    color: #9ca3af;
}

.ob-step-line {
    width: 80px;
    height: 1.5px;
    background: #d1d5db;
    margin: 0 4px;
}

/* ── Hero banner ────────────────────────────────────────────── */
.ob-hero {
    background: #111111;
    padding: 36px 40px 32px;
    text-align: center;
}

.ob-hero-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.25;
}

.ob-hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* ── Content ────────────────────────────────────────────────── */
.ob-content {
    padding: 28px 20px 24px;
    flex: 1;
    background: #ffffff;
}

/* ── Feature list — plain, no cards ────────────────────────── */
.ob-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ob-feature-item {
    padding: 16px 0;
}

.ob-feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ob-feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.3;
}

.ob-feature-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.55;
    font-weight: 400;
}

/* ── Footer ─────────────────────────────────────────────────── */
.ob-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 22px 18px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.ob-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.ob-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
}

.ob-btn--primary {
    background: #1a1a1a;
    color: #ffffff;
}

.ob-btn--primary:hover {
    background: #333333;

}

/* =====================
   A/B Test Manager
   ===================== */

/* Traffic split slider */
.ab-split-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ab-split-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: #202223;
}

.ab-split-input {
    width: 100%;
    cursor: pointer;
    accent-color: #1a8a7d;
    height: 4px;
}

/* ── Template Gallery modal content (tg-) ── */
.tg-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.tg-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c9196;
    pointer-events: none;
}


.tg-search {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 38px;
    border: 1.5px solid #e1e3e5;
    border-radius: 8px;
    font-size: 14px;
    color: #202223;
    background: #fafbfb;
    box-sizing: border-box;
    transition: border-color 0.15s;
    outline: none;
}

.tg-search:focus {
    border-color: #458fff;
    background: #fff;
}

.tg-cats-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 0 10px;
}

.tg-cats-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1.5px solid #e1e3e5;
    border-radius: 50%;
    background: #fff;
    color: #6d7175;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    padding-bottom: 2px;
}

.tg-cats-arrow:hover {
    border-color: #c4cdd5;
    color: #202223;
}

.tg-cats {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.tg-cats::-webkit-scrollbar {
    display: none;
}

.tg-cat-btn {
    height: 30px;
    padding: 0 14px;
    border: 1.5px solid #e1e3e5;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #6d7175;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tg-cat-btn:hover {
    border-color: #c4cdd5;
    color: #202223;
}

.tg-cat-btn--active,
.tg-cat-btn--active:hover {
    background: #202223;
    border-color: #202223;
    color: #fff;
}

.tg-grid-wrap {
    overflow-y: auto;
}

.tg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 4px 0;
}

.tg-item {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid #e1e3e5;
    border-radius: 10px;
    background: #fafbfb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tg-item:hover {
    border-color: #c4cdd5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tg-item--selected {
    border-color: #458fff;
    background: #f0f6ff;
    box-shadow: 0 0 0 3px rgba(69, 143, 255, 0.2);
}

.tg-item-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tg-item-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: #458fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.tg-empty {
    text-align: center;
    padding: 48px 0;
    color: #8c9196;
    font-size: 14px;
}

/* ── Image Badge section (ib-) ── */
.ib-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #202223;
}

.ib-header-title {
    font-size: 14px;
    font-weight: 600;
}

.ib-upload-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.ib-upload-area {
    appearance: none;
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    background: #fafbfb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: border-color 0.15s ease;
}

.ib-upload-area:hover {
    border-color: #458fff;
    background: #f6faff;
}

.ib-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 1;
}

.ib-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.ib-upload-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 4px;
}

.ib-upload-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #2c6ecb;
    text-decoration: none;
}

.ib-upload-link:hover {
    text-decoration: underline;
}

/* AI Badge Generator card — gradient border */
.ib-ai-card {
    position: relative;
    border-radius: 12px;
    padding: 14px 16px;
    background: #f7f7ff;
}

.ib-ai-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1.5px;
    background: linear-gradient(135deg, #5c6bc0, #e040fb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ib-ai-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ib-ai-icon {
    font-size: 16px;
    color: #5c6bc0;
    line-height: 1;
}

.ib-ai-title {
    font-size: 14px;
    font-weight: 600;
    color: #202223;
}

.ib-ai-usage {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    background: #e9e9e9;
    border-radius: 20px;
    font-size: 12px;
    color: #6d7175;
    font-weight: 500;
}

.ib-ai-upgrade {
    height: 24px;
    padding: 0 12px;
    background: #dde8ff;
    color: #2c5cc5;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.ib-ai-upgrade:hover {
    background: #c5d8ff;
}

.ib-ai-footer {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ib-ai-create {
    height: 32px;
    padding: 0 16px;
    background: #e5e5e5;
    color: #8c9196;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: not-allowed;
}

.ib-ai-template {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    color: #2c6ecb;
    cursor: pointer;
}

.ib-ai-template:hover {
    text-decoration: underline;
}

/* ── AI Image Generator (aig-) ── */
.aig-wrap {
    background: #f7f7ff;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    border: 1.5px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 1.5px #c4b5fd;
}

.aig-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.aig-icon {
    font-size: 16px;
    line-height: 1;
}

.aig-title {
    font-size: 14px;
    font-weight: 700;
    color: #202223;
}

.aig-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    background: linear-gradient(135deg, #5c6bc0, #e040fb);
    color: #fff;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.aig-usage {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #6d7175;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 20px;
}

.aig-usage--warn {
    color: #b45309;
    background: #fef3c7;
}

.aig-limit-banner {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
}

.aig-subtitle {
    font-size: 12px;
    color: #6d7175;
    margin: 0 0 14px;
}

.aig-field {
    margin-bottom: 12px;
}

.aig-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    margin-bottom: 6px;
}

.aig-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c9cccf;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #202223;
    resize: vertical;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.15s;
}

.aig-textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

.aig-textarea:disabled {
    opacity: 0.6;
}

.aig-sample-prompt {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aig-sample-prompt-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.aig-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.aig-example-chip {
    padding: 5px 10px;
    background: #eaeaec;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.aig-select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c9cccf;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    color: #202223;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
}

.aig-select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

.aig-select:disabled {
    opacity: 0.6;
}

.aig-btn-generate {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #5c6bc0, #9c27b0);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s;
}

.aig-btn-generate:hover:not(:disabled) {
    opacity: 0.88;
}

.aig-btn-generate:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.aig-btn-generate--loading {
    cursor: not-allowed;
}

.aig-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: aig-spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

.aig-error {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff1f0;
    border: 1px solid #ffa39e;
    border-radius: 8px;
    font-size: 12px;
    color: #cf1322;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.aig-results {
    margin-top: 14px;
}

.aig-results-label {
    font-size: 12px;
    color: #6d7175;
    margin: 0 0 10px;
}

.aig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.aig-result-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: border-color 0.15s;
}

.aig-result-card--selected {
    border-color: #000000;
}

.aig-result-img-wrap {
    position: relative;
    aspect-ratio: 1;
    background: #f9fafb;
    overflow: hidden;
}

.aig-result-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aig-result-use {
    padding: 7px 0;
    text-align: center;
    background: #f3f4f6;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.aig-result-use:hover {
    background: #e5e7eb;
}

.aig-result-use--active {
    background: #000000;
    color: #ffffff;
}

.aig-btn-regen {
    margin-top: 10px;
    width: 100%;
    padding: 7px 0;
    background: none;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}

.aig-btn-regen:hover:not(:disabled) {
    background: #f9fafb;
}

.aig-btn-regen:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Create Label Type Picker (cl-) ── */
.cl-modal-hint {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6d7175;
    line-height: 1.5;
}

.cl-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cl-tile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px 20px;
    background: #fff;
    border: 1.5px solid #e1e3e5;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    width: 100%;
    gap: 0;
}

.cl-tile-card:hover {
    border-color: #458fff;
    background: #f6faff;
    box-shadow: 0 4px 14px rgba(0, 91, 211, 0.10);
}

.cl-tile-card:active {
    background: #edf4ff;
    box-shadow: none;
}

.cl-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 16px;
}

.cl-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.cl-option-icon--text,
.cl-tile-card .cl-option-icon--text {
    background: #f0f4ff;
    color: #2c6ecb;
}

.cl-option-icon--image,
.cl-tile-card .cl-option-icon--image {
    background: #f3f9f3;
    color: #1a7a4a;
}

.cl-option-icon--slider {
    background: #fff7ed;
    color: #c05621;
}

.cl-tile-title {
    font-size: 15px;
    font-weight: 700;
    color: #202223;
    line-height: 1.3;
    margin-bottom: 6px;
}

.cl-tile-short-desc {
    font-size: 12px;
    font-weight: 500;
    color: #2c6ecb;
    line-height: 1.4;
    margin-bottom: 8px;
}

.cl-tile-desc {
    font-size: 12px;
    color: #6d7175;
    line-height: 1.55;
    margin-bottom: 14px;
}

.cl-tile-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.cl-tile-feature-tag {
    font-size: 11px;
    font-weight: 500;
    color: #3b4a6b;
    background: #f0f2f7;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.cl-tile-cta {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #2c6ecb;
    margin-top: auto;
    transition: color 0.15s ease;
}

.cl-tile-card:hover .cl-tile-cta {
    color: #1a50a0;
}

.cl-option-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 15px 20px;
    background: #fff;
    border: 1.5px solid #e1e3e5;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cl-option-row:hover {
    border-color: #458fff;
    background: #f6faff;
    box-shadow: 0 2px 8px rgba(0, 91, 211, 0.08);
}

.cl-option-row:active {
    background: #edf4ff;
}

.cl-option-row:hover .cl-option-arrow {
    color: #2c6ecb;
    transform: translateX(2px);
}

/* Legacy row styles kept for CreateBannerTypeModal compatibility */
.cl-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cl-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1.5px solid #e1e3e5;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cl-option-card:hover {
    border-color: #458fff;
    background: #f6faff;
    box-shadow: 0 2px 8px rgba(0, 91, 211, 0.08);
}

.cl-option-card:active {
    background: #edf4ff;
}

.cl-option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.cl-option-title {
    font-size: 14px;
    font-weight: 600;
    color: #202223;
    line-height: 1.3;
}

.cl-option-desc {
    font-size: 13px;
    color: #6d7175;
    line-height: 1.5;
}

.cl-option-arrow {
    flex-shrink: 0;
    color: #8c9196;
    transition: color 0.15s ease, transform 0.15s ease;
}

.cl-option-card:hover .cl-option-arrow {
    color: #2c6ecb;
    transform: translateX(2px);
}

.cl-option-card--locked {
    opacity: 0.75;
    background: #fafafa;
    cursor: not-allowed;
}

.cl-option-card--locked:hover {
    border-color: #e1e3e5;
    background: #fafafa;
    box-shadow: none;
}

.cl-option-card--locked .cl-option-arrow {
    color: #c9cccf;
}

/* ── A/B Variant Editor (abv-) ── */
.abv-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 0;
}

.abv-card {
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.abv-card--a {
    border-top: 3px solid #5c6ac4;
}

.abv-card--b {
    border-top: 3px solid #1a8a7d;
}

.abv-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fafbfb;
    border-bottom: 1px solid #f1f2f3;
}

.abv-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.abv-badge--a {
    background: #5c6ac4;
}

.abv-badge--b {
    background: #1a8a7d;
}

.abv-title {
    font-size: 14px;
    font-weight: 600;
    color: #202223;
}

.abv-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abv-vs {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 12px;
    padding-top: 44px;
}

.abv-vs-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f2f3;
    border: 2px solid #e1e3e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #6d7175;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* Traffic split */
.abv-split-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.abv-split-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.abv-split-label-a {
    font-weight: 600;
    color: #5c6ac4;
}

.abv-split-label-b {
    font-weight: 600;
    color: #1a8a7d;
}

.abv-split-track {
    position: relative;
    height: 10px;
    border-radius: 6px;
    background: #e1e3e5;
    overflow: visible;
}

.abv-split-fill-a {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 6px 0 0 6px;
    background: #5c6ac4;
    transition: width 0.12s ease;
}

.abv-split-fill-b {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0 6px 6px 0;
    background: #1a8a7d;
    transition: width 0.12s ease;
}

.abv-split-input {
    width: 100%;
    cursor: pointer;
    accent-color: #5c6ac4;
    margin-top: 4px;
}

.abv-split-hint {
    font-size: 12px;
    color: #8c9196;
    text-align: center;
}

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

    .abv-vs {
        padding: 8px 0;
        padding-top: 0;
    }
}

/* Variant stat cards (used on results page) */
.ab-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .ab-stats-grid {
        grid-template-columns: 1fr;
    }
}

.ab-stat-card {
    background: #f6f6f7;
    border-radius: 8px;
    padding: 16px;
    border: 1.5px solid #e4e5e7;
}

.ab-stat-card--winner {
    border-color: #1a8a7d;
    background: #f0faf9;
}

.ab-stat-heading {
    font-size: 14px;
    font-weight: 600;
    color: #202223;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
}

.ab-stat-label-name {
    font-size: 12px;
    color: #6d7175;
    margin: 0 0 12px;
}

.ab-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid #e4e5e7;
}

.ab-stat-row:last-child {
    border-bottom: none;
}

.ab-stat-key {
    color: #6d7175;
}

.ab-stat-val {
    font-weight: 600;
    color: #202223;
}

/* Significance banner */
.ab-significance {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
}

.ab-significance--yes {
    background: #f0faf9;
    border: 1.5px solid #1a8a7d;
    color: #1a8a7d;
}

.ab-significance--no {
    background: #f6f6f7;
    border: 1.5px solid #c9cccf;
    color: #6d7175;
}

/* Winner chip (inline badge) */
.ab-winner-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #1a8a7d;
    color: #fff;
    vertical-align: middle;
}

/* =====================
   Settings Page (st-)
   ===================== */

/* Two-column side-by-side layout */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

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

.settings-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-card {
    background: #ffffff;
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    overflow: hidden;
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #f1f2f3;
    background: #fafbfb;
}

.settings-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #202223;
    margin: 0 0 4px;
}

.settings-card-description {
    font-size: 12px;
    color: #6d7175;
    margin: 0;
    line-height: 1.4;
}

.settings-card-content {
    padding: 16px 18px;
}

.connection-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s;
}

.connection-card:hover {
    border-color: #c9cccf;
}

.connection-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1f2f3;
    border: 1.5px solid #e1e3e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.connection-card-info {
    flex: 1;
    min-width: 0;
}

.connection-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    margin-bottom: 2px;
}

.connection-card-detail {
    font-size: 11px;
    color: #8c9196;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.connection-status--connected {
    background: #f0faf9;
    color: #1a8a7d;
    border: 1px solid #b3e5df;
}

.connection-status--disconnected {
    background: #f6f6f7;
    color: #8c9196;
    border: 1px solid #c9cccf;
}

.connection-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.connection-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.connection-card-edit {
    width: 100%;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f1f2f3;
}

.connection-edit-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.connection-edit-row>* {
    flex: 1;
}

.module-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f2f3;
}

.module-row:last-child {
    border-bottom: none;
}

.module-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f2f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.module-row-body {
    flex: 1;
    min-width: 0;
}

.module-row-title {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    line-height: 1.3;
}

.module-row-description {
    font-size: 12px;
    color: #8c9196;
    margin-top: 2px;
    line-height: 1.4;
}

.module-row-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.toggle-label {
    font-size: 12px;
    font-weight: 600;
    min-width: 54px;
    text-align: right;
}

.toggle-label--on {
    color: #1a8a7d;
}

.toggle-label--off {
    color: #8c9196;
}

.threshold-row {
    padding: 14px 0;
    border-bottom: 1px solid #f1f2f3;
}

.threshold-row:last-child {
    border-bottom: none;
}

.threshold-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.threshold-row-label {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
}

.threshold-row-description {
    font-size: 12px;
    color: #8c9196;
    margin-bottom: 10px;
    line-height: 1.4;
}

.threshold-row-range {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #8c9196;
    margin-top: 6px;
}

.staff-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.staff-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e1e3e5;
    border-radius: 8px;
}

.staff-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e1e3e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #6d7175;
    flex-shrink: 0;
}

.staff-info {
    flex: 1;
    min-width: 0;
}

.staff-name {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
}

.staff-email {
    font-size: 12px;
    color: #8c9196;
}

.staff-actions {
    display: flex;
    gap: 6px;
}

.invite-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.invite-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.invite-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invite-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.permission-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e1e3e5;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s;
}

.permission-checkbox:hover {
    background: #fafbfb;
}

.permission-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.permission-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.permission-label {
    font-size: 13px;
    font-weight: 500;
    color: #202223;
}

.permission-description {
    font-size: 11px;
    color: #8c9196;
    line-height: 1.3;
}

.invite-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f2f3;
}

.urgency-toggles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.st-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    align-items: start;
}

.st-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 16px;
    background: #ffffff;
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    padding: 8px;
}

.st-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #6d7175;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    transition: background 0.12s, color 0.12s;
    width: 100%;
    white-space: nowrap;
}

.st-nav-item:hover {
    background: #f1f2f3;
    color: #202223;
}

.st-nav-item--active {
    background: #f1f2f3;
    color: #202223;
    font-weight: 600;
}

.st-nav-item--danger {
    color: #d72c0d;
}

.st-nav-item--danger:hover,
.st-nav-item--danger.st-nav-item--active {
    background: #fff4f4;
    color: #d72c0d;
}

.st-nav-divider {
    height: 1px;
    background: #f1f2f3;
    margin: 4px 0;
}

/* Billing plan cards */
.st-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .st-layout {
        grid-template-columns: 1fr;
    }

    .st-plan-grid {
        grid-template-columns: 1fr;
    }
}

.st-plan-card {
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    background: #fff;
}

.st-plan-card--current {
    border-color: #202223;
}

.st-plan-card--popular {
    border-color: #5c6ac4;
}

.st-plan-name {
    font-size: 15px;
    font-weight: 700;
    color: #202223;
}

.st-plan-price {
    font-size: 26px;
    font-weight: 700;
    color: #202223;
    line-height: 1;
}

.st-plan-price span {
    font-size: 13px;
    font-weight: 400;
    color: #6d7175;
}

.st-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.st-plan-feature {
    font-size: 12px;
    color: #6d7175;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.st-plan-feature::before {
    content: "✓";
    color: #1a8a7d;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1.4;
}

.st-plan-badge {
    position: absolute;
    top: -1px;
    right: 12px;
    background: #5c6ac4;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 0 0 6px 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.st-current-badge {
    position: absolute;
    top: -1px;
    left: 12px;
    background: #202223;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 0 0 6px 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Integration cards */
.st-integration-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    background: #fff;
}

.st-integration-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f1f2f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.st-integration-body {
    flex: 1;
    min-width: 0;
}

.st-integration-name {
    font-size: 14px;
    font-weight: 600;
    color: #202223;
    margin-bottom: 3px;
}

.st-integration-desc {
    font-size: 12px;
    color: #6d7175;
    line-height: 1.5;
    margin-bottom: 12px;
}

.st-connected-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1a8a7d;
    margin-right: 4px;
    vertical-align: middle;
}

/* Theme check list */
.st-check-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.st-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #e1e3e5;
    border-radius: 8px;
    font-size: 13px;
}

.st-check-item--ok {
    border-color: #1a8a7d;
    background: #f0faf9;
}

.st-check-item--fail {
    border-color: #ffd2d2;
    background: #fff4f4;
}

/* Notification rows */
.st-notify-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f2f3;
}

.st-notify-row:last-child {
    border-bottom: none;
}

.st-notify-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f2f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.st-notify-body {
    flex: 1;
}

.st-notify-title {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
}

.st-notify-desc {
    font-size: 12px;
    color: #8c9196;
    margin-top: 2px;
}

/* Staff rows */
.st-staff-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f2f3;
}

.st-staff-row:last-child {
    border-bottom: none;
}

.st-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e1e3e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #6d7175;
    flex-shrink: 0;
}

.st-staff-name {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
}

.st-staff-email {
    font-size: 12px;
    color: #8c9196;
}

/* Danger zone */
.st-danger-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1.5px solid #ffd2d2;
    border-radius: 10px;
    background: #fff;
}

.st-danger-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.st-danger-title {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    margin-bottom: 3px;
}

.st-danger-desc {
    font-size: 12px;
    color: #8c9196;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* API key box */
.st-api-key-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f6f6f7;
    border: 1.5px solid #e1e3e5;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #202223;
    word-break: break-all;
    margin-top: 10px;
}

.st-api-copy-btn {
    padding: 5px 12px;
    background: #202223;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s;
}

.st-api-copy-btn:hover {
    background: #3d4245;
}

/* Code editor */
.st-code-editor {
    width: 100%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    background: #1c1c1e;
    color: #f8f8f2;
    border: 1.5px solid #3d3d3d;
    border-radius: 8px;
    padding: 12px 14px;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.6;
}

.st-code-editor:focus {
    outline: none;
    border-color: #5c6ac4;
}

.st-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    display: block;
    margin-bottom: 4px;
}

.st-field-hint {
    font-size: 12px;
    color: #8c9196;
    margin-bottom: 8px;
}

/* ── Settings: Connection cards (st-conn-) ── */
.st-conn-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s;
}

.st-conn-card:hover {
    border-color: #c9cccf;
}

.st-conn-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1f2f3;
    border: 1.5px solid #e1e3e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.st-conn-info {
    flex: 1;
    min-width: 0;
}

.st-conn-name {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    margin-bottom: 2px;
}

.st-conn-detail {
    font-size: 11px;
    color: #8c9196;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-conn-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.st-conn-status--connected {
    background: #f0faf9;
    color: #1a8a7d;
    border: 1px solid #b3e5df;
}

.st-conn-status--disconnected {
    background: #f6f6f7;
    color: #8c9196;
    border: 1px solid #c9cccf;
}

.st-conn-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.st-conn-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Settings: Module toggle rows (st-module-) ── */
.st-module-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f2f3;
}

.st-module-row:last-child {
    border-bottom: none;
}

.st-module-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f2f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.st-module-body {
    flex: 1;
    min-width: 0;
}

.st-module-title {
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    line-height: 1.3;
}

.st-module-desc {
    font-size: 12px;
    color: #8c9196;
    margin-top: 2px;
    line-height: 1.4;
}

.st-module-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.st-toggle-label {
    font-size: 12px;
    font-weight: 600;
    min-width: 54px;
    text-align: right;
}

.st-toggle-label--on {
    color: #1a8a7d;
}

.st-toggle-label--off {
    color: #8c9196;
}

/* =====================
   Banner Form (bn-)
   ===================== */

/* ── Tabs ───────────────────────────────────────────────────────────── */
.bn-tabs {
    display: flex;
    border-bottom: 1.5px solid #e1e3e5;
    margin-bottom: 12px;
}

.bn-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    font-size: 14px;
    font-weight: 500;
    color: #6d7175;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.bn-tab:hover {
    color: #202223;
}

.bn-tab--active {
    color: #202223;
    font-weight: 600;
    border-bottom-color: #202223;
}

.bn-tab--error {
    color: #d72c0d;
}

.bn-tab--error.bn-tab--active {
    border-bottom-color: #d72c0d;
}

/* ── Form Layout ────────────────────────────────────────────────────── */
.bn-field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #202223;
    margin-bottom: 6px;
}

.bn-field-error {
    font-size: 12px;
    color: #d72c0d;
    margin: 4px 0 0;
}

.bn-hint-text {
    font-size: 12px;
    color: #8c9196;
    margin: 4px 0 0;
}

.bn-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bn-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.bn-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #c9cccf;
    border-radius: 6px;
    font-size: 14px;
    color: #202223;
    background: #ffffff;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.15s;
}

.bn-textarea:focus {
    outline: none;
    border-color: #202223;
}

.bn-input {
    margin-top: 4px;
    width: 100%;
    padding: 5px 12px;
    border: 1px solid #a8a8a8;
    border-radius: 6px;
    font-size: 13px;
    color: #202223;
    background: #ffffff;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.bn-input:focus {
    outline: none;
    border-color: #202223;
}

.bn-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

/* ── Preview Panel ──────────────────────────────────────────────────── */
.bn-preview-panel {
    position: sticky;
    top: 20px;
}

.bn-preview-inner {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.bn-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

.bn-preview-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bn-preview-label {
    font-size: 15px;
    font-weight: 600;
    color: #202223;
}

.bn-preview-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bn-preview-device-toggle {
    display: flex;
    gap: 4px;
    background: #f6f6f7;
    padding: 3px;
    border-radius: 8px;
}

.bn-preview-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
}

.bn-preview-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f6f6f7;
    border-radius: 0 0 12px 12px;
}

/* ── Browser/Desktop Frame ──────────────────────────────────────────── */
.bn-desktop-frame {
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bn-browser-bar {
    height: 38px;
    background: #f3f4f6;
    border-bottom: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.bn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bn-dot--red {
    background: #ff5f56;
    border: 1px solid #e0443e;
}

.bn-dot--yellow {
    background: #ffbd2e;
    border: 1px solid #dea123;
}

.bn-dot--green {
    background: #27c93f;
    border: 1px solid #1aab29;
}

/* ── Mobile Frame ────────────────────────────────────────────────────── */
.bn-mobile-frame {
    width: 340px;
    height: 540px;
    background: #ffffff;
    border: 12px solid #b2b2b2;
    border-radius: 42px;
    position: relative;
    padding: 40px 0px 24px;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}

.bn-mobile-frame::-webkit-scrollbar {
    display: none;
}

.bn-mobile-notch {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 6px;
    background: #b2b2b2;
    border-radius: 3px;
}

/* ── Preview Content ──────────────────────────────────────────────── */
.bn-preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bn-preview-header-bar {
    height: 50px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.bn-preview-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.bn-preview-hero {
    height: 120px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
    margin-bottom: 20px;
}

.bn-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bn-preview-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bn-preview-card-img {
    aspect-ratio: 1;
    background: #f3f4f6;
    border-radius: 6px;
}

.bn-preview-card-line {
    height: 12px;
    background: #e5e7eb;
    border-radius: 3px;
}

.bn-preview-card-line.short {
    width: 60%;
}

.bn-mobile-frame .bn-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.bn-mobile-frame .bn-preview-header-bar {
    height: 40px;
}

.bn-mobile-frame .bn-preview-hero {
    height: 80px;
}

.bn-mobile-frame .bn-preview-body {
    padding: 12px;
}

/* ── Bar Preview ───────────────────────────────────────────────────── */
@keyframes bn-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--marquee-end, -600px));
    }
}

.bn-slide-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bn-bar-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 40px 15px 0px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}


.bn-bar-text {
    font-weight: 400;
}

.bn-bar-cta {
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
}

.bn-bar-countdown {
    font-weight: 600;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.bn-bar-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.7;
    cursor: pointer;
    line-height: 1;
}

/* ── Countdown Bar Preview ──────────────────────────────────────────── */
.bn-bar-preview--countdown {
    padding: 12px 44px;
    justify-content: center;
    min-height: 56px;
}

/* Outer flex: text-group left + blocks right + cta */
.bn-cd-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Two-line text block */
.bn-cd-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: left;
    flex-shrink: 0;
}

.bn-cd-title {
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    font-size: 14px;
}

.bn-cd-subtitle {
    font-weight: 600;
    opacity: 0.88;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
}

/* Blocks row */
.bn-cd-blocks {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    flex-shrink: 0;
}

/* Each unit column: [sep] + [tile+label] */
.bn-cd-unit-col {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.bn-cd-block-outer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Blinking colon separator */
.bn-cd-sep {
    font-size: 20px;
    font-weight: 900;
    opacity: 0.7;
    line-height: 1;
    align-self: flex-start;
    margin: 11px 3px 0;
    flex-shrink: 0;
    animation: bn-cd-blink 1s step-end infinite;
}

@keyframes bn-cd-blink {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.2;
    }
}

/* Tile entrance — drop in with spring bounce */
@keyframes bn-cd-enter {
    from {
        transform: translateY(-16px) scale(0.86);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Digit flip-in — unrolls from top on each value change */
@keyframes bn-cd-num-flip {
    0% {
        transform: translateY(-55%) scaleY(0.3);
        opacity: 0;
    }

    60% {
        transform: translateY(5%) scaleY(1.06);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
}

/* Flip-clock tile */
.bn-cd-flip-tile {
    position: relative;
    min-width: 45px;
    height: 42px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 6px;
    box-sizing: border-box;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

/* Entrance stagger per column position */
.bn-cd-unit-col:nth-child(1) .bn-cd-flip-tile {
    animation: bn-cd-enter 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 0ms backwards;
}

.bn-cd-unit-col:nth-child(2) .bn-cd-flip-tile {
    animation: bn-cd-enter 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 80ms backwards;
}

.bn-cd-unit-col:nth-child(3) .bn-cd-flip-tile {
    animation: bn-cd-enter 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 160ms backwards;
}

.bn-cd-unit-col:nth-child(4) .bn-cd-flip-tile {
    animation: bn-cd-enter 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 240ms backwards;
}

/* Top-half gloss sheen */
.bn-cd-flip-tile::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    pointer-events: none;
    z-index: 2;
}

/* Horizontal split line through middle */
.bn-cd-flip-tile::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 3;
}

.bn-cd-num {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: inline-block;
    transform-origin: center top;
    animation: bn-cd-num-flip 0.24s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* Label below tile */
.bn-cd-unit {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    text-align: center;
}

/* Inline compact style */
.bn-cd-inline {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bn-cd-expired-text {
    font-weight: 500;
    opacity: 0.85;
}

/* cl-option-icon for countdown card */
.cl-option-icon--countdown {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #60a5fa;
}