:root {
  font-family:
    Segoe UI,
    Arial,
    sans-serif;
  color: #e9edf7;
  background: #0b101b;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
aside {
  width: 245px;
  padding: 32px 24px;
  border-right: 1px solid #222b40;
  position: fixed;
  height: 100vh;
  background: #0d1421;
}
.brand {
  display: flex;
  gap: 12px;
  color: #8e9aff;
  font-size: 37px;
  text-decoration: none;
}
.brand span {
  font-size: 23px;
  letter-spacing: 4px;
  color: #fff;
}
.brand b {
  display: block;
  font-size: 10px;
  letter-spacing: 7px;
  color: #8696b5;
}
.muted,
small {
  color: #8c9bb7;
  font-size: 12px;
}
nav {
  margin-top: 45px;
  display: grid;
  gap: 9px;
}
button {
  cursor: pointer;
  border: 1px solid #33415c;
  background: #1a263e;
  color: #c4d0e7;
  border-radius: 8px;
  padding: 11px 17px;
  font: inherit;
}
button:hover,
button.active {
  background: #273653;
  border-color: #7486e8;
  color: #fff;
}
nav button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  font-size: 14px;
}
.foot {
  position: absolute;
  bottom: 30px;
  font-size: 12px;
  line-height: 2;
}
.dot {
  display: inline-block;
  background: #e7ae57;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}
main {
  margin-left: 245px;
  padding: 35px 45px;
  width: calc(100% - 245px);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header small {
  letter-spacing: 2px;
  font-size: 10px;
}
h1 {
  font-size: 29px;
  font-weight: 550;
  margin: 9px 0 28px;
}
.badge {
  font-size: 10px;
  letter-spacing: 1px;
  background: #343123;
  border: 1px solid #655b37;
  color: #e9ca7f;
  padding: 7px 11px;
  border-radius: 5px;
  margin-right: 15px;
}
#banner {
  background: #30251d;
  border: 1px solid #675036;
  padding: 15px 20px;
  border-radius: 9px;
  color: #e5bb7a;
  font-size: 13px;
  margin: 8px 0 25px;
}
.hero {
  background: linear-gradient(120deg, #202747, #111a2d);
  padding: 35px;
  border: 1px solid #3a466d;
  border-radius: 15px;
  margin-bottom: 22px;
}
.hero h2 {
  font-size: 30px;
  margin: 8px 0 14px;
}
.hero p {
  color: #a9b7d1;
  line-height: 1.7;
  max-width: 650px;
}
.eyebrow {
  color: #a1acff;
  letter-spacing: 2px;
  font-size: 11px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid #26314a;
  background: #111b2b;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.card h3 {
  margin: 0 0 18px;
  font-size: 15px;
}
.metric {
  font-size: 28px;
  color: #d2dbff;
}
.card p {
  color: #98a8c5;
  font-size: 13px;
  line-height: 1.6;
}
form {
  max-width: 600px;
  display: grid;
  gap: 13px;
}
input,
select,
textarea {
  padding: 12px;
  border: 1px solid #35425f;
  border-radius: 7px;
  background: #0d1524;
  font: inherit;
  color: #e5eafa;
  width: 100%;
}
label {
  color: #adbcd7;
  font-size: 13px;
  line-height: 2;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid #26314a;
  overflow-wrap: anywhere;
}
th {
  color: #8d9db8;
  font-size: 11px;
  text-transform: uppercase;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #b0bfdc;
  font-size: 12px;
}
.pill {
  padding: 4px 9px;
  border-radius: 5px;
  background: #28324a;
  color: #c4cfff;
}
#message {
  color: #e8c88b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
}
h2 {
  font-weight: 500;
}
a {
  color: #b0baff;
}
@media (max-width: 1000px) {
  aside {
    width: 195px;
    padding: 25px 15px;
  }
  main {
    margin-left: 195px;
    width: calc(100% - 195px);
    padding: 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Keep all navigation reachable at laptop and scaled display sizes. */
aside { overflow-y:auto; display:flex; flex-direction:column; }
.foot { position:static; margin-top:28px; padding-bottom:20px; }
nav { margin-top:24px; gap:3px; }
.card { overflow-wrap:anywhere; }

.incoming-alert{position:fixed;right:24px;bottom:24px;max-width:440px;max-height:70vh;overflow:auto;padding:24px;background:#17233b;border:2px solid #e8b450;border-radius:14px;box-shadow:0 12px 40px #0008;z-index:100}.incoming-alert[hidden]{display:none}.incoming-alert p{white-space:pre-wrap;overflow-wrap:anywhere}
