:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #142c3c;
  background: #f2f5f6;
  line-height: 1.5;
  font-size: 15px;
  --nav: #102c3a;
  --ink: #142c3c;
  --muted: #506570;
  --accent: #076458;
  --line: #d8e2e3
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

a {
  color: var(--accent);
  text-underline-offset: .2em
}

a:hover {
  text-decoration: underline
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d88e25;
  outline-offset: 3px
}

.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh
}

aside {
  background: var(--nav);
  color: #ecf5f2;
  display: flex;
  flex-direction: column;
  padding: 32px 18px 22px;
  gap: 48px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 740;
  letter-spacing: -1px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap
}

.brand small {
  display: inline;
  color: inherit;
  letter-spacing: 1px;
  font-size: 10px;
  border: 1px solid #7f9a9f;
  padding: 2px 4px;
  vertical-align: middle
}

.logo {
  display: inline-grid;
  place-items: center;
  background: #a9e6bb;
  color: #103e37;
  width: 34px;
  height: 34px;
  border-radius: 8px 2px 8px 2px;
  font-size: 24px;
  font-weight: 800
}

.skip {
  position: absolute;
  left: -10000px
}

.skip:focus {
  left: 8px;
  top: 8px;
  background: white;
  padding: 8px;
  z-index: 10
}

nav {
  display: grid;
  gap: 4px
}

nav a {
  color: #d8e8e8;
  text-decoration: none;
  padding: 10px 12px;
  border-left: 3px solid transparent;
  font-size: 14px;
  border-radius: 4px
}

nav a[aria-current=page] {
  background: #214952;
  border-left-color: #abe5b9;
  color: white;
  font-weight: 650
}

.identity {
  margin-top: auto;
  border-top: 1px solid #45616b;
  padding: 18px 9px 0
}

.identity span,
.identity b {
  display: block
}

.identity span {
  font-size: 12px;
  color: #c3d2d6
}

.logout {
  padding: 0;
  margin-top: 10px;
  background: transparent;
  color: #ccede1;
  border: none;
  font-size: 13px;
  text-decoration: underline
}

.workspace {
  min-width: 0
}

.workspace header {
  background: #fbfdfd;
  border-bottom: 1px solid var(--line);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3.5vw, 60px);
  font-size: 14px;
  font-weight: 600
}

.lab,
.chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #edf5ef;
  color: #33544a;
  border: 1px solid #c5d9cc;
  border-radius: 18px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600
}

.lab i,
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #397b61
}

.lab i {
  box-shadow: 0 0 0 3px #d1e8d7
}

main {
  padding: clamp(24px, 3vw, 48px) clamp(18px, 3.5vw, 60px) 48px;
  max-width: 1560px;
  margin: auto
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1 {
  font-size: clamp(29px, 3.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -.05em;
  margin-bottom: 12px
}

h2 {
  font-size: 21px;
  letter-spacing: -.035em;
  line-height: 1.25;
  margin-bottom: 15px
}

h3 {
  font-size: 17px;
  line-height: 1.3
}

.lede {
  color: var(--muted);
  margin-bottom: 23px
}

.metrics,
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0
}

.metric,
.facts>div {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 17px 18px;
  min-width: 0
}

.metric {
  text-decoration: none;
  color: var(--ink)
}

.metric:hover {
  border-color: #76ab98;
  text-decoration: none
}

.metric>span,
.facts>div>span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted)
}

.metric strong {
  display: block;
  font-size: 37px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -2px;
  margin: 9px 0
}

.facts b {
  display: block;
  margin: 8px 0;
  font-size: 17px
}

.dot {
  margin-right: 5px
}

.dot.unknown {
  background: #bc812f
}

.dot.offline {
  background: #997175
}

.panel,
.paper {
  padding: clamp(16px, 2vw, 27px);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  margin: 16px 0
}

.filters,
.toolbar,
.inline,
.tabs,
.choices {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap
}

.toolbar {
  align-items: center;
  justify-content: space-between;
  margin: 14px 0
}

.toolbar h2 {
  margin: 0
}

.filters {
  margin-bottom: 16px
}

.filters label:first-child {
  flex: 1 1 230px
}

.filters p {
  margin: 0
}

.panel form p {
  margin: 10px 0
}

.panel .filters p {
  margin: 0
}

.inline {
  gap: 7px;
  align-items: center
}

.choices {
  align-items: center
}

.choices label {
  display: flex;
  align-items: center;
  gap: 7px
}

.choices input {
  width: auto
}

input,
select,
button,
.button {
  font: inherit;
  font-size: 14px;
  border-radius: 6px
}

input,
select {
  max-width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #a9babe;
  background: #fcfdfd;
  color: var(--ink)
}

label {
  font-size: 13px;
  font-weight: 600;
  display: block
}

label input:not([type=checkbox]),
label select {
  display: block;
  margin-top: 4px;
  width: 100%
}

.edit input:not([type=checkbox]),
.edit select,
.auth input {
  display: block;
  width: 100%;
  max-width: 540px
}

.edit label:has(input[type=checkbox]) {
  display: flex;
  gap: 7px;
  align-items: center
}

.edit input[type=checkbox] {
  min-height: auto
}

.edit .helptext,
.auth .helptext {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin: 4px 0
}

.edit {
  max-width: 690px
}

.errorlist,
.notice.error {
  color: #96392d
}

button,
.button {
  background: var(--accent);
  color: white;
  padding: 9px 14px;
  border: 1px solid var(--accent);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  display: inline-block;
  text-decoration: none
}

button:hover,
.button:hover {
  filter: brightness(.94);
  text-decoration: none
}

.secondary {
  color: var(--accent);
  background: #fff;
  border-color: #95bcb1
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5ebed;
  vertical-align: middle
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  background: #f5f8f8
}

td a {
  font-weight: 650
}

td small,
.facts small,
.metric small,
.timeline small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px
}

.scroll {
  overflow: auto
}

.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px
}

.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  border-radius: 5px;
  padding: 3px 7px
}

.status.online {
  color: #195d45;
  background: #e4f2e9
}

.status.offline {
  color: #75444d;
  background: #f5eaeb
}

.status.unknown {
  color: #78551b;
  background: #fbf1dc
}

.twocol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px
}

.timeline,
.items {
  list-style: none;
  margin: 0;
  padding: 0
}

.timeline li,
.items li {
  padding: 9px 0;
  border-bottom: 1px solid #e8eeee
}

.items li,
.total {
  display: flex;
  justify-content: space-between;
  gap: 15px
}

.items small {
  color: var(--muted);
  display: block
}

.notice {
  background: #edf4f1;
  border-left: 4px solid #428a74;
  padding: 12px 15px;
  border-radius: 4px
}

.tabs {
  gap: 6px;
  margin: 15px 0
}

.tabs a {
  padding: 6px 13px;
  border: 1px solid #aabfbc;
  border-radius: 5px;
  text-decoration: none
}

.tabs a[aria-current=page] {
  background: #17483f;
  color: white
}

.paper {
  max-width: 710px
}

.paper h2 {
  font-size: 27px;
  margin-top: 16px
}

.stamp {
  color: #7c441a;
  border: 1px dashed #b78c5b;
  padding: 7px 11px;
  text-align: center;
  font-weight: 700;
  letter-spacing: .08em;
  background: #fff8ed
}

.total {
  margin: 16px 0;
  font-size: 18px
}

dl {
  display: grid;
  grid-template-columns: minmax(80px, auto) 1fr;
  gap: 8px 16px
}

dt {
  color: var(--muted);
  font-size: 13px
}

dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere
}

.mapgrid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  min-height: 240px;
  border: 1px solid #b2c8c0;
  background: repeating-linear-gradient(31deg, transparent 0, transparent 49px, #eef4ef 50px, #eef4ef 55px), #dfece4
}

.cell {
  min-height: 42px;
  border: 1px dotted #c0d4cb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap
}

.pin {
  background: #184f48;
  color: white;
  padding: 2px 7px;
  border-radius: 20px 20px 20px 3px;
  font-weight: 700
}

.pin-online { background: #126346; }
.pin-offline { background: #a13536; }
.pin-unknown { background: #6c6350; }
.pin-cto { background: #134c7d; border-radius: 3px; font-size: .75rem; }
.map-legend { display: flex; gap: .5rem; flex-wrap: wrap; }
.cell { flex-wrap: wrap; gap: 2px; }
.cardmap dd { margin: .15rem 0 .5rem; }
.cardmap {
  border-left: 4px solid #367b69;
  background: #edf5f1;
  padding: 12px 17px;
  margin: 12px 0
}

.mapgrid+h3 {
  margin-top: 15px
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0c2633, #23514e);
  max-width: none
}

.login {
  background: #fdfefe;
  border: 1px solid #b4ccc5;
  border-radius: 14px;
  padding: 35px;
  width: min(410px, 100%);
  box-shadow: 0 18px 55px #071c2252
}

.login h1 {
  font-size: 31px;
  margin: 32px 0 8px
}

.login p {
  color: var(--muted)
}

.login .lab {
  margin-top: 22px
}

.login button {
  width: 100%
}

@media(max-width:900px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr)
  }

  aside {
    padding: 24px 10px;
    gap: 30px
  }

  .twocol {
    grid-template-columns: 1fr;
    gap: 0
  }
}

@media(max-width:680px) {
  .shell {
    display: block
  }

  aside {
    padding: 12px 16px;
    gap: 10px
  }

  .brand {
    font-size: 20px
  }

  nav {
    display: flex;
    overflow-x: auto;
    gap: 2px
  }

  nav a {
    white-space: nowrap;
    padding: 6px 8px;
    font-size: 12px
  }

  .identity {
    position: absolute;
    top: 10px;
    right: 17px;
    padding: 0;
    border: 0
  }

  .identity span,
  .identity b {
    display: none
  }

  .identity .logout {
    margin: 0
  }

  .workspace header {
    height: 42px;
    padding: 0 16px
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 7px
  }

  .metric {
    padding: 12px
  }

  .facts {
    grid-template-columns: 1fr 1fr
  }

  .metrics strong {
    font-size: 28px
  }

  main {
    padding: 23px 13px
  }

  .filters {
    align-items: stretch
  }

  .filters label:first-child {
    flex-basis: 100%
  }

  h1 {
    font-size: 32px
  }
}

@media print {

  aside,
  .workspace header,
  .skip,
  .toolbar,
  button,
  .lede {
    display: none
  }

  .shell {
    display: block
  }

  .workspace main {
    padding: 0
  }

  .paper {
    max-width: none;
    border: none
  }

  .stamp {
    color: #111;
    border: 2px solid #111
  }
}
