@font-face {
  font-family: "Onest";
  src: url("./assets/fonts/Onest-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #f7f8f5;
  --surface: #ffffff;
  --surface-muted: #ecefea;
  --ink: #111310;
  --ink-soft: #4f5751;
  --line: #d9ded8;
  --line-strong: #aab3ab;
  --signal: #ff5a2f;
  --signal-dark: #a92d12;
  --positive: #0d6b53;
  --information: #3155d9;
  --header-height: 72px;
  --shadow: 0 24px 70px rgba(17, 19, 16, 0.12);
  color-scheme: light;
}

html {
  background: var(--canvas);
  scroll-padding-top: var(--header-height);
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Onest", "Segoe UI", Arial, sans-serif;
}

button,
textarea,
input,
select {
  font-family: inherit;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #264bd6;
  outline-offset: 4px;
}

.topbar {
  position: sticky;
  top: 0;
  height: var(--header-height);
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  gap: 11px;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  display: none;
}

.brand strong {
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.brand small {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}

.prototype-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.prototype-state::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
  content: "";
  box-shadow: 0 0 0 4px rgba(13, 107, 83, 0.11);
}

.quiet-action {
  min-height: 44px;
  border: 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.quiet-action:hover {
  color: var(--ink);
  text-decoration-color: var(--signal);
}

.screen.is-active {
  animation: gefimi-screen-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.screen {
  scroll-margin-top: var(--header-height);
}

.kicker {
  margin-bottom: 18px;
  color: var(--signal-dark);
  font-size: 12px;
  font-weight: 900;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.primary-action {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.primary-action:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--signal-dark);
  box-shadow: 0 10px 24px rgba(216, 59, 23, 0.18);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.secondary-action:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--surface);
}

/* One request becomes visible routes. This is the primary GEFIMI signature. */
.screen--create {
  background: var(--canvas);
  background-image: none;
}

.screen--create::before {
  display: none;
}

.screen--create.is-active {
  display: grid;
  min-height: calc(100svh - var(--header-height));
  align-items: stretch;
  grid-template-columns: minmax(0, 56%) minmax(420px, 44%);
}

.create-content {
  display: flex;
  width: 100%;
  max-width: none;
  flex-direction: column;
  justify-content: center;
  padding: 56px max(38px, calc((100vw - 1380px) / 2));
  padding-right: 72px;
}

.create-content h1 {
  max-width: 760px;
  font-size: 64px;
  font-weight: 800;
  line-height: 0.98;
}

.create-lede {
  max-width: 680px;
  margin: 24px 0 28px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.entry-difference {
  max-width: 720px;
  margin-top: 24px;
  border-top: 1px solid var(--line-strong);
  font-size: 15px;
  line-height: 1.5;
}

.entry-difference summary {
  min-height: 44px;
  padding-block: 12px;
  font-weight: 700;
  cursor: pointer;
}

.entry-difference p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.entry-difference strong {
  color: var(--ink);
}

.capability-examples {
  max-width: 720px;
  margin: 0 0 26px;
}

.capability-examples > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.capability-examples > div {
  display: grid;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-examples button {
  position: relative;
  min-width: 0;
  min-height: 42px;
  padding: 9px 34px 9px 12px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  text-overflow: clip;
  white-space: nowrap;
}

.capability-examples button::after {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--signal-strong);
  content: "+";
  font-size: 17px;
  transform: translateY(-52%);
}

.capability-examples button:focus-visible {
  background: var(--ink);
  color: #fff;
}

@media (hover: hover) {
  .capability-examples button:hover {
    background: var(--ink);
    color: #fff;
  }
}

.capability-examples button:focus-visible {
  outline: 3px solid rgba(255, 90, 47, 0.34);
  outline-offset: 2px;
}

.intake {
  max-width: 720px;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.intake label,
.request-form > label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
}

.intake textarea,
.request-form textarea,
.request-form input,
.terms-editor textarea,
.terms-editor input,
.terms-editor select,
.result-evidence textarea,
.result-evidence input {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}

.intake textarea {
  min-height: 168px;
  padding: 18px;
  font-size: 16px;
  line-height: 1.55;
}

.intake textarea:focus,
.request-form textarea:focus,
.request-form input:focus,
.terms-editor textarea:focus,
.terms-editor input:focus,
.terms-editor select:focus,
.result-evidence textarea:focus,
.result-evidence input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 90, 47, 0.1);
}

.intake-footer {
  margin-top: 14px;
}

.intake-footer p {
  color: var(--ink-soft);
}

.intake-footer .primary-action {
  position: relative;
  padding-right: 48px;
  background: var(--signal);
  color: var(--ink);
}

.intake-footer .primary-action::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 13px;
  height: 13px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.intake-footer .primary-action:hover:not(:disabled) {
  background: #ff714d;
  color: var(--ink);
}

.create-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-left: 1px solid #30342f;
  background: var(--ink);
}

.mission-story {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100%;
  align-content: center;
  padding: clamp(34px, 5vw, 74px) clamp(28px, 4vw, 60px);
  color: #fff;
  grid-template-rows: auto auto auto auto;
}

.mission-story::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: 10%;
  bottom: 8%;
  left: 10%;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  content: "";
}

.mission-story__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-story__head span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}

.mission-story__head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(255, 90, 47, 0.12);
  animation: mission-live 1.8s ease-in-out infinite;
}

.mission-story__request {
  padding: 24px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mission-story__request span,
.mission-story__step small,
.mission-story__finish span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-story__request strong {
  display: block;
  max-width: 520px;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.25;
}

.mission-story__flow {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 10px 0;
  list-style: none;
}

.mission-story__flow::before {
  position: absolute;
  top: 33px;
  bottom: 33px;
  left: 15px;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  content: "";
}

.mission-story__step {
  position: relative;
  display: grid;
  align-items: start;
  min-width: 0;
  gap: 15px;
  padding: 12px 0;
  background: transparent;
  opacity: 1;
  grid-template-columns: 31px minmax(0, 1fr);
  animation: mission-step 12s linear infinite;
  animation-delay: calc(var(--story-step) * 2.4s);
}

.mission-story__step > div {
  min-width: 0;
}

.mission-story__step strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.mission-story__index {
  position: relative;
  z-index: 1;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 900;
}

.mission-story__plan {
  display: grid;
  margin-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mission-story__plan span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.mission-story__plan b {
  color: #fff;
  font-weight: 800;
}

.mission-story__finish {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3px solid var(--positive);
  background: rgba(255, 255, 255, 0.055);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  animation: mission-finish 12s ease-in-out infinite;
}

.mission-story__finish > div {
  min-width: 0;
  padding: 14px 16px;
}

.mission-story__finish > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.mission-story__finish strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.route-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #fff;
}

.route-field::before,
.route-field::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.route-field::before {
  inset: 9% 7%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.route-field::after {
  top: 9%;
  bottom: 9%;
  left: 50%;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.route-field__paths {
  position: absolute;
  z-index: 1;
  inset: 9% 4%;
}

.route-field__paths svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route-track,
.route-signal {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.route-track {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
}

.route-signal {
  stroke: var(--signal);
  stroke-dasharray: 8 36;
  stroke-width: 3;
  animation: route-current 3.8s linear infinite;
}

.route-signal--two {
  animation-delay: -1.25s;
}

.route-signal--three {
  animation-delay: -2.5s;
}

.route-signal--result {
  stroke: #f7f8f5;
  animation-delay: -3.1s;
}

.route-field__source,
.route-field__result,
.route-field__roles > div {
  position: absolute;
  z-index: 2;
}

.route-field__source {
  top: 50%;
  left: 7%;
  width: 128px;
  transform: translateY(-50%);
}

.route-field__source::before {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
  box-shadow: 0 0 0 7px rgba(255, 90, 47, 0.14);
}

.route-field__source span,
.route-field__result span,
.route-field__roles span,
.route-field__roles small {
  display: block;
  color: rgba(255, 255, 255, 0.57);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.route-field__source strong,
.route-field__result strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.2;
}

.route-field__roles {
  position: absolute;
  z-index: 2;
  inset: 18% 30% 18% 42%;
  display: grid;
  align-items: center;
  grid-template-rows: repeat(3, 1fr);
}

.route-field__roles > div {
  position: relative;
  width: 150px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3px solid var(--signal);
  border-radius: 4px;
  background: #1d201c;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  animation: role-arrive 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.route-field__roles > div:nth-child(2) {
  animation-delay: 120ms;
}

.route-field__roles > div:nth-child(3) {
  animation-delay: 240ms;
}

.route-field__roles strong {
  display: block;
  margin: 4px 0;
  font-size: 14px;
}

.route-field__result {
  top: 50%;
  right: 5%;
  width: 145px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background: #f7f8f5;
  color: var(--ink);
  transform: translateY(-50%);
}

.route-field__result span {
  color: var(--positive);
}

.route-field__pulse {
  position: absolute;
  right: 5%;
  bottom: 7%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 8px rgba(13, 107, 83, 0.18);
}

/* Analysis is a transition, not a decorative waiting screen. */
.screen--processing {
  background: var(--ink);
  color: #fff;
}

.screen--processing.is-active {
  padding: 56px 8vw;
}

.processing-core {
  width: min(820px, 100%);
}

.processing-core > strong {
  margin-bottom: 36px;
  font-size: 48px;
  font-weight: 700;
}

.processing-orbit {
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.processing-orbit::after {
  background: var(--signal);
}

.processing-steps {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.processing-steps span {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.48);
}

.processing-steps span.is-active,
.processing-steps span.is-done {
  color: #fff;
}

/* Shared working canvases. */
.screen--offer,
.screen--solution,
.screen--public,
.screen--request,
.screen--room,
.screen--receipt {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 58px 48px 82px;
  background: var(--canvas);
}

.solution-head,
.room-header,
.receipt-hero,
.offer-head {
  align-items: end;
  gap: 44px;
}

.solution-head h1,
.room-header h1,
.receipt-hero h1,
.offer-head h1,
.request-context h1 {
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
}

.solution-head > div:first-child > p:last-child,
.room-header > div:first-child > p:last-child,
.receipt-hero > div:first-child > p:last-child,
.offer-head > p,
.request-context > p:last-child {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.coverage-meter,
.room-status {
  min-width: 230px;
  padding: 16px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.coverage-meter span,
.room-status span {
  color: rgba(255, 255, 255, 0.55);
}

.coverage-meter i {
  background: rgba(255, 255, 255, 0.14);
}

.coverage-meter i b {
  background: var(--signal);
}

.solution-actions,
.solution-public-actions {
  margin: 38px 0 0;
  padding: 20px 22px;
  border: 0;
  border-left: 4px solid var(--signal);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
}

.solution-actions p,
.solution-public-actions p {
  color: rgba(255, 255, 255, 0.63);
}

.solution-actions .primary-action,
.solution-public-actions .primary-action {
  background: var(--signal);
  color: var(--ink);
}

.solution-actions .secondary-action {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.solution-grid {
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.solution-steps,
.role-coverage {
  padding: 28px 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.solution-steps {
  padding-right: 38px;
}

.role-coverage {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.solution-section-head {
  margin-bottom: 18px;
}

.solution-steps li {
  min-height: 92px;
  padding: 18px 0 18px 56px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.solution-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.solution-steps li::before {
  top: 19px;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
}

.solution-step__route {
  margin-top: 12px;
  padding: 10px 12px;
  border: 0;
  border-left: 3px solid var(--information);
  border-radius: 0;
  background: #eef1fb;
}

.solution-role-list {
  gap: 0;
}

.solution-role {
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.solution-role:last-child {
  border-bottom: 1px solid var(--line);
}

.solution-role.is-matched {
  border-left: 3px solid var(--positive);
  padding-left: 14px;
  background: transparent;
}

.solution-role.is-open {
  border-left: 3px solid var(--signal);
  padding-left: 14px;
  background: transparent;
}

.solution-role__state {
  border-radius: 2px;
  background: var(--surface-muted);
}

.solution-role.is-open .solution-role__state {
  background: #ffe4db;
  color: var(--signal-dark);
}

.solution-secondary-actions {
  margin-top: 20px;
}

/* The offer is an artifact that can leave the product. */
.live-offer,
.public-offer {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.live-offer::before,
.public-offer::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--signal);
  content: "";
}

.live-offer p,
.live-offer span,
.public-offer p,
.public-offer span {
  color: rgba(255, 255, 255, 0.66);
}

.identity-monogram {
  border-radius: 4px;
  background: var(--signal);
  color: var(--ink);
}

.evidence-line,
.public-offer__proof {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.live-offer #offerEvidence span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.offer-state,
.public-offer__label {
  color: var(--signal);
}

.offer-actions,
.public-toolbar {
  border-color: var(--line);
}

.request-layout {
  gap: 64px;
}

.request-form {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: none;
}

.request-form__row {
  align-items: end;
}

/* The room is a dispatch board, not a dashboard mosaic. */
.agreement-progress {
  margin: 34px 0 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.agreement-progress span {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.agreement-progress span:last-child {
  border-right: 0;
}

.agreement-progress span.is-done {
  background: #e8f3ef;
  color: var(--positive);
}

.agreement-progress span.is-active {
  background: var(--signal);
  color: var(--ink);
}

.room-demo-note {
  margin: 16px 0 28px;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.room-workboard {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.room-workboard__head {
  margin: 0;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.room-workboard__head span,
.room-workboard__head > strong {
  color: rgba(255, 255, 255, 0.56);
}

.room-workboard__head h2 {
  font-size: 26px;
}

.room-workplan {
  gap: 0;
}

.room-workitem {
  min-height: 88px;
  padding: 18px 26px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  background: transparent;
  color: #fff;
  grid-template-columns: 42px minmax(0, 1fr) minmax(220px, 0.48fr);
}

.room-workitem:last-child {
  border-bottom: 0;
}

.room-workitem__number {
  border-radius: 2px;
  background: var(--signal);
  color: var(--ink);
}

.room-workitem__copy span,
.room-workitem__route span,
.room-workitem__route small {
  color: rgba(255, 255, 255, 0.57);
}

.room-workitem__route strong {
  color: #79d4b7;
}

.room-workitem__route {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.room-grid {
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
}

.agreement-brief,
.participant-section {
  padding: 30px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.agreement-brief {
  padding-right: 38px;
}

.participant-section {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.brief-heading,
.participant-section__head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brief-list > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.participant-list {
  gap: 0;
}

.participant-card {
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.participant-card.is-confirmed {
  background: transparent;
}

.participant-avatar {
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.participant-card.is-confirmed .participant-avatar {
  background: var(--positive);
}

.participant-state {
  min-height: 44px;
  border-radius: 2px;
}

.system-coordinator {
  margin-top: 20px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.terms-editor {
  border-radius: 4px;
  background: var(--surface-muted);
}

.version-history__item {
  border-radius: 2px;
  background: var(--surface-muted);
}

.agreement-event,
.active-room,
.result-room {
  margin-top: 34px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.agreement-event {
  border-left: 6px solid var(--positive);
}

.active-room {
  border-left: 6px solid var(--signal);
}

.agreement-event p,
.active-room p,
.result-room p,
.result-room small {
  color: rgba(255, 255, 255, 0.64);
}

.agreement-event .primary-action,
.active-room .primary-action,
.result-room .primary-action {
  background: var(--signal);
  color: var(--ink);
}

.result-room .secondary-action {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.active-room__timeline span {
  color: rgba(255, 255, 255, 0.54);
}

.active-room__timeline span::before {
  border-color: rgba(255, 255, 255, 0.32);
  background: var(--ink);
}

.active-room__timeline span.is-current {
  color: #fff;
}

.result-evidence {
  border-color: rgba(255, 255, 255, 0.18);
}

.room-legal,
.receipt-privacy {
  max-width: 1080px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

/* Result receipt: one clear public artifact. */
.receipt-hero {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.receipt-hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--signal);
  content: "";
}

.receipt-hero .kicker {
  color: var(--signal);
}

.receipt-hero > div:first-child > p:last-child {
  color: rgba(255, 255, 255, 0.65);
}

.receipt-hero .primary-action {
  background: var(--signal);
  color: var(--ink);
}

.receipt-hero .secondary-action {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.receipt-meta {
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.receipt-grid {
  gap: 0;
  margin-top: 0;
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.receipt-work,
.receipt-proof-panel {
  padding: 30px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.receipt-work {
  padding-right: 38px;
}

.receipt-proof-panel {
  padding-left: 38px;
  border-left: 1px solid var(--line);
  background: #edf4f0;
  color: var(--ink);
}

.receipt-proof-panel > span {
  color: var(--signal-dark);
}

.receipt-proof-panel > p {
  color: var(--ink);
}

.receipt-roles > span {
  color: var(--signal-dark);
}

.receipt-work li {
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.receipt-work li:last-child {
  border-bottom: 1px solid var(--line);
}

.receipt-work li > span {
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
}

.receipt-roles > div span {
  border-radius: 2px;
  background: var(--surface-muted);
  color: var(--ink);
}

.receipt-evidence-link {
  border-radius: 3px;
  background: var(--information);
  color: #fff;
}

.toast {
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.v2-footer {
  display: flex;
  flex-wrap: wrap;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 36px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink-soft);
  font-size: 11px;
}

.v2-footer > a {
  color: var(--ink);
  font-weight: 900;
}

.creator-note {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  flex-basis: 100%;
  align-items: center;
  gap: 16px 32px;
  min-width: 0;
  padding: 6px 0 22px;
  border-bottom: 1px solid var(--line);
}

.creator-label {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.creator-link {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.creator-link span {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.creator-link:hover span {
  color: var(--ink);
}

.creator-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.creator-bio {
  max-width: 60ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.v2-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.v2-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 18px 36px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
  font-size: 13px;
}

.home-guides a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-underline-offset: 4px;
}

@media (max-width: 620px) {
  .creator-note {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    flex-basis: auto;
    gap: 10px;
    padding-bottom: 20px;
  }
  .home-guides {
    padding: 18px;
  }
  .v2-footer {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
  }
}

@keyframes gefimi-screen-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes route-current {
  to {
    stroke-dashoffset: -88;
  }
}

@keyframes role-arrive {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mission-live {
  50% {
    opacity: 0.5;
    transform: scale(0.84);
  }
}

@keyframes mission-step {
  0%,
  17% {
    background: rgba(255, 90, 47, 0.08);
    transform: translateX(0);
  }
  21%,
  100% {
    background: transparent;
    transform: translateX(3px);
  }
}

@keyframes mission-finish {
  0%,
  78% {
    border-left-color: rgba(98, 191, 142, 0.25);
    background: rgba(255, 255, 255, 0.035);
  }
  86%,
  100% {
    border-left-color: var(--positive);
    background: rgba(98, 191, 142, 0.1);
  }
}

@media (min-width: 841px) and (max-height: 820px) {
  .create-content {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .create-content h1 {
    font-size: 46px;
  }

  .create-lede {
    margin: 14px 0 16px;
    font-size: 15px;
    line-height: 1.4;
  }

  .capability-examples {
    margin-bottom: 16px;
  }

  .capability-examples button {
    min-height: 36px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .intake {
    padding-top: 14px;
  }

  .intake textarea {
    min-height: 104px;
    padding: 12px;
  }

  .intake-footer {
    margin-top: 10px;
  }

  .mission-story {
    padding: 22px 28px;
  }

  .mission-story__head {
    padding-bottom: 11px;
  }

  .mission-story__request {
    padding: 12px 0 10px;
  }

  .mission-story__request strong {
    font-size: 16px;
  }

  .mission-story__flow {
    padding: 5px 0;
  }

  .mission-story__step {
    padding: 5px 0;
  }

  .mission-story__step strong {
    font-size: 12px;
  }

  .mission-story__plan {
    margin-top: 3px;
  }

  .mission-story__plan span {
    padding: 2px 0;
  }

  .mission-story__finish > div {
    padding: 9px 11px;
  }
}

@media (max-width: 1120px) {
  .screen--create.is-active {
    grid-template-columns: minmax(0, 58%) minmax(360px, 42%);
  }

  .create-content {
    padding: 48px 44px;
  }

  .mission-story {
    padding: 38px 30px;
  }

  .create-content h1,
  .solution-head h1,
  .room-header h1,
  .receipt-hero h1,
  .offer-head h1,
  .request-context h1 {
    font-size: 50px;
  }

  .route-field__source {
    left: 5%;
    width: 100px;
  }

  .route-field__roles {
    right: 27%;
    left: 39%;
  }

  .route-field__roles > div {
    width: 128px;
    padding: 10px;
  }

  .route-field__result {
    right: 3%;
    width: 112px;
    padding: 12px;
  }

  .solution-grid,
  .room-grid,
  .receipt-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  }
}

@media (max-width: 840px) {
  :root {
    --header-height: 68px;
  }

  .topbar {
    padding: 0 24px;
  }

  .screen--create.is-active {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .create-content {
    grid-row: 1;
    padding: 46px 36px 42px;
  }

  .create-visual {
    display: block;
    grid-row: 2;
    grid-column: 1;
    min-height: 0;
    overflow: visible;
    border-top: 1px solid #30342f;
    border-left: 0;
  }

  .mission-story {
    min-height: 0;
    align-content: start;
    padding: 38px 36px;
  }

  .screen--offer,
  .screen--solution,
  .screen--public,
  .screen--request,
  .screen--room,
  .screen--receipt {
    padding: 44px 28px 68px;
  }

  .solution-head,
  .room-header,
  .offer-head,
  .receipt-hero,
  .request-layout {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .coverage-meter,
  .room-status {
    width: 100%;
  }

  .solution-grid,
  .room-grid,
  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .solution-steps,
  .agreement-brief,
  .receipt-work {
    padding-right: 0;
  }

  .role-coverage,
  .participant-section,
  .receipt-proof-panel {
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .receipt-proof-panel {
    padding: 30px 28px;
  }

  .room-workitem {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .room-workitem__route {
    grid-column: 2;
    padding-top: 10px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 64px;
  }

  .topbar {
    padding: 0 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .prototype-state {
    display: none;
  }

  .brand small {
    display: block;
    font-size: 9px;
  }

  .create-content {
    padding: 24px 16px;
  }

  .capability-examples > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-examples {
    margin-bottom: 18px;
  }

  .capability-examples button {
    min-height: 44px;
    padding: 8px 25px 8px 9px;
    font-size: 10px;
  }

  .capability-examples button::after {
    right: 9px;
  }

  .mission-story {
    padding: 30px 18px;
  }

  .mission-story__request strong {
    font-size: 17px;
  }

  .mission-story__finish {
    grid-template-columns: 1fr;
  }

  .mission-story__finish > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .create-content h1,
  .solution-head h1,
  .room-header h1,
  .receipt-hero h1,
  .offer-head h1,
  .request-context h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .create-content .kicker {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.4;
  }

  .create-lede,
  .solution-head > div:first-child > p:last-child,
  .room-header > div:first-child > p:last-child,
  .receipt-hero > div:first-child > p:last-child,
  .offer-head > p,
  .request-context > p:last-child {
    font-size: 14px;
  }

  .create-lede {
    margin: 14px 0 18px;
    line-height: 1.45;
  }

  .intake {
    padding-top: 13px;
  }

  .intake textarea {
    min-height: 132px;
    padding: 13px;
    font-size: 14px;
    line-height: 1.45;
  }

  .intake-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .intake-footer p {
    font-size: 10px;
    line-height: 1.4;
  }

  .intake-footer .primary-action,
  .solution-actions .primary-action,
  .solution-public-actions .primary-action,
  .receipt-actions .primary-action,
  .receipt-actions .secondary-action {
    width: 100%;
  }

  .screen--create.is-active {
    grid-template-rows: auto auto;
  }

  .create-visual {
    min-height: 0;
  }

  .route-field__paths {
    inset: 6% 1%;
  }

  .route-field__source {
    left: 4%;
    width: 72px;
  }

  .route-field__source strong,
  .route-field__result strong {
    font-size: 11px;
  }

  .route-field__roles {
    inset: 14% 28% 14% 38%;
  }

  .route-field__roles > div {
    width: 102px;
    padding: 8px;
  }

  .route-field__roles span,
  .route-field__roles small {
    font-size: 8px;
  }

  .route-field__roles strong {
    font-size: 11px;
  }

  .route-field__result {
    right: 2%;
    width: 80px;
    padding: 9px;
  }

  .screen--offer,
  .screen--solution,
  .screen--public,
  .screen--request,
  .screen--room,
  .screen--receipt {
    padding: 34px 16px 56px;
  }

  .solution-actions,
  .solution-public-actions,
  .receipt-hero {
    padding: 20px 17px;
  }

  .solution-actions,
  .solution-public-actions,
  .solution-secondary-actions,
  .receipt-actions,
  .offer-actions,
  .public-toolbar,
  .brief-actions,
  .result-room__actions,
  .result-share-actions,
  .terms-editor__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .solution-actions button,
  .solution-public-actions button,
  .solution-secondary-actions button,
  .receipt-actions button,
  .offer-actions button,
  .public-toolbar button,
  .brief-actions button,
  .result-room__actions button,
  .result-share-actions button,
  .terms-editor__actions button {
    width: 100%;
  }

  .solution-steps {
    padding-top: 22px;
  }

  .solution-steps li {
    padding-left: 48px;
  }

  .agreement-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
  }

  .agreement-progress span {
    min-width: 0;
    min-height: 44px;
    padding: 0 4px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-workboard__head,
  .room-workitem {
    padding-right: 16px;
    padding-left: 16px;
  }

  .room-workboard__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-workitem {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .room-workitem__number {
    width: 30px;
    height: 30px;
  }

  .agreement-event,
  .active-room,
  .result-room {
    padding: 24px 18px;
  }
}

@media (min-width: 841px) and (max-height: 820px) {
  .create-content {
    padding: 22px 32px;
  }

  .create-content h1 {
    font-size: 44px;
  }

  .mission-story {
    padding: 20px 26px;
  }
}

@media (min-width: 841px) and (max-width: 1120px) and (max-height: 820px) {
  .create-content {
    padding: 10px 28px;
  }

  .create-content h1 {
    font-size: 40px;
  }

  .create-lede {
    margin: 10px 0 12px;
    font-size: 14px;
  }

  .capability-examples {
    margin-bottom: 12px;
  }

  .capability-examples button {
    min-height: 38px;
  }
}

@media (max-width: 340px) {
  .create-content {
    padding: 18px 14px;
  }

  .create-content h1 {
    font-size: 30px;
  }

  .create-content .kicker {
    margin-bottom: 9px;
    font-size: 9px;
  }

  .create-lede {
    margin: 11px 0 14px;
    font-size: 13px;
    line-height: 1.4;
  }

  .capability-examples {
    display: none;
  }

  .capability-examples > span {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .capability-examples button:nth-child(n + 3) {
    display: none;
  }

  .intake textarea {
    min-height: 104px;
  }

  .intake-footer p {
    font-size: 9px;
  }
}

@media (min-width: 841px) and (max-height: 820px) {
  .intent-switch {
    margin-bottom: 10px;
  }

  .intent-switch button {
    min-height: 40px;
  }

  .capability-examples button:nth-child(n + 3) {
    display: none;
  }

  .intake textarea {
    min-height: 96px;
  }
}

@media (min-width: 841px) and (max-width: 1120px) and (max-height: 820px) {
  .capability-examples {
    display: none;
  }
}

@media (max-width: 620px) {
  .intent-switch {
    margin-bottom: 12px;
  }

  .capability-examples button:nth-child(n + 3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
