/* Deliberately small and dependency-free: the shell is a launcher, and the
   artifacts it opens bring their own styling. No web fonts, no CDN — the strict
   posture of the rest of this project applies here too. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --panel: #f6f7f9;
  --line: #e2e5ea;
  --text: #16181d;
  --muted: #61666e;
  --accent: #2f5bd7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --panel: #1b1e24;
    --line: #2a2f37;
    --text: #e8eaee;
    --muted: #9aa1ab;
    --accent: #7aa0ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

h1 { font-size: 16px; margin: 0; font-weight: 650; }

.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }

main { padding: 20px; max-width: 1100px; margin: 0 auto; }

button {
  font: inherit;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}

button:hover { border-color: var(--muted); }

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
}

.runs { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }

select {
  font: inherit;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
}

.hint, .status { color: var(--muted); font-size: 13px; }

.artifacts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 20px;
}

.artifacts button {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  font-weight: 600;
}

.artifacts small { color: var(--muted); font-weight: 400; }

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

#frame {
  width: 100%;
  height: 78vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
