:root {
  --ink: #0a0a0a;
  --ink2: #34373d;
  --muted: #6b7079;
  --faint: #9a9fa8;
  --line: #e8e9ec;
  --soft: #f6f6f7;
  --bg: #ffffff;
  --green: #137a3a;
  --green-bg: #eaf7ef;
  --red: #b42318;
  --red-bg: #fdf0ee;
  --orange: #a95409;
  --orange-bg: #fdf4e8;
  --blue: #3048c6;
  --blue-bg: #eef1fc;
  --radius: 14px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.45; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 max(20px, env(safe-area-inset-left, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 24px; font-weight: 650; letter-spacing: -1.2px; }
.brand-sub { font-size: 12px; color: var(--faint); padding-top: 4px; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav a { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.on { color: var(--ink); background: var(--soft); font-weight: 560; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.who button { border: 0; background: none; color: var(--muted); padding: 6px 0; font-size: 13px; }
.who button:hover { color: var(--ink); }

.main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 36px max(20px, env(safe-area-inset-right, 0px)) 96px max(20px, env(safe-area-inset-left, 0px));
}
.loading { color: var(--faint); font-size: 14px; }

/* headings */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
h1 { font-size: 40px; line-height: 1.08; letter-spacing: -1.6px; font-weight: 540; margin: 0; text-wrap: balance; }
h2 { font-size: 22px; letter-spacing: -0.6px; font-weight: 560; margin: 0; }
h3 { font-size: 16px; letter-spacing: -0.2px; font-weight: 600; margin: 0; }
.lede { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 12px 0 0; max-width: 680px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; flex-wrap: wrap; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 560; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover:not(:disabled) { background: #262626; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #d6d8dc; }
.btn.ghost:hover:not(:disabled) { background: var(--soft); }
.btn.quiet { background: none; border-color: transparent; color: var(--muted); padding: 0 6px; }
.btn.quiet:hover:not(:disabled) { color: var(--ink); background: none; }
.btn.danger { background: #fff; color: var(--red); border-color: #efc6c0; }
.btn.danger:hover:not(:disabled) { background: var(--red-bg); }
.btn.small { min-height: 32px; padding: 0 14px; font-size: 13px; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c7c9ce; }
.back { display: inline-flex; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.back:hover { color: var(--ink); }

/* chips and dots */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 560; background: var(--soft); color: var(--ink2); white-space: nowrap;
}
.chip.outline { background: #fff; border: 1px solid var(--line); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.orange { background: var(--orange-bg); color: var(--orange); }
.chip.blue, .chip.sim { background: var(--blue-bg); color: var(--blue); }
.chip.gray { background: var(--soft); color: var(--muted); }
.chip.ink { background: var(--ink); color: #fff; }
.chip.big { height: 32px; padding: 0 14px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; }
.dot.green { background: var(--green); }
.dot.red { background: var(--red); }
.dot.orange { background: #d97706; }
.dot.blue, .dot.sim { background: var(--blue); }
.dot.gray { background: #c9ccd1; }
.dot.live { background: var(--ink); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; }
.card.soft { background: var(--soft); border-color: transparent; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* banner for the run going now */
.banner {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius);
  background: var(--ink); color: #fff; margin-bottom: 28px; flex-wrap: wrap;
}
.banner .dot.live, .chip.ink .dot.live { background: #fff; }
.banner .grow { flex: 1; min-width: 200px; font-size: 14px; }
.banner .btn { background: #fff; color: var(--ink); border-color: #fff; }

/* workflow cards */
.wf { display: flex; flex-direction: column; gap: 14px; }
.wf-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wf-sum { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.wf-last { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.wf-last a:hover { color: var(--ink); }
.wf-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 6px; }
.field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.select, .input, .textarea {
  min-height: 40px; border: 1px solid #d6d8dc; border-radius: 10px; background: #fff; padding: 0 12px; font-size: 14px;
}
.select { padding-right: 30px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.textarea { padding: 10px 12px; min-height: 76px; width: 100%; resize: vertical; line-height: 1.5; }
.input { width: 100%; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); gap: 2px; }
.seg button { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); font-weight: 560; }
.hint { font-size: 12px; color: var(--faint); line-height: 1.5; margin: 0; }

/* run list */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { border: 1px solid var(--line); background: #fff; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.filters button.on { border-color: var(--ink); color: var(--ink); font-weight: 560; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.row { cursor: pointer; }
.table tr.row:hover td { background: #fafafa; }
.table .num { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.empty { padding: 28px 0; color: var(--muted); font-size: 14px; }

/* run page */
.run-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.run-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--muted); margin-top: 14px; }
.run-meta b { color: var(--ink2); font-weight: 560; }
.broke {
  margin-top: 26px; border: 1px solid #f1cbc5; background: var(--red-bg); border-radius: var(--radius); padding: 20px 22px;
  display: grid; gap: 8px;
}
.broke .eyebrow { color: var(--red); margin: 0; }
.broke h2 { color: var(--red); font-size: 22px; }
.broke p { margin: 0; color: #7a271a; font-size: 14px; line-height: 1.55; }
.ended { margin-top: 26px; border: 1px solid var(--line); background: var(--soft); border-radius: var(--radius); padding: 18px 22px; font-size: 14px; color: var(--ink2); line-height: 1.55; }
.ended.pass { background: var(--green-bg); border-color: #cdebd8; color: #0f5b2c; }
.run-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; margin-top: 32px; align-items: start; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.mark.done { background: var(--green); color: #fff; }
.mark.failed { background: var(--red); color: #fff; }
.mark.waiting { border: 2px solid #c9ccd1; }
.mark.waiting.live { border-color: var(--ink); border-right-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mark.not_reached { border: 2px dashed #d3d5da; }
.mark.not_here { border: 2px dotted #d3d5da; }
.step-label { font-size: 15px; font-weight: 560; letter-spacing: -0.1px; }
.step.not_here .step-label, .step.not_reached .step-label { color: var(--faint); font-weight: 500; }
.step-detail { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.step.failed .step-detail { color: var(--red); }
.step-explain { font-size: 12px; color: var(--faint); line-height: 1.5; margin-top: 4px; }
.step-side { text-align: right; display: grid; gap: 4px; justify-items: end; }
.actor { font-size: 11px; color: var(--faint); white-space: nowrap; }
.when { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl { display: grid; grid-template-columns: 64px 118px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #f1f2f4; font-size: 13px; line-height: 1.5; }
.tl time { color: var(--faint); font-variant-numeric: tabular-nums; }
.tl .tl-who { color: var(--muted); font-size: 12px; }
.tl .tl-text { color: var(--ink2); overflow-wrap: anywhere; }
.tl.platform .tl-text { color: var(--muted); }
.tl.check .tl-text { font-weight: 560; color: var(--green); }
.tl.check.fail .tl-text { color: var(--red); }
.tl.cleanup .tl-text, .tl.refused .tl-text { color: var(--orange); }
.tl-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }

.note { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink2); margin: 0; }
.act { display: grid; gap: 18px; }
.act-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.recipient { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.recipient:last-child { border-bottom: 0; }

/* systems */
.sys { display: grid; gap: 10px; align-content: start; }
.sys-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sys-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sys p { margin: 0; font-size: 14px; line-height: 1.55; }
.sys .what { color: var(--ink2); }
.sys .detail { color: var(--muted); }
.panel { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; font-size: 13px; }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kv { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 12px; }
.kv b { color: var(--ink); font-weight: 600; }
.elsewhere { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.elsewhere:last-child { border-bottom: 0; }

/* agent runs */
.turn { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.turn:last-child { border-bottom: 0; }
.heard { font-size: 18px; letter-spacing: -0.3px; }
.calls { display: grid; gap: 6px; }
.call { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--soft); }
.reply { font-size: 14px; color: var(--ink2); line-height: 1.55; }

/* agents: the tree view */
.ag-list { display: grid; gap: 10px; }
.ag-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; flex-wrap: wrap; }
.ag-row:hover { border-color: #cfd2d7; background: #fcfcfd; }
.ag-row-main { display: grid; gap: 8px; min-width: 0; }
.ag-row-title { font-size: 15px; }
.ag-row-sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ag-row-side { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ag-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.ag-h1 { font-size: 28px; letter-spacing: -0.8px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 500; overflow-wrap: anywhere; }

.ag-panel { background: #fff; border: 1px solid #e7e8ee; border-radius: 16px; padding: 18px 20px 0; box-shadow: 0 1px 2px rgba(17, 20, 28, 0.04), 0 12px 36px rgba(17, 20, 28, 0.06); }
.ag-phead { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ag-spark { width: 17px; height: 17px; color: #676d76; display: inline-grid; }
.ag-spark svg, .ag-glyph svg { width: 100%; height: 100%; }
.ag-lbl { font-weight: 600; font-size: 14.5px; color: #676d76; }
.ag-run { font-size: 13px; color: #9aa0a9; }
.ag-run b { color: #17181c; font-weight: 600; }
.ag-right { margin-left: auto; display: flex; gap: 14px; font-size: 13px; color: #9aa0a9; font-variant-numeric: tabular-nums; }
.ag-gwrap { display: flex; gap: 7px; padding: 8px 0 0; flex-wrap: wrap; }
.ag-gbar { display: inline-flex; gap: 7px; flex-wrap: wrap; }
.ag-gchip { font-size: 11px; border-radius: 999px; padding: 3px 9px; font-weight: 600; white-space: nowrap; }
.ag-gchip.ok { color: #15935c; background: #e9f8f0; }
.ag-gchip.warn { color: #b5791a; background: #f8efdd; }
.ag-gchip.bad { color: #c3463f; background: #fae9e8; }
.ag-gchip.neutral { color: #5b6472; background: #eef1f5; }

.ag-scroll { overflow: hidden; padding: 10px 2px 2px; }
.ag-scroll.ag-wide { overflow-x: auto; }
.ag-scroll.ag-wide .ag-tree { margin: 0; }
.ag-fit { width: 100%; position: relative; }
.ag-tree { width: max-content; margin: 0 auto; transform-origin: top left; }
.ag-tree ul { display: flex; justify-content: center; padding: 22px 0 0; position: relative; margin: 0; list-style: none; }
.ag-tree li { display: flex; flex-direction: column; align-items: center; list-style: none; position: relative; padding: 20px 7px 0; }
.ag-tree li::before, .ag-tree li::after { content: ""; position: absolute; top: 0; right: 50%; border-top: 1.5px solid #e0e2e8; width: 50%; height: 22px; }
.ag-tree li::after { right: auto; left: 50%; border-left: 1.5px solid #e0e2e8; }
.ag-tree li:only-child::after, .ag-tree li:only-child::before { display: none; }
.ag-tree li:only-child { padding-top: 0; }
.ag-tree li:first-child::before, .ag-tree li:last-child::after { border: 0 none; }
.ag-tree li:last-child::before { border-right: 1.5px solid #e0e2e8; border-radius: 0 7px 0 0; }
.ag-tree li:first-child::after { border-radius: 7px 0 0 0; }
.ag-tree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; border-left: 1.5px solid #e0e2e8; width: 0; height: 22px; }
.ag-tree > ul { padding-top: 0; }

.ag-card { width: 224px; background: #fff; border: 1px solid #e8eaef; border-radius: 12px; box-shadow: 0 1px 2px rgba(17, 20, 28, 0.05); padding: 10px 11px 9px; text-align: left; transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease; }
.ag-card.lead { width: 240px; }
.ag-card.ag-hide { opacity: 0.12; transform: translateY(4px); }
.ag-card.ag-hot { box-shadow: 0 0 0 2px #2a6ef0, 0 6px 18px rgba(42, 110, 240, 0.18); }
.ag-r1 { display: flex; align-items: center; gap: 7px; }
.ag-ic { width: 24px; height: 24px; border-radius: 6px; flex: none; display: grid; place-items: center; }
.ag-ic svg { width: 15px; height: 15px; }
.ag-ic.opal { background: #eef2fd; color: #2f66f0; }
.ag-ic.opal svg { width: 19px; height: 19px; }
.ag-ic.model { background: #f6ebe4; color: #c15f3c; }
.ag-ic.epic { background: #fbe9ea; color: #b23b43; }
.ag-ic.verifier { background: #e9f8f0; color: #15935c; }
.ag-ic.timer, .ag-ic.page, .ag-ic.note, .ag-ic.tool { background: #eef1f5; color: #5b6472; }
.ag-nm { min-width: 0; flex: 1; }
.ag-nm b { display: block; font-weight: 600; font-size: 12.5px; color: #17181c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-nm em { display: block; font-style: normal; font-size: 11px; color: #8b909a; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-st { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 2px 7px 2px 5px; white-space: nowrap; }
.ag-st-i { width: 10px; height: 10px; display: inline-grid; }
.ag-st-i svg { width: 10px; height: 10px; }
.ag-st.ok { color: #15935c; background: #e9f8f0; }
.ag-st.warn { color: #b5791a; background: #f8efdd; }
.ag-st.bad { color: #c3463f; background: #fae9e8; }
.ag-st.neutral { color: #5b6472; background: #eef1f5; }
.ag-r2 { margin-top: 8px; font-size: 12px; color: #3c4049; line-height: 1.3; }
.ag-r3 { display: flex; align-items: center; margin-top: 8px; font-size: 11px; color: #9aa0a9; font-variant-numeric: tabular-nums; gap: 8px; }
.ag-cnt { margin-left: auto; }

.ag-foot { display: flex; align-items: center; gap: 12px; height: 52px; margin: 8px -20px 0; padding: 0 16px; border-top: 1px solid #e7e8ee; }
.ag-time { background: #1b1e26; color: #f3f4f7; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 8px; padding: 4px 9px; }
.ag-replay { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: #1b1e26; color: #f3f4f7; border: 0; display: grid; place-items: center; padding: 8px; }
.ag-replay:hover:not(:disabled) { filter: brightness(1.18); }
.ag-glyph { display: inline-grid; width: 16px; height: 16px; }
.ag-caps { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.ag-caps span { font-size: 11px; color: #9aa0a9; background: #fff; border: 1px solid #e7e8ee; border-radius: 999px; padding: 3px 9px; }
@media (prefers-reduced-motion: reduce) { .ag-card { transition: none; } }

/* tracker */
.counts { display: flex; flex-wrap: wrap; gap: 8px; }
.counts button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; display: grid; gap: 2px; text-align: left; min-width: 112px; }
.counts button.on { border-color: var(--ink); }
.counts .n { font-size: 22px; font-weight: 600; letter-spacing: -0.6px; }
.counts .l { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.layer { margin-top: 34px; }
.layer-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.layer-id { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.item { border-bottom: 1px solid var(--line); }
.item summary { list-style: none; display: grid; grid-template-columns: 14px minmax(0, 1fr) 160px 150px; gap: 12px; align-items: center; padding: 12px 0; cursor: pointer; font-size: 14px; }
.item summary::-webkit-details-marker { display: none; }
.item summary:hover .item-title { text-decoration: underline; text-underline-offset: 3px; }
.item-owner, .item-label { font-size: 12px; color: var(--muted); }
.item-body { display: grid; gap: 8px; padding: 0 0 16px 26px; font-size: 13px; line-height: 1.55; color: var(--ink2); }
.item-body b { font-weight: 600; color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }

/* sign in */
.signin { max-width: 380px; margin: 12vh auto 0; display: grid; gap: 16px; }
.signin .brand { font-size: 40px; letter-spacing: -2px; }
.error { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; z-index: 20; max-width: calc(100% - 40px); }

@media (max-width: 980px) {
  .run-body { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .elsewhere { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .item summary { grid-template-columns: 14px minmax(0, 1fr) 120px; }
  .item summary .item-owner { display: none; }
}
@media (max-width: 720px) {
  .top { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; gap: 8px 12px; }
  .nav { order: 3; margin-left: 0; width: 100%; overflow-x: auto; }
  .nav a { padding: 6px 10px; }
  .main { padding-top: 26px; }
  h1 { font-size: 32px; letter-spacing: -1.2px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr.row { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .table td { border: 0; padding: 2px 0; }
  .tl { grid-template-columns: 56px minmax(0, 1fr); }
  .tl .tl-who { grid-column: 2; }
  .tl .tl-text { grid-column: 2; }
  .call { grid-template-columns: minmax(0, 1fr) auto; }
  .item summary { grid-template-columns: 14px minmax(0, 1fr); }
  .item summary .item-label { display: none; }
}

/* Agent runs recorded here: each turn's verdict and what did not go as expected. */
.turn-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.problems { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--red); font-size: 13px; line-height: 1.5; }
