/* steps/build.css: Build, opt-1 "Checklist and preview" (2026-10-28). The brief and the run's checklist on the left, the
   screen's skeleton in browser chrome on the right, both fills on black. Everything is scoped under .bd. */
/* the full width, its edges on the top bar's (2026-11-06, Savva at 21:58: "should be full width ... just right here that's the bar") */
main[data-step="build"] { padding: 16px 24px; }
.view.bd { max-width: none; --ink-55: rgba(255,255,255,.55); --ink-40: rgba(255,255,255,.4); --ink-20: rgba(255,255,255,.2);
  display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; height: calc(100vh - 92px); min-height: 600px; font-size: 12.5px; }
.bd .ring { width: 12px; height: 12px; border-color: var(--ink-20); border-top-color: var(--ink-100); display: inline-block; flex: none; }
.bd .num, .bd .pct { font-variant-numeric: tabular-nums; }
/* tooltips, the library's dark glass */
.bd .tip { position: relative; }
.bd .tip[data-tip]:hover::after, .bd .tip[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); width: max-content; max-width: 280px; white-space: normal; text-align: left; padding: 8px 10px; border-radius: 8px; background: rgba(24,24,24,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink-85); font: 400 11.5px/1.45 var(--font); pointer-events: none; }
.bd :focus-visible { outline: 1.5px solid rgba(90,170,255,.9); outline-offset: 2px; }

/* the left column: the brief, the checklist, leaving */
.bd .chat { background: var(--fill); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; padding: 16px; gap: 16px; overflow-y: auto; }
.bd .msg { align-self: flex-end; max-width: 92%; background: var(--fill-2); border-radius: 12px 12px 4px 12px; padding: 10px 12px; color: var(--ink-100); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bd .bt { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.bd .thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.bd .thumb { width: 132px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--fill); }
.bd .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.bd .chip { align-self: flex-start; max-width: 100%; height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; background: var(--fill-2); color: var(--ink-70); font-size: 11.5px; white-space: nowrap; min-width: 0; }
.bd .chip .cn { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bd .att { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.bd .att .cs { color: var(--ink-55); font-size: 11.5px; }
.bd .ai { display: flex; flex-direction: column; gap: 10px; }
.bd .ai-h { display: flex; align-items: center; gap: 8px; color: var(--ink-100); font-weight: 500; }
.bd .ai-h .st { width: 14px; display: grid; place-items: center; }
.bd .bar { height: 4px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.bd .bar i { display: block; width: 0; height: 100%; background: var(--ink-100); border-radius: inherit; transition: width .6s var(--ease); }
.bd .pct { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; color: var(--ink-55); font-size: 11.5px; }
.bd .pct b { color: var(--ink-100); font-weight: 500; }
.bd .slow { margin: 0; color: var(--ink-55); font-size: 11.5px; }
.bd .list { display: flex; flex-direction: column; }
.bd .p { border: 0; background: none; width: 100%; text-align: left; display: flex; align-items: flex-start; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--hair); color: var(--ink-55); cursor: default; }
.bd .p:last-child { border-bottom: 0; }
.bd .p .dot { width: 16px; height: 20px; display: grid; place-items: center; flex: none; }
.bd .p .dot i { width: 6px; height: 6px; border-radius: 999px; background: var(--fill-3); }
.bd .p.done { color: var(--ink-85); cursor: pointer; } .bd .p.done .dot svg { color: var(--up); } .bd .p.done:hover { color: var(--ink-100); }
.bd .p.now { color: var(--ink-100); }
.bd .p.stop { color: var(--ink-100); } .bd .p.stop .dot { color: var(--down); }
.bd .p .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bd .p .sub { color: var(--ink-55); font-size: 11.5px; min-height: 18px; }
/* what the run is doing right now, read off its transcript (2026-11-05), and how fresh that is */
.bd .p .sub .live { color: var(--ink-85); display: block; }
.bd .p .sub .ago { color: var(--ink-55); display: block; font-variant-numeric: tabular-nums; }
.bd .p .note { display: none; color: var(--ink-55); font-size: 11.5px; }
.bd .p.open .note { display: block; }
.bd .p .cv { color: var(--ink-40); transition: transform .2s var(--ease-kit); margin-top: 2px; } .bd .p.open .cv { transform: rotate(180deg); }
.bd .leave, .bd .fail { margin-top: auto; background: var(--fill); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-70); }
.bd .leave[hidden], .bd .fail[hidden], .bd .slow[hidden] { display: none; }
.bd .fail p { margin: 0; }
.bd.failed .ai-h .st { color: var(--down); }
.bd .inl { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-100); cursor: pointer; text-decoration: underline; text-decoration-color: var(--ink-20); text-underline-offset: 3px; }
.bd .inl:hover { text-decoration-color: var(--ink-70); }

/* the right column: the preview in browser chrome */
.bd .pv { background: var(--fill); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.bd .chrome { display: flex; align-items: center; gap: 6px; padding: 8px; }
.bd .url { flex: 1; min-width: 0; height: 28px; border-radius: 999px; background: var(--fill); display: flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--ink-55); font-size: 11.5px; white-space: nowrap; }
.bd .url span { overflow: hidden; text-overflow: ellipsis; }
.bd .seg { display: inline-flex; background: var(--fill); border-radius: 999px; padding: 2px; }
.bd .seg button { height: 26px; width: 30px; border-radius: 999px; border: 0; background: none; color: var(--ink-55); cursor: pointer; display: grid; place-items: center; transition: background-color .2s var(--ease), color .2s var(--ease); }
.bd .seg button:hover { color: var(--ink-100); }
.bd .seg button.on { background: var(--ink-100); color: #000; }
.bd .frame { flex: 1; min-height: 0; padding: 0 8px 8px; display: flex; justify-content: center; }

/* the skeleton, in the Look's theme, corners (--sk-r blocks, --sk-x bars), accent (--acc) and font (--sk-font) */
.bd .sk { width: 100%; min-height: 0; border-radius: 8px; background: #fff; padding: 18px 22px; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: 32px .9fr 1.1fr; gap: 12px; transition: width .3s var(--ease); }
.bd .sk.n1, .bd .sk.n2 { grid-template-rows: 32px 1fr; }
.bd .sk .b { border-radius: var(--sk-r); box-shadow: 0 0 0 1px #e7e6e9; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; overflow: hidden; }
.bd .sk .hd { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.bd .sk .w6 { grid-column: span 6; } .bd .sk .w4 { grid-column: span 4; } .bd .sk .w10 { grid-column: 1 / -1; }
.bd .sk .bh { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bd .sk .l { color: #616161; font: 400 12px var(--sk-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: color .4s var(--ease); }
.bd .sk .ok { display: none; color: var(--acc); }
.bd .sk .fr { flex: none; height: 18px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; font: 400 10.5px var(--font); color: #3a3a3a; background: color-mix(in srgb, var(--acc) 12%, #fff); white-space: nowrap; }
.bd .sk .cols { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bd .sk .cols i { font: 400 10.5px/18px var(--sk-font); font-style: normal; color: #616161; background: #f4f4f5; padding: 0 7px; border-radius: min(var(--sk-x), 6px); }
.bd .sk .x { border-radius: var(--sk-x); background: #efeff1; animation: bd-pulse 1.6s var(--ease) infinite; flex: none; transition: background-color .4s var(--ease); }
.bd .sk .x:nth-child(2n) { animation-delay: .2s; } .bd .sk .x:nth-child(3n) { animation-delay: .4s; }
/* a lit block: its step is done, so it holds still and reads in full ink, with the Look's accent on its check */
.bd .sk .b.lit .l { color: #111; }
.bd .sk .b.lit .ok { display: inline-flex; }
.bd .sk .b.lit .x { animation: none; background: #e9e9ec; }
.bd .sk .b.lit .x.f { background: #dcdce0; }
.bd .sk.stopped .x { animation: none; }
@keyframes bd-pulse { 50% { opacity: .45; } }
/* the dark look: a black page with fills, no hairlines */
.bd .sk.dark { background: #050505; }
.bd .sk.dark .b { box-shadow: none; background: rgba(255,255,255,.04); }
.bd .sk.dark .x { background: rgba(255,255,255,.08); }
.bd .sk.dark .l, .bd .sk.dark .cols i { color: rgba(255,255,255,.62); }
.bd .sk.dark .cols i { background: rgba(255,255,255,.06); }
.bd .sk.dark .fr { color: rgba(255,255,255,.85); background: color-mix(in srgb, var(--acc) 18%, transparent); }
.bd .sk.dark .b.lit .l { color: #fff; }
.bd .sk.dark .b.lit .x { background: rgba(255,255,255,.12); }
.bd .sk.dark .b.lit .x.f { background: rgba(255,255,255,.2); }
/* the phone toggle: one column at 390 */
.bd .frame.phone .sk { width: 390px; max-width: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: 32px; grid-auto-rows: minmax(0, 1fr); padding: 14px; gap: 10px; }
.bd .frame.phone .sk .w6, .bd .frame.phone .sk .w4, .bd .frame.phone .sk .w10 { grid-column: auto; }
@media (prefers-reduced-motion: reduce) { .bd .sk .x { animation: none; } .bd .bar i, .bd .sk { transition: none; } }
@media (max-width: 900px) {
  main[data-step="build"] { padding: 16px; }
  .view.bd { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .bd .chat { gap: 14px; overflow: visible; } .bd .pv { min-height: 520px; }
  .bd .frame .sk { width: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: 32px; grid-auto-rows: auto; padding: 14px; gap: 10px; }
  .bd .frame .sk .b { min-height: 120px; } .bd .frame .sk .b.hero { min-height: 150px; }
  .bd .frame .sk .w6, .bd .frame .sk .w4, .bd .frame .sk .w10 { grid-column: auto; } .bd .seg { display: none; }
}
