@font-face {
  font-family: Outfit;
  src: url("./brand/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #17132e;
  --muted: #544f6e;
  --purple: #7149f2;
  --lime: #dcf958;
  --paper: #fefefe;
  --lilac: #f3f1fb;
  --line: #dfdbef;
  --red: #c8352f;
  --sans: Outfit, "PingFang SC", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
.notice {
  background: var(--lime);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 9px 20px;
}
header {
  max-width: 1228px;
  margin: auto;
  height: 86px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 3.2px;
  font-weight: 500;
  color: var(--purple);
  margin-top: 4px;
}
nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  align-items: center;
}
.pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--lilac);
}
.pill.ok {
  background: var(--lime);
  border-color: var(--lime);
}
.pill.run {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}
.pill.bad {
  background: #ffe3e3;
  border-color: #ffb3b3;
}
.button,
.small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.button {
  font-size: 16px;
  padding: 13px 24px;
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  background: white;
  transition: transform 0.1s;
}
.button:hover:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}
.button.primary {
  background: var(--purple);
  color: white;
}
.button.lime {
  background: var(--lime);
}
.small {
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: white;
}
.small.purple {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}
.small.danger {
  color: var(--red);
}
main {
  max-width: 1228px;
  margin: auto;
  padding: 36px 24px 80px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--purple);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin: 0 0 14px;
}
h1 em {
  font-style: normal;
  color: var(--purple);
}
h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
}
h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 26px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.loop {
  background: var(--purple);
  color: white;
  border-radius: 24px;
  padding: 28px;
  border: 2px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
.loop ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.loop li {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.loop li b {
  font-size: 12px;
  letter-spacing: 1.5px;
  min-width: 86px;
  color: var(--lime);
}
.loop .back {
  text-align: center;
  font-size: 13px;
  color: var(--lime);
  margin-top: 10px;
}
.desk {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.panel.lilac {
  background: var(--lilac);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 14px 0 6px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  background: white;
  font-size: 15px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.team label {
  margin-top: 0;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fine {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.job-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.job-head select {
  width: auto;
  min-width: 260px;
}
.timeline {
  display: grid;
  gap: 12px;
}
.event {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: white;
}
.event.planner {
  border-left: 5px solid #c4b5fd;
}
.event.worker {
  border-left: 5px solid var(--purple);
}
.event.reviewer {
  border-left: 5px solid var(--lime);
}
.event.live {
  border-style: dashed;
  background: var(--lilac);
}
.event-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.event-head b {
  color: var(--ink);
  font-size: 14px;
}
.verdict {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lime);
}
.verdict.revise {
  background: #ffe9b3;
}
.event pre,
.final pre {
  font: 14px/1.6 var(--sans);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0 0;
  max-height: 360px;
  overflow: auto;
}
.issues {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.issues li {
  background: var(--lilac);
  border-radius: 8px;
  padding: 8px 12px;
}
.issues .sev {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-right: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: white;
}
.issues .sev.high {
  color: var(--red);
}
.final {
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 22px;
  background: white;
  box-shadow: 0 6px 0 var(--ink);
  margin-top: 16px;
}
.final pre {
  max-height: none;
}
.empty {
  border: 2px dashed var(--line);
  border-radius: 18px;
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
}
.usage {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}
dialog {
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 28px;
  width: min(680px, 94vw);
  box-shadow: 0 8px 0 var(--ink);
}
dialog::backdrop {
  background: rgba(23, 19, 46, 0.55);
}
.provider {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-top: 12px;
}
.provider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.provider .row {
  grid-template-columns: 1fr 1fr;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  max-width: 90vw;
  z-index: 9;
}
footer {
  max-width: 1228px;
  margin: auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.guide {
  max-width: 860px;
  margin: auto;
  padding: 40px 24px 80px;
}
.guide h2 {
  margin-top: 36px;
}
.guide code,
.guide pre {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--lilac);
  border-radius: 8px;
}
.guide code {
  padding: 2px 6px;
}
.guide pre {
  padding: 14px;
  overflow: auto;
}
@media (max-width: 960px) {
  .hero,
  .desk {
    grid-template-columns: 1fr;
  }
  header {
    height: auto;
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  nav {
    gap: 14px;
    font-size: 14px;
    flex-wrap: wrap;
  }
  main {
    padding: 24px 16px 60px;
  }
  .team {
    grid-template-columns: 1fr;
  }
  .job-head select {
    min-width: 0;
    width: 100%;
  }
}

.eyebrow.mt {
  margin-top: 22px;
}
.eyebrow.tight {
  margin: 0 0 4px;
}
.nomargin {
  margin: 0 !important;
}
.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
}
.consent input {
  width: auto;
  margin-top: 3px;
}

[hidden] {
  display: none !important;
}

.seed summary,
.feedback summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
}
.team.roles {
  grid-template-columns: repeat(2, 1fr);
}
.team.roles select + select {
  margin-top: 6px;
  font-size: 13px;
}
.handoff {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
.handoff .actions .button {
  font-size: 14px;
  padding: 10px 18px;
}
.event.polisher {
  border-left: 5px solid #c4b5fd;
  background: #faf9ff;
}
.event.feedback {
  border-left: 5px solid var(--red);
  background: #fff6f6;
}
.event.handoff,
.event.published {
  border-left: 5px solid var(--lime);
  background: #fbfde9;
}
.pairing-code {
  font: 700 34px/1 var(--mono);
  letter-spacing: 4px;
  color: var(--purple);
  margin: 10px 0;
}
h2.mt {
  margin-top: 26px;
}

/* ===== Chat-first layout ===== */
.chat-app main.chat-main {
  max-width: 980px;
  padding: 18px 16px 24px;
  display: grid;
  gap: 14px;
}
.connect-bar {
  background: var(--lilac);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}
.connect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.connect-row .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--purple);
  margin-right: 6px;
}
.agent-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: white;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.1s;
}
.agent-btn:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--ink);
}
.agent-btn .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ccc7e0;
}
.agent-btn.on {
  background: var(--lime);
}
.agent-btn.on .dot {
  background: var(--purple);
}
.agent-btn.pending {
  background: #fff7d6;
}
.agent-btn small {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.connect-panel {
  margin-top: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.connect-panel .row {
  align-items: end;
}
.connect-panel label {
  margin-top: 0;
}
.chat-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 62vh;
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.chat-head select {
  width: auto;
  max-width: 60%;
  font-size: 13px;
  padding: 8px 10px;
}
.chat-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chat {
  padding: 16px 16px 8px;
  overflow-y: auto;
  max-height: 64vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(#fff, #fbfaff);
}
.chat-empty {
  margin: auto;
  text-align: center;
  max-width: 520px;
  padding: 40px 10px;
  color: var(--muted);
}
.chat-empty h2 {
  color: var(--ink);
}
.msg {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  max-width: 92%;
}
.msg.you {
  justify-self: end;
  grid-template-columns: 1fr 38px;
  text-align: left;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: white;
  background: var(--ink);
  flex: none;
}
.avatar.anthropic {
  background: #d97757;
}
.avatar.openai {
  background: #10a37f;
}
.avatar.google {
  background: #4285f4;
}
.avatar.demo {
  background: #8b84a8;
}
.avatar.muse {
  background: var(--purple);
}
.avatar.you {
  background: var(--ink);
}
.avatar.system {
  background: #c4b5fd;
  color: var(--ink);
}
.bubble {
  background: var(--lilac);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid transparent;
}
.msg.you .bubble {
  background: var(--ink);
  color: white;
}
.msg.reviewer .bubble {
  background: #fbfde9;
  border-color: #e6f08a;
}
.msg.reviewer.revise .bubble {
  background: #fff6e0;
  border-color: #ffe3a3;
}
.msg.feedback .bubble {
  background: #fff1f1;
  border-color: #ffc9c9;
}
.msg.handoff .bubble,
.msg.published .bubble {
  background: #eef9ff;
  border-color: #bfe6ff;
}
.msg.final .bubble {
  background: white;
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.msg.system .bubble {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 2px 4px;
}
.who {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.who b {
  color: var(--ink);
}
.bubble pre {
  font: 14px/1.55 var(--sans);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.bubble pre.clamp {
  max-height: 9.5em;
  overflow: hidden;
  position: relative;
}
.bubble .more {
  background: none;
  color: var(--purple);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 0 0;
}
.bubble .issues {
  margin-top: 8px;
}
.bubble .issues li {
  background: white;
}
.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
}
.composer {
  border-top: 1px solid var(--line);
  padding: 10px 14px 12px;
  display: grid;
  gap: 8px;
}
.composer-mode {
  font-size: 12px;
  color: var(--muted);
  min-height: 16px;
}
.composer-mode b {
  color: var(--purple);
}
.composer textarea {
  min-height: 56px;
  resize: vertical;
}
.composer-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.composer-actions .button {
  padding: 10px 20px;
  font-size: 14px;
}
.consent-inline {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-right: auto;
}
.consent-inline input {
  width: auto;
}
.bubble .final-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .msg {
    max-width: 100%;
  }
  .chat-head select {
    max-width: 100%;
  }
}
