.tbw-editor { --tbw-header-height: 0px; margin: 20px 0; padding: 24px; border: 1px solid var(--border, #e5e7eb); border-radius: 12px; background: #fff; line-height: 1.55; }
.tbw-editor[data-mode="portal"] { --tbw-header-height: 56px; }
.tbw-editor h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.3; }
.tbw-editor p { margin: 12px 0; }
.tbw-editor [data-tbw-start] { min-height: 44px; margin: 4px 0; }
.tbw-editor [data-tbw-status] { padding: 10px 12px; border-radius: 8px; background: #f3f4f6; color: #374151; font-size: 14px; }
.tbw-editor [data-tbw-frame] { margin-top: 12px; }
.tbw-editor [data-tbw-frame-tools] {
  position: sticky;
  top: var(--tbw-header-height);
  scroll-margin-top: var(--tbw-header-height);
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
}
.tbw-editor [data-tbw-frame-status] { margin: 0; }
.tbw-editor [data-tbw-reload-controls] { display: flex; gap: 4px 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.tbw-editor [data-tbw-reload] { min-height: 44px; }
.tbw-editor iframe {
  display: block;
  max-width: 100%;
  height: clamp(22rem, calc(100dvh - var(--tbw-header-height) - 7rem), 900px);
}
.tbw-editor .tbw-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; }
.tbw-editor .tbw-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; }
.tbw-editor [data-tbw-close] { min-height: 44px; margin: 4px 8px; }
@media (max-width: 520px) { .tbw-editor { padding: 18px; } }
.tbw-editor [hidden] { display: none !important; }
