:root {
  --bg: #0b1110;
  --surface: #111a18;
  --surface-2: #17221f;
  --line: #25322e;
  --text: #eef5f1;
  --muted: #91a39b;
  --green: #b9f36a;
  --green-dark: #183720;
  --amber: #f1c56d;
  --red: #fa8e85;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px; border-right: 1px solid var(--line); background: #0d1513; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 34px; }
.brand span:last-child { display: grid; }
.brand strong { font-size: 15px; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--green); color: #14200f; display: grid; place-items: center; font-size: 12px; font-weight: 900; letter-spacing: -.03em; box-shadow: 0 0 30px rgba(185,243,106,.12); }
nav { display: grid; gap: 3px; }
nav a { color: #a9b9b2; padding: 10px 12px; border-radius: 9px; font-size: 14px; }
nav a:hover, nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
nav a[aria-current="page"] { box-shadow: inset 2px 0 var(--green); }
.sidebar-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 18px 10px 0; display: grid; gap: 6px; font-size: 13px; }
.sidebar-footer small { color: #607068; }
.sidebar-footer form { margin: 0; }
.link-button { border: 0; padding: 0; color: var(--muted); background: transparent; cursor: pointer; }
.link-button:hover { color: var(--text); }
.main { min-width: 0; }
.topbar { padding: 30px 38px 24px; display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid rgba(37,50,46,.7); }
.topbar h1 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.04em; }
.eyebrow { color: var(--green); text-transform: uppercase; font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.status-pill, .badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: 11px; color: var(--muted); }
.status-pill i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 9px var(--green); }
.content { padding: 30px 38px 48px; }
.messages { padding: 20px 38px 0; }
.message { padding: 12px 15px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.metric-grid.three { grid-template-columns: repeat(3, 1fr); }
.metric-card { min-height: 132px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), #0f1715); display: flex; flex-direction: column; }
.metric-card.accent { background: linear-gradient(145deg, #1c3b23, #111b17); border-color: #315033; }
.metric-card span { color: var(--muted); font-size: 12px; }
.metric-card strong { font-size: 39px; letter-spacing: -.05em; margin-top: auto; }
.metric-card .metric-text { font-size: 20px; letter-spacing: -.02em; }
.metric-card small { color: #64766e; font-size: 11px; margin-top: 3px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px; min-width: 0; }
.span-2 { grid-column: span 2; }.span-3 { grid-column: span 3; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.panel-head h2 { margin: 4px 0 0; font-size: 17px; }
.panel-head > a { color: var(--muted); font-size: 12px; }
.panel-head > a:hover { color: var(--green); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { color: #687b72; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid rgba(37,50,46,.65); color: #c7d2cd; }
tr:last-child td { border-bottom: 0; }
.badge { padding: 4px 8px; border: 0; background: #26322f; }
.status-succeeded, .status-success { color: var(--green); background: rgba(87,135,59,.2); }
.status-failed { color: var(--red); background: rgba(158,58,51,.2); }
.status-running, .status-partial { color: var(--amber); background: rgba(156,115,36,.2); }
.empty { min-height: 190px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.empty strong { color: var(--text); }.empty p { max-width: 420px; line-height: 1.55; }.empty.compact { min-height: 100px; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 9px; padding: 10px 14px; cursor: pointer; font-weight: 700; font-size: 12px; }
.button:hover { border-color: #4e6259; }.button.primary { background: var(--green); color: #162011; border-color: var(--green); }
.finding-list { display: grid; }
.finding-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.finding-list a:last-child { border: 0; }.finding-list span { display: grid; gap: 4px; }.finding-list small { color: var(--muted); }.finding-list b { color: var(--green); font-size: 20px; }
.muted { color: var(--muted); line-height: 1.6; }
.link-list { display: grid; }.link-list a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }.link-list a span { float: right; color: var(--muted); }
.finding-cards { display: grid; gap: 10px; }.finding-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid transparent; background: #0e1715; border-radius: 12px; padding: 20px; }.finding-card:hover { border-color: #34483f; }.finding-card h2 { font-size: 17px; margin: 7px 0; }.finding-card p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 12px; }.score-orb { flex: 0 0 auto; width: 72px; height: 72px; border: 1px solid #39513f; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle, #1b3320, #111a18); }.score-orb strong { color: var(--green); font-size: 25px; }.score-orb small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }.score-orb.large { width: 110px; height: 110px; }.score-orb.large strong { font-size: 36px; }.detail-head { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg,#18271f,var(--surface)); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }.detail-head h2 { font-size: 27px; letter-spacing: -.04em; margin: 7px 0; }.detail-head p { color: var(--muted); max-width: 700px; line-height: 1.6; }.prose { color: #c7d4ce; line-height: 1.75; }.facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin: 22px 0; }.facts div,.component-grid div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #0e1715; }.facts dt,.component-grid span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }.facts dd { margin: 6px 0 0; font-size: 13px; }.risk-list { color: var(--amber); line-height: 1.6; font-size: 13px; }.wide { width: 100%; margin-top: 12px; }.component-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 18px; }.component-grid div { display: grid; gap: 5px; }.component-grid strong { color: var(--green); }.evidence-link { color: var(--green); }
.report-create { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }.report-create h2 { margin: 5px 0; }.report-create p { margin-bottom: 0; }.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }.inline-form select { color: var(--text); background: #0c1412; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }.markdown-view { white-space: pre-wrap; overflow-wrap: anywhere; color: #c7d4ce; font: 13px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace; }.facts.single { grid-template-columns: 1fr; }
.brief-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.brief-fields { display: grid; gap: 14px; }.brief-fields div { border-bottom: 1px solid var(--line); padding-bottom: 12px; }.brief-fields dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }.brief-fields dd { margin: 5px 0 0; line-height: 1.55; }.warning-panel { margin-bottom: 14px; border-color: #69572e; }
.auth-main { grid-column: 1 / -1; min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 50% 20%, #1a2c23, transparent 42%), var(--bg); }
.login-wrap { width: min(430px, calc(100vw - 36px)); }
.login-card { border: 1px solid var(--line); background: rgba(17,26,24,.93); border-radius: 22px; padding: 34px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.login-brand { margin: 0 0 46px; }.login-card h1 { font-size: 32px; letter-spacing: -.04em; margin: 8px 0; }
.stack-form { display: grid; gap: 10px; margin-top: 28px; }.stack-form label { color: var(--muted); font-size: 12px; margin-top: 6px; }
.stack-form input, .stack-form textarea, .stack-form select { width: 100%; color: var(--text); border: 1px solid var(--line); border-radius: 9px; background: #0c1412; padding: 11px 12px; outline: none; }
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(185,243,106,.08); }
.stack-form .button { margin-top: 10px; }.form-errors { color: var(--red); font-size: 12px; }.form-errors ul { padding-left: 18px; }
.page-actions { display: flex; gap: 9px; margin-bottom: 20px; }.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }.form-grid .full { grid-column: 1/-1; }
.field { display: grid; gap: 7px; }.field label { color: var(--muted); font-size: 12px; }.field input, .field select, .field textarea { width: 100%; color: var(--text); background: #0c1412; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }.helptext { color: #687a72; font-size: 11px; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-header h1 { margin: 5px 0 7px; font-size: 24px; letter-spacing: -.035em; }
.page-header p { color: var(--muted); margin: 0; line-height: 1.55; }
.actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.actions form { margin: 0; }
.content button:not(.link-button):not(.button), .content input, .content select, .content textarea { color: var(--text); border: 1px solid var(--line); border-radius: 9px; background: #0c1412; padding: 10px 12px; }
.content button:not(.link-button):not(.button) { cursor: pointer; background: var(--surface-2); font-weight: 700; font-size: 12px; }
.content button:not(.link-button):not(.button):hover { border-color: #4e6259; }
.content input:focus, .content select:focus, .content textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(185,243,106,.08); }
.card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.form-stack { display: grid; gap: 12px; }
.form-stack p { display: grid; gap: 7px; margin: 0; }
.form-stack label { color: var(--muted); font-size: 12px; }
.form-stack input, .form-stack select, .form-stack textarea { width: 100%; }
.form-stack .helptext { display: block; }
.stack { display: grid; gap: 14px; }
.split, .row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.row { padding: 11px 0; border-top: 1px solid var(--line); }
.row > span:last-child { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.grid-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 14px 0; }
.empty-state { min-height: 190px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; }
.empty-state h2 { color: var(--text); margin-bottom: 0; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 11px; background: #26322f; white-space: nowrap; }
.status-healthy, .status-succeeded, .status-success { color: var(--green); background: rgba(87,135,59,.2); }
.status-degraded, .status-partial, .status-running, .status-pending { color: var(--amber); background: rgba(156,115,36,.2); }
.status-unavailable, .status-failed { color: var(--red); background: rgba(158,58,51,.2); }
.status-disabled, .status-unknown { color: var(--muted); }
.warning { color: var(--amber); border-color: #69572e; }
.card.warning { margin-bottom: 14px; }
.metric-grid > .card { min-height: 112px; display: flex; flex-direction: column; gap: 10px; }
.metric-grid > .card strong { color: var(--muted); font-size: 12px; font-weight: 500; }
.metric-grid > .card span { margin-top: auto; color: var(--text); font-size: 30px; font-weight: 800; }
pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #c7d4ce; background: #0c1412; border-radius: 10px; padding: 14px; font: 12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace; }
.content nav[aria-label="Paginering"] { display: flex; justify-content: center; align-items: center; gap: 16px; color: var(--muted); margin-top: 20px; }
.content nav[aria-label="Paginering"] a { color: var(--green); }
@media (max-width: 1050px) { .metric-grid { grid-template-columns: repeat(2,1fr); }.dashboard-grid { grid-template-columns: 1fr; }.span-2,.span-3 { grid-column: span 1; } }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; }.sidebar { position: static; width: 100%; height: auto; }.sidebar nav { grid-template-columns: repeat(2,1fr); }.sidebar-footer { display: none; }.brand { margin-bottom: 18px; }.topbar,.content { padding-left: 20px; padding-right: 20px; }.status-pill { display: none; }.metric-grid,.metric-grid.three,.form-grid,.grid-two,.brief-grid,.facts,.component-grid { grid-template-columns: 1fr; }.page-header,.page-actions,.report-create,.detail-head,.split,.row { align-items: stretch; flex-direction: column; }.page-actions { flex-wrap: wrap; }.row > span:last-child { justify-content: flex-start; } }
