/* The runner's own parts; everything else is the reporter's style.css (the template's palette,
   fonts, header, tables, badges). */
.layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.side { border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--bg); }
.side a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 13.5px; }
.side a:hover { text-decoration: none; color: var(--text); }
.side a.on { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.layout main { max-width: 1200px; margin: 0; padding: 20px 28px 56px; min-width: 0; }
.eyebrow { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
/* The strip: both VMs, the queue, fs-runner's heartbeat. */
.strip { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 8px 24px; font-size: 12.5px; background: var(--panel); border-bottom: 1px solid var(--line); }
.strip .vm { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--line-strong); }
.dot.up { background: var(--c1); }
.dot.mid { background: var(--c3); }
.b-run { color: var(--panel); background: var(--text); }
td.wrap, .wrap { white-space: normal; overflow-wrap: anywhere; }
.empty { padding: 18px 20px; }
.empty p { margin: 0; }
.form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; padding: 18px 20px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); min-width: 0; }
.form .wide { grid-column: 1 / -1; }
.form input, .form select { font: inherit; font-size: 13.5px; color: var(--text); padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); min-width: 0; }
.form input.mono { font-family: var(--mono); font-size: 13px; }
.check { margin: 0; background: var(--ok-bg); color: var(--text); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.check:empty { display: none; }
.btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
button.primary { font: inherit; font-size: 14px; padding: 8px 22px; border-radius: 999px; border: 1px solid var(--text); background: var(--text); color: var(--panel); cursor: pointer; }
button.primary:disabled, .actions button:disabled { opacity: .45; cursor: default; }
.actions a.btn-link { font-size: 13px; padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); }
.actions input { font: inherit; font-size: 13px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text); min-width: 260px; }
pre.console { background: #352f2f; color: #ededed; border-radius: 10px; padding: 14px 16px; font-family: var(--mono); font-size: 12px; line-height: 1.6; height: 60vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
@media (prefers-color-scheme: dark) { pre.console { background: #1c1818; } }
textarea.editor { width: 100%; min-height: 55vh; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); color: var(--text); resize: vertical; margin-bottom: 12px; }
ul.links { margin: 0; padding-left: 18px; }
ul.links li { margin: 3px 0; overflow-wrap: anywhere; }
.card .v { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; overflow-x: auto; }
  .layout main { padding: 16px 16px 40px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .strip { padding: 8px 16px; }
  .actions input { min-width: 0; width: 100%; }
}
/* The scenario builder: a card per step, its buttons on the right. */
.step-card { margin: 12px 0; padding: 12px 16px 6px; }
.step-top { display: flex; align-items: center; gap: 10px; }
.step-top b { font-weight: 500; }
.step-btns { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.step-btns button, button.ghost, .actions button { font: inherit; font-size: 12.5px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--text); cursor: pointer; }
.step-btns button:disabled { opacity: .35; cursor: default; }
.form.inner { padding: 12px 0 6px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form .span2 { grid-column: span 2; }
details summary { margin: 14px 0 6px; }
/* Namespaces: a block per file, both VMs. */
.peek { margin: 14px 0; }
.peek-h { font-size: 13px; margin-bottom: 6px; overflow-wrap: anywhere; }
.peek-h .mono { font-size: 11.5px; }
pre.console.small { height: auto; max-height: 40vh; font-size: 11.5px; }
.toggle-l .row { display: flex; align-items: center; gap: 6px; padding: 8px 0; color: var(--text); font-size: 13px; }
@media (max-width: 760px) { .form.inner { grid-template-columns: minmax(0, 1fr); } .form .span2 { grid-column: auto; } }
/* The run's page: the console's heading with its filter; the report button stands out. */
.con-h { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.con-h h2 { margin-bottom: 8px; }
.actions a.primary-link { background: var(--text); color: var(--panel); border-color: var(--text); }
.actions a.primary-link:hover { text-decoration: none; }
/* Namespaces: the client VM's files and the server VM's side by side (one above the other when narrow). */
.peek-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.peek-col { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px 8px; min-width: 0; }
.peek-col h2 { margin: 12px 0 4px; }
.peek-h { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 1000px) { .peek-cols { grid-template-columns: minmax(0, 1fr); } }
/* The VPN stand: its cards, the LAN nodes' usage with bars; Logs: the error block across the width. */
.stand-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usage { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.u-row { display: flex; justify-content: space-between; font-size: 13px; margin-top: 8px; }
.u-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 3px; background: var(--hover); margin: 4px 0 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c1); border-radius: 3px; }
.small-note { font-size: 12px; margin-top: 6px; }
.error-text { color: var(--bad); }
h2 .toggle, h2 button.ghost { margin-left: 12px; font-size: 12.5px; font-weight: 400; }
.wide-col { grid-column: 1 / -1; }
@media (max-width: 760px) { .stand-cards { grid-template-columns: minmax(0, 1fr); } }
/* Logs: the stand under test, named above the form. */
.stand-line { font-size: 13.5px; margin: 0 0 12px; }
