:root {
  --ink: #0b1324;
  --muted: #66718a;
  --line: #dfe6ef;
  --page: #f7f9fc;
  --primary: #00897d;
  --navy: #07172e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
}

.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px;
  background: linear-gradient(135deg, #061226, #07182f);
  color: #fff;
}

.topbar p,
.topbar h1 {
  margin: 0;
}

.topbar p {
  color: #20d7c5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

main {
  padding: 24px;
}

.grid {
  display: grid;
  gap: 18px;
}

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.lists {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.card,
.stats article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.login-card {
  max-width: 430px;
  margin: 9vh auto;
}

h2 {
  margin: 0 0 14px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.stats span,
.meta {
  color: var(--muted);
  font-size: 13px;
}

.stats strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.secondary {
  background: #eef4f7;
  color: var(--primary);
  border: 1px solid #d8e5ea;
}

.mini {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 980px) {
  .stats,
  .panels,
  .lists {
    grid-template-columns: 1fr;
  }
}
