:root {
  color-scheme: dark;
  --bg: #101a1f;
  --panel: #162329;
  --panel2: #1a2a30;
  --line: #2b3b41;
  --text: #e1e9e7;
  --muted: #92a6aa;
  --green: #99d9b8;
  --gold: #e2c28b;
  --red: #f2a49b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.drive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.drive-card {
  padding: 15px;
  min-width: 0;
}
.drive-card p {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.drive-temperature {
  font-size: 30px;
  font-weight: 400;
}
.drive-temperature small {
  font-size: 14px;
}
.drive-card details {
  margin-top: 12px;
  font-size: 10px;
}
.drive-card summary {
  cursor: pointer;
  color: var(--muted);
}
.attribute-list p {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.sparkline {
  width: 100%;
  max-height: 160px;
}
.temperature-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
}
.threshold-line {
  stroke: var(--gold);
  stroke-dasharray: 5 5;
  opacity: 0.5;
}
@media (max-width: 720px) {
  .drive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 var(--font);
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel2);
  border-radius: 7px;
  padding: 9px 14px;
}
button:hover {
  border-color: #6b9284;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 40px;
  line-height: 1.17;
  letter-spacing: -1.4px;
  font-weight: 450;
}
h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
p {
  margin-bottom: 12px;
}
.muted,
.fine {
  color: var(--muted);
}
.fine {
  font-size: 12px;
}
.eyebrow {
  color: var(--green);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
}
.sigil {
  font-size: 56px;
  color: var(--green);
  font-weight: 200;
  line-height: 1.2;
}
.sigil.small {
  font-size: 42px;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 60% 20%, #233f37 0, transparent 60%);
}
.login-card {
  max-width: 490px;
  padding: 40px;
}
.login-card h1 {
  margin: 24px 0;
}
.login-card .eyebrow {
  margin-top: 16px;
}
label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 6px;
}
input,
textarea {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101b20;
  padding: 12px;
  width: 100%;
}
.primary {
  background: var(--green);
  color: #163126;
  border: 0;
}
.login-card button {
  width: 100%;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
}
.login-card .fine {
  margin-top: 22px;
}
#shell {
  display: grid;
  grid-template-columns: 220px minmax(460px, 1fr) 310px;
  min-height: 100dvh;
}
#shell[hidden],
[hidden] {
  display: none !important;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 34px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 15px 56px;
  font-size: 27px;
  letter-spacing: 5px;
}
.brand small {
  display: block;
  letter-spacing: 1.3px;
  font-size: 8px;
  color: var(--muted);
  margin-top: -5px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #789195;
  margin-left: 13px;
  margin-bottom: 15px;
}
nav a {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin: 4px 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}
nav a.active {
  color: var(--green);
  background: #22342f;
}
nav b {
  margin-left: auto;
  background: #35483d;
  color: var(--green);
  padding: 0 6px;
  border-radius: 3px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 13px 0;
  color: var(--muted);
  font-size: 12px;
}
.live-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--green);
  margin-bottom: 14px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 10px #99d9b822;
}
.quiet {
  background: transparent;
  border: 0;
  font-size: 11px;
  padding: 6px 0;
  color: var(--muted);
}
main {
  min-width: 0;
  padding: 0 30px;
}
.topbar {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  gap: 10px;
}
.topbar strong {
  font-weight: 450;
  color: var(--text);
}
.slash {
  margin: 0 12px;
  color: #537078;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 0;
}
#content {
  padding-top: 28px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 140px;
  position: relative;
  background: linear-gradient(120deg, #213630, #1b2b2c 75%);
  border: 1px solid #3a5147;
  padding: 28px;
  border-radius: 10px;
  overflow: hidden;
}
.hero h1 {
  font-size: 34px;
  margin: 18px 0 12px;
}
.hero p {
  max-width: 450px;
  color: #b4c8c2;
  font-size: 12px;
}
.hero .hero-meta {
  font-size: 10px;
  color: var(--green);
  margin-top: 23px;
  margin-bottom: 0;
}
.crest {
  display: grid;
  place-content: center;
  position: relative;
}
.crest span {
  font-size: 85px;
  color: #aedbc0;
  text-shadow: 0 0 45px #99d9b844;
}
.crest:before,
.crest:after {
  content: "";
  position: absolute;
  inset: 35px 0;
  border: 1px solid #6b93704a;
  border-radius: 50%;
}
.crest:after {
  inset: 48px 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 30px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
}
.stat label {
  margin: 0;
  font-size: 10px;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 450;
  line-height: 1.7;
}
.stat small {
  color: var(--muted);
  font-size: 10px;
}
.green {
  color: var(--green);
}
.gold {
  color: var(--gold);
}
.red {
  color: var(--red);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 13px;
  gap: 15px;
}
.section-head h2 {
  font-size: 16px;
  margin: 0;
}
.section-head a,
.section-head span {
  color: var(--muted);
  font-size: 10px;
}
.section-head a {
  color: var(--green);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  padding: 20px;
  margin-bottom: 14px;
}
.sensor {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.sensor:last-child {
  border-bottom: 0;
}
.sensor-name {
  font-size: 12px;
}
.sensor small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.pill {
  font-size: 9px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid #426050;
  border-radius: 4px;
  color: var(--green);
  white-space: nowrap;
}
.pill.warning,
.pill.unknown {
  color: var(--gold);
  border-color: #695c43;
  background: #433b2522;
}
.pill.critical,
.pill.stale {
  color: var(--red);
  border-color: #654a49;
  background: #593e3b22;
}
.incident {
  border-left: 2px solid var(--gold);
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--panel);
  border-radius: 0 7px 7px 0;
}
.incident.critical {
  border-left-color: var(--red);
}
.incident.resolved {
  border-left-color: var(--green);
}
.incident-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.incident h3 {
  font-size: 12px;
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
}
.incident p {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.incident .meta {
  font-size: 9px;
  color: #80979b;
}
.incident button {
  font-size: 10px;
  padding: 4px 9px;
}
.incident summary {
  font-size: 10px;
  color: var(--green);
  cursor: pointer;
}
.incident details {
  margin-top: 9px;
}
.empty {
  color: var(--muted);
  font-size: 12px;
  padding: 24px;
  text-align: center;
}
.notice {
  border: 1px solid #6d5449;
  border-radius: 6px;
  background: #3f302733;
  padding: 13px 16px;
  font-size: 12px;
  color: var(--gold);
  margin: 15px 0;
}
.notice.critical {
  border-color: #6d4848;
  color: var(--red);
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid2 .panel h3 {
  margin-bottom: 7px;
}
.grid2 .panel p {
  font-size: 12px;
}
.event {
  display: grid;
  grid-template-columns: 7px 1fr;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.event:last-child {
  border: 0;
}
.event .dot {
  margin-top: 7px;
  width: 5px;
  height: 5px;
}
.event p {
  font-size: 11px;
  margin: 0;
  overflow-wrap: anywhere;
}
.event small {
  font-size: 9px;
  color: var(--muted);
}
.page-intro h1 {
  font-size: 29px;
  margin-bottom: 10px;
}
.page-intro p {
  font-size: 12px;
  color: var(--muted);
}
.filter-row {
  display: flex;
  gap: 7px;
  margin: 20px 0;
}
.filter-row button {
  font-size: 11px;
}
.filter-row .selected {
  border-color: var(--green);
  color: var(--green);
}
.connection-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.connection-row strong {
  font-size: 12px;
  font-weight: 500;
}
.connection-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.delivery {
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.delivery span {
  display: block;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding: 22px 0;
  color: #789195;
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.conversation {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  position: sticky;
  top: 0;
  padding: 31px 20px;
  background: #132026;
}
.conversation-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.conversation-head h2 {
  margin: 12px 0 3px;
  font-size: 22px;
}
.conversation-head h2 .dot {
  float: right;
  margin-top: 14px;
}
.conversation-head p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 0;
}
#messages {
  flex: 1;
  overflow-y: auto;
  min-height: 200px;
  padding-top: 23px;
  scrollbar-width: thin;
}
.message {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 13px;
  background: #1b2b30;
}
.message-label {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--green);
}
.message p {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0 0;
}
.message p.fine {
  font-size: 10px;
}
.message.user {
  background: #23332f;
  border-color: #3e5148;
}
.message a {
  color: var(--green);
  font-size: 10px;
}
.suggestions {
  margin: 18px 0 14px;
  display: grid;
  gap: 7px;
}
.suggestions button {
  text-align: left;
  font-size: 10px;
  background: transparent;
  padding: 8px 10px;
}
#ask-form {
  position: relative;
}
textarea {
  resize: vertical;
  min-height: 78px;
  padding: 12px 35px 12px 12px;
  font-size: 11px;
}
.send {
  position: absolute;
  right: 9px;
  bottom: 14px;
  padding: 1px 8px;
  background: var(--green);
  color: #143126;
  border: 0;
}
.conversation-foot {
  text-align: center;
  font-size: 9px;
  color: #789195;
  margin: 7px 0 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #d4e6dc;
  color: #163126;
  padding: 14px 23px;
  border-radius: 7px;
  max-width: 90%;
  box-shadow: 0 10px 35px #0006;
  z-index: 5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.key-value {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.key-value span {
  color: var(--muted);
}
@media (min-width: 1600px) {
  #shell {
    grid-template-columns: 240px minmax(550px, 1fr) 360px;
  }
  main {
    padding: 0 44px;
  }
  .hero {
    padding: 35px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .conversation {
    padding: 35px 28px;
  }
}
@media (max-width: 1200px) {
  #shell {
    grid-template-columns: 190px minmax(430px, 1fr);
  }
  .conversation {
    grid-column: 2;
    height: 550px;
    position: relative;
    border-top: 1px solid var(--line);
    margin: 0 30px;
    border-left: 0;
    border-radius: 10px;
  }
  .sidebar {
    grid-row: 1/3;
  }
  main {
    padding: 0 24px;
  }
  .topbar #freshness {
    display: none;
  }
}
@media (max-width: 720px) {
  #shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .brand {
    margin: 0 0 16px;
    font-size: 22px;
  }
  .brand .sigil {
    font-size: 32px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  nav a {
    white-space: nowrap;
    font-size: 10px;
    padding: 9px;
  }
  nav a span {
    display: inline;
  }
  nav b {
    display: none;
  }
  main {
    padding: 0 17px;
  }
  .topbar {
    height: 58px;
    font-size: 9px;
  }
  .hero {
    padding: 23px;
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 31px;
  }
  .crest {
    display: none;
  }
  .stats {
    gap: 7px;
  }
  .stat {
    padding: 13px 10px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat small {
    font-size: 9px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .conversation {
    height: 540px;
    margin: 0 17px;
    padding: 23px 18px;
  }
  .top-right {
    gap: 5px;
  }
  footer {
    font-size: 8px;
  }
  .incident-top {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}

@media (max-width: 600px) {
  .stat strong {
    font-size: 23px;
    white-space: nowrap;
  }
}
