/* Render HTML: source on the left, the page on the right. Wider and taller than the other tools: the preview is the point. */
.tool-xwide { width: min(1480px, calc(100% - 48px)); }
.rh { gap: 14px; }
.rh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rh-tabs { display: none; }
.rh-live { font-size: 13.5px; }
.rh-run { padding: 10px 18px; font-size: 14px; }
.rh-actions { margin-left: auto; flex-wrap: wrap; gap: 6px; }
.rh-actions .chip-btn { padding: 8px 12px; font-size: 12.5px; }
.rh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.rh-pane { display: grid; grid-template-rows: auto minmax(0, 1fr); height: max(560px, 74vh); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.rh-pane-head { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--paper-2); font: 500 12px/1 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rh-count { margin-left: auto; text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.rh-size { margin-left: auto; padding: 2px; }
.rh-size button { padding: 6px 10px; font-size: 12px; }
.rh textarea#rh-src { width: 100%; height: 100%; min-height: 0; margin: 0; border: 0; border-radius: 0; padding: 14px; resize: none; background: #fff; color: var(--ink); font: 400 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
.rh textarea#rh-src::placeholder { color: var(--muted-2); font-family: var(--sans); }
.rh-stage { position: relative; overflow: auto; background: repeating-conic-gradient(#f0efec 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.rh-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.rh-stage.is-narrow iframe { width: var(--w); height: calc(100% - 24px); margin: 12px auto; box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }
.rh-stage:fullscreen { background: #fff; }
.rh-stage:fullscreen iframe { width: 100%; height: 100%; margin: 0; box-shadow: none; }
.rh-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font: 400 14px/1.45 var(--sans); color: var(--muted); pointer-events: none; background: #fff; }
.rh-status { margin: 0; padding: 12px 14px; border-radius: 12px; font: 400 14px/1.45 var(--sans); }
.rh-status.is-error { background: #fdece8; color: #a5301c; }
.rh-status.is-warn { background: #fff5d6; color: #6f4a00; }
.rh-status.is-ok { background: var(--paper-2); color: var(--muted); }
.rh-status ul { margin: 6px 0 0; padding-left: 18px; }
.rh-status li + li { margin-top: 2px; }
.rh-status code { font: 400 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(14, 8, 7, 0.06); padding: 1px 5px; border-radius: 5px; }
.rh.is-over { outline: 2px dashed var(--ink); outline-offset: -8px; }
@media (max-width: 860px) {
  .rh-tabs { display: inline-flex; }
  .rh-tabs button { padding: 7px 14px; font-size: 13px; }
  .rh-grid { grid-template-columns: 1fr; }
  .rh-pane { height: 62vh; min-height: 360px; }
  .rh:not(.show-view) #rh-view-pane { display: none; }
  .rh.show-view #rh-code-pane { display: none; }
  .rh-actions { margin-left: 0; }
  .rh-size { display: none; }
}
