/* The studio wears 2.0's visual language, as Forge did: paper and ink, 1.5px ink borders, hard offset
   shadows with no blur, Figtree for display, Inter for body. Orange is the one primary; teal only for
   the strategist. Light mode only. Plain CSS, no build. */
:root {
  --primary: #fc7544;
  --primary-600: #f05e2a;
  --primary-wash: #ffede4;
  --primary-ink: #c4542a;
  --teal: #1fb9ad;
  --teal-deep: #148c83;
  --teal-wash: #e4f7f5;
  --green: #7fbc8c;
  --green-wash: #e4f9e8;
  --green-ink: #2f5d3a;
  --yellow: #fcf6c1;
  --yellow-ink: #8a6d00;
  --error: #da3535;
  --ink: #333;
  --ink-2: #565656;
  --ink-3: #898989;
  --ink-6: #d1d5db;
  --hairline: #e5e2d6;
  --paper: #faf8f3;
  --card: #fff;
  --display: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font: 14px / 1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
h1,
h2,
h3,
.display {
  font-family: var(--display);
  letter-spacing: -0.01em;
}
h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
}
h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}
h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
a {
  color: inherit;
}
.muted {
  color: var(--ink-3);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition:
    transform 0.05s,
    box-shadow 0.05s;
}
.btn:hover {
  background: var(--primary-600);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}
.btn.quiet {
  background: #fff;
  color: var(--ink);
}
.btn.teal {
  background: var(--teal-deep);
}
.btn.sm {
  padding: 4px 10px;
  font-size: 12px;
  box-shadow: 1.5px 1.5px 0 var(--ink);
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
input[type="text"],
input:not([type]),
textarea,
select {
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 60px;
}
.card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
}
.pill.ok {
  background: var(--green-wash);
  color: var(--green-ink);
}
.pill.bad {
  background: #fde8e8;
  color: var(--error);
}
.pill.wait {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.pill.teal {
  background: var(--teal-wash);
  color: var(--teal-deep);
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* top bar */
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1.5px solid var(--ink);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.top .brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}
.top .brand b {
  color: var(--primary);
}
.top .creds {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.top .creds input {
  width: 160px;
  padding: 5px 8px;
}

/* home */
.home {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px;
}
.home .lede {
  font-size: 17px;
  color: var(--ink-2);
  margin: 8px 0 24px;
  max-width: 720px;
}
.home .urlbar {
  display: flex;
  gap: 10px;
}
.home .urlbar input {
  font-size: 16px;
  padding: 12px 14px;
}
.pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.pages a.card {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
}
.pages a.card:hover {
  background: var(--primary-wash);
}

/* room */
.room {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  height: calc(100vh - 54px);
}
.rail {
  border-right: 1.5px solid var(--ink);
  background: var(--teal-wash);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rail .head {
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
  background: #fff;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.threads .pill {
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.threads button.pill {
  appearance: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}
.msgs {
  flex: 1;
  overflow: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  max-width: 92%;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}
.msg.person {
  align-self: flex-end;
  background: var(--yellow);
}
.msg.strategist {
  align-self: flex-start;
}
.msg.thinking {
  color: var(--ink-3);
  font-style: italic;
}
.msg p {
  margin: 0 0 8px;
}
.msg p:last-child {
  margin-bottom: 0;
}
.idea {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1.5px dashed var(--ink);
  border-radius: 10px;
  background: var(--primary-wash);
}
.idea h3 {
  margin-bottom: 4px;
}
.idea .brief {
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--ink-2);
  max-height: 120px;
  overflow: auto;
  margin-bottom: 8px;
}
.compose {
  padding: 12px 16px;
  border-top: 1.5px solid var(--ink);
  background: #fff;
}
.compose .hint {
  font-size: 12px;
  color: var(--ink-3);
  margin: 6px 0 0;
}
.target {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 10px 20px 0;
  border-bottom: 1.5px solid var(--ink);
  background: #fff;
}
.tabs button {
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--paper);
  font-weight: 600;
  cursor: pointer;
}
.tabs button.on {
  background: #fff;
  position: relative;
  top: 1.5px;
}
.pane {
  flex: 1;
  overflow: auto;
  padding: 20px;
  min-height: 0;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* canvas */
.canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
}
.blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.block {
  padding: 8px;
  cursor: pointer;
}
.block.on {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.block img {
  width: 100%;
  display: block;
  border: 1px solid var(--hairline);
  background: #eee;
  max-height: 360px;
  object-fit: cover;
  object-position: top;
}
.block .cap {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.phone {
  position: sticky;
  top: 0;
}
.phone img {
  width: 100%;
  display: block;
}
.phone .frame {
  padding: 8px;
}

/* runs */
.split {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.list a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.list a.on,
.list a:hover {
  background: var(--primary-wash);
}
.list .id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
pre {
  background: #1a2129;
  color: #e6ecf2;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 0 0 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
td,
th {
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.pass {
  color: var(--green-ink);
}
.block-c,
.bad {
  color: var(--error);
}
.warn {
  color: var(--yellow-ink);
}
.pics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.pics figure {
  margin: 0;
  padding: 6px;
}
.pics figure.wide {
  grid-column: 1 / -1;
}
.frame {
  display: block;
  width: 100%;
  height: 480px;
  border: 1px solid var(--ink-5);
  border-radius: 8px;
  background: #fff;
}
.pics img,
.pics video {
  width: 100%;
  display: block;
}
figcaption {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}
.section {
  margin: 18px 0;
}

/* compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: calc(100vh - 190px);
}
.compare .side {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.compare .side .label {
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 6px;
}
.compare .scroll {
  flex: 1;
  overflow: auto;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}
.compare .scroll img {
  width: 100%;
  display: block;
}
.compare.phone-mode .scroll img {
  width: 390px;
  margin: 0 auto;
}

/* the brain map, the building-now panel, cuts from the real pictures, folded briefs */
.map {
  width: 100%;
  height: auto;
  display: block;
  background: #faf9f4;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  margin: 10px 0 12px;
}
.now {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 12px 14px;
  margin: 18px 0 10px;
}
.now__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
}
.now__what a {
  color: inherit;
  text-decoration: none;
}
.now__last {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--ink);
  background: var(--warm, #f7f5ef);
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cut {
  container-type: inline-size;
  width: 100%;
  max-width: 440px;
  background-color: #eeece6;
  border: 1.5px solid var(--ink-5, #c6c2b9);
  border-radius: 6px;
  margin-top: 5px;
  overflow: hidden;
}
.cut i {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
}
.fold summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.fold pre {
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
}

/* The strategist's reading, the card a thread and a lookbook open with (D41). */
.reading {
  background: #f6f8fa;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
}
.reading b {
  display: block;
  margin-bottom: 4px;
}
.reading ol {
  margin: 6px 0;
  padding-left: 20px;
}
.reading li {
  margin: 2px 0;
}

/* How this variant came to life (D45). */
.story__step {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
}
.story__step b {
  color: var(--ink, #1f2328);
}
.story ol {
  margin: 4px 0 4px 18px;
  padding: 0;
}
.story li {
  margin: 2px 0;
}
.story li.hit {
  font-weight: 700;
}
