.rb-builder { --rb-line:var(--line,#dfdacd); --rb-green:var(--forest-800,#214d38); --rb-muted:var(--gray-500,#646c67); --rb-paper:var(--warm-white,#fffefa); color:var(--forest-950,#122a20); max-width:100%; min-width:0; margin:16px 0; overflow:hidden; border:1px solid var(--rb-line); border-radius:20px; background:var(--cream-50,#fcfaf5); }
.rb-builder * { box-sizing:border-box; }
.rb-builder button,.rb-builder input,.rb-builder select { font:inherit; color:inherit; }
.rb-builder button { min-height:44px; border:1px solid var(--rb-line); border-radius:11px; padding:9px 12px; background:var(--rb-paper); font-size:12px; font-weight:700; cursor:pointer; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.rb-builder button:disabled { opacity:.55; cursor:wait; }
.rb-builder button:focus-visible,.rb-builder input:focus-visible,.rb-builder select:focus-visible { outline:3px solid var(--water,#3f7fa6); outline-offset:2px; }
.rb-builder h3 { margin:0; font-family:var(--font-heading, sans-serif); font-size:23px; font-weight:500; line-height:1.2; overflow-wrap:anywhere; }
.rb-builder h4 { margin:7px 0 1px; font-size:14px; }
.rb-heading { padding:16px 14px 11px; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.rb-heading>div { min-width:0; }
.rb-eyebrow { margin:0 0 5px; font-size:10px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; color:var(--wood-600,#896541); }
.rb-builder .rb-text-button { min-height:36px; padding:5px 0; border:0; background:transparent; color:var(--rb-green); font-size:12px; text-align:left; }
.rb-edit { flex-shrink:0; }
.rb-builder .rb-edit.is-active,.rb-builder .rb-primary { background:var(--rb-green); color:var(--warm-white,#fffefa); border-color:var(--rb-green); }
.rb-view-options { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:0 14px 12px; }
.rb-segments { display:flex; gap:3px; border-radius:12px; padding:3px; background:var(--leaf-200,#d8e5cf); min-width:0; }
.rb-segments button { padding:7px 9px; min-height:38px; border:0; background:transparent; font-size:11px; }
.rb-segments button[aria-pressed=true] { color:var(--rb-paper); background:var(--rb-green); }
.rb-stage { position:relative; width:100%; min-width:0; height:400px; overflow:hidden; isolation:isolate; }
.rb-canvas,.rb-hit-layer { position:absolute; inset:0; }
.rb-canvas { pointer-events:none; }
.rb-canvas>svg { width:100%; height:100%; display:block; }
.rb-hit-layer { pointer-events:none; }
.rb-builder .rb-hit { position:absolute; min-width:44px; min-height:44px; padding:0; margin:0; border:1px solid transparent; border-radius:8px; background:transparent; pointer-events:auto; touch-action:manipulation; box-shadow:none; }
.rb-builder .rb-hit.is-selected { border:1px dashed var(--forest-700,#2f6548); background:rgba(100,143,85,.06); }
.rb-builder .rb-hit:focus-visible { outline:2px solid var(--water,#3f7fa6); }
.rb-organizing .rb-hit { cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; }
.rb-organizing .rb-hit:active { cursor:grabbing; }
.rb-scene-notes { padding:10px 14px; font-size:12px; line-height:1.5; }
.rb-scene-notes p { margin:0 0 4px; }
.rb-scene-notes small { color:var(--rb-muted); font-size:11px; }
.rb-main-actions { padding:0 14px 14px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.rb-main-actions button { min-width:0; }
.rb-panel { display:grid; gap:11px; padding:15px 14px; border-top:1px solid var(--rb-line); background:var(--rb-paper); min-width:0; }
.rb-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; }
.rb-panel-heading h3 { font-size:20px; }
.rb-panel-heading>span { font-size:11px; color:var(--rb-muted); }
.rb-note { font-size:12px; line-height:1.5; color:var(--rb-muted); margin:0; overflow-wrap:anywhere; }
.rb-help { font-size:11px; line-height:1.5; color:var(--rb-muted); }
.rb-help summary { cursor:pointer; color:var(--rb-green); padding:4px 0; }
.rb-help p { margin:7px 0 0; }
.rb-kit-parts ul { list-style:none; margin:10px 0; padding:0; display:grid; gap:10px; }
.rb-kit-parts li { border-bottom:1px solid var(--rb-line); padding-bottom:9px; }
.rb-kit-parts li>strong,.rb-kit-parts li>span { display:block; }
.rb-kit-parts li>strong { color:var(--forest-950,#122a20); font-size:12px; }
.rb-kit-parts li>span { font-size:10px; margin-top:3px; }
.rb-geometry { margin-top:7px; border-top:1px solid var(--rb-line); padding-top:5px; }
.rb-geometry.has-notices summary { color:var(--wood-600,#896541); font-weight:700; }
.rb-geometry ul { padding-left:18px; margin:6px 0; }
.rb-builder .rb-geometry .rb-text-button { display:inline; min-height:28px; font-size:11px; padding:2px 0; }
.rb-status { margin:0 14px 12px; border-radius:10px; padding:10px; background:var(--leaf-200,#d8e5cf); font-size:12px; line-height:1.5; }
.rb-builder .rb-error { color:var(--danger,#b84b43); background:var(--danger-soft,#f4dedb); }
.rb-actions { display:flex; flex-wrap:wrap; gap:7px; }
.rb-actions>* { min-width:0; }
.rb-add-main,.rb-kit-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.rb-shelf { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.rb-builder .rb-product { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:5px; padding:7px 5px 11px; min-width:0; background:var(--cream-50,#fcfaf5); }
.rb-product>span { display:block; width:100%; height:70px; }
.rb-product svg { max-width:100%; height:70px; width:84px; }
.rb-product strong { font-size:11px; }
.rb-product small { font-size:10px; font-weight:400; color:var(--rb-muted); }
.rb-builder .rb-list-item { display:flex; align-items:center; text-align:left; gap:9px; width:100%; min-width:0; padding:5px 7px; border-radius:11px; font-weight:400; }
.rb-list-item>span:nth-child(2) { flex:1; min-width:0; }
.rb-list-item strong,.rb-list-item small { display:block; overflow-wrap:anywhere; }
.rb-list-item strong { font-size:12px; }
.rb-list-item small { margin-top:4px; color:var(--rb-muted); font-size:10px; }
.rb-list-image { width:45px; height:43px; flex-shrink:0; }
.rb-list-image svg { width:45px; height:43px; }
.rb-arrow { font-size:21px; }
.rb-list { display:grid; gap:6px; }
.rb-kit-group { min-width:0; border:1px solid var(--rb-line); border-radius:12px; padding:8px; display:grid; gap:6px; }
.rb-kit-title { display:flex; justify-content:space-between; align-items:center; gap:7px; }
.rb-kit-title>button:first-child { text-align:left; border:0; padding:3px; background:transparent; flex:1; min-width:0; }
.rb-kit-title small { display:block; margin-top:4px; font-weight:400; font-size:10px; color:var(--rb-muted); }
.rb-kit-title .rb-text-button { flex-shrink:0; font-size:10px; }
.rb-child { background:var(--cream-50,#fcfaf5)!important; }
.rb-kit-card { border:1px solid var(--rb-line); border-radius:13px; padding:10px; display:grid; gap:8px; min-width:0; }
.rb-kit-card h4 { margin:0; }
.rb-kit-card p { font-size:12px; line-height:1.4; margin:0; color:var(--rb-muted); }
.rb-kit-card button { font-size:11px; }
.rb-kit-images { display:flex; height:64px; justify-content:center; }
.rb-kit-images svg { min-width:0; width:33%; height:64px; }
.rb-badges { display:flex; gap:5px; flex-wrap:wrap; }
.rb-badges>span,.rb-badge { display:inline-block; padding:5px 7px; border-radius:7px; background:var(--leaf-200,#d8e5cf); font-size:10px; font-weight:600; line-height:1.4; }
.rb-bindings { list-style:none; padding:0; margin:0; display:grid; gap:7px; font-size:12px; }
.rb-bindings li { display:grid; gap:3px; padding:8px; background:var(--cream-50,#fcfaf5); border-radius:8px; }
.rb-bindings span { color:var(--rb-muted); }
.rb-access { padding:12px; border-radius:12px; background:var(--cream-100,#f7f2e8); display:grid; gap:8px; }
.rb-access small { font-size:11px; line-height:1.5; color:var(--rb-muted); }
.rb-detail-heading { display:flex; align-items:center; gap:8px; min-width:0; }
.rb-detail-heading>div { flex:1; min-width:0; }
.rb-detail-heading h3 { font-size:20px; margin-bottom:5px; }
.rb-detail-image { width:58px; height:60px; flex-shrink:0; }
.rb-detail-image svg { width:58px; height:60px; }
.rb-builder form { display:grid; gap:12px; min-width:0; }
.rb-builder fieldset { padding:11px 0 0; margin:0; border:0; border-top:1px solid var(--rb-line); min-width:0; display:grid; gap:10px; }
.rb-builder legend { padding:0 5px 0 0; font-size:12px; font-weight:700; }
.rb-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; min-width:0; }
.rb-fields.rb-three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.rb-fields label,.rb-field { display:grid; gap:5px; font-size:11px; min-width:0; }
.rb-fields small { color:var(--rb-muted); font-size:9px; line-height:1.3; }
.rb-builder input[type=number],.rb-builder select { min-width:0; width:100%; min-height:42px; border:1px solid var(--rb-line); border-radius:9px; background:var(--cream-50,#fcfaf5); padding:8px 7px; font-size:13px; }
.rb-builder .rb-check { display:flex; align-items:flex-start; gap:8px; font-size:11px; line-height:1.5; }
.rb-check input { margin:2px 0 0; width:17px; height:17px; flex-shrink:0; }
.rb-kit-shortcuts { display:flex; flex-wrap:wrap; gap:6px; }
.rb-kit-shortcuts button { display:flex; gap:12px; justify-content:space-between; }
@media(max-width:380px) { .rb-heading {padding:13px 10px 10px}.rb-panel {padding:13px 10px}.rb-view-options {padding-left:10px;padding-right:10px}.rb-view-options {gap:6px}.rb-segments button {font-size:10px;padding:7px}.rb-kit-choices {grid-template-columns:1fr}.rb-shelf {gap:5px}.rb-builder .rb-product {padding:5px 3px 9px}.rb-product strong {font-size:10px}.rb-fields {gap:6px}.rb-heading h3 {font-size:21px} }
@media(prefers-reduced-motion:reduce) { .rb-builder * {scroll-behavior:auto;transition:none!important;animation:none!important} }
