/* Shared "RA tasks" station (Guided Workflow Station C + Budget line editor). The host tool sets
   --vcl-rat-accent / --vcl-rat-accent-bg / --vcl-rat-accent-tint to its own identity colour, so
   the same markup reads green in the Guided Workflow and plum in Budget Planning. */
.vcl-app .vcl-rat { display: flex; flex-direction: column; gap: 14px; }
.vcl-app .vcl-rat.is-compact { gap: 10px; }

.vcl-app .vcl-rat-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vcl-app .vcl-rat.is-compact .vcl-rat-block { padding: 11px 13px; gap: 8px; }
.vcl-app .vcl-rat-block.is-core {
  background: var(--vcl-rat-accent-tint);
  border-color: color-mix(in srgb, var(--vcl-rat-accent) 40%, var(--border));
}
.vcl-app .vcl-rat-block.is-off { opacity: .72; }

.vcl-app .vcl-rat-block__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vcl-app .vcl-rat-block__id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vcl-app .vcl-rat-block__name { font-size: 13px; font-weight: 600; }
.vcl-app .vcl-rat-tag {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  color: var(--vcl-rat-accent); background: var(--vcl-rat-accent-bg);
  border-radius: 999px; padding: 3px 8px; white-space: nowrap;
}
.vcl-app .vcl-rat-hrs {
  font-family: var(--figure); font-size: 13px; font-variant-numeric: tabular-nums;
  font-weight: 600; white-space: nowrap;
}
.vcl-app .vcl-rat-hrs.is-none { color: var(--ink-faint); font-weight: 400; }
.vcl-app .vcl-rat-dash { color: var(--ink-faint); font-weight: 400; }
.vcl-app .vcl-rat-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* toggle */
.vcl-app .vcl-rat-toggle {
  border: none; background: none; padding: 0; cursor: pointer; flex: 0 0 auto; line-height: 0;
}
.vcl-app .vcl-rat-toggle__track {
  display: inline-block; position: relative; width: 42px; height: 23px; border-radius: 999px;
  background: var(--border); transition: background .15s;
}
.vcl-app .vcl-rat-toggle__thumb {
  position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s;
}
.vcl-app .vcl-rat-toggle.is-on .vcl-rat-toggle__track { background: var(--vcl-rat-accent); }
.vcl-app .vcl-rat-toggle.is-on .vcl-rat-toggle__thumb { transform: translateX(19px); }
.vcl-app .vcl-rat-toggle:focus-visible { outline: 2px solid var(--vcl-rat-accent); outline-offset: 2px; border-radius: 999px; }

/* chips */
.vcl-app .vcl-rat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vcl-app .vcl-rat-chip {
  font: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 11px; background: var(--panel); color: var(--muted); cursor: pointer;
}
.vcl-app .vcl-rat-chip.is-on {
  border-color: var(--vcl-rat-accent); background: var(--vcl-rat-accent-bg);
  color: var(--vcl-rat-accent); font-weight: 600;
}
.vcl-app .vcl-rat-chip:focus-visible { outline: 2px solid var(--vcl-rat-accent); outline-offset: 2px; }

/* adjustment row */
.vcl-app .vcl-rat-adj {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 1px dashed var(--border); padding-top: 10px;
}
.vcl-app .vcl-rat-adj__label { font-size: 12px; color: var(--muted); }
.vcl-app .vcl-rat-adj__base {
  font-size: 12px; font-weight: 600; color: var(--history);
  font-family: var(--figure); font-variant-numeric: tabular-nums;
}
.vcl-app .vcl-rat-stepper {
  /* align-items: stretch (not center) so the buttons are exactly as tall as the value cell --
     with a fixed button height the hover fill left a white strip above and below it. */
  display: inline-flex; align-items: stretch; background: var(--panel);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.vcl-app .vcl-rat-stepper button {
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1; width: 30px;
  padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--vcl-rat-accent); cursor: pointer;
}
.vcl-app .vcl-rat-stepper button:hover { background: var(--vcl-rat-accent-bg); }
.vcl-app .vcl-rat-stepper button:disabled { color: var(--ink-faint); cursor: not-allowed; background: transparent; }
.vcl-app .vcl-rat-stepper button:focus-visible { outline: 2px solid var(--vcl-rat-accent); outline-offset: -2px; }
.vcl-app .vcl-rat-stepper__val {
  min-width: 58px; text-align: center; padding: 7px 6px; font-size: 13px; font-weight: 600;
  font-family: var(--figure); font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.vcl-app .vcl-rat-stepper__val.is-zero { color: var(--ink-faint); font-weight: 500; }

/* Typeable variant of the value cell (the Guided Workflow's strengths field): same cell, but you
   can click into it and type. The browser's own number spinner is suppressed -- next to the
   stepper's own buttons it would be a second, differently-drawn plus/minus pair. */
.vcl-app .vcl-rat-stepper__in {
  min-width: 44px; width: 44px; box-sizing: content-box;
  text-align: center; padding: 7px 6px;
  font: inherit; font-size: 13px; font-weight: 600;
  font-family: var(--figure); font-variant-numeric: tabular-nums; color: var(--ink);
  background: transparent; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  -moz-appearance: textfield; appearance: textfield;
}
.vcl-app .vcl-rat-stepper__in::-webkit-outer-spin-button,
.vcl-app .vcl-rat-stepper__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vcl-app .vcl-rat-stepper__in:focus { outline: 2px solid var(--vcl-rat-accent); outline-offset: -2px; }
.vcl-app .vcl-rat-link {
  font: inherit; font-size: 12px; font-weight: 600; color: var(--vcl-rat-accent);
  background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.vcl-app .vcl-rat-link:focus-visible { outline: 2px solid var(--vcl-rat-accent); outline-offset: 2px; }

/* The "Own adjustment" line inside the methodology / breakdown boxes. */
.vcl-app .vcl-rat-own { color: var(--history); font-weight: 600; }
