:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #24272a;
  --muted: #596579;
  --line: #cbd3e1;
  --input: #7e8ca3;
  --soft: #f2f5fa;
  --blue: #2459d5;
  --tint: #e9eefc;
  --danger: #b8342e;
  --shadow: 0 2px 3px #182b4510;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.55 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
body.dark {
  color-scheme: dark;
  --bg: #191c20;
  --ink: #f2f3f6;
  --muted: #b5bfce;
  --line: #414958;
  --input: #8490a4;
  --soft: #242930;
  --blue: #86aaff;
  --tint: #283650;
  --danger: #ffaaa4;
  --shadow: none;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1136px;
  margin: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}
.brand {
  font-size: 21px;
  font-weight: 750;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo {
  background: #2459d5;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}
.blue {
  color: var(--blue);
}
nav a {
  color: var(--muted);
}
.top-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-nav a {
  padding: 10px;
  font-size: 14px;
}
.button,
button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2459d5;
  color: #fff;
  border: 1px solid #2459d5;
  border-radius: 8px;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
}
.dark .button,
.dark button.primary {
  background: #86aaff;
  border-color: #86aaff;
  color: #14203a;
}
.button.secondary,
button.secondary {
  border: 1px solid var(--input);
  color: var(--ink);
  background: var(--bg);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}
.danger {
  background: #b8342e !important;
  color: white !important;
  border-color: #b8342e !important;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--input);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  background: var(--bg);
  color: var(--ink);
  font-size: 22px;
}
.pill {
  background: var(--tint);
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.mobile-menu {
  display: none;
}
.layout {
  max-width: 1136px;
  margin: auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 32px;
}
.side-nav {
  display: grid;
  gap: 4px;
}
.side-nav a,
.link-button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  min-height: 44px;
  white-space: nowrap;
}
.side-nav a.active {
  background: var(--tint);
  color: var(--blue);
}
.aside-note {
  margin-top: 32px;
  background: var(--soft);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
}
.aside-note p {
  margin: 4px 0;
  color: var(--muted);
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}
h1 {
  font-size: 36px;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 18px;
  letter-spacing: 0;
}
p {
  margin: 0 0 20px;
  color: var(--muted);
}
.eyebrow {
  display: block;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-head {
  margin-bottom: 32px;
}
.head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.head-row p {
  margin-bottom: 0;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--bg);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.soft {
  background: var(--soft);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid .card {
  margin: 0;
}
.stat {
  display: block;
  font-size: 32px;
  font-weight: 750;
  line-height: 1.2;
  margin: 12px 0;
}
.muted,
small {
  color: var(--muted);
  font-size: 14px;
}
label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 12px;
  min-height: 44px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input:disabled {
  opacity: 0.7;
}
.field {
  margin-bottom: 20px;
}
.field small {
  display: block;
  margin-top: 6px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2459d5;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.filters input {
  flex: 1;
  min-width: 0;
}
.filters select {
  max-width: 224px;
}
.stack {
  display: grid;
  gap: 16px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.space {
  margin-top: 32px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 20px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
  min-width: 640px;
}
th {
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
td,
th {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
td {
  overflow-wrap: anywhere;
  max-width: 280px;
}
td .muted {
  display: block;
}
.badge {
  display: inline-block;
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--soft);
  white-space: nowrap;
}
.badge.pending {
  background: #fff1bf;
  color: #784210;
}
.badge.approved,
.badge.active,
.badge.success {
  background: #cef7e6;
  color: #06523c;
}
.badge.rejected,
.badge.banned {
  background: #ffe3df;
  color: #8b201a;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.pager .actions {
  gap: 8px;
}
.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  padding: 52px 24px;
}
.error {
  border-color: var(--danger);
  color: var(--danger);
}
.message {
  padding: 12px 16px;
  background: var(--soft);
  border-radius: 8px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.loading {
  padding: 40px 0;
}
.public-main {
  max-width: 1136px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 110px;
  padding: 96px 0;
}
.hero h1 {
  font-size: 58px;
  letter-spacing: -2px;
}
.hero p {
  font-size: 18px;
}
.hero .card p {
  font-size: 14px;
  margin: 0;
}
.hero .card {
  margin: 0;
}
.steps {
  background: var(--soft);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.steps .card {
  padding: 20px;
  margin-top: 12px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 448px;
  gap: 90px;
  align-items: center;
  padding: 80px 36px 80px 0;
}
.auth-intro h2 {
  font-size: 48px;
}
.auth-intro p {
  font-size: 18px;
}
.auth-card h1 {
  font-size: 24px;
}
.auth-card .intro {
  margin-bottom: 28px;
}
.auth-card .button {
  width: 100%;
}
.auth-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}
.auth-foot p {
  margin: 0;
}
.setup {
  max-width: 576px;
  margin: 64px auto;
}
.center {
  text-align: center;
  padding: 96px 0;
}
.landing-features {
  padding: 64px 0;
  border-block: 1px solid var(--line);
}
.landing-features .grid {
  margin-top: 32px;
}
.footer {
  padding: 24px 0;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.upload-zone {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 190px;
  border: 2px dashed var(--input);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
}
.upload-zone input {
  margin-top: 16px;
}
.preview {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  margin: 16px auto;
  border-radius: 8px;
}
.proof-image {
  display: block;
  width: 100%;
  height: auto;
}
.proof-frame {
  max-height: 60vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 16px 0;
}
.zoom-150 {
  width: 150%;
  max-width: none;
}
.zoom-200 {
  width: 200%;
  max-width: none;
}
.zoom-75 {
  width: 75%;
  margin: auto;
}
.zoom-50 {
  width: 50%;
  margin: auto;
}
dialog {
  width: min(672px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 16px 48px #0003;
}
dialog::backdrop {
  background: #0009;
}
.close {
  float: right;
  border: none;
  margin: -10px -10px 0 8px;
}
dialog h2 {
  padding-right: 30px;
  margin-bottom: 12px;
}
.dialog-wide {
  width: min(896px, calc(100% - 32px));
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  padding: 14px 24px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
  z-index: 5;
  font-size: 14px;
}
#mobile-nav {
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}
#mobile-nav a {
  display: block;
  padding: 12px 0;
}
.narrow {
  max-width: 672px;
}
.code {
  font-family: monospace;
  overflow-wrap: anywhere;
}
.ref-code {
  font: 700 24px monospace;
  letter-spacing: 2px;
}
.full {
  width: 100%;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .top-nav {
    display: none;
  }
  .hero {
    gap: 40px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .auth-layout {
    gap: 32px;
    grid-template-columns: 1fr 420px;
  }
  .layout {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 24px;
  }
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .header-inner {
    padding: 18px 20px;
    gap: 8px;
  }
  .brand {
    font-size: 20px;
    gap: 8px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .start,
  .header-actions #theme {
    display: none;
  }
  .mobile-menu {
    display: inline-grid;
    border: 0;
    width: 36px;
  }
  .pill {
    padding: 8px;
    font-size: 14px;
  }
  .layout {
    display: block;
    padding: 24px 20px 72px;
  }
  .side-nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 4px;
  }
  .side-nav a {
    flex-shrink: 0;
  }
  .side-nav .link-button {
    flex-shrink: 0;
  }
  aside {
    margin-bottom: 36px;
  }
  .aside-note {
    display: none;
  }
  aside .eyebrow {
    margin: 0 12px 12px;
    letter-spacing: 0.6px;
  }
  .public-main {
    padding: 0 20px 32px;
  }
  .hero {
    display: block;
    padding: 52px 0;
  }
  .hero h1 {
    font-size: 42px;
    letter-spacing: -1.3px;
  }
  .hero .steps {
    margin-top: 40px;
    padding: 16px;
  }
  .hero .steps .card {
    padding: 20px;
  }
  .grid,
  .grid.two,
  .grid.four {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    display: block;
    padding: 48px 0;
  }
  .auth-intro {
    display: none;
  }
  .auth-card {
    padding: 24px;
  }
  .auth-card h1 {
    font-size: 24px;
  }
  .head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .head-row .actions {
    margin-bottom: 4px;
  }
  h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 24px;
  }
  .card {
    padding: 24px;
  }
  .filters {
    flex-direction: column;
  }
  .filters select {
    max-width: 100%;
  }
  .pager {
    font-size: 14px;
    flex-wrap: wrap;
  }
  .pager button {
    padding: 10px 12px;
  }
  .center {
    padding: 96px 0;
  }
  .center h1 {
    font-size: 36px;
  }
  .setup {
    margin: 64px 20px;
  }
  .landing-features {
    padding: 52px 0;
  }
  .landing-features .grid {
    gap: 28px;
  }
  dialog .grid.two {
    gap: 0;
  }
  .auth-layout .card {
    margin: 0;
  }
  .header-actions .icon-button {
    width: 40px;
  }
  .ref-code {
    font-size: 23px;
  }
}

.icon-button svg {
  width: 20px;
  height: 20px;
}
.logo svg {
  width: 26px;
  height: 26px;
}
.auth-card button.primary { width: 100%; }
