/* Record-a-build studio (build.js) */
.bs-back { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.78); backdrop-filter: blur(4px);
           display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 28px 16px; }
.bs-back[hidden] { display: none; }
.bs { width: min(1100px, 100%); background: #0C0C0C; border: 1px solid #242424; border-radius: 16px; padding: 20px 22px 22px; }
.bs-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.bs-title { font: 700 30px/1 'Barlow Condensed', system-ui, sans-serif; }
.bs-sub { color: #888; font-size: 13px; margin-top: 5px; }
.bs-sub b { color: #ddd; font-weight: 600; }
.bs-x { background: none; border: 0; color: #888; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.bs-x:hover { color: #fff; }
.bs-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 12px; }
.bs-field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .04em; }
.bs-field input { background: #141414; border: 1px solid #242424; color: #fff; font: 500 14px Inter, system-ui, sans-serif;
                  padding: 8px 10px; border-radius: 8px; outline: none; width: 240px; text-transform: none; letter-spacing: 0; }
.bs-field input:focus { border-color: #FF5C1A; }
.bs-seg { display: inline-flex; gap: 3px; padding: 3px; background: #141414; border: 1px solid #1A1A1A; border-radius: 8px; }
.bs-seg button { background: none; border: 0; color: #888; cursor: pointer; font: 500 12px Inter, system-ui, sans-serif; padding: 5px 10px; border-radius: 5px; }
.bs-seg button.on { background: #282828; color: #fff; }
.bs-stage { background: #050505; border: 1px solid #1A1A1A; border-radius: 10px; display: flex; justify-content: center; padding: 10px; }
.bs-stage canvas { display: block; width: 100%; height: auto; background: #000; }
.bs-stage[data-shape="1:1"] canvas { width: min(100%, 560px); }
.bs-stage[data-shape="9:16"] canvas { width: min(100%, 380px); }
.bs-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.bs-btn { background: #1c1c1c; border: 1px solid #2c2c2c; color: #fff; font: 600 13px Inter, system-ui, sans-serif;
          padding: 9px 16px; border-radius: 8px; cursor: pointer; }
.bs-btn:hover { border-color: #444; }
.bs-btn.rec { background: #FF5C1A; border-color: #FF5C1A; color: #000; }
.bs-btn:disabled { opacity: .45; cursor: default; }
.bs-status { color: #888; font-size: 12px; }
.bs.busy .bs-seg, .bs-back.busy .bs-seg { opacity: .5; pointer-events: none; }
.bs-moments { margin-top: 14px; font-size: 12px; color: #888; display: flex; flex-direction: column; gap: 6px; }
.bs-moments b { color: #ddd; font-weight: 600; }
.bs-moments span { display: inline-block; margin: 2px 8px 2px 0; padding: 2px 8px; border: 1px solid #242424; border-radius: 999px; color: #ccc; }
.bs-moments span.m { border-color: rgba(255,92,26,.5); color: #FF8A57; }
.bs-moments i { color: #666; font-style: normal; margin-left: 4px; }
.bs-moments .hint { color: #555; }
.bs-moments code { color: #888; }
.rec-build { background: #141414; border: 1px solid #242424; color: #fff; font: 600 12px Inter, system-ui, sans-serif;
             padding: 6px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.rec-build:hover { border-color: #FF5C1A; }
.rec-build .dot { width: 8px; height: 8px; border-radius: 50%; background: #FF5C1A; }
@media (max-width: 640px) {
  .bs-back { padding: 0; }
  .bs { border-radius: 0; min-height: 100%; padding: 16px 14px; }
  .bs-field { flex: 1 1 100%; }
  .bs-field input { width: 100%; }
}
