:root {
  color-scheme: dark;
  background: #000;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #000;
}

.kit-browser-bridge {
  position: fixed !important;
  top: 0 !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

main {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem)
    clamp(8.5rem, 18vh, 11rem);
}

.logo-lockup {
  display: flex;
  width: min(88vw, 52rem);
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.logo-lockup > p {
  margin: clamp(1.5rem, 4vw, 2.75rem) 0 0;
  padding-left: 0.42em;
  color: #fff;
  font-size: clamp(0.72rem, 1.35vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.mailing-list {
  width: min(100%, 34rem);
  margin-top: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
}

.mailing-list > label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mailing-list-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #000;
}

.mailing-list input,
.mailing-list button {
  min-height: 3rem;
  border: 0;
  border-radius: 0;
  font: inherit;
}

.mailing-list input {
  min-width: 0;
  padding: 0 1rem;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.mailing-list input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.mailing-list button,
.button {
  min-height: 3rem;
  padding: 0 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  background: #fff;
  color: #000;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.mailing-list button {
  border-width: 0 0 0 1px;
}

.mailing-list button:hover:not(:disabled),
.button:hover:not(:disabled) {
  background: #000;
  color: #fff;
}

.mailing-list button:disabled,
.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.mailing-list-fields:focus-within {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.logo-lockup .mailing-list-note,
.logo-lockup .mailing-list-status {
  width: 100%;
  margin: 0.7rem auto 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-align: center;
  white-space: normal;
}

.logo-lockup .mailing-list-status {
  margin-top: 0.45rem;
  color: #fff;
}

.logo-lockup .mailing-list-status.is-error,
.form-error {
  color: #ff9b9b;
}

.mailing-list-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

footer {
  position: fixed;
  z-index: 10;
  display: flex;
  right: 1rem;
  bottom: max(clamp(1rem, 3vh, 2rem), env(safe-area-inset-bottom));
  left: 1rem;
  flex-direction: column;
  gap: 0.35rem;
  color: #fff;
  font-size: clamp(0.56rem, 0.85vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-align: center;
}

.review-page {
  display: block;
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 5rem);
}

.review-panel {
  width: min(100%, 64rem);
  margin: 0 auto;
}

.review-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.review-eyebrow {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.review-panel h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.review-panel a {
  color: #fff;
}

.review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.review-list strong,
.review-list span {
  display: block;
}

.review-list strong {
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
}

.review-list span {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
}

.review-list span.provider-error {
  max-width: 48rem;
  color: #ff9d9d;
  font-size: 0.72rem;
  line-height: 1.5;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.review-actions form {
  margin: 0;
}

.review-actions button {
  min-height: 2.4rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.review-actions button.approve {
  background: #fff;
  color: #000;
}

.review-empty,
.review-notice {
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.65);
}

.review-notice {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.admin-login {
  width: min(100%, 28rem);
  margin: 4rem auto;
}

.admin-login label,
.admin-login input,
.admin-login button {
  display: block;
  width: 100%;
}

.admin-login label {
  margin: 1.5rem 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-login input {
  min-height: 3rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  background: #000;
  color: #fff;
  font: inherit;
}

.admin-login button {
  margin-top: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions form {
  margin: 0;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.traffic-panel {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.traffic-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.traffic-panel h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 600;
}

.traffic-panel > header > a {
  padding-top: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.traffic-note,
.traffic-updated {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.6;
}

.traffic-note {
  margin: 1rem 0 1.5rem;
}

.traffic-updated {
  margin: 1rem 0 0;
}

.traffic-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.traffic-table {
  width: 100%;
  min-width: 39rem;
  border-collapse: collapse;
  font-size: 0.72rem;
  text-align: right;
}

.traffic-table th,
.traffic-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.traffic-table thead th {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.traffic-table th:first-child {
  text-align: left;
}

.traffic-table tbody tr:last-child th,
.traffic-table tbody tr:last-child td {
  border-bottom: 0;
}

.traffic-daily {
  margin-top: 1.25rem;
}

.traffic-daily summary {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.traffic-ip-panel {
  margin-top: 2rem;
}

.traffic-ip-panel h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.traffic-ip-panel > p {
  margin: 0.65rem 0 1rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.6;
}

.traffic-ip-panel > .review-empty {
  margin: 1rem 0 0;
}

.traffic-ip-table {
  min-width: 32rem;
}

.traffic-ip {
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  white-space: nowrap;
}

@media (max-height: 48rem) {
  main {
    padding-top: 2rem;
    padding-bottom: 7.5rem;
  }

  .logo-lockup {
    width: min(76vw, 42rem);
  }

  .logo-lockup > p {
    margin-top: 1.2rem;
  }

  .mailing-list {
    margin-top: 1.8rem;
  }
}

@media (max-width: 42rem) {
  .review-panel > header {
    flex-direction: column;
  }

  .review-list li {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .review-actions {
    justify-content: flex-start;
  }

  .traffic-panel > header {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 34rem) {
  .mailing-list-fields {
    grid-template-columns: 1fr;
  }

  .mailing-list button {
    border-width: 1px 0 0;
  }
}
