.rs-shell {
  --rs-purple: var(--purple, #642b8c);
  --rs-purple-deep: var(--purple-deep, #4a1b6b);
  --rs-purple-soft: var(--purple-soft, #f2eaf7);
  --rs-orange: var(--orange, #e97b24);
  --rs-orange-soft: var(--orange-soft, #fff1e5);
  --rs-ink: var(--charcoal, #20232a);
  --rs-ink-2: #343946;
  --rs-muted: var(--slate, #69717f);
  --rs-line: var(--border, #e1e4e8);
  --rs-panel: var(--panel, #f6f7f9);
  --rs-green: #188165;
  --rs-green-soft: #e8f6f1;
  --rs-blue: #2874a6;
  --rs-blue-soft: #eaf4fa;
  --rs-amber: #9b620e;
  --rs-amber-soft: #fff6df;
  --rs-red: #b54545;
  --rs-red-soft: #fff0f0;
  display: grid;
  gap: 16px;
  min-width: 0;
  color: var(--rs-ink);
}

.rs-shell *,
.rs-shell *::before,
.rs-shell *::after { box-sizing: border-box; }

.rs-shell button,
.rs-shell input,
.rs-shell textarea,
.rs-shell select { font: inherit; }

.rs-head,
.rs-job-head {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: 26px 28px;
  border: 1px solid rgba(100, 43, 140, .14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 91% 8%, rgba(233, 123, 36, .15), transparent 29%),
    linear-gradient(135deg, #fff 0%, #fbf8fd 64%, #fff9f4 100%);
  box-shadow: 0 14px 34px rgba(37, 27, 48, .07);
}

.rs-head::before,
.rs-job-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--rs-purple), var(--rs-orange));
}

.rs-head > div:first-child,
.rs-job-head > div:first-child { max-width: 760px; }

.rs-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--rs-purple);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rs-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.rs-title-row h1 {
  margin: 0;
  color: var(--rs-ink);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: .98;
}

.rs-title-row h1 span { color: var(--rs-orange); }

.rs-head > div > p,
.rs-job-head > div > p {
  max-width: 730px;
  margin: 12px 0 0;
  color: var(--rs-muted);
  font-size: 13px;
  line-height: 1.6;
}

.rs-head-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 8px;
  min-width: min(100%, 330px);
}

.rs-head-metrics > div,
.rs-job-status {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid rgba(100, 43, 140, .11);
  border-radius: 11px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 4px 14px rgba(38, 25, 49, .04);
}

.rs-head-metrics span,
.rs-job-status span {
  color: var(--rs-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.rs-head-metrics strong { font-size: 20px; line-height: 1.1; }
.rs-job-status { min-width: 250px; }
.rs-job-status strong { color: var(--rs-purple-deep); font-size: 15px; }
.rs-job-status small { color: var(--rs-muted); font-size: 10px; }

.rs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f0f1f4;
  color: #5e6673;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .035em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.rs-badge i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .82;
}

.rs-badge.purple { border-color: rgba(100, 43, 140, .17); background: var(--rs-purple-soft); color: var(--rs-purple); }
.rs-badge.green { border-color: rgba(24, 129, 101, .18); background: var(--rs-green-soft); color: var(--rs-green); }
.rs-badge.blue { border-color: rgba(40, 116, 166, .17); background: var(--rs-blue-soft); color: var(--rs-blue); }
.rs-badge.amber { border-color: rgba(155, 98, 14, .18); background: var(--rs-amber-soft); color: var(--rs-amber); }
.rs-badge.red { border-color: rgba(181, 69, 69, .18); background: var(--rs-red-soft); color: var(--rs-red); }

.rs-boundary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(155, 98, 14, .20);
  border-left: 4px solid var(--rs-orange);
  border-radius: 11px;
  background: linear-gradient(90deg, var(--rs-amber-soft), #fff 76%);
}

.rs-boundary-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--rs-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.rs-boundary > div { flex: 1; min-width: 0; }
.rs-boundary strong { color: #774907; font-size: 11px; }
.rs-boundary p { margin: 2px 0 0; color: #725a37; font-size: 10px; line-height: 1.45; }

.rs-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid var(--rs-line);
  border-radius: 12px;
  background: var(--rs-panel);
}

.rs-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rs-muted);
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}

.rs-tabs button:hover { color: var(--rs-purple); background: rgba(255, 255, 255, .7); }
.rs-tabs button.active { background: #fff; color: var(--rs-purple); box-shadow: 0 2px 8px rgba(28, 20, 36, .08); }
.rs-tabs button b {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--rs-purple-soft);
  font-size: 9px;
}

.rs-card,
.rs-type-card,
.rs-output-card,
.rs-governance-card,
.rs-followup,
.rs-start-card,
.rs-session-ribbon,
.rs-register-head {
  min-width: 0;
  border: 1px solid var(--rs-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(25, 30, 39, .045);
}

.rs-card > header,
.rs-output-card > header,
.rs-controls > header,
.rs-followups > header,
.rs-session-outputs > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--rs-line);
}

.rs-card > header h2,
.rs-card > header h3,
.rs-output-card > header h3,
.rs-followups > header h3,
.rs-session-outputs > header h3 {
  margin: 0;
  color: var(--rs-ink);
  font-size: 14px;
  line-height: 1.25;
}

.rs-card > header p,
.rs-output-card > header small,
.rs-controls > header p {
  display: block;
  margin: 4px 0 0;
  color: var(--rs-muted);
  font-size: 10px;
  line-height: 1.45;
}

.rs-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--rs-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rs-ink-2);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.rs-btn:hover:not(:disabled) { border-color: rgba(100, 43, 140, .35); background: var(--rs-purple-soft); color: var(--rs-purple); }
.rs-btn:active:not(:disabled) { transform: translateY(1px); }
.rs-btn.primary { border-color: var(--rs-purple); background: var(--rs-purple); color: #fff; }
.rs-btn.primary:hover:not(:disabled) { background: var(--rs-purple-deep); color: #fff; }
.rs-btn.danger { border-color: rgba(181, 69, 69, .30); color: var(--rs-red); }
.rs-btn.danger:hover:not(:disabled) { background: var(--rs-red-soft); color: var(--rs-red); }
.rs-btn.small { min-height: 29px; padding: 5px 9px; }
.rs-btn:disabled { opacity: .45; cursor: not-allowed; }

.rs-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rs-type-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 225px;
}

.rs-type-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--rs-purple);
}

.rs-type-card.measure::before { background: #2a79a9; }
.rs-type-card.technical::before { background: #7459a6; }
.rs-type-card.cost-plus::before { background: var(--rs-orange); }
.rs-type-card.control::before { background: #168165; }

.rs-type-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 15px 0;
}

.rs-type-card > header span:not(.rs-badge) {
  display: block;
  color: var(--rs-purple);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.rs-type-card h3 { margin: 4px 0 0; font-size: 14px; }
.rs-type-card > p { flex: 1; margin: 13px 15px; color: var(--rs-muted); font-size: 10px; line-height: 1.55; }
.rs-type-meta { display: grid; gap: 5px; margin: 0 15px 14px; color: #59616e; font-size: 9px; }
.rs-type-meta span::before { content: "✓"; margin-right: 6px; color: var(--rs-green); font-weight: 800; }
.rs-type-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-top: 1px solid var(--rs-line);
  background: #fbfbfc;
}

.rs-type-card > footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rs-purple);
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.rs-overview { display: grid; gap: 16px; }
.rs-table-card { overflow: hidden; }
.rs-table-wrap { width: 100%; overflow-x: auto; }
.rs-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.rs-table th {
  padding: 9px 13px;
  border-bottom: 1px solid var(--rs-line);
  background: #f8f9fa;
  color: var(--rs-muted);
  font-size: 8px;
  font-weight: 790;
  letter-spacing: .055em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.rs-table td { padding: 11px 13px; border-bottom: 1px solid #eceef1; vertical-align: middle; }
.rs-table tr:last-child td { border-bottom: 0; }
.rs-table td strong { display: block; font-size: 10px; }
.rs-table td small { display: block; margin-top: 3px; color: var(--rs-muted); font-size: 8px; }
.rs-table code { display: block; max-width: 260px; overflow: hidden; color: #6b5b76; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.rs-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rs-service-grid article {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid var(--rs-line);
  border-radius: 10px;
  background: #fafbfc;
}

.rs-service-grid span { color: var(--rs-muted); font-size: 8px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.rs-service-grid strong { color: var(--rs-ink-2); font-size: 10px; line-height: 1.4; }

.rs-prompt-layout {
  display: grid;
  grid-template-columns: minmax(230px, .34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.rs-prompt-list { display: grid; gap: 8px; }
.rs-prompt-card {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--rs-line);
  border-radius: 11px;
  background: #fff;
  color: var(--rs-ink);
  text-align: left;
  cursor: pointer;
}

.rs-prompt-card:hover { border-color: rgba(100, 43, 140, .30); }
.rs-prompt-card.active { border-color: rgba(100, 43, 140, .45); background: linear-gradient(135deg, var(--rs-purple-soft), #fff); box-shadow: inset 3px 0 var(--rs-purple); }
.rs-prompt-card > span { color: var(--rs-purple); font-size: 8px; font-weight: 820; letter-spacing: .12em; }
.rs-prompt-card strong { font-size: 12px; }
.rs-prompt-card small { color: var(--rs-muted); font-size: 9px; line-height: 1.45; }
.rs-prompt-card em { color: var(--rs-green); font-size: 8px; font-style: normal; font-weight: 750; }
.rs-prompt-card b { color: var(--rs-amber); font-size: 7px; font-weight: 820; letter-spacing: .045em; }

.rs-prompt-detail { overflow: hidden; }
.rs-prompt-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--rs-line);
}

.rs-prompt-meta > div { display: grid; gap: 4px; padding: 11px 14px; background: #fff; }
.rs-prompt-meta > div.wide { grid-column: 1 / -1; }
.rs-prompt-meta span,
.rs-asset-meta > span { color: var(--rs-muted); font-size: 8px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.rs-prompt-meta strong { font-size: 10px; }
.rs-prompt-meta code,
.rs-version-history code,
.rs-asset-meta code,
.rs-hash code,
.rs-pin-list code,
.rs-governance-card code {
  overflow-wrap: anywhere;
  color: #66576f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  line-height: 1.4;
}

.rs-prompt-columns,
.rs-workbench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 15px 17px;
}

.rs-prompt-columns section,
.rs-workbench-grid section {
  padding: 13px;
  border: 1px solid var(--rs-line);
  border-radius: 10px;
  background: #fafbfc;
}

.rs-prompt-columns h3,
.rs-workbench-grid h3,
.rs-version-history h3 { margin: 0 0 9px; font-size: 11px; }
.rs-prompt-columns ol,
.rs-workbench-grid ol { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: var(--rs-muted); font-size: 9px; line-height: 1.45; }

.rs-readonly-prompt { display: grid; gap: 6px; padding: 0 17px 16px; }
.rs-readonly-prompt > span { color: var(--rs-muted); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.rs-readonly-prompt textarea {
  width: 100%;
  min-height: 450px;
  padding: 14px;
  border: 1px solid #d8dce2;
  border-radius: 10px;
  outline: 0;
  background: #f8f9fb;
  color: #2e3540;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  line-height: 1.6;
  resize: vertical;
}
.rs-readonly-prompt small { color: var(--rs-amber); font-size: 8px; }

.rs-method-block,
.rs-source-warning,
.rs-derived-block {
  display: grid;
  gap: 4px;
  padding: 11px 14px;
  border-top: 1px solid rgba(155, 98, 14, .20);
  border-bottom: 1px solid rgba(155, 98, 14, .20);
  background: var(--rs-amber-soft);
}
.rs-method-block strong,
.rs-source-warning strong,
.rs-derived-block strong { color: #7a4b08; font-size: 9px; letter-spacing: .035em; }
.rs-method-block span,
.rs-source-warning span,
.rs-derived-block p { margin: 0; color: #735a35; font-size: 8px; line-height: 1.5; }
.rs-type-workbench > .rs-method-block { margin: 0; border-right: 0; border-left: 0; }

.rs-source-standard,
.rs-execution-components { border-top: 1px solid var(--rs-line); }
.rs-source-standard > header,
.rs-execution-components > header,
.rs-execution-components > section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
}
.rs-source-standard > header h3,
.rs-execution-components > header h3 { margin: 0; font-size: 12px; }
.rs-execution-components > section { margin: 0 17px 14px; border: 1px solid var(--rs-line); border-radius: 9px; background: #fafbfc; }
.rs-execution-components > section > header { padding: 10px 12px; }
.rs-execution-components > section > p { margin: 0; padding: 0 12px 11px; color: var(--rs-muted); font-size: 8px; overflow-wrap: anywhere; }
.rs-execution-components .rs-readonly-prompt textarea { min-height: 220px; }
.rs-execution-components .rs-readonly-prompt.overlay textarea { min-height: 260px; }
.rs-execution-components .rs-readonly-prompt.derived textarea { border-color: rgba(155, 98, 14, .28); background: #fffaf0; }

.rs-version-history { padding: 15px 17px; border-top: 1px solid var(--rs-line); background: #fbfbfc; }
.rs-version-history article { display: grid; grid-template-columns: 190px 1fr minmax(180px, .6fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rs-line); }
.rs-version-history article > div { display: flex; align-items: center; gap: 8px; }
.rs-version-history article span { color: var(--rs-muted); font-size: 9px; }

.rs-assets { display: grid; gap: 14px; }
.rs-asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rs-asset-card { overflow: hidden; }
.rs-logo-preview,
.rs-doc-preview {
  height: 160px;
  display: grid;
  place-items: center;
  margin: 15px;
  border: 1px dashed #d7dbe1;
  border-radius: 11px;
  background:
    linear-gradient(45deg, #f5f6f8 25%, transparent 25%),
    linear-gradient(-45deg, #f5f6f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f5f6f8 75%),
    linear-gradient(-45deg, transparent 75%, #f5f6f8 75%), #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.rs-logo-preview img { max-width: 72%; max-height: 115px; object-fit: contain; }
.rs-doc-preview { align-content: center; gap: 8px; }
.rs-doc-preview span {
  width: 62px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--rs-purple), #8651aa);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 25px rgba(100, 43, 140, .20);
}
.rs-doc-preview strong { font-size: 10px; }
.rs-asset-meta { display: grid; gap: 6px; padding: 0 17px 15px; }
.rs-asset-meta p { margin: 0; color: var(--rs-muted); font-size: 9px; line-height: 1.4; }
.rs-asset-card > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 15px; border-top: 1px solid var(--rs-line); background: #fafbfc; }

.rs-note,
.rs-method-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(100, 43, 140, .15);
  border-radius: 10px;
  background: var(--rs-purple-soft);
}
.rs-note strong,
.rs-method-note strong { flex: 0 0 auto; color: var(--rs-purple-deep); font-size: 10px; }
.rs-note span,
.rs-method-note span { color: #63586b; font-size: 9px; line-height: 1.5; }

.rs-output-register { display: grid; gap: 13px; }
.rs-register-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; }
.rs-register-head h2 { margin: 0; font-size: 14px; }
.rs-register-head p { max-width: 800px; margin: 4px 0 0; color: var(--rs-muted); font-size: 10px; line-height: 1.45; }
.rs-output-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.rs-output-card { overflow: hidden; }
.rs-output-card > header > div > span { display: block; margin-bottom: 4px; color: var(--rs-purple); font-size: 8px; font-weight: 820; letter-spacing: .08em; }
.rs-provider-lock-note { display: grid; gap: 3px; padding: 10px 14px; border-bottom: 1px solid rgba(155, 98, 14, .18); background: var(--rs-amber-soft); }
.rs-provider-lock-note strong { color: #7d4d08; font-size: 9px; }
.rs-provider-lock-note span { color: #745a34; font-size: 8px; line-height: 1.4; }
.rs-output-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rs-line); }
.rs-output-facts > div { display: grid; gap: 4px; padding: 11px; border-right: 1px solid var(--rs-line); }
.rs-output-facts > div:last-child { border-right: 0; }
.rs-output-facts span { color: var(--rs-muted); font-size: 8px; }
.rs-output-facts strong { font-size: 10px; }
.rs-output-facts strong.blocked { color: var(--rs-red); }
.rs-hash { display: grid; gap: 5px; padding: 11px 15px; background: #fafbfc; }
.rs-hash span { color: var(--rs-muted); font-size: 8px; font-weight: 760; text-transform: uppercase; }
.rs-hash small { color: var(--rs-muted); font-size: 7px; line-height: 1.4; }
.rs-outstanding { padding: 12px 15px; border-top: 1px solid var(--rs-line); background: var(--rs-amber-soft); }
.rs-outstanding strong { color: #7b4c08; font-size: 9px; }
.rs-outstanding ul { display: grid; gap: 3px; margin: 7px 0 0; padding-left: 17px; color: #745b38; font-size: 8px; }
.rs-output-card > footer { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 11px 13px; border-top: 1px solid var(--rs-line); }
.rs-output-card.compact { margin-top: 10px; box-shadow: none; }

.rs-audit { overflow: hidden; }
.rs-audit-list { padding: 5px 17px 12px; }
.rs-audit-list > article { display: grid; grid-template-columns: 135px 15px minmax(0, 1fr); gap: 9px; min-height: 70px; }
.rs-audit-list time { padding-top: 14px; color: var(--rs-muted); font-size: 8px; }
.rs-audit-dot { position: relative; width: 9px; height: 9px; margin-top: 16px; border: 2px solid var(--rs-purple); border-radius: 50%; background: #fff; }
.rs-audit-dot::after { content: ""; position: absolute; top: 8px; left: 2px; width: 1px; height: 57px; background: #dedfe4; }
.rs-audit-list > article:last-child .rs-audit-dot::after { display: none; }
.rs-audit-list > article > div { padding: 12px 0; border-bottom: 1px solid #eceef1; }
.rs-audit-list strong { font-size: 10px; }
.rs-audit-list p { margin: 4px 0; color: var(--rs-muted); font-size: 9px; line-height: 1.45; }
.rs-audit-list small { color: #82778a; font-size: 8px; }
.rs-audit > footer { padding: 12px 17px; border-top: 1px solid var(--rs-line); background: var(--rs-amber-soft); color: #775c35; font-size: 9px; }

.rs-empty {
  min-height: 150px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 24px;
  color: var(--rs-muted);
  text-align: center;
}
.rs-empty.tall { min-height: 300px; border: 1px dashed #d7dbe1; border-radius: 12px; background: #fafbfc; }
.rs-empty strong { color: var(--rs-ink); font-size: 12px; }
.rs-empty span { max-width: 540px; font-size: 10px; line-height: 1.5; }

.rs-job-type-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--rs-line);
  border-radius: 12px;
  background: var(--rs-panel);
}
.rs-job-type-picker button {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 53px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rs-muted);
  text-align: left;
  cursor: pointer;
}
.rs-job-type-picker button:hover { background: rgba(255, 255, 255, .7); color: var(--rs-purple); }
.rs-job-type-picker button.active { background: #fff; color: var(--rs-purple); box-shadow: 0 3px 10px rgba(28, 20, 36, .08); }
.rs-job-type-picker button > span { font-size: 8px; font-weight: 820; letter-spacing: .09em; }
.rs-job-type-picker button > strong { font-size: 11px; }
.rs-job-type-picker button > b { position: absolute; top: 8px; right: 8px; min-width: 20px; padding: 2px 5px; border-radius: 999px; background: var(--rs-purple-soft); font-size: 8px; text-align: center; }

.rs-start-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .35fr);
  overflow: hidden;
}
.rs-start-card > div { padding: 25px 27px; }
.rs-start-card > div > span { color: var(--rs-purple); font-size: 9px; font-weight: 820; letter-spacing: .11em; }
.rs-start-card h2 { margin: 7px 0 8px; font-size: 22px; }
.rs-start-card p { max-width: 680px; margin: 0; color: var(--rs-muted); font-size: 11px; line-height: 1.55; }
.rs-start-card ul { display: grid; gap: 7px; margin: 17px 0 0; padding-left: 18px; color: var(--rs-muted); font-size: 10px; }
.rs-start-card aside { display: grid; align-content: center; justify-items: start; gap: 9px; padding: 25px; border-left: 1px solid var(--rs-line); background: linear-gradient(145deg, var(--rs-purple-soft), #fff); }
.rs-start-card aside > strong { font-size: 12px; }
.rs-start-card aside p { margin: 0; color: var(--rs-muted); font-size: 9px; line-height: 1.45; }
.rs-start-card aside small { color: var(--rs-red); font-size: 8px; }

.rs-session-ribbon {
  display: grid;
  grid-template-columns: 1.35fr .55fr .8fr .8fr auto;
  align-items: center;
  overflow: hidden;
}
.rs-session-ribbon > div { display: grid; gap: 3px; min-height: 58px; align-content: center; padding: 10px 14px; border-right: 1px solid var(--rs-line); }
.rs-session-ribbon span { color: var(--rs-muted); font-size: 8px; font-weight: 760; text-transform: uppercase; }
.rs-session-ribbon strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.rs-session-ribbon > .rs-btn { margin: 0 12px; }

.rs-job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(320px, .58fr);
  gap: 14px;
  align-items: start;
}
.rs-job-main,
.rs-job-aside { display: grid; gap: 14px; min-width: 0; }

.rs-first-output {
  overflow: hidden;
  border: 1px solid var(--rs-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(25, 30, 39, .05);
}

.rs-brief-intake { overflow: hidden; }
.rs-brief-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .65fr); }
.rs-brief-grid > form { padding: 17px; }
.rs-brief-grid > form .rs-response-field { margin-top: 0; }
.rs-brief-grid > form textarea { min-height: 220px; }
.rs-brief-grid > form .rs-btn { margin-top: 11px; }
.rs-brief-grid > aside { display: grid; align-content: start; border-left: 1px solid var(--rs-line); background: #fafbfc; }
.rs-brief-grid > aside section { padding: 13px 15px; border-bottom: 1px solid var(--rs-line); }
.rs-brief-grid > aside section:last-child { border-bottom: 0; }
.rs-brief-grid > aside section > strong { display: inline-block; margin-right: 7px; font-size: 9px; }
.rs-brief-grid > aside p { margin: 7px 0 0; color: var(--rs-muted); font-size: 8px; line-height: 1.45; }
.rs-brief-grid > aside ul { display: grid; gap: 3px; margin: 7px 0 0; padding-left: 16px; color: var(--rs-muted); font-size: 8px; }
.rs-sequenced-section { display: grid; grid-template-columns: 44px minmax(0, 1fr); border-bottom: 1px solid var(--rs-line); }
.rs-sequenced-section:last-child { border-bottom: 0; }
.rs-step {
  display: grid;
  place-items: start center;
  padding-top: 18px;
  border-right: 1px solid var(--rs-line);
  background: linear-gradient(180deg, var(--rs-purple-soft), #fff);
  color: var(--rs-purple);
  font-size: 14px;
  font-weight: 850;
}
.rs-sequenced-section > div { min-width: 0; padding: 17px 18px; }
.rs-sequenced-section h3 { margin: 0 0 12px; font-size: 14px; }
.rs-section-intro { margin: -6px 0 11px; color: var(--rs-muted); font-size: 9px; }

.rs-fact-grid,
.rs-stage-positions,
.rs-issue-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.rs-fact-grid > section,
.rs-stage-positions > section,
.rs-issue-columns > section { min-width: 0; padding: 11px; border: 1px solid var(--rs-line); border-radius: 9px; background: #fafbfc; }
.rs-fact-grid > section:nth-child(1) { border-top: 3px solid var(--rs-blue); }
.rs-fact-grid > section:nth-child(2) { border-top: 3px solid var(--rs-green); }
.rs-fact-grid > section:nth-child(3) { border-top: 3px solid var(--rs-orange); }
.rs-fact-grid strong { font-size: 9px; }
.rs-fact-grid ul,
.rs-stage-positions ul { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 16px; color: var(--rs-muted); font-size: 8px; line-height: 1.45; }
.rs-stage-positions > section.control { border-top: 3px solid var(--rs-green); }
.rs-stage-positions > section.measure { border-top: 3px solid var(--rs-purple); }
.rs-stage-positions > section.resolve { border-top: 3px solid var(--rs-orange); }
.rs-stage-positions header,
.rs-issue-columns > section > header { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.rs-stage-positions header strong { font-size: 10px; letter-spacing: .05em; }

.rs-issue-columns > section > header strong { font-size: 9px; }
.rs-issue-columns > section > header span { color: var(--rs-muted); font-size: 8px; }
.rs-issue-columns > section > article { margin-top: 8px; padding: 8px; border: 1px solid rgba(181, 69, 69, .15); border-radius: 7px; background: var(--rs-red-soft); }
.rs-issue-columns > section > article.resolved { border-color: rgba(24, 129, 101, .16); background: var(--rs-green-soft); }
.rs-issue-columns p { margin: 0; color: #6d4141; font-size: 8px; line-height: 1.45; }
.rs-issue-columns article.resolved p { color: #3e6d60; text-decoration: line-through; }
.rs-issue-columns small { display: block; margin-top: 5px; color: var(--rs-green); font-size: 7px; }
.rs-issue-columns blockquote { margin: 7px 0 0; padding: 7px 8px; border-left: 2px solid var(--rs-green); background: rgba(255, 255, 255, .66); color: #345f54; font-size: 8px; line-height: 1.45; }
.rs-issue-resolution { display: grid; gap: 7px; margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(181, 69, 69, .16); }
.rs-issue-resolution label { display: grid; gap: 4px; }
.rs-issue-resolution label > span { color: #765252; font-size: 7px; font-weight: 760; text-transform: uppercase; }
.rs-issue-resolution textarea,
.rs-issue-resolution input { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid rgba(181, 69, 69, .22); border-radius: 6px; outline: 0; background: #fff; color: var(--rs-ink); font-size: 8px; }
.rs-issue-resolution textarea { min-height: 70px; resize: vertical; line-height: 1.4; }
.rs-issue-resolution .rs-btn { justify-self: start; margin-top: 1px; border: 1px solid rgba(181, 69, 69, .28); padding: 5px 9px; background: #fff; color: var(--rs-red); }
.rs-issue-resolution > small { color: #7b6262; line-height: 1.4; }
.rs-none { display: grid; place-items: center; min-height: 64px; margin-top: 8px; border: 1px dashed #d8dce1; border-radius: 7px; color: var(--rs-muted); font-size: 8px; }

.rs-question-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: questions; }
.rs-question-list > li { counter-increment: questions; }
.rs-question-list label,
.rs-question-list > li > div {
  position: relative;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid var(--rs-line);
  border-radius: 9px;
  background: #fff;
}
.rs-question-list label::before,
.rs-question-list > li > div::before {
  content: counter(questions);
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--rs-purple-soft);
  color: var(--rs-purple);
  font-size: 9px;
  font-weight: 820;
}
.rs-question-list input { position: absolute; top: 14px; right: 13px; width: 15px; height: 15px; accent-color: var(--rs-purple); }
.rs-question-list label > span,
.rs-question-list > li > div > *:not(::before) { min-width: 0; }
.rs-question-list strong { display: block; padding-right: 24px; font-size: 9px; line-height: 1.45; }
.rs-question-list small { display: block; margin-top: 4px; color: var(--rs-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7px; }

.rs-response-field,
.rs-governance-card label,
.rs-command form label { display: grid; gap: 6px; margin-top: 12px; }
.rs-response-field > span,
.rs-governance-card label > span,
.rs-command form label > span { color: var(--rs-muted); font-size: 8px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.rs-response-field textarea,
.rs-governance-card input,
.rs-command input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7dbe1;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--rs-ink);
  font-size: 10px;
}
.rs-response-field textarea { min-height: 100px; padding: 10px 11px; line-height: 1.5; resize: vertical; }
.rs-governance-card input,
.rs-command input { height: 38px; padding: 0 11px; }
.rs-response-field textarea:focus,
.rs-governance-card input:focus,
.rs-command input:focus { border-color: rgba(100, 43, 140, .55); box-shadow: 0 0 0 3px rgba(100, 43, 140, .09); }
.rs-response-field small,
.rs-governance-card small { color: var(--rs-muted); font-size: 8px; line-height: 1.4; }
.rs-response-field + .rs-btn { margin-top: 10px; }
.rs-recorded-response { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--rs-green); border-radius: 0 8px 8px 0; background: var(--rs-green-soft); }
.rs-recorded-response span { color: var(--rs-green); font-size: 8px; font-weight: 760; }
.rs-recorded-response p { margin: 5px 0 0; color: #355c52; font-size: 9px; line-height: 1.5; white-space: pre-wrap; }

.rs-followups,
.rs-session-outputs { display: grid; gap: 10px; }
.rs-followups > header,
.rs-session-outputs > header { padding: 0 2px 9px; border-bottom: 0; }
.rs-followup { padding: 14px; box-shadow: none; }
.rs-followup.current { border-color: rgba(100, 43, 140, .30); box-shadow: inset 3px 0 var(--rs-purple); }
.rs-followup > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rs-followup > header strong { font-size: 11px; }
.rs-followup > header span { color: var(--rs-muted); font-size: 8px; }

.rs-type-workbench { overflow: hidden; }
.rs-method-note { margin: 0 17px 16px; }
.rs-controls { overflow: hidden; }
.rs-controls > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-control-check { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; padding: 12px 14px; border-right: 1px solid var(--rs-line); border-bottom: 1px solid var(--rs-line); cursor: pointer; }
.rs-control-check:nth-child(even) { border-right: 0; }
.rs-control-check input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--rs-purple); }
.rs-control-check strong { display: block; font-size: 9px; line-height: 1.35; }
.rs-control-check small { display: block; margin-top: 4px; color: var(--rs-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7px; }
.rs-controls > footer { padding: 10px 14px; background: var(--rs-amber-soft); color: #765c36; font-size: 8px; }

.rs-governance-card { display: grid; gap: 10px; padding: 13px; box-shadow: none; }
.rs-governance-card.success { border-color: rgba(24, 129, 101, .21); background: linear-gradient(145deg, var(--rs-green-soft), #fff); }
.rs-governance-card.warning { border-color: rgba(181, 69, 69, .20); background: linear-gradient(145deg, var(--rs-red-soft), #fff); }
.rs-governance-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rs-governance-card > header > div { display: grid; gap: 3px; }
.rs-governance-card > header span:not(.rs-badge) { color: var(--rs-muted); font-size: 8px; font-weight: 760; text-transform: uppercase; }
.rs-governance-card > header strong { font-size: 11px; }
.rs-governance-card > p { margin: 0; color: var(--rs-muted); font-size: 9px; line-height: 1.45; }
.rs-governance-card .rs-btn { justify-self: start; }

.rs-production-types button { min-height: 68px; }
.rs-production-types button > small { color: var(--rs-muted); font-size: 7px; line-height: 1.25; }
.rs-production-types button:disabled { cursor: wait; opacity: .55; }
.rs-production-register {
  overflow: hidden;
  border: 1px solid var(--rs-line);
  border-radius: 13px;
  background: #fff;
}
.rs-production-register > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--rs-line); }
.rs-production-register > header h2 { margin: 3px 0 0; font-size: 14px; }
.rs-production-register > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rs-line); }
.rs-production-register > div > button { display: grid; gap: 4px; min-width: 0; padding: 11px 13px; border: 0; background: #fff; color: var(--rs-ink); text-align: left; cursor: pointer; }
.rs-production-register > div > button:hover,
.rs-production-register > div > button.active { background: var(--rs-purple-soft); }
.rs-production-register button > span { color: var(--rs-purple); font-size: 8px; font-weight: 800; letter-spacing: .05em; }
.rs-production-register button > strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.rs-production-register button > small { color: var(--rs-muted); font-size: 8px; }
.rs-production-ai { overflow: hidden; }
.rs-production-ai > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 17px; }
.rs-production-ai > header h2 { margin: 3px 0 0; font-size: 14px; }
.rs-production-ai > header p { max-width: 680px; margin: 5px 0 0; color: var(--rs-muted); font-size: 9px; line-height: 1.45; }
.rs-production-ai-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 17px; border-top: 1px solid var(--rs-line); background: var(--rs-purple-soft); }
.rs-production-ai-notice { padding: 13px 17px; border-top: 1px solid var(--rs-line); background: var(--rs-amber-soft); color: #765c36; font-size: 9px; line-height: 1.45; }
.rs-production-ai > footer { padding: 10px 17px; border-top: 1px solid var(--rs-line); color: var(--rs-muted); font-size: 8px; }
.rs-production-ai-result { overflow: hidden; border: 1px solid rgba(100, 43, 140, .2); border-radius: 13px; background: #fff; }
.rs-production-ai-result.failed { border-color: rgba(181, 69, 69, .2); background: var(--rs-red-soft); }
.rs-production-ai-result > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--rs-line); }
.rs-production-ai-result > header > div { display: grid; gap: 3px; }
.rs-production-ai-result > header > strong,
.rs-production-ai-result > header > div > strong { font-size: 11px; }
.rs-production-ai-result > p { margin: 0; padding: 13px 15px; color: var(--rs-muted); font-size: 9px; line-height: 1.5; }
.rs-production-ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-production-ai-grid > section,
.rs-production-ai-sections > section { padding: 12px 15px; border-right: 1px solid var(--rs-line); border-bottom: 1px solid var(--rs-line); }
.rs-production-ai-grid > section:nth-child(2n) { border-right: 0; }
.rs-production-ai-result section > strong { display: block; margin-bottom: 6px; color: var(--rs-purple); font-size: 8px; text-transform: uppercase; }
.rs-production-ai-result section h3 { margin: 0 0 7px; font-size: 11px; }
.rs-production-ai-result section p { margin: 0 0 9px; color: var(--rs-ink); font-size: 9px; line-height: 1.55; white-space: pre-wrap; }
.rs-production-ai-result section ul { display: grid; gap: 4px; margin: 0; padding-left: 16px; color: var(--rs-muted); font-size: 8px; line-height: 1.45; }
.rs-production-ai-sections { display: grid; }
.rs-production-ai-sections > section { border-right: 0; }
.rs-production-ai-result > section { padding: 12px 15px; border-top: 1px solid var(--rs-line); }
.rs-production-ai-result > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; background: #fafbfc; color: var(--rs-muted); font-size: 8px; overflow-wrap: anywhere; }
.rs-production-draft { overflow: hidden; padding-bottom: 15px; }
.rs-production-draft > label,
.rs-production-draft-grid > label { display: grid; gap: 6px; margin: 13px 16px 0; }
.rs-production-draft label > span { color: var(--rs-muted); font-size: 8px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.rs-production-draft input,
.rs-production-draft textarea,
.rs-governance-card textarea,
.rs-governance-card select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #d7dbe1; border-radius: 8px; outline: 0; background: #fff; color: var(--rs-ink); font: inherit; font-size: 10px; }
.rs-production-draft textarea { min-height: 105px; resize: vertical; line-height: 1.5; }
.rs-production-draft > label textarea { min-height: 135px; }
.rs-production-draft input:focus,
.rs-production-draft textarea:focus,
.rs-governance-card textarea:focus,
.rs-governance-card select:focus { border-color: rgba(100, 43, 140, .55); box-shadow: 0 0 0 3px rgba(100, 43, 140, .09); }
.rs-production-draft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rs-production-draft-grid > label { margin-right: 0; }
.rs-production-draft-grid > label:last-child { margin-right: 16px; }
.rs-production-draft > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 16px 0; border-top: 1px solid var(--rs-line); }
.rs-production-draft > footer span { color: var(--rs-muted); font-size: 8px; }
.rs-production-readiness { overflow: hidden; }
.rs-production-readiness > p { margin: 0; padding: 15px 17px; color: var(--rs-muted); font-size: 10px; line-height: 1.5; }
.rs-production-gates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-production-gates > article { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 8px; padding: 10px 13px; border-right: 1px solid var(--rs-line); border-bottom: 1px solid var(--rs-line); }
.rs-production-gates > article:nth-child(2n) { border-right: 0; }
.rs-production-gates > article > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; font-size: 9px; font-weight: 850; }
.rs-production-gates article.pass > span { background: var(--rs-green-soft); color: var(--rs-green); }
.rs-production-gates article.blocked > span { background: var(--rs-red-soft); color: var(--rs-red); }
.rs-production-gates article.unknown > span { background: var(--rs-amber-soft); color: var(--rs-amber); }
.rs-production-gates strong { display: block; font-size: 9px; }
.rs-production-gates small { display: block; margin-top: 3px; color: var(--rs-muted); font-size: 8px; line-height: 1.4; }
.rs-production-readiness > footer { padding: 10px 13px; background: #fafbfc; color: var(--rs-muted); font-size: 8px; }
.rs-governance-card dl { display: grid; gap: 7px; margin: 0; }
.rs-governance-card dl > div { display: grid; gap: 2px; }
.rs-governance-card dt { color: var(--rs-muted); font-size: 7px; text-transform: uppercase; }
.rs-governance-card dd { min-width: 0; margin: 0; font-size: 9px; overflow-wrap: anywhere; }
.rs-governance-card dd code { font-size: 7px; }
.rs-governance-card.blocked { border-color: rgba(181, 69, 69, .20); background: linear-gradient(145deg, var(--rs-red-soft), #fff); }
.rs-governance-card ul { display: grid; gap: 4px; margin: 0; padding-left: 17px; color: var(--rs-muted); font-size: 8px; }
.rs-production-loading,
.rs-production-error { padding: 25px; }
.rs-production-loading h2,
.rs-production-error h2 { margin: 0 0 7px; font-size: 16px; }
.rs-production-loading p,
.rs-production-error p { margin: 0 0 14px; color: var(--rs-muted); font-size: 10px; }

.rs-pins { overflow: hidden; }
.rs-pin-list { display: grid; }
.rs-pin-list article { display: grid; gap: 4px; padding: 11px 14px; border-bottom: 1px solid var(--rs-line); }
.rs-pin-list article:last-child { border-bottom: 0; }
.rs-pin-list article.blocked { background: var(--rs-amber-soft); }
.rs-pin-list span { color: var(--rs-muted); font-size: 8px; text-transform: uppercase; }
.rs-pin-list strong { font-size: 9px; overflow-wrap: anywhere; }

.rs-gates { overflow: hidden; }
.rs-gates > div { display: grid; }
.rs-gates > div > article { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 9px; align-items: start; padding: 10px 13px; border-bottom: 1px solid var(--rs-line); }
.rs-gates > div > article > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; font-size: 9px; font-weight: 850; }
.rs-gates article.passed > span { background: var(--rs-green-soft); color: var(--rs-green); }
.rs-gates article.failed > span { background: var(--rs-red-soft); color: var(--rs-red); }
.rs-gates article.service > span { background: var(--rs-amber-soft); color: var(--rs-amber); }
.rs-gates article strong { font-size: 9px; }
.rs-gates article p { margin: 3px 0 0; color: var(--rs-muted); font-size: 8px; line-height: 1.4; }
.rs-gates > footer { display: grid; justify-items: start; gap: 7px; padding: 12px 13px; background: #fafbfc; }
.rs-gates > footer small { color: var(--rs-muted); font-size: 8px; line-height: 1.4; }

.rs-command { overflow: hidden; }
.rs-command form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; padding: 14px 17px; }
.rs-command form label { margin: 0; }
.rs-command-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rs-line); }
.rs-command-rules section { display: grid; gap: 5px; padding: 12px 15px; }
.rs-command-rules section:first-child { border-right: 1px solid var(--rs-line); background: var(--rs-amber-soft); }
.rs-command-rules section:last-child { background: var(--rs-green-soft); }
.rs-command-rules strong { font-size: 9px; }
.rs-command-rules span { color: var(--rs-muted); font-size: 8px; line-height: 1.45; }

.rs-print-sheet { display: none; }

@media (max-width: 1320px) {
  .rs-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-type-card { min-height: 210px; }
  .rs-job-layout { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); }
  .rs-fact-grid,
  .rs-stage-positions,
  .rs-issue-columns { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
  .rs-head,
  .rs-job-head { align-items: stretch; flex-direction: column; }
  .rs-head-metrics { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rs-job-status { min-width: 0; }
  .rs-job-layout { grid-template-columns: 1fr; }
  .rs-job-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-job-aside .rs-pins,
  .rs-job-aside .rs-gates { grid-column: 1 / -1; }
  .rs-output-grid { grid-template-columns: 1fr; }
  .rs-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-session-ribbon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rs-session-ribbon > .rs-btn { grid-column: 1 / -1; margin: 10px 12px; justify-self: start; }
  .rs-session-ribbon > div:nth-child(4) { border-right: 0; }
}

@media (max-width: 800px) {
  .rs-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-prompt-layout { grid-template-columns: 1fr; }
  .rs-prompt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-asset-grid { grid-template-columns: 1fr; }
  .rs-job-type-picker { grid-template-columns: repeat(5, minmax(115px, 1fr)); overflow-x: auto; }
  .rs-start-card { grid-template-columns: 1fr; }
  .rs-brief-grid { grid-template-columns: 1fr; }
  .rs-brief-grid > aside { border-top: 1px solid var(--rs-line); border-left: 0; }
  .rs-start-card aside { border-top: 1px solid var(--rs-line); border-left: 0; }
  .rs-head-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-prompt-columns,
  .rs-workbench-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .rs-shell { gap: 12px; }
  .rs-head,
  .rs-job-head { padding: 21px 18px; border-radius: 14px; }
  .rs-title-row h1 { font-size: 31px; }
  .rs-boundary { align-items: flex-start; flex-wrap: wrap; }
  .rs-boundary .rs-badge { margin-left: 43px; }
  .rs-type-grid,
  .rs-service-grid,
  .rs-prompt-list,
  .rs-job-aside,
  .rs-controls > div { grid-template-columns: 1fr; }
  .rs-control-check { border-right: 0; }
  .rs-prompt-meta { grid-template-columns: 1fr; }
  .rs-prompt-meta > div.wide { grid-column: auto; }
  .rs-version-history article { grid-template-columns: 1fr; gap: 5px; }
  .rs-register-head { align-items: flex-start; flex-direction: column; }
  .rs-output-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-output-facts > div:nth-child(2) { border-right: 0; }
  .rs-output-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--rs-line); }
  .rs-session-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-session-ribbon > div:nth-child(2n) { border-right: 0; }
  .rs-sequenced-section { grid-template-columns: 35px minmax(0, 1fr); }
  .rs-sequenced-section > div { padding: 14px 12px; }
  .rs-command form { grid-template-columns: 1fr; }
  .rs-command-rules { grid-template-columns: 1fr; }
  .rs-command-rules section:first-child { border-right: 0; border-bottom: 1px solid var(--rs-line); }
  .rs-audit-list > article { grid-template-columns: 1fr; min-height: 0; padding: 10px 0; border-bottom: 1px solid var(--rs-line); }
  .rs-audit-list time { padding: 0; }
  .rs-audit-dot { display: none; }
  .rs-audit-list > article > div { padding: 0; border: 0; }
  .rs-production-register > div,
  .rs-production-ai-grid,
  .rs-production-draft-grid,
  .rs-production-gates { grid-template-columns: 1fr; }
  .rs-production-ai-grid > section { border-right: 0; }
  .rs-production-ai-result > footer { align-items: flex-start; flex-direction: column; }
  .rs-production-gates > article { border-right: 0; }
  .rs-production-draft-grid > label { margin-right: 16px; }
  .rs-production-draft > footer { align-items: flex-start; flex-direction: column; }
}

@media print {
  body * { visibility: hidden !important; }
  .rs-print-sheet,
  .rs-print-sheet * { visibility: visible !important; }
  .rs-print-sheet {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    padding: 18mm 16mm;
    background: #fff;
    color: #20232a;
    font-family: Arial, sans-serif;
  }
  .rs-print-sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 3px solid #642b8c; }
  .rs-print-sheet > header img { width: 150px; max-height: 70px; object-fit: contain; }
  .rs-print-sheet > header > div { text-align: right; }
  .rs-print-sheet > header span { color: #642b8c; font-size: 9pt; font-weight: 700; letter-spacing: .08em; }
  .rs-print-sheet h1 { margin: 4px 0; font-size: 22pt; }
  .rs-print-sheet > header p { margin: 0; font-size: 10pt; }
  .rs-print-notice { margin: 14px 0; padding: 10px 12px; border: 1px solid #d39a45; background: #fff6df; }
  .rs-print-notice strong { color: #8a550a; font-size: 9pt; }
  .rs-print-notice p { margin: 4px 0 0; font-size: 8.5pt; }
  .rs-print-sheet dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid #ddd; }
  .rs-print-sheet dl > div { display: grid; grid-template-columns: 95px 1fr; padding: 7px; border-bottom: 1px solid #ddd; }
  .rs-print-sheet dt { color: #666; font-size: 8pt; }
  .rs-print-sheet dd { margin: 0; overflow-wrap: anywhere; font-size: 8pt; font-weight: 700; }
  .rs-print-sheet h2 { margin: 18px 0 8px; color: #642b8c; font-size: 12pt; }
  .rs-print-sheet table { width: 100%; border-collapse: collapse; font-size: 7.5pt; }
  .rs-print-sheet th,
  .rs-print-sheet td { padding: 6px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
  .rs-print-sheet th { background: #f1eaf6; }
  .rs-print-sheet ol { font-size: 8pt; line-height: 1.45; }
  .rs-print-sheet > footer { margin-top: 18px; padding-top: 8px; border-top: 1px solid #aaa; color: #666; font-size: 7pt; overflow-wrap: anywhere; }
  @page { size: A4; margin: 0; }
}
