/* Wave E: AI Command Center Power Filter Bar, 3-Step Optical Matcher Wizard, Clickable Table & Compare Studio Upgrades */

/* 1. Power Filter Bar inside #ai-command-center */
.rgbe-ai-pbar {
  margin: 14px 0 18px;
  padding: 16px 18px;
  border-radius: var(--r-md, 18px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: radial-gradient(80% 90% at 15% 0%, rgba(77, 159, 255, .10), transparent 65%), rgba(9, 14, 26, .95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  display: grid;
  gap: 12px;
}
.rgbe-ai-prow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.rgbe-ai-q {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(6, 10, 20, .96);
  color: #f4f7ff;
  font: inherit;
  font-size: .88rem;
}
.rgbe-ai-q::placeholder { color: #9fb0cc; opacity: 1; }
.rgbe-ai-slider-box {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(12, 18, 34, .94);
  font-size: .82rem;
  color: #d2dcef;
  font-variant-numeric: tabular-nums;
}
.rgbe-ai-slider-box input[type="range"] { width: 88px; margin-inline: 4px; accent-color: var(--blue, #4d9fff); }
.rgbe-ai-slider-box strong { color: #f6f8fd; min-width: 52px; text-align: center; white-space: nowrap; }
@media (max-width: 768px) {
  .rgbe-ai-q { font-size: 1rem; }
}
@media (max-width: 520px) {
  .rgbe-ai-slider-box { flex: 1 1 100%; border-radius: var(--r-md, 16px); justify-content: space-between; }
  .rgbe-ai-slider-box input[type="range"] { flex: 1 1 90px; width: auto; min-width: 72px; }
}

.rgbe-ai-resgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 10px;
  margin-top: 6px;
}
.rgbe-ai-rcard {
  padding: 14px 16px;
  border-radius: var(--r-sm, 14px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(9, 14, 26, .96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rgbe-ai-rcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rgbe-ai-rcard-name { font-size: .92rem; font-weight: 800; color: #f4f7ff; text-decoration: none; }
.rgbe-ai-rcard-name:hover { color: #7cc0ff; }
.rgbe-ai-rcard-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; color: #cfd8ea; font-variant-numeric: tabular-nums; }
.rgbe-ai-rcard-meta span { padding: 3px 8px; border-radius: var(--r-pill, 999px); background: rgba(255, 255, 255, .07); }
.rgbe-ai-rcard-acts { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.rgbe-fav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(14, 20, 36, .92);
  color: #c4d0e6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  flex: none;
}
.rgbe-fav-btn.is-on { color: #ffc34d; border-color: rgba(255, 195, 77, .55); background: rgba(255, 195, 77, .12); }

/* 2. Genuine 3-Step Optical AI Matcher Wizard & 3D AI Galaxy Studio (High-Contrast Obsidian Glass) */
#rgb-ai-matcher .rgbe-wow-card,
#rgb-ai-galaxy .rgbe-in-studio {
  background:
    radial-gradient(65% 55% at 12% 0%, rgba(77, 159, 255, .11), transparent 68%),
    radial-gradient(55% 55% at 88% 100%, rgba(176, 107, 255, .09), transparent 68%),
    linear-gradient(170deg, #0d1324 0%, #080c17 55%, #0a0f1d 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .11),
    0 28px 68px -22px rgba(0, 0, 0, .82);
  padding: clamp(24px, 3.2vw, 38px);
}
#rgb-ai-matcher .rgbe-webgl-cv,
#rgb-ai-galaxy .rgbe-webgl-cv {
  opacity: .42;
}
#rgb-ai-matcher .rgbe-wow-head,
#rgb-ai-galaxy .rgbe-wow-head {
  margin-bottom: 22px;
  padding-inline-end: 46px;
}
#rgb-ai-matcher .rgbe-wow-head h2,
#rgb-ai-galaxy .rgbe-wow-head h2 {
  color: #f4f7ff;
  font-size: clamp(1.32rem, 2.3vw, 1.78rem);
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 8px;
}
#rgb-ai-matcher .rgbe-wow-sub,
#rgb-ai-galaxy .rgbe-wow-sub {
  color: #c2cce0;
  font-size: .95rem;
  line-height: 1.85;
  max-width: 74ch;
  margin: 0;
}

.rgbe-wiz-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .rgbe-wiz-steps { grid-template-columns: 1fr; } }
.rgbe-wiz-col {
  padding: 16px 18px;
  border-radius: var(--r-md, 16px);
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(9, 13, 24, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  display: grid;
  gap: 12px;
  align-content: start;
}
.rgbe-wiz-col-h {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  font-weight: 800;
  color: #e7eefc;
  line-height: 1.45;
}
.rgbe-wiz-step-n {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(77, 159, 255, .16);
  border: 1px solid rgba(77, 159, 255, .44);
  color: #7cc0ff;
  font-size: .76rem;
  font-weight: 800;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.rgbe-wiz-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rgbe-wiz-pills .rgbe-pill-btn,
#rgb-ai-galaxy .rgbe-ai-filters .rgbe-pill-btn {
  padding: 8px 14px;
  min-height: 38px;
  font-size: .84rem;
  font-weight: 700;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  color: #d3dcef;
  line-height: 1.4;
}
.rgbe-wiz-pills .rgbe-pill-btn:hover,
#rgb-ai-galaxy .rgbe-ai-filters .rgbe-pill-btn:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .26);
  color: #ffffff;
}
.rgbe-wiz-pills .rgbe-pill-btn.is-on,
#rgb-ai-galaxy .rgbe-ai-filters .rgbe-pill-btn.is-on {
  background: linear-gradient(135deg, rgba(37, 99, 235, .36), rgba(77, 159, 255, .22));
  border-color: rgba(77, 159, 255, .72);
  color: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(77, 159, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.rgbe-match-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 780px) { .rgbe-match-grid-2x2 { grid-template-columns: 1fr; } }
.rgbe-mcard {
  padding: 20px 22px;
  border-radius: var(--r-md, 18px);
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(9, 14, 26, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 14px 36px -18px rgba(0, 0, 0, .75);
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.rgbe-mcard:hover {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(13, 19, 35, .96);
}
.rgbe-mcard:first-child {
  border-color: rgba(46, 230, 168, .5);
  background:
    radial-gradient(85% 95% at 100% 0%, rgba(46, 230, 168, .12), transparent 66%),
    rgba(9, 15, 27, .95);
  box-shadow:
    inset 0 1px 0 rgba(46, 230, 168, .2),
    0 18px 42px -18px rgba(46, 230, 168, .22);
}
.rgbe-mcard-ring-wrap {
  display: grid;
  justify-items: center;
  gap: 4px;
}
@media (max-width: 520px) {
  #rgb-ai-matcher .rgbe-wow-card,
  #rgb-ai-galaxy .rgbe-in-studio { padding: 16px; }
  .rgbe-mcard { grid-template-columns: 1fr; padding: 15px 16px; gap: 12px; }
  .rgbe-mcard-ring-wrap { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
}
.rgbe-mcard-ring { width: 58px; height: 58px; flex: none; }
.rgbe-mcard-ring-lbl {
  font-size: .72rem;
  font-weight: 700;
  color: #bac7de;
}
.rgbe-mcard-body { min-width: 0; display: grid; gap: 10px; }
.rgbe-mcard-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rgbe-mcard-name {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f4f7ff;
  text-decoration: none;
  line-height: 1.38;
}
.rgbe-mcard-name:hover { color: #7cc0ff; }
.rgbe-mcard-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(46, 230, 168, .44);
  background: rgba(46, 230, 168, .13);
  color: #46f0b6;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}
.rgbe-mcard-vendor {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: #b7c3da;
  font-size: .74rem;
  font-weight: 700;
}
.rgbe-mcard-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}
.rgbe-mcard-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--r-sm, 10px);
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .055);
  font-size: .78rem;
  color: #b4c0d8;
}
.rgbe-mcard-metric b {
  color: #f4f7ff;
  font-weight: 800;
}
.rgbe-mcard-metric.is-price b { color: #67f2c2; }
.rgbe-mcard-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.rgbe-mcard-foot .rgba-cmp-add-mini {
  padding: 6px 13px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: #edf2fc;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.rgbe-mcard-foot .rgba-cmp-add-mini:hover {
  border-color: rgba(77, 159, 255, .58);
  background: rgba(77, 159, 255, .18);
  color: #ffffff;
}
.rgbe-mcard-link {
  color: #7cc0ff;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rgbe-mcard-link:hover { color: #b2d8ff; text-decoration: underline; text-underline-offset: 4px; }

/* 2B. 3D AI Galaxy Studio Bar, Canvas Frame & Comparison Dock */
.rgbe-gal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--r-md, 16px);
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(8, 12, 23, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#rgb-ai-galaxy .rgbe-ai-filters {
  margin: 0;
  gap: 8px;
}
.rgbe-gal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: .78rem;
  font-weight: 700;
  color: #cfd8ea;
}
.rgbe-gal-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rgbe-gal-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lc, #4d9fff);
  box-shadow: 0 0 8px var(--lc, #4d9fff);
  flex: none;
}
#rgb-ai-galaxy .rgbe-3d-wrap {
  height: 410px;
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    radial-gradient(80% 75% at 50% 42%, rgba(34, 52, 102, .34), rgba(5, 8, 16, .97) 74%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 20px 46px -22px rgba(0, 0, 0, .85);
}
@media (max-width: 640px) {
  #rgb-ai-galaxy .rgbe-3d-wrap { height: 330px; }
}
#rgb-ai-galaxy .rgbe-3d-hud {
  inset-block-start: 14px;
  inset-inline-start: 14px;
  inset-inline-end: 14px;
  max-width: none;
  justify-content: space-between;
  align-items: center;
}
#rgb-ai-galaxy .rgbe-3d-pill {
  padding: 5px 12px;
  background: rgba(8, 12, 24, .88);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #d6dff0;
  font-size: .75rem;
}
#rgb-ai-galaxy .rgbe-3d-tip {
  max-width: min(265px, calc(100% - 24px));
  padding: 13px 15px;
  background: rgba(8, 12, 24, .96);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, .9);
}
.rgbe-tip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.rgbe-tip-head strong { margin: 0; font-size: .92rem; line-height: 1.3; }
.rgbe-tip-head em { font-style: normal; font-size: .76rem; color: #bac7de; white-space: nowrap; }
.rgbe-tip-grid {
  display: grid;
  gap: 4px;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
.rgbe-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #b7c3da;
}
.rgbe-tip-row b { color: #f4f7ff; font-weight: 800; }
#rgb-ai-galaxy .rgbe-ai-dock {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--r-md, 14px);
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(9, 14, 26, .92);
  color: #d2dcef;
  font-size: .88rem;
  gap: 12px;
}
.rgbe-gal-pins {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
}
.rgbe-gal-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: #f2f6ff;
  font-size: .8rem;
  font-weight: 700;
}
.rgbe-gal-chip button {
  border: 0;
  background: transparent;
  color: #a9b6cf;
  cursor: pointer;
  padding: 0 2px;
  font-size: .9rem;
  line-height: 1;
}
.rgbe-gal-chip button:hover { color: #ff6b81; }

/* 3. /ai/compare/ Searchable Combobox Bar & Winner Highlights */
.rgbe-cmp-bar {
  position: relative;
  z-index: 65;
  margin: 14px 0;
  padding: 13px 16px;
  border-radius: var(--r-md, 16px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(9, 14, 26, .95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rgbe-cmp-search-wrap { position: relative; flex: 1 1 260px; min-width: 0; max-width: 100%; z-index: 70; }
.rgbe-cmp-pop {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 95;
  max-height: 270px;
  overflow-y: auto;
  border-radius: var(--r-md, 14px);
  border: 1px solid var(--border-2, rgba(255, 255, 255, .18));
  background: rgba(9, 13, 25, .98);
  padding: 6px;
  display: grid;
  gap: 4px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .7);
}
.rgbe-cmp-pop[hidden] { display: none !important; }
.rgbe-cmp-pop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-sm, 10px);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text, #eef1f8);
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
  text-align: start;
}
.rgbe-cmp-pop-item:hover { background: rgba(77, 159, 255, .15); border-color: rgba(77, 159, 255, .4); }
table.cmp-table td.rgbe-cmp-win,
.rgbe-cmp-win.rgbe-cmp-win {
  background: rgba(46, 230, 168, .12);
  color: var(--green, #2ee6a8);
  font-weight: 800;
}
.rgbe-cmp-diff-hide { display: none !important; }

/* Phase 8: Monthly AI Workload Cost Simulator (Liquid Glass Dark v2.0) */
.rgbe-ai-csim { margin-top: 24px; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-lg, 24px); border: 1px solid var(--border, rgba(255,255,255,.09)); background: var(--surface, rgba(255,255,255,.045)); contain: layout; }
.rgbe-ai-csim-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-inline-end: 44px; }
.rgbe-ai-csim-head h3 { margin: 0 0 6px; font-size: clamp(1.12rem, 1rem + .6vw, 1.42rem); font-weight: 800; line-height: 1.45; }
.rgbe-ai-csim-head p { margin: 0; font-size: .9rem; color: var(--text-2, #a9b1c3); max-width: 68ch; }
.rgbe-ai-fx-pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-pill, 999px); border: 1px solid rgba(46,230,168,.3); background: rgba(46,230,168,.09); color: #2ee6a8; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rgbe-ai-csim-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rgbe-ai-csim-sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-bottom: 18px; }
.rgbe-ai-csl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 14px; border-radius: var(--r-md, 18px); border: 1px solid var(--border, rgba(255,255,255,.09)); background: radial-gradient(80% 90% at 96% 0%, rgba(77,159,255,.06), transparent 68%), rgba(7,9,15,.52); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.rgbe-ai-csl span { font-size: .84rem; font-weight: 700; color: var(--text-2, #a9b1c3); }
.rgbe-ai-csl strong { font-size: .94rem; font-weight: 800; color: #eef1f8; font-variant-numeric: tabular-nums; direction: ltr; }
.rgbe-ai-csl input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: #4d9fff; }
.rgbe-ai-csim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 14px; }
.rgbe-csim-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-md, 18px); border: 1px solid var(--border, rgba(255,255,255,.09)); background: radial-gradient(75% 80% at 96% 0%, rgba(176,107,255,.065), transparent 68%), rgba(11,15,26,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.rgbe-csim-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rgbe-csim-name { font-size: .94rem; font-weight: 800; color: #eef1f8; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rgbe-csim-name:hover { color: #4d9fff; }
.rgbe-csim-bdg { flex: none; padding: 3px 9px; border-radius: var(--r-pill, 999px); font-size: .72rem; font-weight: 800; border: 1px solid rgba(77,159,255,.35); background: rgba(77,159,255,.12); color: #8ec3ff; }
.rgbe-csim-bdg.is-val { border-color: rgba(46,230,168,.38); background: rgba(46,230,168,.12); color: #2ee6a8; }
.rgbe-csim-bdg.is-iq { border-color: rgba(176,107,255,.38); background: rgba(176,107,255,.12); color: #d5b4ff; }
.rgbe-csim-cost { display: grid; gap: 2px; }
.rgbe-csim-cost strong { font-size: 1.15rem; font-weight: 800; color: #2ee6a8; font-variant-numeric: tabular-nums; }
.rgbe-csim-cost strong small { font-size: .76rem; font-weight: 700; color: var(--text-2, #a9b1c3); }
.rgbe-csim-cost span { font-size: .78rem; color: var(--text-3, #8690a6); font-variant-numeric: tabular-nums; }
.rgbe-csim-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .76rem; color: var(--text-2, #a9b1c3); font-variant-numeric: tabular-nums; }
.rgbe-csim-meta span { padding: 3px 8px; border-radius: var(--r-xs, 8px); border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.rgbe-csim-meta .is-open { border-color: rgba(46,230,168,.28); color: #2ee6a8; }
.rgbe-csim-acts { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.rgbe-ai-pbar { contain: layout; }
.rgbe-cmp-verdict {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.rgbe-cmp-vcard {
  padding: 13px 15px;
  border-radius: var(--r-md, 16px);
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(75% 80% at 92% 0%, rgba(176, 107, 255, .065), transparent 66%),
    rgba(11, 15, 26, .90);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  display: grid;
  gap: 4px;
}
.rgbe-cmp-vcard.is-good {
  border-color: rgba(46, 230, 168, .38);
  background: rgba(46, 230, 168, .08);
}
.rgbe-cmp-vcard span { font-size: .74rem; font-weight: 700; color: var(--text-3, #8690a6); }
.rgbe-cmp-vcard strong { font-size: .92rem; font-weight: 800; color: #eef1f8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rgbe-cmp-vcard small { font-size: .78rem; font-weight: 700; color: #5cf2be; font-variant-numeric: tabular-nums; }

/* Deep Pass D: Strict mobile 390px containment on /ai/compare/ (.rgba-cmp5 is a flex .card containing .tbl-grid) */
#matrix,
#matrix > .wrap,
#matrix .rgba-cmp5,
.rgba-cmp5 {
  min-inline-size: 0;
  inline-size: 100%;
  max-inline-size: 100%;
  overflow-x: clip;
}
.rgba-cmp5 > * {
  min-inline-size: 0;
  max-inline-size: 100%;
}
#cmp-table,
.rgba-cmp5 .table-wrap {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.rgba-cmp5-slots,
.rgba-cmp5-slot,
.rgba-cmp5-slot select,
.rgba-cmp5-presets,
.rgba-sim-inputs,
.rgba-sim-card,
.rgbe-cmp-bar,
.rgbe-cmp-verdict {
  min-inline-size: 0;
  max-inline-size: 100%;
}
@media (max-width: 640px) {
  .rgba-cmp5 { padding: 14px; }
  .rgba-cmp5-panel { padding: 14px; }
  .rgba-sim-card { flex-wrap: wrap; }
  .rgbe-cmp-bar { padding: 11px 12px; gap: 8px; }
}

/* Deep Pass K: /ai/ Local Ollama / GPU VRAM Readiness & Quantization Fit Lab */
.rgbe-vram-lab {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-lg, 26px);
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(66% 58% at 10% 0%, rgba(77, 159, 255, .11), transparent 68%),
    radial-gradient(56% 52% at 90% 100%, rgba(46, 230, 168, .1), transparent 68%),
    linear-gradient(170deg, #0d1324 0%, #080c17 55%, #0a0f1d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 28px 64px -22px rgba(0, 0, 0, .86);
  display: grid;
  gap: 18px;
}
.rgbe-vram-lab > :not(.rgbe-aurora-cv):not(.rgbe-aurora-pause) { position: relative; z-index: 2; }
.rgbe-vr-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 900px) { .rgbe-vr-top { grid-template-columns: 1fr; } }
.rgbe-vr-ctrl { display: grid; gap: 12px; }
.rgbe-vr-row { display: grid; gap: 7px; }
.rgbe-vr-row > span { font-size: .8rem; font-weight: 800; color: #b8c5de; }
.rgbe-vr-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.rgbe-vr-pills small { opacity: .78; font-weight: 600; font-size: .72rem; }
.rgbe-vr-qnote { font-size: .78rem; color: #9fb0cc; margin-inline-start: 4px; }
.rgbe-vr-gauge-card {
  padding: 18px;
  border-radius: var(--r-md, 18px);
  border: 1px solid rgba(46, 230, 168, .25);
  background: rgba(8, 13, 25, .92);
  display: flex;
  align-items: center;
  gap: 16px;
}
.rgbe-vr-best { display: grid; gap: 4px; min-width: 0; }
.rgbe-vr-best span { font-size: .76rem; color: #9fb0cc; font-weight: 700; }
.rgbe-vr-best strong { font-size: 1rem; font-weight: 800; color: #5cf2be; }
.rgbe-vr-best small { font-size: .74rem; color: #b8c5de; font-variant-numeric: tabular-nums; }
.rgbe-vr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 12px;
}
.rgbe-vr-card {
  padding: 15px;
  border-radius: var(--r-md, 16px);
  border: 1px solid rgba(255, 255, 255, .11);
  background:
    radial-gradient(75% 80% at 96% 0%, rgba(77, 159, 255, .065), transparent 68%),
    rgba(9, 14, 26, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  display: grid;
  gap: 8px;
}
.rgbe-vr-card.is-fit { border-color: rgba(46, 230, 168, .32); }
.rgbe-vr-card.is-no { opacity: .66; }
.rgbe-vr-ctop { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rgbe-vr-ctop strong { font-size: .92rem; font-weight: 800; color: #f4f7ff; }
.rgbe-vr-st {
  padding: 2px 8px;
  border-radius: var(--r-pill, 999px);
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}
.rgbe-vr-st.is-fit { background: rgba(46, 230, 168, .13); border: 1px solid rgba(46, 230, 168, .38); color: #5cf2be; }
.rgbe-vr-st.is-off { background: rgba(255, 195, 77, .12); border: 1px solid rgba(255, 195, 77, .36); color: #ffd97d; }
.rgbe-vr-st.is-no  { background: rgba(255, 77, 106, .1); border: 1px solid rgba(255, 77, 106, .3); color: #ff8fa3; }
.rgbe-vr-role { margin: 0; font-size: .78rem; color: #b8c5de; }
.rgbe-vr-bar {
  display: flex;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
  gap: 2px;
}
.rgbe-vr-bar i.is-w { display: block; height: 100%; background: #4d9fff; border-radius: 999px; }
.rgbe-vr-bar i.is-kv { display: block; height: 100%; background: #b06bff; border-radius: 999px; }
.rgbe-vr-nums { display: flex; justify-content: space-between; align-items: center; font-size: .76rem; color: #cfd8ea; font-weight: 700; font-variant-numeric: tabular-nums; }
.rgbe-vr-cacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.rgbe-vr-cmd {
  flex: 1 1 130px;
  min-width: 0;
  padding: 5px 9px;
  border-radius: var(--r-xs, 8px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(4, 7, 15, .95);
  color: #93c5fd;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.rgbe-vr-cmd:hover { border-color: rgba(77, 159, 255, .5); color: #fff; }

/* Deep Pass V: /ai/compare/ Live Head-to-Head Workload Cost & Response Speed Race */
.rgbe-cmp-race[hidden] { display: none !important; }
.rgbe-cmp-race {
  margin: 0 0 18px;
  padding: clamp(14px, 2vw, 20px);
  border-radius: var(--r-md, 18px);
  border: 1px solid rgba(77, 159, 255, .24);
  background: radial-gradient(75% 95% at 12% 0%, rgba(77, 159, 255, .09), transparent 68%), rgba(8, 13, 25, .94);
  display: grid;
  gap: 14px;
}
.rgbe-cmp-race-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
}
.rgbe-cmp-race-head > div:first-child { display: grid; gap: 3px; }
.rgbe-cmp-race-head strong { font-size: .95rem; font-weight: 800; color: #f4f7ff; }
.rgbe-cmp-race-head small { font-size: .78rem; color: #9fb0cc; }
.rgbe-cmp-race-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.rgbe-cmp-race-presets .rgbe-pill-btn { min-block-size: 32px; padding: 5px 11px; font-size: .76rem; }
.rgbe-cmp-race-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 820px) { .rgbe-cmp-race-grid { grid-template-columns: 1fr; } }
.rgbe-cmp-rpanel {
  padding: 13px 15px;
  border-radius: var(--r-sm, 14px);
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(80% 90% at 10% 0%, rgba(77, 159, 255, .06), transparent 68%),
    rgba(6, 10, 20, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  display: grid;
  gap: 9px;
  align-content: start;
}
.rgbe-cmp-rtitle { font-size: .78rem; font-weight: 800; color: #c4d0e6; }
.rgbe-cmp-rrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  font-size: .79rem;
}
.rgbe-cmp-rrow > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: 700;
  color: #e6edf8;
}
.rgbe-cmp-rrow > strong {
  font-size: .76rem;
  font-weight: 800;
  color: #b8c5de;
  font-variant-numeric: tabular-nums;
}
.rgbe-cmp-rrow.is-win > strong { color: #5cf2be; }
.rgbe-cmp-rrow.is-fast > strong { color: #7cc0ff; }
.rgbe-cmp-rtrk {
  block-size: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.rgbe-cmp-rtrk i {
  display: block;
  block-size: 100%;
  border-radius: 999px;
  background: rgba(148, 163, 184, .55);
}
.rgbe-cmp-rrow.is-win .rgbe-cmp-rtrk i { background: linear-gradient(90deg, #2ee6a8, #4d9fff); }
.rgbe-cmp-rrow.is-fast .rgbe-cmp-rtrk i { background: linear-gradient(90deg, #4d9fff, #b06bff); }
.rgbe-rwin-tag {
  font-style: normal;
  padding: 2px 7px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(46, 230, 168, .4);
  background: rgba(46, 230, 168, .12);
  color: #5cf2be;
  font-size: .68rem;
  font-weight: 800;
}
.rgbe-rwin-tag.is-sky {
  border-color: rgba(77, 159, 255, .44);
  background: rgba(77, 159, 255, .14);
  color: #8cc8ff;
}
@media (prefers-reduced-motion: no-preference) {
  .rgbe-cmp-rtrk i { transition: width .38s cubic-bezier(.22, 1, .36, 1); }
}

/* Deep Pass AA Flagship #16: /ai/models/ Access & Deployment Quick-Filter Strip */
.rgbe-ai-access-bar {
  margin: 0 0 14px;
  padding: 11px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rgbe-ai-acc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rgbe-ai-acc-cnt {
  font-size: .8rem;
  font-weight: 700;
  color: #b7c6e0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
tr.rgbe-ai-acc-hide { display: none !important; }

/* ==========================================================================
   LIQUID GLASS LIGHT (Optical Porcelain & Frosted Quartz) - elevate-ai.css
   ========================================================================== */

/* 1. Power Filter Bar (#ai-command-center & #models-scatter), Access Bar & Model Result Cards */
html[data-theme="light"] .rgbe-ai-pbar,
html[data-theme="light"] .glass.rgbe-ai-access-bar,
html[data-theme="light"] .rgbe-ai-access-bar {
  border-color: rgba(15, 23, 42, .10);
  background:
    radial-gradient(68% 82% at 10% 0%, rgba(124, 58, 237, .095), transparent 64%),
    radial-gradient(62% 76% at 92% 100%, rgba(37, 99, 235, .095), transparent 66%),
    linear-gradient(166deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .78) 54%, rgba(246, 250, 255, .82) 100%);
  backdrop-filter: blur(20px) saturate(168%);
  -webkit-backdrop-filter: blur(20px) saturate(168%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 6px rgba(15, 23, 42, .04),
    0 20px 48px -20px rgba(30, 58, 138, .15);
}
html[data-theme="light"] .rgbe-ai-acc-cnt {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-ai-q {
  border-color: var(--input-bd, rgba(15, 23, 42, .16));
  background: rgba(255, 255, 255, .92);
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-ai-q::placeholder {
  color: var(--text-3, #4A566E);
}
html[data-theme="light"] .rgbe-ai-q:focus-visible {
  outline: 2px solid var(--blue, #1D56D8);
  outline-offset: 2px;
  border-color: rgba(29, 86, 216, .52);
}
html[data-theme="light"] .rgbe-ai-slider-box {
  border-color: rgba(30, 58, 138, .11);
  background: rgba(238, 243, 252, .80);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  color: var(--text-2, #2B364B);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05), inset 0 -1px 0 rgba(255, 255, 255, .88);
}
html[data-theme="light"] .rgbe-ai-slider-box input[type="range"] {
  accent-color: var(--blue, #1D56D8);
}
html[data-theme="light"] .rgbe-ai-slider-box strong {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-ai-pbar [data-ap-cnt] {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-ai-pbar .rgbe-pill-btn,
html[data-theme="light"] .rgbe-ai-acc-pills .rgbe-pill-btn,
html[data-theme="light"] .rgbe-ai-csim-presets .rgbe-pill-btn,
html[data-theme="light"] .rgbe-vr-pills .rgbe-pill-btn,
html[data-theme="light"] .rgbe-cmp-bar .rgbe-pill-btn,
html[data-theme="light"] .rgbe-cmp-race-presets .rgbe-pill-btn {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, .13);
  color: var(--text-2, #2B364B);
  box-shadow: 0 1px 3px rgba(11, 17, 32, .04);
}
html[data-theme="light"] .rgbe-ai-pbar .rgbe-pill-btn:hover,
html[data-theme="light"] .rgbe-ai-acc-pills .rgbe-pill-btn:hover,
html[data-theme="light"] .rgbe-ai-csim-presets .rgbe-pill-btn:hover,
html[data-theme="light"] .rgbe-vr-pills .rgbe-pill-btn:hover,
html[data-theme="light"] .rgbe-cmp-bar .rgbe-pill-btn:hover,
html[data-theme="light"] .rgbe-cmp-race-presets .rgbe-pill-btn:hover {
  background: #EBF0F9;
  border-color: rgba(15, 23, 42, .24);
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-ai-pbar .rgbe-pill-btn.is-on,
html[data-theme="light"] .rgbe-ai-acc-pills .rgbe-pill-btn.is-on,
html[data-theme="light"] .rgbe-ai-csim-presets .rgbe-pill-btn.is-on,
html[data-theme="light"] .rgbe-vr-pills .rgbe-pill-btn.is-on,
html[data-theme="light"] .rgbe-cmp-bar .rgbe-pill-btn.is-on,
html[data-theme="light"] .rgbe-cmp-race-presets .rgbe-pill-btn.is-on {
  background: linear-gradient(120deg, #1D4ED8, #2563EB);
  border-color: #1D4ED8;
  color: #FFFFFF;
  box-shadow: 0 6px 18px -6px rgba(29, 78, 216, .42), inset 0 1px 0 rgba(255, 255, 255, .26);
}
html[data-theme="light"] .rgbe-vr-pills .rgbe-pill-btn b {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-vr-pills .rgbe-pill-btn small {
  color: var(--text-3, #4A566E);
  opacity: 1;
}
html[data-theme="light"] .rgbe-vr-pills .rgbe-pill-btn.is-on b,
html[data-theme="light"] .rgbe-vr-pills .rgbe-pill-btn.is-on small {
  color: #FFFFFF;
}
html[data-theme="light"] .rgbe-ai-rcard {
  border-color: rgba(15, 23, 42, .10);
  background:
    radial-gradient(75% 75% at 96% 0%, rgba(124, 58, 237, .06), transparent 64%),
    linear-gradient(166deg, rgba(255, 255, 255, .88) 0%, rgba(248, 250, 255, .80) 100%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 #ffffff, 0 8px 24px -14px rgba(30, 58, 138, .12);
}
html[data-theme="light"] .rgbe-ai-rcard:hover {
  border-color: rgba(37, 99, 235, .34);
  background:
    radial-gradient(80% 80% at 96% 0%, rgba(37, 99, 235, .09), transparent 66%),
    rgba(255, 255, 255, .94);
  box-shadow: inset 0 1px 0 #ffffff, 0 14px 32px -14px rgba(37, 99, 235, .20);
}
html[data-theme="light"] .rgbe-ai-rcard-name {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-ai-rcard-name:hover {
  color: var(--blue, #1D56D8);
}
html[data-theme="light"] .rgbe-ai-rcard-meta {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-ai-rcard-meta span {
  background: #EEF2FA;
  border: 1px solid rgba(15, 23, 42, .07);
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-fav-btn {
  border-color: rgba(15, 23, 42, .14);
  background: #F4F7FC;
  color: var(--text-3, #4A566E);
}
html[data-theme="light"] .rgbe-fav-btn:hover {
  border-color: rgba(15, 23, 42, .24);
  background: #EBF0F9;
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-fav-btn.is-on {
  color: var(--amber, #92400E);
  border-color: rgba(180, 83, 9, .38);
  background: #FFFBEB;
}

/* 2. 3-Step Optical AI Matcher Wizard & 3D AI Galaxy Studio */
html[data-theme="light"] #rgb-ai-matcher .glass.rgbe-wow-card,
html[data-theme="light"] #rgb-ai-matcher .rgbe-wow-card,
html[data-theme="light"] #rgb-ai-galaxy .glass.rgbe-in-studio,
html[data-theme="light"] #rgb-ai-galaxy .rgbe-in-studio {
  background:
    radial-gradient(66% 58% at 10% 0%, rgba(124, 58, 237, .115), transparent 66%),
    radial-gradient(58% 58% at 90% 100%, rgba(37, 99, 235, .105), transparent 66%),
    radial-gradient(46% 48% at 88% 8%, rgba(16, 185, 129, .065), transparent 68%),
    linear-gradient(166deg, rgba(255, 255, 255, .84) 0%, rgba(255, 255, 255, .76) 54%, rgba(246, 250, 255, .82) 100%);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border-color: rgba(30, 58, 138, .11);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(30, 58, 138, .04),
    0 2px 6px rgba(15, 23, 42, .04),
    0 24px 56px -20px rgba(30, 58, 138, .17);
}
html[data-theme="light"] #rgb-ai-matcher .rgbe-webgl-cv,
html[data-theme="light"] #rgb-ai-galaxy .rgbe-webgl-cv {
  opacity: .78;
}
html[data-theme="light"] #rgb-ai-matcher .rgbe-wow-head h2,
html[data-theme="light"] #rgb-ai-matcher .rgbe-wow-head h3,
html[data-theme="light"] #rgb-ai-galaxy .rgbe-wow-head h2,
html[data-theme="light"] #rgb-ai-galaxy .rgbe-wow-head h3 {
  color: var(--text, #0B1120);
}
html[data-theme="light"] #rgb-ai-matcher .rgbe-wow-sub,
html[data-theme="light"] #rgb-ai-galaxy .rgbe-wow-sub {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-wiz-col {
  border-color: rgba(30, 58, 138, .11);
  background: rgba(238, 243, 252, .76);
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05), inset 0 -1px 0 rgba(255, 255, 255, .88);
}
html[data-theme="light"] .rgbe-wiz-col-h {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-wiz-step-n {
  background: rgba(29, 86, 216, .10);
  border-color: rgba(29, 86, 216, .30);
  color: var(--blue, #1D56D8);
}
html[data-theme="light"] .rgbe-wiz-pills .rgbe-pill-btn,
html[data-theme="light"] #rgb-ai-galaxy .rgbe-ai-filters .rgbe-pill-btn {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, .13);
  color: var(--text-2, #2B364B);
  box-shadow: 0 1px 3px rgba(11, 17, 32, .04);
}
html[data-theme="light"] .rgbe-wiz-pills .rgbe-pill-btn:hover,
html[data-theme="light"] #rgb-ai-galaxy .rgbe-ai-filters .rgbe-pill-btn:hover {
  background: #EBF0F9;
  border-color: rgba(15, 23, 42, .24);
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-wiz-pills .rgbe-pill-btn.is-on,
html[data-theme="light"] #rgb-ai-galaxy .rgbe-ai-filters .rgbe-pill-btn.is-on {
  background: linear-gradient(120deg, #1D4ED8, #2563EB);
  border-color: #1D4ED8;
  color: #FFFFFF;
  box-shadow: 0 6px 18px -6px rgba(29, 78, 216, .42), inset 0 1px 0 rgba(255, 255, 255, .26);
}
html[data-theme="light"] .rgbe-mcard {
  border-color: rgba(15, 23, 42, .10);
  background:
    radial-gradient(80% 72% at 96% 0%, rgba(124, 58, 237, .065), transparent 64%),
    linear-gradient(166deg, rgba(255, 255, 255, .86) 0%, rgba(248, 251, 255, .78) 100%);
  backdrop-filter: blur(16px) saturate(162%);
  -webkit-backdrop-filter: blur(16px) saturate(162%);
  box-shadow: inset 0 1px 0 #ffffff, 0 8px 24px -12px rgba(30, 58, 138, .12);
}
html[data-theme="light"] .rgbe-mcard:hover {
  border-color: rgba(37, 99, 235, .36);
  background:
    radial-gradient(86% 78% at 96% 0%, rgba(37, 99, 235, .10), transparent 66%),
    rgba(255, 255, 255, .94);
  box-shadow: inset 0 1px 0 #ffffff, 0 16px 36px -14px rgba(37, 99, 235, .20);
}
html[data-theme="light"] .rgbe-mcard:first-child {
  border-color: rgba(5, 150, 105, .38);
  background:
    radial-gradient(85% 95% at 100% 0%, rgba(16, 185, 129, .12), transparent 66%),
    radial-gradient(65% 75% at 0% 100%, rgba(37, 99, 235, .07), transparent 68%),
    linear-gradient(166deg, rgba(255, 255, 255, .90) 0%, rgba(244, 253, 250, .82) 100%);
  backdrop-filter: blur(16px) saturate(165%);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  box-shadow: inset 0 1px 0 #ffffff, 0 16px 38px -16px rgba(5, 150, 105, .22);
}
html[data-theme="light"] .rgbe-mcard-ring-lbl {
  color: var(--text-3, #4A566E);
}
html[data-theme="light"] .rgbe-mcard-name {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-mcard-name:hover {
  color: var(--blue, #1D56D8);
}
html[data-theme="light"] .rgbe-mcard-badge {
  border-color: var(--green-bd, rgba(5, 150, 105, .28));
  background: #ECFDF5;
  color: var(--green, #047857);
}
html[data-theme="light"] .rgbe-mcard-vendor {
  border-color: rgba(15, 23, 42, .10);
  background: #F4F7FC;
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-mcard-metric {
  border-color: rgba(15, 23, 42, .09);
  background: #F4F7FC;
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-mcard-metric b {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-mcard-metric.is-price b {
  color: var(--green, #047857);
}
html[data-theme="light"] .rgbe-mcard-foot {
  border-top-color: rgba(15, 23, 42, .08);
}
html[data-theme="light"] .rgbe-mcard-foot .rgba-cmp-add-mini,
html[data-theme="light"] .rgbe-ai-rcard-acts .rgba-cmp-add-mini,
html[data-theme="light"] .rgbe-csim-acts .rgba-cmp-add-mini {
  border-color: rgba(15, 23, 42, .14);
  background: #F4F7FC;
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-mcard-foot .rgba-cmp-add-mini:hover,
html[data-theme="light"] .rgbe-ai-rcard-acts .rgba-cmp-add-mini:hover,
html[data-theme="light"] .rgbe-csim-acts .rgba-cmp-add-mini:hover {
  border-color: rgba(29, 86, 216, .38);
  background: #EFF6FF;
  color: var(--blue, #1D56D8);
}
html[data-theme="light"] .rgbe-mcard-link {
  color: var(--blue, #1D56D8);
}
html[data-theme="light"] .rgbe-mcard-link:hover {
  color: var(--blue-fill-hover, #1E40AF);
}

/* 2B. 3D AI Galaxy Studio Bar, Canvas Frame & Comparison Dock */
html[data-theme="light"] .rgbe-gal-bar {
  border-color: rgba(30, 58, 138, .11);
  background: rgba(238, 243, 252, .78);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05), inset 0 -1px 0 rgba(255, 255, 255, .88);
}
html[data-theme="light"] .rgbe-gal-legend {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-gal-swatch {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .86), 0 1px 4px rgba(11, 17, 32, .16);
}
html[data-theme="light"] #rgb-ai-galaxy .rgbe-3d-wrap {
  border-color: rgba(15, 23, 42, .12);
  background: radial-gradient(80% 75% at 50% 42%, rgba(29, 86, 216, .08), rgba(240, 244, 252, .97) 76%);
  box-shadow: inset 0 1px 0 #ffffff, 0 14px 36px -18px rgba(11, 17, 32, .14);
}
html[data-theme="light"] #rgb-ai-galaxy .rgbe-3d-pill {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(15, 23, 42, .13);
  color: var(--text, #0B1120);
  box-shadow: 0 4px 14px -6px rgba(11, 17, 32, .14);
}
html[data-theme="light"] #rgb-ai-galaxy .rgbe-3d-tip {
  background: rgba(255, 255, 255, .97);
  border-color: rgba(15, 23, 42, .15);
  box-shadow: inset 0 1px 0 #ffffff, 0 20px 44px -14px rgba(11, 17, 32, .22);
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-tip-head {
  border-bottom-color: rgba(15, 23, 42, .09);
}
html[data-theme="light"] .rgbe-tip-head strong {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-tip-head em {
  color: var(--text-3, #4A566E);
}
html[data-theme="light"] .rgbe-tip-row {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-tip-row b {
  color: var(--text, #0B1120);
}
html[data-theme="light"] #rgb-ai-galaxy .rgbe-ai-dock {
  border-color: rgba(30, 58, 138, .11);
  background: rgba(238, 243, 252, .78);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  color: var(--text-2, #2B364B);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05), inset 0 -1px 0 rgba(255, 255, 255, .88);
}
html[data-theme="light"] .rgbe-gal-chip {
  border-color: rgba(15, 23, 42, .13);
  background: #FFFFFF;
  color: var(--text, #0B1120);
  box-shadow: 0 1px 4px rgba(11, 17, 32, .05);
}
html[data-theme="light"] .rgbe-gal-chip button {
  color: var(--text-3, #4A566E);
}
html[data-theme="light"] .rgbe-gal-chip button:hover {
  color: var(--red, #D11A44);
}

/* 3. /ai/compare/ Searchable Combobox Bar, 4 Verdict Cards & Winner Highlights */
html[data-theme="light"] .rgbe-cmp-bar {
  border-color: rgba(30, 58, 138, .11);
  background:
    radial-gradient(66% 86% at 10% 0%, rgba(124, 58, 237, .09), transparent 66%),
    radial-gradient(58% 82% at 92% 100%, rgba(37, 99, 235, .09), transparent 66%),
    linear-gradient(166deg, rgba(255, 255, 255, .86) 0%, rgba(246, 250, 255, .80) 100%);
  backdrop-filter: blur(20px) saturate(168%);
  -webkit-backdrop-filter: blur(20px) saturate(168%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 6px rgba(15, 23, 42, .04),
    0 20px 48px -20px rgba(30, 58, 138, .15);
}
html[data-theme="light"] .rgbe-cmp-pop {
  border-color: rgba(15, 23, 42, .15);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  box-shadow: 0 18px 44px -12px rgba(11, 17, 32, .20);
}
html[data-theme="light"] .rgbe-cmp-pop-item {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-cmp-pop-item:hover {
  background: rgba(29, 86, 216, .09);
  border-color: rgba(29, 86, 216, .28);
}
html[data-theme="light"] table.cmp-table td.rgbe-cmp-win,
html[data-theme="light"] .rgbe-cmp-win.rgbe-cmp-win {
  background: linear-gradient(rgba(5, 150, 105, .10), rgba(5, 150, 105, .10)), #FFFFFF;
  color: #065F46;
}
html[data-theme="light"] .rgbe-cmp-vcard {
  border-color: rgba(30, 58, 138, .11);
  background:
    radial-gradient(76% 78% at 92% 0%, rgba(124, 58, 237, .075), transparent 64%),
    radial-gradient(64% 72% at 10% 100%, rgba(37, 99, 235, .065), transparent 66%),
    linear-gradient(166deg, rgba(255, 255, 255, .94) 0%, rgba(248, 251, 255, .90) 100%),
    #FFFFFF;
  backdrop-filter: blur(16px) saturate(165%);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 6px rgba(15, 23, 42, .04),
    0 14px 34px -16px rgba(30, 58, 138, .13);
}
html[data-theme="light"] .rgbe-cmp-vcard.is-good {
  border-color: rgba(5, 150, 105, .36);
  background:
    radial-gradient(76% 80% at 92% 0%, rgba(16, 185, 129, .14), transparent 64%),
    linear-gradient(166deg, rgba(255, 255, 255, .94) 0%, rgba(236, 253, 245, .90) 100%),
    #FFFFFF;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 14px 34px -16px rgba(5, 150, 105, .18);
}
html[data-theme="light"] .rgbe-cmp-vcard span {
  color: var(--text-3, #4A566E);
}
html[data-theme="light"] .rgbe-cmp-vcard.is-good span {
  color: #065F46;
}
html[data-theme="light"] .rgbe-cmp-vcard strong {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-cmp-vcard.is-good strong {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-cmp-vcard small {
  color: #065F46;
}

/* 4. Monthly AI Workload Cost Simulator */
html[data-theme="light"] .glass.rgbe-ai-csim.rgbe-aurora-host,
html[data-theme="light"] .glass.rgbe-ai-csim,
html[data-theme="light"] .rgbe-ai-csim {
  border-color: rgba(30, 58, 138, .11);
  background:
    radial-gradient(66% 58% at 10% 0%, rgba(124, 58, 237, .11), transparent 66%),
    radial-gradient(58% 58% at 90% 100%, rgba(37, 99, 235, .105), transparent 66%),
    radial-gradient(46% 48% at 88% 6%, rgba(16, 185, 129, .065), transparent 68%),
    linear-gradient(166deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .78) 54%, rgba(246, 250, 255, .82) 100%);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(30, 58, 138, .04),
    0 2px 6px rgba(15, 23, 42, .04),
    0 24px 56px -20px rgba(30, 58, 138, .16);
}
html[data-theme="light"] .rgbe-ai-csim-head h2,
html[data-theme="light"] .rgbe-ai-csim-head h3 {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-ai-csim-head p {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-ai-fx-pill {
  border-color: var(--green-bd, rgba(5, 150, 105, .28));
  background: #ECFDF5;
  color: var(--green, #047857);
}
html[data-theme="light"] .rgbe-ai-csl {
  border-color: rgba(30, 58, 138, .11);
  background: rgba(238, 243, 252, .78);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05), inset 0 -1px 0 rgba(255, 255, 255, .88);
}
html[data-theme="light"] .rgbe-ai-csl span {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-ai-csl strong {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-ai-csl input[type="range"] {
  accent-color: var(--blue, #1D56D8);
}
html[data-theme="light"] .rgbe-csim-card {
  border-color: rgba(30, 58, 138, .10);
  background:
    radial-gradient(78% 72% at 96% 0%, rgba(124, 58, 237, .07), transparent 64%),
    radial-gradient(64% 68% at 6% 100%, rgba(37, 99, 235, .06), transparent 66%),
    linear-gradient(166deg, rgba(255, 255, 255, .94) 0%, rgba(248, 251, 255, .90) 100%),
    #FFFFFF;
  backdrop-filter: blur(14px) saturate(162%);
  -webkit-backdrop-filter: blur(14px) saturate(162%);
  box-shadow: inset 0 1px 0 #ffffff, 0 8px 24px -14px rgba(30, 58, 138, .13);
}
html[data-theme="light"] .rgbe-csim-card:hover {
  border-color: rgba(37, 99, 235, .34);
  background:
    radial-gradient(84% 78% at 96% 0%, rgba(37, 99, 235, .10), transparent 66%),
    rgba(255, 255, 255, .94);
  box-shadow: inset 0 1px 0 #ffffff, 0 16px 34px -14px rgba(37, 99, 235, .20);
}
html[data-theme="light"] .rgbe-csim-top {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-csim-name {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-csim-name:hover {
  color: var(--blue, #1D56D8);
}
html[data-theme="light"] .rgbe-csim-bdg {
  border-color: var(--blue-bd, rgba(29, 86, 216, .26));
  background: #EFF6FF;
  color: var(--blue, #1D56D8);
}
html[data-theme="light"] .rgbe-csim-bdg.is-val {
  border-color: var(--green-bd, rgba(5, 150, 105, .28));
  background: #ECFDF5;
  color: var(--green, #047857);
}
html[data-theme="light"] .rgbe-csim-bdg.is-iq {
  border-color: var(--purple-bd, rgba(109, 40, 217, .26));
  background: #F5F3FF;
  color: var(--purple, #6D28D9);
}
html[data-theme="light"] .rgbe-csim-cost strong {
  color: #065F46;
}
html[data-theme="light"] .rgbe-csim-cost strong small {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-csim-cost span {
  color: var(--text-3, #4A566E);
}
html[data-theme="light"] .rgbe-csim-meta {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-csim-meta span {
  border-color: rgba(15, 23, 42, .09);
  background: #F4F7FC;
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-csim-meta .is-open {
  border-color: var(--green-bd, rgba(5, 150, 105, .28));
  background: #ECFDF5;
  color: var(--green, #047857);
}

/* 5. Local Ollama / GPU VRAM Readiness & Quantization Fit Lab */
html[data-theme="light"] .glass.rgbe-vram-lab.rgbe-aurora-host,
html[data-theme="light"] .glass.rgbe-vram-lab,
html[data-theme="light"] .rgbe-vram-lab {
  border-color: rgba(30, 58, 138, .11);
  background:
    radial-gradient(66% 58% at 10% 0%, rgba(124, 58, 237, .105), transparent 66%),
    radial-gradient(58% 56% at 90% 100%, rgba(16, 185, 129, .095), transparent 66%),
    radial-gradient(48% 48% at 88% 8%, rgba(37, 99, 235, .09), transparent 68%),
    linear-gradient(166deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .78) 54%, rgba(246, 250, 255, .82) 100%);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(30, 58, 138, .04),
    0 2px 6px rgba(15, 23, 42, .04),
    0 24px 56px -20px rgba(30, 58, 138, .16);
}
html[data-theme="light"] .rgbe-vram-lab h2,
html[data-theme="light"] .rgbe-vram-lab h3,
html[data-theme="light"] .rgbe-vram-lab .rgbe-wow-head h2,
html[data-theme="light"] .rgbe-vram-lab .rgbe-wow-head h3 {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-vram-lab .rgbe-wow-sub {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-vr-row > span {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-vr-qnote {
  color: var(--text-3, #4A566E);
}
html[data-theme="light"] .rgbe-vr-gauge-card {
  border-color: rgba(5, 150, 105, .30);
  background:
    radial-gradient(80% 90% at 96% 0%, rgba(16, 185, 129, .14), transparent 66%),
    linear-gradient(155deg, rgba(255, 255, 255, .94) 0%, rgba(236, 253, 245, .90) 100%),
    #FFFFFF;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 #ffffff, 0 8px 24px -12px rgba(5, 150, 105, .18);
}
html[data-theme="light"] .rgbe-vr-best span {
  color: var(--text-3, #4A566E);
}
html[data-theme="light"] .rgbe-vr-best strong {
  color: #065F46;
}
html[data-theme="light"] .rgbe-vr-best small {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-vr-card {
  border-color: rgba(30, 58, 138, .10);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px) saturate(155%);
  -webkit-backdrop-filter: blur(12px) saturate(155%);
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 18px -10px rgba(30, 58, 138, .11);
}
html[data-theme="light"] .rgbe-vr-card.is-fit {
  border-color: rgba(5, 150, 105, .34);
}
html[data-theme="light"] .rgbe-vr-card.is-offload {
  border-color: rgba(180, 83, 9, .28);
}
html[data-theme="light"] .rgbe-vr-card.is-no {
  opacity: .74;
  background: #F8FAFC;
}
html[data-theme="light"] .rgbe-vr-ctop strong {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-vr-st.is-fit {
  background: #ECFDF5;
  border-color: var(--green-bd, rgba(5, 150, 105, .28));
  color: var(--green, #047857);
}
html[data-theme="light"] .rgbe-vr-st.is-off {
  background: #FFFBEB;
  border-color: var(--amber-bd, rgba(180, 83, 9, .28));
  color: var(--amber, #92400E);
}
html[data-theme="light"] .rgbe-vr-st.is-no {
  background: #FFF1F2;
  border-color: var(--red-bd, rgba(209, 26, 68, .26));
  color: var(--red, #D11A44);
}
html[data-theme="light"] .rgbe-vr-role {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-vr-bar {
  background: #E2E8F0;
}
html[data-theme="light"] .rgbe-vr-bar i.is-w {
  background: #2563EB;
}
html[data-theme="light"] .rgbe-vr-bar i.is-kv {
  background: #7C3AED;
}
html[data-theme="light"] .rgbe-vr-nums {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-vr-cmd {
  border-color: rgba(15, 23, 42, .14);
  background: #F1F5FC;
  color: var(--blue, #1D56D8);
}
html[data-theme="light"] .rgbe-vr-cmd:hover {
  border-color: rgba(29, 86, 216, .45);
  background: #E7EFFB;
  color: var(--text, #0B1120);
}

/* 6. /ai/compare/ Live Head-to-Head Workload Cost & Speed Race */
html[data-theme="light"] .rgbe-cmp-race {
  border-color: rgba(37, 99, 235, .22);
  background:
    radial-gradient(66% 78% at 10% 0%, rgba(124, 58, 237, .10), transparent 66%),
    radial-gradient(62% 76% at 92% 100%, rgba(37, 99, 235, .105), transparent 66%),
    linear-gradient(166deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .78) 54%, rgba(245, 249, 255, .84) 100%);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(30, 58, 138, .04),
    0 2px 6px rgba(15, 23, 42, .04),
    0 24px 56px -20px rgba(30, 58, 138, .17);
}
html[data-theme="light"] .rgbe-cmp-race-head strong {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-cmp-race-head small {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-cmp-rpanel {
  border-color: rgba(30, 58, 138, .10);
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 20px -10px rgba(30, 58, 138, .11);
}
html[data-theme="light"] .rgbe-cmp-rtitle {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-cmp-rrow > span {
  color: var(--text, #0B1120);
}
html[data-theme="light"] .rgbe-cmp-rrow > strong {
  color: var(--text-2, #2B364B);
}
html[data-theme="light"] .rgbe-cmp-rrow.is-win > strong {
  color: var(--green, #047857);
}
html[data-theme="light"] .rgbe-cmp-rrow.is-fast > strong {
  color: var(--blue, #1D56D8);
}
html[data-theme="light"] .rgbe-cmp-rtrk {
  background: #E2E8F0;
}
html[data-theme="light"] .rgbe-cmp-rtrk i {
  background: #94A3B8;
}
html[data-theme="light"] .rgbe-cmp-rrow.is-win .rgbe-cmp-rtrk i {
  background: linear-gradient(90deg, #059669, #1D56D8);
}
html[data-theme="light"] .rgbe-cmp-rrow.is-fast .rgbe-cmp-rtrk i {
  background: linear-gradient(90deg, #1D56D8, #7C3AED);
}
html[data-theme="light"] .rgbe-rwin-tag {
  border-color: var(--green-bd, rgba(5, 150, 105, .28));
  background: #ECFDF5;
  color: var(--green, #047857);
}
html[data-theme="light"] .rgbe-rwin-tag.is-sky {
  border-color: var(--blue-bd, rgba(29, 86, 216, .26));
  background: #EFF6FF;
  color: var(--blue, #1D56D8);
}
