:root {
  color-scheme: light;
  --bg: #f3f2ed;
  --card: #fff;
  --line: #d8d9d2;
  --text: #151716;
  --muted: #707570;
  --acid: #caff24;
  --danger: #b52c34;
  --blue: #176c91;
}
body { min-width: 320px; background: var(--bg); color: var(--text); font-size: 17px; }
.topbar {
  min-height: 126px; height: auto;
  padding: 0;
  background: #fff; border-bottom: 1px solid #dcdcd5;
}
.topbar-inner {
  width: 100%; max-width: 1180px; min-height: 126px; margin: 0 auto; padding: 28px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
}
.brand-logo { display: flex; align-items: center; align-self: stretch; flex: 0 1 auto; }
.brand-logo img { display: block; width: min(430px, 42vw); height: auto; }
.topbar nav, .topbar nav form { gap: 20px; }
.topbar nav > a:not(.button), .topbar .link { color: #242624; font-size: 1rem; font-weight: 650; }
.topbar .link { padding: 12px 4px; }
main {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 22px 70px;
  min-height: calc(100vh - 248px);
}
footer { color: var(--muted); padding: 30px 24px 38px; font-size: .82rem; }
.heading { margin-bottom: 30px; }
.eyebrow { color: #747a75; letter-spacing: .16em; }
h1 { font-size: clamp(2.25rem, 3.2vw, 3.35rem); letter-spacing: -.035em; }
h2 { letter-spacing: -.02em; }
.card {
  background: #fff; border-color: var(--line); border-radius: 22px; padding: 32px;
  box-shadow: 0 12px 38px rgba(28, 31, 26, .045);
}
.table-wrap { padding: 0; }
th, td { border-bottom-color: var(--line); }
th { color: #686e69; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafaf7; }
td small, .muted, .empty, .files small, .hash, .log span, .log small { color: var(--muted); }
label { color: #3b3f3c; }
input, textarea, select {
  background: #fff; color: var(--text); border-color: #cfd2ca; border-radius: 12px;
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid rgba(202, 255, 36, .38); border-color: #8eae28;
}
.button {
  background: #151716; color: #fff; border-color: #151716; border-radius: 13px;
  padding: 13px 18px; transition: transform .12s ease, background .12s ease;
}
.button:hover { background: #303330; transform: translateY(-1px); }
.button.primary { background: var(--acid); color: #0e110b; border-color: #b7e925; }
.button.primary:hover { background: #d6ff56; }
.button.danger { background: #fff; color: var(--danger); border-color: #d7a3a6; }
.status { border-color: #bfc4bd; }
.status.active { color: #496900; border-color: #83a72c; background: #f7ffe5; }
.status.revoked, .status.expired, .status.limit_reached {
  color: #a42b31; border-color: #dcafb2; background: #fff5f5;
}
.drop { border-color: #b9beb6; background: #fafaf7; }
.stats div, details { border-color: var(--line); }
.files li, .log > div, .subform { border-color: var(--line); }
.settings > summary { color: #242724; }
.success { border-color: #9fbd54; background: #f4ffdc; color: #3f5b00; }
.alert { border-color: #e0b4b7; background: #fff1f2; color: #9d242b; }
.narrow { max-width: 570px; margin: 8vh auto; }
.mailer { margin-top: 24px; }
.public-theme main { max-width: 1180px; }
.public-theme .public {
  max-width: none; width: 100%; margin: 0 auto; padding: clamp(36px, 4vw, 58px);
}
.public-theme .public .lead { color: #3d413e; font-size: 1.15rem; }
.public-theme .public-meta { color: var(--muted); }
.public-theme .public-files li { border-bottom-color: #e2e2dc; }
.public-theme .button { background: #151716; color: #fff; border-color: #151716; }
.public-theme .button.primary { background: var(--acid); color: #10130c; border-color: #b6e52a; }
@media (max-width: 760px) {
  .topbar { min-height: 104px; }
  .topbar-inner { width: 100%; min-height: 104px; padding: 20px 22px; }
  .brand-logo img { width: min(430px, 50vw); }
  main { width: 100%; margin: 0 auto; padding: 28px 22px 70px; }
  .grid.two, .grid.uneven, .stats { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar { min-height: 88px; }
  .topbar-inner { width: 100%; min-height: 88px; padding: 8px 16px; gap: 12px; }
  .brand-logo img { width: min(430px, 62vw); }
  .topbar nav { gap: 8px; }
  .topbar nav > a:not(.button) { display: none; }
  .topbar nav .button { padding: 10px 12px; font-size: .7rem; }
  .topbar .link { font-size: .82rem; }
  main { margin: 24px auto; padding: 0 14px; }
  .card { padding: 22px; border-radius: 17px; }
  .heading { align-items: flex-start; gap: 18px; }
  .copyline { flex-wrap: wrap; }
  .copyline input { flex-basis: 100%; }
  .public-theme .public { margin: 3vh auto; padding: 26px 22px; }
  .public-files li { align-items: flex-start; flex-direction: column; }
  .public-files .button { width: 100%; }
}
