/* The report builder (web/report_pages.py, /w/reports.js): the type cards, the form with its sections list, and the
   live preview. Product tokens only: the agency brand reaches the preview frame, never these controls. */
.rbtypes{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin:0 0 18px}
.rbtype{display:flex;flex-direction:column;gap:3px;padding:11px 13px;border:1px solid var(--border-strong);border-radius:10px;color:var(--text-1);text-decoration:none;background:var(--surface-panel)}
.rbtype b{font-size:var(--f12);font-weight:600}
.rbtype small{font-size:var(--f11);color:var(--text-3);line-height:1.4}
.rbtype:hover{background:var(--surface-sunken)}
.rbtype.on{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,var(--surface-panel));box-shadow:inset 0 0 0 1px var(--primary)}
.rbtype:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.rb{display:grid;grid-template-columns:minmax(340px,440px) minmax(0,1fr);gap:18px;align-items:start}
.rbform fieldset{border:0;margin:0;padding:0;min-width:0}
.rbform legend{font-size:var(--f12);font-weight:600;color:var(--text-1);padding:0;margin-bottom:6px}
#rbsecs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.rbsec{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px 6px 6px 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface-sunken)}
.rbsec:focus-within{border-color:var(--border-strong)}
.rbsec:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.rbsec.off .rbhd input{color:var(--text-3)}
.rbsec .rbhd input{min-height:36px;padding:6px 10px;font-size:var(--f12)}
.rbsec .rbhd input::placeholder{color:var(--text-2)}
.rbmv{display:flex;gap:2px}
.rbmv .btn{min-width:36px;min-height:36px;padding:0;justify-content:center}
.rbmv .btn:disabled{opacity:.35}
.rbon{padding:0}
.chks{display:flex;flex-wrap:wrap;gap:8px 18px}
.chks .cbx b{font-size:var(--f12)}
.rbnote{font-size:var(--f12);color:var(--text-2);line-height:1.5;margin:0;display:flex;gap:7px;align-items:flex-start}
.rbnote.warn{color:var(--warning-fg)}
.rbnote a{color:var(--link)}
.rbgate{padding:14px 16px;border-radius:10px}
.rbgate h3{margin-bottom:6px}
.rbgate p{font-size:var(--f12);color:var(--text-2);margin:0 0 6px}
.rbgate ul{margin:0 0 12px;padding-left:18px;font-size:var(--f12);color:var(--text-1)}
.rbresult:empty{display:none}
.rbresult{padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-sunken);display:flex;flex-direction:column;gap:8px}
.rbresult b{font-size:var(--f12)}
.rbresult .url{font-size:var(--f11);overflow-wrap:anywhere}
.rbresult div{display:flex;gap:8px;flex-wrap:wrap}
.rbmade{font-size:var(--f11);margin:0}.rbmade a{color:var(--link)}
.rbtpl{border-top:1px solid var(--border);padding-top:12px}
.rbtpl summary{cursor:pointer;font-size:var(--f12);font-weight:600;width:max-content;border-radius:6px}
.rbtplb{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.rbtlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.rbtlist li{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:var(--f12);padding:6px 8px;border:1px solid var(--border);border-radius:8px}
.rbtlist em{font-style:normal;font-size:var(--f11);color:var(--text-3);margin-left:6px}
.rbprev{position:sticky;top:64px;display:flex;flex-direction:column;gap:10px;padding:12px;background:var(--surface-panel);border:1px solid var(--border);border-radius:14px}
.rbstate{font-size:var(--f11);margin-left:auto}
.rbframe{position:relative;overflow:hidden;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface-canvas);height:calc(100vh - 170px);min-height:420px}
.rbframe iframe{position:absolute;left:0;top:0;border:0;transform-origin:0 0;display:block;background:var(--surface-canvas)}
.rbframe[data-w=phone]{max-width:392px;margin:0 auto;width:100%}
@media (max-width:600px){
  .rbtypes{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .rbtype small{display:none}
  .rbtype{padding:10px 11px;min-height:44px;justify-content:center}
}
@media (max-width:1100px){
  .rb{grid-template-columns:minmax(0,1fr)}
  .rbprev{position:static}
  .rbframe{height:640px}
}
