.pbi {
  --ink: #16181d;
  --muted: #5f636b;
  --line: #e4dfd6;
  --paper: #f4f1eb;
  --card: #fffcf8;
  --green: #00c9a7;
  --green-ink: #086857;
  --green-soft: #e7f8f4;
  --warn: #8a5a00;
  --warn-soft: #fff4dc;
  --danger: #9f2d22;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(0, 201, 167, 0.16), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
}

.pbi a {
  color: inherit;
  text-decoration: none;
}

.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #16181d;
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.top__portal {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-ink);
  white-space: nowrap;
}

.studio {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 64px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.step {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.step:disabled {
  cursor: default;
  opacity: 0.55;
}

.step.is-current {
  background: white;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(22, 24, 29, 0.05);
}

.step.is-done {
  color: var(--green-ink);
}

.step__n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6e1d8;
  color: var(--ink);
  font-size: 11px;
}

.step.is-current .step__n {
  background: var(--ink);
  color: white;
}

.step.is-done .step__n {
  background: var(--green-soft);
  color: var(--green-ink);
}

.lead {
  max-width: 680px;
  margin-bottom: 22px;
}

.lead h1 {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.lead p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.card,
.qcard,
.doc,
.side-card {
  background: var(--card);
  border: 1px solid rgba(22, 24, 29, 0.06);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(22, 24, 29, 0.04);
}

.card,
.side-card {
  padding: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field span,
.lbl {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select,
.line-input,
.chatgpt textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.line-input:focus,
.chatgpt textarea:focus,
.choice:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: transparent;
}

.hints {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 16px;
}

.hint {
  background: var(--green-soft);
  color: var(--green-ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.btn-dark {
  background: #16181d;
  color: white;
  width: 100%;
  border-radius: 16px;
  min-height: 52px;
}

.btn-dark:hover:not(:disabled) {
  background: #2a2e36;
}

.btn-green {
  background: var(--green);
  color: #07382f;
}

.btn-green:hover:not(:disabled) {
  background: #00b896;
}

.btn-ghost,
.btn-text {
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.btn-line {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.side-card h2,
.block h2,
.chatgpt h2 {
  font-size: 16px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.side-card p,
.quiet,
.chatgpt p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.recent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.recent button {
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.recent strong,
.recent small {
  display: block;
}

.recent small {
  color: var(--muted);
  margin-top: 2px;
}

.architect {
  display: grid;
  grid-template-columns: minmax(0, 720px) 280px;
  gap: 18px;
  justify-content: center;
  align-items: start;
}

.kicker {
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qcard {
  padding: 26px 26px 22px;
}

.q-pending {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.qcard h1 {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 14px;
}

.qcard .context {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.suggest {
  background: #f7f4ee;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.choices {
  border: 1px solid #ece7df;
  border-radius: 16px;
  background: white;
  padding: 4px;
}

.choice {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

.choice + .choice {
  margin-top: 0;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice:hover {
  background: #faf8f5;
}

.choice.is-on {
  background: transparent;
  box-shadow: none;
}

.mark {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid #c4c0b8;
  display: grid;
  place-items: center;
}

.choice.is-on .mark {
  border-color: #16181d;
}

.choice.is-on .mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16181d;
}

.choice__text {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

.choice__text strong {
  font-weight: 800;
}

.q-extra {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ece7df;
}

.q-extra span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.q-extra textarea {
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
}

.q-extra textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.qcard .btn-dark {
  margin-top: 16px;
  border-radius: 999px;
}

.note {
  margin-top: 12px;
}

.note textarea {
  min-height: 88px;
}

.qactions {
  margin-top: 14px;
}

.qactions .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.err {
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.progress {
  height: 4px;
  background: #e6e1d8;
  border-radius: 99px;
  margin: 14px 0 18px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}

.decisions h2 {
  font-size: 14px;
  margin-bottom: 10px;
}

.decision {
  width: 100%;
  text-align: left;
  border: 0;
  background: #f7f4ee;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font: inherit;
}

.decision.is-current {
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.decision span,
.decision strong,
.decision em {
  display: block;
}

.decision span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.decision strong {
  margin-top: 3px;
  font-size: 13px;
}

.decision em {
  margin-top: 4px;
  font-style: normal;
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 700;
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.checkline {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}

.alert {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
  margin-bottom: 14px;
}

.alert button {
  display: inline;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  padding: 0;
}

.fixes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 14px;
}

.fixes:empty {
  display: none;
}

.fixes span,
.chip {
  background: var(--green-soft);
  color: var(--green-ink);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.chip-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.chip-ink {
  background: #16181d;
  color: white;
}

.doc-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.doc {
  padding: 36px 40px 32px;
}

.doc__status {
  margin-bottom: 14px;
}

.doc h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.story {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story p {
  font-size: 16px;
  line-height: 1.45;
}

.story b {
  color: var(--green-ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.doc h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc li,
.doc .prose {
  font-size: 15px;
  line-height: 1.5;
}

.doc ol,
.doc ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 18px;
  list-style: decimal;
}

.doc ul {
  list-style: disc;
}

.doc details {
  margin-top: 22px;
  color: var(--muted);
}

.sticky-side {
  position: sticky;
  top: 16px;
}

.chatgpt textarea {
  min-height: 120px;
  margin: 10px 0;
}

@media (max-width: 900px) {
  .lead h1,
  .doc h2 {
    font-size: 28px;
  }

  .qcard h1 {
    font-size: 20px;
  }

  .grid-2,
  .architect,
  .work,
  .doc-wrap {
    grid-template-columns: 1fr;
  }

  .doc {
    padding: 22px;
  }

  .sticky-side {
    position: static;
  }
}
