:root {
  --bg: #ffffff;
  --bar: #ffffff;
  --line: #e2e5ea;
  --accent: #2c7be5;
  --warm: #10b981;
  --text: #1a1d24;
  --muted: #8b93a1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", "Malgun Gothic", sans-serif; }
body { display: flex; flex-direction: column; }

.topbar { display: flex; align-items: center; gap: 20px; padding: 10px 16px;
  background: var(--bar); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 15px; }
.badge { font-size: 11px; background: var(--accent); color: #fff; padding: 1px 7px;
  border-radius: 10px; margin-left: 4px; }

.global-filter { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.global-filter label { color: var(--muted); }
.global-filter input[type="date"] { padding: 4px 6px; border: 1px solid var(--line);
  border-radius: 6px; }
.global-filter button { padding: 5px 12px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.global-filter button.ghost { background: #fff; color: var(--muted); border-color: var(--line); }

.status { margin-left: auto; font-size: 12px; color: var(--muted); }
.status.err { color: #e5484d; }

.tabbar { display: flex; gap: 4px; padding: 8px 12px 0; background: var(--bar);
  border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap;
  border: 1px solid var(--line); border-bottom: none; background: #f0f2f5;
  padding: 7px 12px; border-radius: 8px 8px 0 0; cursor: pointer; font-size: 13px; color: var(--muted); }
.tab.warm { color: var(--text); }
.tab.warm::after { content: "●"; color: var(--warm); font-size: 8px; margin-left: 5px; }
.tab.active { background: #fff; color: var(--accent); font-weight: 600;
  border-color: var(--accent); }
.pin { cursor: pointer; opacity: .5; font-size: 12px; }
.pin.on { opacity: 1; }

.stage { position: relative; flex: 1; min-height: 0; }
.report-frame { position: absolute; inset: 0; }
.report-frame iframe { border: 0; width: 100%; height: 100%; }
