/* VanillaSky Alerts — Kikin design system
   Vintage national-park poster: forest-ink hero, paper-cream canvas,
   one meadow-green accent. */

/* Self-hosted fonts (no third-party requests → no Google Fonts GDPR issue). */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --forest-ink: #122315;
  --meadow: #55dd4a;
  --meadow-deep: #45c43a;
  /* Darker meadow that passes WCAG AA on paper-cream (~5.6:1). Use for accent
     text/icons on light surfaces; bright --meadow is for fills and for text on
     dark surfaces, where it already passes. */
  --meadow-text: #1f6b2f;
  --sage-border: #566053;
  --lichen: #77e46e;
  --paper-cream: #f3ede4;
  --charcoal: #333333;
  --slate: #141414;
  --moss-gray: #5f665c;
  --driftwood: #626d66;
  --sun-yellow: #ffed52;
  --deep-navy: #0a071b;
  --hero-sky: #253127;
  /* Desaturated burnt red, used only for the destructive-action confirm state. */
  --danger: #8a2c1f;

  --display: "Oswald", "Antonio", "Bebas Neue", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --page-max: 1200px;
  --section-gap: 96px;
  --card-pad: 32px;
  --radius-card: 20px;
  --radius-btn: 10px;
}

* {
  box-sizing: border-box;
}

button,
a,
input,
select,
.toggle-btn {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--meadow-text);
  outline-offset: 2px;
}
.nav-over :focus-visible,
.footer :focus-visible,
.connect-panel :focus-visible {
  outline-color: var(--lichen);
}

/* Headings and UI chrome are labels, not content — stop the I-beam cursor and
   text caret from appearing when they are clicked. */
.hero h1,
.section-title,
.step-num,
.step-title,
.step-label,
.watch-name,
.watch-meta,
.wordmark,
.eyebrow,
.field label,
.legal-wrap h1,
.legal-wrap h2,
.legal-updated {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}
.btn,
button {
  -webkit-user-select: none;
  user-select: none;
}

html {
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper-cream);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: var(--forest-ink);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(32px, env(safe-area-inset-right)) 0 max(32px, env(safe-area-inset-left));
  gap: 16px;
}

/* transparent variant that sits over the hero artwork (landing only). The
   soft top scrim keeps the wordmark legible where the light leak is brightest. */
.nav-over {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(18, 35, 21, 0.4), rgba(18, 35, 21, 0));
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--paper-cream);
  text-decoration: none;
  white-space: nowrap;
  justify-self: start;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-self: center;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-cream);
  text-decoration: none;
  opacity: 0.85;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--body);
  padding: 0;
  transition:
    opacity 180ms cubic-bezier(0.32, 0.72, 0, 1),
    color 180ms cubic-bezier(0.32, 0.72, 0, 1);
}
.nav-link:hover {
  opacity: 1;
  color: var(--lichen);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-self: end;
}

/* --------------------------------------------------------------- buttons */

.btn {
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: var(--radius-btn);
  padding: 13px 24px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 220ms cubic-bezier(0.32, 0.72, 0, 1),
    color 220ms cubic-bezier(0.32, 0.72, 0, 1),
    border-color 220ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 120ms cubic-bezier(0.32, 0.72, 0, 1);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--meadow);
  color: var(--forest-ink);
}
.btn-primary:hover {
  background: var(--meadow-deep);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--paper-cream);
  color: var(--paper-cream);
}
.btn-ghost:hover {
  border-color: var(--lichen);
  color: var(--lichen);
}
.btn-danger,
.btn-danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.btn-ghost.on-cream {
  border-color: var(--forest-ink);
  color: var(--forest-ink);
}
.btn-ghost.on-cream:hover {
  border-color: var(--meadow-text);
  color: var(--meadow-text);
}
.btn.small {
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  background-color: var(--hero-sky);
  background-image: url("/hero-restyled.jpg");
  background-repeat: no-repeat;
  /* cover fills the hero on every aspect ratio (no gap above the artwork);
     bottom keeps the village and mountains in frame. */
  background-position: center bottom;
  background-size: cover;
  color: var(--paper-cream);
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Light leak. The warm radial gradient is the always-on base glow (works
   everywhere); the canvas from lightleak.js layers animated streaks on top
   when WebGL2 is available. Sits above the sky wash, below the copy. */
.hero-leak {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* --leak-x / --leak-y are set by lightleak.js to the sun's on-screen
     position; the fallbacks keep a sensible glow if JS has not run. */
  background:
    radial-gradient(
      70% 70% at var(--leak-x, -2%) var(--leak-y, 2%),
      rgba(255, 246, 223, 0.28) 0%,
      rgba(255, 207, 122, 0.17) 20%,
      rgba(255, 207, 122, 0.07) 42%,
      rgba(85, 221, 74, 0.03) 60%,
      rgba(85, 221, 74, 0) 78%
    );
}

/* sky wash: dark through the type area, clearing to reveal the art below */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 62, 45, 0.95) 0%,
    rgba(44, 62, 45, 0.82) 26%,
    rgba(44, 62, 45, 0.52) 46%,
    rgba(44, 62, 45, 0.22) 61%,
    rgba(44, 62, 45, 0) 75%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 96px 24px 0;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 8.8vw, 112px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 14px 0 18px;
  text-shadow: 0 3px 22px rgba(18, 35, 21, 0.55);
  text-wrap: balance;
}
.hero h1 .accent {
  display: block;
  color: var(--meadow);
}

.hero-sub {
  max-width: 580px;
  margin: 0 auto 26px;
  color: var(--paper-cream);
  opacity: 0.95;
  font-size: 15px;
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(18, 35, 21, 0.7);
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero .hint {
  color: rgba(243, 237, 228, 0.72);
}

/* -------------------------------------------------------------- sections */

.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--section-gap) 24px;
  width: 100%;
}
.section.tight {
  padding-top: 64px;
  padding-bottom: 64px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--meadow-text);
  margin: 0;
}
/* On the dark hero, accent text must stay bright to keep contrast. */
.hero .eyebrow {
  color: var(--lichen);
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--forest-ink);
  margin: 10px 0 0;
  text-wrap: balance;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--paper-cream);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
}

.step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  color: var(--meadow-text);
  line-height: 1;
}
.step-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--forest-ink);
  margin: 12px 0 10px;
  text-wrap: balance;
}
.step-body {
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* ---------------------------------------------------------------- panel */

.panel {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 180px;
}
.field label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--moss-gray);
}

input,
select {
  background: #fffdf9;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-btn);
  padding: 13px 14px;
  font-size: 15px;
  font-family: var(--body);
  color: var(--forest-ink);
  width: 100%;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--meadow-text);
  box-shadow: 0 0 0 3px rgba(85, 221, 74, 0.28);
}

.row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-ink);
  margin: 28px 0 14px;
}
.step-label:first-of-type {
  margin-top: 4px;
}

.swap {
  align-self: flex-end;
  margin-bottom: 4px;
  min-width: 48px;
  justify-content: center;
}

.hint {
  color: var(--moss-gray);
  font-size: 14px;
  margin: 12px 0 0;
}

/* toggle — drives trip shape (one-way / round trip) and date mode (exact /
   range), plus notification loudness. */

.toggle {
  display: inline-flex;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-btn);
  overflow: hidden;
}
.toggle-btn {
  padding: 11px 20px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  transition:
    background 220ms cubic-bezier(0.32, 0.72, 0, 1),
    color 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.toggle-btn:not(.active):hover {
  background: rgba(18, 35, 21, 0.06);
}
.toggle-btn.active {
  background: var(--meadow);
  color: var(--forest-ink);
}

.range-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}
.range-pair input {
  flex: 1;
}
.range-sep {
  color: var(--moss-gray);
  font-size: 13px;
}

.summary {
  margin-top: 22px;
  background: var(--forest-ink);
  color: var(--paper-cream);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.5;
}
.summary b {
  color: var(--meadow);
}

.muted {
  color: var(--moss-gray);
}

/* -------------------------------------------------------------- watches */

.watch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-card);
  background: var(--paper-cream);
  margin-bottom: 12px;
  transition:
    border-color 220ms cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 220ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.watch:hover {
  border-color: var(--driftwood);
  box-shadow: 0 4px 16px rgba(18, 35, 21, 0.08);
  transform: translateY(-1px);
}
.watch .watch-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--forest-ink);
  line-height: 1.05;
  text-wrap: balance;
}
.watch .watch-meta {
  color: var(--moss-gray);
  font-size: 14px;
  margin-top: 6px;
}
.watch .actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(18, 35, 21, 0.08);
  color: var(--forest-ink);
  margin-left: 8px;
  vertical-align: middle;
}
.pill.ok {
  background: rgba(85, 221, 74, 0.25);
  color: var(--forest-ink);
}
.pill.gold {
  background: rgba(255, 237, 82, 0.5);
  color: var(--forest-ink);
}

.empty {
  color: var(--moss-gray);
  font-size: 15px;
  padding: 8px 0;
}

/* ------------------------------------------------------- floating support */

.kofi-float {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 7, 27, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kofi-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(10, 7, 27, 0.24);
}
.kofi-float img {
  display: block;
  border-radius: 12px;
}

/* ---------------------------------------------------------- connect panel */

.connect-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 26px;
  border-radius: var(--radius-card);
  background: rgba(18, 35, 21, 0.86);
  border: 1px solid rgba(243, 237, 228, 0.22);
  backdrop-filter: blur(6px);
}
.connect-panel .banner {
  background: transparent;
  border: none;
  color: var(--paper-cream);
}
.connect-panel .spinner {
  border-color: rgba(243, 237, 228, 0.3);
  border-top-color: var(--paper-cream);
}
.connect-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.banner.expired {
  background: rgba(243, 237, 228, 0.14);
  border-color: rgba(243, 237, 228, 0.35);
  color: var(--paper-cream);
}

/* ----------------------------------------------------------------- misc */

.banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  border: 1px solid var(--sage-border);
  background: rgba(85, 221, 74, 0.12);
  color: var(--forest-ink);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(18, 35, 21, 0.25);
  border-top-color: var(--forest-ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest-ink);
  color: var(--paper-cream);
  border-radius: var(--radius-btn);
  padding: 14px 22px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 100;
}
.toast.show {
  opacity: 1;
}

/* ---------------------------------------------------------------- footer */

.footer {
  margin-top: auto;
  background: var(--forest-ink);
  color: var(--paper-cream);
  padding: 56px 24px 40px;
}
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}
.footer-links a {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-cream);
  text-decoration: none;
  opacity: 0.85;
  transition:
    opacity 180ms cubic-bezier(0.32, 0.72, 0, 1),
    color 180ms cubic-bezier(0.32, 0.72, 0, 1);
}
.footer-links a:hover {
  opacity: 1;
  color: var(--lichen);
}
.footer-disclaimer {
  max-width: 680px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(243, 237, 228, 0.72);
}
.footer-disclaimer b {
  color: var(--paper-cream);
}
.footer-meta {
  margin: 0;
  font-size: 12px;
  color: rgba(243, 237, 228, 0.55);
}
.footer-meta a {
  color: inherit;
}
.footer-meta a:hover {
  color: var(--lichen);
}

/* ------------------------------------------------------------ legal pages */

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: var(--forest-ink);
  display: flex;
  align-items: center;
  padding: 0 max(32px, env(safe-area-inset-right)) 0 max(32px, env(safe-area-inset-left));
}
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-wrap h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--forest-ink);
  margin: 0 0 6px;
  text-wrap: balance;
}
.legal-wrap .legal-updated {
  color: var(--moss-gray);
  font-size: 13px;
  margin: 0 0 32px;
}
.legal-wrap h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--forest-ink);
  margin: 40px 0 12px;
}
.legal-wrap p,
.legal-wrap li {
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.65;
}
.legal-wrap ul {
  padding-left: 22px;
  margin: 10px 0;
}
.legal-wrap li {
  margin-bottom: 8px;
}
.legal-wrap a {
  color: var(--meadow-text);
  text-decoration: underline;
}
.legal-wrap .callout {
  background: rgba(85, 221, 74, 0.12);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin: 0 0 32px;
}
.legal-wrap .callout p {
  margin: 0;
  font-size: 14px;
}
.legal-back {
  display: inline-block;
  margin-top: 40px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--forest-ink);
  text-decoration: none;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-btn);
  padding: 12px 20px;
}
.legal-back:hover {
  border-color: var(--meadow-text);
  color: var(--meadow-text);
}

/* ----------------------------------------------------------------- admin */

.nav-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--forest-ink);
  background: var(--meadow);
  border-radius: 9999px;
  padding: 5px 12px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 28px 0 8px;
}
.kpi {
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--paper-cream);
}
.kpi-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--forest-ink);
  font-variant-numeric: tabular-nums;
}
.kpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--moss-gray);
  margin-top: 10px;
}
.kpi-sub {
  font-size: 12px;
  color: var(--moss-gray);
  margin-top: 4px;
}

.admin-block {
  margin-top: 48px;
}
.admin-h {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--forest-ink);
  margin: 0 0 14px;
}
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-card);
  background: var(--paper-cream);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(86, 96, 83, 0.25);
  white-space: nowrap;
  vertical-align: top;
}
.admin-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--moss-gray);
  background: rgba(18, 35, 21, 0.04);
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-msg {
  display: block;
  white-space: pre-wrap;
  max-width: 460px;
  color: var(--charcoal);
}

/* --------------------------------------------------------------- admin 2FA */

.otp-card {
  margin-top: 22px;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  background: var(--paper-cream);
  max-width: 520px;
}
.otp-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--moss-gray);
  margin-bottom: 10px;
}
.otp-secret {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--forest-ink);
  word-break: break-all;
  background: rgba(18, 35, 21, 0.05);
  border-radius: 8px;
  padding: 12px 14px;
}
.otp-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.beacon {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--meadow-text);
  text-decoration: none;
}
.beacon:hover {
  text-decoration: underline;
}
.otp-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}
.otp-form label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--moss-gray);
}
.otp-form input {
  font-size: 20px;
  letter-spacing: 0.3em;
  text-align: center;
}

/* ------------------------------------------------------ skip link & a11y */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--forest-ink);
  color: var(--paper-cream);
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus {
  top: 12px;
}

/* -------------------------------------------------------------- skeleton */

.skeleton {
  display: block;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(18, 35, 21, 0.08) 25%,
    rgba(18, 35, 21, 0.16) 37%,
    rgba(18, 35, 21, 0.08) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.skeleton.line {
  height: 14px;
  margin-bottom: 10px;
}
.skeleton.line.short {
  width: 40%;
}
.skeleton.line.mid {
  width: 65%;
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* ------------------------------------------------------------- utilities */

.mt-14 {
  margin-top: 14px;
}
.mt-18 {
  margin-top: 18px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-22 {
  margin-top: 22px;
}
.mt-28 {
  margin-top: 28px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-72 {
  margin-top: 72px;
}
.hidden {
  display: none;
}

/* --------------------------------------------------- reduced-motion/-transparency */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .watch:hover,
  .btn:active:not(:disabled) {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .connect-panel {
    background: var(--forest-ink);
    backdrop-filter: none;
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav {
    padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  }
  .nav-links {
    display: none;
  }
  /* Fill the tall phone viewport instead of leaving sky-coloured dead space. */
  .hero {
    background-size: cover;
    background-position: center bottom;
  }
}

@media (max-width: 560px) {
  .row {
    flex-direction: column;
    align-items: stretch;
  }
  .field {
    flex-basis: auto;
  }
  .swap {
    align-self: flex-start;
  }
  .watch {
    flex-direction: column;
    align-items: flex-start;
  }
  .watch .actions {
    width: 100%;
  }
  .watch .actions .btn {
    flex: 1;
    justify-content: center;
  }
  .nav {
    gap: 10px;
  }
  .wordmark {
    font-size: 17px;
    letter-spacing: -0.3px;
  }
  .hero-inner {
    padding-top: 92px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-cta .btn-ghost {
    background: rgba(18, 35, 21, 0.55);
    border-color: rgba(243, 237, 228, 0.85);
  }
  /* 16px keeps iOS from zooming when a field is focused. */
  input,
  select {
    font-size: 16px;
  }
  .connect-panel {
    backdrop-filter: none;
  }
  .kofi-float img {
    height: 30px;
  }
}
