* {
  box-sizing: border-box;
}
:root {
  --ink: #152b2c;
  --muted: #53696a;
  --line: #dce6e4;
  --green: #086453;
  --soft: #e5f4ee;
  --paper: #fff;
}
body {
  margin: 0;
  background: #f4f7f6;
  color: var(--ink);
  font:
    15px/1.5 "Segoe UI",
    system-ui,
    sans-serif;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: #102f30;
  color: white;
  padding: 24px 19px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.brand {
  width: 100%;
  height: 147px;
  object-fit: cover;
  display: block;
  background: white;
  border-radius: 13px;
}
.overline {
  display: block;
  color: #627773;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}
aside .overline {
  margin: 34px 14px 12px;
  color: #9abdb6;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  color: #d9e8e4;
  font-weight: 550;
  border-radius: 9px;
}
nav a:hover,
nav .active {
  background: #224748;
  color: white;
  text-decoration: none;
}
nav .active {
  color: #b3f3d9;
  box-shadow: inset 3px 0 #7ce0b6;
}
.foot {
  margin-top: auto;
  padding: 24px 12px 0;
  font-size: 13px;
  color: #acc9c3;
}
.foot b {
  display: block;
  color: white;
  margin-bottom: 4px;
}
main {
  margin-left: 248px;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 19px 4.5%;
  background: white;
  border-bottom: 1px solid var(--line);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--muted);
}
.crumb svg {
  width: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  color: #095841;
  border-radius: 30px;
  padding: 5px 11px;
  font-weight: 600;
  font-size: 12px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #138653;
}
.wrap {
  max-width: 1380px;
  margin: auto;
  padding: 35px 4.5% 56px;
}
.heading,
.actions,
.between,
form,
.metric,
.line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.heading,
.between {
  justify-content: space-between;
}
.heading {
  margin-bottom: 26px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 37px);
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin: 6px 0 8px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 16px;
}
p,
small {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.btn,
button,
input {
  font: inherit;
  border-radius: 9px;
  border: 1px solid #cbd9d6;
  padding: 10px 15px;
  background: white;
  color: var(--ink);
  min-height: 44px;
  max-width: 100%;
}
button,
.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
}
button:hover,
.btn:hover {
  background: #edf6f2;
  text-decoration: none;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #06493e;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  font-size: 13px;
}
form {
  align-items: end;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.card,
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 3px 9px #163b3105;
}
.metric {
  padding: 21px;
  gap: 16px;
}
.metric b {
  display: block;
  font-size: 29px;
  font-weight: 650;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e4f4ed;
  color: #097459;
  flex: none;
}
.icon svg {
  width: 24px;
  height: 24px;
}
.metric:nth-child(2) .icon {
  background: #e7effc;
  color: #365b94;
}
.metric:nth-child(3) .icon {
  background: #fff2d9;
  color: #966113;
}
.card {
  margin: 20px 0;
  overflow: hidden;
}
.pad {
  padding: 22px 24px;
}
.between + .scroll,
.row {
  border-top: 1px solid var(--line);
}
.row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 24px;
  color: var(--ink);
}
.row:hover {
  background: #f6fbf9;
  text-decoration: none;
}
.grow {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.row b,
.row small {
  display: block;
}
.row b {
  font-size: 16px;
}
.row > .count {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.row > svg {
  color: #65827a;
}
.empty {
  padding: 36px 20px 42px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.empty .icon {
  margin: 0 auto 17px;
  width: 60px;
  height: 60px;
  border-radius: 18px;
}
.empty p {
  max-width: 455px;
  margin: 7px auto 18px;
}
.empty form {
  justify-content: center;
}
.scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
td,
th {
  padding: 15px 22px;
  border-bottom: 1px solid #edf1f0;
  white-space: nowrap;
}
th {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--muted);
  background: #f6f9f8;
}
.qr {
  width: min(100%, 400px);
  image-rendering: pixelated;
}
.pair {
  display: grid;
  grid-template-columns: minmax(200px, 390px) 1fr;
  align-items: center;
  gap: 28px;
}
.pair li {
  margin: 12px 0;
}
.hint {
  background: #edf6f2;
  padding: 14px;
  border-radius: 10px;
}
.period {
  display: flex;
  align-items: end;
  gap: 8px;
}
.period input {
  width: 196px;
}
.link {
  font-weight: 600;
}
.compact {
  font-size: 13px;
}
.avatar {
  font-weight: 700;
  letter-spacing: 0.4px;
}
.sub {
  margin-top: 6px;
}
.details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #378cce;
  outline-offset: 3px;
}
@media (max-width: 980px) {
  aside {
    width: 200px;
    padding: 18px 13px;
  }
  .brand {
    height: 122px;
  }
  main {
    margin-left: 200px;
  }
  .metric {
    padding: 14px;
    gap: 10px;
  }
  .stats {
    gap: 9px;
  }
  .metric .icon {
    width: 34px;
    height: 34px;
  }
  .metric .icon svg {
    width: 19px;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .pair img {
    margin: auto;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: auto;
    padding: 10px 14px;
  }
  .brand {
    width: 152px;
    height: 104px;
    margin: auto;
  }
  aside .overline,
  .foot {
    display: none;
  }
  nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 3px;
  }
  nav a {
    padding: 10px 8px;
    font-size: 13px;
    gap: 6px;
  }
  nav svg {
    width: 16px;
  }
  main {
    margin: 0;
  }
  .wrap {
    padding: 23px 15px;
  }
  .bar {
    padding: 12px 15px;
    font-size: 13px;
  }
  .metric {
    display: block;
    padding: 12px;
  }
  .metric .icon {
    margin-bottom: 7px;
  }
  .metric b {
    font-size: 22px;
  }
  .metric small {
    font-size: 12px;
  }
  .pad,
  .row {
    padding: 15px;
  }
  .row {
    gap: 10px;
  }
  .row .icon {
    width: 34px;
    height: 36px;
  }
  .row b {
    font-size: 14px;
  }
  .row small {
    font-size: 12px;
  }
  .between form {
    width: 100%;
  }
  .between input {
    min-width: 0;
    flex: 1;
    width: 130px;
  }
  .stats {
    gap: 7px;
  }
  .heading {
    gap: 16px;
  }
  .badge {
    font-size: 11px;
  }
  .actions {
    gap: 7px;
  }
  td,
  th {
    padding: 12px 14px;
  }
  .period input {
    width: 175px;
  }
}
body:has(.access) {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at top, #daf0e8, transparent 65%), #f2f6f5;
}
.access {
  width: min(460px, 94vw);
  margin: 24px auto;
}
.access .card {
  padding: clamp(20px, 5vw, 40px);
}
.access .brand {
  width: min(270px, 100%);
  height: 190px;
  object-fit: cover;
  display: block;
  margin: 0 auto 24px;
}
.access h1 {
  font-size: 26px;
  margin: 8px 0 20px;
}
.access form,
.account form {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
.access label,
.account label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}
.access input,
.account input {
  width: 100%;
  min-width: 0;
  height: 44px;
}
.access p,
.account p {
  line-height: 1.5;
}
.error {
  color: #9c3028;
  background: #fff2ef;
  padding: 12px;
  border-radius: 8px;
}
.account {
  max-width: 540px;
}
.access button,
.account button {
  justify-content: center;
  min-height: 44px;
}
.access small {
  line-height: 1.45;
}
@media (max-width: 760px) {
  nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  aside form {
    margin: 6px auto;
  }
  .access .brand {
    height: 166px;
    width: 228px;
  }
}
