:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { height: 100%; height: 100dvh; margin: 0; font-family: system-ui, sans-serif; background: #111; color: #eee; }
body { display: flex; flex-direction: column; }
.bar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: #1c1c1c;
  border-bottom: 1px solid #333;
  font-size: 13px;
}
.bar a, .bar button {
  color: #111;
  background: #fc0;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.bar a.ghost, .bar button.ghost {
  background: #333;
  color: #eee;
  font-weight: 500;
}
.bar .title { font-weight: 700; margin-right: 4px; }
.bar .status { color: #9ad; font-size: 12px; }
.panes {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pane {
  flex: 1 1 50%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #333;
}
.lbl {
  flex: 0 0 auto;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #222;
  color: #fc0;
}
iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #fff;
}
@media (orientation: landscape) {
  .bar { padding: 4px 8px; gap: 6px; }
  .bar .ghost { display: none; }
  .panes { flex-direction: row; }
  .pane {
    border-top: 0;
    border-left: 1px solid #333;
    flex: 1 1 50%;
    width: 50%;
    max-width: 50%;
  }
}
