/* ============================================
   Pixia - AI Background Remover studio
   (remove-background.html)
   Complements css/ai-tool.css (.at-* primitives)
   Scope: body.at-remove-bg
   ============================================ */

body.at-remove-bg {
  --rb-accent: #6366f1;
  --rb-accent-2: #8b5cf6;
  --rb-accent-ink: #ffffff;
  --rb-shadow: 0 16px 34px -18px rgba(99, 102, 241, .7);
  --rb-ease: var(--at-ease, cubic-bezier(.22, .61, .36, 1));
}

body.at-remove-bg [hidden] { display: none !important; }

/* Indigo accent replaces the shared identity. */
body.at-remove-bg .at-kicker {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
}
body.at-remove-bg .at-btn {
  color: #ffffff;
  box-shadow: var(--rb-shadow);
}
body.at-remove-bg .at-btn-alt {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}
body.at-remove-bg .at-progress-fill { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
body.at-remove-bg .at-drop-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, .18), rgba(139, 92, 246, .18));
  color: #4f46e5;
}

/* ---------- Layout ---------- */
body.at-remove-bg .rb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}
.rb-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  /* Preview follows the page scroll (sticky) while the settings column scrolls. */
  position: sticky;
  inset-block-start: 84px;
  align-self: start;
}
.rb-side {
  min-width: 0;
  display: grid;
  gap: 16px;
}
@media (max-width: 1060px) {
  body.at-remove-bg .rb-layout { grid-template-columns: 1fr; }
  .rb-main,
  .rb-side { position: static; }
}

body.at-remove-bg .at-panel { min-height: 0; min-width: 0; }

.rb-panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-block-end: 4px;
}
.rb-count {
  margin-inline-start: auto;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Source ---------- */
.rb-source { display: flex; flex-direction: column; gap: 12px; min-height: 0; }

.rb-source-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 598px;
  overflow: hidden;
}
.rb-source-panel .rb-source {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.rb-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 30px 20px;
  border: 1.6px dashed var(--glass-border-hover);
  border-radius: var(--at-radius-lg);
  background: var(--glass-bg);
  cursor: pointer;
  transition: border-color .2s var(--rb-ease), background .2s var(--rb-ease), transform .2s var(--rb-ease);
}
.rb-drop:hover { border-color: var(--rb-accent); }
.rb-drop:focus-visible { outline: 2px solid var(--rb-accent); outline-offset: 3px; }
.rb-drop.drag {
  border-color: var(--rb-accent);
  background: color-mix(in srgb, var(--rb-accent) 10%, var(--glass-bg));
  transform: scale(1.006);
}
.rb-drop input { display: none; }
.rb-drop-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--rb-accent) 16%, transparent);
  color: var(--rb-accent);
  margin-block-end: 2px;
}
.rb-drop-icon svg { width: 26px; height: 26px; }
.rb-drop-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--text-primary); }
.rb-drop-sub { font-size: 12.5px; color: var(--text-tertiary); line-height: 1.55; }
.rb-drop-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-start: 4px; }
.rb-drop-meta span {
  font-size: 11px; font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 3px 10px;
}

.rb-files { display: none; gap: 10px; }
.rb-files[data-has="1"] { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
/* Only the rows scroll; the "Add more / Clear all" actions stay put below. */
#rbFileItems { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.rb-file-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid var(--glass-border);
  border-radius: var(--at-radius-md);
  background: var(--glass-bg);
  cursor: pointer;
  transition: border-color .2s var(--rb-ease), background .2s var(--rb-ease);
  margin-top: 10px;
}
.rb-file-row:hover { border-color: var(--glass-border-hover); }
.rb-file-row.is-active {
  border-color: var(--rb-accent);
  background: color-mix(in srgb, var(--rb-accent) 9%, var(--glass-bg));
}
.rb-file-row.is-error { border-color: color-mix(in srgb, #ef4444 55%, var(--glass-border)); }
.rb-file-thumb {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 9px;
  object-fit: contain;
  background-color: var(--bg-secondary);
  background-image:
    linear-gradient(45deg, var(--glass-border) 25%, transparent 25%),
    linear-gradient(-45deg, var(--glass-border) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--glass-border) 75%),
    linear-gradient(-45deg, transparent 75%, var(--glass-border) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.rb-file-thumb.rb-thumb-load {
  display: grid;
  place-items: center;
  background-image: none;
  background-color: var(--bg-secondary);
}
/* Per-file progress ring: a determinate arc that fills with the image's real
   progress, or a spinning partial arc while no percentage exists yet
   (queued, or the model still loading). */
.rb-ring-svg { width: 26px; height: 26px; display: block; }
.rb-ring-track {
  fill: none;
  stroke: var(--glass-border-hover);
  stroke-width: 2.5;
}
.rb-ring-arc {
  fill: none;
  stroke: var(--rb-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset .25s var(--rb-ease);
}
.rb-file-thumb.is-indet .rb-ring-arc { transition: none; }
.rb-file-thumb.is-indet .rb-ring-svg { animation: rb-ring-spin .8s linear infinite; }
.rb-file-thumb.is-queued .rb-ring-arc { stroke: var(--text-muted); opacity: .6; }
.rb-file-thumb.is-queued .rb-ring-svg { animation-duration: 1.2s; }
@keyframes rb-ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .rb-file-thumb.is-indet .rb-ring-svg { animation-duration: 1.8s; }
}
.rb-file-info { min-width: 0; display: grid; gap: 2px; }
.rb-file-name {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rb-file-meta {
  font-size: 11.5px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.rb-file-row.is-error .rb-file-meta { color: #ef4444; }
.rb-file-rm {
  flex: 0 0 auto;
  border: 0; background: none;
  color: var(--text-muted);
  cursor: pointer; padding: 6px; border-radius: 8px;
  display: inline-flex;
  transition: color .2s var(--rb-ease), background .2s var(--rb-ease);
}
.rb-file-rm:hover { color: #ef4444; background: color-mix(in srgb, #ef4444 12%, transparent); }
.rb-file-rm svg { width: 15px; height: 15px; }

.rb-files-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.rb-mini {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  color: var(--text-secondary);
  font: 600 12.5px/1 var(--font-primary);
  cursor: pointer;
  transition: color .2s var(--rb-ease), border-color .2s var(--rb-ease);
}
.rb-mini svg { width: 14px; height: 14px; }
.rb-mini:hover { color: var(--text-primary); border-color: var(--glass-border-hover); }
.rb-mini-danger:hover { color: #ef4444; border-color: color-mix(in srgb, #ef4444 45%, transparent); }

/* ---------- Settings ---------- */
.rb-field { margin-block-start: 16px; }
.rb-field:first-of-type { margin-block-start: 0; }
.rb-legend {
  display: block;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--text-secondary); margin-block-end: 9px;
}
.rb-hint { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }
.rb-keys { text-align: center; margin-block-start: 12px; }

.rb-switch {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border-radius: var(--at-radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.rb-switch input { position: absolute; opacity: 0; pointer-events: none; }
.rb-switch i {
  position: relative; width: 38px; height: 22px; flex: 0 0 auto;
  border-radius: 999px; background: var(--bg-secondary);
  transition: background .22s var(--rb-ease);
}
.rb-switch i::after {
  content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .22s var(--rb-ease);
}
.rb-switch input:checked + i { background: var(--rb-accent); }
.rb-switch input:checked + i::after { transform: translateX(16px); }
[dir="rtl"] .rb-switch i::after { transform: translateX(0); }
[dir="rtl"] .rb-switch input:checked + i::after { transform: translateX(-16px); }

.rb-bg-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.rb-mode-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.rb-adv {
  margin-block-start: 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--at-radius-md);
  background: var(--glass-bg);
  overflow: hidden;
}
.rb-adv > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rb-adv > summary::-webkit-details-marker { display: none; }
.rb-adv > summary::after {
  content: "+";
  margin-inline-start: auto;
  font-size: 15px;
  line-height: 1;
  color: var(--text-muted);
}
.rb-adv[open] > summary::after { content: "\2212"; }
.rb-adv[open] > summary { border-block-end: 1px solid var(--glass-border); }
.rb-adv .rb-field { padding-inline: 13px; }
.rb-adv .rb-field:first-of-type { margin-block-start: 14px; }
.rb-adv .rb-field:last-of-type { padding-block-end: 13px; }
.rb-adv .rb-hint { padding-inline: 13px; margin-block-start: 10px; }
.rb-adv.is-off { opacity: .55; }
.rb-adv.is-off .rb-field { pointer-events: none; }
.rb-bg-opt {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 6px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass-bg);
  color: var(--text-secondary);
  font: 600 12px/1.2 var(--font-primary);
  text-align: center;
  cursor: pointer;
  transition: color .2s var(--rb-ease), border-color .2s var(--rb-ease), background .2s var(--rb-ease);
}
.rb-bg-opt:hover { color: var(--text-primary); border-color: var(--glass-border-hover); }
.rb-bg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rb-bg-opt:has(input:checked) {
  color: var(--rb-accent);
  border-color: var(--rb-accent);
  background: color-mix(in srgb, var(--rb-accent) 10%, var(--glass-bg));
}

.rb-bg-custom {
  display: flex; align-items: center; gap: 10px;
  margin-block-start: 10px;
  padding: 11px 13px;
  border-radius: var(--at-radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}
.rb-bg-custom input[type="color"] {
  width: 38px; height: 38px;
  padding: 0; border: 1px solid var(--glass-border);
  border-radius: 10px; background: none; cursor: pointer;
}
.rb-bg-custom .rb-hint { margin: 0; }

.rb-select, .rb-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--at-radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-family: inherit; font-size: 14px;
  outline: 0;
  color-scheme: light dark;
}
.rb-select option { color: var(--text-primary); background-color: var(--bg-secondary); }
.rb-select:focus, .rb-input:focus { border-color: var(--rb-accent); }

.rb-range { width: 100%; accent-color: var(--rb-accent); }
.rb-range-row { display: flex; align-items: center; gap: 12px; }
.rb-range-out {
  min-width: 34px; text-align: end;
  font-size: 13px; color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* ---------- Stage / preview ---------- */
.rb-stage-panel { display: flex; flex-direction: column; }
.rb-stage-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-block-end: 12px; }
.rb-stage-head h2 { margin: 0; }
.rb-zoom { justify-self: end; display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-bg); }
.rb-zoom-btn {
  min-width: 30px; height: 28px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--text-secondary); font: 600 12px/1 var(--font-primary); cursor: pointer;
  transition: color .2s var(--rb-ease), background .2s var(--rb-ease);
}
.rb-zoom-btn:hover { color: var(--text-primary); }
.rb-zoom-btn.is-active { background: var(--bg-card-hover); color: var(--text-primary); }
.rb-zoom-btn svg { width: 15px; height: 15px; }

.rb-stage {
  position: relative;
  flex: 1;
  min-height: 380px;
  max-height: min(770px, calc(100vh - 240px));
  display: flex;
  padding: 16px;
  border-radius: var(--at-radius-lg);
  border: 1px solid var(--glass-border);
  background-image: repeating-conic-gradient(rgba(128, 128, 128, .16) 0% 25%, transparent 0% 50%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  overflow: auto;
}
.rb-stage-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 34ch;
  margin: auto;
}
.rb-stage-empty svg { width: 44px; height: 44px; color: var(--text-muted); }
.rb-stage-empty strong { font-size: 15px; color: var(--text-secondary); font-weight: 600; }

.rb-canvas-wrap {
  position: relative;
  margin: auto;
}
.rb-canvas-wrap img {
  display: block;
  max-width: 100%;
  max-height: 738px;
  border-radius: 8px;
  transform-origin: center;
}
/* Replayed on every image change so the new picture eases in from slightly
   transparent + scaled down instead of snapping into place. */
@keyframes rb-img-swap {
  from { opacity: 0; transform: scale(.985); }
  to   { opacity: 1; transform: scale(1); }
}
.rb-canvas-wrap img.rb-img-in { animation: rb-img-swap .38s ease both; }
@media (prefers-reduced-motion: reduce) {
  .rb-canvas-wrap img.rb-img-in { animation: none; }
}

/* Before/after compare: two fitted panels inside the same stage. */
.rb-canvas-wrap.is-compare {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.rb-cmp {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rb-cmp img {
  display: block;
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  border-radius: 8px;
}
.rb-cmp figcaption {
  font: 600 12px/1 var(--font-primary);
  color: var(--text-tertiary);
}
@media (max-width: 560px) {
  .rb-canvas-wrap.is-compare { flex-direction: column; }
  .rb-cmp img { max-height: 320px; }
}

/* Dev-only mask inspection (window.__pixia_diag). */
.rb-view-btn.rb-view-dev { opacity: .85; }
.rb-canvas-wrap.is-maskview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.rb-mask-canvas {
  display: block;
  max-width: 100%;
  max-height: 700px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: #0b0b0b;
}
.rb-mask-empty {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Original / Result switch */
.rb-view {
  display: inline-flex;
  justify-self: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}
.rb-view-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  font: 600 13px/1 var(--font-primary);
  padding: 7px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s var(--rb-ease), background .15s var(--rb-ease);
}
.rb-view-btn:hover { color: var(--text-primary); }
.rb-view-btn:disabled { cursor: default; }
.rb-view.is-disabled { opacity: .45; }
.rb-view.is-disabled .rb-view-btn { cursor: default; color: var(--text-tertiary); }
.rb-view-btn.is-active {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff;
}

/* Info strip */
.rb-info {
  margin-block-start: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rb-info-cell {
  border: 1px solid var(--glass-border);
  border-radius: var(--at-radius-md);
  background: var(--glass-bg);
  padding: 10px 12px;
  min-width: 0;
}
.rb-info-k { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.rb-info-v {
  display: block; margin-block-start: 3px;
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rb-info-v.is-up { color: #ef4444; }
.rb-info-v.is-down {color: #FF9800;}

/* ---------- Results ---------- */
.rb-results { display: grid; gap: 8px; margin-block-start: 12px; }
.rb-result-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid var(--glass-border);
  border-radius: var(--at-radius-md);
  background: var(--glass-bg);
}
.rb-result-thumb {
  width: 44px; height: 44px; border-radius: 9px; object-fit: contain;
  background-color: var(--bg-secondary);
  background-image:
    linear-gradient(45deg, var(--glass-border) 25%, transparent 25%),
    linear-gradient(-45deg, var(--glass-border) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--glass-border) 75%),
    linear-gradient(-45deg, transparent 75%, var(--glass-border) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.rb-result-info { min-width: 0; display: grid; gap: 2px; }
.rb-result-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-result-meta { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rb-result-meta .is-down {color: #FF9800;font-weight: 600;}
.rb-result-dl {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font: 600 11.5px/1 var(--font-primary);
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: border-color .2s var(--rb-ease);
}
.rb-result-dl:hover { border-color: var(--rb-accent); }
.rb-result-dl svg { width: 13px; height: 13px; }
.rb-download-all { margin-block-start: 14px; width: 100%; }

/* ---------- Run / progress ---------- */
.rb-run-actions { display: grid; gap: 9px; }
.rb-run-btn { width: 100%; }
.rb-cancel {
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #ef4444 45%, transparent);
  background: var(--glass-bg);
  color: #ef4444;
  font: 600 13.5px/1 var(--font-primary);
  cursor: pointer;
  transition: background .2s var(--rb-ease);
}
.rb-cancel:hover { background: color-mix(in srgb, #ef4444 10%, var(--glass-bg)); }
.rb-progress { display: grid; gap: 8px; }
.rb-progress-track {
  height: 8px; border-radius: 999px; background: var(--bg-tertiary); overflow: hidden;
  display: block;
}
.rb-progress-fill {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width .25s var(--rb-ease);
}
/* Indeterminate state: the model bytes are in hand and the ONNX session is
   being built, which has no measurable percentage. A short bar sweeps across
   the track instead of a frozen number. */
.rb-progress[data-state="indeterminate"] .rb-progress-fill {
  width: 34% !important;
  transition: none;
  animation: rb-progress-sweep 1.1s var(--rb-ease) infinite;
}
@keyframes rb-progress-sweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(310%); }
}
@media (prefers-reduced-motion: reduce) {
  .rb-progress[data-state="indeterminate"] .rb-progress-fill { animation-duration: 2.4s; }
}
.rb-progress-msg { font-size: 12.5px; color: var(--text-tertiary); }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .rb-stage { min-height: 260px; }
  .rb-stage-head { grid-template-columns: 1fr auto; }
  .rb-stage-head h2 { grid-column: 1; grid-row: 1; }
  .rb-zoom { grid-column: 2; grid-row: 1; }
  .rb-view { grid-column: 1 / -1; grid-row: 2; margin-block-start: 4px; }
  .rb-canvas-wrap img { max-height: 320px; }
  .rb-info { grid-template-columns: 1fr; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .rb-file-meta, [dir="rtl"] .rb-result-meta { direction: ltr; text-align: start; }
