:root {
  color-scheme: dark;
  font:
    15px/1.6 system-ui,
    sans-serif;
  color: #dce8e2;
  background: #0b1210;
  --line: #294038;
  --accent: #77e8b9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 90% 0, #183b2e 0, transparent 50%);
}
main {
  max-width: 1080px;
  margin: auto;
  padding: 48px 24px;
}
header,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
header {
  margin-bottom: 28px;
}
.eyebrow {
  font:
    12px/1.4 ui-monospace,
    monospace;
  letter-spacing: 3px;
  color: var(--accent);
}
h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 8px 0;
}
h2 {
  font-size: 21px;
  margin: 8px 0 18px;
}
p {
  color: #a6bfb2;
}
section,
article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 22px;
  background: #111e19d9;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.grid > article {
  margin: 0;
}
.grid#auth {
  padding: 0;
  border: 0;
  background: none;
}
label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}
input,
select,
button {
  font: inherit;
  border-radius: 7px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  max-width: 100%;
}
input,
select {
  background: #0b1510;
  color: #eaf9f0;
  width: 100%;
}
#language {
  width: auto;
}
button {
  cursor: pointer;
  background: var(--accent);
  color: #082316;
  font-weight: 650;
}
.secondary {
  background: #1c2c24;
  color: #c8dfd2;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
#status {
  min-height: 28px;
  margin-bottom: 22px;
  color: var(--accent);
}
#status.error {
  color: #ff9a91;
}
#scan-panel {
  text-align: center;
}
#qr {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
#scan-state {
  margin: 15px;
}
.table-scroll {
  overflow: auto;
  max-height: 330px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.badge {
  font-size: 12px;
  color: var(--accent);
}
.offline {
  color: #d6a897;
}
footer {
  text-align: center;
  color: #799589;
  font-size: 12px;
  margin-top: 32px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    padding: 24px 14px;
  }
  section,
  article {
    padding: 18px;
  }
  header {
    align-items: flex-start;
  }
  button {
    min-height: 44px;
  }
  .section-head {
    align-items: flex-start;
  }
}
