:root {
    color-scheme: light;
    --theme-bg: #eef3f8;
    --theme-bg-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(238, 243, 248, 0.96) 48%, rgba(232, 239, 247, 1) 100%),
        radial-gradient(circle at 10% 18%, rgba(37, 99, 235, 0.10) 0%, transparent 36%),
        radial-gradient(circle at 88% 16%, rgba(14, 165, 233, 0.08) 0%, transparent 34%),
        radial-gradient(circle at 60% 100%, rgba(148, 163, 184, 0.08) 0%, transparent 38%);
    --theme-panel: rgba(255, 255, 255, 0.82);
    --theme-panel-solid: rgba(255, 255, 255, 0.96);
    --theme-panel-border: rgba(148, 163, 184, 0.24);
    --theme-text: #0f172a;
    --theme-muted: #64748b;
    --theme-primary: #1d4ed8;
    --theme-teal: #0f766e;
    --theme-gold: #ca8a04;
    --theme-success: #0f9d58;
    --theme-danger: #dc2626;
    --theme-header-bg:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82)),
        linear-gradient(180deg, rgba(37, 99, 235, 0.03), rgba(14, 165, 233, 0.02));
    --theme-header-border: rgba(59, 130, 246, 0.30);
    --theme-control-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.90));
    --theme-control-bg-hover: #ffffff;
    --theme-control-border: rgba(148, 163, 184, 0.24);
    --theme-control-text: #334155;
    --theme-shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.05);
    --theme-shadow-md: 0 14px 26px rgba(15, 23, 42, 0.06);
    --theme-shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.10);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --theme-bg: #07111c;
    --theme-bg-image:
        linear-gradient(180deg, rgba(4, 10, 18, 0.92) 0%, rgba(7, 17, 28, 0.98) 44%, rgba(10, 20, 34, 1) 100%),
        radial-gradient(circle at 12% 16%, rgba(37, 99, 235, 0.18) 0%, transparent 36%),
        radial-gradient(circle at 88% 14%, rgba(13, 148, 136, 0.14) 0%, transparent 34%),
        radial-gradient(circle at 58% 100%, rgba(30, 41, 59, 0.26) 0%, transparent 42%);
    --theme-panel: rgba(9, 19, 33, 0.84);
    --theme-panel-solid: rgba(10, 20, 34, 0.95);
    --theme-panel-border: rgba(96, 165, 250, 0.20);
    --theme-text: #e5eefb;
    --theme-muted: #93a4bd;
    --theme-primary: #7cb4ff;
    --theme-teal: #41c4b6;
    --theme-gold: #f6d56a;
    --theme-success: #34d399;
    --theme-danger: #f87171;
    --theme-header-bg:
        linear-gradient(135deg, rgba(8, 19, 33, 0.94), rgba(12, 25, 41, 0.86)),
        linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(13, 148, 136, 0.04));
    --theme-header-border: rgba(96, 165, 250, 0.28);
    --theme-control-bg: linear-gradient(180deg, rgba(12, 24, 40, 0.98), rgba(9, 18, 30, 0.92));
    --theme-control-bg-hover: linear-gradient(180deg, rgba(18, 35, 57, 0.98), rgba(12, 24, 40, 0.94));
    --theme-control-border: rgba(148, 163, 184, 0.26);
    --theme-control-text: #d9e8ff;
    --theme-shadow-sm: 0 12px 28px rgba(2, 6, 16, 0.34);
    --theme-shadow-md: 0 20px 42px rgba(2, 6, 16, 0.40);
    --theme-shadow-lg: 0 28px 56px rgba(2, 6, 16, 0.46);
}

body {
    background-color: var(--theme-bg) !important;
    background-image: var(--theme-bg-image) !important;
    color: var(--theme-text) !important;
}

body.forgeworks-legal-ready {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
}

.forgeworks-legal-footer {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 1100;
    max-width: calc(100vw - 24px);
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--theme-panel-border);
    background: var(--theme-header-bg);
    color: var(--theme-muted);
    box-shadow: var(--theme-shadow-sm);
    backdrop-filter: blur(16px);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
}

.tts-bug-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    object-fit: contain;
    vertical-align: -0.12em;
}

.card-icon .tts-bug-icon {
    width: 1.8rem;
    height: 1.8rem;
}

html[data-theme="light"] #simpleSortUI {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.92)) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    box-shadow:
        0 18px 34px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

html[data-theme="light"] .stat-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.92)) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    box-shadow:
        0 12px 24px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

html[data-theme="light"] .stat-card:hover {
    box-shadow:
        0 16px 28px rgba(15, 23, 42, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] .stat-card.active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 245, 249, 0.94)) !important;
    box-shadow:
        0 14px 26px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .stat-card.active-aws {
    border-color: #FFD700 !important;
    box-shadow:
        0 14px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 215, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .stat-card.active-azure {
    border-color: #FF9900 !important;
    box-shadow:
        0 14px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 153, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .stat-card.active-gcp {
    border-color: #4285F4 !important;
    box-shadow:
        0 14px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(66, 133, 244, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .stat-card.active-oci {
    border-color: #C74634 !important;
    box-shadow:
        0 14px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(199, 70, 52, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .stat-card.active-coreweave {
    border-color: #a87ffb !important;
    box-shadow:
        0 14px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(168, 127, 251, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .stat-card.active-vultr {
    border-color: #00bcd4 !important;
    box-shadow:
        0 14px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(0, 188, 212, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .stat-card.active-nebius {
    border-color: #14b8a6 !important;
    box-shadow:
        0 14px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(20, 184, 166, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .stat-card.active-lambda {
    border-color: #8b5cf6 !important;
    box-shadow:
        0 14px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(139, 92, 246, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .stat-card.active-crusoe {
    border-color: #16a34a !important;
    box-shadow:
        0 14px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(22, 163, 74, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .filter-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.92)) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    box-shadow:
        0 18px 34px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

html[data-theme="light"] .tray-title,
html[data-theme="light"] .results-window-title {
    color: #334155 !important;
}

html[data-theme="light"] .tray-subtitle,
html[data-theme="light"] .results-window-title span {
    color: #64748b !important;
}

html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] .select-box,
html[data-theme="light"] .collapse-btn,
html[data-theme="light"] .search-in-select input,
html[data-theme="light"] .group-toggle {
    background: var(--theme-control-bg) !important;
    border-color: var(--theme-control-border) !important;
    color: #334155 !important;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="light"] input[type="text"]::placeholder,
html[data-theme="light"] input[type="number"]::placeholder,
html[data-theme="light"] .search-in-select input::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="light"] .options-container {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 249, 253, 0.96)) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="light"] .option {
    color: #334155 !important;
    border-bottom-color: rgba(148, 163, 184, 0.12) !important;
}

html[data-theme="light"] .option:hover {
    background: rgba(219, 234, 254, 0.48) !important;
}

html[data-theme="light"] .option-title {
    color: #0f172a !important;
}

html[data-theme="light"] .option-meta {
    color: #64748b !important;
}

html[data-theme="light"] #complexSortUI .pricing-toggle {
    background: var(--theme-control-bg) !important;
    border-color: var(--theme-control-border) !important;
    color: #334155 !important;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

.theme-toggle {
    appearance: none;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-control-bg);
    color: var(--theme-control-text);
    font: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 138px;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: var(--theme-shadow-sm);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.42);
    background: var(--theme-control-bg-hover);
}

.theme-toggle:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.65);
    outline-offset: 2px;
}

.theme-toggle i {
    color: var(--theme-primary);
}

.auth-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.auth-dropdown {
    position: relative;
    display: inline-flex;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-control-bg);
    color: var(--theme-control-text);
    box-shadow: var(--theme-shadow-sm);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.auth-chip-btn {
    appearance: none;
    cursor: pointer;
    font: inherit;
}

.auth-chip-btn:hover {
    border-color: rgba(59, 130, 246, 0.42);
    background: var(--theme-control-bg-hover);
}

.auth-chip-btn:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.65);
    outline-offset: 2px;
}

.auth-chip i {
    color: var(--theme-primary);
}

.auth-caret {
    font-size: 0.72rem;
    color: var(--theme-muted);
}

.auth-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 188px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-control-bg);
    box-shadow: var(--theme-shadow-md);
    z-index: 40;
}

.auth-menu[hidden] {
    display: none;
}

.auth-menu-item {
    appearance: none;
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--theme-control-text);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.auth-menu-item:hover {
    background: rgba(59, 130, 246, 0.10);
}

.auth-menu-item--danger {
    color: var(--theme-danger);
}

.auth-dialog-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(10px);
    z-index: 1200;
}

.auth-dialog-backdrop.is-visible {
    display: flex;
}

.auth-dialog {
    width: min(100%, 360px);
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--theme-panel-border);
    background: var(--theme-header-bg);
    box-shadow: var(--theme-shadow-lg);
}

.auth-dialog h3 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.auth-dialog p {
    margin: 10px 0 0;
    color: var(--theme-muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.auth-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.auth-dialog-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-control-bg);
    color: var(--theme-control-text);
    box-shadow: var(--theme-shadow-sm);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.auth-dialog-btn:hover {
    border-color: rgba(59, 130, 246, 0.42);
    background: var(--theme-control-bg-hover);
}

.auth-dialog-btn--primary {
    background: linear-gradient(180deg, rgba(59,130,246,0.96), rgba(29,78,216,0.90));
    border-color: rgba(59,130,246,0.34);
    color: #eff6ff;
}

.auth-logout-form {
    margin: 0;
}

.auth-logout-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-control-bg);
    color: var(--theme-control-text);
    box-shadow: var(--theme-shadow-sm);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.auth-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-control-bg);
    color: var(--theme-control-text);
    box-shadow: var(--theme-shadow-sm);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.auth-logout-btn:hover {
    border-color: rgba(59, 130, 246, 0.42);
    background: var(--theme-control-bg-hover);
}

.auth-login-link:hover {
    border-color: rgba(59, 130, 246, 0.42);
    background: var(--theme-control-bg-hover);
}

html[data-theme="dark"] header,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .console-header,
html[data-theme="dark"] .app-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .hero-metric,
html[data-theme="dark"] .harvest-summary-card,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .instance-panel,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .data-modal-content,
html[data-theme="dark"] .raw-harvest-modal-card,
html[data-theme="dark"] .nav-dropdown {
    background: var(--theme-header-bg) !important;
    border-color: var(--theme-panel-border) !important;
    box-shadow: var(--theme-shadow-md) !important;
    color: var(--theme-text) !important;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .app-card,
html[data-theme="dark"] .hero-metric,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .instance-panel,
html[data-theme="dark"] .data-modal-content,
html[data-theme="dark"] .raw-harvest-modal-card {
    background: linear-gradient(180deg, rgba(10, 20, 34, 0.94), rgba(8, 17, 29, 0.90)) !important;
}

html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .nav-menu-btn,
html[data-theme="dark"] .hero-link,
html[data-theme="dark"] .console-link,
html[data-theme="dark"] .mode-btn,
html[data-theme="dark"] .card-launch-btn,
html[data-theme="dark"] button,
html[data-theme="dark"] select,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] textarea {
    background: var(--theme-control-bg);
    border-color: var(--theme-control-border) !important;
    color: var(--theme-control-text) !important;
    box-shadow: var(--theme-shadow-sm);
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-menu-btn:hover,
html[data-theme="dark"] .hero-link:hover,
html[data-theme="dark"] .console-link:hover,
html[data-theme="dark"] .mode-btn:hover,
html[data-theme="dark"] .card-launch-btn:hover,
html[data-theme="dark"] select:hover,
html[data-theme="dark"] input[type="text"]:hover,
html[data-theme="dark"] input[type="number"]:hover,
html[data-theme="dark"] input[type="search"]:hover {
    background: var(--theme-control-bg-hover) !important;
}

html[data-theme="dark"] .hero-link--primary,
html[data-theme="dark"] .card-launch-btn,
html[data-theme="dark"] .mode-btn.active {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.92), rgba(29, 78, 216, 0.88)) !important;
    color: #f8fbff !important;
    border-color: rgba(125, 211, 252, 0.28) !important;
}

html[data-theme="dark"] .header-subtitle,
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .hero-metric-label,
html[data-theme="dark"] .panel-header p,
html[data-theme="dark"] .card-description,
html[data-theme="dark"] .status-text,
html[data-theme="dark"] .summary-line,
html[data-theme="dark"] .nav-dropdown a,
html[data-theme="dark"] .nav-link.placeholder {
    color: var(--theme-muted) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] .hero-metric-value,
html[data-theme="dark"] .summary-line span,
html[data-theme="dark"] .summary-line strong,
html[data-theme="dark"] .card-title {
    color: var(--theme-text) !important;
}

html[data-theme="dark"] .brand-mark {
    border-color: rgba(125, 211, 252, 0.30) !important;
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.38),
        inset 0 0 28px rgba(96, 165, 250, 0.10) !important;
}

html[data-theme="dark"] .hero-kicker {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: rgba(96, 165, 250, 0.22) !important;
    color: #bfdbfe !important;
}

html[data-theme="dark"] #segment-hyperscalers {
    color: #93c5fd !important;
}

html[data-theme="dark"] #segment-hyperscalers.active {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.94), rgba(37, 99, 235, 0.88)) !important;
    color: #eff6ff !important;
}

html[data-theme="dark"] #segment-neoclouds {
    color: #67e8f9 !important;
    border-color: rgba(34, 211, 238, 0.30) !important;
}

html[data-theme="dark"] #segment-neoclouds.active {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.94), rgba(8, 145, 178, 0.9)) !important;
    border-color: rgba(34, 211, 238, 0.4) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .select-box,
html[data-theme="dark"] .options-container,
html[data-theme="dark"] .option,
html[data-theme="dark"] .provider-chip,
html[data-theme="dark"] .provider-chip.is-active {
    color: var(--theme-control-text) !important;
}

html[data-theme="dark"] .select-box,
html[data-theme="dark"] .options-container,
html[data-theme="dark"] .provider-chip {
    background: linear-gradient(180deg, rgba(12, 24, 40, 0.96), rgba(8, 16, 28, 0.92)) !important;
    border-color: rgba(125, 211, 252, 0.24) !important;
    box-shadow: var(--theme-shadow-sm) !important;
}

html[data-theme="dark"] .provider-chip.is-active,
html[data-theme="dark"] .option.is-selected {
    background: linear-gradient(180deg, rgba(22, 40, 66, 0.98), rgba(13, 26, 43, 0.94)) !important;
    border-color: rgba(125, 211, 252, 0.42) !important;
}

html[data-theme="dark"] .auth-chip,
html[data-theme="dark"] .auth-logout-btn,
html[data-theme="dark"] .auth-login-link {
    background: linear-gradient(180deg, rgba(12, 24, 40, 0.98), rgba(9, 18, 30, 0.92)) !important;
    border-color: rgba(148, 163, 184, 0.26) !important;
    color: #d9e8ff !important;
}

html[data-theme="dark"] .auth-menu {
    background: linear-gradient(180deg, rgba(12, 24, 40, 0.98), rgba(9, 18, 30, 0.94)) !important;
    border-color: rgba(148, 163, 184, 0.26) !important;
}

html[data-theme="dark"] .auth-menu-item {
    color: #d9e8ff !important;
}

html[data-theme="dark"] .auth-menu-item:hover {
    background: rgba(96, 165, 250, 0.14) !important;
}

html[data-theme="dark"] .auth-menu-item--danger {
    color: #fca5a5 !important;
}

html[data-theme="dark"] .auth-dialog {
    background: linear-gradient(180deg, rgba(10, 20, 34, 0.96), rgba(8, 17, 29, 0.92)) !important;
    border-color: rgba(96, 165, 250, 0.24) !important;
}

html[data-theme="dark"] input[type="text"]:focus,
html[data-theme="dark"] input[type="number"]:focus,
html[data-theme="dark"] input[type="search"]:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] .select-box.is-open,
html[data-theme="dark"] .provider-chip:focus-visible {
    border-color: rgba(125, 211, 252, 0.52) !important;
}

html[data-theme="dark"] .provider-pill {
    box-shadow: 0 0 0 3px rgba(8, 18, 30, 0.82) !important;
}

html[data-theme="dark"] #complexSortUI .btn {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.96), rgba(13, 148, 136, 0.88)) !important;
    border: 1px solid rgba(94, 234, 212, 0.32) !important;
    border-bottom: 4px solid rgba(15, 118, 110, 0.96) !important;
    color: #f0fdfa !important;
    box-shadow:
        0 14px 24px rgba(15, 118, 110, 0.24),
        inset 0 1px 0 rgba(240, 253, 250, 0.16) !important;
}

html[data-theme="dark"] #complexSortUI .btn:hover {
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.98), rgba(15, 118, 110, 0.92)) !important;
    filter: none !important;
}

html[data-theme="dark"] #complexSortUI .btn-secondary {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.30), rgba(30, 41, 59, 0.94)) !important;
    border: 1px solid rgba(147, 197, 253, 0.26) !important;
    border-bottom: 4px solid rgba(51, 65, 85, 0.96) !important;
    color: #dbeafe !important;
    box-shadow:
        0 14px 24px rgba(15, 23, 42, 0.26),
        inset 0 1px 0 rgba(191, 219, 254, 0.12) !important;
}

html[data-theme="dark"] #complexSortUI .btn-secondary:hover {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.34), rgba(37, 99, 235, 0.18)) !important;
}

html[data-theme="dark"] #complexSortUI .collapse-btn {
    background: linear-gradient(180deg, rgba(20, 34, 55, 0.98), rgba(9, 18, 30, 0.94)) !important;
    border-color: rgba(125, 211, 252, 0.24) !important;
    color: #dbeafe !important;
    box-shadow: var(--theme-shadow-sm) !important;
}

html[data-theme="dark"] #complexSortUI .pricing-toggle {
    background: linear-gradient(180deg, rgba(12, 24, 40, 0.98), rgba(8, 16, 29, 0.94)) !important;
    border-color: rgba(125, 211, 252, 0.20) !important;
    color: #dbeafe !important;
    box-shadow: var(--theme-shadow-sm) !important;
}

html[data-theme="dark"] #complexSortUI .pricing-toggle:has(#colOnDemand:checked) {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.92), rgba(13, 148, 136, 0.84)) !important;
    border-color: rgba(94, 234, 212, 0.34) !important;
    color: #f0fdfa !important;
}

html[data-theme="dark"] #complexSortUI .pricing-toggle:has(#colReserved1y:checked) {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.92), rgba(217, 119, 6, 0.84)) !important;
    border-color: rgba(253, 186, 116, 0.34) !important;
    color: #fff7ed !important;
}

html[data-theme="dark"] #complexSortUI .pricing-toggle:has(#colReserved3y:checked) {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.92), rgba(79, 70, 229, 0.84)) !important;
    border-color: rgba(165, 180, 252, 0.34) !important;
    color: #eef2ff !important;
}

html[data-theme="dark"] .selected-text,
html[data-theme="dark"] .option-main {
    color: var(--theme-control-text) !important;
}

html[data-theme="dark"] .option-detail,
html[data-theme="dark"] .field-help {
    color: var(--theme-muted) !important;
}

html[data-theme="dark"] .option:hover {
    background: rgba(22, 40, 66, 0.78) !important;
}

html[data-theme="dark"] .option-group-label {
    background: rgba(10, 20, 34, 0.96) !important;
    border-bottom-color: rgba(125, 211, 252, 0.12) !important;
    color: var(--theme-muted) !important;
}

html[data-theme="dark"] .option-empty {
    color: var(--theme-muted) !important;
}

html[data-theme="dark"] .raw-harvest-table,
html[data-theme="dark"] .raw-harvest-table th,
html[data-theme="dark"] .raw-harvest-table td {
    border-color: rgba(246, 213, 106, 0.34) !important;
}

html[data-theme="dark"] .raw-harvest-table thead th {
    background: rgba(8, 18, 30, 0.96) !important;
}

html[data-theme="dark"] .raw-harvest-table tbody tr:nth-child(odd) td {
    background: rgba(12, 22, 36, 0.90) !important;
}

html[data-theme="dark"] .raw-harvest-table tbody tr:nth-child(even) td {
    background: rgba(16, 28, 45, 0.92) !important;
}

html[data-theme="dark"] .table-container {
    background: linear-gradient(180deg, rgba(10, 20, 34, 0.98), rgba(8, 16, 28, 0.94)) !important;
    border-color: rgba(96, 165, 250, 0.28) !important;
    box-shadow:
        0 24px 48px rgba(2, 6, 16, 0.42),
        0 0 0 1px rgba(96, 165, 250, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

html[data-theme="dark"] .results-window-title {
    background: linear-gradient(180deg, rgba(12, 24, 40, 0.98), rgba(9, 18, 30, 0.94)) !important;
    border-bottom-color: rgba(125, 211, 252, 0.18) !important;
    color: var(--theme-text) !important;
}

html[data-theme="dark"] .results-window-title span {
    color: var(--theme-muted) !important;
}

html[data-theme="dark"] .table-scroll-wrapper {
    background: linear-gradient(180deg, rgba(9, 18, 30, 0.96), rgba(7, 14, 24, 0.98)) !important;
}

html[data-theme="dark"] .table-container thead {
    background: rgba(10, 20, 34, 0.98) !important;
    box-shadow: 0 8px 20px rgba(2, 6, 16, 0.34) !important;
}

html[data-theme="dark"] .table-container th {
    color: #9fb3cf !important;
    border-bottom-color: rgba(125, 211, 252, 0.14) !important;
    background: rgba(10, 20, 34, 0.98) !important;
}

html[data-theme="dark"] .table-container td {
    color: var(--theme-text) !important;
    border-bottom-color: rgba(148, 163, 184, 0.10) !important;
    background: rgba(11, 21, 35, 0.92) !important;
}

html[data-theme="dark"] .table-container tbody tr:nth-child(even) td {
    background: rgba(15, 28, 45, 0.94) !important;
}

html[data-theme="dark"] .table-container tbody tr:hover td {
    background: rgba(22, 40, 66, 0.96) !important;
}

html[data-theme="dark"] .table-container .row-family-main,
html[data-theme="dark"] .table-container .row-instance,
html[data-theme="dark"] .table-container .row-region {
    color: #e5eefb !important;
}

html[data-theme="dark"] .table-container .row-family-sub {
    color: #8fa2bf !important;
}

html[data-theme="dark"] .table-container .row-description {
    color: #a8b8cf !important;
}

html[data-theme="dark"] .table-container .price-cell {
    color: #34d399 !important;
}

html[data-theme="dark"] .table-container .na-pricing {
    color: #9fb3cf !important;
}

html[data-theme="dark"] .table-container .provider-badge {
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .table-container .bg-aws { background: rgba(254, 240, 138, 0.18) !important; color: #facc15 !important; }
html[data-theme="dark"] .table-container .bg-azure { background: rgba(255, 153, 0, 0.18) !important; color: #ffb347 !important; }
html[data-theme="dark"] .table-container .bg-gcp { background: rgba(66, 133, 244, 0.18) !important; color: #7eb0ff !important; }
html[data-theme="dark"] .table-container .bg-oci { background: rgba(199, 70, 52, 0.18) !important; color: #ff8d7c !important; }
html[data-theme="dark"] .table-container .bg-coreweave { background: rgba(168, 127, 251, 0.18) !important; color: #c8adff !important; }
html[data-theme="dark"] .table-container .bg-vultr { background: rgba(0, 188, 212, 0.18) !important; color: #67e8f9 !important; }
html[data-theme="dark"] .table-container .bg-nebius { background: rgba(20, 184, 166, 0.18) !important; color: #5eead4 !important; }
html[data-theme="dark"] .table-container .bg-lambda { background: rgba(139, 92, 246, 0.18) !important; color: #c4b5fd !important; }
html[data-theme="dark"] .table-container .bg-crusoe { background: rgba(22, 163, 74, 0.18) !important; color: #86efac !important; }

html[data-theme="dark"] .loading-overlay {
    background: rgba(4, 10, 18, 0.76) !important;
}

html[data-theme="dark"] .spinner {
    border-color: rgba(125, 211, 252, 0.12) !important;
    border-top-color: var(--theme-primary) !important;
}

html[data-theme="dark"] .pagination {
    border-top-color: rgba(125, 211, 252, 0.16) !important;
    background: linear-gradient(180deg, rgba(10, 20, 34, 0.96), rgba(8, 16, 28, 0.98)) !important;
}

html[data-theme="dark"] .page-label {
    color: var(--theme-text) !important;
}

html[data-theme="dark"] .page-btn,
html[data-theme="dark"] .page-input,
html[data-theme="dark"] .page-size-select {
    background: linear-gradient(180deg, rgba(12, 24, 40, 0.98), rgba(9, 18, 30, 0.94)) !important;
    border-color: rgba(125, 211, 252, 0.22) !important;
    color: var(--theme-control-text) !important;
}

html[data-theme="dark"] .page-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(18, 35, 57, 0.98), rgba(12, 24, 40, 0.96)) !important;
    border-color: rgba(125, 211, 252, 0.34) !important;
    color: var(--theme-text) !important;
}

html[data-theme="dark"] .page-input:focus,
html[data-theme="dark"] .page-size-select:focus {
    border-color: rgba(125, 211, 252, 0.46) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
}

html[data-theme="dark"] .sovereignty-panel {
    border-color: rgba(245, 158, 11, 0.28) !important;
    background: linear-gradient(180deg, rgba(28, 22, 10, 0.92), rgba(11, 18, 31, 0.96)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .sovereignty-toggle:hover {
    background: rgba(245, 158, 11, 0.08) !important;
}

html[data-theme="dark"] .sovereignty-toggle-icon {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .sovereignty-body {
    border-top-color: rgba(245, 158, 11, 0.18) !important;
}

html[data-theme="dark"] .source-group {
    background: rgba(9, 18, 30, 0.76) !important;
    border-color: rgba(125, 211, 252, 0.14) !important;
}

html[data-theme="dark"] .source-item-note {
    color: #d7e2f2 !important;
}

@media (max-width: 720px) {
    .theme-toggle {
        min-width: 120px;
        padding: 8px 12px;
    }

    .auth-meta {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}
