/* web/styles.css — dark, high contrast, similar spirit to desktop */
:root {
  --bg: #0f1115;
  --panel: #171a21;
  --border: #2a2f3a;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --accent: #3b82f6;
  --ok: #4ade80;
  --fail: #f87171;
  --run: #fbbf24;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.top {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.top nav a {
  color: var(--muted);
  margin-right: 12px;
  text-decoration: none;
}
.top nav a:hover { color: var(--text); }
.brand { color: var(--text); font-weight: 600; text-decoration: none; }
.status { margin-left: auto; color: var(--muted); font-size: 13px; }
#app { padding: 16px; max-width: 1100px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
}
.card:hover { border-color: var(--accent); }
.card small { display: block; color: var(--muted); margin-top: 6px; }
.note {
  margin-top: 16px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
}
.note a { color: var(--accent); }
.btn {
  background: var(--accent);
  border: 0;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.btn.secondary { background: #2a2f3a; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.progress { height: 8px; background: #111; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; }
table.jobs { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
table.jobs th, table.jobs td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; }
.st-done { color: var(--ok); }
.st-failed { color: var(--fail); }
.st-running { color: var(--run); }
.st-cancelled, .st-pending { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
label { color: var(--muted); font-size: 14px; }
input, select { background: #0c0e12; color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }
pre.err { color: var(--fail); white-space: pre-wrap; font-size: 12px; }
