/* SMARTS HTML Viewer — brand: text #1C1917, accent #DB6428, background #FAFAF8, Inter/system. */
:root {
  --ink: #1C1917;
  --accent: #DB6428;
  --accent-ink: #B4501E;
  --bg: #FAFAF8;
  --line: #E7E5E4;
  --muted: #57534E;
  --bar-h: 40px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { display: flex; flex-direction: column; background: var(--bg); }

.bar {
  flex: 0 0 var(--bar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  min-width: 0;
}
.brand { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); flex: none; }
.name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.size { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar .ghost { margin-left: auto; }

button { font: inherit; cursor: pointer; border-radius: 6px; padding: 6px 14px; }
button.primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); font-weight: 600; }
button.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
button.ghost { background: transparent; color: var(--accent-ink); border: 1px solid var(--line); padding: 4px 10px; font-size: 13px; }
button.ghost:hover { border-color: var(--accent); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

main { flex: 1; overflow: auto; }
.panel { max-width: 560px; margin: 12vh auto 0; padding: 0 16px; line-height: 1.5; }
.panel h1 { font-size: 20px; margin: 0 0 12px; }
.panel h1::before { content: ""; display: block; width: 32px; height: 3px; background: var(--accent); margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 13px; }

#stage { flex: 1; min-height: 0; display: flex; }
#render { flex: 1; width: 100%; border: 0; background: #fff; }
