/* ==========================================================================
   ReTRACE route planner console (project page).
   Laid out as a 16:9 workspace at wide viewports (up to 1440 x 810).
   Type floor 14px so every label stays legible in a 180 mm figure.
   ========================================================================== */

.ra {
  --ra-ink: #012F63;
  --ra-text: #1d2838;
  --ra-sub: #4A5F7D;
  --ra-rule: #D5DCE6;
  --ra-tint: #F3F6FA;
  --ra-accent: #FE667B;
  --ra-ok: #1B7F5C;
  --ra-ok-bg: #E7F4EE;
  --ra-warn: #8A5A00;
  --ra-warn-bg: #FBF1DD;
  --ra-bad: #B42335;
  --ra-bad-bg: #FBE9EC;
  margin: 0 0 3rem;
  scroll-margin-top: 90px;
}

.ra-console {
  position: relative;
  z-index: 20;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 14px 22px;
  border: 1px solid var(--ra-rule);
  border-radius: 10px;
  background: #fff;
  color: var(--ra-text);
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.ra-console *, .ra-console *::before, .ra-console *::after { box-sizing: border-box; }
.project-container .ra-console p { margin: 0; font-size: inherit; line-height: inherit; }
.ra-console button { font: inherit; cursor: pointer; }
.ra-console [hidden] { display: none !important; }

@media (min-width: 1200px) {
  .ra-console {
    width: min(1440px, calc(100vw - 48px));
    margin-left: calc(50% - min(720px, 50vw - 24px));
    aspect-ratio: 16 / 9;
  }
  .ra-results { min-height: 0; }
  .ra-detail { overflow: auto; }
}
/* The page TOC rail sits in the gutter the wide console uses; hide it while
   the console is on screen. */
.ra-wide-in-view .pp-toc { opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }

/* --- Header ------------------------------------------------------------ */

.ra-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ra-rule);
}
.ra-brand {
  color: var(--ra-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ra-brand span {
  margin-left: 8px;
  color: var(--ra-sub);
  font-weight: 500;
}
.ra-model { margin-left: auto; color: var(--ra-sub); font-size: 15px; white-space: nowrap; }
.ra-model b { color: var(--ra-ink); font-weight: 600; }

/* --- Input band -------------------------------------------------------- */

.ra-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ra-ink);
  font-size: 14px;
  font-weight: 600;
}

.ra-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px 200px;
  column-gap: 16px;
  margin: 0;
}
.ra-target-row { display: flex; gap: 10px; }

.ra-console input[type="text"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #B9C5D4;
  border-radius: 6px;
  background: #fff;
  color: var(--ra-text);
  font-size: 15px;
  box-shadow: none;
}
.ra-console .ra-smiles { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.ra-console input[type="text"]:focus {
  outline: none;
  border-color: var(--ra-ink);
  box-shadow: 0 0 0 3px rgba(1, 47, 99, 0.14);
}
.ra-console input[type="text"]::placeholder { color: #6B7C93; }

.ra-draw,
.ra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ra-ink);
  border-radius: 6px;
  background: #fff;
  color: var(--ra-ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.ra-draw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ra-draw[aria-expanded="true"] { background: var(--ra-tint); }
.ra-draw:hover, .ra-btn:hover { background: var(--ra-tint); }
.ra-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ra-btn--primary, .ra-run {
  border: 1px solid var(--ra-ink);
  background: var(--ra-ink);
  color: #fff;
}
.ra-btn--primary:hover, .ra-run:hover { background: #0b3f7c; }
.ra-draw:focus-visible, .ra-btn:focus-visible, .ra-run:focus-visible, .ra-link:focus-visible {
  outline: 2px solid #5B82B3;
  outline-offset: 2px;
}

.ra-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 46px;
  margin: 0;
  padding: 3px;
  border: 1px solid #B9C5D4;
  border-radius: 6px;
  background: var(--ra-tint);
}
.ra-seg label { position: relative; display: flex; margin: 0; }
.ra-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ra-seg span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--ra-sub);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.ra-seg input:checked + span {
  background: #fff;
  color: var(--ra-ink);
  font-weight: 600;
  box-shadow: 0 0 0 1px #B9C5D4, 0 1px 2px rgba(1, 47, 99, 0.12);
}
.ra-seg input:focus-visible + span { outline: 2px solid #5B82B3; outline-offset: 1px; }

.ra-run {
  width: 100%;
  height: 46px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
}
.ra-run:disabled { opacity: 0.45; cursor: not-allowed; }
.ra-console input[type="text"]:disabled { background: var(--ra-tint); }

/* Sketcher: opens under the input band and pushes results down */
.ra-sketch {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--ra-rule);
  border-radius: 8px;
  background: var(--ra-tint);
}
.ra-sketch-pad {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
  border: 1px solid var(--ra-rule);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.ra-sketch-wait { color: var(--ra-sub); }
.ra-sketch-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* --- Run status strip ---------------------------------------------------- */

.ra-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--ra-rule);
  color: var(--ra-sub);
  font-size: 15px;
}
.ra-status:empty { display: none; }
.ra-status b { color: var(--ra-ink); font-weight: 600; }
.ra-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ra-ok);
  font-weight: 600;
}
.ra-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.ra-state--busy { color: var(--ra-ink); }
.ra-state--busy::before { background: var(--ra-accent); animation: ra-pulse 1.2s ease-in-out infinite; }
@keyframes ra-pulse { 50% { opacity: 0.25; } }
.ra-link {
  padding: 4px 12px;
  border: 1px solid var(--ra-rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ra-ink);
  font-size: 14px;
  font-weight: 600;
}
.ra-link[aria-expanded="true"] { background: var(--ra-tint); }

.ra-error {
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ra-bad-bg);
  color: var(--ra-bad);
}

/* --- Results --------------------------------------------------------- */

.ra-results {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 372px minmax(0, 1fr);
  gap: 16px;
  min-height: 440px;
}
.ra-results:has(.ra-empty:not([hidden])) { min-height: 300px; }
.ra-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--ra-rule);
  border-radius: 8px;
  color: var(--ra-sub);
}

/* Ranked route table */
.ra-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ra-rule);
  border-radius: 8px;
  overflow: hidden;
}
.ra-list .ra-row { flex: 1 1 36px; max-height: 52px; }
.ra-list-head,
.ra-row {
  display: grid;
  grid-template-columns: 24px 54px repeat(3, minmax(0, 1fr));
  align-items: center;
  column-gap: 10px;
  padding: 0 12px 0 14px;
}
.ra-list-head {
  height: 34px;
  border-bottom: 1px solid var(--ra-rule);
  background: var(--ra-tint);
  color: var(--ra-sub);
  font-size: 14px;
  font-weight: 600;
}
.ra-row {
  position: relative;
  width: 100%;
  height: 38px;
  border: 0;
  border-bottom: 1px solid #E8EDF3;
  border-radius: 0;
  background: #fff;
  color: var(--ra-text);
  text-align: left;
}
.ra-row:last-child { border-bottom: 0; }
.ra-row:hover { background: #F8FAFC; }
.ra-row[aria-selected="true"] { background: #EEF3F9; }
.ra-row[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ra-ink);
}
.ra-row:focus-visible { outline: 2px solid #5B82B3; outline-offset: -2px; }
.ra-row-rank { color: var(--ra-sub); font-size: 15px; font-weight: 600; }
.ra-row-score { color: var(--ra-ink); font-size: 17px; font-weight: 700; }
.ra-mini { display: grid; gap: 3px; font-size: 14px; line-height: 1.1; color: var(--ra-text); }
.ra-bar {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: #DFE6EF;
  overflow: hidden;
}
.ra-bar > i { display: block; height: 100%; background: var(--ra-ink); }

/* Selected route */
.ra-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--ra-rule);
  border-radius: 8px;
  overflow: hidden;
}
.ra-detail-head {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--ra-rule);
}
.ra-detail-title h4 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ra-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.ra-total { display: grid; justify-items: start; }
.ra-total b { color: var(--ra-ink); font-size: 28px; font-weight: 700; line-height: 1.05; }
.ra-total span, .ra-sub span { color: var(--ra-sub); font-size: 14px; }
.ra-subs { display: flex; gap: 22px; }
.ra-sub { display: grid; gap: 3px; min-width: 96px; }
.ra-sub b { color: var(--ra-text); font-size: 17px; font-weight: 600; line-height: 1.1; }
.ra-badge {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ra-tint);
  color: var(--ra-sub);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.ra-badge--ok { background: var(--ra-ok-bg); color: var(--ra-ok); }
.ra-badge--warn { background: var(--ra-warn-bg); color: var(--ra-warn); }
.ra-badge--bad { background: var(--ra-bad-bg); color: var(--ra-bad); }

/* Forward reaction scheme */
.ra-scheme {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  padding: 8px 16px 2px;
  overflow: hidden;
}
.ra-node {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  row-gap: 2px;
  flex: 0 0 auto;
}
.ra-node-mols { display: flex; align-items: center; gap: 6px; }
.ra-node-tag { color: var(--ra-sub); font-size: 14px; font-weight: 600; }
.ra-node-tag--target { color: var(--ra-ink); }
.ra-arrow {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  flex: 0 0 auto;
  min-width: 80px;
  padding: 0 6px;
}
.ra-arrow-mid {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-items: center;
}
.ra-arrow-co {
  align-self: end;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 6px;
}
.ra-arrow-mid .ra-arrow-num { align-self: start; margin-top: 8px; }
.ra-arrow-line {
  position: relative;
  justify-self: stretch;
  height: 2px;
  margin-right: 8px;
  background: var(--ra-ink);
}
.ra-arrow-foot { visibility: hidden; font-size: 14px; }
.ra-arrow-line::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -5px;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent var(--ra-ink);
}
.ra-arrow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ra-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.ra-plus { color: var(--ra-sub); font-size: 18px; font-weight: 600; line-height: 1; }

.ra-mol { display: flex; align-items: center; justify-content: center; }
.ra-mol svg { display: block; overflow: visible; }
.ra-mol--text code { max-width: 220px; font-size: 14px; word-break: break-all; }

/* Step cards */
.ra-cards {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 4px 16px 12px;
  list-style: none;
}
.project-container .ra-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 10px 14px 12px;
  border: 1px solid var(--ra-rule);
  border-radius: 8px;
  background: #FBFCFE;
  font-size: 14px;
  line-height: 1.45;
}
.ra-card-head { display: flex; align-items: center; gap: 10px; }
.ra-card-head .ra-verdict { margin-left: auto; }
.ra-card-meta { color: var(--ra-sub); }
.ra-card-meta b { color: var(--ra-text); font-weight: 600; }
.ra-card-head h5 {
  flex: 0 1 auto;
  margin: 0;
  color: var(--ra-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.ra-kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 10px; margin: 0; }
.ra-kv dt { color: var(--ra-sub); font-weight: 500; }
.ra-kv dd { margin: 0; color: var(--ra-text); }
.ra-verdict {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}
.ra-verdict--ok { background: var(--ra-ok-bg); color: var(--ra-ok); }
.ra-verdict--warn { background: var(--ra-warn-bg); color: var(--ra-warn); }
.ra-verdict--bad { background: var(--ra-bad-bg); color: var(--ra-bad); }

/* Tool-call drawer */
.ra-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 440px;
  padding: 16px 18px;
  border: 1px solid var(--ra-rule);
  border-radius: 8px;
  background: #fff;
  box-shadow: -12px 0 24px -18px rgba(1, 47, 99, 0.45);
  overflow: auto;
}
.ra-drawer h5 { margin: 0 0 10px; padding-right: 32px; color: var(--ra-ink); font-size: 16px; }
.ra-drawer-close { position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ra-sub); font-size: 20px; line-height: 28px; cursor: pointer; }
.ra-drawer-close:hover, .ra-drawer-close:focus-visible { background: #EEF2F7; color: var(--ra-ink); }
.ra-drawer table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
.ra-drawer td, .ra-drawer th { padding: 7px 4px; border: 0; border-bottom: 1px solid #E8EDF3; text-align: left; }
.ra-drawer th { color: var(--ra-sub); font-weight: 600; }
.ra-drawer td:nth-child(n+2), .ra-drawer th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.ra-drawer tfoot td { border-bottom: 0; font-weight: 600; color: var(--ra-ink); }
.ra-drawer .ra-tool-what { display: block; color: var(--ra-sub); font-size: 14px; }

/* --- Steering --------------------------------------------------------- */

.ra-steer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 200px;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--ra-rule);
}
.ra-steer .ra-label { margin: 0; }
.ra-steer .ra-btn { width: 100%; }

.project-container .ra-foot {
  margin: 0.8rem 0 0;
  color: #595856;
  font-size: 0.85rem;
  line-height: 1.6;
}
.ra-foot a { color: var(--pp-navy-light); font-weight: 600; }

/* --- Narrow screens ----------------------------------------------------- */

@media (max-width: 1100px) {
  .ra-input { grid-template-columns: 1fr; row-gap: 12px; }
  .ra-col--run > .ra-label { display: none; }
  .ra-results { grid-template-columns: 1fr; }
  .ra-cards { grid-auto-flow: row; }
  .ra-scheme { overflow-x: auto; justify-content: flex-start; }
  .ra-detail-head { flex-wrap: wrap; gap: 14px 22px; }
  .ra-badge { margin-left: 0; }
  .ra-steer { grid-template-columns: 1fr; }
  .ra-drawer { position: static; width: auto; }
}
@media (max-width: 640px) {
  .ra-console { padding: 16px; }
  .ra-target-row { flex-direction: column; }
  .ra-subs { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .ra-state--busy::before { animation: none; }
}

/* --- Page-level rules shared with the rest of /retrace/ ---------------- */

.pp-lead--after { margin-top: 1.4rem; }
/* In-page anchors land below the sticky masthead. */
.project-container .section-title[id] { scroll-margin-top: 90px; }
/* Paper figures ship with labels flush to the edge; give them a white mat.
   (This stylesheet loads only on /retrace/.) */
.project-container .teaser-image,
.project-container .figure-block img { padding: 10px; background: #fff; box-sizing: border-box; }


/* --- Results table on the page ----------------------------------------- */

.pp-table-wrap { margin: 1.4rem 0 0; overflow-x: auto; }
.pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.pp-table th,
.pp-table td {
  padding: 0.45rem 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--ra-line, rgba(37, 36, 34, 0.10));
  text-align: right;
  white-space: nowrap;
}
.pp-table th:first-child,
.pp-table td:first-child { text-align: left; }
.pp-table thead th {
  color: var(--pp-muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(37, 36, 34, 0.22);
}
.pp-table thead tr:first-child th { border-bottom: 0; padding-bottom: 0; color: var(--pp-navy); }
.pp-table tbody tr.pp-group td { border-top: 1px solid rgba(37, 36, 34, 0.22); }
.pp-table td.best { color: var(--pp-navy); font-weight: 700; }
.pp-table .pp-dim { color: var(--pp-muted); }
.project-container .pp-table-note { margin: 0.6rem 0 0; color: var(--pp-muted); font-size: 0.8rem; line-height: 1.55; }

.pp-scope {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.project-container .pp-scope li {
  padding-left: 1.05rem;
  border-left: 2px solid rgba(1, 47, 99, 0.22);
  color: #565049;
  font-size: 0.95rem;
  line-height: 1.7;
}
.pp-scope strong { color: var(--pp-navy); font-weight: 650; }


.ra-progress {
  color: var(--ra-muted, #6b6b76);
  font-variant-numeric: tabular-nums;
}

/* Live progress while a plan runs */
.ra-live {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-areas: "head head" "steps feed";
  gap: 10px 22px;
  padding: 12px 16px;
  border: 1px solid var(--ra-rule);
  border-radius: 8px;
  background: var(--ra-tint);
}
.ra-live[hidden] { display: none; }
.ra-live-head { grid-area: head; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ra-live-now { color: var(--ra-ink); font-weight: 600; }
.ra-clock { color: var(--ra-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ra-clock[data-hint]:not([data-hint=""])::after { content: " · " attr(data-hint); }
.ra-steps { grid-area: steps; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ra-step {
  position: relative;
  margin: 0;
  padding: 3px 0 3px 22px;
  color: var(--ra-sub);
  line-height: 1.4;
}
.ra-step::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 1.5px solid #9AA8BA;
  border-radius: 50%;
  background: #fff;
}
.ra-step.is-done { color: var(--ra-text); }
.ra-step.is-done::before { border-color: var(--ra-ok); background: var(--ra-ok); }
.ra-step.is-now { color: var(--ra-ink); font-weight: 600; }
.ra-step.is-now::before { border-color: var(--ra-ink); background: #fff; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 5px var(--ra-ink); animation: ra-pulse 1.2s ease-in-out infinite; }
.ra-feed { grid-area: feed; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.ra-feed li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0;
  padding: 3px 0;
  border-bottom: 1px solid #E3E8EF;
  color: var(--ra-text);
}
.ra-feed li:last-child { border-bottom: 0; }
.ra-feed li.is-running .ra-feed-what { color: var(--ra-ink); font-style: italic; }
.ra-feed-t, .ra-feed-ms { color: var(--ra-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ra-feed-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-feed:empty::before { content: "Planner actions appear here as they happen."; color: var(--ra-sub); }
.ra-wait { align-self: center; margin: auto; padding: 24px; max-width: 30em; color: var(--ra-sub); text-align: center; }
@media (max-width: 900px) {
  .ra-live { grid-template-columns: 1fr; grid-template-areas: "head" "steps" "feed"; }
}
@media (prefers-reduced-motion: reduce) {
  .ra-step.is-now::before { animation: none; }
}

.ra-quota {
  border: 1px solid rgba(20, 20, 30, 0.14);
  border-radius: 12px;
  padding: 0;
  max-width: 26rem;
  width: calc(100% - 2rem);
  box-shadow: 0 24px 64px rgba(12, 12, 24, 0.28);
  background: #fff;
  color: #17171f;
}

.ra-quota::backdrop {
  background: rgba(12, 12, 20, 0.45);
  backdrop-filter: blur(2px);
}

.ra-quota-body {
  padding: 1.1rem 1.25rem 1rem;
}

.ra-quota h3 {
  margin: 0 0 0.6rem;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.ra-quota-zh {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.ra-quota-en {
  margin: 0 0 1rem;
  color: #55555f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ra-quota-actions {
  display: flex;
  justify-content: flex-end;
}
