body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f6fb;
    color: #111827;
}

.header {
    background: #0f172a;
    color: white;
    padding: 1px 20px;
}

.header h1 {
    margin: 0;
    font-size: 28px;
}

.app-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.sidebar {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    flex: 0 0 240px;
    background: #111827;
    color: white;
    padding: 24px 18px;
    box-sizing: border-box;
}

.sidebar-title {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-btn {
    display: block;
    width: calc(100% + 12px);
    margin-left: -20px;
    text-align: left;
    background: transparent;
    color: #cbd5e1;
    border: 0;
    padding: 12px 6px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 6px;
	margin-left: -6px
    font-weight: 700 !important;
}

.nav-btn:hover,
.nav-btn.active {
    background: #1e293b;
    color: white;
}

.nav-group {
    width: 100%;
}

.nav-submenu {
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.25s ease,
        opacity 0.18s ease,
        margin 0.18s ease;
}

.nav-submenu.open {
    max-height: 420px;
    opacity: 1;
    margin-top: 6px;
    margin-bottom: 12px;
}

.nav-group > .nav-btn {
    position: relative;
}

.nav-group > .nav-btn::after {
    content: "›";
    position: absolute;
    right: 8px;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-group > .nav-btn.group-open::after {
    transform: rotate(90deg);
}

.sub-btn {
    font-size: 13px !important;
    padding: 9px 6px 9px 42px !important;
    opacity: 0.9;
    font-weight: 500 !important;
}

.sub-btn:hover,
.sub-btn.active {
    opacity: 1;
}

.main-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100vw - 240px);
}

.container {
    padding: 20px 20px;
    max-width: 100%;
    box-sizing: border-box;
	background: #fff;
}

.controls {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
	background: #f8fafc;
    border: 1px solid #e2e8f0;
	border-radius: 18px;
    padding: 20px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.controls input {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    min-width: 260px;
}

.controls button {
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: #0080ff;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.controls input,
.controls select {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    min-width: 260px;
    min-height: 43px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
}

.controls input:focus,
.controls select:focus {
    border-color: #0080ff;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.12);
}

.admin-assignment-controls {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 900px) {
    .admin-assignment-controls {
        grid-template-columns: 1fr;
    }
}
.admin-assignment-controls select,
.admin-assignment-controls input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.admin-assignment-controls select:focus,
.admin-assignment-controls input:focus {
    border-color: #0080ff;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.12);
}

.admin-assignment-controls button {
    min-height: 42px;
    white-space: nowrap;
}


.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

@media (min-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (min-width: 1100px) {
    .stats {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
    }
}

.card {
    background: white;
    border-radius: 18px;
    padding: 20px;
	margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.card .label {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.card .label1 {
    color: #111827;
    font-size: 14px;
    margin-bottom: 0px;
	padding-top: 4px;
    font-weight: 700;
}

.kpi-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
}

.kpi-trend.up {
    background: #dcfce7;
    color: #166534;
}

.kpi-trend.down {
    background: #fee2e2;
    color: #991b1b;
}

.kpi-trend.neutral {
    background: #e5e7eb;
    color: #374151;
}

.kpi-hint {
    color: #64748b;
    font-weight: 600;
}

.card .value {
    font-size: 28px;
    font-weight: bold;
}

.card .value1 {
    font-size: 16px;
    font-weight: bold;
}

.recommendation-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    border-left: 5px solid #0080ff;

    box-shadow:
        0 2px 6px rgba(0,0,0,0.06);
}

.recommendation-card.warning {
    border-left-color: #f59e0b;
}

.recommendation-card.info {
    border-left-color: #0080ff;
}

.recommendation-type {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: #64748b;
    margin-bottom: 6px;
}
.recommendation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    margin-top: 12px;
}

.table-wrap {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.table-wrapper,
.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
	font-weight: 500;
    color: #000 !important;
}

th {
    background: #f8fafc;
    color: #475569;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge.danger {
    background: #dc2626;
    color: white;
}

.badge.warning {
    background: #f59e0b;
    color: white;
}

.badge.success {
    background: #16a34a;
    color: white;
}

.healthy { background: #dcfce7; color: #166534; }
.warning { background: #fef9c3; color: #854d0e; }
.critical { background: #fee2e2; color: #991b1b; }
.unknown { background: #e5e7eb; color: #374151; }

.actions button {
    margin-right: 6px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.sync-btn { background: #0080ff; color: white; }
.disable-btn { background: #dc2626; color: white; }
.enable-btn { background: #22c55e; color: white; }

.small {
    font-size: 14px;
    color: #64748b;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.detail-mini-card {
    background: white;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #e5e7eb;
}

.detail-mini-card .label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.detail-mini-card .value {
    font-size: 18px;
    font-weight: bold;
}

.close-detail-btn {
    float: right;
    background: #e5e7eb;
    color: #111827;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}

.feed-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.feed-detail-kicker {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.feed-detail-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    word-break: break-all;
}

.feed-detail-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
}

.feed-detail-section h4 {
    margin: 0 0 14px;
}

.feed-detail-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    padding: 12px;
}

.feed-detail-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    border-radius: 10px;
    padding: 12px;
}

.feed-detail-issues {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-detail-issue {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #94a3b8;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
}

.feed-detail-issue.warning {
    border-left-color: #f59e0b;
}

.feed-detail-issue.critical {
    border-left-color: #dc2626;
}

.feed-detail-issue.healthy {
    border-left-color: #22c55e;
}

.feed-detail-issue-title {
    font-weight: 600;
    color: #111827;
}

.feed-detail-issue-meta {
    font-size: 13px;
    color: #64748b;
    text-transform: capitalize;
}

.feed-detail-table-wrap {
    overflow-x: auto;
}

.feed-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.feed-detail-table th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.feed-detail-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.feed-detail-table tbody tr:hover {
    background: #f8fafc;
}

.feed-detail-panel.compact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px;
}

.feed-detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.feed-detail-topbar h3 {
    margin: 3px 0 0;
    font-size: 18px;
    color: #0f172a;
}

.feed-detail-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.feed-detail-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
    font-size: 12px;
    color: #64748b;
}

.feed-detail-subline span {
    padding: 3px 8px;
    background: #f1f5f9;
    border-radius: 999px;
}

.feed-detail-source {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 13px;
}

.feed-detail-source strong {
    color: #334155;
}

.feed-detail-source span {
    color: #64748b;
    overflow-wrap: anywhere;
}

.feed-detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.feed-detail-facts div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
    font-size: 13px;
}

.feed-detail-facts strong {
    color: #64748b;
    font-weight: 600;
}

.feed-detail-facts span {
    color: #0f172a;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}

.feed-detail-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
}

.feed-detail-section h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #0f172a;
}

.feed-detail-empty,
.feed-detail-error {
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.feed-detail-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.feed-detail-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.feed-detail-issues {
    display: grid;
    gap: 8px;
}

.feed-detail-issue {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border-left: 4px solid #94a3b8;
    font-size: 13px;
}

.feed-detail-issue.warning {
    border-left-color: #f59e0b;
}

.feed-detail-issue.critical {
    border-left-color: #dc2626;
}

.feed-detail-table.compact th,
.feed-detail-table.compact td {
    padding: 9px 10px;
    font-size: 13px;
}
.feed-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 900px) {
    .feed-detail-info-grid {
        grid-template-columns: 1fr;
    }
}


.feed-detail-error-toggle {
    margin-top: 10px;
    padding: 6px 10px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

.feed-detail-error-list {
    display: none;
    margin-top: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.feed-detail-error-list.open {
    display: grid;
    gap: 8px;
}

.feed-detail-error-item {
    padding: 9px 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
}

.feed-detail-error-time {
    font-size: 12px;
    color: #9a3412;
    margin-bottom: 4px;
}

.feed-detail-error-message {
    font-size: 13px;
    color: #7c2d12;
    overflow-wrap: anywhere;
}

.plugin-status-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 170px;
}

.plugin-inline-progress {
    width: 170px;
}

.plugin-inline-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.3;
}

.plugin-inline-progress-header span {
    color: #64748b;
}

.plugin-inline-progress-header strong {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.plugin-inline-progress-track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.plugin-inline-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
    transition: width 0.35s ease;
}

.plugin-inline-progress-meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}

.plugin-feed-row > td {
    height: 82px;
}

.feed-error-text {
    color: #dc2626;
}



button {
    cursor: pointer !important;
    border: 0 !important;
    border-radius: 5px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow:
        0 2px 6px rgba(0,0,0,0.12),
        0 1px 2px rgba(0,0,0,0.08) !important;
    outline: none !important;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        opacity 0.12s ease;
}

button:hover {
    cursor: pointer !important;
    transform: translateY(-1px);
    box-shadow:
        0 6px 14px rgba(0,0,0,0.16),
        0 3px 6px rgba(0,0,0,0.10) !important;
}

button:focus,
button:active {
    transform: translateY(1px);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.10) !important;
}

.sync-btn,
.disable-btn,
.enable-btn {
    border-radius: 5px !important;
	border:	0 !important;
    cursor: pointer !important;
    padding: 5px 12px !important;
    font-size: 14px !important;
}

.analytics-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .analytics-preview-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (min-width: 1400px) {
    .analytics-preview-grid {
        grid-template-columns: repeat(4, minmax(240px, 1fr));
    }
}

.analytics-preview-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.analytics-preview-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.analytics-preview-card table {
    font-size: 13px;
}

.analytics-preview-card th,
.analytics-preview-card td {
    padding: 9px 8px;
}

.preview-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 500;
    color: #0080ff;
	font-size: 14px;
    cursor: pointer;
}

.analytics-chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .analytics-chart-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (min-width: 1400px) {
    .analytics-chart-grid {
        grid-template-columns: repeat(4, minmax(240px, 1fr)) !important;
    }
}

.analytics-chart-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
	cursor: pointer;
	transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.analytics-chart-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(15,23,42,0.12);
}

.analytics-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.analytics-chart-header h3 {
    margin: 0;
    font-size: 16px;
}

.analytics-chart-card canvas {
    width: 100% !important;
    height: 220px !important;
}

.severity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.severity.good {
    background: #dcfce7;
    color: #166534;
}

.severity.warning {
    background: #fef9c3;
    color: #854d0e;
}

.severity.critical {
    background: #fee2e2;
    color: #991b1b;
}

#toastContainer {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 260px;
    max-width: 380px;

    padding: 16px 18px;
    border-radius: 14px;

    background: #0f172a;
    color: white;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.25);

    animation:
        toastIn 0.25s ease;
}

.toast.success {
    border-left: 5px solid #22c55e;
}

.toast.warning {
    border-left: 5px solid #f59e0b;
}

.toast.error {
    border-left: 5px solid #dc2626;
}

@keyframes toastIn {

    from {
        opacity: 0;
        transform:
            translateY(-10px)
            translateX(10px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            translateX(0);
    }
}


.cluster-chip {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;
    border-radius: 999px;

    background: #eef2ff;
    color: #3730a3;

    font-size: 12px;
    font-weight: 700;
}

.ai-suggestions-table-wrapper {
    max-height: 640px;
    overflow: auto;
}

.ai-suggestions-table thead th {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
}

.ai-suggestion-row-critical {
    background: #fef2f2;
}

.ai-suggestion-row-warning {
    background: #fffbeb;
}

.ai-suggestion-row-success {
    background: #f0fdf4;
}

.ai-suggestion-main {
    font-weight: 600;
}

.ai-suggestion-message {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.8;
}

.ai-suggestion-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-suggestions-table td {
    vertical-align: top;
}
.ai-suggestion-actions button {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    min-height: auto;
    line-height: 1.2;
}
.ai-suggestions-table .ai-suggestion-actions button,
.ai-suggestions-table .ai-suggestion-actions .sync-btn,
.ai-suggestions-table .ai-suggestion-actions .enable-btn,
.ai-suggestions-table .ai-suggestion-actions .disable-btn {
    padding: 5px 12px !important;
    font-size: 14px !important;
    border-radius: 7px !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.15 !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}
.ai-suggestions-table .ai-suggestion-actions {
    gap: 6px !important;
}
.ai-suggestions-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.04);
}
.ai-suggestion-filter-btn {
    opacity: 0.65;
    transform: none;
}

.ai-suggestion-filter-btn.active {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.ai-sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.ai-sortable:hover {
    background: rgba(15, 23, 42, 0.06);
}

.ai-sortable.active {
    background: rgba(37, 99, 235, 0.08);
}

.ai-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ai-suggestion-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 420px;
}

.ai-suggestion-message {
    max-width: 360px;
}

.ai-suggestion-table-small {
    font-size: 12px;
    opacity: 0.75;
}
.ai-details-row {
    display: none;
}

.ai-details-row.open {
    display: table-row;
}

.ai-details-box {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.5;
}

.ai-details-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 14px;
}

.ai-details-label {
    font-weight: 700;
    color: #475569;
}
.ai-action-menu {
    position: relative;
    display: inline-flex;
}

.ai-action-menu-btn {
    padding: 5px 9px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
    min-height: 0 !important;
    line-height: 1.15 !important;
}

.ai-action-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 150px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    z-index: 30;
    overflow: hidden;
}

.ai-action-dropdown.open {
    display: block;
}

.ai-action-dropdown button {
    display: block;
    width: 100%;
    padding: 9px 12px !important;
    border: 0;
    background: #ffffff;
    color: #111827;
    text-align: left;
    font-size: 13px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.ai-action-dropdown button:hover {
    background: #f3f4f6;
}

#feedsTable input,
#feedsTable select {
    max-width: 100%;
    box-sizing: border-box;
}
.feed-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 18px 0 18px;
    flex-wrap: wrap;
}

.feed-toolbar input,
.feed-toolbar select {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-sizing: border-box !important;
}

.feed-toolbar input {
    width: 360px;
    max-width: 360px;
}

.feed-toolbar select {
    width: 190px;
    max-width: 230px;
}

#feedSortSelect {
    width: 230px;
	margin-right: 10px;
}

.feed-toolbar input:focus,
.feed-toolbar select:focus {
    outline: none !important;
    border-color: #0080ff !important;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.15) !important;
}

@media (max-width: 768px) {
    .feed-toolbar {
        justify-content: stretch;
        align-items: stretch;
    }

    .feed-toolbar input,
    .feed-toolbar select,
    #feedSortSelect {
        width: 100%;
        max-width: none;
    }
}

.feed-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;

    margin-top: 28px;
    padding: 18px 24px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;

    flex-wrap: wrap;
}

.feed-pagination-info {
    display: flex;
    align-items: center;
    gap: 14px;

    font-size: 14px;
    color: #475569;
}

.feed-page-size {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: white;

    font-size: 14px;
    cursor: pointer;
}

.feed-pagination-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-pagination-actions button {
    padding: 10px 18px;

    border: none;
    border-radius: 10px;

    background: #2563eb;
    color: white;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.feed-pagination-actions button:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.feed-pagination-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.feed-pagination-actions span {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.delete-btn {
    background: #dc2626;
    color: white;
}

.delete-btn:hover {
    background: #b91c1c;
}

@media (max-width: 768px) {

    .feed-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .feed-pagination-info,
    .feed-pagination-actions {
        justify-content: center;
    }

    .feed-pagination-actions {
        flex-wrap: wrap;
    }
}

.feed-action-btn {
    padding: 5px 12px !important;
    border: none;
    border-radius: 9px;
    background: #0784f9;
    color: #fff;
    font-size: 14px !important;
    line-height: 1.1;
    font-weight: 600;
    cursor: pointer;
}

.feed-action-btn:hover {
    background: #006ed6;
}

.feed-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 90px;
    padding: 5px 10px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}

.feed-state.active {
    background: #dcfce7;
    color: #166534;
}

.feed-state.paused {
    background: #fee2e2;
    color: #991b1b;
}

.feed-inline-confirm-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;

    margin-bottom: 12px;
}

.feed-inline-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.feed-inline-cancel {
    background: #f1f5f9;
    color: #334155;
}

.feed-inline-delete {
    background: #dc2626;
    color: white;
}

.feed-inline-delete:hover {
    background: #b91c1c;
}
.feed-actions-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
	position: relative;
}

.feed-inline-confirm-target {
    position: relative;
    min-height: 0;
	left: 200px;
}

.feed-inline-confirm {
    position: absolute;
    width: 220px;
    top: 6px;
    right: -60px;
    z-index: 1000;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.feed-inline-confirm-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.feed-inline-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.feed-inline-confirm-actions button {
    width: auto !important;
    min-width: 72px !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.feed-inline-confirm-actions button.danger,
.feed-inline-confirm-actions button.primary,
.feed-inline-confirm-actions button:last-child {
    background: #0080ff !important;
    color: #ffffff !important;
}

.feed-inline-cancel,
.feed-inline-confirm-actions button:first-child {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.feed-inline-delete {
    background: #0080ff !important;
    color: #ffffff !important;
}

.admin-floating-confirm {
    position: fixed !important;
    top: auto;
    right: auto;
    z-index: 9999;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
}

.section-header h2 {
    margin: 0;
    font-size: 22px;
    color: #0f172a;
}

.section-header p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #64748b;
}

.system-health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.system-health-card {
    padding: 18px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.system-health-card:hover {
    transform: translateY(-2px);
    border-color: #0080ff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.system-health-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
}

.system-health-value {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.system-health-note {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}

.system-health-card.critical .system-health-value {
    color: #dc2626;
}

.system-health-card.warning .system-health-value {
    color: #d97706;
}

.system-health-card.info .system-health-value {
    color: #0080ff;
}

.system-health-card.success .system-health-value {
    color: #16a34a;
}

@media (max-width: 1100px) {
    .system-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .system-health-grid {
        grid-template-columns: 1fr;
    }
}

.analytics-action-needed-section {
    margin-top: 24px;
}

.analytics-action-needed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;

    margin-top: 18px;
}

.analytics-action-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.analytics-action-card strong {
    display: block;

    font-size: 14px;
    font-weight: 600;

    color: #0f172a;

    margin-bottom: 4px;
}

.analytics-action-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #64748b;
}

.analytics-action-card.critical {
    border-color: #fecaca;
    background: #fef2f2;
}

.analytics-action-card.warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.analytics-action-card.info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.analytics-action-empty {
    padding: 18px;

    border-radius: 16px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;

    color: #475569;
    font-size: 14px;
}
.analytics-action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 2px 7px;
    margin-bottom: 6px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.analytics-action-badge.critical {
    background: #fee2e2;
    color: #991b1b;
}

.analytics-action-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.analytics-action-badge.info {
    background: #dbeafe;
    color: #1e40af;
}
.analytics-action-empty strong {
    display: block;

    margin-bottom: 6px;

    color: #0f172a;
    font-size: 15px;
}

.analytics-action-empty p {
    margin: 0;

    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
.analytics-action-content {
    flex: 1;
    min-width: 0;
}

.analytics-action-btn {
    flex-shrink: 0;
	padding: 4px 10px !important;
    font-size: 12px !important;
}

.analytics-opportunities-section {
    margin-top: 18px;
}

.analytics-opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;

    margin-top: 14px;
}

.analytics-opportunity-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    padding: 12px;

    border-radius: 12px;
    border: 1px solid #dbeafe;

    background: #eff6ff;
}

.analytics-opportunity-card strong {
    display: block;

    font-size: 13px;
    font-weight: 700;

    color: #0f172a;

    margin-bottom: 4px;
}

.analytics-opportunity-card p {
    margin: 0;

    font-size: 12px;
    line-height: 1.35;

    color: #64748b;
}
.analytics-opportunity-hint {
    margin-top: 6px !important;

    font-size: 11px !important;
    line-height: 1.35;

    color: #475569 !important;
}
.analytics-focused-row {
    background: #fff7ed !important;
    outline: 2px solid #fb923c;
    outline-offset: -2px;
}

.analytics-focused-row td {
    font-weight: 700;
}
.query-detail-panel {
    margin-top: 18px;
    margin-bottom: 18px;

    padding: 18px;

    border-radius: 16px;
    border: 1px solid #dbeafe;

    background: #eff6ff;
}

.query-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 16px;
}

.query-detail-label {
    display: inline-flex;

    margin-bottom: 6px;
    padding: 3px 8px;

    border-radius: 999px;

    background: #dbeafe;
    color: #1e40af;

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.query-detail-header h3 {
    margin: 0;

    font-size: 20px;
    color: #0f172a;
}

.query-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;

    margin-bottom: 14px;
}

.query-detail-stat {
    padding: 12px;

    border-radius: 12px;

    background: #ffffff;
    border: 1px solid #dbeafe;
}

.query-detail-stat span {
    display: block;

    margin-bottom: 4px;

    font-size: 12px;
    color: #64748b;
}

.query-detail-stat strong {
    font-size: 18px;
    color: #0f172a;
}

.query-detail-recommendation {
    padding: 12px;

    border-radius: 12px;

    background: #ffffff;
    border: 1px solid #dbeafe;

    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.query-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 14px;
}

.query-link-btn {
    border: none;
    background: transparent;

    padding: 0;

    color: #0784f9;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.query-link-btn:hover {
    text-decoration: underline;
}
.query-detail-row-full td {
    padding: 0 14px 14px 14px !important;
    background: #ffffff;
}

.query-detail-full {
    margin-top: 8px;
    padding: 16px;

    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.query-detail-full-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
}

.query-detail-full-header h3 {
    margin: 0 0 4px 0;

    font-size: 17px;
    color: #0f172a;
}

.query-detail-full-header p {
    margin: 0;

    color: #64748b;
    font-size: 12px;
}

.query-detail-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;

    margin-bottom: 12px;
}

.query-detail-full-card {
    padding: 11px 12px;

    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.query-detail-full-card span {
    display: block;
    margin-bottom: 4px;

    color: #64748b;
    font-size: 11px;
}

.query-detail-full-card strong {
    font-size: 17px;
    color: #0f172a;
}

.query-detail-full-note {
    padding: 11px 12px;

    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;

    font-size: 14px;
    line-height: 1.4;
    color: #334155;
}
.query-detail-full-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 12px;
}
.table-actions-header {
    text-align: center;
}
.feed-actions-compact {
	position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.section-description {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    max-width: 900px;
}

.facets-meta-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 14px;
    padding: 10px 14px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    color: #475569;
    font-size: 13px;
}

.facets-meta-card strong {
    color: #0f172a;
    font-weight: 700;
}

.facets-actions {
    margin-top: 24px;
}
.facets-table td:first-child {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #0f172a;
}

.facets-table td {
    vertical-align: middle;
}

.facets-table .status-badge {
    white-space: nowrap;
}
.facet-group-row td {
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-top: 18px solid #ffffff;
}

.facets-table tr:not(.facet-group-row):hover td {
    background: #f9fafb;
}

.facets-table td:first-child strong {
    font-weight: 700;
}
.facet-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 8px;
    padding: 2px 7px;

    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;

    font-size: 11px;
    font-weight: 800;
}
.facets-opportunity-card {
    display: none;
    margin-top: 20px;
	margin-bottom: 40px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.facets-opportunity-card h3 {
    margin: 0 0 8px;
}

.facets-opportunity-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
	font-size:	14px;
}
.facet-unused-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.facet-unused-list span {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;
    border-radius: 999px;

    background: #ffffff;
    border: 1px solid #e2e8f0;

    color: #334155;
    font-size: 12px;
    font-weight: 700;
}
.facet-visibility-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
}

.facet-visibility-toggle input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.facet-name-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;;
    gap: 2px;
}

.facet-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
	margin-top:	-10px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.settings-sub-card {
    margin-top: 34px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.settings-sub-card h3 {
    margin-top: 0;
}

.toast-undo-btn {
    border: 0;
    background: transparent;
    color: #fff055;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.toast-undo-btn:hover {
    text-decoration: underline;
}

.relevance-config-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
}

.relevance-slider-row {
    display: grid;
    grid-template-columns: 260px 1fr 70px;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.relevance-slider-row:last-child {
    border-bottom: none;
}

.relevance-slider-label {
    font-weight: 600;
    color: #111827;
}

.relevance-slider-value {
    font-weight: 700;
    text-align: right;
    color: #111827;
    white-space: nowrap;
    min-width: 55px;
}

.relevance-actions {
    margin-top: 22px;
    display: flex;
    gap: 10px;
}

.relevance-help-text {
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .relevance-slider-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .relevance-slider-value {
        text-align: left;
    }
}

.typo-tolerance-card {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.typo-tolerance-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.typo-profile-options {
    display: grid;
    gap: 12px;
}

.typo-profile-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    background: #ffffff;
}

.typo-profile-option strong {
    display: block;
    color: #111827;
}

.typo-profile-option span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
}

.typo-profile-preview {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
}

.typo-profile-preview h4 {
    margin: 0 0 12px;
	font-size: 16px !important;
}

.typo-profile-preview p {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.5;
	font-size: 14px;
}

.typo-example {
    margin-top: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
	font-size: 14px;
}

@media (max-width: 768px) {
    .typo-tolerance-grid {
        grid-template-columns: 1fr;
    }
}

.relevance-summary {
    margin-top: 18px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.relevance-summary h4 {
    margin: 0 0 12px;
}

.relevance-summary-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.relevance-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.relevance-summary-note {
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
.relevance-slider-description {
	display: none;
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}
.secondary-btn {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.secondary-btn:hover {
    background: #e2e8f0;
}

.merch-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
	margin-bottom: 40px;
}

.merch-action-card {
    text-align: left;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: 0.18s ease;
}

.merch-action-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.merch-action-card h3 {
    margin: 0 0 18px;
    font-size: 18px;
}

.merch-action-card p {
    margin: 0 0 10px;
    color: #475569;
}

.merch-action-card span {
    font-weight: 700;
    color: #111827;
}

@media (max-width: 900px) {
    .merch-action-grid {
        grid-template-columns: 1fr;
    }
}
.merch-builder {
    margin-top: 22px;
}

.merch-builder-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.merch-builder-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 0.9fr);
    gap: 20px;
}

.merch-form-grid {
    display: grid;
    gap: 16px;
}

.merch-form-row label {
    display: block;
    font-weight: 500;
    color: #111827;
    margin-bottom: 6px;
	font-size: 14px;
}

.merch-form-help {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.merch-preview-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
}

.merch-preview-search {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 10px 14px;
    color: #334155;
    margin-bottom: 14px;
}

.merch-preview-result {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .merch-builder-layout {
        grid-template-columns: 1fr;
    }
}
.merch-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.merch-choice-card {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    min-height: 42px;
}

.merch-choice-card strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.merch-choice-card span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 768px) {
    .merch-choice-grid {
        grid-template-columns: 1fr;
    }
}
.merch-step-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.merch-form-row {
    margin-bottom: 0px;
}

.merch-form-grid {
    display: grid;
    gap: 24px;
}

.merch-action-selected {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 500;
    color: #111827;
}

.merch-trigger-input {
    min-height: 46px;
}

.live-preview-results {
    border: 2px solid #dbeafe;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 8px 24px rgba(37, 99, 235, 0.08);
    margin-top: 20px;
    display: grid;
    gap: 12px;
}
.empty-state {
    background: transparent !important;
    font-size: 13px !important;
    padding: 5px !important;
	color: #64748b !important;
}

.design-editor-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    margin-top: 24px;
}

.design-tools-panel,
.design-preview-panel {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    padding: 20px;
}

.design-tools-panel label {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: #374151;
}

.search-dummy-box {
    max-width: 520px;
    display: grid;
    gap: 14px;
}

.search-dummy-box input {
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 14px;
}

.dummy-product-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    display: grid;
    gap: 4px;
}

.dummy-product-card span {
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 900px) {
    .design-editor-layout {
        grid-template-columns: 1fr;
    }
}

.preview-product-card {
    display: flex;
    gap: 12px;
    align-items: center;
	text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}
.preview-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.preview-product-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f4f6;
}
.preview-product-card[href] {
    cursor: pointer;
}
.preview-product-card[href]:hover {
    transform: translateY(-2px);
}

.preview-product-content {
    display: grid;
    gap: 3px;
}

.preview-product-content span,
.preview-product-content small {
    color: #6b7280;
}
.settings-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: start;
}

.settings-main-panel {
    min-width: 0;
}

.settings-preview-panel {
    position: sticky;
    top: 20px;
    align-self: start;
    border: 2px solid #dbeafe;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        #f8fbff 0%,
        #ffffff 100%
    );
    box-shadow:
        0 12px 32px rgba(37, 99, 235, 0.08);
    padding: 18px;
	margin-top: 20px;
}
.typo-tolerance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (max-width: 1100px) {
    .settings-preview-layout {
        grid-template-columns: 1fr;
    }

    .settings-preview-panel {
        position: static;
    }
}

.live-preview-query {
    width: 100%;
    height: 42px;
    border: 1px solid #d8dee9;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    background: #ffffff;
    color: #111827;
    box-sizing: border-box;
}

.live-preview-query:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ranking-typo-dock {
    margin-top: 20px;
}

#section_settings_ranking,
#section_settings_ranking > .card,
#section_settings_ranking .settings-preview-layout {
    overflow: visible !important;
}

#section_settings_ranking .settings-preview-panel {
    position: sticky !important;
    top: 20px !important;
    align-self: start !important;
    z-index: 5;
}

.live-preview-redirect {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    margin-bottom: 12px;
}
.live-preview-banner {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
    text-decoration: none;
    margin-bottom: 12px;
}

.live-preview-banner-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.live-preview-banner-content {
    padding: 12px;
}

.live-preview-banner {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
    text-decoration: none;
    margin-bottom: 12px;
}

.live-preview-banner:hover {
    border-color: #60a5fa;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
}

.live-preview-banner-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.live-preview-banner-content {
    padding: 12px 14px;
}

.live-preview-redirect {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 12px;
}

.live-preview-redirect:hover {
    background: #ffedd5;
}

.merch-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.merch-icon-btn {
    width: 40px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 8px;

    cursor: pointer;

    color: #ffffff;
    font-size: 14px;
    line-height: 1;

    transition: all .15s ease;
}

.merch-icon-btn.edit,
.merch-icon-btn.toggle {
    background: #0080ff;
}

.merch-icon-btn.delete {
    background: #d22222;
}

.merch-icon-btn:hover {
    transform: translateY(-1px);
    opacity: .9;
}

.merch-icon-btn:active {
    transform: translateY(0);
}
body.auth-pending #dashboardApp {
    visibility: hidden;
}

.admin-membership-details {
    margin-left: -10px;
    margin-right: -10px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    font-size: 14px;
    color: #334155;
}

.admin-membership-details strong {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-membership-details div {
    min-width: 0;
    overflow-wrap: anywhere;
	padding: 2px;
}

@media (max-width: 768px) {
    .admin-membership-details {
        grid-template-columns: 1fr;
    }
}

.feed-action-btn.icon-only {
    width: 44px;
    min-width: 44px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--admin-icon-bg, #64748b) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.admin-icon-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.admin-icon-btn:hover {
    filter: brightness(0.92);
}

.admin-role-select {
    width: 100%;
    min-width: 120px;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    font-size: 14px;
}

.admin-create-user-card input,
.admin-create-user-card select {
    width: 100%;
    box-sizing: border-box;
}
#adminTenantsTable th,
#section_admin th[onclick] {
    cursor: pointer;
    user-select: none;
}
#section_admin th[onclick] {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

#section_admin th span {
    display: inline-block;
    margin-left: 4px;
    width: 12px;
}

.header {
    position: relative;
}

.dashboard-tenant-switcher {
    position: absolute;
	top: 65%;
    left: 60%;
    transform: translateX(-50%);
    min-width: 420px;
	text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.dashboard-tenant-select {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 16px;
    border: 1px solid #d7dce5;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.dashboard-tenant-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-user-box {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-user-label {
    font-size: 11px;
    opacity: 0.65;
    margin-bottom: 6px;
}

#dashboardUserEmail {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
    margin-bottom: 12px;
}

.sidebar-logout-btn {
    width: 100%;
    height: 28px;
	padding-top: 7px !important;
    border-radius: 10px;
	color: #fff;
    background: #dc2626;
}

.notice-box {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 16px;
}

.notice-box pre {
    background: #111827;
    color: #f9fafb;
    border-radius: 10px;
    padding: 14px;
    margin: 12px 0 0;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.status-badge.healthy {
    background: #dcfce7;
    color: #166534;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.critical {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.neutral {
    background: #f3f4f6;
    color: #374151;
}

#section_apiKeys .controls {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.plugin-preview-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    background: #ffffff;
}

.plugin-preview-image {
    height: 140px;
    border-radius: 14px;
    background: #f3f4f6;
    margin-bottom: 14px;
}

.plugin-preview-content {
    display: grid;
    gap: 6px;
    font-size: 14px;
}

.plugin-preview-content span {
    color: #6b7280;
}

.plugin-preview-content b {
    font-size: 16px;
}


.design-layer-suite {
    color: #111827;
}

.design-layer-suite .suite-topbar,
.design-layer-suite .suite-tabs-row,
.design-layer-suite .suite-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.suite-title,
.suite-tabs,
.suite-preview-toolbar,
.suite-footer > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suite-title {
    font-size: 15px;
    letter-spacing: .04em;
}

.suite-project {
    color: #4b5563;
}

.suite-tab,
.preview-mode-btn,
.segmented-control button {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.suite-tab.active,
.preview-mode-btn.active,
.segmented-control button.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.suite-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.suite-config-panel,
.suite-preview-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.suite-config-panel {
    max-height: 760px;
    overflow: auto;
}

.suite-preview-panel {
    overflow: hidden;
}

.suite-tab-panel {
    display: none;
}

.suite-tab-panel.active {
    display: block;
}

.suite-block {
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.suite-block:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.suite-block h3 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
}

.suite-block label {
    display: block;
    margin: 12px 0 6px;
    font-size: 13px;
    font-weight: 650;
    color: #374151;
}

.suite-block input,
.suite-block select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 11px;
    font-size: 14px;
    background: #ffffff;
}

.suite-subsection-title {
    margin: 18px 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--suite-text-secondary);
}
.suite-block > .suite-subsection-title:first-of-type {
    margin-top: 0;
}

.suite-block select {
	min-height: 30px !important;
}

.suite-block input[type="checkbox"],
.suite-block input[type="radio"] {
    width: auto;
    min-height: auto;
    margin-right: 8px;
}

.segmented-control {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.suite-preview-frame {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    margin: 0 auto;
    padding: 18px;
    min-height: 640px;
    transition: max-width .2s ease;
	overflow: auto;
}

.suite-preview-frame.preview-desktop {
    max-width: 100%;
	max-height: 720px;
    overflow: auto;
}

.suite-preview-frame.preview-tablet {
    width: 768px;
    max-width: 100%;
    max-height: 720px;
    overflow: auto;
}

.suite-preview-frame.preview-mobile {
    width: 390px;
    max-width: 100%;
    height: 720px;
    max-height: 720px;
    overflow: auto;
}

.suite-shop-simulator {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    min-height: 600px;
    color: var(--suite-text-color);
}

.suite-shop-simulator.dark {
    background: #111827;
    color: #f9fafb;
}

.suite-searchbar {
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    padding: 11px 14px;
    margin-bottom: 16px;
    color: #111827;
}

.suite-simulator-body {
    display: grid;
    gap: 18px;
}





.suite-simulator-body.facet-left {
    grid-template-columns: 230px minmax(0, 1fr);
}

.suite-simulator-body.facet-top {
    grid-template-columns: 1fr;
}

.suite-preview-facets {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    background: #f9fafb;
    font-size: 13px;
}

.suite-simulator-body.facet-top .suite-preview-facets {
    display: flex;
    gap: 18px;
    overflow-x: auto;
}

.suite-preview-facet-group {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.suite-preview-facet-group span {
    font-weight: 800;
}

.suite-size-row {
    display: flex;
    gap: 6px;
}

.suite-size-row button {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    padding: 5px 9px;
}

.suite-size-row button.active {
    background: #111827;
    color: #ffffff;
}

.suite-price-row {
    display: flex;
    gap: 6px;
}

.suite-price-row input {
    width: 80px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 8px;
}

.suite-results-meta {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 12px;
}

.suite-result-grid.grid {
    display: grid;
    grid-template-columns: repeat(var(--suite-columns), minmax(0, 1fr));
    gap: 14px;
}

.suite-result-grid.list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.suite-result-grid.list .suite-product-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: stretch;
}

.suite-product-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: var(--suite-card-radius);
    background: #ffffff;
    overflow: hidden;
    min-width: 0;
}

.suite-product-image {
    height: 130px;
    display: grid;
    place-items: center;
    background: #f3f4f6;
    font-size: 32px;
}

.suite-product-info {
    display: grid;
    gap: 6px;
    padding: 12px;
    font-size: 13px;
}

.suite-product-info strong {
    font-size: 14px;
}

.suite-product-info span,
.suite-product-info small {
    color: #6b7280;
}

.suite-product-info b {
    font-size: 15px;
}

.suite-product-info del {
    color: #9ca3af;
    font-size: 12px;
    margin-left: 5px;
}

.suite-product-info button {
    border: 0;
    border-radius: 10px;
    background: var(--suite-button-color);
    color: #ffffff;
    padding: 9px 10px;
    font-weight: 800;
    cursor: pointer;
}

.suite-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--suite-button-color);
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
}

.suite-shop-simulator.dark .suite-product-card,
.suite-shop-simulator.dark .suite-preview-facets,
.suite-shop-simulator.dark .suite-searchbar {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.suite-shop-simulator.dark .suite-product-image {
    background: #374151;
}

@media (max-width: 1100px) {
    .suite-layout {
        grid-template-columns: 1fr;
    }

    .suite-config-panel {
        max-height: none;
    }
}

@media (max-width: 760px) {
    .design-layer-suite .suite-topbar,
    .design-layer-suite .suite-tabs-row,
    .design-layer-suite .suite-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .suite-simulator-body.facet-left {
        grid-template-columns: 1fr;
    }

	.suite-preview-frame.preview-mobile .suite-result-grid.grid {
		grid-template-columns: repeat(var(--suite-columns), minmax(0, 1fr));
	}
}
.suite-preview-frame.preview-desktop .suite-result-grid.grid {
    grid-template-columns: repeat(var(--suite-columns), minmax(0, 1fr));
}

.suite-preview-frame.preview-tablet .suite-result-grid.grid {
    grid-template-columns: repeat(var(--suite-columns), minmax(0, 1fr));
}

.suite-preview-frame.preview-mobile .suite-result-grid.grid {
    grid-template-columns: repeat(var(--suite-columns), minmax(0, 1fr));
}

.feed-create-card {
    margin-top: 20px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.feed-create-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.feed-create-header h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.feed-create-header p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #64748b;
}

.feed-create-controls {
    align-items: flex-start;
}

.feed-create-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) 170px minmax(260px, 1.6fr) 170px auto;
    grid-template-areas:
        "name source input format button"
        "status status status status status";
    gap: 12px;
    width: 100%;
    align-items: center;
}

#newFeedName {
    grid-area: name;
}

#newFeedSource {
    grid-area: source;
}

#newFeedUrl,
#newFeedUploadBox {
    grid-area: input;
}

#newFeedFormat {
    grid-area: format;
}

#createFeedButton {
    grid-area: button;
}

#newFeedUploadStatus {
    grid-area: status;
}

.feed-create-grid input,
.feed-create-grid select {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
}

.feed-create-grid input:focus,
.feed-create-grid select:focus {
    outline: none !important;
    border-color: #0080ff !important;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.12) !important;
}

.feed-upload-box {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;

    min-height: 44px;
    padding: 10px 14px;

    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.feed-upload-box:hover,
.feed-upload-box.drag-over {
    border-color: #0080ff;
    background: #f8fbff;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.08);
}

.feed-upload-box input[type="file"] {
    display: none !important;
}

.feed-upload-title {
    grid-column: 1;
    grid-row: 1;

    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.feed-upload-hint {
    grid-column: 1;
    grid-row: 2;

    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.feed-upload-file {
    grid-column: 2;
    grid-row: 1 / span 2;

    align-self: center;
    justify-self: end;

    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13px;
    font-weight: 600;
    color: #0080ff;
}

.feed-create-btn {
    background: #0080ff !important;
    color: #ffffff !important;
}

@media (max-width: 1100px) {
	.feed-create-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"name source"
			"input input"
			"format button"
			"status status";
	}
}

@media (max-width: 700px) {
	.feed-create-grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"name"
			"source"
			"input"
			"format"
			"button"
			"status";
	}
}
.feed-name-cell {
    display: grid;
    gap: 7px;
    min-width: 260px;
}

.feed-table-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 10px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.feed-table-input:focus {
    outline: none !important;
    border-color: #0080ff !important;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.12) !important;
}

.feed-source-line {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 360px;
    font-size: 12px;
    color: #64748b;
}

.feed-source-type {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 800;
}

.feed-source-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.status-badge.unknown {
    background: #f3f4f6;
    color: #374151;
}
#newFeedUploadStatus {
    grid-column: 1 / -1;
    min-height: 18px;
    font-size: 13px;
    color: #64748b;
}

#newFeedUploadStatus.success {
    color: #166534;
}

#newFeedUploadStatus.error {
    color: #991b1b;
}
#createFeedButton:disabled {
    opacity: 0.65;
    cursor: not-allowed !important;
    transform: none !important;
}
button#createFeedButton {
	background: #0080ff;
    color: #ffffff;
}

#merchProductSearchResults.autocomplete-results {
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

#merchProductSearchResults .autocomplete-item {
    width: 100%;
    display: block;
	margin-bottom: 10px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    color: #111827;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}

#merchProductSearchResults .autocomplete-item:hover {
    background: #f8fafc;
    color: #111827;
}

#merchProductSearchResults .autocomplete-item strong,
#merchProductSearchResults .autocomplete-item span,
#merchProductSearchResults .autocomplete-item small {
    display: block;
    color: inherit;
}

#merchProductSearchResults .autocomplete-item small {
    color: #64748b;
}
.merch-target-row {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 16px;
    align-items: center;
}

#merchProductSearchResults {
    margin-top: 8px;
    width: 100%;
}
.merch-form-help1 {
    margin-top: -10px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}
.merch-product-table-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 42px;
}

.merch-product-table-cell strong {
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.merch-product-table-cell span {
    margin-top: 3px;
    font-size: 12px;
    color: #64748b;
}
.merch-product-cell{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:44px;
}

.merch-product-name{
    font-weight:400;
    line-height:1.2;
}

.merch-product-sku{
    margin-top:2px;
    font-size:12px;
    color:#6b7280;
}
.documentation-list {
    margin: 16px 0;
    padding-left: 20px;
}

.documentation-list li {
    margin: 10px 0;
    line-height: 1.6;
}
#section_apiKeys .integration-location-box {
    margin: 16px 0 20px;
}

#section_apiKeys .detail-grid strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted-color, #6b7280);
}

#section_apiKeys .detail-grid > div > div {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
}

#section_apiKeys .integration-location-box strong {
    display: block;
    margin-bottom: 6px;
}

#section_apiKeys .integration-location-box div {
    font-family: monospace;
    word-break: break-word;
}
#apiKeySnippetValue {
    margin-top: 16px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--sf-border-color, #d8dee9);
    background: var(--sf-surface-2, #f8fafc);
    color: var(--sf-text-color, #1f2937);

    font-family: Consolas, Monaco, Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;

    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

#section_apiKeys .integration-system-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}

#section_apiKeys .integration-system-card {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 82px;

    padding: 8px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: var(--card-background);

    cursor: pointer;

    transition:
        border-color .15s,
        box-shadow .15s,
        transform .15s;
}

#section_apiKeys .integration-system-card:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

#section_apiKeys .integration-system-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px color-mix(
        in srgb,
        var(--primary-color) 18%,
        transparent
    );
}

#section_apiKeys .integration-system-card .integration-logo {
    width: auto;
    height: 56px;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

#section_apiKeys .integration-logo-website {
    height: 50px;
	transform: scale(1.2);
}

#section_apiKeys .integration-logo-woocommerce {
    height: 50px !important;
	transform: scale(1.3);
}

#section_apiKeys .integration-system-card span {
    display: none;
}

@media (max-width: 1200px) {
    #section_apiKeys .integration-system-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 680px) {
    #section_apiKeys .integration-system-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}
#section_apiKeys .integration-code-wrapper {
    position: relative;
    margin-top: 16px;
}

#section_apiKeys .integration-copy-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
	background: #0080ff;
    color: #ffffff;
}

#section_apiKeys #apiKeySnippetValue {
    margin-top: 0;
    padding: 20px;
    padding-bottom: 70px;
}

#section_apiKeys .integration-coming-soon {
    margin-top: 22px;
}

#section_apiKeys .integration-coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 8px;
}

#section_apiKeys .integration-system-card-disabled {
    min-height: 48px;
    padding: 8px 10px;
    flex-direction: column;
    gap: 2px;
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

#section_apiKeys .integration-system-card-disabled span {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

#section_apiKeys .integration-system-card-disabled small {
    font-size: 10px;
    font-weight: 400;
}

@media (max-width: 680px) {
    #section_apiKeys .integration-coming-soon-grid {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
    }
}
.integration-system-card {
    position: relative;
}

.integration-system-card::after {
    content: "✓";

    position: absolute;
    top: 6px;
    right: 6px;

    width: 18px;
    height: 18px;

    display: none;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #22c55e;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
}

.integration-system-card.active::after {
    display: flex;
}

#section_apiKeys .integration-health-card {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-background);
}

#section_apiKeys .integration-health-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

#section_apiKeys .integration-health-header h3 {
    margin: 0 0 6px;
}

#section_apiKeys .integration-health-header button {
    flex: 0 0 auto;
    background: #0080ff;
    color: #ffffff;
}

#section_apiKeys .integration-health-status {
    margin-top: 18px;
    font-weight: 600;
}

#section_apiKeys .integration-health-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

#section_apiKeys .integration-health-result > strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
}

#section_apiKeys .integration-health-result-success > strong {
    background: #22c55e;
    color: #ffffff;
}

#section_apiKeys .integration-health-result-warning > strong {
    background: #f59e0b;
    color: #ffffff;
}

#section_apiKeys .integration-health-result-error > strong {
    background: #ef4444;
    color: #ffffff;
}

@media (max-width: 780px) {
    #section_apiKeys .integration-health-results {
        grid-template-columns: 1fr;
    }
}

#section_apiKeys .integration-health-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

#section_apiKeys .integration-health-result-success {
    border-color: #22c55e;
}

#section_apiKeys .integration-health-result-warning {
    border-color: #f59e0b;
}

#section_apiKeys .integration-health-result-error {
    border-color: #ef4444;
}

#section_apiKeys .integration-selector-fallback {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

#section_apiKeys .integration-selector-fallback label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#section_apiKeys .integration-selector-fallback input {
    min-width: 280px;
    flex: 1;
}

@media (max-width: 680px) {
    #section_apiKeys .integration-health-header {
        flex-direction: column;
    }

    #section_apiKeys .integration-health-header button {
        width: 100%;
    }

    #section_apiKeys .integration-selector-fallback .controls {
        flex-direction: column;
        align-items: stretch;
    }

    #section_apiKeys .integration-selector-fallback input {
        min-width: 0;
        width: 100%;
    }
}
	
.integration-selector-fallback .controls {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	margin-bottom: 20px;
}

.integration-selector-fallback .controls input {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.integration-selector-state {
	display: block;
	width: 100%;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.integration-selector-fallback .section-description {
	display: block;
	width: 100%;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-secondary);
}

.integration-selector-state[data-state="detected"] {
	color: #16a34a;
}

.integration-selector-state[data-state="manual"] {
	color: #0080ff;
}

.integration-selector-state[data-state="missing"] {
	color: #6b7280;
}

#pluginAdvancedSelectors {
	margin-top: 16px;
}

#pluginAdvancedSelectors > label {
	display: block;
	margin-top: 18px;
	margin-bottom: 6px;
}

#pluginAdvancedSelectors > label:first-child {
	margin-top: 0;
}
#jtlSyncStatusSection {
    margin-top: 20px;
    margin-bottom: 20px;
}

#jtlSyncStatusSection > .card {
    padding: 20px;
    border: 1px solid #e2e8f0;
}

#jtlSyncStatusContent {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

#jtlSyncStatusContent .stat-card {
    min-width: 0;
    padding: 18px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.06);
}

#jtlSyncStatusContent .stat-label {
    margin-bottom: 10px;

    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

#jtlSyncStatusContent .stat-value {
    color: #16a34a;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.1;
}

#jtlSyncStatusContent .stat-hint {
    margin-top: 10px;

    color: #64748b;
    font-size: 13px;
    line-height: 1.45;

    overflow-wrap: anywhere;
}

@media (max-width: 1400px) {
    #jtlSyncStatusContent {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #jtlSyncStatusContent {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #jtlSyncStatusContent {
        grid-template-columns: 1fr;
    }

    #jtlSyncStatusSection .section-header {
        align-items: stretch;
        flex-direction: column;
    }

    #jtlSyncStatusSection .section-header button {
        width: 100%;
    }
}
#jtlSyncStatusContent .plugin-sync-progress {
    margin-top: 14px;
}

#jtlSyncStatusContent .plugin-sync-progress-track {
    width: 100%;
    height: 10px;

    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

#jtlSyncStatusContent .plugin-sync-progress-fill {
    width: 0;
    height: 100%;

    background: #2563eb;
    border-radius: inherit;

    transition: width 0.35s ease;
}

#jtlSyncStatusContent .plugin-sync-progress-text {
    margin-top: 8px;

    color: #475569;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
