:root {
  --bg: #f6f7f9;
  --surface: #fff;
  --text: #1d2330;
  --muted: #5f6b7a;
  --line: #d9dee5;
  --accent: #2557c7;
  --good: #1f7a3d;
  --bad: #b3261e;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
header nav { display: flex; gap: 12px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.spacer { flex: 1; }
.who small { color: var(--muted); }
main { padding: 16px; max-width: 1500px; margin: 0 auto; }
h1 { font-size: 1.5rem; margin: 0 0 12px; }
h2 { font-size: 1.1rem; margin: 16px 0 8px; }
a { color: var(--accent); }
button, .button { font: inherit; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; display: inline-block; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button:disabled { opacity: .6; cursor: default; }
input, select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
label { display: grid; gap: 4px; margin: 8px 0 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.narrow { max-width: 460px; margin: 48px auto; }
.muted { color: var(--muted); }
.error { color: var(--bad); white-space: pre-wrap; }
.list { list-style: none; padding: 0; display: grid; gap: 8px; }
.list li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; flex-wrap: wrap; }
.badge { font-size: .85rem; padding: 3px 10px; border-radius: 999px; text-decoration: none; border: 1px solid currentColor; }
.badge.good { color: var(--good); }
.badge.bad { color: var(--bad); }
.badge.unknown { color: var(--muted); }
.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .workspace { grid-template-columns: 1fr; } }
.column { min-width: 0; }
.instructions, .code { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: .9rem; overflow-x: auto; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.explorer { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; align-self: start; }
.explorer h3 { font-size: .8rem; text-transform: uppercase; color: var(--muted); margin: 8px 4px 4px; }
.explorer .file { display: block; width: 100%; text-align: left; border: 0; padding: 3px 6px; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explorer .file.active, .tab.active { background: #e3eafc; }
.readonly { font-style: italic; color: var(--muted); }
.tabs { display: flex; gap: 2px; margin: 8px 0 0; flex-wrap: wrap; }
.tab { display: inline-flex; border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--surface); }
.tab button { border: 0; background: transparent; padding: 4px 8px; font-size: .9rem; color: inherit; font-style: inherit; }
.tab .close { padding: 4px 6px; color: var(--muted); }
.editor, .readme { height: 520px; border: 1px solid var(--line); border-radius: 0 6px 6px 6px; overflow: hidden; }
.readme { overflow: auto; background: var(--surface); padding: 4px 16px; }
.readme pre { background: var(--bg); padding: 8px; border-radius: 6px; overflow-x: auto; }
.readme table { width: auto; }
[hidden] { display: none !important; }
.run { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.run.Completed { border-left-color: var(--good); }
.run.CompilationFailed, .run.TimedOut { border-left-color: var(--bad); }
.run.InfrastructureFailed, .run.RunCheckFailed { border-left-color: #b26b00; }
.run summary { cursor: pointer; }
table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .9rem; }
th, td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: pre-wrap; }
tr.Passed td:nth-child(3) { color: var(--good); }
tr.Failed td:nth-child(3) { color: var(--bad); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; }
dt { color: var(--muted); }
dd { margin: 0; }
.explorer .note { font-size: .8rem; color: var(--muted); margin: 0 4px 4px; }
