/* Ops console: phone-first, big buttons, one screen. No inline styles (CSP). */
:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #131a22;
  --border: #253141;
  --text: #e8edf2;
  --muted: #93a3b3;
  --accent: #3b82f6;
  --warn: #f59e0b;
  --danger: #ef4444;
  --ok: #22c55e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  padding: 16px;
  padding-bottom: 64px;
}

h1 { font-size: 22px; margin: 0 0 8px; }
p.muted, span.muted { color: var(--muted); }

.status-line {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}
.status-line.stale { border-color: var(--danger); }
.status-line .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--danger); }
.dot.unknown { background: var(--muted); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid.one { grid-template-columns: 1fr; }

button.action {
  width: 100%;
  min-height: 64px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 12px;
}
button.action:active { background: var(--accent); }
button.action.danger { border-color: var(--danger); color: var(--danger); }
button.action.state-changing::after { content: " *"; color: var(--warn); }

button.action:disabled { opacity: 0.5; }

input[type="password"], input[type="text"] {
  width: 100%;
  font-size: 18px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.confirm-box {
  background: var(--panel);
  border: 1px solid var(--warn);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
}

pre.job-output {
  background: #000;
  color: #d1d5db;
  padding: 12px;
  border-radius: 10px;
  max-height: 40vh;
  overflow: auto;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.device-row {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.device-row .status { font-weight: 600; }
.device-row .status.pending { color: var(--warn); }
.device-row .status.approved { color: var(--ok); }
.device-row .status.rejected, .device-row .status.revoked { color: var(--danger); }

.error { color: var(--danger); }
.top-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.top-nav a { color: var(--muted); text-decoration: none; }

/* 2026-09-27: styles moved out of today.html (CSP style-src self blocks inline style attributes). */
.job-box { margin-top: 16px; }
#confirm-reason { width: 100%; }
dialog#action-dialog { box-sizing: border-box; width: min(28rem, calc(100vw - 32px)); max-width: calc(100vw - 32px); border-radius: 10px; }
#action-dialog input, #action-dialog textarea { box-sizing: border-box; width: 100%; }
#job-action-name { font-weight: 600; margin-top: 0; }
.device-actions { margin-top: 8px; }
