.status-line {
  color: var(--txt-dim);
  font-size: 11px;
  font-family: var(--font-mono);
}

.v1-status {
  border-top: 0;
  background: var(--activity);
  color: #fff;
  font-size: 11px;
  height: 24px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
  font-family: var(--font-mono);
  /* Base (LTR) order: loader/proc-count group on the left, active-tool
     label on the right. Mirrors main.css .v1-main and menubar.css
     .v1-menubar for non-RTL languages; full RTL mirror below. */
  direction: ltr;
}

/* Full RTL mirror: justify-content: space-between + flex order reversal
   alone swap which side each group sits on, no physical left/right values
   to fix here (unlike the menu bar's absolutely-positioned dropdowns) -
   except the progress bar fill below, which is absolutely positioned too. */
html[dir="rtl"] .v1-status {
  direction: rtl;
}

.v1-status-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.v1-status-loader {
  width: 30px;
  height: 20px;
  border: 1px solid var(--activity);
  background: var(--activity);
  border-radius: 2px;
  padding: 1px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  box-sizing: border-box;
}

.v1-status-loader-cell {
  background: #7a7a7a;
}

.v1-status-loader-cell.is-active {
  background: #3bd16f;
}

.v1-status-proc-count {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3bd16f;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid #5fbd7a;
  font-family: var(--font-mono);
}

.v1-status-proc-count.is-ok {
  color: #ffffff;
  background: #3bd16f;
  border-color: #5fbd7a;
}

.v1-status-proc-count.is-overload {
  color: #ffffff;
  background: #c0392b;
  border-color: #ff8d84;
}

.v1-status-progress {
  width: 130px;
  height: 16px;
  border: 1px solid #9ec5ff;
  border-radius: 8px;
  background: var(--activity);
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

.v1-status-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 100%;
  width: 0%;
  background: #3bd16f;
  transition: width 140ms linear;
}

/* RTL mirror: the fill is driven purely by width% (set from JS, unchanged)
   - flipping the anchor from left to right makes the same width% grow from
   the opposite edge, no JS/logic change needed. */
html[dir="rtl"] .v1-status-progress-bar {
  left: auto;
  right: 0;
}

.v1-status-progress-text {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
  font-family: var(--font-mono);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
