/* OPS theme — shared by the shell and every app. Apps: <link rel="stylesheet" href="/ops/theme.css"> */
:root {
  --bg: #0b1410;
  --surface: #0f1c16;
  --surface-2: #142520;
  --line: #1f3a2e;
  --text: #d4e9dd;
  --muted: #7c9a8a;
  --green: #3ddc84;
  --green-strong: #6ff0a6;
  --green-dim: #1d5c3d;
  --red: #ff6b5e;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, Consolas, monospace;
  --radius: 8px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); }
textarea { resize: vertical; }
.btn {
  font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
}
.btn:hover { border-color: var(--muted); }
.btn--primary { background: var(--green); border-color: var(--green); color: #04110a; }
.btn--primary:hover { background: var(--green-strong); border-color: var(--green-strong); }
.btn--danger { color: var(--red); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line); background: var(--surface-2); }
.icon-btn:disabled { opacity: .25; cursor: default; }
.icon-btn--x:hover:not(:disabled) { color: var(--red); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.muted { color: var(--muted); }
.err { color: var(--red); font-size: 13px; min-height: 1em; margin: 8px 0 0; }
