.qtf-stage { position: relative; width: 100%; max-width: 480px; height: 560px; border-radius: 10px; overflow: hidden; background: #1e1f22; }
.qtf-stage .qtf-screen { position: absolute; inset: 0; }
.qtf-stage .stage-msg { position: absolute; inset: 0; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; color: #c9c9c9; background: #1e1f22; font-size: 15px; }
.qtf-stage .stage-msg[hidden] { display: none; }
.qtf-parts { position: absolute; left: -9999px; top: 0; width: 300px; }

.qtf-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 6px; }
.qtf-tools .qtf-copied { font-size: 14px; min-width: 6em; }
.qtf-facts { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.qtf-facts th, .qtf-facts td { text-align: left; vertical-align: top; padding: 3px 6px 3px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); overflow-wrap: anywhere; }
.qtf-facts th { width: 7.5em; font-weight: 600; }
.qtf-facts td { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.qtf-box { margin: 10px 0; }
.qtf-box h4 { margin: 0 0 4px; font-size: 15px; }
/* A fixed height, so that new lines do not move the page. */
.qtf-log { height: 190px; overflow-y: auto; overscroll-behavior: contain; margin: 4px 0 0; padding: 6px 8px; border-radius: 6px; background: #101012; color: #d8d8d8;
  font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.qtf-factbox { min-height: 440px; }
