/* Inter, bundled locally per the Giant Monkey style guide (no font CDN). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter/InterVariable-d7247216.woff2") format('woff2');
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: 'Inter', sans-serif;
  background: rgb(11, 50, 43); /* sampled from long.png's border so the logo blends in */
}

.index-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.index-page__logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.index-page__logo img {
  max-width: 80vw;
  max-height: 60vh;
}

.page-footer {
  padding: 24px 0;
  text-align: center;
  color: #5dcaa5; /* style-guide mint — dark-mode link color */
  font-size: 14px;
}

.page-footer a {
  color: inherit;
}

.index-page__actions {
  padding: 8px 0 24px;
}

/* --- Admin (style guide, dark mode) --------------------------------------- */

.admin-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #e1f5ee;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(225, 245, 238, 0.12);
}

.admin-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.admin-header__logo {
  height: 28px;
  width: 28px;
}

.admin-header__session {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 24px 32px;
  margin-top: 48px;
  border-top: 1px solid rgba(225, 245, 238, 0.12);
}

.admin-nav a {
  color: #9fe1cb;
  font-size: 14px;
  text-decoration: none;
}

.admin-nav a:hover { color: #fff; }

.admin-header__email {
  color: #9fe1cb;
  font-size: 14px;
}

.badge {
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
}

.badge--ok    { color: #9fe1cb; border: 1px solid rgba(159, 225, 203, 0.4); }
.badge--stale { color: #ffb4a2; border: 1px solid rgba(255, 180, 162, 0.4); }

.admin-main {
  width: min(960px, 100% - 48px);
  margin: 0 auto;
  padding: 32px 0 64px;
}

.panel {
  background: rgba(225, 245, 238, 0.05);
  border: 1px solid rgba(225, 245, 238, 0.10);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.panel__label {
  margin: 0 0 16px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fe1cb;
}

.panel__count {
  margin-left: 8px;
  color: #5dcaa5;
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.panel__note {
  margin: 16px 0 0;
  color: #9fe1cb;
  font-size: 14px;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.form-row__grow { flex: 2 1 320px; }
.form-row__key  { flex: 1 1 180px; }

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.field-label {
  font-size: 14px;
  color: #9fe1cb;
}

.input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(225, 245, 238, 0.2);
  border-radius: 6px;
  background: rgba(4, 52, 44, 0.6);
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.input::placeholder { color: rgba(159, 225, 203, 0.5); }

.input:focus {
  outline: 2px solid #5dcaa5;
  outline-offset: -1px;
  border-color: transparent;
}

.button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.button--primary {
  background: #0a7d61;
  color: #fff;
}

.button--primary:hover { background: #1d9e75; }

.button--ghost {
  background: transparent;
  border: 1px solid rgba(225, 245, 238, 0.2);
  color: #e1f5ee;
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
}

.button--ghost:hover { border-color: #5dcaa5; color: #fff; }

.button--danger:hover { border-color: #fca5a5; color: #fca5a5; }

.links {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.links th {
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  color: #9fe1cb;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(225, 245, 238, 0.15);
}

.links__sort {
  color: inherit;
  text-decoration: none;
}

.links__sort:hover { color: #fff; }

.links td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(225, 245, 238, 0.08);
  vertical-align: middle;
}

.links__key {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: #5dcaa5;
}

.links__target a {
  color: #e1f5ee;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.links__target a:hover { color: #fff; text-decoration: underline; }

.links__num { text-align: right; }

.links__date { white-space: nowrap; color: #9fe1cb; }

.links__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Flash pinned to the bottom, like the other apps (see deployed). */
.flash-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  pointer-events: none;
}

.flash {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  /* Auto-dismiss: fade out after 3s; visibility:hidden sticks via `forwards`. */
  animation: flash-dismiss 0.5s ease 3s forwards;
}

@keyframes flash-dismiss {
  to { opacity: 0; visibility: hidden; }
}

.flash--notice { background: #085041; color: #e1f5ee; border: 1px solid #5dcaa5; }
.flash--alert  { background: #085041; color: #fca5a5; border: 1px solid #fca5a5; }
