/* BUILDER — the app's own styles. The shell owns the plane, rail, dock, top
   bar and header chrome; this file dresses only the body card.
   ⛔ Every value below is on the SPEC-APP-STANDARD §4 ladder:
     inset 2·3·5·7·9 · pad 10·12·13·14·16·18 · gap 18·22·26·30·34
     radii 14/10/9/999 · type per the role table · mono for every checkable number.
   Colours carry STATE only: --mint ok · --amber mid · --rose bad · --muted none. */

.osBld .osBList { display: grid; gap: 9px; }

.osBld .osRow {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surf); cursor: pointer; color: var(--ink);
}
.osBld .osRow.on { border-color: var(--accent, #7c5cff); }
.osBld .osRowIc { width: 24px; height: 24px; border-radius: 6px; flex: 0 0 auto; }
.osBld .osRowTx { display: grid; gap: 2px; min-width: 0; flex: 1; }
.osBld .osRowTx .k { font: 500 13px/1.4 var(--disp); letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osBld .osRowTx .s { font-size: 11px; color: var(--muted); }

.osBld .osBForm { max-width: 620px; display: grid; gap: 14px; }
.osBld .osBForm h3 { margin: 0; font: 500 17px/1.35 var(--disp); letter-spacing: -.01em; }
.osBld .osBForm form { display: grid; gap: 12px; }
.osBld .osBForm label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.osBld .osBForm input, .osBld .osBForm select {
  font: 14px/1.5 var(--body); color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); min-height: 44px;
}
.osBld .osBForm input:focus, .osBld .osBForm select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent, #7c5cff) 45%, transparent);
  outline-offset: 1px; border-color: var(--accent, #7c5cff);
}
.osBld .osBTwo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.osBld .osBForm button {
  justify-self: start; min-height: 44px; padding: 10px 18px;
  border: 0; border-radius: 9px; cursor: pointer;
  background: var(--accent, #7c5cff); color: #fff; font: 600 14px/1.4 var(--body);
}
.osBld .osBErr { color: var(--rose, #d06a6a); font-size: 12.5px; }

.osBld .osBGoalRow {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.osBld .osBGoalRow:last-child { border-bottom: 0; }
.osBld .osBGoalRow .k { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; }

.osBld .osBStep { display: flex; gap: 9px; align-items: baseline;
  padding: 5px 0; font-size: 12.5px; color: var(--muted); }
.osBld .osBStep .k { font: 500 12.5px/1.4 var(--disp); color: var(--ink); min-width: 84px; }

.osBld .osBPrev { margin-top: 18px; display: grid; gap: 9px; }
.osBld .osBPrev iframe {
  width: 100%; height: 460px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff;
}

/* The build's own words wrap like words. `.osAppRow` is the standard two-cell row
   (label · mono value); a prose value takes the remaining width and its own font. */
.osBld .osAppRow.osBText { display: grid; grid-template-columns: 96px 1fr; align-items: start; }
.osBld .osAppRow.osBText .v.t { font: 13px/1.5 var(--body); text-align: left; color: var(--ink);
  white-space: normal; overflow-wrap: anywhere; }
.osBld .osAppOne { max-width: none; }
/* The draft IS the subject: its preview sits first, full width, before the ledger. */
.osBld .osBPrev { margin: 0 0 18px; }
.osBld .osBPrev iframe { height: 520px; box-shadow: inset 0 2px 0 rgba(255,255,255,.8), 0 10px 24px rgba(58,51,72,.08); }
.osBld .osBPrev .go { justify-self: start; min-height: 40px; padding: 9px 18px; border: 0;
  border-radius: 999px; cursor: pointer; background: var(--fill, #7c5cff); color: var(--onfill, #fff);
  font: 600 13.5px/1.4 var(--body); box-shadow: var(--clay, none); }
