/* Styles für Erweiterung „build“ – Schritt für Schritt */
.bd-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.bd-main { min-width: 0; }
.bd-steps { position: sticky; top: var(--sp-4); min-width: 0; }
.bd-steps-box { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 10px; }
.bd-steps-box summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); padding: 2px 4px 8px; }
.bd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow-y: auto; }
.bd-list button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 6px; border-radius: var(--radius-xs); cursor: pointer; text-align: left; color: var(--text); font-size: var(--fs-sm); min-width: 0; }
.bd-list button:hover { background: var(--surface-2); }
.bd-list .is-current button { background: var(--accent-soft); font-weight: 600; }
.bd-list .is-done .bd-label { color: var(--text-3); text-decoration: line-through; }
.bd-num { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.bd-list .is-done .bd-num { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.bd-list .is-doing .bd-num { background: var(--info-soft); color: var(--info); border-color: transparent; }
.bd-list .is-current .bd-num { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.bd-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.bd-legend { margin: 8px 4px 0; display: flex; align-items: center; gap: 6px; }

.bd-head h2 { margin: 0; font-size: 1.35rem; overflow-wrap: anywhere; }
.bd-kicker { font-size: var(--fs-xs); color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.bd-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.bd-nav { display: flex; gap: 4px; flex: none; }
.bd-lead { margin: 8px 0 12px; }
.bd-badges { margin-top: 8px; }
.bd-hint { margin-top: 10px; cursor: default; background: var(--warn-soft); }
.bd-gaps { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); font-size: var(--fs-sm); }
.bd-ready { margin-top: 12px; color: var(--ok); font-weight: 600; font-size: var(--fs-sm); }
.bd-foot .bd-ready { margin: 0; }

.bd-block h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.05rem; }
.bd-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bd-block-head h3 { margin: 0; }
.bd-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; flex: none; }
.bd-sub { margin: -4px 0 10px; }
.bd-desc { margin-bottom: 12px; padding: 10px 12px; border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: var(--radius-xs); }

.bd-checks { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bd-checks li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: var(--radius-xs); }
.bd-checks li:hover { background: var(--surface-2); }
.bd-checks label { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 auto; min-width: 0; cursor: pointer; overflow-wrap: anywhere; }
.bd-checks input[type=checkbox] { margin-top: 3px; flex: none; }
.bd-checks .is-done label span { color: var(--text-3); text-decoration: line-through; }
.bd-checks .is-next { background: var(--accent-soft); }
.bd-checks .icon-btn { opacity: .5; }
.bd-checks li:hover .icon-btn, .bd-checks .icon-btn:focus-visible { opacity: 1; }
.bd-exports { margin: 6px 0 0 24px; flex-basis: 100%; }
.bd-checks li:has(.bd-exports) { flex-wrap: wrap; }
.bd-add { flex-wrap: nowrap; }
.bd-add input { flex: 1 1 auto; min-width: 0; }

.bd-sketches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bd-sketch { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; width: 150px; color: var(--text); }
.bd-sketch:hover { border-color: var(--accent); }
.bd-sketch-img { height: 100px; display: grid; place-items: center; background: var(--surface-2); border-radius: var(--radius-xs); overflow: hidden; }
.bd-sketch-img svg, .bd-sketch-img img { max-width: 100%; max-height: 100px; display: block; }
.bd-design { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bd-chip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px 8px 2px 4px; }
.bd-chip i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

.bd-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: var(--sp-4); }
.bd-finish { margin-bottom: var(--sp-3); background: var(--ok-soft); }

@media (max-width: 900px) {
  .bd-layout { grid-template-columns: 1fr; }
  .bd-steps { position: static; }
  .bd-list { max-height: 50vh; }
}
@media (max-width: 640px) {
  .bd-add { flex-wrap: wrap; }
  .bd-foot .btn { flex: 1 1 auto; }
}

/* Erweiterungen: Reihenfolge, Zeit, Prognose, Fokus, Tests */
.bd-list li { display: flex; align-items: center; gap: 2px; border-radius: var(--radius-xs); }
.bd-list li .bd-go { flex: 1 1 auto; min-width: 0; }
.bd-list li[draggable="true"] { cursor: grab; }
.bd-list li.is-dragging { opacity: .5; }
.bd-list li.is-drop { box-shadow: inset 0 2px 0 var(--accent); }
.bd-move { display: inline-flex; flex: none; opacity: 0; transition: opacity .12s; }
.bd-move .icon-btn { width: 22px; height: 22px; font-size: 12px; }
.bd-list li:hover .bd-move, .bd-list li:focus-within .bd-move { opacity: 1; }
@media (hover: none) { .bd-move { opacity: 1; } }

.bd-forecast { margin-top: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 10px 12px; }
.bd-forecast h3 { font-size: var(--fs-sm); margin: 0 0 6px; }
.bd-forecast p { margin: 4px 0; }
.bd-bad { color: var(--danger); }
.bd-good { color: var(--ok); }

.bd-time { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bd-time-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.bd-timer-on { border-color: var(--danger); color: var(--danger); }

.bd-flex { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.bd-bullet { color: var(--text-3); }
.bd-q-sv { cursor: pointer; border: 0; }
.bd-sk-actions { margin-bottom: 12px; }
.bd-tc { margin-top: 4px; font-size: var(--fs-sm); color: var(--text-2); }
.bd-tc summary { cursor: pointer; color: var(--accent); width: max-content; }
.bd-tc ol, .bd-tc ul { margin: 4px 0; padding-left: 20px; }
.bd-tests label span { display: block; }
.bd-code { max-height: 260px; overflow: auto; }
.bd-prompt-text { width: 100%; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; resize: vertical; }
.bd-wire-prev { display: flex; justify-content: center; background: var(--surface-2); border-radius: var(--radius-sm); padding: var(--sp-3); }
.bd-wire-prev svg { max-width: 100%; max-height: 60vh; height: auto; }

.bd-focus { max-width: 760px; margin: 0 auto; text-align: center; padding: var(--sp-4) var(--sp-4) var(--sp-3); }
.bd-focus-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--sp-4); text-align: left; flex-wrap: wrap; }
.bd-focus-count { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 8px; }
.bd-focus-step { font-size: clamp(1.25rem, 3.2vw, 1.9rem); font-weight: 700; line-height: 1.3; margin: var(--sp-4) 0; overflow-wrap: anywhere; }
.bd-focus-actions { justify-content: center; }
.bd-focus-time { margin-top: var(--sp-4); border-top: 1px solid var(--border); padding-top: var(--sp-3); }
.bd-focus-time .bd-time { justify-content: center; margin: 0; }
