:root {
  color-scheme: light;
  --ink: #16352f;
  --muted: #60716b;
  --green: #087c53;
  --border: #dce7e1;
  --bg: #f4f7f5;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.1rem max(1.5rem, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-size: 1.65rem;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
}
.brand span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.environment {
  border: 1px solid #ead7a6;
  border-radius: 99px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  background: #fff8e6;
  color: #76571a;
}
main {
  max-width: 1200px;
  margin: 2.7rem auto;
  padding: 0 1.5rem;
  min-height: 70vh;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin: 0.5rem 0 0.8rem;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.25;
}
.eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--green);
  margin: 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.82rem;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}
.session {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  justify-content: flex-end;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stats article {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.stats span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}
.stats strong {
  display: block;
  font-size: 2.3rem;
  letter-spacing: -0.05em;
  margin-top: 0.25rem;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}
.search {
  flex: 1;
}
.filters > div {
  min-width: 0;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: white;
  border: 1px solid #baccc2;
  border-radius: 7px;
  padding: 0.7rem 0.8rem;
  width: 100%;
  min-height: 44px;
}
textarea {
  resize: vertical;
}
button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  min-height: 44px;
  padding: 0.65rem 1rem;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: #bdcec4;
}
button.danger {
  background: #a62f38;
  border-color: #a62f38;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:hover:enabled {
  filter: brightness(0.94);
}
:focus-visible {
  outline: 3px solid #4c9de4;
  outline-offset: 3px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}
th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.8rem 0.6rem;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 1.2rem 0.6rem;
  border-bottom: 1px solid #eaf0ec;
  vertical-align: middle;
}
td:first-child {
  max-width: 300px;
  overflow-wrap: anywhere;
}
td strong,
td .account-email {
  display: block;
}
.account-email {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.badge {
  display: inline-block;
  border-radius: 99px;
  background: #e5f4eb;
  color: #176443;
  padding: 0.25rem 0.6rem;
  font-size: 0.73rem;
  white-space: nowrap;
}
.badge.waiting {
  background: #fff3d9;
  color: #7b5b1b;
}
.actions {
  display: flex;
  gap: 0.5rem;
}
.actions button {
  font-size: 0.78rem;
  padding: 0.5rem 0.65rem;
}
.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}
.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 490px;
  padding: 2rem;
  margin: 3rem auto;
}
.login-card form {
  margin-top: 1.8rem;
}
.login-card input {
  margin-bottom: 1rem;
}
.login-card button {
  width: 100%;
  margin-top: 0.5rem;
}
.message {
  padding: 1rem;
  border: 1px solid #b7dcc7;
  background: #e8f7ee;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}
.message.error,
.error {
  color: #8c242d;
}
.message.error {
  border-color: #e4b6bb;
  background: #fff0f1;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  max-width: 500px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 70px #16352f33;
}
dialog::backdrop {
  background: #16352f80;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
#decision-account {
  font-weight: 650;
  overflow-wrap: anywhere;
}
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 720px) {
  main {
    margin-top: 1.5rem;
    padding: 0 1rem;
  }
  .topbar {
    padding: 1rem;
  }
  .heading {
    display: block;
  }
  .session {
    justify-content: flex-start;
    margin-top: 1rem;
  }
  .stats {
    gap: 0.5rem;
  }
  .stats article {
    padding: 0.8rem;
  }
  .stats span {
    font-size: 0.7rem;
  }
  .stats strong {
    font-size: 1.8rem;
  }
  .filters {
    flex-wrap: wrap;
  }
  .search {
    flex-basis: 100%;
  }
  .filters > div:not(.search) {
    flex: 1;
  }
  .panel {
    padding: 1rem;
  }
  table {
    min-width: 700px;
  }
  .login-card {
    padding: 1.5rem;
    margin: 1rem auto;
  }
  .environment {
    font-size: 0.65rem;
  }
}
