/* Selling-point test builder: a full-width work surface with a persistent review rail. */
.rb-root{max-width:1460px;margin:0 auto;color:var(--ink)}
.rb-breadcrumb{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;margin:-8px 0 14px}
.rb-breadcrumb .btn{padding:3px 0;min-height:26px;font-size:12px}
.rb-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.rb-heading h1{margin-bottom:7px;font-size:27px;letter-spacing:-.025em}
.rb-heading p{margin:0;color:var(--muted);font-size:13px}
.rb-steps{display:flex;align-items:center;white-space:nowrap;color:var(--muted);font-size:12px}
.rb-steps span{padding:7px 10px;border-bottom:2px solid var(--line)}
.rb-steps span.active{color:var(--accent);border-color:var(--accent);font-weight:700}
.rb-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,305px);align-items:start;gap:18px}
.rb-main{display:grid;gap:15px;min-width:0}
.rb-panel,.rb-summary{background:#fff;border:1px solid var(--line);border-radius:8px}
.rb-panel{padding:19px 22px}
.rb-panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
.rb-panel-head h2{margin:0;font-size:17px}
.rb-panel-head small{font-size:11px;color:var(--muted)}
.rb-panel-head .btn{font-size:12px;min-height:28px;padding:3px 0}
.rb-scope-fields{display:grid;grid-template-columns:1.18fr 1fr 1fr;gap:12px}
.rb-root .field{margin:0;min-width:0}
.rb-root .field label{display:block;font-size:11px;font-weight:600;color:#536f80;margin-bottom:5px}
.rb-root input:not([type=checkbox]),.rb-root select{height:39px;padding:7px 10px;font-size:13px}
.rb-details{border-top:1px solid #e9eff2;margin-top:15px;padding-top:11px}
.rb-details summary{list-style:none;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#536f80;cursor:pointer}
.rb-details summary::-webkit-details-marker{display:none}
.rb-details summary>span{color:var(--muted);flex:1;min-width:180px}
.rb-details summary>b{color:var(--accent);font-weight:650;white-space:nowrap}
.rb-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:17px}
.rb-details .hint{margin:11px 0 0}
.rb-mode-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}
.rb-mode-switch{display:inline-flex;background:#edf3f5;padding:3px;border-radius:6px}
.rb-mode-switch button{padding:8px 14px;color:#567181;background:transparent;border-radius:4px;font-size:12px;font-weight:650}
.rb-mode-switch button.active{background:var(--nav);color:#fff}
.rb-mode-help{margin:9px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.rb-stats{display:flex;align-items:center;gap:0}
.rb-stats div{border-left:1px solid var(--line);padding:0 16px;white-space:nowrap}
.rb-stats strong{display:block;font-size:17px;line-height:1.3;font-variant-numeric:tabular-nums}
.rb-stats span{color:var(--muted);font-size:11px}
.rb-arrangement-controls{border-top:1px solid #e9eff2;margin-top:15px;padding-top:2px}
.rb-arrangement-controls[hidden],.rb-sequence-control[hidden]{display:none!important}
.rb-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#round-builder-root .round-group{margin:0;padding:0;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:7px;overflow:hidden;min-width:0}
#round-builder-root .round-group:nth-child(even){border-top-color:#78a1b5}
.rb-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8fbfc;border-bottom:1px solid #e8eef1;padding:11px 14px}
.rb-group-head h3{font-size:14px;margin:0}
.rb-group-head span{font-size:11px;color:var(--muted);white-space:nowrap}
.rb-group-body{padding:12px 14px 13px}
#round-builder-root .round-step{border:0;padding:0}
#round-builder-root .round-step+.round-step{border-top:1px solid #e6eef1;margin-top:15px;padding-top:15px}
.rb-step-title,.rb-version-title{font-size:11px;font-weight:650;color:#526e7e;margin-bottom:5px}
.rb-version-title{display:flex;justify-content:space-between;margin:12px 0 0}
#round-builder-root .round-versions{display:block;margin:0}
#round-builder-root .round-version{display:flex!important;align-items:start;gap:9px;background:transparent;padding:9px 0;border-bottom:1px solid #e9f0f3;border-radius:0;font-size:12px;line-height:1.35;min-width:0}
#round-builder-root .round-version:last-child{border-bottom:0;padding-bottom:0}
#round-builder-root .round-version input{flex:none;margin:2px 0 0;width:15px;height:15px}
#round-builder-root .round-version span{min-width:0;overflow-wrap:anywhere}
#round-builder-root .round-version small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.rb-footnote,.rb-page-foot{color:var(--muted);font-size:11px;line-height:1.6}
.rb-footnote{margin:11px 0 0}.rb-page-foot{margin:0 2px}.rb-page-foot strong{color:#405b6b}
.rb-summary{overflow:hidden;position:sticky;top:20px;max-height:calc(100vh - 40px);overflow-y:auto}
.rb-summary-head{padding:18px 20px 15px;background:#eaf3f5;border-bottom:1px solid var(--line)}
.rb-summary-head h2{font-size:18px;margin:0 0 4px}.rb-summary-head p{font-size:12px;color:#507080;margin:0}
.rb-summary-body{padding:16px 20px 18px}
.rb-summary-count{display:flex;gap:16px;border-bottom:1px solid #e8eef1;padding-bottom:14px}
.rb-summary-count div{flex:1}.rb-summary-count strong{display:block;font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums}.rb-summary-count span{font-size:11px;color:var(--muted)}
.rb-summary h3{font-size:12px;margin:17px 0 8px}
.rb-summary-line{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin:7px 0}
.rb-summary-line span{color:var(--muted);white-space:nowrap}
.rb-summary-line strong{font-weight:600;text-align:right;overflow-wrap:anywhere;max-width:64%}
.rb-sequence{display:flex;gap:8px;align-items:start;background:#f4f9fa;border-radius:4px;padding:8px 9px;font-size:12px;margin:6px 0}
.rb-sequence b{color:var(--accent);min-width:16px}.rb-sequence span{overflow-wrap:anywhere}
.rb-preview-prompt,.rb-preview-warning{font-size:11px;line-height:1.55;padding:9px 11px;margin:15px 0;background:#fcf3e8;border-left:3px solid #d2a153;color:#82561e}
.rb-preview-ok{display:flex;justify-content:space-between;gap:8px;align-items:center;background:#eaf5f2;color:#236767;padding:9px 10px;margin-top:16px;font-size:11px}
.rb-preview-ok strong{font-size:12px}
.rb-preview-warning{margin:7px 0}
.rb-preview-groups>div{padding:10px 0;border-bottom:1px solid #e8eef1;font-size:11px}
.rb-preview-groups>div:last-child{border:0}.rb-preview-groups p{margin:4px 0;font-size:11px}.rb-preview-groups small{display:block;color:var(--muted);line-height:1.45;margin:3px 0;overflow-wrap:anywhere}
.rb-summary-actions{display:grid;gap:8px;margin-top:16px}
.rb-summary-actions .btn{width:100%;min-height:39px;font-size:12px}
.rb-summary-actions #round-preview{border-color:var(--accent);color:var(--accent)}
.rb-summary-actions small{font-size:11px;color:var(--muted);text-align:center;line-height:1.45}
@media(max-width:1260px){.rb-layout{grid-template-columns:minmax(0,1fr) 275px}.rb-stats div{padding:0 10px}.rb-scope-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.rb-layout{grid-template-columns:1fr}.rb-summary{position:static;max-height:none}.rb-heading{display:block}.rb-steps{margin-top:15px}}
@media(max-width:760px){.rb-root .rb-heading h1{font-size:24px}.rb-steps{overflow-x:auto}.rb-panel{padding:17px}.rb-panel-head{align-items:start}.rb-scope-fields,.rb-detail-grid,.rb-groups,.rb-mode-row{grid-template-columns:1fr}.rb-stats{justify-content:space-between}.rb-stats div:first-child{padding-left:0;border-left:0}.rb-stats div{padding:0 9px}.rb-details summary>span{min-width:0}.rb-summary-body{padding:15px}}
