/* Matches incus-control's daily Standard theme: a charcoal field, one teal
   accent, and status colors reserved for state. Flat panels, no glow. */
:root {
  color-scheme: dark;
  --bg: #101418;
  --panel: #171d22;
  --panel2: #1e262c;
  --edge: #2c3840;
  --text: #e7eef2;
  --muted: #8b9aa3;
  --primary: #2ec4b6;
  --primary2: #7ee0d6;
  --success: #3dbe86;
  --warning: #e0a34a;
  --danger: #e36b7a;
  --shadow: none;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
[hidden] { display: none !important; }

header {
  display: flex; justify-content: space-between; align-items: center;
  height: 56px; padding: 0 22px; border-bottom: 1px solid var(--edge);
  background: rgba(16, 20, 24, .96);
}
header h1 { font-size: 18px; font-weight: 650; margin: 0; }
main { max-width: 1100px; margin: 0 auto; padding: 18px 22px 28px; }
h1 { font-size: 1.1rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
h3 { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

section {
  margin-bottom: 1.25rem; padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--edge); border-radius: 12px;
  box-shadow: none;
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--edge); }
th { color: var(--muted); font-weight: 620; font-size: 12px; }
thead { background: #141b20; }
tbody tr:hover { background: var(--panel2); }
a { color: var(--primary2); text-decoration: none; }
a:hover { text-decoration: underline; }

form.inline { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: .85rem 0; }
form.inline textarea { flex: 1 1 100%; font-family: ui-monospace, monospace; font-size: .8rem; white-space: pre; }

button, input, select, textarea {
  font: inherit; color: var(--text); background: #12181c;
  border: 1px solid var(--edge); border-radius: 8px; padding: .55rem .7rem;
}
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 28%, transparent);
}
button { cursor: pointer; }
button:hover { border-color: #3d4f59; background: #1a2228; }
button:disabled { cursor: wait; opacity: .7; }
button.primary {
  background: var(--primary);
  border-color: transparent; color: #06211e; font-weight: 650;
  box-shadow: none;
}
button.primary:hover { background: #49d0c4; border-color: transparent; color: #06211e; }
button.ghost { background: transparent; color: var(--muted); }
button.ghost:hover { background: var(--panel2); color: var(--text); }
button.danger { color: var(--danger); background: transparent; }
button.danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }

.muted { color: var(--muted); font-size: .85rem; }
.error { color: var(--danger); font-size: .9rem; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 620; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-pill.running::before, .status-pill.success::before { background: var(--success); }
.status-pill.running, .status-pill.success { color: var(--success); }
.status-pill.failed::before { background: var(--danger); }
.status-pill.failed { color: var(--danger); }
tr.needs-attention td.protection { color: var(--warning); font-weight: 650; }

#login-view {
  max-width: 380px; margin: 12vh auto; padding: 2rem;
  background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; box-shadow: none;
}
#login-view h1 {
  background: none; -webkit-text-fill-color: var(--text); color: var(--text);
  margin-bottom: 1rem; font-size: 1.25rem;
}
#login-view form { display: flex; flex-direction: column; gap: .7rem; }

.run-location{overflow-wrap:anywhere;max-width:32rem;min-width:16rem}
