/* red0.cloud. The shared Sucia tokens (dark only; Monetization/brand/BRAND.md, @sucia/ui styles.css, kept equal
   by tests/tokens.test.mjs), the shared header, lockup, button and footer rules, and this site's own layout
   (r0- classes) and the corp chat (chat-, bubble, team-card, gauge). Inter is self-hosted (inter-license.txt);
   the @font-face blocks name the family literally because custom properties do not resolve there. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/inter-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/inter-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/inter-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/inter-latin-700-normal.woff2) format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/inter-latin-800-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}
:root {
  --su-bg: #111318;
  --su-surface: #1a1d24;
  --su-ink: #f4f5f7;
  --su-muted: #b2b8c4;
  --su-line: #343844;
  --su-soft: #242832;
  --su-accent: #ff5a52;
  --su-accent-fill: #d71920;
  --su-accent-fill-hover: #e5252a;
  --su-accent-soft: #3a1717;
  --su-on-accent: #fff;
  --su-danger: #ffb4aa;
  --su-success: #a0e7b7;
  --su-success-soft: #193329;
  --su-shadow: 0 8px 28px rgb(0 0 0 / 0.45);
  --su-radius-sm: 6px;
  --su-radius-md: 10px;
  --su-radius-lg: 12px;
  --su-radius-full: 999px;
  --su-font: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --su-font-mono: ui-monospace, "SF Mono", Consolas, monospace;
  --su-space-1: 4px;
  --su-space-2: 8px;
  --su-space-3: 12px;
  --su-space-4: 16px;
  --su-space-5: 24px;
  --su-space-6: 32px;
  --su-space-7: 48px;
  --su-space-8: 64px;
  --su-text-xs: 12px;
  --su-text-label: 13px;
  --su-text-sm: 14px;
  --su-text-md: 16px;
  --su-text-lg: 18px;
  --su-text-h3: 20px;
  --su-text-h2: 28px;
  --su-text-display: clamp(40px, 6vw, 80px);
  --su-leading: 1.55;
  --su-focus-width: 2px;
  --su-focus-offset: 2px;
  --su-duration-fast: 150ms;
  --su-duration: 250ms;
  --su-ease: cubic-bezier(0.2, 0, 0, 1);
  --su-surface-2: color-mix(in srgb, var(--su-surface) 70%, var(--su-soft));
  --su-line-strong: color-mix(in srgb, var(--su-line) 55%, var(--su-muted));
  --su-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* A corp's colour (Pro ORG_COLOURS; never red, which stays the main action and the brand). */
  --r0-corp-blue: #7aa7ff;
  --r0-corp-teal: #5fd4c4;
  --r0-corp-green: #8fd694;
  --r0-corp-amber: #f2c46d;
  --r0-corp-violet: #b79cff;
  --r0-corp-pink: #f29cc8;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--su-font);
  background: var(--su-bg);
  color: var(--su-ink);
  line-height: var(--su-leading);
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
textarea:focus-visible {
  outline: var(--su-focus-width) solid var(--su-accent);
  outline-offset: var(--su-focus-offset);
}
code {
  font-family: var(--su-font-mono);
  font-size: var(--su-text-xs);
  word-break: break-all;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 40;
  padding: 8px 12px;
  background: var(--su-surface);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted {
  color: var(--su-muted);
}
.small {
  font-size: var(--su-text-sm);
}

/* The shared frame (as @sucia/ui styles.css). */
.su-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: stretch;
  gap: var(--su-space-5);
  min-height: 64px;
  padding: 0 var(--su-space-6);
  border-bottom: 1px solid var(--su-line);
  background: var(--su-surface);
  color: var(--su-ink);
  font-family: var(--su-font);
}
.su-header > * {
  align-self: center;
}
.su-lockup {
  color: var(--su-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--su-duration-fast) var(--su-ease);
}
.su-lockup:hover {
  opacity: 0.8;
}
.su-lockup span {
  color: var(--su-accent);
}
.su-lockup--small {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: var(--su-text-h3);
  color: var(--su-muted);
}
.su-header-actions {
  display: flex;
  align-items: center;
  gap: var(--su-space-3);
  margin-left: auto;
}
.su-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--su-radius-sm);
  padding: 11px 20px;
  background: var(--su-accent-fill);
  color: var(--su-on-accent);
  font: inherit;
  font-size: var(--su-text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--su-duration-fast) var(--su-ease),
    color var(--su-duration-fast) var(--su-ease),
    border-color var(--su-duration-fast) var(--su-ease),
    box-shadow var(--su-duration-fast) var(--su-ease),
    transform var(--su-duration-fast) var(--su-ease);
}
.su-button:active {
  transform: scale(0.98);
}
.su-button--secondary {
  background: transparent;
  color: var(--su-ink);
  border-color: var(--su-line);
}
.su-button--secondary:hover {
  background: var(--su-surface-2);
  border-color: var(--su-line-strong);
}
.su-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.su-button--compact {
  min-height: 40px;
  padding: var(--su-space-2) 18px;
}
.su-button--large {
  min-height: 52px;
  padding: var(--su-space-3) 26px;
  font-size: var(--su-text-md);
}
.su-button:not(.su-button--secondary):hover {
  background: var(--su-accent-fill-hover);
}
.su-footer {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.6fr);
  gap: var(--su-space-6) var(--su-space-7);
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: var(--su-space-7) auto 0;
  padding: var(--su-space-7) var(--su-space-6) var(--su-space-6);
  border-top: 1px solid var(--su-line);
  color: var(--su-muted);
  font-size: var(--su-text-sm);
}
.su-footer-brand p {
  max-width: 30ch;
  margin: var(--su-space-3) 0 0;
  line-height: var(--su-leading);
}
.su-footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--su-space-5);
}
.su-footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--su-space-2);
}
.su-footer-title {
  margin-bottom: var(--su-space-1);
  color: var(--su-ink);
  font-weight: 600;
}
.su-footer a {
  color: var(--su-muted);
  text-decoration: none;
  transition: color var(--su-duration-fast) var(--su-ease);
}
.su-footer nav a:hover {
  color: var(--su-accent);
}
.su-footer-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--su-space-2) var(--su-space-5);
  margin: 0;
  padding-top: var(--su-space-4);
  border-top: 1px solid var(--su-line);
  font-size: var(--su-text-xs);
}

/* This site. On a narrow phone the nav scrolls inside the one 64px row (overhaul 2026-10-30: four
   links with Pricing, or Sign out, do not fit beside the lockup); the lockup and the button keep
   their size. */
.su-lockup,
.su-header-actions {
  flex-shrink: 0;
}
.r0-nav {
  display: flex;
  align-self: stretch;
  gap: var(--su-space-1);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.r0-nav::-webkit-scrollbar {
  display: none;
}
.r0-nav a {
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  padding: 3px var(--su-space-3) 0;
  color: var(--su-muted);
  font-size: var(--su-text-sm);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color var(--su-duration-fast) var(--su-ease);
}
.r0-nav a:hover,
.r0-nav a[aria-current="page"] {
  color: var(--su-ink);
}
.r0-nav a[aria-current="page"] {
  border-bottom-color: var(--su-accent);
}
.r0-who {
  color: var(--su-muted);
  font-size: var(--su-text-sm);
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r0-inline {
  display: inline;
  margin: 0;
}
.r0-main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--su-space-6);
}
.r0-kicker {
  margin: 0 0 var(--su-space-2);
  color: var(--su-accent);
  font-size: var(--su-text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.r0-kicker a {
  color: var(--su-muted);
}
.r0-kicker a:hover {
  color: var(--su-ink);
}
h1 {
  margin: 0 0 var(--su-space-4);
  font-size: var(--su-text-h2);
  letter-spacing: -0.5px;
  line-height: 1.15;
}
h2 {
  margin: 0 0 var(--su-space-2);
  font-size: var(--su-text-h3);
  letter-spacing: -0.2px;
}
.r0-hero {
  padding: var(--su-space-8) 0 var(--su-space-7);
  max-width: 760px;
}
.r0-hero h1 {
  font-size: var(--su-text-display);
  letter-spacing: -2px;
  line-height: 1.02;
}
.r0-lead {
  margin: 0 0 var(--su-space-5);
  max-width: 64ch;
  color: var(--su-muted);
  font-size: var(--su-text-lg);
}
.r0-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--su-space-3);
  margin: 0;
}
.r0-page {
  max-width: 900px;
  padding: var(--su-space-5) 0;
}
.r0-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--su-space-4);
  margin: var(--su-space-5) 0;
}
.r0-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  padding: var(--su-space-5);
  border: 1px solid var(--su-line);
  border-radius: var(--su-radius-lg);
  background: var(--su-surface);
}
.card p {
  margin: 0 0 var(--su-space-3);
}
.card p:last-child {
  margin-bottom: 0;
}
.card--link {
  display: flex;
  flex-direction: column;
  gap: var(--su-space-1);
  transition: border-color var(--su-duration-fast) var(--su-ease);
}
.card--link:hover {
  border-color: var(--su-line-strong);
}
/* A corp's colour: a dot and the card's left edge. */
.corp--blue { --corp: var(--r0-corp-blue); }
.corp--teal { --corp: var(--r0-corp-teal); }
.corp--green { --corp: var(--r0-corp-green); }
.corp--amber { --corp: var(--r0-corp-amber); }
.corp--violet { --corp: var(--r0-corp-violet); }
.corp--pink { --corp: var(--r0-corp-pink); }
.card--corp {
  border-left: 4px solid var(--corp, var(--su-line));
}
.corp-dot {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--corp, var(--su-line));
  vertical-align: 0.08em;
}
/* Context fill: quiet until 80%, then the problem colour (the agent may start forgetting). */
.context--high {
  color: var(--su-danger);
}
.r0-list {
  display: grid;
  gap: var(--su-space-3);
  margin: 0 0 var(--su-space-5);
  padding: 0;
  list-style: none;
}

/* The corp chat. */
.r0-corp {
  max-width: 1100px;
}
.chat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--su-space-5);
  margin: var(--su-space-5) 0 var(--su-space-4);
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: var(--su-space-3);
  min-height: 240px;
}
.turn {
  display: flex;
  flex-direction: column;
  gap: var(--su-space-2);
}
.turn-when {
  margin: var(--su-space-2) 0 0;
  text-align: center;
}
.bubble {
  max-width: 78%;
  padding: var(--su-space-3) var(--su-space-4);
  border-radius: var(--su-radius-md);
  background: var(--su-surface);
  border: 1px solid var(--su-line);
}
.bubble p,
.card--ask p,
.card--team-note p {
  margin: var(--su-space-1) 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble--you {
  align-self: flex-end;
  background: var(--su-accent-soft);
  border-color: color-mix(in srgb, var(--su-accent-fill) 50%, var(--su-line));
}
.bubble--agent {
  align-self: flex-start;
}
.bubble-who {
  display: block;
  color: var(--su-muted);
  font-size: var(--su-text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card--ask {
  border-color: var(--su-accent);
}
.card--team-note {
  border-style: dashed;
}
.card--failed {
  border-color: var(--su-danger);
}
.waiting-card textarea,
.steer-form textarea {
  width: 100%;
  margin-top: var(--su-space-2);
  padding: var(--su-space-2);
  border: 1px solid var(--su-line);
  border-radius: var(--su-radius-sm);
  background: var(--su-bg);
  color: var(--su-ink);
  font: inherit;
}
.waiting-card .r0-actions {
  margin-top: var(--su-space-3);
}
.state-line .stop-form {
  margin-left: var(--su-space-2);
}
.pc-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--su-space-2);
  margin: 0;
  color: var(--su-muted);
  font-size: var(--su-text-sm);
}
.pc-line .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--su-radius-full);
  background: var(--su-muted);
}
.pc-line--live .dot {
  background: var(--su-success);
}
.pc-line--wait .dot {
  background: var(--su-accent);
}
.pc-line--ask .dot {
  background: var(--su-accent);
}
/* Round 3 P5.2: a PC the account has not heard from is idle; what it had started is stalled, as failed reads. */
.pc-line--offline .dot {
  background: var(--su-muted);
}
.pc-line--stalled .dot {
  background: var(--su-danger);
}
.pc-offline {
  color: var(--su-muted);
}
.r0-waiting h2,
.r0-list-title {
  margin: var(--su-space-5) 0 var(--su-space-3);
  font-size: var(--su-text-md);
  color: var(--su-muted);
}
.card--link .pill {
  margin-left: var(--su-space-2);
  vertical-align: middle;
}
.state-line {
  margin: 0;
  text-align: center;
}
.chat-teams h2 {
  font-size: var(--su-text-md);
  color: var(--su-muted);
}
.team-card {
  padding: var(--su-space-4);
  margin-bottom: var(--su-space-3);
  border: 1px solid var(--su-line);
  border-radius: var(--su-radius-md);
  background: var(--su-surface);
}
.team-card p {
  margin: var(--su-space-2) 0 0;
}
/* Red0 0.6.0 R01: the box under a working team. */
.steer-form {
  display: flex;
  gap: var(--su-space-2);
  align-items: flex-end;
  margin-top: var(--su-space-3);
}
.steer-form textarea {
  flex: 1 1 auto;
  margin-top: 0;
  resize: vertical;
}
.team-card .waiting-card {
  margin-top: var(--su-space-3);
}
.team-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--su-space-2);
}
.pill {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: var(--su-radius-full);
  background: var(--su-soft);
  color: var(--su-muted);
  font-size: var(--su-text-xs);
  font-weight: 600;
}
.pill--running,
.pill--awake {
  background: var(--su-success-soft);
  color: var(--su-success);
}
.pill--waiting {
  background: var(--su-accent-soft);
  color: var(--su-accent);
}
.pill--failed,
.pill--stalled {
  color: var(--su-danger);
}
/* A finished team's evidence (0.3.0): files changed, checks with their result, what is left. */
.evidence {
  margin-top: var(--su-space-2);
  padding-top: var(--su-space-2);
  border-top: 1px solid var(--su-line);
}
.evidence p {
  margin: 0 0 var(--su-space-1);
}
.evidence code {
  font-family: var(--su-font-mono);
  font-size: var(--su-text-sm);
}
.checks {
  margin: 0 0 var(--su-space-1);
  padding-left: var(--su-space-4);
  list-style: none;
}
.checks li {
  margin: 0 0 var(--su-space-1);
  overflow-wrap: anywhere;
}
.check--ok span {
  color: var(--su-success);
  font-weight: 700;
}
.check--failed span {
  color: var(--su-danger);
  font-weight: 700;
}
.gauge {
  position: relative;
  height: 8px;
  margin-top: var(--su-space-3);
  border-radius: var(--su-radius-full);
  background: var(--su-soft);
  overflow: hidden;
}
.gauge span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  border-radius: inherit;
  background: var(--su-accent-fill);
  transition: width var(--su-duration) var(--su-ease-out);
}
.chat-compose {
  display: flex;
  flex-wrap: wrap;
  gap: var(--su-space-3);
  align-items: flex-end;
}
.chat-compose textarea {
  flex: 1 1 320px;
  min-height: 72px;
  padding: var(--su-space-3);
  border: 1px solid var(--su-line);
  border-radius: var(--su-radius-md);
  background: var(--su-surface);
  color: var(--su-ink);
  font: inherit;
  resize: vertical;
}
@media (max-width: 760px) {
  .su-header {
    padding: 0 var(--su-space-4);
    gap: var(--su-space-3);
  }
  .su-lockup {
    font-size: 22px;
  }
  .r0-nav a {
    padding: 3px var(--su-space-2) 0;
  }
  .r0-who {
    display: none;
  }
  .r0-main {
    padding: var(--su-space-4);
  }
  .r0-hero {
    padding: var(--su-space-6) 0 var(--su-space-5);
  }
  .chat {
    grid-template-columns: 1fr;
  }
  .bubble {
    max-width: 94%;
  }
  .su-footer {
    grid-template-columns: 1fr;
    padding: var(--su-space-6) var(--su-space-4) var(--su-space-5);
  }
}
/* Red0 0.6.0 batch 2: line counts (R02) and while you were away (R09). */
.diff-add {
  color: var(--su-success);
}
.diff-del {
  color: var(--su-danger);
}
.away-card {
  margin: var(--su-space-3) 0;
  border-color: var(--su-accent);
}
/* Red0 0.6.0 R31: a vote, card by card. */
.vote-list {
  margin: var(--su-space-3) 0;
  padding-left: var(--su-space-5);
}
.vote-form {
  display: grid;
  gap: var(--su-space-1);
  margin-bottom: var(--su-space-3);
}
.vote-form [aria-pressed="true"] {
  border-color: var(--su-ink);
}
/* The help page (ease-of-use audit 2026-10-21): the six steps, the words, the plain lists. */
.r0-help .card {
  margin-bottom: var(--su-space-4);
}
.r0-help .r0-grid {
  margin: 0;
}
.r0-help h2 + h2,
.r0-help p + h2 {
  margin-top: var(--su-space-4);
}
.r0-steps,
.r0-plain {
  margin: 0;
  padding-left: var(--su-space-5);
}
.r0-steps li,
.r0-plain li {
  margin-bottom: var(--su-space-2);
}
.r0-words {
  margin: 0;
}
.r0-words dt {
  margin-top: var(--su-space-2);
  font-weight: 600;
}
.r0-words dd {
  margin: 0;
  color: var(--su-muted);
}
/* The overhaul (2026-10-30): links in the copy, the "coming" mark, the step strip with the app's
   own screenshots, the six cards, who it is for, the patch notes, the pricing tables, the limit
   line on a failed card. Phone width first: everything stacks under 760px. */
.r0-link {
  color: var(--su-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--su-duration-fast) var(--su-ease);
}
.r0-link:hover {
  color: var(--su-ink);
}
.r0-soon {
  display: inline-block;
  padding: 0 var(--su-space-2);
  border: 1px solid var(--su-line);
  border-radius: var(--su-radius-full);
  background: var(--su-soft);
  color: var(--su-muted);
  font-size: var(--su-text-xs);
  font-weight: 600;
  line-height: var(--su-leading);
  white-space: nowrap;
}
.r0-how,
.r0-for {
  margin: var(--su-space-7) 0;
}
.r0-how > h2,
.r0-for > h2,
.r0-section-title {
  margin: 0 0 var(--su-space-4);
  font-size: var(--su-text-h2);
  letter-spacing: -0.5px;
}
.r0-section-title {
  margin-top: var(--su-space-6);
}
.r0-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--su-space-5);
  margin: 0 0 var(--su-space-4);
  padding: 0;
  list-style: none;
}
.r0-shot {
  margin: 0;
}
.r0-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--su-line);
  border-radius: var(--su-radius-sm);
  background: var(--su-surface);
}
.r0-shot figcaption {
  margin-top: var(--su-space-3);
  color: var(--su-muted);
  font-size: var(--su-text-sm);
}
.r0-shot figcaption strong {
  display: block;
  margin-bottom: var(--su-space-1);
  color: var(--su-ink);
  font-size: var(--su-text-md);
}
.r0-grid--six,
.r0-examples {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.r0-examples {
  padding: 0;
  list-style: none;
}
.card h3 {
  margin: 0 0 var(--su-space-2);
  font-size: var(--su-text-lg);
}
.r0-notes {
  margin-top: var(--su-space-4);
}
.r0-notes li {
  margin-bottom: var(--su-space-3);
}
.r0-notes .small {
  white-space: nowrap;
}
.r0-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--su-text-sm);
  font-variant-numeric: tabular-nums;
}
.r0-table th,
.r0-table td {
  padding: var(--su-space-2);
  border-bottom: 1px solid var(--su-line);
  text-align: left;
  vertical-align: top;
}
.r0-table thead th {
  color: var(--su-muted);
  font-size: var(--su-text-xs);
  font-weight: 600;
}
.r0-table tbody th {
  font-weight: 600;
}
.r0-table tbody tr:last-child > * {
  border-bottom: 0;
}
.limit-line {
  margin: var(--su-space-2) 0 0;
}
@media (max-width: 420px) {
  /* The nav's last few pixels fade, so a strip that runs on shows that it scrolls. */
  .r0-nav {
    mask-image: linear-gradient(to right, var(--su-ink) calc(100% - 12px), transparent);
  }
  .r0-nav a {
    padding: 3px 6px 0;
  }
  .su-header-actions .su-button--compact {
    padding: var(--su-space-2) var(--su-space-3);
  }
}
@media (max-width: 760px) {
  .r0-shots,
  .r0-grid--six,
  .r0-examples {
    grid-template-columns: 1fr;
  }
  .r0-how,
  .r0-for {
    margin: var(--su-space-6) 0;
  }
}

/* Red0 commissioning (D52, RED0_COMMISSION=on): the brief, the walkthrough, the room. */
.r0-brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: var(--su-space-5);
  align-items: start;
}
.r0-brief-aside {
  position: sticky;
  top: var(--su-space-4);
}
.r0-plainset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.r0-field {
  display: grid;
  gap: var(--su-space-1);
  min-width: 0;
  margin: 0 0 var(--su-space-4);
  padding: 0;
  border: 0;
}
.r0-field legend,
.r0-field > label {
  padding: 0;
  font-weight: 600;
}
.r0-field input:not([type="radio"], [type="checkbox"]),
.r0-field select,
.r0-field textarea,
.r0-step textarea,
.r0-question textarea {
  width: 100%;
  min-height: 40px;
  padding: var(--su-space-2) var(--su-space-3);
  border: 1px solid var(--su-line);
  border-radius: var(--su-radius-md);
  background: var(--su-bg);
  color: var(--su-ink);
  font: inherit;
}
.r0-field input:focus-visible,
.r0-field select:focus-visible {
  outline: var(--su-focus-width) solid var(--su-accent);
  outline-offset: var(--su-focus-offset);
}
.r0-field [aria-invalid="true"] {
  border-color: var(--su-danger);
}
.r0-field input[type="radio"],
.r0-field input[type="checkbox"] {
  accent-color: var(--su-accent-fill);
}
.r0-choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--su-space-2) var(--su-space-4);
}
.r0-choice {
  display: inline-flex;
  gap: var(--su-space-2);
  align-items: center;
}
.r0-accounts {
  display: grid;
  gap: var(--su-space-2);
}
.r0-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 200px);
  gap: var(--su-space-3);
  align-items: center;
}
/* "Licensed" is for a game reskin only (Pro's checkSoftware refuses it for any other kind). */
.r0-brief:not(:has(input[name="subkind"][value="reskin"]:checked)) .r0-licensed {
  display: none;
}
.r0-field-error,
.r0-alert {
  margin: 0;
  color: var(--su-danger);
}
.r0-alert {
  margin: 0 0 var(--su-space-4);
  padding: var(--su-space-3) var(--su-space-4);
  border: 1px solid var(--su-danger);
  border-radius: var(--su-radius-md);
}
.r0-bands {
  margin-bottom: var(--su-space-3);
}
.r0-tour {
  margin: 0 0 var(--su-space-5);
  border-color: var(--su-accent);
}
.r0-tour-dots {
  display: flex;
  gap: var(--su-space-2);
}
.r0-tour-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--su-radius-full);
  background: var(--su-line);
}
.r0-tour-dot.is-current {
  background: var(--su-accent);
}
.r0-tour .r0-actions {
  align-items: center;
}
.r0-room section,
.r0-room > article {
  margin: var(--su-space-6) 0 0;
}
.r0-state {
  margin-bottom: var(--su-space-3);
}
.r0-state .pill {
  display: inline-block;
  margin-left: var(--su-space-2);
  white-space: nowrap;
  vertical-align: middle;
}
.r0-step-buttons {
  margin: var(--su-space-4) 0;
}
.r0-steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--su-space-4);
  align-items: end;
  margin: var(--su-space-4) 0;
}
.r0-step {
  display: grid;
  gap: var(--su-space-2);
  justify-items: start;
}
.r0-quote-price {
  font-size: var(--su-text-h3);
  font-weight: 700;
}
.r0-pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.r0-question {
  display: grid;
  gap: var(--su-space-2);
  margin-bottom: var(--su-space-3);
}
.r0-delivery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--su-space-2) var(--su-space-4);
  align-items: center;
}
.r0-checklist .is-done strong {
  color: var(--su-success);
}
.r0-thread {
  display: grid;
  gap: var(--su-space-3);
  margin: 0 0 var(--su-space-4);
  padding: 0;
  list-style: none;
}
.r0-log {
  margin: 0;
  padding: 0 0 0 var(--su-space-4);
  border-left: 2px solid var(--su-line);
  list-style: none;
}
.r0-log li {
  margin-bottom: var(--su-space-3);
}
.r0-log-note {
  display: block;
  color: var(--su-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.r0-help-group {
  margin: 0 0 var(--su-space-6);
}
@media (max-width: 760px) {
  .r0-brief-layout,
  .r0-account {
    grid-template-columns: 1fr;
  }
  .r0-brief-aside {
    position: static;
  }
}
