:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #152026;
  --muted: #66747c;
  --line: #dbe2e6;
  --accent: #116149;
  --accent-dark: #0b4636;
  --warn: #8a4d0f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 14px 24px;
  background: #0f1d22;
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.topbar strong,
.topbar span,
.nav a {
  display: inline-block;
}

.topbar span {
  margin-left: 12px;
  color: #b8c7cc;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a,
.button,
button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 10px 14px;
  text-decoration: none;
}

.nav a {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
}

button:hover,
.button:hover,
.nav a:hover {
  background: var(--accent-dark);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(15, 29, 34, .04);
}

.auth {
  max-width: 420px;
  margin: 12vh auto 0;
}

h1 {
  margin: 0 0 16px;
  font-size: 20px;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  color: #27363d;
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid #cbd5da;
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 10px 11px;
}

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(17, 97, 73, .18);
}

.check {
  align-items: center;
  display: flex;
  gap: 8px;
}

.check input {
  width: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #44545b;
  font-size: 13px;
  text-transform: uppercase;
}

.badge {
  background: #e7f2ee;
  border: 1px solid #c2ddd3;
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-block;
  font-size: 13px;
  padding: 3px 8px;
}

.button.small {
  display: inline-block;
  padding: 6px 10px;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
}

.facts dt {
  color: var(--muted);
  font-weight: 700;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.mailbox-facts {
  margin-bottom: 16px;
}

.usage {
  min-width: 160px;
  max-width: 280px;
}

.usage-text {
  align-items: baseline;
  color: var(--text);
  display: flex;
  font-size: 13px;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 5px;
  white-space: nowrap;
}

.usage-text span {
  color: var(--muted);
}

.usage-bar {
  background: #edf1f3;
  border: 1px solid #d6e0e4;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.usage-bar i {
  background: var(--accent);
  display: block;
  height: 100%;
}

.flash {
  background: #fff7e6;
  border: 1px solid #f0d29a;
  border-radius: 8px;
  color: var(--warn);
  margin-bottom: 16px;
  padding: 10px 12px;
}

.muted,
.empty {
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

@media (max-width: 760px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

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

  th:nth-child(2),
  td:nth-child(2),
  th:nth-child(3),
  td:nth-child(3),
  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }

  .usage {
    min-width: 130px;
  }
}
