:root {
  --ink: #091520;
  --ink-soft: #354d5a;
  --navy: #0a2639;
  --navy-deep: #071c2a;
  --blue: #164d70;
  --blue-soft: #d8e4e8;
  --steel: #607483;
  --paper: #eef1f0;
  --white: #fbfcfb;
  --line: #c3cdd0;
  --green: #28795d;
  --amber: #a96a12;
  --red: #a43445;
  --shadow: 0 18px 46px rgba(19, 45, 58, .08);
  font-family: "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

button, input, select { font: inherit; }
button, .button { transition: background .18s ease, border-color .18s ease, transform .18s ease; }

.shell { display: grid; min-height: 100vh; grid-template-columns: 252px minmax(0, 1fr); }
.shell > aside {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  overflow-y: auto;
  background: var(--navy-deep);
  color: #f4f7f7;
  border-right: 1px solid #294658;
}

.brand {
  position: relative;
  min-height: 96px;
  display: grid;
  align-content: center;
  padding: 7px 8px 20px 56px;
  border-bottom: 1px solid rgba(190, 211, 220, .28);
}
.brand::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 40px;
  height: 40px;
  background-color: #f5f7f6;
  background-image: url("north-solutions-logo.png");
  background-position: center -34px;
  background-size: 135px auto;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, .36);
}
.brand b { font-size: 1rem; letter-spacing: .2em; }
.brand span { margin-top: 3px; color: #9bc2d3; font-size: .56rem; font-weight: 800; letter-spacing: .18em; }
.brand small {
  width: max-content;
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid #537689;
  color: #829daa;
  font-size: .52rem;
  letter-spacing: .14em;
}

nav { display: grid; gap: 3px; margin-top: 28px; }
nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 10px 12px 10px 19px;
  border: 1px solid transparent;
  color: #b4c5cc;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 650;
}
nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 2px;
  background: transparent;
}
nav a:hover { color: #fff; background: rgba(255, 255, 255, .045); }
nav a.active { border-color: #365c70; background: #123247; color: #fff; }
nav a.active::before { background: #84bdd5; }
nav em {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #b2384d;
  color: #fff;
  font-size: .57rem;
  font-style: normal;
}

.profile {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding: 20px 8px 0;
  border-top: 1px solid rgba(190, 211, 220, .28);
}
.profile small { color: #8bb6c8; font-size: .54rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.profile b { font-size: .79rem; }
.profile form { margin-top: 12px; }
.profile button {
  width: 100%;
  padding: 9px;
  border: 1px solid #44697b;
  background: transparent;
  color: #c0d0d6;
  cursor: pointer;
}
.profile button:hover { background: #17384b; color: #fff; }

.shell > main { min-width: 0; }
.top {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid #aebbc0;
  background: rgba(238, 241, 240, .92);
  backdrop-filter: blur(14px);
}
.top div { display: grid; }
.top small, .kicker, .heading small, .card header small, .hero p {
  color: var(--blue);
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .16em;
}
.top b { margin-top: 3px; color: var(--steel); font-size: .68rem; }
.mode {
  margin-right: 2px;
  padding: 7px 10px;
  border: 1px solid #8098a3;
  background: #f8faf9;
  color: #244a5f;
  font-size: .57rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.content { width: min(1500px, 100%); margin: 0 auto; padding: 42px 42px 70px; }
.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid #9eacb1;
}
.heading h1 {
  margin: 7px 0 0;
  font-size: clamp(2.5rem, 4vw, 4.7rem);
  font-weight: 610;
  line-height: .96;
  letter-spacing: -.055em;
}

.hero {
  min-height: 400px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr);
  margin-bottom: 20px;
  border: 1px solid #aebbc0;
  background: var(--white);
  box-shadow: none;
}
.hero > div:first-child {
  position: relative;
  padding: 58px 58px 52px;
  overflow: hidden;
  background: #f8faf9;
  border-left: 4px solid var(--blue);
}
.hero > div:first-child::after { display: none; }
.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 24px 0;
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.065em;
}
.hero span { position: relative; z-index: 1; color: var(--ink-soft); }
.pulse {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 38px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.pulse i {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border: 9px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: #65c6a3;
  box-shadow: 0 0 0 1px #65c6a3;
  animation: monitorCore 2.4s ease-in-out infinite;
}
.pulse.bad i { background: #e16d7d; box-shadow: 0 0 0 1px #e16d7d; }
.pulse i::before, .pulse i::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(101, 198, 163, .72);
  border-radius: 50%;
  opacity: 0;
  animation: monitorScan 2.4s ease-out infinite;
}
.pulse i::after { animation-delay: 1.2s; }
.pulse.bad i::before, .pulse.bad i::after { border-color: rgba(225, 109, 125, .78); }
.pulse b { font-size: 1rem; letter-spacing: .12em; }
.pulse small { margin-top: 8px; color: #9fb5bf; }

@keyframes monitorScan {
  0% { opacity: 0; transform: scale(.8); }
  14% { opacity: .85; }
  72%, 100% { opacity: 0; transform: scale(2.15); }
}

@keyframes monitorCore {
  0%, 100% { filter: brightness(.92); transform: scale(.96); }
  50% { filter: brightness(1.12); transform: scale(1); }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stats article {
  display: grid;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 2px solid #668695;
  background: var(--white);
}
.stats small { color: var(--steel); font-size: .57rem; font-weight: 800; letter-spacing: .11em; }
.stats b { align-self: end; margin-top: 12px; font-size: 2.5rem; font-weight: 580; letter-spacing: -.05em; }

.card {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: none;
}
.card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.card h2 { margin: 4px 0 0; font-size: 1.25rem; font-weight: 650; }
.card a { color: var(--blue); text-decoration: none; font-weight: 700; }
.card a:hover { text-decoration: underline; text-underline-offset: 4px; }

.rows > div {
  display: grid;
  grid-template-columns: 15px minmax(130px, 1fr) minmax(150px, 1.4fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #d9dfe0;
}
.rows > div:last-child { border-bottom: 0; }
.rows small { color: var(--steel); }
.rows strong { color: #304c5a; font-size: .64rem; letter-spacing: .04em; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #819198; }
.dot.healthy, .dot.active { background: var(--green); }
.dot.warning, .dot.learning { background: var(--amber); }
.dot.attack, .dot.offline, .dot.disabled { background: var(--red); }

.grid-two { display: grid; grid-template-columns: minmax(300px, .58fr) minmax(0, 1.42fr); gap: 18px; }
.stack { display: grid; gap: 14px; }
.form-card { padding: 25px; }
.form-card h2 { margin: 0 0 16px; }
.stack label, .profile-form label {
  display: grid;
  gap: 7px;
  color: #405d6b;
  font-size: .65rem;
  font-weight: 760;
  letter-spacing: .02em;
}
.stack input, .stack select, .profile-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #9fafb5;
  border-radius: 0;
  outline: 0;
  background: #f9fbfa;
  color: var(--ink);
}
.stack input:focus, .stack select:focus, .profile-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 77, 112, .11);
}
.stack button, .button, .profile-form button, .inline-form button, .incident button {
  min-height: 43px;
  padding: 10px 15px;
  border: 1px solid var(--navy);
  border-radius: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.stack button:hover, .button:hover, .profile-form button:hover, .inline-form button:hover, .incident button:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}
.secondary { border-color: #84979f !important; background: transparent !important; color: #203f50 !important; }
.danger { border-color: #a84b59 !important; background: #fff2f3 !important; color: #922c3d !important; }
.small { min-height: 0 !important; padding: 6px 9px !important; }

.target-list > header { padding: 22px; }
.target-list details { border-bottom: 1px solid var(--line); }
.target-list details:last-child { border-bottom: 0; }
.target-list summary {
  display: grid;
  grid-template-columns: 15px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
}
.target-list summary:hover { background: #f3f6f5; }
.target-list summary div { display: grid; }
.target-list summary small { margin-top: 3px; color: var(--steel); }
.target-list summary strong { color: #375665; font-size: .62rem; }
.target-body { padding: 22px; background: #edf2f2; border-top: 1px solid var(--line); }
.target-meta { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.target-meta span { padding: 8px 10px; border: 1px solid #afbdc1; background: #f9fbfa; color: var(--steel); font-size: .64rem; }
.target-meta b { color: var(--ink); }
.profile-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.profile-form button { grid-column: 1 / -1; }
.inline-form { margin: 13px 0; }
.agents { display: grid; margin-top: 16px; }
.agents > div { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.agents span { display: grid; margin-right: auto; }
.agents small { color: var(--steel); }
.pill { padding: 4px 8px; border: 1px solid #9fb0b7; background: #f8faf9; color: #44616f; font-size: .58rem; font-style: normal; }
.pill.active { border-color: #76a998; color: var(--green); }

.incident-grid { display: grid; grid-template-columns: repeat(2, minmax(300px, 1fr)); gap: 14px; }
.incident {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 6px solid var(--amber);
  background: var(--white);
  box-shadow: none;
}
.incident.high, .incident.critical { border-top-color: var(--red); }
.incident header, .incident footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.incident header span { color: var(--red); font-size: .59rem; font-weight: 900; letter-spacing: .12em; }
.incident header i { color: var(--steel); font-size: .62rem; }
.incident h2 { margin: 18px 0 4px; }
.incident p { margin: 0; color: var(--steel); }
.score { display: flex; align-items: end; gap: 9px; margin: 18px 0; }
.score b { font-size: 3rem; font-weight: 570; letter-spacing: -.06em; }
.incident .score b { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(1.35rem, 2.2vw, 2.2rem); letter-spacing: -.035em; }
.score small { padding-bottom: 8px; color: var(--steel); }
.incident li { color: var(--ink-soft); font-size: .75rem; }
.incident footer { align-items: flex-end; margin-top: 20px; }
.incident footer > small { color: var(--steel); font-size: .6rem; }
.incident footer form { display: flex; gap: 6px; flex-wrap: wrap; }
.incident footer button { min-height: 0; padding: 7px 9px; font-size: .62rem; }

.alert, .token-reveal { margin-bottom: 19px; padding: 16px 19px; border: 1px solid; }
.alert.danger { border-color: #c58e97; border-left: 6px solid var(--red); background: #fff1f2; color: #7f2636; }
.alert.success { border-color: #8fb8aa; border-left: 6px solid var(--green); background: #eef8f4; color: #205f49; }
.token-reveal { border-color: #b79561; border-left: 7px solid var(--amber); background: #fff8e9; }
.token-reveal h2 { margin: 8px 0 13px; }
.token-reveal code, .auth-card code { display: block; padding: 13px; border: 1px solid #b7c2c5; background: #f7f9f8; color: #17384a; overflow-wrap: anywhere; }
.empty { padding: 24px; color: var(--steel); }
.muted { color: var(--steel); }

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    var(--paper);
}
.auth-card {
  position: relative;
  width: min(100%, 520px);
  padding: 46px;
  border: 1px solid #aebbc0;
  border-top: 5px solid var(--blue);
  background: var(--white);
  box-shadow: 10px 12px 0 rgba(16, 52, 73, .08), 0 28px 70px rgba(19, 45, 58, .09);
}
.auth-card::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  background-image: url("north-solutions-logo.png");
  background-position: center -44px;
  background-size: 175px auto;
  background-repeat: no-repeat;
}
.auth-card h1 { margin: 10px 0; font-size: clamp(2.3rem, 7vw, 3.6rem); font-weight: 610; line-height: 1; letter-spacing: -.055em; }
.button { display: inline-block; margin-top: 13px; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 215px minmax(0, 1fr); }
  .content { padding: 34px 28px 60px; }
  .hero { grid-template-columns: 1fr; }
  .pulse { min-height: 220px; }
  .grid-two { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .shell > aside { position: relative; height: auto; padding: 16px; border-right: 0; border-bottom: 6px solid #2e6480; }
  .brand { min-height: 72px; padding: 5px 8px 15px 53px; }
  .brand::before { top: 2px; width: 38px; height: 38px; background-position: center -32px; background-size: 128px auto; }
  .shell > aside nav { grid-template-columns: repeat(2, 1fr); margin-top: 15px; }
  .profile { display: none; }
  .top { height: 72px; padding: 0 18px; }
  .mode { margin-right: 100px; }
  .content { padding: 28px 16px 50px; }
  .hero > div:first-child { padding: 42px 28px; border-left-width: 6px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .stats { grid-template-columns: 1fr 1fr; }
  .profile-form { grid-template-columns: 1fr 1fr; }
  .incident-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .top b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stats { grid-template-columns: 1fr; }
  .profile-form { grid-template-columns: 1fr; }
  .rows > div { grid-template-columns: 12px 1fr; }
  .rows > div > *:nth-child(n + 3) { grid-column: 2; }
  .auth-body { padding: 16px; }
  .auth-card { padding: 30px 24px; box-shadow: 10px 12px 0 rgba(16, 52, 73, .1); }
}

@media (prefers-reduced-motion: reduce) {
  button, .button { transition: none; }
  .pulse i, .pulse i::before, .pulse i::after { animation: none; }
}

.enforcement-settings{grid-column:1/-1;margin:18px 0 4px;padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:1px solid #78919c;background:#e8efef}.enforcement-settings legend{padding:0 9px;color:#143f57;font-weight:850}.enforcement-settings label{display:grid;gap:7px}.enforcement-settings .wide{grid-column:1/-1}.enforcement-settings textarea{min-height:78px;resize:vertical}.enforcement-settings p{margin:0}@media(max-width:720px){.enforcement-settings{grid-template-columns:1fr}.enforcement-settings .wide{grid-column:1}}
.protection-live{padding:13px;display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:10px;border-left:4px solid #267356;background:#d9e8e1}.protection-live span{font-size:.58rem;font-weight:850;letter-spacing:.12em}.protection-live b{color:#174f3c}.protection-live small{text-align:right}.quarantine-clear{margin:10px 0 20px}.quarantine-clear button{width:100%}

.docs-heading{align-items:center}.docs-download{margin:0}.docs-intro{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr);margin-bottom:14px;border:1px solid var(--line);background:var(--white)}.docs-intro>div{padding:34px;border-left:5px solid var(--blue)}.docs-intro h2{max-width:720px;margin:9px 0 12px;font-size:clamp(2rem,4vw,4rem);font-weight:610;line-height:.98;letter-spacing:-.05em}.docs-intro p{max-width:780px;margin:0;color:var(--ink-soft)}.docs-intro ol{margin:0;padding:30px 32px 30px 52px;background:var(--navy);color:#fff}.docs-intro li{padding:8px 0 8px 7px;border-bottom:1px solid rgba(255,255,255,.15)}.docs-warning{display:flex;gap:10px;margin-bottom:24px;padding:17px 19px;border:1px solid #d3ad6f;border-left:6px solid var(--amber);background:#fff7e5;color:#70480f}.docs-lang-de{display:none}html[lang="de"] .docs-lang-de{display:block}html[lang="de"] .docs-lang-en{display:none}.docs-checklist>h2{margin:0 0 7px;font-size:2rem}.docs-checklist>p{margin:0 0 20px;color:var(--steel)}.docs-checklist details{margin-bottom:9px;border:1px solid var(--line);background:var(--white)}.docs-checklist summary{display:flex;align-items:center;gap:15px;padding:18px 20px;cursor:pointer;list-style:none}.docs-checklist summary::-webkit-details-marker{display:none}.docs-checklist summary b{display:grid;flex:0 0 37px;height:37px;place-items:center;border:1px solid #7f99a5;color:var(--blue);font-size:.68rem}.docs-checklist summary span{font-size:1rem;font-weight:760}.docs-checklist details[open] summary{border-bottom:1px solid var(--line);background:#f4f7f6}.docs-checklist details>div{padding:22px 24px}.docs-checklist p{max-width:1000px}.docs-checklist code,.docs-troubleshooting code{font-family:Consolas,"Courier New",monospace}.docs-checklist p code{padding:2px 5px;background:#e6ecec;color:#153d53}.docs-checklist pre{max-width:100%;margin:15px 0;padding:17px 19px;overflow:auto;border-left:5px solid #47809a;background:#071c2a;color:#e7f1f4;line-height:1.7}.docs-checklist pre code{white-space:pre}.docs-note{padding:11px 13px;border-left:3px solid #7294a3;background:#edf3f3;color:var(--steel)}.docs-troubleshooting{margin-top:28px}.docs-troubleshooting h2{font-size:1.8rem}.docs-troubleshooting>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.docs-troubleshooting article{display:grid;gap:8px;padding:19px;border:1px solid var(--line);background:var(--white)}.docs-troubleshooting article>b{color:var(--blue)}.docs-troubleshooting article>code{padding:10px;background:#e8eeee;overflow-wrap:anywhere}.docs-troubleshooting article>span{color:var(--steel);font-size:.72rem}

@media(max-width:800px){.docs-heading{align-items:flex-start;gap:20px;flex-direction:column}.docs-intro{grid-template-columns:1fr}.docs-troubleshooting>div{grid-template-columns:1fr}.docs-checklist details>div{padding:18px}.docs-checklist pre{font-size:.72rem}.docs-warning{align-items:flex-start;flex-direction:column}}
