:root {
  font-family: system-ui, sans-serif;
  color: #142440;
  background: var(--surface);
  --surface: #f3f6fb;
  --muted: #52627a;
  --line: #dce5f0;
  --blue: #2459d2;
  --navy: #102643;
  --teal: #087c73;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  line-height: 1.5;
}
button,
a,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--blue);
}
:focus-visible {
  outline: 3px solid #4886ff;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -6rem;
  background: white;
  padding: 0.75rem;
  z-index: 2;
}
.skip:focus {
  top: 1rem;
}
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: white;
  padding: 30px 18px;
  overflow: auto;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 1.18rem;
}
.brand small {
  font-size: 0.87rem;
  color: var(--muted);
}
.sidebar .brand {
  margin: 0 8px 43px;
}
.sidebar .brand small {
  color: #c4d5ed;
}
nav {
  display: grid;
  gap: 7px;
}
nav a,
.logout {
  padding: 12px 13px;
  border-radius: 9px;
  color: #dce8fa;
  text-decoration: none;
  text-align: left;
  font-weight: 550;
}
nav a {
  display: flex;
  align-items: baseline;
}
nav a span {
  flex: 0 0 29px;
  font-size: 1.18rem;
  text-align: left;
}
nav a:hover,
.logout:hover {
  background: #233e62;
}
nav a[aria-current="page"] {
  background: #24467b;
  color: white;
  box-shadow: inset 3px 0 #83aaff;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.logout {
  width: 100%;
  background: transparent;
  border: 1px solid #537094;
}
.topbar {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(20px, 3vw, 52px);
  background: white;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.workspace {
  max-width: 1580px;
  margin: auto;
  padding: 30px clamp(20px, 3vw, 52px) 55px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.2rem;
  letter-spacing: -0.012em;
}
h3 {
  font-size: 1rem;
}
p {
  color: var(--muted);
}
.hero,
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.hero {
  background: linear-gradient(110deg, #142d52, #21477d);
  color: white;
  padding: 32px;
  border-radius: 16px;
}
.hero p {
  color: #dce9fb;
}
.hero p,
.page-header p {
  margin-top: 10px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
button,
.button {
  border: 1px solid #b9c9df;
  background: white;
  color: #214477;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 650;
  display: inline-block;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #edf4ff;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.primary:hover {
  background: #1946b0;
}
.hero .primary {
  background: #fff;
  color: #17458d;
  border-color: white;
}
.hero .primary:hover {
  background: #e4efff;
}
.section {
  margin-top: 25px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card,
.panel,
details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
}
.card {
  min-height: 108px;
}
.card h3 {
  margin-bottom: 12px;
}
.card p,
.panel p {
  margin-top: 8px;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: #ecf1f8;
  color: #435773;
  font-size: 0.88rem;
  font-weight: 650;
}
.good {
  background: #dff5e9;
  color: #17613e;
}
.warn {
  background: #fff0cc;
  color: #784800;
}
.bad {
  background: #ffe7e6;
  color: #992a2a;
}
.notice,
.execution {
  padding: 12px 15px;
  margin-bottom: 16px;
  border: 1px solid #b9cce7;
  border-radius: 9px;
  background: #eaf2ff;
  color: #204574;
  overflow-wrap: anywhere;
}
.execution {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.flow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
}
.flow div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}
.flow .vpn {
  border-inline-start: 4px solid var(--blue);
}
.flow .sase {
  border-inline-start: 4px solid var(--teal);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead {
  background: #edf3fb;
  color: #364e70;
}
tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}
td button,
.table-wrap .button {
  padding: 5px 9px;
  font-size: 0.9rem;
}
.chart {
  position: relative;
  overflow: hidden;
  height: 260px;
  margin-top: 12px;
}
details {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}
.access {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(130deg, #eaf1fc, #f6f9fe);
}
.access-panel {
  width: min(100%, 460px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 18px 55px #16365e17;
}
.access-panel .brand {
  margin-bottom: 33px;
}
.access-panel h1 {
  font-size: 2rem;
  margin-bottom: 11px;
}
.access form {
  margin: 25px 0 0;
  display: grid;
  gap: 8px;
}
.access label {
  font-weight: 650;
}
.access input {
  padding: 11px;
  border: 1px solid #9db1cd;
  border-radius: 8px;
  width: 100%;
}
.access form button,
.access .notice {
  margin-top: 10px;
}
.pagination {
  margin-top: 15px;
}
@media (max-width: 980px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .hero,
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .two {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px;
  }
  .sidebar .brand {
    margin: 0 0 12px;
  }
  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .sidebar nav a {
    padding: 7px;
    font-size: 0.9rem;
  }
  .sidebar-bottom {
    padding-top: 10px;
  }
  .logout {
    width: auto;
  }
  .topbar {
    flex-wrap: wrap;
  }
  .workspace {
    padding-top: 20px;
  }
  .hero {
    padding: 23px;
  }
  .flow {
    grid-template-columns: 1fr;
  }
}
.classification-summary {
  margin-top: 12px;
}

.reading {
  margin-top: 12px;
  color: var(--muted);
}
.definitions dt {
  margin-top: 12px;
  font-weight: 650;
}
.definitions dd {
  margin: 4px 0 0;
}
.source-id {
  overflow-wrap: anywhere;
}
@media (min-width: 681px) {
  .sidebar {
    align-self: start;
    height: 100dvh;
  }
  .shell {
    background: var(--navy);
  }
  .shell > main {
    background: var(--surface);
  }
}
