:root {
  --blue: #1AC7EC;
  --green: #8CD728;
  --red: #D2224C;
  --ink: #17212b;
  --muted: #66717e;
  --line: #dfe5ea;
  --bg: #f3f5f7;
  --panel: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 22px 16px; }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 700; margin-bottom: 26px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--blue); color: var(--blue); font-weight: 800; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { padding: 11px 12px; border: 1px solid transparent; font-weight: 600; color: #34404c; }
.sidebar nav a.active, .sidebar nav a:hover { border-color: var(--blue); background: #eafdff; color: #066f86; }
.main { padding: 24px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.topbar h1 { margin: 2px 0 0; font-size: 24px; }
.topbar form { display: flex; align-items: center; gap: 10px; }
.eyebrow { margin: 0; color: var(--muted); text-transform: uppercase; font-size: 11px; font-weight: 700; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 18px; margin-bottom: 18px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { border-left: 5px solid var(--blue); background: #fff; padding: 16px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric strong { display: block; font-size: 28px; }
.metric span { color: var(--muted); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn, button { border: 1px solid #109fc0; background: var(--blue); color: #062832; padding: 10px 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn.green { background: var(--green); border-color: #73b91e; }
.btn.red { background: var(--red); border-color: #a90f31; color: #fff; }
.btn.subtle { background: #fff; border-color: var(--line); color: var(--ink); }
button:disabled { cursor: not-allowed; opacity: .55; filter: grayscale(1); }
input, select, textarea { width: 100%; border: 1px solid #cbd4dc; padding: 10px; font: inherit; background: #fff; }
input[type="checkbox"] { width: auto; }
textarea { min-height: 92px; resize: vertical; }
label { display: grid; gap: 6px; font-weight: 600; color: #2f3d49; }
label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { background: #f8fafb; font-size: 12px; text-transform: uppercase; }
.badge { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); background: #f8fafb; font-weight: 700; font-size: 12px; }
.badge.critical, .badge.kritisch { border-color: var(--red); color: var(--red); }
.badge.done, .badge.ok { border-color: var(--green); color: #568b17; }
.notice { border: 1px solid var(--line); padding: 12px; margin-bottom: 16px; background: #fff; font-weight: 600; }
.notice.success { border-color: var(--green); }
.notice.danger { border-color: var(--red); color: var(--red); }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-box { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); padding: 28px; }
.progress { height: 12px; background: #e7edf1; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--blue), var(--green)); }
.muted { color: var(--muted); }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .form-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
