/* Android Farm portal.
   One idea carries the look: the fleet is a bench of handsets, so devices are
   drawn as phones showing their real screens, with a status light in the top
   bezel. Everything around them stays quiet: flat panels, one accent for
   actions, colour reserved for status. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url(/static/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(/static/fonts/instrument-sans-latin-standard-normal.woff2) format("woff2-variations");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/static/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations");
  font-weight: 100 800; font-display: swap;
}

:root {
  --paper: #e9edf1;
  --surface: #fbfcfd;
  --surface-2: #f2f5f8;
  --ink: #121c26;
  --ink-2: #4c5967;
  --ink-3: #75828f;
  --rule: #d3dae1;
  --rule-strong: #b9c3cd;
  --accent: #2f4bdb;
  --accent-ink: #ffffff;
  --accent-soft: #e3e8fd;
  --focus: #2f4bdb;

  --ok: #0f7a57;      --ok-soft: #dcf1e8;
  --busy: #6544d8;    --busy-soft: #ebe5fc;
  --warn: #a96600;    --warn-soft: #fbedd5;
  --bad: #c9352b;     --bad-soft: #fbe2df;
  --idle: #6f7c89;    --idle-soft: #e4e9ee;

  --rail: #121c26;
  --rail-ink: #c9d2db;
  --rail-ink-strong: #ffffff;
  --rail-hover: #1d2934;
  --rail-rule: #24313d;

  --console: #0e151c;
  --console-ink: #cfd8e1;

  --phone: #1a232c;
  --phone-edge: #303c48;
  --screen-off: #0b1117;

  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-control: 9px;
  --r-panel: 14px;
  --r-phone: 26px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1218; --surface: #141b23; --surface-2: #19222b;
    --ink: #e4e9ee; --ink-2: #a3afbb; --ink-3: #7b8895;
    --rule: #232e39; --rule-strong: #34414e;
    --accent: #8095ff; --accent-ink: #0d1218; --accent-soft: #1d2547; --focus: #8095ff;
    --ok: #4fcf9c; --ok-soft: #10291f;
    --busy: #a58cff; --busy-soft: #221a3f;
    --warn: #f0b04a; --warn-soft: #2c2210;
    --bad: #ff7a6e; --bad-soft: #341715;
    --idle: #95a2ae; --idle-soft: #1e2730;
    --rail: #090e13; --rail-hover: #141c24; --rail-rule: #1a232c;
    --console: #090d12;
    --phone: #222c36; --phone-edge: #3a4754;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1218; --surface: #141b23; --surface-2: #19222b;
  --ink: #e4e9ee; --ink-2: #a3afbb; --ink-3: #7b8895;
  --rule: #232e39; --rule-strong: #34414e;
  --accent: #8095ff; --accent-ink: #0d1218; --accent-soft: #1d2547; --focus: #8095ff;
  --ok: #4fcf9c; --ok-soft: #10291f;
  --busy: #a58cff; --busy-soft: #221a3f;
  --warn: #f0b04a; --warn-soft: #2c2210;
  --bad: #ff7a6e; --bad-soft: #341715;
  --idle: #95a2ae; --idle-soft: #1e2730;
  --rail: #090e13; --rail-hover: #141c24; --rail-rule: #1a232c;
  --console: #090d12;
  --phone: #222c36; --phone-edge: #3a4754;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* beats any display set by a class */

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 14.5px/1.5 var(--text);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 30px; line-height: 1.15; font-variation-settings: "wdth" 92; }
h2 { font-size: 17px; line-height: 1.3; }
h3 { font-size: 14.5px; font-family: var(--text); font-weight: 600; }
p { margin: 0 0 10px; max-width: 72ch; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -0.01em; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ frame */

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }

/* the rail stays put while the page scrolls */
.rail {
  background: var(--rail); color: var(--rail-ink); align-self: start;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 12px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: var(--rail-ink-strong); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 34px; border-radius: 6px; border: 2px solid currentColor; position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; left: 50%; top: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: #4fcf9c; box-shadow: 0 0 8px #4fcf9c;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--text); font-weight: 500; font-size: 12px; color: var(--rail-ink); opacity: .75; letter-spacing: 0; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px;
  color: var(--rail-ink); font-weight: 500;
}
.nav a:hover { background: var(--rail-hover); color: var(--rail-ink-strong); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--rail-hover); color: var(--rail-ink-strong); box-shadow: inset 3px 0 0 #8095ff; }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav .count {
  margin-left: auto; font-size: 12px; font-weight: 600; min-width: 22px; text-align: center;
  padding: 1px 7px; border-radius: 999px; background: #2a3846; color: var(--rail-ink-strong);
}
.nav-group { margin-top: 14px; padding: 0 10px 4px; font-size: 12px; color: var(--rail-ink); opacity: .6; }

.rail-foot { margin-top: auto; border-top: 1px solid var(--rail-rule); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.who { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: var(--rail-ink-strong); }
.who:hover { text-decoration: none; background: var(--rail-hover); border-radius: 8px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: #2f4bdb; color: #fff; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 12.5px;
}
.who small { display: block; color: var(--rail-ink); font-size: 12px; }
.rail-btn {
  display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 8px; border: 0;
  background: none; color: var(--rail-ink); font: inherit; cursor: pointer; text-align: left; width: 100%;
}
.rail-btn:hover { background: var(--rail-hover); color: var(--rail-ink-strong); text-decoration: none; }
.rail-btn svg { width: 18px; height: 18px; }

.main { padding: 32px 40px 64px; min-width: 0; }
.main-inner { max-width: 1320px; margin: 0 auto; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center;
    padding: 8px 12px; gap: 6px; overflow-x: auto;
  }
  .brand { padding: 0 8px 0 2px; }
  .brand-sub, .nav-group, .nav a span:not(.count), .who small, .who span, .rail-btn span { display: none; }
  .nav { flex-direction: row; }
  .rail-foot { margin: 0 0 0 auto; border: 0; padding: 0; flex-direction: row; }
  .main { padding: 20px 16px 48px; }
  h1 { font-size: 24px; }
  .brand-name { display: none; }
}

/* ------------------------------------------------------------------ page parts */

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.head .lede { margin-top: 6px; color: var(--ink-2); max-width: 70ch; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; display: flex; gap: 6px; }
.crumbs a { color: var(--ink-2); }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 20px; min-width: 0; }
.panel > h2 { margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush > .panel-head { padding: 16px 20px 0; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--ink); border: 1px solid transparent; }
.banner.error { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.banner.ok { background: var(--ok-soft); }
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.banner.error svg { color: var(--bad); }

.empty { padding: 36px 20px; text-align: center; color: var(--ink-2); }
.empty h3 { margin-bottom: 4px; color: var(--ink); }

/* ------------------------------------------------------------------ controls */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r-control);
  border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink);
  font: 600 13.5px/1 var(--text); cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); text-decoration: none; background: var(--surface-2); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn.quiet { border-color: transparent; background: none; }
.btn.quiet:hover { background: var(--surface-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }

label { display: block; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.hint { color: var(--ink-2); font-size: 13px; margin-top: 6px; font-weight: 400; max-width: 70ch; }
.opt { color: var(--ink-3); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-control);
  background: var(--surface); color: var(--ink); font: inherit;
}
textarea { height: auto; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.mono { font-family: var(--mono); font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--rule); border-radius: 10px; gap: 2px; }
.seg label { margin: 0; cursor: pointer; font-weight: 500; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 13px; border-radius: 7px; color: var(--ink-2); }
.seg input:checked + span { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(18, 28, 38, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); }

/* ------------------------------------------------------------------ status */

.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; color: var(--st); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12.5px; padding: 3px 10px 3px 9px;
  border-radius: 999px; color: var(--st); background: var(--st-soft); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st); }
.st-ready, .st-passed, .st-active { --st: var(--ok); --st-soft: var(--ok-soft); }
.st-busy, .st-running { --st: var(--busy); --st-soft: var(--busy-soft); }
.st-booting, .st-queued, .st-uploading, .st-maintenance, .st-skipped { --st: var(--warn); --st-soft: var(--warn-soft); }
.st-broken, .st-failed, .st-error { --st: var(--bad); --st-soft: var(--bad-soft); }
.st-stopped, .st-unknown, .st-cancelled, .st-disabled { --st: var(--idle); --st-soft: var(--idle-soft); }
@media (prefers-reduced-motion: no-preference) {
  .st-busy.status::before, .st-running.status::before, .st-booting.status::before,
  .st-busy.pill::before, .st-running.pill::before, .st-booting.pill::before { animation: blink 1.6s ease-in-out infinite; }
}
@keyframes blink { 50% { opacity: .25; } }

/* ------------------------------------------------------------------ the bench (devices) */

.fleet-line { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.02; letter-spacing: -0.025em; font-variation-settings: "wdth" 88; }
.fleet-line .of { color: var(--ink-3); font-weight: 500; }
.fleet-facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; color: var(--ink-2); }
.fleet-facts b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .fleet-line { font-size: 32px; } }

.bench { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 34px 26px; }
.handset { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.handset:hover { text-decoration: none; }

.phone {
  --w: 176px;
  position: relative; width: min(var(--w), 100%); aspect-ratio: 9 / 19.2; padding: 9px;
  border-radius: var(--r-phone); background: var(--phone);
  box-shadow: inset 0 0 0 1.5px var(--phone-edge), 0 18px 30px -18px rgba(18, 28, 38, .55), 0 2px 4px rgba(18, 28, 38, .12);
}
.phone .led {
  position: absolute; top: 3px; left: 50%; width: 7px; height: 4px; margin-left: -3.5px; border-radius: 3px;
  background: var(--st); box-shadow: 0 0 9px 1px var(--st); z-index: 2;
}
.phone .screen {
  position: relative; width: 100%; height: 100%; border-radius: 18px; overflow: hidden; background: var(--screen-off);
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .35s ease; }
.phone .screen img.stale { opacity: 0; }
.phone .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px; color: #dfe6ec; font-size: 13px;
  background: repeating-linear-gradient(135deg, #0f171f 0 10px, #121b24 10px 20px);
}
.phone .overlay strong { font-family: var(--display); font-size: 17px; color: #fff; font-weight: 650; }
.phone .overlay svg { width: 26px; height: 26px; opacity: .8; }
.handset.st-broken .overlay { background: linear-gradient(180deg, rgba(201, 53, 43, .25), rgba(11, 17, 23, .92) 70%), #0b1117; }
.handset.st-busy .phone { box-shadow: inset 0 0 0 1.5px var(--phone-edge), 0 0 0 3px color-mix(in srgb, var(--busy) 45%, transparent), 0 18px 30px -18px rgba(18, 28, 38, .55); }
@media (prefers-reduced-motion: no-preference) {
  .handset.st-booting .led, .handset.st-busy .led { animation: blink 1.6s ease-in-out infinite; }
}
.handset .meta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; }
.handset .name { font-family: var(--display); font-weight: 650; font-size: 16px; color: var(--ink); }
.handset .why { color: var(--ink-2); font-size: 13px; line-height: 1.35; min-height: 18px; max-width: 30ch;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.handset.st-broken .why { color: var(--bad); }
.handset .warn { color: var(--warn); font-size: 12.5px; }
.handset:hover .phone { box-shadow: inset 0 0 0 1.5px var(--accent), 0 18px 30px -18px rgba(18, 28, 38, .55); }

/* big phone for the device page */
.phone.big { --w: min(372px, 100%); aspect-ratio: 9 / 19.2; padding: 12px; border-radius: 38px; }
.phone.big .screen { border-radius: 27px; }
.phone.big iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.device-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 1000px) { .device-grid { grid-template-columns: 1fr; } .phone.big { margin: 0 auto; } }
.view-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0 10px; width: min(372px, 100%); flex-wrap: wrap; }
.typebar { display: flex; gap: 8px; width: min(372px, 100%); }
.typebar input { flex: 1; }

/* ------------------------------------------------------------------ facts */

.facts { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 9px 14px; margin: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; word-break: break-word; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--r-panel); overflow: hidden; }
.tile { background: var(--surface); padding: 14px 16px; }
.tile .k { color: var(--ink-2); font-size: 13px; }
.tile .v { font-family: var(--display); font-size: 22px; font-weight: 650; margin-top: 2px; }
.tile .v.ok { color: var(--ok); } .tile .v.bad { color: var(--bad); }

.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 13.5px; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; }
.log li:first-child { border-top: 0; padding-top: 0; }
.log time, .log .when { color: var(--ink-3); font-size: 12.5px; }
.log .lvl-warn { color: var(--warn); }
.log .lvl-error { color: var(--bad); }
.scroll { max-height: 420px; overflow: auto; }

/* ------------------------------------------------------------------ tables */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 10px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--surface); }
td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
td .sub { color: var(--ink-3); font-size: 12.5px; }
td.num { font-variant-numeric: tabular-nums; }
.run-id { font-family: var(--display); font-weight: 650; font-size: 15px; color: var(--ink); }
tr.click td:first-child { box-shadow: inset 3px 0 0 var(--st, transparent); }

/* pass strip: proportion of passed / failed / skipped */
.strip { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--idle-soft); width: 120px; margin-top: 6px; }
.strip i { display: block; height: 100%; }
.strip .p { background: var(--ok); } .strip .f { background: var(--bad); } .strip .s { background: var(--warn); }

/* ------------------------------------------------------------------ run page */

.verdict { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r-panel);
  background: var(--surface); border: 1px solid var(--rule); box-shadow: inset 5px 0 0 var(--st); margin-bottom: 18px; }
.verdict .word { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--st); letter-spacing: -0.02em; font-variation-settings: "wdth" 88; text-transform: capitalize; }
.verdict .what { color: var(--ink-2); }
.verdict .what b { color: var(--ink); }
.verdict .strip { width: 220px; height: 8px; }
.verdict .err { flex-basis: 100%; color: var(--ink); background: var(--bad-soft); padding: 10px 12px; border-radius: 8px; font-size: 13.5px; }
.verdict.st-passed .err { background: var(--surface-2); }

.case { padding: 12px 0; border-top: 1px solid var(--rule); }
.case:first-child { border-top: 0; padding-top: 0; }
.case-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.case .cls { color: var(--ink-3); font-size: 12px; }
.case details { margin-top: 8px; }
.case summary { cursor: pointer; color: var(--ink-2); font-size: 13px; }
pre.msg { background: var(--surface-2); border: 1px solid var(--rule); color: var(--ink); padding: 12px; border-radius: 8px;
  font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; margin: 8px 0 0; }

pre.console {
  background: var(--console); color: var(--console-ink); font: 12px/1.55 var(--mono);
  padding: 16px 18px; border-radius: 10px; max-height: 560px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0;
}
.console .t { color: #7d8b99; }
.console .ok { color: #59d39f; }
.console .bad { color: #ff8277; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.shots a { color: var(--ink-2); font-size: 11.5px; }
.shots img { width: 100%; aspect-ratio: 9 / 19.2; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--rule); background: #000; }
.shots span { display: block; margin-top: 4px; word-break: break-all; line-height: 1.3; }
video.rec { width: 100%; max-height: 640px; background: #000; border-radius: 10px; display: block; }

.files { list-style: none; margin: 0; padding: 0; }
.files li { padding: 7px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.files li:first-child { border-top: 0; }

/* ------------------------------------------------------------------ new run */

.steps { counter-reset: step; display: flex; flex-direction: column; gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 20px 22px 22px 66px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 700 14px/1 var(--display); color: var(--accent-ink); background: var(--accent);
}
.step > h2 { margin: 3px 0 4px; }
.step > .hint:first-of-type { margin: 0 0 16px; }
.submit-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 4px 0 0 66px; }

.picker { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.picker-tools { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--rule); background: var(--surface-2); align-items: center; }
.picker-tools input[type=search] { height: 34px; }
.picker-list { max-height: 300px; overflow: auto; }
.pick { display: grid; grid-template-columns: 20px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 14px; border-top: 1px solid var(--rule); cursor: pointer; margin: 0; font-weight: 400; }
.pick:first-child { border-top: 0; }
.pick:hover { background: var(--surface-2); }
.pick input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.pick:has(input:checked) { background: var(--accent-soft); }
.pick .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .dt { color: var(--ink-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .side { text-align: right; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.picker .none { padding: 22px; text-align: center; color: var(--ink-2); }

.ftype { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 700 10.5px/1 var(--text); letter-spacing: .02em; }
.ftype.app { background: var(--ok-soft); color: var(--ok); }
.ftype.tests { background: var(--accent-soft); color: var(--accent); }
.ftype.test_apk { background: var(--busy-soft); color: var(--busy); }

.drop {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed var(--rule-strong); border-radius: 12px;
  color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; margin: 0; font-weight: 400;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.drop svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.drop b { color: var(--ink); }
.drop input { display: none; }
.progress { height: 6px; background: var(--idle-soft); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.upmsg { font-size: 13px; margin-top: 8px; }
.upmsg.error { color: var(--bad); }

.alt { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--rule); }

.env { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 7px 12px; font-size: 13px; margin: 10px 0; }
.env dt { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.env dd { margin: 0; color: var(--ink-2); }

/* ------------------------------------------------------------------ library */

.lib-group + .lib-group { margin-top: 26px; }
.lib-group > h2 { margin-bottom: 4px; }
.lib-group > .hint { margin: 0 0 12px; }
.lib-row td:first-child { width: 56px; padding-right: 0; }
.lib-row .nm { font-weight: 600; }
.rename { display: flex; gap: 6px; margin-top: 8px; }
.rename input { height: 30px; max-width: 300px; }

/* ------------------------------------------------------------------ sign in */

.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
.signin-art { background: var(--rail); color: var(--rail-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.signin-art .brand { padding: 0; }
.signin-art h1 { color: #fff; font-size: 52px; line-height: 1; max-width: 12ch; letter-spacing: -0.03em; font-variation-settings: "wdth" 85; }
.signin-art p { color: var(--rail-ink); max-width: 40ch; margin-top: 14px; }
.mini-bench { display: flex; gap: 16px; align-items: flex-end; }
.mini-bench .phone { --w: 92px; padding: 5px; border-radius: 15px; background: #1c2731; box-shadow: inset 0 0 0 1.5px #33414e; }
.mini-bench .phone .screen { border-radius: 11px; background: linear-gradient(180deg, #24313e, #15202a); }
.mini-bench .phone .led { --st: #4fcf9c; }
.mini-bench .phone:nth-child(3) .led { --st: #a58cff; }
.mini-bench .phone:nth-child(4) .led { --st: #f0b04a; }
.mini-bench .phone:nth-child(2) { --w: 110px; }
.signin-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface); }
.signin-form form { width: min(360px, 100%); }
.signin-form h2 { font-size: 26px; margin-bottom: 4px; }
@media (max-width: 860px) { .signin { grid-template-columns: 1fr; } .signin-art { display: none; } }

/* ------------------------------------------------------------------ misc */

.kbd { font: 600 12px var(--mono); padding: 1px 6px; border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 5px; }
.warnline { color: var(--warn); font-size: 13px; }
details > summary { cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.spacer { flex: 1; }

/* small screens: placed last so it wins over the component rules above */
@media (max-width: 900px) {
  .bench { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .phone { padding: 7px; border-radius: 22px; }
  .phone .screen { border-radius: 16px; }
  .verdict .word { font-size: 32px; }
  .step { padding: 18px 16px 18px 16px; }
  .step::before { position: static; margin-bottom: 10px; }
  .submit-bar { padding-left: 0; }
  .facts { grid-template-columns: 110px minmax(0, 1fr); }
  .phone.big { padding: 10px; border-radius: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
