:root {
    --uno-purple: #2CA01C;
    --uno-blue: #0077C5;
    --uno-purple-light: #3BBF2A;
    --bg-primary: #ffffff;
    --bg-secondary: #F0F1F2;
    --bg-tertiary: #E8E9EB;
    --text-primary: #393A3D;
    --text-secondary: #6B6C72;
    --text-muted: #8C8C8C;
    --border-color: #D4D7DC;
    --success: #2CA01C;
    --warning: #F5A623;
    --error: #D13B3B;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --hub-shell-bg: var(--bg-secondary);
    --hub-shell-bg-dashboard: var(--bg-primary);
    --hub-sidebar-bg: #ffffff;
    --hub-topbar-bg: #ffffff;
    --hub-border: #d4d7dc;
    --hub-text-strong: #0f172a;
    --hub-text-muted: #64748b;
    --hub-hover-bg: #f1f5f9;
    --hub-active-bg: #E8F5E3;
}

html {
    color-scheme: light dark;
}

:root[data-theme="light"] {
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --bg-primary: #0f1115;
    --bg-secondary: #161a22;
    --bg-tertiary: #1f2430;
    --text-primary: #e6e9ef;
    --text-secondary: #b4bcc8;
    --text-muted: #95a0af;
    --border-color: #2b3342;

    --hub-shell-bg: #11151c;
    --hub-shell-bg-dashboard: #0f1115;
    --hub-sidebar-bg: #121722;
    --hub-topbar-bg: #121722;
    --hub-border: #2b3342;
    --hub-text-strong: #e6e9ef;
    --hub-text-muted: #b4bcc8;
    --hub-hover-bg: #1c2533;
    --hub-active-bg: rgba(44, 160, 28, 0.22);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.4);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.45);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg-primary: #0f1115;
        --bg-secondary: #161a22;
        --bg-tertiary: #1f2430;
        --text-primary: #e6e9ef;
        --text-secondary: #b4bcc8;
        --text-muted: #95a0af;
        --border-color: #2b3342;

        --hub-shell-bg: #11151c;
        --hub-shell-bg-dashboard: #0f1115;
        --hub-sidebar-bg: #121722;
        --hub-topbar-bg: #121722;
        --hub-border: #2b3342;
        --hub-text-strong: #e6e9ef;
        --hub-text-muted: #b4bcc8;
        --hub-hover-bg: #1c2533;
        --hub-active-bg: rgba(44, 160, 28, 0.22);

        --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
        --shadow-md: 0 2px 4px rgba(0,0,0,0.4);
        --shadow-lg: 0 4px 12px rgba(0,0,0,0.45);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    width: 75vw;
    max-width: 75vw;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: #ffffff;
    color: var(--text-primary);
    padding: 24px 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

body.dashboard-page header {
    background: #ffffff;
    color: var(--text-primary);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

body.dashboard-page header h1 {
    color: #0f172a;
}

body.dashboard-page .header-content {
    align-items: flex-start;
}

body.dashboard-page .breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: #94a3b8;
    letter-spacing: 0.02em;
    text-transform: none;
}

body.dashboard-page .breadcrumb .sep {
    margin: 0 0.25rem;
    color: #cbd5e1;
}

body.dashboard-page .breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

body.dashboard-page .breadcrumb a:hover {
    color: #334155;
    text-decoration: underline;
}

body.dashboard-page .dashboard-subtitle {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.875rem;
}

body.dashboard-page .stakeholder-context-indicator {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

body.dashboard-page .stakeholder-context-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 9999px;
    padding: 0.3rem 0.65rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

body.dashboard-page .stakeholder-context-chip--date {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

body.dashboard-page .stakeholder-context-chip--included {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

body.dashboard-page .stakeholder-context-chip--partial {
    border-color: #fde68a;
    background: #fefce8;
    color: #854d0e;
}

body.dashboard-page .stakeholder-context-chip--none {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

body.dashboard-page .stakeholder-context-chip--not-applicable,
body.dashboard-page .stakeholder-context-chip--report-dependent {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #475569;
}

body.dashboard-page .stakeholder-context-note {
    font-size: 0.75rem;
    color: #64748b;
}

body.dashboard-page .user-info {
    color: #475569;
    margin-left: auto;
    white-space: nowrap;
}

body.dashboard-page .user-info a {
    color: #1e3a8a;
    background: #E8F5E3;
    border: 1px solid #dbeafe;
}

body.dashboard-page .user-info a:hover {
    background: #dbeafe;
}

body.dashboard-page .back-link {
    color: #334155;
}

body.dashboard-page .back-link:hover {
    color: #0f172a;
}

body.dashboard-page .btn-toggle-queries {
    display: inline-block;
    padding: 8px 14px;
    background: #E8F5E3;
    color: #1e3a8a;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
}

body.dashboard-page .btn-toggle-queries:hover {
    background: #dbeafe;
}

body.dashboard-page .timeframe-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dashboard-page .timeframe-selector label {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
}

body.dashboard-page .timeframe-selector select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
}

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

header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.time-frame-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-frame-selector label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.time-frame-dropdown {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23605e5c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    min-width: 150px;
}

.time-frame-dropdown:hover {
    background: white;
    border-color: var(--border-color);
}

.time-frame-dropdown:focus {
    outline: none;
    border-color: #0077C5;
    box-shadow: 0 0 0 2px rgba(0, 119, 197, 0.12);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    margin-left: auto;
    white-space: nowrap;
}

.user-info a {
    color: #0077C5;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(0, 119, 197, 0.08);
    transition: background 0.2s;
}

.user-info a:hover {
    background: rgba(0, 119, 197, 0.14);
}

.btn-small {
    display: inline-block;
    padding: 6px 12px;
    background: #0077C5;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-small:hover {
    background: #005A9E;
}

/* Auth Section */
.auth-section {
    padding: 40px 20px;
}

.loading-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* Intro Section */
.intro-section {
    margin-bottom: 32px;
}

.intro-section h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.intro-section p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.category-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--uno-purple), var(--uno-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #0077C5;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.query-count {
    display: inline-block;
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--uno-purple);
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--uno-purple);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--uno-blue);
    transform: scale(1.02);
}

/* Query Page */
.back-link {
    display: inline-block;
    color: #0077C5;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #005A9E;
}

.query-info {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.query-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.category-badge {
    display: inline-block;
    background: var(--uno-purple);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.query-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.primary-btn {
    background: var(--uno-purple);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.primary-btn:hover {
    background: var(--uno-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.secondary-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: var(--border-color);
}

/* Query Details */
.query-details {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.query-details h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.kql-code {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Results Section */
.results-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

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

.results-header h3 {
    font-size: 18px;
    color: var(--text-primary);
}

.execution-info {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.execution-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Chart Container */
.chart-container {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    min-height: 400px;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.table-wrapper {
    min-width: 100%;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.result-table th {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.result-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.result-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Error Container */
.error-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--error);
}

.error-message {
    text-align: center;
    padding: 24px;
}

.error-message h3 {
    color: var(--error);
    font-size: 20px;
    margin-bottom: 12px;
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Loading States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--uno-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.loading-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* Footer */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: 48px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

footer a {
    color: var(--uno-purple);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    header h1 {
        font-size: 22px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .query-header {
        flex-direction: column;
    }

    .primary-btn {
        width: 100%;
        justify-content: center;
    }

    .chart-container {
        min-height: 300px;
    }

    .result-table {
        font-size: 12px;
    }

    .result-table th,
    .result-table td {
        padding: 8px 12px;
    }

    .queries-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }

    .category-icon {
        font-size: 36px;
    }

    .category-card {
        padding: 20px;
    }

    .query-info,
    .query-details,
    .results-section {
        padding: 20px;
    }
}
/* Query List Page Styles */
.category-info {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.category-description {
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.tab-button.active {
    color: var(--uno-purple);
    border-bottom-color: var(--uno-purple);
}

.tab-content {
    display: none;
}

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

/* Filter Bar */
.filter-bar {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.filter-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-select:hover {
    border-color: var(--uno-purple-light);
}

.filter-select:focus {
    outline: none;
    border-color: var(--uno-purple);
    box-shadow: 0 0 0 3px rgba(122, 60, 227, 0.1);
}

.filter-info {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}


/* Documentation Content */
.documentation-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    min-height: 400px;
}

.markdown-body {
    color: var(--text-primary);
    line-height: 1.7;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

.markdown-body h1 {
    font-size: 32px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.markdown-body h2 {
    font-size: 26px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.markdown-body h3 {
    font-size: 22px;
}

.markdown-body h4 {
    font-size: 18px;
}

.markdown-body p {
    margin-bottom: 16px;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 16px;
    padding-left: 32px;
}

.markdown-body li {
    margin-bottom: 8px;
}

.markdown-body code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
}

.markdown-body pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.markdown-body pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.markdown-body blockquote {
    border-left: 4px solid var(--uno-purple);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.markdown-body table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 16px;
}

.markdown-body table th,
.markdown-body table td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

.markdown-body table th {
    background: var(--bg-tertiary);
    font-weight: 600;
}

.markdown-body table tr:nth-child(even) {
    background: var(--bg-secondary);
}

.catalog-filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) minmax(200px, 1fr) auto;
    gap: 12px;
    align-items: end;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
}

.catalog-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.catalog-filter-input,
.catalog-filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
}

.catalog-filter-input:focus,
.catalog-filter-select:focus {
    outline: none;
    border-color: var(--uno-purple);
    box-shadow: 0 0 0 3px rgba(122, 60, 227, 0.1);
}

.catalog-filter-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    padding-bottom: 8px;
}

.catalog-copy-btn {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--uno-purple);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-copy-btn:hover {
    border-color: var(--uno-purple);
    background: rgba(122, 60, 227, 0.08);
}

@media (max-width: 768px) {
    .catalog-filter-bar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .catalog-filter-count {
        padding-bottom: 0;
    }
}

.markdown-body a {
    color: var(--uno-purple);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.markdown-body hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 24px 0;
}

.markdown-raw {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.queries-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.query-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0; /* Prevents overflow from content */
}

.query-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.query-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
    border-top: 3px solid #a78bfa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    margin-bottom: 4px;
}

.query-group-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.query-group-count {
    font-size: 14px;
    padding: 4px 12px;
    background: #E8F5E3;
    color: #4338ca;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-sm);
}

.query-card {
    position: relative;
    --tile-outline-color: #60a5fa;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    border-top: 3px solid #60a5fa;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.query-card-highlight {
    outline: 2px solid var(--uno-purple);
    box-shadow: 0 0 0 4px rgba(122, 60, 227, 0.2);
    animation: query-card-highlight-pulse 0.7s ease-in-out 2;
    transition: box-shadow 0.2s ease;
}

.query-card-linked-target {
    position: relative;
    --tile-outline-color: var(--uno-purple);
    border-color: var(--uno-purple);
    box-shadow: 0 0 0 3px rgba(122, 60, 227, 0.14), 0 10px 22px rgba(15, 23, 42, 0.12);
}

.query-card-linked-target.query-card-highlight {
    box-shadow: 0 0 0 4px rgba(122, 60, 227, 0.2), 0 0 0 3px rgba(122, 60, 227, 0.14), 0 10px 22px rgba(15, 23, 42, 0.12);
}

.query-card-badge {
    position: absolute;
    top: -12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: var(--tile-outline-color);
    border: 1px solid var(--tile-outline-color);
}

.linked-query-badge {
    display: none;
    right: 16px;
}

.dashboard-query-badge {
    display: inline-flex;
    right: 16px;
    text-decoration: none;
    cursor: pointer;
}

.dashboard-query-badge:hover {
    text-decoration: none;
}

.query-card-eye-toggle {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.query-card-eye-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.query-card-eye-toggle:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

body.query-catalog-page .query-card {
    transition: opacity 0.8s ease;
}

body.query-catalog-page .query-card.query-card-hiding {
    opacity: 0;
    pointer-events: none;
}

body.query-catalog-page .query-card.query-card-hidden {
    border-style: dashed;
    opacity: 0.9;
}

.dashboard-query-chooser {
    position: fixed;
    z-index: 1200;
    min-width: 200px;
    max-width: min(320px, calc(100vw - 16px));
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.dashboard-query-chooser::before,
.dashboard-query-chooser::after {
    content: '';
    position: absolute;
    left: var(--chooser-arrow-offset, calc(100% - 22px));
    transform: translateX(-50%);
    width: 0;
    height: 0;
    pointer-events: none;
}

.dashboard-query-chooser::before {
    top: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--border-color);
}

.dashboard-query-chooser::after {
    top: -7px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--bg-primary);
}

.dashboard-query-chooser[data-placement="top"] {
    transform: translateY(4px);
}

.dashboard-query-chooser[data-placement="top"]::before {
    top: auto;
    bottom: -8px;
    border-bottom: none;
    border-top: 8px solid var(--border-color);
}

.dashboard-query-chooser[data-placement="top"]::after {
    top: auto;
    bottom: -7px;
    border-bottom: none;
    border-top: 7px solid var(--bg-primary);
}

.dashboard-query-chooser.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.query-run-modal-open {
    overflow: hidden;
}

.query-run-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.query-run-modal-overlay[hidden] {
    display: none !important;
}

.query-run-modal {
    width: min(1120px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 16px 18px 18px;
}

.query-run-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.query-run-modal-header h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.query-run-modal-close {
    appearance: none;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
}

.query-run-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.query-run-modal-kql {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.8rem;
    line-height: 1.45;
    overflow: auto;
}

.query-run-modal-results .chart-container {
    margin-bottom: 16px;
}

@media (max-width: 720px) {
    .query-run-modal {
        padding: 14px;
    }

    .query-run-modal-actions {
        flex-wrap: wrap;
    }
}

.dashboard-query-chooser-option {
    width: 100%;
    display: block;
    padding: 8px 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.dashboard-query-chooser-option:hover {
    background: var(--bg-secondary);
}

.dashboard-query-chooser-option:focus-visible {
    outline: 2px solid var(--uno-purple);
    outline-offset: 1px;
}

.query-card-linked-target .linked-query-badge {
    display: inline-flex;
}

@keyframes query-card-highlight-pulse {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1px);
    }
    100% {
        transform: translateY(0);
    }
}

.query-card:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.query-card-run-trigger {
    cursor: pointer;
}

.query-card-run-trigger:focus-visible {
    outline: 2px solid var(--uno-purple);
    outline-offset: 2px;
}

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

.query-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}

.run-query-btn {
    padding: 8px 16px;
    background: var(--uno-purple);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.run-query-btn:hover:not(:disabled) {
    background: var(--uno-purple-light);
}

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

.query-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-left: 3px solid var(--uno-purple);
    border-radius: 4px;
}

.query-description .desc-label {
    color: var(--uno-purple);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 8px;
}

.query-description .desc-label:first-child {
    margin-top: 0;
}

.query-description .desc-bullet {
    color: var(--uno-purple);
    font-weight: bold;
    margin-right: 4px;
}

.query-details {
    margin-top: 16px;
}

.query-details summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--uno-purple);
    padding: 8px 0;
    list-style: none;
    user-select: none;
}

.query-details summary::-webkit-details-marker {
    display: none;
}

.query-details summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s;
}

.query-details[open] summary::before {
    transform: rotate(90deg);
}

.query-details .kql-code {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    color: var(--text-primary);
}

/* Query Catalog layout refresh (scoped) */

body.query-catalog-page #category-tabs.tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    box-shadow: none;
    border-bottom: 0;
    margin-bottom: 24px;
    padding: 0;
}

body.query-catalog-page #category-tabs .tab-button {
    border: 1px solid var(--hub-border);
    border-radius: 999px;
    padding: 9px 14px;
    margin-bottom: 0;
    background: var(--bg-primary);
    font-size: 0.84rem;
    line-height: 1.2;
}

body.query-catalog-page #category-tabs .tab-button:hover {
    background: var(--hub-hover-bg);
    border-color: var(--uno-blue);
}

body.query-catalog-page #category-tabs .tab-button.active {
    border-color: var(--uno-blue);
    background: var(--hub-active-bg);
    color: var(--hub-text-strong);
}

body.query-catalog-page .queries-list {
    gap: 16px;
}

body.query-catalog-page .query-group {
    gap: 12px;
}

body.query-catalog-page .query-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    align-items: stretch;
}

body.query-catalog-page .query-card {
    --tile-outline-color: var(--category-accent, #60a5fa);
    display: flex;
    flex-direction: column;
    border-top-width: 3px;
    border-top-color: var(--category-accent, var(--hub-border));
    padding: 18px;
    box-shadow: var(--shadow-sm);
    background: var(--bg-primary);
    min-height: 176px;
}

body.query-catalog-page .query-card:hover {
    border-top-color: var(--category-accent, var(--hub-border));
}

body.query-catalog-page .query-card-header {
    margin-bottom: 8px;
}

body.query-catalog-page .query-card-header h3 {
    font-size: 1rem;
    line-height: 1.35;
}

body.query-catalog-page .query-description {
    margin-bottom: 10px;
    padding: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    background: transparent;
    border: 0;
    border-left: 0;
    border-radius: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
    padding-right: 4px;
}

body.query-catalog-page .query-chart-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 0;
    justify-content: flex-end;
}

body.query-catalog-page .query-card-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

body.query-catalog-page .query-card-footer-left {
    min-width: 0;
}

body.query-catalog-page .chart-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 600;
    border: 1px solid transparent;
}

body.query-catalog-page .chart-type-used {
    color: #4338ca;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
}

body.query-catalog-page .chart-type-recommended {
    color: #065f46;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

body.query-catalog-page .query-details {
    margin-top: auto;
}

body.query-catalog-page .query-results {
    margin-top: 14px;
}

@media (max-width: 980px) {
    body.query-catalog-page #refresh-data {
        width: 100%;
    }

    body.query-catalog-page .query-card {
        min-height: 166px;
    }
}

.query-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--bg-tertiary);
}

.query-results .results-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.query-results .results-loading .loading-spinner {
    width: 36px;
    height: 36px;
    border-width: 3px;
}

.query-results .execution-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.query-results .execution-info span {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.query-results .chart-container {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.query-results .chart-container-hybrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    align-items: stretch;
}

.query-results .hybrid-chart-main {
    min-height: 260px;
}

.query-results .hybrid-chart-side {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    padding: 10px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.query-results .hybrid-chart-side-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.query-results .hybrid-sparkline-canvas {
    width: 100%;
    height: 96px;
}

.query-results .hybrid-chart-side-note {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.query-results .table-container {
    overflow-x: auto;
}

.query-results .error-message {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--error);
    border-radius: var(--radius-md);
    text-align: left;
}

.query-results .error-message p {
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .query-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .query-results .chart-container-hybrid {
        grid-template-columns: 1fr;
    }

    .run-query-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced Query Dashboard Styles - Inspired by HotDesign Dashboard */

/* Improved query group headers with gradient and depth */
.query-group {
    margin-bottom: 48px;
    scroll-margin-top: 160px;
}

.query-group-header {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.query-group-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.query-group-header h2,
.query-group-count {
    position: relative;
    z-index: 1;
}

.query-group-count {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

/* Enhanced query cards with hover effects */
.query-card {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.query-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--uno-purple);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.query-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--uno-purple);
}

.query-card:hover::before {
    opacity: 1;
}

/* Enhanced KQL code blocks */
.kql-code {
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.kql-code::before {
    content: 'KQL';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(122, 60, 227, 0.3);
    color: #d4d4d4;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Enhanced category info section */
.category-info {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #60a5fa;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

/* Enhanced tabs */
.tabs {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    padding: 0 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tab-button {
    position: relative;
}

.tab-button.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--uno-purple);
}

.filter-bar {
    border-radius: 12px;
    border-top: 3px solid #cbd5e1;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.query-card::before {
    display: none;
}

/* Info boxes for documentation */
.info-box {
    background-color: rgba(122, 60, 227, 0.05);
    border-left: 4px solid var(--uno-purple);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: var(--radius-sm);
}

.warning-box {
    background-color: rgba(255, 193, 7, 0.05);
    border-left: 4px solid var(--warning);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: var(--radius-sm);
}

.success-box {
    background-color: rgba(40, 167, 69, 0.05);
    border-left: 4px solid var(--success);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: var(--radius-sm);
}

/* Enhanced badges */
.chart-type-badge {
    background: rgba(122, 60, 227, 0.1);
    color: var(--uno-purple);
    border: 1px solid rgba(122, 60, 227, 0.2);
    font-weight: 600;
    transition: all 0.2s;
}

.query-card:hover .chart-type-badge {
    background: rgba(122, 60, 227, 0.15);
    border-color: rgba(122, 60, 227, 0.3);
}

/* Copy button for code blocks */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 40px;
    background: var(--uno-purple);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    opacity: 0.8;
    z-index: 10;
}

.copy-btn:hover {
    opacity: 1;
    background: var(--uno-blue);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
    background: var(--success);
}

/* Sticky header improvements */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Animation for loading states */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading-spinner::after {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(122, 60, 227, 0.2), 
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Chart container improvements */
canvas {
    max-height: 400px;
    margin: 20px 0;
}

/* Enhanced metric displays */
.metric {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.metric-value {
    font-weight: 600;
    color: var(--uno-purple);
    font-size: 16px;
}

/* Final catalog alignment overrides (keep scoped to catalog page) */
body.query-catalog-page .query-group {
    margin-bottom: 0;
    scroll-margin-top: 120px;
}

body.query-catalog-page .query-card {
    cursor: default;
    border-top-color: var(--category-accent, var(--hub-border));
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.query-catalog-page .query-card:hover {
    --tile-outline-color: var(--category-accent, #60a5fa);
    transform: translateY(-1px);
    border-color: var(--category-accent, var(--uno-blue));
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

body.query-catalog-page .query-card::before,
body.query-catalog-page .kql-code::before,
body.query-catalog-page .tab-button.active::before {
    display: none;
}

body.query-catalog-page .query-card-header {
    align-items: center;
}

body.query-catalog-page .run-query-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
}

body.query-catalog-page .query-details summary {
    font-size: 0.83rem;
}

body.query-catalog-page .query-details .kql-code {
    font-size: 12px;
    line-height: 1.45;
    border-radius: 8px;
}

body.query-catalog-page .query-results {
    border-top: 1px solid var(--hub-border);
    padding-top: 14px;
}

@media (max-width: 1200px) {
    body.query-catalog-page .query-cards-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 700px) {
    body.query-catalog-page .query-cards-grid {
        grid-template-columns: 1fr;
    }

    body.query-catalog-page .query-card {
        padding: 14px;
    }

    body.query-catalog-page #category-tabs .tab-button {
        padding: 8px 11px;
        font-size: 0.8rem;
    }
}