:root {
  color: #18211d;
  font-family: Montserrat, Arial, sans-serif;
  background: #f5f7f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px;
}

header {
  align-items: flex-end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

h1 {
  font-size: 24px;
  margin: 0;
}

.hint,
.status {
  color: #5f6e64;
  font-size: 13px;
}

.summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: 12px 0;
}

.metric,
.floor,
.legend,
.history {
  background: #fff;
  border: 1px solid #dce4d7;
  border-radius: 10px;
}

.metric {
  padding: 10px;
}

.metric b {
  display: block;
  font-size: 22px;
}

.metric span {
  color: #667369;
  font-size: 12px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px;
}

.legend i {
  border: 1px solid rgba(20, 30, 25, .35);
  display: inline-block;
  height: 14px;
  width: 24px;
}

.floors {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.floor {
  padding: 10px;
}

.floor h2 {
  border-bottom: 1px solid #e7ede4;
  font-size: 16px;
  margin: 0 0 10px;
  padding-bottom: 8px;
}

.grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
}

.room {
  align-items: center;
  aspect-ratio: 1 / .72;
  border: 1px solid #cfd9ce;
  border-radius: 7px;
  display: grid;
  font-size: 18px;
  font-weight: 700;
  justify-content: center;
  min-height: 54px;
}

.history {
  margin-top: 16px;
  padding: 10px;
}

.history table {
  border-collapse: collapse;
  width: 100%;
}

.history th,
.history td {
  border-bottom: 1px solid #edf1ea;
  font-size: 13px;
  padding: 7px;
  text-align: left;
}

.toplink {
  color: #5d3fd3;
  text-decoration: none;
}

