/* Kort — refined editorial dashboard. Warm paper, ink, terracotta. */

:root {
  --paper: #FAF8F5;
  --card: #FFFFFF;
  --ink: #16130F;
  --ink-soft: #3D362C;
  --muted: #6E675E;
  --faint: #A39B8F;
  --line: #E8E2D9;
  --line-soft: #F1ECE4;
  --accent: #E8501F;
  --accent-deep: #C2410C;
  --accent-tint: #FDEDE6;
  --chart: #C2410C;
  --track: #F3EEE7;
  --good: #1A7F4B;
  --danger: #B42318;
  --danger-tint: #FDEBE9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 19, 15, 0.04), 0 8px 24px -12px rgba(22, 19, 15, 0.12);
  --shadow-lift: 0 2px 4px rgba(22, 19, 15, 0.05), 0 16px 40px -16px rgba(22, 19, 15, 0.18);
  --font-ui: 'Schibsted Grotesk', -apple-system, 'Helvetica Neue', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(circle at 50% -20%, #FFFDFA 0%, var(--paper) 60%);
  color: var(--ink);
  font: 15px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-tint); color: var(--accent-deep); }

button { font: inherit; cursor: pointer; }
input, select { font: inherit; }
a { color: inherit; }

/* ---------- Shared bits ---------- */

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  user-select: none;
}
.wordmark .dot { color: var(--accent); }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.mono { font-family: var(--font-mono); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-weight: 500;
  font-size: 0.88rem;
  transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:hover { border-color: var(--faint); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFF8F3;
}
.btn-primary:hover { background: #000; border-color: #000; }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFF8F3;
}
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 6px 18px -6px rgba(232, 80, 31, 0.5); }

.btn-danger { color: var(--danger); border-color: #F0D5D2; background: var(--card); }
.btn-danger:hover { background: var(--danger-tint); border-color: var(--danger); }

.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line); box-shadow: none; }

.btn-icon { padding: 0.45rem 0.55rem; border-radius: 10px; }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.field .hint { font-size: 0.75rem; color: var(--faint); font-weight: 400; }
.field input, .field select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 80, 31, 0.12);
}
.field input::placeholder { color: var(--faint); }

/* ---------- Login ---------- */

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
  padding: 2.5rem 2.25rem 2.25rem;
  text-align: center;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.login-card .wordmark { font-size: 2.6rem; }
.login-card .sub { color: var(--muted); font-size: 0.88rem; margin: 0.35rem 0 1.8rem; }
.login-card form { text-align: left; }
.login-error {
  color: var(--danger);
  background: var(--danger-tint);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.9rem;
  display: none;
}
.login-card.shake { animation: shake 0.35s; }
@keyframes shake {
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

/* ---------- App shell ---------- */

.shell { max-width: 1060px; margin: 0 auto; padding: 0 1.4rem 5rem; }

.topbar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.15rem 0 1.05rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.topbar nav { display: flex; gap: 0.2rem; margin-left: 0.6rem; flex: 1; }
.tab {
  border: none;
  background: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); background: var(--line-soft); }

/* ---------- Stat tiles ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem 1rem;
  box-shadow: var(--shadow);
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.tile:nth-child(2) { animation-delay: 0.05s; }
.tile:nth-child(3) { animation-delay: 0.1s; }
.tile .value {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 0.3rem;
}
.tile .value small { font-size: 1.3rem; color: var(--muted); }

/* ---------- Cards / chart ---------- */

.card-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.card-head h3 { margin: 0; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }

.seg { display: inline-flex; background: var(--line-soft); border-radius: 999px; padding: 3px; }
.seg button {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.seg button.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(22,19,15,0.12); }

.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.chart-tip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: #FFF8F3;
  font-size: 0.75rem;
  line-height: 1.35;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transform: translate(-50%, -110%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 5;
}
.chart-tip strong { font-family: var(--font-mono); font-weight: 500; }
.chart-empty {
  text-align: center;
  color: var(--faint);
  font-size: 0.85rem;
  padding: 2.5rem 0;
}

/* ---------- Links list ---------- */

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.6rem 0 0.8rem;
}
.list-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.search {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  width: 220px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, width 0.2s;
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,80,31,0.1); width: 260px; }

.link-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.2rem;
  margin-bottom: 0.55rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.link-row:hover {
  border-color: var(--faint);
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}
.link-main { flex: 1; min-width: 0; }
.link-slug {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.link-slug .host { color: var(--faint); font-weight: 400; }
.link-dest {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46ch;
  margin-top: 0.15rem;
}
.copy-btn {
  border: none;
  background: none;
  color: var(--faint);
  padding: 0.2rem;
  border-radius: 6px;
  display: inline-flex;
  transition: color 0.15s, background 0.15s;
}
.copy-btn:hover { color: var(--accent); background: var(--accent-tint); }
.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--line-soft);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
  color: var(--ink-soft);
}
.badge.expired { background: var(--danger-tint); color: var(--danger); }
.link-date { color: var(--faint); font-size: 0.76rem; white-space: nowrap; width: 5.2rem; text-align: right; }
.chev { color: var(--faint); flex: none; }

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  animation: rise 0.45s both;
}
.empty-state .big { font-family: var(--font-serif); font-size: 2rem; color: var(--ink); margin-bottom: 0.4rem; }

/* ---------- Link detail ---------- */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.5rem 0.3rem 0;
  margin-bottom: 0.7rem;
}
.back-btn:hover { color: var(--ink); }

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.detail-head h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.detail-head h2 .host { color: var(--faint); }
.detail-head .dest { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; word-break: break-all; }
.detail-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.hero-clicks { display: flex; align-items: baseline; gap: 0.8rem; margin: 0.2rem 0 0.4rem; }
.hero-clicks .num {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-clicks .lbl { color: var(--muted); font-size: 0.85rem; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.32rem 0; font-size: 0.85rem; }
.mini-list .lab { width: 7.5rem; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list .track { flex: 1; height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.mini-list .fill { height: 100%; background: var(--chart); border-radius: 4px; transition: width 0.5s cubic-bezier(0.2,0.7,0.2,1); }
.mini-list .val { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); width: 2.8rem; text-align: right; flex: none; }

.qr-card { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.qr-card img {
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.qr-actions { display: flex; flex-direction: column; gap: 0.5rem; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; }
.meta-grid .m .eyebrow { margin-bottom: 0.2rem; }
.meta-grid .m div:last-child { font-size: 0.88rem; }

/* ---------- API tab ---------- */

.key-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.88rem;
}
.key-row:last-child { border-bottom: none; }
.key-row .name { font-weight: 600; flex: 1; }
.key-row .prefix { font-family: var(--font-mono); color: var(--muted); font-size: 0.8rem; }
.key-row .when { color: var(--faint); font-size: 0.76rem; white-space: nowrap; }

.key-reveal {
  background: var(--ink);
  color: #FFF3EC;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-all;
  margin: 0.8rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.key-reveal button { flex: none; }

pre.code {
  background: #1C1813;
  color: #F4EDE3;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0.6rem 0 1.2rem;
}
pre.code .c { color: #8C8578; }
pre.code .s { color: #F1A583; }

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 19, 15, 0.35);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 1.2rem;
  z-index: 50;
  animation: fade 0.18s both;
}
.modal {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  width: 100%;
  max-width: 440px;
  padding: 1.6rem 1.7rem 1.5rem;
  animation: pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 { margin: 0 0 1.1rem; font-size: 1.15rem; letter-spacing: -0.01em; }
.modal .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.2rem; }
.modal .error { color: var(--danger); font-size: 0.82rem; margin-top: 0.5rem; display: none; }

.slug-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.slug-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,80,31,0.12); }
.slug-input .pre {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--faint);
  background: var(--line-soft);
  padding: 0.6rem 0.6rem 0.6rem 0.8rem;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.slug-input input { border: none !important; box-shadow: none !important; flex: 1; min-width: 0; }

/* ---------- Page editor ---------- */

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.2rem;
  align-items: start;
}
.preview-col { position: sticky; top: 1rem; }
.preview-frame {
  width: 300px;
  height: 620px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #0e0b0c;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  display: block;
}
.preview-col .eyebrow { text-align: center; margin-bottom: 0.5rem; }

.editor-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.editor-bar h2 { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; flex: 1; }

.chip-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--faint); }
.chip.active { border-color: var(--ink); color: var(--ink); }
.chip .dots { display: inline-flex; }
.chip .dots i {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--card);
  margin-right: -5px;
}

.color-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.color-row .field { margin-bottom: 0; }
.color-row input[type="color"] {
  width: 100%; height: 38px; padding: 2px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); cursor: pointer;
}

.btn-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.imgbtn {
  width: 38px; height: 38px;
  border: 1.5px dashed var(--line);
  border-radius: 9px;
  background: var(--card);
  display: grid; place-items: center;
  font-size: 1rem;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.15s;
}
.imgbtn:hover { border-color: var(--accent); }
.imgbtn img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }

/* Fields only relevant to the pro-card layout */
.layout-fullbleed .procard-only,
.layout-links .procard-only { display: none !important; }
/* Fields hidden only for the full-screen layout */
.layout-fullbleed .no-fullbleed { display: none !important; }
.btn-editor-row input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  min-width: 0;
  outline: none;
}
.btn-editor-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,80,31,0.12); }
.btn-editor-row .ops { display: flex; gap: 0.2rem; }
.btn-editor-row .ops button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
}
.btn-editor-row .ops button:hover { color: var(--ink); border-color: var(--faint); }

.photo-box { display: flex; align-items: center; gap: 1rem; }
.photo-box img {
  width: 72px; height: 96px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--line-soft);
}
.photo-box .none {
  width: 72px; height: 96px; border-radius: 10px;
  border: 1.5px dashed var(--line);
  display: grid; place-items: center;
  color: var(--faint); font-size: 0.7rem; text-align: center;
}

.toggle-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.87rem; margin-bottom: 0.5rem; }
.toggle-row input { accent-color: var(--accent); width: 16px; height: 16px; }

.home-note { font-size: 0.78rem; color: var(--faint); margin-top: 0.2rem; }

@media (max-width: 900px) {
  .editor-grid { grid-template-columns: 1fr; }
  .preview-col { position: static; display: flex; justify-content: center; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translate(-50%, 20px) scale(0.95);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: #FFF8F3;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast .t-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700;
  flex: none;
}
.toast.ok .t-icon { background: var(--good); color: #fff; animation: iconpop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.6) both; }
.toast.err { background: var(--danger); }
.toast.err .t-icon { background: rgba(255,255,255,0.25); color: #fff; animation: iconpop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.6) both; }
@keyframes iconpop { from { transform: scale(0); } to { transform: scale(1); } }

/* Button busy/success states */
.btn.busy { pointer-events: none; opacity: 0.75; }
.btn.busy::before {
  content: "";
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.done { pointer-events: none; background: var(--good) !important; border-color: var(--good) !important; color: #fff !important; }

/* Freshly created row highlight */
.link-row.flash { animation: rise 0.4s both, flashrow 1.8s ease-out 0.15s both; }
@keyframes flashrow {
  0% { background: var(--accent-tint); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 80, 31, 0.15); }
  100% { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
}

/* Invalid field highlight */
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12) !important; }

/* ---------- Animations ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .stats-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .link-date { display: none; }
  .link-dest { max-width: 30ch; }
  .topbar { flex-wrap: wrap; gap: 0.6rem; }
}
