/* ufos.dev — liquid glass. One small stylesheet, no frameworks. Font: Inter (loaded in the page head; change it in Admin → Site editor). */

:root {
  --bg: #04050a;
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, .64);
  --text-3: rgba(235, 235, 245, .38);
  --accent: #5ef0c0;
  --accent-2: #3fc9ff;
  --accent-ink: #00140d;
  --accent-soft: rgba(94, 240, 192, .14);
  --danger: #ff6961;
  --warn: #ffd60a;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* glass */
  --glass: rgba(22, 24, 32, .42);
  --glass-strong: rgba(28, 30, 40, .55);
  --glass-edge-1: rgba(255, 255, 255, .42);
  --glass-edge-2: rgba(255, 255, 255, .06);
  --glass-hi: rgba(255, 255, 255, .26);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .25);
  --lens: rgba(255, 255, 255, .14);
  --panel: rgba(255, 255, 255, .055);
  --panel-line: rgba(255, 255, 255, .1);
  --field: rgba(255, 255, 255, .07);
  --tile: #0c0e16;
  --blur: blur(22px) saturate(190%);
  --edge: linear-gradient(135deg, var(--glass-edge-1), var(--glass-edge-2) 38%, var(--glass-edge-2) 62%, var(--glass-edge-1));

  --radius: 18px;
  --radius-lg: 26px;
  --gap: 2px;
  --topbar-h: 52px;
  --tabbar-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
/* Light mode: opt-in per visitor (the switch in the top bar); dark stays the default */
:root[data-theme="light"] {
    --bg: #eef0f6;
    --text: #1d1d1f;
    --text-2: rgba(60, 60, 67, .72);
    --text-3: rgba(60, 60, 67, .45);
    --accent: #00b386;
    --accent-2: #0a9bff;
    --accent-ink: #fff;
    --accent-soft: rgba(0, 179, 134, .12);
    --glass: rgba(255, 255, 255, .55);
    --glass-strong: rgba(255, 255, 255, .72);
    --glass-edge-1: rgba(255, 255, 255, .95);
    --glass-edge-2: rgba(0, 0, 0, .06);
    --glass-hi: rgba(255, 255, 255, .9);
    --glass-shadow: 0 10px 30px rgba(20, 30, 60, .14), 0 1px 3px rgba(20, 30, 60, .08);
    --lens: rgba(255, 255, 255, .85);
    --panel: rgba(255, 255, 255, .6);
    --panel-line: rgba(0, 0, 0, .07);
    --field: rgba(255, 255, 255, .78);
    --tile: #dfe2ea;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 24px); background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.5 var(--sans);
  font-optical-sizing: auto; font-feature-settings: "cv11", "ss03";   /* Inter: simpler a, rounder quotes */
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Soft ambient light behind everything so the glass has something to bend */
body::before {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 12% 0%, rgba(94, 240, 192, .16), transparent 70%),
    radial-gradient(38% 32% at 92% 8%, rgba(124, 92, 255, .18), transparent 70%),
    radial-gradient(45% 40% at 60% 105%, rgba(63, 201, 255, .12), transparent 70%),
    var(--bg);
}
[data-theme="light"] body::before {
    background:
      radial-gradient(40% 35% at 12% 0%, rgba(0, 200, 150, .14), transparent 70%),
      radial-gradient(38% 32% at 92% 8%, rgba(124, 92, 255, .14), transparent 70%),
      radial-gradient(45% 40% at 60% 105%, rgba(10, 155, 255, .12), transparent 70%),
      var(--bg);
}
main { flex: 1; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--text-2); font-weight: 400; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

/* ---------- Liquid glass material ---------- */
/* Floating chrome (real blur) */
.glass, .flash, .toast {
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box;
  border: 1px solid transparent;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 1px rgba(255, 255, 255, .04), var(--glass-shadow);
}
/* In-page glass controls (no blur, so scrolling stays smooth on phones) */
.pill, .voter, .segmented, .btn.ghost, .btn.danger, .social-btn, .paste-btn {
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .flash, .toast { background: linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box, var(--edge) border-box; }
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px 16px 48px; }
.wrap.narrow { max-width: 720px; }
.page-title { font-size: clamp(30px, 6vw, 42px); font-weight: 800; margin-top: 8px; }
.lead { color: var(--text-2); font-size: 17px; }
.section-label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); font-weight: 650; margin: 28px 0 12px; }

/* ---------- Floating top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 0;
  pointer-events: none;
}
.topbar-glass { max-width: 1500px; margin: 0 auto; border-radius: 999px; pointer-events: auto; }
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 8px 0 16px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.035em; }
.logo:hover { text-decoration: none; }
.logo b { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.logo-mark { flex: none; width: 28px; height: 28px; color: var(--accent); filter: drop-shadow(0 0 8px rgba(94, 240, 192, .45)); }
.bar-title { flex: 1; text-align: center; font-weight: 650; font-size: 15px; opacity: 0; transition: opacity .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title.show { opacity: 1; }
.topnav { display: flex; gap: 2px; padding: 3px; }
.topnav a { color: var(--text-2); padding: 7px 14px; border-radius: 999px; font-weight: 550; font-size: 15px; transition: background .2s, color .2s; }
.topnav a:hover { color: var(--text); background: var(--lens); text-decoration: none; }
.topnav a[aria-current] { color: var(--text); background: var(--lens); box-shadow: inset 0 1px 0 var(--glass-hi); }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--text); }
.icon-btn:hover { background: var(--lens); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.me { display: block; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.me:hover { text-decoration: none; }

/* ---------- Floating tab bar (phones) ---------- */
.tabbar { display: none; }
@media (max-width: 767px) {
  :root { --tabbar-h: 86px; --topbar-h: 48px; }
  .topnav, .topbar-actions .icon-btn { display: none; }
  .topbar-inner { padding: 0 6px 0 14px; }
  .bar-title { font-size: 14px; }
  .tabbar {
    display: flex; position: fixed; z-index: 50;
    left: 12px; right: 12px; bottom: calc(10px + var(--safe-b));
    height: 64px; padding: 6px; border-radius: 34px; gap: 2px;
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    color: var(--text-2); font-size: 10.5px; font-weight: 600; border-radius: 28px; min-width: 0; letter-spacing: -.01em;
    transition: background .25s var(--ease), color .25s, transform .3s var(--spring);
  }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a:active { transform: scale(.92); }
  .tabbar svg { width: 24px; height: 24px; fill: currentColor; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; }
  @media (max-width: 380px) { .tabbar { left: 8px; right: 8px; padding: 5px; } .tabbar a { font-size: 9.5px; } .tabbar svg { width: 22px; height: 22px; } }
  .tabbar a[aria-current] { color: var(--accent); background: var(--lens); box-shadow: inset 0 1px 0 var(--glass-hi), 0 2px 10px rgba(0, 0, 0, .15); }
}

/* ---------- Buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  color: var(--accent-ink); font-weight: 680; font-size: 15px; white-space: nowrap;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 86%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(0, 0, 0, .12), 0 6px 22px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .25s var(--spring), filter .15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn.sm { height: 34px; padding: 0 15px; font-size: 14px; }
.btn.lg { height: 54px; font-size: 17px; }
.btn.wide { width: 100%; }
.btn.ghost, .btn.danger { color: var(--text); }
.btn.danger { color: var(--danger); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-size: 14px; font-weight: 600; }
.link-btn.danger { color: var(--danger); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 15px;
  border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 650;
  transition: transform .3s var(--spring);
}
.pill:active { transform: scale(.94); }
.pill svg { width: 18px; height: 18px; fill: currentColor; }
.pill.fav.on { color: #ff375f; background: linear-gradient(rgba(255, 55, 95, .16), rgba(255, 55, 95, .16)) padding-box, linear-gradient(135deg, rgba(255, 120, 150, .7), rgba(255, 55, 95, .1)) border-box; }
.pill.fav.on svg { animation: pop .4s var(--spring); }
@keyframes pop { 50% { transform: scale(1.4); } }

.segmented {
  display: flex; gap: 2px; padding: 4px; margin: 0 16px 14px; width: max-content; max-width: calc(100% - 32px);
  border-radius: 999px; overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented a {
  flex: none; padding: 7px 15px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .25s var(--ease), color .2s;
}
.segmented a:hover { text-decoration: none; color: var(--text); }
.segmented a[aria-current] { color: var(--text); background: var(--lens); box-shadow: inset 0 1px 0 var(--glass-hi), 0 2px 8px rgba(0, 0, 0, .18); }
.segmented.sm { margin: 0; }
.segmented.sm a { padding: 5px 12px; font-size: 13px; }

/* ---------- Gallery (Photos-style grid) ---------- */
.gallery-page { padding-top: 10px; }
.page-gallery { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 70px); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 16px 14px; gap: 12px; }
.gallery-title { font-size: clamp(30px, 7vw, 40px); font-weight: 800; margin: 0; }
.gallery-count { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }

/* Floating sort + zoom controls, like the Photos app */
.dock {
  position: fixed; z-index: 45; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px);
  display: flex; gap: 8px; align-items: center; max-width: calc(100vw - 24px);
}
.dock .segmented { margin: 0; max-width: 100%; }
@media (max-width: 767px) {
  .dock { bottom: calc(var(--tabbar-h) + var(--safe-b) + 6px); }
  .dock .zoom { display: none; }   /* pinch to zoom on phones */
  .dock .segmented a { padding: 7px 12px; font-size: 13.5px; }
}
.zoom { display: flex; border-radius: 999px; padding: 4px; }
.zoom button { width: 36px; height: 32px; border: 0; background: none; border-radius: 999px; font-size: 20px; line-height: 1; color: var(--text); }
.zoom button:hover { background: var(--lens); }
.gallery-head .zoom { background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box; border: 1px solid transparent; box-shadow: inset 0 1px 0 var(--glass-hi); }

.grid {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
  touch-action: pan-x pan-y;   /* our own pinch-to-zoom changes columns */
}
@media (min-width: 600px)  { .grid { --cols: 4; } }
@media (min-width: 900px)  { .grid { --cols: 6; } }
@media (min-width: 1300px) { .grid { --cols: 8; } }
.browse .grid { margin: 20px -16px 0; }
@media (min-width: 1180px) { .browse .grid { margin: 20px 0 0; border-radius: var(--radius); overflow: hidden; } }

.tile {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--tile);
  content-visibility: auto; contain-intrinsic-size: 160px;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .5s var(--ease); }
.js .tile img:not(.in) { opacity: 0; }
@media (hover: hover) { .tile:hover img { transform: scale(1.05); } }
.tile:active img { transform: scale(.96); }
.tile-card {
  position: absolute; inset: 0; padding: 22% 10px 10px; text-align: center;
  font-size: 12.5px; font-weight: 650; line-height: 1.25; color: var(--text); overflow: hidden;
  background: radial-gradient(120% 90% at 30% 10%, rgba(94, 240, 192, .22), transparent 60%), radial-gradient(100% 80% at 90% 100%, rgba(124, 92, 255, .25), transparent 60%), var(--tile);
}
.grid.dense .tile-card { font-size: 0; }
.tile.is-pick::after {   /* editor's choice: glowing gradient outline */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  border: 3px solid transparent; background: linear-gradient(135deg, #ffd60a, #ff9f0a 45%, #ff375f) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}
.pick-badge {
  position: absolute; left: 6px; top: 6px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; color: #2a1800; background: linear-gradient(135deg, #ffe066, #ff9f0a); box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.grid.dense .pick-badge { width: 16px; height: 16px; font-size: 9px; left: 4px; top: 4px; }
.pill.is-pick { color: #ffb300; }
.tile-badge {
  position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0, 0, 0, .4); display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.tile-badge svg { width: 12px; height: 12px; fill: #fff; margin-left: 1px; }
.grid.dense .tile-badge { display: none; }
.grid-sentinel { height: 90px; display: grid; place-items: center; }
.grid-sentinel.done { display: none; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--lens); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 72px 16px; }
.empty-ufo { font-size: 64px; line-height: 1; margin-bottom: 16px; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(94, 240, 192, .35)); }
@keyframes float { 50% { transform: translateY(-10px); } }
.empty-state p { color: var(--text-2); }

/* ---------- Panels, fields ---------- */
.card, .facts, .debate-card, .signin-prompt {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.card { padding: 20px; margin-bottom: 16px; display: grid; gap: 14px; }
.card h2 { font-size: 18px; margin: 0; }
.card > .hint { margin: -8px 0 0; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 650; color: var(--text-2); }
.field small { color: var(--text-3); font-size: 12.5px; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--field); border: 1px solid var(--panel-line); border-radius: 14px; padding: 11px 14px;
  outline: none; transition: border-color .15s, box-shadow .2s; -webkit-appearance: none; appearance: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { resize: vertical; min-height: 46px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
.req { color: var(--accent); }
.hint { color: var(--text-2); font-size: 14px; margin: -4px 0 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two.tight { gap: 8px; }
@media (max-width: 600px) { .two:not(.tight) { grid-template-columns: 1fr; } }
.form-errors { background: rgba(255, 105, 97, .12); border: 1px solid rgba(255, 105, 97, .25); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; font-size: 14.5px; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.form-errors strong { color: var(--danger); }

/* ---------- Submit form ---------- */
.media-group { display: grid; gap: 8px; }
.media-group + .media-group { border-top: 1px solid var(--panel-line); padding-top: 14px; }
.media-group-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.media-group-head .link-btn { margin-left: auto; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link-row input[type=url] { flex: 1; min-width: 0; width: auto; }
.pick { position: relative; flex: none; width: 50px; height: 50px; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-img {
  position: absolute; inset: 0; border-radius: 15px; background: var(--field) center / cover no-repeat;
  border: 1px solid var(--panel-line); transition: box-shadow .25s var(--ease), transform .3s var(--spring);
}
.pick-star { position: absolute; inset: 0; display: grid; place-items: center; font-size: 19px; color: var(--text-3); transition: all .25s var(--ease); }
.link-row.has-thumb .pick-star {
  inset: auto -5px -5px auto; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; opacity: 0; transform: scale(.4);
  background: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.pick input:checked ~ .pick-img { box-shadow: 0 0 0 2.5px var(--accent), 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.pick input:checked ~ .pick-star { color: var(--accent); }
.link-row.has-thumb .pick input:checked ~ .pick-star { opacity: 1; transform: scale(1); color: var(--accent-ink); }
.pick:active .pick-img { transform: scale(.92); }
.pick input:focus-visible ~ .pick-img { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick.loading .pick-star { font-size: 0; }
.pick.loading .pick-star::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--lens); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.paste-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 999px;
  color: var(--text); font-size: 14px; font-weight: 650; transition: transform .25s var(--spring);
}
.paste-btn:active { transform: scale(.93); }
.paste-btn svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 440px) { .paste-btn { width: 46px; padding: 0; justify-content: center; } .paste-btn span { display: none; } }
.link-problem { flex-basis: 100%; margin: 0 0 0 58px; color: var(--danger); font-size: 13px; }

.kind-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); display: inline-block; flex: none; box-shadow: 0 0 8px var(--k, transparent); }
.k-image { --k: #5ef0c0; } .k-youtube { --k: #ff0033; } .k-reddit { --k: #ff4500; } .k-twitter { --k: #a0a0a0; }
.k-tiktok { --k: #25f4ee; } .k-facebook { --k: #1877f2; } .k-instagram { --k: #e1306c; } .k-rumble { --k: #85c742; } .k-dailymotion { --k: #0066dc; }
.kind-dot[class*="k-"] { background: var(--k); }

/* ---------- Browse ---------- */
.search-form { display: grid; gap: 12px; }
.search-main { display: flex; gap: 8px; }
.searchbox {
  flex: 1; display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 0 16px;
  background: var(--field); border: 1px solid var(--panel-line); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
}
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.searchbox svg { width: 18px; height: 18px; fill: var(--text-3); flex: none; }
.searchbox input { flex: 1; border: 0 !important; background: none !important; box-shadow: none !important; height: 44px; padding: 0 !important; min-width: 0; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 40%), 1fr)); gap: 10px; padding-top: 12px; }
@media (max-width: 600px) { .filter-row { grid-template-columns: 1fr 1fr; } .filter-row .field:last-child { grid-column: span 2; } }
.more-filters summary { cursor: pointer; color: var(--accent); font-weight: 650; font-size: 14px; list-style: none; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary::after { content: " ▾"; }
.more-filters[open] summary::after { content: " ▴"; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; gap: 4px; align-items: center; padding: 7px 13px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); font-size: 14px; }
.chip span { color: var(--text-2); }
.chip b { margin-left: 4px; color: var(--text-2); font-size: 11px; }
.chip:hover { text-decoration: none; filter: brightness(1.15); }
.chip.clear { background: none; border-color: transparent; color: var(--accent); }
.result-count { color: var(--text-2); font-size: 14px; margin: 12px 0 0; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; padding: 6px 12px; border-radius: 999px; color: var(--text); font-size: 13.5px; font-weight: 550;
  background: var(--panel); border: 1px solid var(--panel-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tag:hover { text-decoration: none; background: var(--lens); }

/* ---------- Auth ---------- */
.auth-card { width: 100%; max-width: 420px; margin: 28px auto 48px; padding: 0 16px; }
.auth-card h1 { font-size: 34px; font-weight: 800; margin-bottom: 4px; }
.auth-card > .muted { margin-bottom: 24px; }
.auth-links { text-align: center; margin-top: 20px; color: var(--text-2); font-size: 14.5px; }
.social { display: grid; gap: 8px; margin-top: 20px; }
.social-btn {
  display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 10px; border-radius: 999px; color: var(--text); font-weight: 650; font-size: 15px;
  transition: transform .25s var(--spring);
}
.social-btn:hover { text-decoration: none; background: linear-gradient(var(--lens), var(--lens)) padding-box, var(--edge) border-box; }
.social-btn:active { transform: scale(.97); }
.mark { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: -.03em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.social-btn span:last-child { flex: 1; text-align: center; margin-right: 30px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--panel-line); }

/* ---------- Avatars ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center;
  background: linear-gradient(145deg, hsl(var(--hue, 160) 70% 58%), hsl(calc(var(--hue, 160) + 40) 60% 38%)); color: #fff; font-weight: 700; font-size: 15px; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.avatar.lg { width: 68px; height: 68px; font-size: 28px; }

/* ---------- Entry page ---------- */
.entry { max-width: 1400px; margin: 0 auto; padding: 10px 0 48px; width: 100%; }
.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .entry { padding: 18px 20px 48px; }
  /* The description and everything below it flow straight under the picture/video (no empty gap while the side panel is taller) */
  .entry-layout { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "media info" "more info" "body info"; grid-template-rows: auto auto 1fr; column-gap: 28px; align-items: start; }
  .entry-media { grid-area: media; }
  .entry-more { grid-area: more; }
  .entry-body { grid-area: body; min-width: 0; }
  .entry-info { grid-area: info; }
}
.entry-info { padding: 16px 16px 0; }
@media (min-width: 1000px) { .entry-info { padding: 0; } }
.entry-title { font-size: clamp(26px, 4.5vw, 34px); font-weight: 800; margin-bottom: 6px; }
.entry-sub { color: var(--text-2); font-size: 15px; }
.entry-sub a { color: var(--text-2); }
.entry-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 16px; }
.voter { display: inline-flex; align-items: center; height: 40px; padding: 0 4px; border-radius: 999px; }
.voter .score { min-width: 26px; text-align: center; font-weight: 750; font-size: 15px; font-variant-numeric: tabular-nums; }
.vote { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: transform .3s var(--spring); }
.vote svg { width: 17px; height: 17px; fill: currentColor; }
.vote:hover { background: var(--lens); }
.vote:active { transform: scale(.85); }
.vote.up.on { color: var(--accent); }
.vote.down.on { color: #9d8cff; }

.media { margin: 0; }
.media figcaption { display: flex; justify-content: flex-end; padding: 6px 16px 0; font-size: 13px; }
@media (min-width: 1000px) { .media figcaption { padding-right: 4px; } }
.media-open { color: var(--text-2); }
.media-zoom { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.media-zoom img { width: 100%; max-height: 82vh; object-fit: contain; margin: 0 auto; }
@media (min-width: 700px) { .entry-media .media-zoom, .entry-media .embed.ratio-wide { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); } }
@media (min-width: 700px) and (max-width: 999px) { .entry-media { padding: 0 16px; } }
.embed { position: relative; background: #000; overflow: hidden; }
.embed.ratio-wide { aspect-ratio: 16 / 9; }
.embed.ratio-tall { aspect-ratio: 9 / 16; max-height: 82vh; margin: 0 auto; width: min(100%, calc(82vh * 9 / 16)); background: transparent; border-radius: var(--radius); }
.embed.ratio-post { height: 640px; max-height: 85vh; background: transparent; border-radius: var(--radius); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding: 0 16px; }
@media (min-width: 1000px) { .media-more { padding: 0; } .entry-more > .section-label { margin-left: 0; } }
.entry-more > .section-label { margin-left: 16px; }
.media-more .media-zoom, .media-more .embed { border-radius: var(--radius); overflow: hidden; }
.media-more .media-zoom img { aspect-ratio: 4 / 3; object-fit: cover; max-height: none; }
.media-more .embed.ratio-post { height: 560px; }
.link-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 40px 16px 16px; border-radius: var(--radius); color: var(--text); position: relative;
  background: var(--panel); border: 1px solid var(--panel-line); border-left: 4px solid var(--k, var(--accent));
}
.link-card:hover { text-decoration: none; background: var(--lens); }
.link-kind { font-weight: 700; }
.link-url { color: var(--text-2); font-size: 13px; word-break: break-all; }
.link-go { position: absolute; right: 14px; top: 14px; color: var(--text-3); }
.media-link { padding: 0 16px; }
.media-more .media-link { padding: 0; }

.facts { margin: 0; display: grid; overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 12px 16px; font-size: 15px; }
.facts > div + div { border-top: 1px solid var(--panel-line); }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.entry-info .tags { margin-bottom: 16px; }

.entry-body { max-width: 860px; padding: 8px 16px 0; }
@media (min-width: 1000px) { .entry-body { padding: 0; } .entry-body > :first-child { margin-top: 20px; } }
.prose { margin-top: 28px; font-size: 16.5px; line-height: 1.65; overflow-wrap: anywhere; }
.prose h2, .debate h2, .comments h2 { font-size: 20px; font-weight: 750; }
.sources { font-size: 15px; color: var(--text-2); }
.sources h2 { color: var(--text); }
.debate { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 700px) { .debate:not(.single) { grid-template-columns: 1fr 1fr; } }
.debate-card { padding: 18px; overflow-wrap: anywhere; }
.debate-card p { margin: 0; color: var(--text-2); }
.debate-card.debunk h2::before { content: "🧐 "; }
.debate-card.refute h2::before { content: "🛸 "; }

.banner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; margin: 0 16px 12px; border-radius: var(--radius); font-size: 14.5px; }
.banner.warn { background: rgba(255, 214, 10, .14); border: 1px solid rgba(255, 214, 10, .25); }
.banner.error { background: rgba(255, 105, 97, .14); border: 1px solid rgba(255, 105, 97, .25); }
.inline-form { display: inline-flex; gap: 8px; margin: 0; }

/* ---------- Comments ---------- */
.comments { margin-top: 40px; }
.comments-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.comments-head h2 { margin: 0; }
.comment-form { display: flex; gap: 12px; margin-bottom: 20px; }
.comment-input { flex: 1; display: flex; gap: 8px; align-items: flex-end; border-radius: 24px; padding: 4px; background: var(--field); border: 1px solid var(--panel-line); }
.comment-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.comment-input textarea { background: none !important; border: 0 !important; box-shadow: none !important; padding: 9px 12px; min-height: 40px; max-height: 260px; resize: none; }
.comment-input .btn { flex: none; }
.signin-prompt { padding: 14px 18px; color: var(--text-2); }
.comment-list { display: grid; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--panel-line); }
.comment.fresh { animation: fresh 1.4s ease; border-radius: 12px; }
@keyframes fresh { from { background: var(--accent-soft); } }
.comment-main { flex: 1; min-width: 0; }
.comment header { display: flex; gap: 8px; align-items: baseline; font-size: 14.5px; }
.comment time { color: var(--text-3); font-size: 13px; }
.comment-body { margin: 3px 0 4px; overflow-wrap: anywhere; font-size: 15.5px; }
.comment-actions { display: flex; align-items: center; gap: 2px; margin-left: -6px; }
.comment-actions .vote { width: 28px; height: 28px; }
.comment-actions .vote svg { width: 14px; height: 14px; }
.comment-actions .score { font-size: 13px; font-weight: 650; min-width: 18px; text-align: center; color: var(--text-2); }
.comment-actions .link-btn { margin-left: 12px; font-size: 13px; }
.no-comments { padding: 18px 0; }
#moreComments { margin-top: 12px; }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: #000; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; touch-action: pinch-zoom; }
.lightbox-close {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 18px; z-index: 2;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* ---------- Account / admin ---------- */
.account-head { display: flex; align-items: center; gap: 16px; margin: 12px 0 24px; }
.account-head h1 { margin: 0; font-size: 28px; }
.account-head p { margin: 0; }
.account-head .btn { margin-left: auto; }
.sub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sub-list li { display: flex; align-items: center; gap: 12px; }
.sub-list a { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--text); }
.sub-list img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; flex: none; background: var(--tile); }
.sub-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; flex: none; }
.s-pending { background: rgba(255, 214, 10, .16); color: var(--warn); }
.s-approved { background: var(--accent-soft); color: var(--accent); }
.s-rejected { background: rgba(255, 105, 97, .14); color: var(--danger); }
[data-theme="light"] .s-pending { color: #a07a00; }
.ok-badge, .warn-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.ok-badge { background: var(--accent-soft); color: var(--accent); }
.warn-badge { background: rgba(255, 214, 10, .16); color: var(--warn); }
.account-links { display: flex; gap: 8px; flex-wrap: wrap; margin: -10px 0 18px; }
.profile-head { display: flex; gap: 18px; align-items: center; padding: 14px 16px 18px; flex-wrap: wrap; }
.profile-head h1 { font-size: clamp(26px, 6vw, 34px); font-weight: 800; margin: 0 0 2px; }
.profile-head p { margin: 0 0 6px; }
.profile-head .btn { margin-left: auto; }
.profile-stats { font-size: 15px; color: var(--text-2); } .profile-stats b { color: var(--text); }
.avatar.xl { width: 88px; height: 88px; font-size: 36px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 10px 30px rgba(0, 0, 0, .4); }
.page-profile .segmented { margin-bottom: 14px; }
.user-link { color: inherit; }
.follow-btn.on { color: var(--accent); }
.providers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.providers li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.providers .link-btn, .providers form { margin-left: auto; }

.admin .segmented { margin: 0 0 20px; }
.review { gap: 12px; }
.review-top { display: flex; gap: 14px; }
.review-thumb { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: none; background: var(--tile); }
.review h2 { font-size: 18px; margin-bottom: 4px; }
.review h2 a { color: var(--text); }
.review-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.review-links li { display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.review details summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 650; }
.review details .facts { margin-top: 10px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-actions input { flex: 1 1 200px; padding: 7px 12px; }

/* ---------- Reddit importer ---------- */
.importer textarea#links { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 150px; }
.finder .field small.ok { color: var(--accent); }
.finder .field small.bad { color: var(--danger); }
.cron-help { display: grid; gap: 8px; border-top: 1px solid var(--panel-line); padding-top: 14px; font-size: 14px; }
.cron-help p { margin: 0; }
.copyable { display: block; padding: 10px 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--panel-line); font: 12.5px/1.4 ui-monospace, Menlo, monospace; word-break: break-all; cursor: copy; }
.copyable.copied { border-color: var(--accent); }
.copyable.copied::after { content: "  ✓ copied"; color: var(--accent); }
.import-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.import-row .muted { margin-right: auto; font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.finder summary { cursor: pointer; list-style: none; }
.finder summary::-webkit-details-marker { display: none; }
.finder summary h2 { display: inline; }
.finder summary h2::after { content: " ▾"; color: var(--accent); }
.finder[open] summary h2::after { content: " ▴"; }
.finder[open] summary { margin-bottom: 14px; }
.finder:not([open]) { gap: 0; }
.import-actions { display: flex; gap: 10px; margin: 4px 0 16px; }
.import-actions .btn.ghost { flex: none; }
.bar { height: 10px; border-radius: 999px; background: var(--field); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s var(--ease); box-shadow: 0 0 12px var(--accent); }
.stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--text-2); }
.stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.stats .ok b { color: var(--accent); }
.stats .bad b { color: var(--danger); }
.progress-card > .muted { margin: 0; font-size: 14px; }
.import-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 520px; overflow-y: auto; }
.import-log li { display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 0; }
.import-log a { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; flex: 1; }
.import-log img, .import-log .ph { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: var(--tile); }
.import-log a span, .import-log .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-log .url { flex: 1; color: var(--text-2); }
.import-log small { flex: none; color: var(--text-2); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-log .st-imported small { color: var(--accent); }
.import-log .st-failed small { color: var(--danger); }


/* ---------- Manage + edit ---------- */
.edit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.edit-head .page-title { margin-bottom: 12px; }
.edit-thumb { display: flex; align-items: center; gap: 12px; }
.edit-thumb img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--tile); }
.edit-orig { margin: 0; font-size: 14px; }
.manage .segmented { margin: 0 0 14px; }
.manage-search { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.manage-search .searchbox { flex: 1 1 260px; }
.manage-search select { flex: 0 1 230px; width: auto; border-radius: 999px; }
.manage-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 10px; font-size: 14px; }
.select-all { background: var(--accent-soft); border-radius: 14px; padding: 10px 14px; font-size: 14px; margin: 0 0 10px; }
.manage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.manage-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 6px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-line); }
.manage-list li:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); }
.row-check { display: grid; place-items: center; width: 36px; height: 44px; flex: none; cursor: pointer; }
.row-check input, .manage-head input { width: 20px; height: 20px; accent-color: var(--accent); }
.row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--text); }
.row-main:hover { text-decoration: none; }
.row-main img, .row-main .ph { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--tile); }
.row-text { display: grid; min-width: 0; }
.row-text b, .row-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-text b { font-weight: 650; font-size: 15px; }
.row-text small { font-size: 12.5px; }
.star-mark { color: #ffb300; }
.admin-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-check { font-weight: 600; }
.pager { display: flex; justify-content: center; gap: 10px; margin: 18px 0; }
.bulk-bar {
  position: fixed; z-index: 55; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 8px 8px 8px 18px; border-radius: 30px; width: max-content; max-width: calc(100vw - 20px);
}
.bulk-bar > span { font-weight: 650; font-size: 14px; white-space: nowrap; }
.bulk-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-admin { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 120px); }
@media (max-width: 600px) { .bulk-bar { padding: 10px; border-radius: 24px; } .bulk-actions .btn.sm { padding: 0 11px; font-size: 13px; } }

/* ---------- Quick-fill ---------- */
.qf-left { margin: -4px 0 12px; font-size: 14px; }
.qf-card { grid-template-columns: 160px 1fr; align-items: start; gap: 16px; }
@media (max-width: 560px) { .qf-card { grid-template-columns: 92px 1fr; gap: 12px; padding: 14px; } .qf-text h2 { font-size: 15.5px; } .qf-desc { max-height: 6em; font-size: 13px; } }
.qf-media { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--tile); }
.qf-media img { width: 100%; height: 100%; object-fit: cover; }
.qf-text { min-width: 0; overflow-wrap: anywhere; }
.qf-text h2 { font-size: 18px; margin-bottom: 4px; }
.qf-text p { margin: 0 0 8px; font-size: 14px; }
.qf-desc { color: var(--text-2); white-space: pre-line; max-height: 9.5em; overflow: auto; }
.qf-form { gap: 18px; }
.field.suggested > span em { font-style: normal; font-size: 11px; font-weight: 700; color: #1d1600; background: #ffd60a; padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.field.suggested input:not([type=radio]) { border-color: rgba(255, 214, 10, .6); }
.chips-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-pick label { cursor: pointer; }
.chips-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chips-pick span { display: inline-block; padding: 8px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--panel); border: 1px solid var(--panel-line); transition: transform .2s var(--spring), background .15s; }
.chips-pick span.none { color: var(--text-3); }
.chips-pick label:active span { transform: scale(.94); }
.chips-pick input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.field.suggested .chips-pick input:checked + span { background: #ffd60a; color: #1d1600; }
.chips-pick + input { margin-top: 6px; }
.qf-row { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .qf-row { grid-template-columns: 1fr 1fr; } .qf-row .field:first-child { grid-column: span 2; } }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper input { text-align: center; padding: 11px 4px; }
.stepper button { flex: none; width: 40px; height: 44px; border-radius: 12px; border: 1px solid var(--panel-line); background: var(--panel); font-size: 20px; }
.qf-actions { display: flex; gap: 8px; flex-wrap: wrap; position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); padding: 8px; margin: 0 -8px; border-radius: 30px; z-index: 5; }
.qf-actions .btn:not(.lg) { height: 42px; padding: 0 14px; font-size: 14px; }
@media (max-width: 560px) { .qf-actions .btn.lg { flex-basis: 100%; height: 48px; } .qf-actions .btn:not(.lg) { flex: 1; } }
.qf-actions .btn.lg { flex: 1; }
.page-quickfill { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 40px); }

/* ---------- Duplicates ---------- */
.dupe { gap: 12px; }
.dupe-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.dupe-pair > div { display: grid; gap: 8px; align-content: start; }
.dupe-side { display: grid; gap: 4px; color: var(--text); }
.dupe-side:hover { text-decoration: none; }
.dupe-side img, .dupe-side .tile-card { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--tile); }
.dupe-side b { font-size: 14px; line-height: 1.3; }
.dupe-side small { font-size: 12px; }
.dupe .link-btn { justify-self: center; }

/* ---------- Map ---------- */
.page-map { padding-bottom: 0; }
.map-page { position: fixed; inset: 0; z-index: 1; }
#map { position: absolute; inset: 0; background: var(--bg); }
.map-filters {
  position: absolute; z-index: 500; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 8px 14px; border-radius: 26px; width: max-content; max-width: calc(100vw - 20px); font-size: 13px;
}
.map-filters label:not(.check) { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; }
.map-filters input[type=date], .map-filters select { width: auto; padding: 6px 10px; font-size: 13px; border-radius: 12px; }
.map-filters select { padding-right: 28px; }
.map-filters .check { font-size: 13px; gap: 6px; }
.map-filters .check input { width: 16px; height: 16px; }
.map-count { font-size: 14px; } .map-count span { color: var(--text-2); }
@media (max-width: 600px) { .map-filters label:not(.check) span { display: none; } .map-filters { gap: 6px; padding: 8px 10px; } .map-filters input[type=date] { width: 128px; } }
.map-page .leaflet-container { font: inherit; background: var(--bg); }
.leaflet-control-zoom { margin-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 22px) !important; border: 0 !important; border-radius: 16px !important; overflow: hidden; box-shadow: var(--glass-shadow) !important; }
.leaflet-control-zoom a { background: var(--glass-strong) !important; color: var(--text) !important; border-color: var(--panel-line) !important; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.leaflet-control-attribution { background: rgba(0, 0, 0, .35) !important; color: rgba(255, 255, 255, .7) !important; font-size: 10px !important; border-radius: 8px 0 0 0; margin-bottom: calc(var(--tabbar-h) + var(--safe-b)) !important; }
.leaflet-control-attribution a { color: rgba(255, 255, 255, .85) !important; }
.ufo-pin { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b9ffe6, var(--accent) 55%, #0a8f6a); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 14px var(--accent); display: grid; place-items: center; }
.ufo-pin i { font-style: normal; font-size: 7px; color: #00140d; margin-left: 1px; }
.ufo-pin.pick { background: radial-gradient(circle at 35% 30%, #fff3b0, #ffb300 55%, #ff6a00); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 16px #ffb300; }
.ufo-cluster { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 13px;
  background: radial-gradient(circle at 35% 30%, rgba(94, 240, 192, .75), rgba(20, 120, 100, .7)); border: 2px solid rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 6px rgba(94, 240, 192, .18), 0 4px 18px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.map-page .leaflet-popup-content-wrapper { background: var(--glass-strong); color: var(--text); border-radius: 20px; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--glass-shadow); border: 1px solid var(--panel-line); }
.map-page .leaflet-popup-content { margin: 10px; }
.map-page .leaflet-popup-tip { background: var(--glass-strong); }
.map-page .leaflet-container a.leaflet-popup-close-button { color: var(--text-2); }
.map-pop { display: grid; gap: 4px; color: var(--text) !important; text-decoration: none !important; }
.map-pop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 4px; }
.map-pop b { font-size: 14px; line-height: 1.3; }
.map-pop small { color: var(--text-2); font-size: 12px; }

/* ---------- Sky conditions ---------- */
.sky { gap: 12px; }
.sky-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sky-head h2 { margin: 0; }
.sky-head .muted { font-size: 13px; }
.sky-loading { display: grid; place-items: center; padding: 18px; }
.sky-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sky-cell { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--field); }
.sky-icon { grid-row: span 2; font-size: 20px; }
.sky-label { font-size: 12px; color: var(--text-2); }
.sky-cell b { font-size: 14.5px; font-weight: 650; }
.sky-cell small { color: var(--text-2); font-weight: 500; }
.sky-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sky-notes li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.sky-notes li span { flex: none; }
.sky-launches summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 650; }
.sky-launches ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 13.5px; }
.sky-credit { margin: 0; font-size: 12px; }

/* ---------- Credibility vote ---------- */
.cred { gap: 12px; margin-top: 24px; }
.cred-head { display: flex; justify-content: space-between; align-items: baseline; }
.cred-head h2 { margin: 0; }
.cred-bar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--field); }
.cred-bar span { min-width: 4px; }
.cred-bar .cb-explained { background: #3d8bd9; } .cred-bar .cb-unexplained { background: #12a37a; } .cred-bar .cb-unsure { background: #a368e0; } .cred-bar .cb-empty { background: transparent; }
.cred-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cred-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--panel-line); background: var(--panel); transition: transform .25s var(--spring), border-color .15s; }
.cred-btn:active { transform: scale(.95); }
.cred-btn i { font-style: normal; font-weight: 800; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; }
.cred-btn.cb-explained i { background: #3d8bd9; } .cred-btn.cb-unexplained i { background: #12a37a; } .cred-btn.cb-unsure i { background: #a368e0; }
.cred-btn span { font-size: 13px; font-weight: 650; }
.cred-btn b { font-size: 12px; color: var(--text-2); font-weight: 600; }
.cred-btn.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 4px 16px color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- Nearby & similar ---------- */
.related { margin-top: 28px; }
.related h2 { font-size: 20px; font-weight: 750; }
.related h2 .muted { font-size: 14px; font-weight: 500; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.strip-item { flex: none; width: 140px; display: grid; gap: 3px; align-content: start; color: var(--text); scroll-snap-align: start; }
.strip-item:hover { text-decoration: none; }
.strip-item img, .strip-item .tile-card { position: relative; width: 140px; height: 140px; object-fit: cover; border-radius: 14px; background: var(--tile); }
.strip-title { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strip-item small { font-size: 12px; }

/* ---------- Replies, report dialog ---------- */
.comment-replies { margin-top: 4px; }
.comment-replies:empty { display: none; }
.comment.is-reply { padding: 10px 0 4px; border-top: 0; }
.comment.is-reply .comment-body { font-size: 15px; }
.reply-form { margin: 8px 0 4px; }
.muted-btn { color: var(--text-3) !important; }
.pill.icon-only { width: 40px; padding: 0; justify-content: center; }
.report-dialog { border: 0; border-radius: 26px; padding: 22px; width: min(92vw, 400px); color: var(--text); }
.report-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.report-dialog form { display: grid; gap: 10px; }
.report-dialog h2 { margin: 0; }
.report-dialog p { margin: 0 0 4px; font-size: 14px; }
.report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---------- Bell + notifications ---------- */
.icon-btn.bell { position: relative; }
.badge { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #ff375f; color: #fff; font-size: 10.5px; font-weight: 750; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 767px) { .topbar-actions .icon-btn.bell { display: grid; } }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notif-list a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 18px; color: var(--text); background: var(--panel); border: 1px solid var(--panel-line); }
.notif-list a:hover { text-decoration: none; background: var(--lens); }
.notif-list li.unread a { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); }
.notif-thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--tile); }
.notif-text { display: grid; gap: 2px; min-width: 0; font-size: 14.5px; }
.notif-text small { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Reports ---------- */
.report { gap: 10px; }
.report-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.report-target { display: flex; gap: 12px; align-items: center; color: var(--text); }
.report-target img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.report-target > span { display: grid; gap: 2px; min-width: 0; }
.report-target q { font-size: 15px; overflow-wrap: anywhere; }
.report-notes { margin: 0; font-size: 13.5px; }
.ban-group { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ban-group .check { font-size: 13px; }

/* ---------- Stats ---------- */
:root { --chart-bar: #27a37f; }
:root[data-theme="light"] { --chart-bar: #0a8a69; }
.browse-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.stat-tile { padding: 14px 16px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--panel-line); display: grid; gap: 2px; }
.stat-tile span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.stat-tile b { font-size: clamp(26px, 6vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.chart h2 { font-size: 17px; margin: 0; }
.chart h2 .muted { font-size: 13px; font-weight: 500; }
.chart-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 760px) { .chart-pair { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; height: 190px; padding-top: 20px; border-bottom: 1px solid var(--panel-line); margin-bottom: 22px; }
.col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; color: inherit; }
.col:hover { text-decoration: none; }
.col i { display: block; width: 100%; max-width: 24px; background: var(--chart-bar); border-radius: 4px 4px 0 0; transition: filter .15s; }
.col:hover i, .col:focus-visible i { filter: brightness(1.25); }
.col small { position: absolute; top: calc(100% + 4px); font-size: 11px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.col .cap { order: -1; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--text); white-space: nowrap; margin-bottom: 3px; }
.hbars { display: grid; gap: 6px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr); gap: 10px; align-items: center; color: var(--text); font-size: 13.5px; }
.hbar:hover { text-decoration: none; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hbar-track i { display: block; height: 16px; background: var(--chart-bar); border-radius: 0 4px 4px 0; flex: none; }
.hbar:hover i { filter: brightness(1.2); }
.hbar-track b { font-size: 12.5px; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.table-view summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; }
.table-view table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--panel-line); }
.table-view td:last-child, .table-view th:last-child { text-align: right; }
.hotspots { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.hotspots a { display: grid; color: var(--text); }
.hotspots a:hover { text-decoration: none; }
.hotspots .muted { font-size: 13px; }
.chart-empty { margin: 8px 0; }
.chart-tip { position: fixed; z-index: 80; padding: 7px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; pointer-events: none; white-space: nowrap; }
.stats-foot { font-size: 13px; text-align: center; }

/* ---------- Admin panel ---------- */
.admin-nav { margin: 0 0 16px !important; max-width: 100% !important; }
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff375f; color: #fff; font-size: 11px; }
.tiles-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 600px) { .tiles-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-tile.alert { border-color: rgba(255, 105, 97, .5); background: rgba(255, 105, 97, .1); }
.chart-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .chart-trio { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.live-card h2 { display: flex; align-items: center; gap: 8px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); animation: livepulse 1.8s infinite; flex: none; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.live-list li { display: grid; gap: 2px; }
.live-list a { display: flex; align-items: center; gap: 8px; color: var(--text); flex-wrap: wrap; }
.live-list small { padding-left: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-user { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 650; }
.tag-mini { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--lens); color: var(--text-2); margin-left: 4px; vertical-align: middle; }
.tag-mini.warn { background: rgba(255, 214, 10, .16); color: var(--warn); }
.tag-mini.danger { background: rgba(255, 105, 97, .16); color: var(--danger); }
[data-theme="light"] .tag-mini.warn { color: #8a6500; }
.warn-text { color: var(--warn); }
.system .facts > div { grid-template-columns: 120px 1fr; }

.visitor-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.visitor-filters input:not([type=checkbox]), .visitor-filters select { width: auto; flex: 1 1 140px; padding: 8px 12px; font-size: 14px; }
.visitor-filters select { padding-right: 30px; }
.visitor-filters .check { font-size: 13.5px; }
.visitor-list, .member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.visitor-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-line); }
.visitor-list li.is-banned, .member-list li.is-banned { border-color: rgba(255, 105, 97, .45); background: rgba(255, 105, 97, .06); }
.v-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.v-ip { font: 650 15px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.v-geo { font-size: 14px; }
.v-meta { grid-column: 1; font-size: 12.5px; }
.visitor-list .btn { grid-row: 1 / span 2; grid-column: 2; }
.hit-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--panel-line); }
.hit-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.hit-table th { text-align: left; font-weight: 650; color: var(--text-2); background: var(--panel); position: sticky; top: 0; }
.hit-table th, .hit-table td { padding: 8px 10px; border-bottom: 1px solid var(--panel-line); vertical-align: top; }
.hit-table td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

.ip-title { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(24px, 6vw, 34px); overflow-wrap: anywhere; }
.ban-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: rgba(255, 105, 97, .1); }
.ban-form { gap: 10px; }
.ban-form .check { font-size: 14.5px; align-items: flex-start; }
.hit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; max-height: 420px; overflow-y: auto; }
.hit-list li { overflow-wrap: anywhere; }
.ua { font-size: 11.5px; overflow-wrap: anywhere; }
.sub-list li { flex-wrap: wrap; }

.member-list li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-line); }
.m-main { display: grid; gap: 2px; flex: 1; min-width: 0; font-size: 14.5px; }
.m-main small { font-size: 12.5px; overflow-wrap: anywhere; }
.m-main a { color: var(--text); }
.m-main small a { color: var(--accent); }
.m-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.m-actions .check { font-size: 12.5px; }
.more-menu { position: relative; }
.more-menu summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 999px; color: var(--text-2); }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu[open] > div { position: absolute; right: 0; top: 100%; z-index: 10; display: grid; gap: 10px; padding: 12px 16px; border-radius: 16px; min-width: 160px;
  background: var(--glass-strong); border: 1px solid var(--panel-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
@media (max-width: 600px) { .member-list li { flex-wrap: wrap; } .m-actions { width: 100%; justify-content: flex-start; padding-left: 48px; } }

.card > * { min-width: 0; }
.seo-help, .settings .hint { overflow-wrap: anywhere; }
.ban-add input, .ban-add select { min-width: 0; }
.seo-help { display: grid; gap: 10px; border-top: 1px solid var(--panel-line); padding-top: 14px; font-size: 14px; }
.seo-help p, .seo-help ol { margin: 0; }
.seo-help ol { padding-left: 20px; display: grid; gap: 6px; }
.ban-add { display: flex; gap: 8px; flex-wrap: wrap; }
.ban-add input, .ban-add select { width: auto; flex: 1 1 160px; padding: 8px 12px; }
.ban-list li.expired { opacity: .55; }
.ban-list li > span, .admin .sub-list li > span { white-space: normal; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.landing-head { margin-bottom: 14px; }
.landing-head .lead { margin: 0; }
.privacy h2 { margin-top: 26px; }

/* ---------- Translate ---------- */
.tr-progress { position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.tr-progress.on { opacity: 1; }
.tr-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--accent); border-radius: 0 3px 3px 0; transition: width .35s var(--ease); }
.tr-pill { position: fixed; z-index: 95; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; max-width: calc(100vw - 24px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .35s var(--spring), opacity .25s; }
.tr-pill.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.page-gallery .tr-pill { bottom: calc(var(--tabbar-h) + var(--safe-b) + 80px); }
.tr-pill b { font-variant-numeric: tabular-nums; }
.tr-pill button { border: 0; background: var(--lens); color: var(--text); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 650; }
.tr-pill button[data-original] { background: var(--accent); color: var(--accent-ink); }
.tr-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--lens); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
html.tr-loading main { opacity: .55; transition: opacity .25s; }
html:not(.tr-loading) main { transition: opacity .25s; }
.translate-btn { position: relative; border: 0; background: none; }
.translate-btn .lang-badge { position: absolute; right: -2px; bottom: 1px; padding: 0 4px; border-radius: 6px; font-size: 9px; font-weight: 800; line-height: 13px;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--bg); }
.translate-btn.working svg { animation: spin 1.2s linear infinite; }
@media (max-width: 767px) { .topbar-actions .icon-btn.translate-btn, .topbar-actions .icon-btn.theme-btn { display: grid; } }
.tr-panel { position: fixed; z-index: 90; top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h) + 18px); right: 12px; width: min(300px, calc(100vw - 24px));
  max-height: min(70vh, 520px); display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 24px; animation: drop .3s var(--spring); }
.tr-panel input { padding: 9px 14px; border-radius: 999px; font-size: 15px; }
.tr-list { overflow-y: auto; display: grid; gap: 2px; overscroll-behavior: contain; }
.tr-list p { margin: 6px 10px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; }
.tr-list button { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 12px; border: 0; border-radius: 14px; background: none; color: var(--text); text-align: left; }
.tr-list button:hover, .tr-list button:focus-visible { background: var(--lens); }
.tr-list button.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
.tr-list button b { font-weight: 600; font-size: 15px; }
.tr-list button small { color: var(--text-2); font-size: 12px; }
.tr-note { margin: 0; text-align: center; font-size: 11px; color: var(--text-3); }

/* ---------- Flash + toast ---------- */
.flashes { position: fixed; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 22px); left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(92vw, 520px); pointer-events: none; }
.flash, .toast { color: var(--text); font-weight: 600; background: linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box, var(--edge) border-box; }
.flash { padding: 13px 20px; border-radius: 22px; font-size: 14.5px; animation: drop .5s var(--spring), fade .4s ease 5s forwards; pointer-events: auto; text-align: center; }
.flash.error { color: #ffb4ae; }
.flash.warn { color: #ffe27a; }
[data-theme="light"] .flash.error { color: #b3261e; } [data-theme="light"] .flash.warn { color: #7a5c00; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes fade { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); transform: translateX(-50%); z-index: 70; padding: 12px 20px; border-radius: 999px; font-size: 14px; animation: drop .4s var(--spring); white-space: nowrap; }
.page-gallery .toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 80px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .tile img:not(.in) { opacity: 1; }
}

/* "More" sheet from the phone tab bar */
.more-sheet { position: fixed; inset: auto 14px calc(var(--tabbar-h) + var(--safe-b) + 2px) auto; margin: 0; border: 0; padding: 6px; border-radius: 22px; color: var(--text);
  width: min(64vw, 230px); height: fit-content; max-height: min(60vh, 320px); overflow-y: auto; }
.more-sheet::backdrop { background: rgba(0, 0, 0, .35); }
.more-sheet[open] { display: grid; animation: drop .3s var(--spring); }
.more-sheet[open] { gap: 0; grid-auto-rows: min-content; align-content: start; }
.more-sheet a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 40px; border-radius: 14px; color: var(--text); font-weight: 600; font-size: 15px; line-height: 1.2; }
.more-sheet a:hover { background: var(--lens); text-decoration: none; }
.more-sheet svg { width: 19px; height: 19px; fill: var(--text-2); flex: none; }

/* ---------- Video backups page ---------- */
.backups .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 14px; }
.backups .stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
.backups .stat b { font-size: 24px; font-weight: 800; }
.backups .stat span { font-size: 13px; color: var(--text-2); }
.backups .banner { margin: 0 0 12px; }
.backups .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.backups .table { width: 100%; border-collapse: collapse; font-size: 14px; }
.backups .table th, .backups .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--panel-line); vertical-align: top; }
.backups .s-done { background: rgba(48, 209, 88, .15); color: #30d158; }
.backups .s-pending { background: var(--lens); color: var(--text-2); }
.backups .s-gone, .backups .s-failed { background: rgba(255, 105, 97, .14); color: var(--danger); }
.backups .s-none { background: var(--lens); color: var(--text-3); }
.backups .help { margin-top: 14px; font-size: 14px; }
.backups .help summary { cursor: pointer; font-weight: 650; color: var(--accent); }
.backups code { font-size: 12.5px; overflow-wrap: anywhere; }
.backups .steps { padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }

/* ---------- Custom logo, announcement bar, footer, custom pages ---------- */
.logo-img { display: block; flex: none; max-height: 34px; width: auto; object-fit: contain; }
.announce { position: relative; z-index: 40; margin: 8px auto 0; width: min(1500px, calc(100% - 20px)); display: flex; align-items: center; gap: 10px; padding: 9px 44px 9px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--ann, var(--accent)) 16%, var(--bg)); border: 1px solid color-mix(in srgb, var(--ann, var(--accent)) 40%, transparent); font-size: 14.5px; }
.announce-inner { flex: 1; text-align: center; }
.announce a { color: var(--ann, var(--accent)); font-weight: 650; }
.announce-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: var(--text-2); cursor: pointer; }
.announce-x:hover { background: var(--lens); }
.home-intro { width: min(1500px, calc(100% - 20px)); margin: 10px auto 6px; padding: 14px 18px; border-radius: var(--radius); font-size: 15.5px; color: var(--text); text-align: center; }
.submit-guidelines { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-line); font-size: 14.5px; color: var(--text-2); }
.site-footer { margin-top: 40px; padding: 34px 16px calc(24px + var(--tabbar-h) + var(--safe-b)); border-top: 1px solid var(--panel-line); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.sf-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.sf-brand .logo { display: inline-flex; margin-bottom: 8px; }
.sf-brand p { margin: 0 0 12px; color: var(--text-2); font-size: 14.5px; max-width: 360px; }
.sf-socials { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-social { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--text) !important; font-size: 13px; font-weight: 600; }
.sf-social:hover { border-color: var(--accent); text-decoration: none; }
.sf-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 6px 0 10px; }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.sf-col a { color: var(--text-2); font-size: 14.5px; }
.sf-col a:hover { color: var(--text); }
.sf-bottom { max-width: 1180px; margin: 26px auto 0; padding-top: 16px; border-top: 1px solid var(--panel-line); color: var(--text-3); font-size: 13px; text-align: center; }
.custom-page .custom-body { font-size: 17px; line-height: 1.7; }
.custom-page .custom-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.forum-welcome { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 15px; }

/* ---------- Setup & Site editor ---------- */
.setup-page .card, .editor-page .card { scroll-margin-top: calc(var(--topbar-h) + 70px); }
.setup-progress .sp-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.setup-progress .sp-head span { font-weight: 800; color: var(--accent); }
.sp-bar { height: 8px; border-radius: 99px; background: var(--lens); overflow: hidden; margin: 8px 0 14px; }
.sp-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sp-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; color: var(--text); }
.sp-list a:hover { background: var(--lens); text-decoration: none; }
.sp-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--lens); color: var(--text-2); }
.sp-list .done .sp-dot { background: rgba(48, 209, 88, .18); color: #30d158; }
.sp-list .todo .sp-dot { background: rgba(255, 159, 10, .18); color: #ff9f0a; }
.sp-t { flex: 1; min-width: 0; display: grid; }
.sp-t small { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-badge { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--lens); color: var(--text-2); }
.sp-badge.done { background: rgba(48, 209, 88, .15); color: #30d158; }
.sp-badge.todo { background: rgba(255, 159, 10, .15); color: #ff9f0a; }
.setup-step h2 small { font-weight: 500; font-size: 14px; }
.setup-page .steps, .editor-page .steps { padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }
.setup-page code, .editor-page code { font-size: 12.5px; overflow-wrap: anywhere; }
.copyable { cursor: pointer; padding: 2px 6px; border-radius: 6px; background: var(--lens); }
.copyable.copied { outline: 2px solid var(--accent); }
.setup-page .inline-form, .editor-page .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.setup-page .banner, .editor-page .banner { margin: 0 0 10px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.checks .bad { color: var(--danger); }
.provider { border: 1px solid var(--panel-line); border-radius: 14px; padding: 0 14px; margin-bottom: 8px; background: var(--panel); }
.provider summary { display: flex; align-items: center; gap: 10px; padding: 11px 0; cursor: pointer; list-style: none; }
.provider summary::-webkit-details-marker { display: none; }
.provider summary b { flex: 1; }
.provider[open] { padding-bottom: 12px; }
.pv-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; }
.callback { font-size: 13.5px; }
.editor-page { max-width: 980px; }
.editor-tabs { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 14px); z-index: 20; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; }
.editor-tabs a { white-space: nowrap; }
.editor-page h3 { margin: 18px 0 8px; font-size: 16px; }
.brand-preview { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line); margin-bottom: 12px; }
.brand-preview .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; }
.font-preview { padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line); margin: 0 0 12px; }
.font-preview b { font-size: 22px; }
.font-preview p { margin: 4px 0 0; color: var(--text-2); }
.color-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 12px; font-size: 14px; color: var(--text-2); }
.color-row label { display: flex; align-items: center; gap: 8px; }
.color-row input[type=color] { width: 44px; height: 32px; border: 1px solid var(--panel-line); border-radius: 8px; background: none; padding: 2px; cursor: pointer; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; } }
.nav-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.nav-table th, .nav-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--panel-line); vertical-align: middle; }
.nav-table input:not([type=checkbox]) { width: 100%; padding: 6px 8px; }
.nav-table input.tiny { width: 56px; }
.nav-table .check.danger { color: var(--danger); font-size: 13px; }
.text-group { border: 1px solid var(--panel-line); border-radius: 14px; padding: 4px 14px 10px; margin: 0 0 12px; }
.text-group legend { padding: 0 6px; font-weight: 700; font-size: 14px; color: var(--text-2); }
.changed { color: var(--accent); font-weight: 700; }
.page-editor { min-height: 280px; background: var(--field); border-radius: 0 0 12px 12px; margin-bottom: 12px; font-size: 16px; }
.page-editor:not(.ql-container) { display: none; }
.editor-page .ql-toolbar { background: var(--panel); border-radius: 12px 12px 0 0; border-color: var(--panel-line) !important; }
.editor-page .ql-container { border-color: var(--panel-line) !important; color: var(--text); }
.editor-page .ql-snow .ql-stroke { stroke: var(--text-2); } .editor-page .ql-snow .ql-fill { fill: var(--text-2); } .editor-page .ql-snow .ql-picker { color: var(--text-2); }
textarea.code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 600px) { .nav-table th:nth-child(3), .nav-table td:nth-child(3) { display: none; } }
.logo span { white-space: nowrap; }

/* ---------- AI summary on sighting pages ---------- */
.ai-summary { margin: 14px 0 0; padding: 14px 16px; border-radius: var(--radius); }
.ai-summary h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ai-summary h2 svg { width: 16px; height: 16px; fill: currentColor; }
.ai-summary p { margin: 0 0 6px; font-size: 15.5px; line-height: 1.55; }
.ai-summary small { font-size: 12px; }
.ai-admin { margin-top: 8px; font-size: 14px; }
.ai-admin summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.ai-admin textarea { width: 100%; margin-top: 8px; }
.ai-admin .inline-form { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.ai-make { margin-top: 12px; }

/* ---------- Admin → AI ---------- */
.ai-page { max-width: 1040px; }
.ai-page .card { scroll-margin-top: calc(var(--topbar-h) + 30px); }
.mem-bar { height: 8px; border-radius: 99px; background: var(--lens); overflow: hidden; }
.mem-bar.thin { height: 5px; }
.mem-bar i { display: block; height: 100%; border-radius: 99px; transition: width .4s var(--ease); }
.mem-bar i.good { background: linear-gradient(90deg, #30d158, var(--accent)); }
.mem-bar i.ok { background: linear-gradient(90deg, #ffd60a, #ff9f0a); }
.mem-bar i.bad { background: linear-gradient(90deg, #ff9f0a, var(--danger)); }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 10px; }
.usage-card { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
.uc-head { display: grid; gap: 1px; }
.uc-head small { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter { display: grid; gap: 5px; }
.meter-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); }
.meter-top b { color: var(--text); }
.uc-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-3); }
.uc-pause { margin: 0; font-size: 12.5px; color: #ff9f0a; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.spark i { flex: 1; min-height: 3px; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.spark i:last-child { background: var(--accent); }
.ai-page .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 12px; }
.ai-page .stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
.ai-page .stat b { font-size: 24px; font-weight: 800; }
.ai-page .stat span { font-size: 13px; color: var(--text-2); }
.ai-page .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.ai-page .provider summary { gap: 10px; }
.ai-page .provider summary small { margin-left: auto; }
.type-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px 14px; margin: 4px 0 8px; }
.ai-page .banner { margin: 0 0 10px; }
/* AI summary inside a map pop-up */
.map-ai { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(127, 127, 127, .25); font-size: 12.5px; line-height: 1.45; color: inherit; font-weight: 400; }
.map-ai em { display: block; font-style: normal; font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
/* AI summary in forum topics and articles */
.topic-title-wrap .ai-summary, .art-head + .ai-summary { margin: 14px 0 6px; max-width: 760px; }

/* Light / dark switch in the top bar */
.theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: block; }
[data-theme="light"] .theme-btn .i-moon { display: none; }
.theme-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-choice label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--panel-line); cursor: pointer; }
.theme-choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* Admin → AI: bulk runs, picking items, label review */
.ai-page .seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--field); border: 1px solid var(--panel-line); margin-bottom: 4px; }
.ai-page .seg input { position: absolute; opacity: 0; pointer-events: none; }
.ai-page .seg span { display: block; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-2); }
.ai-page .seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.ai-page .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.run-box { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
.run-log { list-style: none; margin: 10px 0 0; padding: 0; max-height: 260px; overflow: auto; font-size: 13px; }
.run-log li { padding: 5px 0; border-top: 1px solid var(--panel-line); color: var(--text-2); overflow-wrap: anywhere; }
.run-log li b { color: var(--text-3); font-weight: 600; margin-right: 4px; }
.run-log li span { float: right; margin-left: 8px; }
.run-log li.ok span { color: var(--accent); }
.run-log li.bad span { color: var(--danger); float: none; display: block; }
.pick-bar { display: flex; gap: 8px; margin: 10px 0; }
.pick-bar select, .pick-bar input { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--panel-line); background: var(--field); color: var(--text); font: inherit; }
.pick-bar select { width: auto; flex: 0 0 auto; }
.ai-page .pick-bar input[type=search] { flex: 1; min-width: 0; width: auto; }
.pick-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.pick-actions .check { margin: 0 6px 0 0; }
.pick-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; border-radius: 14px; border: 1px solid var(--panel-line); }
.pick-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--panel-line); }
.pick-list li:first-child { border-top: 0; }
.pick-list .check { flex: 1; min-width: 0; margin: 0; }
.pick-list .check span { overflow-wrap: anywhere; }
.pick-list .chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.chip { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--field); color: var(--text-3); white-space: nowrap; }
.chip.ok { background: var(--accent-soft); color: var(--accent); }
.chip.warn { background: rgba(255, 214, 10, .16); color: var(--warn); }
[data-theme="light"] .chip.warn { color: #8a6500; }
.review-list { display: grid; gap: 10px; margin-top: 10px; }
.review-item { padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
.ri-head { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; font-weight: 600; }
.ri-diff { display: grid; gap: 2px; margin: 8px 0; font-size: 14px; }
.ri-diff > div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.ri-diff dt { color: var(--text-3); }
.ri-diff dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .pick-list li { flex-wrap: wrap; }
  .pick-list .chips { justify-content: flex-start; padding-left: 28px; }
  .pick-bar { flex-direction: column; }
  .ai-page .pick-bar select, .ai-page .pick-bar input[type=search] { width: 100%; }
}

/* Search in plain words */
.search-page .smart-search .searchbox input { font-size: 17px; }
.search-examples { margin: 18px 0 10px; }
.search-examples .tag { border: 0; cursor: pointer; font: inherit; }
.search-examples .tag.on { background: var(--accent); color: var(--accent-ink); }
.chips.understood { align-items: center; margin-top: 12px; }
.chips.understood .chip span { color: var(--text-3); }
.smart-link { margin: 8px 2px 0; font-size: 14px; }
.landing-head .ai-summary, .landing-head .ai-make { max-width: 760px; }
.landing-head .ai-roundup p { font-size: 15px; }
/* Duplicates: same-event groups */
.dupe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.dupe-pick { display: grid; gap: 8px; align-content: start; padding: 8px; border-radius: 14px; border: 1px solid var(--panel-line); }
.dupe-pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.dupe-pick .check { margin: 0; }
.ai-page .field.narrow { max-width: 420px; }
.roundup-list { margin: 12px 0 0; padding-left: 18px; columns: 2; column-gap: 28px; font-size: 14px; }
.roundup-list li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 600px) { .roundup-list { columns: 1; } }

/* Connection status icons (Admin) */
.conn-wrap { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; vertical-align: middle; }
.conn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--field); color: var(--text-2); white-space: nowrap; }
.conn i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex: none; }
.conn small { color: var(--text-3); font-size: 12px; }
.conn-ok { background: rgba(48, 209, 88, .13); color: #30d158; } .conn-ok i { background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, .22); }
.conn-bad { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); } .conn-bad i { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }
.conn-warn { background: rgba(255, 214, 10, .14); color: var(--warn); } .conn-warn i { background: var(--warn); }
.conn-testing i { background: var(--accent); animation: connPulse 1s ease-in-out infinite; }
@keyframes connPulse { 50% { opacity: .25; transform: scale(.7); } }
[data-theme="light"] .conn-ok { color: #1a8f3c; } [data-theme="light"] .conn-ok i { background: #1a9e47; }
[data-theme="light"] .conn-warn { color: #8a6500; } [data-theme="light"] .conn-warn i { background: #c79a00; }
.conn-test { font-size: 13px; }
.conn-msg { flex-basis: 100%; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.conn-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 0; border-radius: 14px; border: 1px solid var(--panel-line); }
.conn-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-top: 1px solid var(--panel-line); }
.conn-list li:first-child { border-top: 0; }
.conn-list li > .conn-wrap { justify-content: flex-end; }
.conn-sum.ok { color: #30d158; } .conn-sum.bad { color: var(--danger); } .conn-sum.warn { color: var(--warn); }
.setup-step h2 .conn-wrap, .ai-page h2 .conn-wrap { margin-left: 6px; }
.provider summary .conn-wrap { margin-left: auto; }
/* Views & likes editor */
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 12px; }
.stats-table th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 600; padding: 4px 6px; }
.stats-table td { padding: 6px; border-top: 1px solid var(--panel-line); vertical-align: middle; }
.stats-table input { width: 100%; min-width: 80px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--panel-line); background: var(--field); color: var(--text); font: inherit; }
@media (max-width: 600px) { .stats-table th:nth-child(4), .stats-table td:nth-child(4) { display: none; } }
/* Reputation */
.rep-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 214, 10, .14); color: var(--warn); white-space: nowrap; vertical-align: middle; }
[data-theme="light"] .rep-badge { color: #8a6500; }
.leaderboard { width: 100%; border-collapse: collapse; }
.leaderboard th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 600; padding: 6px 8px; }
.leaderboard th.num, .leaderboard td.num { text-align: right; }
.leaderboard td { padding: 10px 8px; border-top: 1px solid var(--panel-line); }
.leaderboard .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.leaderboard .rank { width: 36px; color: var(--text-3); font-weight: 700; }
.leaderboard tr.top3 .rank { color: var(--warn); }
.leaderboard .pts { font-weight: 800; font-size: 16px; }
@media (max-width: 640px) { .leaderboard .hide-sm { display: none; } }
.period-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.period-tabs a { padding: 6px 14px; border-radius: 999px; background: var(--field); color: var(--text-2); font-weight: 600; font-size: 14px; }
.period-tabs a[aria-current] { background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.rep-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.rep-rules div { padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
.rep-rules b { display: block; font-size: 22px; font-weight: 800; }
.rep-rules span { font-size: 13px; color: var(--text-2); }
.top-contrib { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.top-contrib a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* Daily jobs & Views check (Admin) */
.cron-status { border-left: 4px solid var(--text-3); }
.cron-status.ok { border-left-color: #30d158; } .cron-status.ok h2 { color: #30d158; }
.cron-status.late { border-left-color: var(--warn); } .cron-status.never { border-left-color: var(--danger); }
.how-to details > summary { cursor: pointer; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.big-steps { padding-left: 22px; display: grid; gap: 12px; font-size: 15px; line-height: 1.55; }
.big-steps li::marker { font-weight: 800; color: var(--accent); }
.copy-row { margin: 8px 0 2px; }
.copy-row code, .plain-list code.copyable { display: block; overflow-x: auto; white-space: nowrap; padding: 10px 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--panel-line); font-size: 13px; }
.plain-list { padding-left: 20px; display: grid; gap: 10px; }
.job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.job { display: grid; align-content: start; gap: 6px; }
.job p { margin: 0; }
.job-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.job-head h3 { margin: 0; font-size: 16px; }
.job[data-on="0"] { opacity: .78; }
.job-last { overflow-wrap: anywhere; }
.ok-text { color: #30d158; } [data-theme="light"] .ok-text { color: #1a8f3c; }
.jobs-callout { border-left: 4px solid var(--accent); } .jobs-callout.ok { border-left-color: #30d158; }
.verify-service { padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); margin-bottom: 10px; display: grid; gap: 6px; }
.verify-service p { margin: 0; }
.vs-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sugg-nums { margin: 6px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sugg-quote { margin: 4px 0 6px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--field); border-radius: 0 10px 10px 0; font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
.num-in { width: 130px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--panel-line); background: var(--field); color: var(--text); font: inherit; }
.verify-page .review-item.sugg .inline-form { margin-top: 4px; }
.recent-decisions { margin-top: 12px; } .recent-decisions summary { cursor: pointer; color: var(--text-2); }
.big-steps > li, .plain-list > li { min-width: 0; overflow-wrap: anywhere; }
.copy-row { max-width: 100%; overflow: hidden; }
.copy-row code.copyable, .plain-list code.copyable { max-width: 100%; }
.verify-page input.num-in { width: 140px; flex: 0 0 auto; }
.verify-page .review-item.sugg form.inline-form { margin: 0; flex-wrap: nowrap; }
.copy-btn { margin: 6px 0 0; }
.copy-row { display: grid; justify-items: start; }
/* Review hub, newsletter, trending */
.review-cards a.stat { color: var(--text); text-decoration: none; }
.review-cards a.stat:hover { border-color: var(--accent); }
.chip.bad { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.settings-box { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line); }
.settings-box > summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.review-item textarea { width: 100%; margin: 6px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--panel-line); background: var(--field); color: var(--text); font: inherit; font-size: 14px; }
.facts-pre, .newsletter-preview { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; background: var(--field); border: 1px solid var(--panel-line); border-radius: 12px; padding: 12px 14px; max-height: 420px; overflow: auto; }
.weekly-preview { margin: 8px 0; } .weekly-preview summary { cursor: pointer; color: var(--accent); }
.weekly-preview .prose img { max-width: 260px; border-radius: 10px; }
.quality-note { margin-top: 4px; font-size: 12.5px; line-height: 1.45; }
.q-stars { color: var(--warn); letter-spacing: 1px; }
.newsletter-opt { font-size: 14px; }
.media-gone .link-card { cursor: default; }
.media-gone .link-url { white-space: normal; }
.media-saved video { width: 100%; max-height: 70vh; border-radius: var(--radius); background: #000; }
.media-saved figcaption { margin-top: 6px; }
.trend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trend-list a { display: grid; grid-template-columns: 34px 96px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); color: var(--text); text-decoration: none; }
.trend-list a:hover { border-color: var(--accent); }
.trend-list img, .trend-list .ph { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--tile); }
.trend-rank { font-size: 20px; font-weight: 800; color: var(--text-3); text-align: center; }
.trend-text { display: grid; gap: 2px; min-width: 0; } .trend-text b { overflow-wrap: anywhere; }
.trend-gain { text-align: right; font-size: 13px; color: var(--text-2); white-space: nowrap; } .trend-gain b { color: #30d158; font-size: 15px; }
@media (max-width: 600px) { .trend-list a { grid-template-columns: 26px 72px 1fr; } .trend-list img, .trend-list .ph { width: 72px; height: 50px; } .trend-gain { grid-column: 3; text-align: left; } }

.update-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
#update textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--panel-line); background: var(--field); color: var(--text); font: inherit; font-size: 14px; }
.upd-log li span { float: none; display: block; color: var(--text-2); }
.upd-log li.ok span { color: var(--text-2); }
/* Admin menu groups, admin search, Admin home */
.admin-nav .an-group { align-self: center; padding: 0 4px 0 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.admin-nav .an-group:first-child { padding-left: 8px; }
.admin-search { position: relative; margin: 0 0 12px; max-width: 760px; }
.admin-search .searchbox { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: var(--field); border: 1px solid var(--panel-line); }
.admin-search .searchbox svg { width: 18px; height: 18px; fill: var(--text-3); flex: none; }
.admin-search input { flex: 1; min-width: 0; border: 0 !important; background: none !important; padding: 10px 0 !important; color: var(--text); font: inherit; outline: none; box-shadow: none !important; }
.admin-search.big { max-width: none; margin-bottom: 18px; } .admin-search.big .searchbox { padding: 4px 18px; } .admin-search.big input { font-size: 17px; }
.admin-search .searchbox:focus-within { border-color: var(--accent); }
.as-results { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); max-height: 70vh; overflow: auto; padding: 6px; border-radius: 18px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--panel-line); box-shadow: var(--glass-shadow); }
[data-theme="light"] .as-results { background: rgba(255, 255, 255, .97); }
.as-results a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.as-results a:hover, .as-results a.on { background: var(--accent-soft); }
.as-results b { font-weight: 650; } .as-results em { font-style: normal; font-weight: 800; color: var(--accent); margin-left: 4px; }
.as-results small { display: block; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-all { width: 100%; margin-top: 4px; padding: 9px; border: 0; border-radius: 12px; background: var(--field); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.as-none { margin: 8px 10px; color: var(--text-2); }
.jump-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -2px 0 16px; font-size: 13px; }
.jump-bar a { padding: 4px 11px; border-radius: 999px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text-2); }
.jump-bar a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.hub-alerts { border-left: 4px solid var(--warn); } .hub-alerts p { margin: 4px 0; }
.needs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.need { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); text-decoration: none; }
.need b { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.1; } .need span { font-weight: 650; } .need small { font-size: 12.5px; }
.need:hover { text-decoration: none; border-color: var(--accent); }
.hub-page a.stat { color: var(--text); text-decoration: none; } .hub-page a.stat:hover { border-color: var(--accent); }
.shortcut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.shortcut { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); color: var(--text); text-decoration: none; }
.shortcut:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.sc-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--field); font-size: 20px; }
.shortcut b { display: block; font-weight: 650; } .shortcut small { display: block; font-size: 12.5px; line-height: 1.35; }
.sr-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.sr-list li { display: flex; align-items: center; gap: 8px; }
.sr-list li > a:first-child { flex: 1; min-width: 0; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line); color: var(--text); text-decoration: none; }
.sr-list li > a:first-child:hover { border-color: var(--accent); }
.sr-icon { font-size: 18px; text-align: center; } .sr-text { min-width: 0; } .sr-text small { display: block; overflow-wrap: anywhere; }
.sr-value { font-style: normal; font-weight: 800; color: var(--accent); margin-left: 6px; } .sr-go { color: var(--text-3); }
@media (max-width: 600px) { .shortcut-grid, .needs-grid { grid-template-columns: 1fr; } }

/* Health lights */
.health-card { border-left: 4px solid #30d158; } .health-card.warn { border-left-color: var(--warn); } .health-card.bad { border-left-color: var(--danger); }
.health-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.health-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel); }
.health-list li > span { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.health-list i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #30d158; }
.health-list .h-warn i { background: var(--warn); } .health-list .h-bad i { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }
.backup-codes { font-size: 16px; letter-spacing: .08em; background: var(--field); padding: 10px 14px; border-radius: 10px; }
.qr-box { margin: 10px 0; padding: 10px; background: #fff; display: inline-block; border-radius: 12px; }
.sec-log tr.ev-admin_login_failed td, .sec-log tr.ev-recovery_used td, .sec-log tr.ev-admin_granted td { color: var(--warn); }
.recover-card { max-width: 520px; }
/* Celebration pop-ups */
.celebrate-box { position: fixed; z-index: 90; left: 50%; top: calc(var(--topbar-h) + 18px); transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; width: min(420px, calc(100vw - 32px)); }
.celebrate { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--panel-line); box-shadow: var(--glass-shadow); animation: celebIn .5s var(--spring); cursor: pointer; }
[data-theme="light"] .celebrate { background: rgba(255, 255, 255, .96); }
.celebrate.out { animation: celebOut .35s ease forwards; }
.celebrate .c-icon { font-size: 30px; line-height: 1; animation: celebPop .7s var(--spring); }
.celebrate .c-text { display: grid; } .celebrate b { font-size: 15px; } .celebrate small { color: var(--text-2); font-size: 13px; }
.celebrate.points .c-icon { font-size: 22px; }
.celebrate.badge, .celebrate.rank { border-color: color-mix(in srgb, var(--warn) 60%, transparent); }
.celebrate.tier-gold, .celebrate.tier-platinum, .celebrate.rank { background: linear-gradient(135deg, color-mix(in srgb, var(--warn) 22%, var(--glass-strong)), var(--glass-strong)); }
.celebrate .spark { position: absolute; left: 34px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); opacity: 0; animation: spark .9s ease-out forwards; transform: rotate(var(--a)) translateX(0); }
.celebrate .spark:nth-child(3n) { background: var(--accent); } .celebrate .spark:nth-child(3n+1) { background: #ff5c8a; }
@keyframes celebIn { from { opacity: 0; transform: translateY(-16px) scale(.9); } }
@keyframes celebOut { to { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes celebPop { 0% { transform: scale(.3) rotate(-20deg); } 70% { transform: scale(1.25) rotate(8deg); } }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)); } }
@media (prefers-reduced-motion: reduce) { .celebrate, .celebrate .c-icon, .celebrate .spark { animation: none !important; } }
/* Ranks, badges, profile */
.rank-badge { display: inline-flex; gap: 4px; align-items: center; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.rank-big { font-size: 28px; line-height: 1; }
.rank-card .rank-row, .my-standing { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .rank-card .rank-row > div, .my-standing > div { flex: 1; min-width: 200px; }
.rank-card .mem-bar, .my-standing .mem-bar, .rank-progress .mem-bar { margin: 6px 0 2px; max-width: 360px; }
.ph-main { flex: 1; min-width: 0; } .ph-rank { margin: 2px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.badge-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bdg { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 19px; background: var(--field); border: 2px solid var(--panel-line); text-decoration: none; }
.bdg.more { font-size: 12px; font-weight: 700; color: var(--text-2); }
.tier-bronze.bdg, .badge-card.tier-bronze { border-color: #c98a4b; } .tier-silver.bdg, .badge-card.tier-silver { border-color: #b8c2cc; }
.tier-gold.bdg, .badge-card.tier-gold { border-color: #f2c94c; } .tier-platinum.bdg, .badge-card.tier-platinum { border-color: #7fe7ff; box-shadow: 0 0 12px rgba(127, 231, 255, .35); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.badge-card { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 10px; border-radius: 18px; background: var(--panel); border: 2px solid var(--panel-line); }
.badge-card .bc-icon { font-size: 34px; } .badge-card small { color: var(--text-2); font-size: 12.5px; } .badge-card em { font-style: normal; font-size: 11.5px; color: var(--text-3); text-transform: capitalize; }
.badge-card.locked { opacity: .5; filter: grayscale(1); }
.profile-tabs { margin-left: auto !important; margin-right: auto !important; }
.profile-body { padding-top: 6px; }
.profile-stats a.stat { color: var(--text); text-decoration: none; }
.activity-list, .post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.activity-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; font-size: 14.5px; } .activity-list a { font-weight: 600; }
.post-list li { padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); } .post-list p { margin: 4px 0; color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 16px 0; }
/* Leaderboard */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; max-width: 640px; margin: 10px auto 18px; }
.podium-spot { display: grid; justify-items: center; gap: 3px; text-align: center; color: var(--text); text-decoration: none; }
.podium-spot .medal { font-size: 30px; } .podium-spot b { font-size: 15px; overflow-wrap: anywhere; } .podium-spot small { color: var(--text-2); font-size: 12px; }
.podium-val { font-weight: 800; font-size: 18px; } .podium-val small { font-weight: 500; }
.podium-block { width: 100%; display: grid; place-items: center; margin-top: 6px; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, var(--accent-soft), transparent); border: 1px solid var(--panel-line); border-bottom: 0; font-size: 26px; font-weight: 800; color: var(--text-3); }
.podium-spot.p1 .podium-block { height: 110px; background: linear-gradient(180deg, rgba(242, 201, 76, .35), transparent); color: #f2c94c; }
.podium-spot.p2 .podium-block { height: 80px; } .podium-spot.p3 .podium-block { height: 60px; }
.podium-spot:hover { text-decoration: none; } .podium-spot:hover b { color: var(--accent); }
.lb-layout { display: grid; grid-template-columns: 1fr 280px; gap: 14px; align-items: start; }
@media (max-width: 860px) { .lb-layout { grid-template-columns: 1fr; } }
.leaderboard tr.is-me td { background: var(--accent-soft); }
.rising ol { padding-left: 20px; display: grid; gap: 8px; } .rising li a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .rising li b { color: #30d158; float: right; }
.rank-ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 14px; } .rank-ladder span { float: right; }
.small-tabs a { font-size: 13px; padding: 4px 12px; }
/* Polls & alerts */
.poll-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin: 8px 0; }
.poll-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--panel-line); background: var(--field); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.poll-opt i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); transition: width .5s var(--ease); }
.poll-opt span, .poll-opt b { position: relative; } .poll-opt b { font-size: 13px; color: var(--text-2); }
.poll-opt.mine { border-color: var(--accent); } .poll-opt.mine b { color: var(--accent); }
.poll-opt:hover { border-color: var(--accent); }
.poll-verdict { margin: 4px 0; }
.alert-cta h2 { font-size: 16px; } .alert-links { display: flex; flex-wrap: wrap; gap: 6px; }
.alert-kinds { flex-wrap: wrap; border-radius: 18px !important; }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .alert-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--panel); }
.alert-list span { display: grid; } .alert-pill { font-size: 14px; }
.alerts-page .seg { display: inline-flex; padding: 3px; border-radius: 18px; background: var(--field); border: 1px solid var(--panel-line); margin-bottom: 6px; }
.alerts-page .seg input { position: absolute; opacity: 0; pointer-events: none; }
.alerts-page .seg span { display: block; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-2); }
.alerts-page .seg input:checked + span { background: var(--accent); color: var(--accent-ink); }

.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 14px; }
.profile-stats .stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
.profile-stats .stat b { font-size: 24px; font-weight: 800; } .profile-stats .stat span { font-size: 13px; color: var(--text-2); }
.profile-stats .stat:hover { border-color: var(--accent); }
/* Top bar: the menu shrinks (then scrolls sideways) before the icons on the right ever get cut off */
.topnav { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { white-space: nowrap; }
.topbar-actions { flex: none; }
@media (max-width: 1240px) { .topnav a { padding: 7px 10px; font-size: 14px; } }
@media (max-width: 1060px) { .topnav a { padding: 6px 8px; font-size: 13.5px; } }

/* Leaderboard: a word in the menu on wide screens, a trophy icon on narrower ones, and in "More" on phones */
.topbar-actions .lb-icon { display: none; }
@media (min-width: 768px) and (max-width: 1180px) { .topnav .lb-link { display: none; } .topbar-actions .icon-btn.lb-icon { display: grid; } }

/* ===== Leaderboard (redesign) ===== */
.tier-0 { --tier: #8b9bb0; } .tier-1 { --tier: #4fc3f7; } .tier-2 { --tier: #22d3ee; } .tier-3 { --tier: #5ef0c0; } .tier-4 { --tier: #a3e635; }
.tier-5 { --tier: #fbbf24; } .tier-6 { --tier: #fb923c; } .tier-7 { --tier: #c084fc; } .tier-8 { --tier: #f472b6; }
.lb-page { max-width: 860px; }
.lb-hero { position: relative; overflow: hidden; text-align: center; padding: 34px 18px 26px; margin: 4px 0 16px; border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 50% 0%, rgba(124, 92, 255, .35), transparent 60%), radial-gradient(80% 90% at 10% 100%, rgba(94, 240, 192, .22), transparent 60%), radial-gradient(70% 90% at 95% 90%, rgba(63, 201, 255, .22), transparent 60%), var(--panel);
  border: 1px solid var(--panel-line); }
.lb-hero h1 { margin: 4px 0 6px; font-size: clamp(30px, 6vw, 46px); font-weight: 900; letter-spacing: -.03em;
  background: linear-gradient(90deg, #fde68a, #fbbf24, #f472b6, #a78bfa, #fde68a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lbShine 7s ease-in-out infinite; }
.lb-hero p { margin: 0 auto; max-width: 560px; color: var(--text-2); }
.lb-trophy { display: inline-block; font-size: 52px; filter: drop-shadow(0 6px 18px rgba(251, 191, 36, .55)); animation: lbFloat 3.2s ease-in-out infinite; }
.lb-stars i { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .2; animation: lbTwinkle 3s ease-in-out infinite; animation-delay: var(--d); }
@keyframes lbShine { 50% { background-position: 100% 0; } }
@keyframes lbFloat { 50% { transform: translateY(-7px) rotate(-4deg); } }
@keyframes lbTwinkle { 50% { opacity: .9; transform: scale(1.6); } }

.lb-me { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--radius-lg);
  background: linear-gradient(110deg, color-mix(in srgb, var(--tier, var(--accent)) 22%, transparent), var(--panel) 70%); border: 1px solid color-mix(in srgb, var(--tier, var(--accent)) 45%, transparent); }
.lb-me.guest { --tier: var(--accent); }
.lb-me-pos { display: grid; text-align: center; min-width: 74px; } .lb-me-pos small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.lb-me-pos b { font-size: 30px; font-weight: 900; color: var(--tier); line-height: 1.1; }
.lb-me-main { flex: 1; min-width: 200px; display: grid; gap: 4px; } .lb-me-main small { color: var(--text-2); }
.lb-me-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .rank-emblem { font-size: 26px; }
.lb-bar { display: block; height: 8px; border-radius: 99px; background: var(--lens); overflow: hidden; }
.lb-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--tier, var(--accent)), color-mix(in srgb, var(--tier, var(--accent)) 55%, #fff)); animation: lbGrow 1.1s var(--ease) both; }
@keyframes lbGrow { from { width: 0; } }

.lb-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 8px; padding: 2px; }
.lb-filters::-webkit-scrollbar { display: none; }
.lb-filters.small { margin-bottom: 16px; }
.lb-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text-2); font-weight: 650; font-size: 14.5px; transition: transform .2s var(--spring), background .2s; }
.lb-filters.small .lb-chip { padding: 6px 13px; font-size: 13.5px; }
.lb-chip:hover { text-decoration: none; color: var(--text); transform: translateY(-1px); }
.lb-chip.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 35%, transparent); }

.lb-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.lb-row { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 6px;
  padding: 12px 16px 12px 10px; border-radius: 20px; background: var(--panel); border: 1px solid var(--panel-line); border-left: 4px solid var(--tier);
  animation: lbIn .55s var(--spring) both; animation-delay: calc(var(--i) * 45ms); transition: transform .2s var(--ease), box-shadow .2s; }
.lb-row:hover { transform: translateY(-2px) scale(1.005); box-shadow: 0 10px 30px color-mix(in srgb, var(--tier) 22%, transparent); }
@keyframes lbIn { from { opacity: 0; transform: translateX(-18px) scale(.98); } }
.lb-pos { grid-row: span 2; display: grid; justify-items: center; font-size: 22px; font-weight: 900; color: var(--text-2); line-height: 1; }
.lb-pos small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.lb-who { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.lb-who:hover { text-decoration: none; } .lb-who:hover b { color: var(--accent); }
.lb-avatar { position: relative; flex: none; } .lb-avatar .avatar { width: 46px; height: 46px; box-shadow: 0 0 0 2px var(--tier); }
.lb-name { min-width: 0; display: grid; } .lb-name b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { color: var(--text-2); font-size: 12.5px; } .lb-rank { color: var(--tier); font-weight: 700; }
.lb-you { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); vertical-align: middle; }
.lb-score { text-align: right; display: grid; } .lb-score b { font-size: 20px; font-weight: 900; } .lb-score small { font-size: 11.5px; color: var(--text-3); }
.lb-row .row-bar { grid-column: 2 / 4; height: 5px; }
.lb-row.is-me { background: linear-gradient(90deg, var(--accent-soft), var(--panel) 60%); }
/* Gold, silver, bronze */
.lb-row.place-1, .lb-row.place-2, .lb-row.place-3 { padding-top: 16px; padding-bottom: 16px; border-left-width: 6px; }
.lb-row.place-1 { --tier: #fbbf24; background: linear-gradient(100deg, rgba(251, 191, 36, .28), rgba(251, 191, 36, .05) 55%, var(--panel)); border-color: rgba(251, 191, 36, .55); box-shadow: 0 8px 34px rgba(251, 191, 36, .18); }
.lb-row.place-2 { --tier: #cbd5e1; background: linear-gradient(100deg, rgba(203, 213, 225, .22), rgba(203, 213, 225, .04) 55%, var(--panel)); border-color: rgba(203, 213, 225, .45); }
.lb-row.place-3 { --tier: #f0a061; background: linear-gradient(100deg, rgba(240, 160, 97, .24), rgba(240, 160, 97, .04) 55%, var(--panel)); border-color: rgba(240, 160, 97, .45); }
.lb-row.place-1 .lb-pos, .lb-row.place-2 .lb-pos, .lb-row.place-3 .lb-pos { font-size: 38px; }
.lb-row.place-1 .lb-pos small { color: #fbbf24; } .lb-row.place-2 .lb-pos small { color: #cbd5e1; } .lb-row.place-3 .lb-pos small { color: #f0a061; }
.lb-row.place-1 .lb-avatar .avatar, .lb-row.place-2 .lb-avatar .avatar, .lb-row.place-3 .lb-avatar .avatar { width: 56px; height: 56px; box-shadow: 0 0 0 3px var(--tier), 0 0 18px color-mix(in srgb, var(--tier) 60%, transparent); }
.lb-row.place-1 .lb-score b { font-size: 26px; color: #fbbf24; }
.lb-row.place-1 .lb-pos { animation: lbMedal 2.6s ease-in-out infinite; }
@keyframes lbMedal { 50% { transform: scale(1.12) rotate(-6deg); } }
.lb-crown { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-size: 22px; animation: lbCrown 2.4s ease-in-out infinite; z-index: 1; }
@keyframes lbCrown { 50% { transform: translateX(-50%) translateY(-4px) rotate(8deg); } }
[data-theme="light"] .lb-row.place-1 .lb-score b, [data-theme="light"] .lb-row.place-1 .lb-pos small { color: #b7791f; }
[data-theme="light"] .lb-row.place-2 { --tier: #94a3b8; } [data-theme="light"] .lb-row.place-2 .lb-pos small { color: #64748b; }
[data-theme="light"] .lb-row.place-3 .lb-pos small { color: #c2631f; }
/* Extras */
.lb-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.lb-extras h2 { font-size: 17px; }
.lb-rising ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-rising li { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .lb-rising li a { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; min-width: 0; }
.lb-rising li b { color: #30d158; }
.lb-how ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; } .lb-how li b { display: inline-block; min-width: 44px; color: var(--accent); font-weight: 900; }
.lb-ladder ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lb-ladder li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 10px; border-left: 3px solid var(--tier); }
.lb-ladder li b { color: var(--tier); } .lb-ladder li small { color: var(--text-3); } .lb-ladder li.mine { background: var(--accent-soft); }
@media (max-width: 600px) {
  .lb-row { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 10px 12px 10px 6px; column-gap: 8px; }
  .lb-pos { font-size: 18px; } .lb-row.place-1 .lb-pos, .lb-row.place-2 .lb-pos, .lb-row.place-3 .lb-pos { font-size: 30px; }
  .lb-avatar .avatar { width: 38px; height: 38px; } .lb-row[class*=place-] .lb-avatar .avatar { width: 44px; height: 44px; }
  .lb-score b { font-size: 17px; } .lb-row.place-1 .lb-score b { font-size: 20px; }
  .lb-me-pos { min-width: 56px; } .lb-me-pos b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .lb-row, .lb-bar i, .lb-trophy, .lb-crown, .lb-hero h1, .lb-stars i, .lb-row.place-1 .lb-pos { animation: none !important; } }

/* ===== Member profile (Facebook-style) ===== */
.fb-profile { max-width: 1060px; margin: 0 auto; padding: 0 0 30px; overflow-x: clip; min-width: 0; width: 100%; }
.fb-cover { position: relative; height: clamp(170px, 30vw, 330px); border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 120% at 15% 10%, rgba(94, 240, 192, .45), transparent 55%), radial-gradient(100% 120% at 85% 20%, rgba(139, 125, 255, .55), transparent 55%), radial-gradient(90% 100% at 50% 110%, rgba(63, 201, 255, .45), transparent 60%), #0b1022; }
.fb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-cover-art i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 40px 30px #fff, 120px 80px #fff8, 260px 20px #fff, 380px 110px #fffa, 520px 40px #fff, 640px 90px #fff8, 760px 30px #fff, 880px 120px #fffa, 980px 60px #fff;
  animation: lbTwinkle 4s ease-in-out infinite; }
.fb-cover-art i:nth-child(1) { left: 2%; top: 12%; } .fb-cover-art i:nth-child(2) { left: 7%; top: 48%; animation-delay: 1.3s; } .fb-cover-art i:nth-child(3) { left: 0; top: 75%; animation-delay: 2.4s; }
.fb-cover-btn { position: absolute; right: 14px; bottom: 14px; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(8px); }
.fb-head { display: flex; align-items: flex-end; gap: 18px; padding: 0 24px 16px; margin-top: -64px; position: relative; flex-wrap: wrap; }
.fb-avatar { position: relative; flex: none; }
.avatar.fb-av { width: 168px; height: 168px; font-size: 68px; border: 5px solid var(--bg); box-shadow: 0 10px 34px rgba(0, 0, 0, .45); background-color: var(--panel); }
.fb-rank-icon { position: absolute; right: 6px; bottom: 8px; width: 42px; height: 42px; display: grid; place-items: center; font-size: 22px; border-radius: 50%; background: var(--panel); border: 3px solid var(--bg); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.fb-id { flex: 1; min-width: 220px; padding-bottom: 6px; }
.fb-id h1 { font-size: clamp(28px, 5vw, 38px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 6px; overflow-wrap: anywhere; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.fb-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 99px; background: var(--field); border: 1px solid var(--panel-line); font-size: 13.5px; font-weight: 650; color: var(--text-2); }
a.fb-chip:hover { color: var(--text); text-decoration: none; }
.fb-chip.rank { background: linear-gradient(90deg, var(--accent-soft), transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.fb-bio { margin: 0; color: var(--text-2); max-width: 560px; }
.fb-actions { display: flex; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.fb-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); padding: 0 16px; margin-bottom: 16px; position: sticky; top: var(--topbar-h, 60px); z-index: 5; background: var(--bg); }
.fb-tabs::-webkit-scrollbar { display: none; }
.fb-tabs a { white-space: nowrap; padding: 14px 14px 12px; color: var(--text-2); font-weight: 650; border-bottom: 3px solid transparent; }
.fb-tabs a:hover { color: var(--text); text-decoration: none; background: var(--field); border-radius: 10px 10px 0 0; }
.fb-tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.fb-tabs a span { font-size: 12px; color: var(--text-3); margin-left: 2px; }
.fb-body { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; padding: 0 16px; align-items: start; }
.fb-body.wide { display: block; }
.fb-side { display: grid; gap: 14px; position: sticky; top: calc(var(--topbar-h, 60px) + 64px); }
.fb-side .card, .fb-feed .card { margin: 0; gap: 10px; }
.fb-side h2 { font-size: 19px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.fb-intro-bio { text-align: center; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--panel-line); }
.fb-facts { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; color: var(--text-2); }
.fb-facts b { color: var(--text); }
.fb-progress { display: grid; gap: 4px; }
.sc-player { width: 100%; height: 166px; border: 0; border-radius: 12px; display: block; }
.fb-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb-stat-grid a { display: grid; justify-items: center; padding: 10px 4px; border-radius: 14px; background: var(--field); color: var(--text); transition: transform .2s var(--spring); }
.fb-stat-grid a:hover { text-decoration: none; transform: translateY(-2px); }
.fb-stat-grid b { font-size: 19px; } .fb-stat-grid small { color: var(--text-3); font-size: 12px; }
.fb-badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb-badge-grid .bdg { display: grid; justify-items: center; gap: 2px; width: auto; height: auto; padding: 8px 4px; border-radius: 14px; font-size: 26px; text-align: center; }
.fb-badge-grid .bdg small { font-size: 11px; line-height: 1.2; color: var(--text-2); }
.fb-feed { display: grid; gap: 14px; min-width: 0; }
.wall-list { display: grid; gap: 14px; }
.wall-composer { display: grid; gap: 10px; }
.wcmp-top { display: flex; gap: 10px; align-items: flex-start; }
.wcmp-top textarea { flex: 1; resize: vertical; min-height: 48px; border-radius: 22px; padding: 12px 16px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text); font: inherit; }
.wcmp-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--panel-line); padding-top: 8px; }
.wcmp-note { font-size: 12px; }
.wall-post { display: block; padding: 14px 16px 10px; animation: lbIn .45s var(--ease) both; }
.wp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wp-head > div { display: grid; flex: 1; min-width: 0; }
.wp-name { font-weight: 750; color: var(--text); } .wp-time { font-size: 12.5px; }
.wp-del { margin-left: auto; opacity: .6; } .wp-del:hover { opacity: 1; color: var(--danger); }
.wp-body { white-space: normal; overflow-wrap: anywhere; line-height: 1.55; margin-bottom: 8px; }
.wp-body.big { font-size: 22px; font-weight: 650; line-height: 1.35; }
.mention { font-weight: 700; color: var(--accent); }
.wp-imgs { display: grid; gap: 4px; margin: 0 -16px 8px; }
.wp-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; background: var(--field); max-height: 520px; }
.wp-imgs.n2 { grid-template-columns: 1fr 1fr; } .wp-imgs.n2 img { aspect-ratio: 1; }
.wp-imgs.n3 { grid-template-columns: 1fr 1fr; } .wp-imgs.n3 img:first-child { grid-column: span 2; aspect-ratio: 2; } .wp-imgs.n3 img { aspect-ratio: 1; }
.wp-imgs.n4 { grid-template-columns: 1fr 1fr; } .wp-imgs.n4 img { aspect-ratio: 1; }
.wp-counts { display: flex; justify-content: space-between; font-size: 13.5px; padding: 2px 0 6px; min-height: 8px; }
.wp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); padding: 4px 0; }
.wp-btn { background: none; border: 0; color: var(--text-2); font: inherit; font-weight: 650; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.wp-btn:hover { background: var(--field); color: var(--text); }
.wp-btn.on { color: var(--accent); }
.wp-btn.pop { animation: wpPop .45s var(--spring); }
@keyframes wpPop { 40% { transform: scale(1.18); } }
.wc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.wc { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; }
.wc > small { grid-column: 2; padding-left: 12px; font-size: 12px; }
.wc-bubble { background: var(--field); border-radius: 18px; padding: 8px 12px; justify-self: start; max-width: 100%; }
.wc-bubble p { margin: 0; overflow-wrap: anywhere; }
.wc-name { font-weight: 750; font-size: 13.5px; color: var(--text); }
.wc-form { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; }
.wc-form input { flex: 1; min-width: 0; border-radius: 999px; padding: 9px 14px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text); font: inherit; }
.avatar.xs { width: 28px; height: 28px; font-size: 12px; }
.mention-box { position: absolute; z-index: 200; display: grid; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line); box-shadow: 0 14px 40px rgba(0, 0, 0, .4); }
.mention-box button { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mention-box button.on, .mention-box button:hover { background: var(--accent-soft); }
.fb-edit, .wall-zoom { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); width: 100%; }
.fb-edit::backdrop, .wall-zoom::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); }
.fb-edit form { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius-lg); padding: 18px; max-height: calc(100dvh - 40px); overflow: auto; color: var(--text); }
.fb-edit-head { display: flex; justify-content: space-between; align-items: center; } .fb-edit-head h2 { margin: 0; }
.fb-edit-preview { display: flex; justify-content: center; margin: 8px 0; }
.wall-zoom { max-width: 96vw; width: auto; } .wall-zoom img { max-width: 96vw; max-height: 90vh; border-radius: 12px; display: block; }
.wall-zoom .icon-btn { position: fixed; top: 14px; right: 14px; background: rgba(0, 0, 0, .6); color: #fff; }
@media (max-width: 900px) {
  .fb-body { grid-template-columns: minmax(0, 1fr); padding: 0 12px; }
  .fb-id { width: 100%; min-width: 0; }
  .fb-side { position: static; }
  .fb-head { flex-direction: column; align-items: center; text-align: center; margin-top: -84px; padding: 0 14px 12px; }
  .fb-meta, .fb-actions { justify-content: center; }
  .fb-bio { margin: 0 auto; }
  .fb-cover { border-radius: 0; }
  .fb-cover-btn { top: 12px; bottom: auto; right: 12px; }
}
@media (max-width: 600px) {
  .avatar.fb-av { width: 132px; height: 132px; font-size: 54px; }
  .fb-rank-icon { width: 36px; height: 36px; font-size: 19px; right: 2px; bottom: 4px; }
  .wcmp-bar { flex-wrap: wrap; }
  .wall-post { padding: 12px 12px 8px; } .wp-imgs { margin: 0 -12px 8px; }
  .wp-body.big { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .wall-post, .wp-btn.pop, .fb-cover-art i { animation: none !important; } }

/* ===== Logo: calm colour-shifting glow (mint → sky → violet), like a soft aurora ===== */
@property --lg-a { syntax: '<color>'; inherits: true; initial-value: #5ef0c0; }
@property --lg-b { syntax: '<color>'; inherits: true; initial-value: #3fc9ff; }
.logo { --lg-a: #5ef0c0; --lg-b: #3fc9ff; animation: logoHue 10s linear infinite; }
[data-theme="light"] .logo { --lg-a: #0ea47a; --lg-b: #0a8fd6; animation-name: logoHueLight; }
@keyframes logoHue { 0%, 100% { --lg-a: #5ef0c0; --lg-b: #3fc9ff; } 33% { --lg-a: #3fc9ff; --lg-b: #8b7dff; } 66% { --lg-a: #8b7dff; --lg-b: #5ef0c0; } }
@keyframes logoHueLight { 0%, 100% { --lg-a: #0ea47a; --lg-b: #0a8fd6; } 33% { --lg-a: #0a8fd6; --lg-b: #6a5cff; } 66% { --lg-a: #6a5cff; --lg-b: #0ea47a; } }
.logo b { background: linear-gradient(90deg, var(--lg-a), var(--lg-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--lg-a) 55%, transparent)); }
.logo-mark { color: var(--lg-a); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lg-a) 70%, transparent)) drop-shadow(0 0 14px color-mix(in srgb, var(--lg-b) 40%, transparent));
  animation: logoBob 5s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes logoBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.5px) rotate(-4deg); } }
.logo-mark .lm-light { animation: logoLights 2.4s ease-in-out infinite; }
.logo-mark .lm-light:nth-of-type(2) { animation-delay: .4s; } .logo-mark .lm-light:nth-of-type(3) { animation-delay: .8s; }
@keyframes logoLights { 50% { fill: #fff; } }
[data-theme="light"] .logo b { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lg-a) 35%, transparent)); }
/* With “reduce motion” on, the logo still fades slowly between colours (nothing moves) */
@media (prefers-reduced-motion: reduce) { .logo { animation: logoHue 16s linear infinite !important; } [data-theme="light"] .logo { animation-name: logoHueLight !important; } }

/* ===== Home page: a row of each category — photos edge to edge (Apple Photos style), glass labels like the bottom bar ===== */
.home-sections { --cols: 3; display: grid; gap: 22px; padding: 4px 0 24px; }
@media (min-width: 600px)  { .home-sections { --cols: 4; } }
@media (min-width: 900px)  { .home-sections { --cols: 6; } }
@media (min-width: 1300px) { .home-sections { --cols: 8; } }
.home-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.hs-head { display: flex; align-items: center; gap: 8px; padding: 0 12px; flex-wrap: wrap; }
.hs-title, .hs-more, .hs-viewmore { border-radius: 999px; box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi); }
.hs-title { margin: 0; padding: 8px 18px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.hs-more { margin-left: auto; padding: 8px 16px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.hs-more:hover { text-decoration: none; color: var(--accent); }
.hs-periods { margin: 0; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.hs-periods::-webkit-scrollbar { display: none; }
.segmented button { border: 0; background: none; font: inherit; white-space: nowrap; padding: 8px 16px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-current] { color: var(--text); background: var(--lens); box-shadow: inset 0 1px 0 var(--glass-hi), 0 2px 8px rgba(0, 0, 0, .18); }
.hs-periods button { padding: 6px 13px; font-size: 13.5px; }
.home-row { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); transition: opacity .2s; touch-action: pan-x pan-y; }
.home-row.loading { opacity: .45; }
.home-row .tile.over { display: none; }
.home-sections.dense .tile-card { font-size: 0; }
.home-sections.dense .tile-badge { display: none; }
.home-empty { grid-column: 1 / -1; padding: 30px 10px; text-align: center; margin: 0; }
.hs-foot { display: flex; justify-content: center; }
.hs-foot [hidden] { display: none; }
.hs-viewmore { border: 0; padding: 9px 22px; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--text); cursor: pointer; transition: transform .2s var(--spring); }
.hs-viewmore:hover { transform: translateY(-1px); color: var(--accent); }
@media (max-width: 600px) { .hs-head { padding: 0 8px; gap: 6px; } .hs-title { font-size: 15.5px; padding: 7px 15px; } .hs-more { padding: 7px 13px; font-size: 13.5px; } .hs-periods { order: 3; flex: 1 1 100%; } }
.check-grid { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 14px; } .check-grid legend { padding: 0; margin-bottom: 6px; }

/* ===== Stats page (colourful, compact) ===== */
.stats-page { max-width: 1280px; }
.st-hero { margin-bottom: 14px; padding: 26px 18px 22px; }
.st-hero p { margin-top: 2px; }
.st-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.st-tile { position: relative; overflow: hidden; display: grid; justify-items: start; gap: 2px; padding: 14px 16px; border-radius: var(--radius-lg);
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 24%, transparent), color-mix(in srgb, var(--c) 4%, transparent) 70%), var(--panel);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); animation: lbIn .55s var(--spring) both; animation-delay: calc(var(--i) * 60ms); }
.st-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); }
.st-ic { font-size: 22px; }
.st-tile b { font-size: clamp(24px, 3vw, 32px); font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.st-tile small { color: var(--text-2); font-weight: 600; font-size: 13px; }
.st-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.st-fact { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; animation: lbIn .55s var(--ease) both; animation-delay: calc(200ms + var(--i) * 60ms);
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box; border: 1px solid transparent; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.st-fact > span { font-size: 24px; } .st-fact div { display: grid; min-width: 0; }
.st-fact small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; }
.st-fact b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .st-fact em { font-style: normal; font-size: 12.5px; color: var(--text-2); }
.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; grid-auto-flow: dense; }
.st-grid .card { margin: 0; gap: 10px; }
.st-card { border-top: 3px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 120px), var(--panel); --chart-bar: var(--c); }
.st-card.wide { grid-column: span 2; }
.st-card h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-card h2 .link-btn { margin-left: auto; font-size: 13px; }
.st-h-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-size: 16px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.st-card .col i { background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 55%, transparent)); transform-origin: bottom; animation: stGrow .9s var(--ease) both; }
.st-card .hbar-track i { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, transparent), var(--c)); animation: lbGrow 1s var(--ease) both; }
@keyframes stGrow { from { transform: scaleY(0); } }
[data-theme="light"] .st-card, [data-theme="light"] .st-tile { --c-ink: color-mix(in srgb, var(--c) 70%, #000); }
[data-theme="light"] .st-card .col i, [data-theme="light"] .st-card .hbar-track i { background: color-mix(in srgb, var(--c) 75%, #000); }
.st-leaders ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-leaders li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; background: var(--field); }
.st-leaders li.place-1 { background: linear-gradient(100deg, rgba(251, 191, 36, .25), var(--field)); }
.st-leaders li.place-2 { background: linear-gradient(100deg, rgba(203, 213, 225, .2), var(--field)); }
.st-leaders li.place-3 { background: linear-gradient(100deg, rgba(240, 160, 97, .22), var(--field)); }
.st-medal { font-size: 22px; text-align: center; font-weight: 800; color: var(--text-2); }
.st-leaders a { display: flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; }
.st-leaders a:hover { text-decoration: none; } .st-leaders a > span { display: grid; min-width: 0; }
.st-leaders a b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .st-leaders a small { font-size: 12px; color: var(--text-2); }
.st-leaders em { font-style: normal; font-weight: 850; font-size: 17px; } .st-leaders em small { font-size: 11px; color: var(--text-3); margin-left: 2px; }
.st-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-rank li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.st-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-weight: 800; font-size: 13px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--text); }
.st-rank a { display: grid; gap: 3px; color: var(--text); min-width: 0; } .st-rank a:hover { text-decoration: none; } .st-rank a:hover b { color: var(--accent); }
.st-rank b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .st-rank small { font-size: 12.5px; }
.st-rank .lb-bar { height: 5px; --tier: var(--c); }
.st-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.st-mini div { display: grid; justify-items: center; padding: 10px 6px; border-radius: 14px; background: var(--field); }
.st-mini span { font-size: 20px; } .st-mini b { font-size: 19px; font-variant-numeric: tabular-nums; } .st-mini small { font-size: 12px; color: var(--text-3); }
@media (max-width: 1100px) { .st-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-card.wide { grid-column: auto; }
  .st-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .st-fact { padding: 9px 10px; } .st-fact > span { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .st-tile, .st-fact, .st-card .col i, .st-card .hbar-track i { animation: none !important; } }

/* Social links on profiles */
.soc-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.soc { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 5px; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: var(--text);
  background: color-mix(in srgb, var(--sc) 14%, var(--field)); border: 1px solid color-mix(in srgb, var(--sc) 40%, transparent); transition: transform .2s var(--spring); }
.soc:hover { text-decoration: none; transform: translateY(-1px); }
.soc i, .soc-field i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sc); color: #fff; font-style: normal; font-weight: 800; font-size: 12px; }
.soc-edit { border: 1px solid var(--panel-line); border-radius: 16px; padding: 10px 12px; margin: 0; display: grid; gap: 8px; }
.soc-edit legend { padding: 0 6px; font-weight: 650; }
.soc-field { display: grid; grid-template-columns: 24px 96px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.soc-field input { min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text); font: inherit; font-weight: 400; font-size: 14px; }
@media (max-width: 480px) { .soc-field { grid-template-columns: 24px minmax(0, 1fr); } .soc-field input { grid-column: 1 / -1; } }

/* ===== Community feed ===== */
.feed-page { max-width: 720px; }
.feed-hero { display: grid; gap: 10px; padding: 18px 18px 14px; border-radius: var(--radius-lg); margin-bottom: 12px; box-shadow: var(--glass-shadow); }
.feed-hero h1 { margin: 0; font-size: clamp(26px, 5vw, 34px); font-weight: 850; letter-spacing: -.03em;
  background: linear-gradient(90deg, var(--lg-a, var(--accent)), var(--lg-b, var(--accent-2))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feed-hero p { margin: 2px 0 0; }
.feed-sort { display: flex; gap: 6px; }
.feed-sort a { padding: 8px 16px; border-radius: 999px; font-weight: 650; color: var(--text-2); background: var(--panel); border: 1px solid var(--panel-line); }
.feed-sort a:hover { text-decoration: none; color: var(--text); }
.feed-sort a[aria-current] { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; }
.feed-periods { margin: 0; } .feed-periods a { white-space: nowrap; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.feed-periods a:hover { text-decoration: none; } .feed-periods a[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.feed-compose { display: flex; gap: 10px; padding: 14px; border-radius: var(--radius-lg); margin-bottom: 14px; box-shadow: var(--glass-shadow); }
.feed-compose.guest { align-items: center; } .feed-compose.guest span { font-size: 28px; } .feed-compose.guest p { margin: 0; }
.fc-main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.feed-compose textarea, .quote-dlg textarea, .sp-reply-form textarea { width: 100%; resize: vertical; min-height: 46px; border-radius: 16px; padding: 11px 14px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text); font: inherit; }
.fc-bar { display: flex; align-items: center; gap: 10px; } .fc-bar small { flex: 1; font-size: 12.5px; }
.fc-count { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; margin-left: auto; } .fc-count.near { color: var(--warn); }
.fc-quote { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--panel-line); background: var(--panel); font-size: 14px; color: var(--text-2); margin-top: 8px; }
.fc-quote b { color: var(--text); }
.quote-dlg form { display: grid; gap: 10px; }
.feed-list { display: grid; gap: 12px; }
.sp { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 14px 14px 10px 8px; border-radius: var(--radius-lg); box-shadow: var(--glass-shadow);
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box; border: 1px solid transparent; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  animation: lbIn .45s var(--ease) both; scroll-margin-top: calc(var(--topbar-h) + 20px); }
.sp:target { box-shadow: 0 0 0 2px var(--accent), var(--glass-shadow); }
.sp-reply { padding: 8px 0 4px; grid-template-columns: 32px minmax(0, 1fr); background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 1px solid var(--panel-line); border-radius: 0; }
.sp-vote { display: grid; justify-items: center; align-content: start; gap: 0; }
.sp-vote button { width: 32px; height: 26px; border: 0; background: none; color: var(--text-3); font-size: 15px; border-radius: 8px; line-height: 1; }
.sp-vote button:hover { background: var(--field); color: var(--text); }
.sp-vote b { font-size: 14px; font-variant-numeric: tabular-nums; }
.sp-vote.up .sp-up, .sp-vote.up b { color: #ff7a45; } .sp-vote.down .sp-down, .sp-vote.down b { color: #7c8cff; }
.sp-main { min-width: 0; }
.sp-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sp-name { font-weight: 750; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-rank { font-size: 14px; } .sp-admin { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.sp-time { font-size: 13px; color: var(--text-3); white-space: nowrap; } .sp-time::before { content: "· "; }
.sp-del { margin-left: auto; border: 0; background: none; color: var(--text-3); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.sp-del svg { width: 16px; height: 16px; fill: currentColor; } .sp-del:hover { color: var(--danger); background: var(--field); }
.sp-body { margin: 6px 0 4px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.sp-reply .sp-body { font-size: 15px; margin-top: 3px; }
.sp-quote { display: grid; gap: 4px; margin: 6px 0; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--text); }
.sp-quote:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.sp-quote-head { display: flex; align-items: center; gap: 6px; font-size: 13.5px; } .sp-quote-head small { color: var(--text-3); }
.sp-quote-body { font-size: 14.5px; color: var(--text-2); } .sp-quote.gone { color: var(--text-3); font-style: italic; }
.sp-rxs { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0; } .sp-rxs:empty { display: none; }
.sp-rx { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--panel-line); background: var(--panel); font-size: 14px; }
.sp-rx b { font-size: 12.5px; color: var(--text-2); } .sp-rx.on { border-color: var(--accent); background: var(--accent-soft); }
.sp-actions { display: flex; flex-wrap: wrap; gap: 2px; margin: 2px 0 0 -6px; }
.sp-act { border: 0; background: none; color: var(--text-2); font-weight: 600; font-size: 13.5px; padding: 6px 9px; border-radius: 10px; }
.sp-act:hover { background: var(--field); color: var(--text); } .sp-act b { color: var(--text-3); font-weight: 600; }
.sp-react-wrap { position: relative; }
.sp-picker { position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 20; display: flex; gap: 2px; padding: 5px; border-radius: 999px; box-shadow: var(--glass-shadow);
  background: linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box, var(--edge) border-box; border: 1px solid transparent; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.sp-picker[hidden] { display: none; }
.sp-picker button { border: 0; background: none; font-size: 22px; width: 38px; height: 38px; border-radius: 50%; transition: transform .15s var(--spring); }
.sp-picker button:hover { transform: scale(1.3) translateY(-3px); }
.sp-replies { margin-top: 6px; } .sp-replies:empty { display: none; }
.sp-more { margin: 4px 0; font-size: 13.5px; }
.sp-reply-form { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; } .sp-reply-form[hidden] { display: none; }
.sp-reply-form textarea { min-height: 38px; padding: 8px 12px; border-radius: 14px; }
.feed-rules { margin-top: 18px; }
@media (max-width: 600px) {
  .feed-page { padding-left: 8px; padding-right: 8px; }
  .sp { grid-template-columns: 34px minmax(0, 1fr); padding: 12px 10px 8px 4px; gap: 6px; }
  .sp-reply { grid-template-columns: 30px minmax(0, 1fr); }
  .sp-act { padding: 6px 7px; font-size: 13px; }
  .fc-bar small { display: none; }
  .sp-picker { left: -20px; } .sp-picker button { width: 34px; height: 34px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .sp { animation: none !important; } }
.home-sections.dense .pick-badge { width: 16px; height: 16px; font-size: 9px; left: 4px; top: 4px; }

/* Following */
.follow-user.on { color: var(--text-2); }
.fb-chip.follows-you { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.msg-btn.disabled { opacity: .5; cursor: not-allowed; }
.follow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 720px; }
.follow-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--panel-line); }
.fl-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--text); }
.fl-who:hover { text-decoration: none; } .fl-who:hover b { color: var(--accent); }
.fl-who > span { display: grid; min-width: 0; } .fl-who small { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow-list.sugg { margin: 14px auto 0; text-align: left; }
.sp-follow { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; font-size: 13px; padding: 2px 6px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.sp-follow:hover { background: var(--accent-soft); }

/* Profiles have no cover banner: the header sits on a soft glass panel instead */
.fb-head { margin: 14px 16px 12px; padding: 22px 24px; border-radius: var(--radius-lg); align-items: center; box-shadow: var(--glass-shadow);
  background: radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box;
  border: 1px solid transparent; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.avatar.fb-av { width: 136px; height: 136px; font-size: 56px; border-width: 4px; }
@media (max-width: 900px) { .fb-head { margin: 10px 10px 10px; padding: 20px 14px 16px; } }
@media (max-width: 600px) { .avatar.fb-av { width: 112px; height: 112px; font-size: 46px; } }
.hs-zoom { margin-left: auto; padding: 3px; box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi); }
.hs-zoom button { width: 34px; height: 30px; font-size: 19px; }
.hs-zoom + .hs-more { margin-left: 0; }
.home-sec.dense .tile-card { font-size: 0; } .home-sec.dense .tile-badge { display: none; }
@media (max-width: 600px) { .hs-zoom button { width: 30px; height: 28px; font-size: 18px; } }

/* ===== Chat (/messages) ===== */
.chat-btn { position: relative; }
.dm-dot { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #ff375f; color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.dm-dot[hidden] { display: none; }
.dm-page { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 12px; max-width: 1180px; margin: 0 auto; padding: 12px 16px; height: calc(100dvh - var(--topbar-h, 60px) - 24px); min-height: 480px; }
.dm-list, .dm-chat { border-radius: var(--radius-lg); box-shadow: var(--glass-shadow); overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.dm-list-head { padding: 16px 16px 8px; } .dm-list-head h1 { margin: 0; font-size: 24px; font-weight: 800; }
.dm-list ul { list-style: none; margin: 0; padding: 4px 8px 10px; overflow-y: auto; display: grid; gap: 2px; align-content: start; }
.dm-list li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; color: var(--text); }
.dm-list li a:hover { text-decoration: none; background: var(--field); }
.dm-list li a[aria-current] { background: var(--accent-soft); }
.dm-t-main { flex: 1; min-width: 0; display: grid; } .dm-t-main small { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-list a.unread .dm-t-main b, .dm-list a.unread .dm-t-main small { color: var(--text); font-weight: 750; }
.dm-t-side { display: grid; justify-items: end; gap: 3px; } .dm-t-side time { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.dm-badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #ff375f; color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.dm-empty { padding: 0 16px; }
.dm-placeholder { margin: auto; text-align: center; padding: 30px; max-width: 360px; } .dm-placeholder span { font-size: 46px; }
.dm-chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--panel-line); }
.dm-who { display: flex; align-items: center; gap: 10px; color: var(--text); } .dm-who:hover { text-decoration: none; } .dm-who span { display: grid; } .dm-who small { color: var(--text-2); font-size: 12.5px; }
.dm-back { display: none; font-size: 26px; }
.dm-scroll { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; }
.dm-msgs { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.dm-day { align-self: center; font-size: 12px; color: var(--text-3); padding: 10px 0 4px; font-weight: 600; }
.dm-msg { align-self: flex-start; max-width: min(75%, 520px); display: grid; animation: lbIn .25s var(--ease) both; }
.dm-msg p { margin: 0; padding: 9px 14px; border-radius: 20px 20px 20px 6px; background: var(--field); border: 1px solid var(--panel-line); overflow-wrap: anywhere; line-height: 1.4; }
.dm-msg time { font-size: 11px; color: var(--text-3); padding: 2px 8px 0; }
.dm-msg.mine { align-self: flex-end; justify-items: end; }
.dm-msg.mine p { border-radius: 20px 20px 6px 20px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border: 0; }
.dm-seen { font-size: 11px; color: var(--accent); font-weight: 700; padding: 0 8px; }
.dm-older { align-self: center; margin-bottom: 8px; } .dm-hello { text-align: center; margin: auto 0 20px; }
.dm-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--panel-line); }
.dm-compose textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; padding: 10px 16px; border-radius: 22px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text); font: inherit; }
.dm-send { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 17px; }
.dm-locked { padding: 14px; border-top: 1px solid var(--panel-line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .dm-locked p { margin: 0; color: var(--text-2); }
@media (max-width: 760px) {
  .dm-page { grid-template-columns: minmax(0, 1fr); padding: 8px; height: calc(100dvh - var(--topbar-h, 60px) - var(--tabbar-h, 64px) - 16px); }
  .page-messages.in-chat .dm-list { display: none; }
  .page-messages:not(.in-chat) .dm-chat { display: none; }
  .dm-back { display: inline-grid; }
  .dm-msg { max-width: 85%; }
}

/* ===== Feed: sidebar, attached sightings, new-posts pill, hashtags ===== */
.feed-page.feed-wide { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.feed-main { min-width: 0; }
.feed-side { display: grid; gap: 12px; position: sticky; top: calc(var(--topbar-h, 60px) + 14px); }
.feed-side .card { margin: 0; gap: 8px; padding: 16px; }
.feed-side h2 { font-size: 17px; margin: 0; }
.trend-tags ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.trend-tags a { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; color: var(--text); }
.trend-tags a:hover { text-decoration: none; background: var(--field); } .trend-tags small { color: var(--text-3); font-size: 12px; } .tt-n { color: var(--text-3); font-weight: 700; font-size: 13px; }
.wtf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .wtf li { display: flex; align-items: center; gap: 8px; } .wtf .btn { flex: none; padding: 6px 12px; }
.hashtag { font-weight: 650; color: var(--accent-2, var(--accent)); }
.feed-new-pill { position: sticky; top: calc(var(--topbar-h, 60px) + 10px); z-index: 6; display: block; margin: 0 auto 10px; border: 0; padding: 9px 18px; border-radius: 999px; font: inherit; font-weight: 700; color: var(--text); box-shadow: var(--glass-shadow); cursor: pointer; animation: lbIn .35s var(--spring) both; }
.feed-new-pill[hidden] { display: none; }
.sp-entry { display: flex; gap: 10px; align-items: center; margin: 6px 0; padding: 8px; border-radius: 16px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--text); position: relative; }
.sp-entry:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.sp-entry img, .sp-entry-ph { width: 76px; height: 76px; flex: none; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--field); font-size: 28px; }
.sp-entry > span { display: grid; min-width: 0; gap: 2px; } .sp-entry b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sp-entry small { font-size: 12.5px; color: var(--text-2); }
.fc-entry-x { position: absolute; top: 4px; right: 4px; }
.fc-pick { display: grid; gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--panel-line); background: var(--panel); }
.fc-pick[hidden], .fc-entry[hidden] { display: none; }
.fc-pick input { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--panel-line); background: var(--field); color: var(--text); font: inherit; }
.fc-pick-list { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.fc-pick-list button { display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 6px; border-radius: 10px; color: var(--text); font: inherit; cursor: pointer; }
.fc-pick-list button:hover { background: var(--field); } .fc-pick-list img, .fc-pick-list .sp-entry-ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; font-size: 18px; }
.fc-pick-list span { display: grid; min-width: 0; } .fc-pick-list small { color: var(--text-3); font-size: 12px; }
.feed-tag-sightings { padding: 14px; border-radius: var(--radius-lg); margin-bottom: 12px; display: grid; gap: 10px; } .feed-tag-sightings h2 { margin: 0; font-size: 17px; }
.tag-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 120px; gap: 4px; overflow-x: auto; scrollbar-width: none; border-radius: 12px; }
.tag-strip .tile { border-radius: 10px; }
@media (max-width: 960px) { .feed-page.feed-wide { grid-template-columns: minmax(0, 1fr); max-width: 720px; } .feed-side { position: static; order: 2; } }

/* ===== Profiles: privacy, block/mute menu, streak, colours, featured ===== */
.fb-lock { font-size: .6em; vertical-align: middle; }
.fb-chip.streak { background: linear-gradient(90deg, rgba(251, 146, 60, .25), rgba(251, 191, 36, .12)); color: #fb923c; border-color: rgba(251, 146, 60, .4); }
.fb-more { position: relative; } .fb-more summary { list-style: none; cursor: pointer; } .fb-more summary::-webkit-details-marker { display: none; }
.fb-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 2px; padding: 6px; border-radius: 16px; min-width: 250px; box-shadow: var(--glass-shadow); }
.fb-more-menu button { display: grid; text-align: left; gap: 1px; border: 0; background: none; padding: 9px 12px; border-radius: 10px; color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
.fb-more-menu button:hover { background: var(--field); } .fb-more-menu button.danger { color: var(--danger); } .fb-more-menu small { font-weight: 400; color: var(--text-3); font-size: 12px; }
.fb-featured h2 { margin: 0; font-size: 17px; } .fb-feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border-radius: 12px; overflow: hidden; }
.theme-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { display: grid; justify-items: center; gap: 3px; font-size: 12px; cursor: pointer; } .sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw i { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b, var(--a))); box-shadow: 0 0 0 2px var(--panel-line); }
.sw input:checked + i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.feat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; }
.feat-pick label { position: relative; display: grid; gap: 3px; cursor: pointer; font-size: 11.5px; } .feat-pick input { position: absolute; top: 6px; left: 6px; z-index: 1; }
.feat-pick img, .feat-pick span { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--field); display: grid; place-items: center; }
.feat-pick label:has(input:checked) img { outline: 3px solid var(--accent); }
.wp-report { margin-left: auto; opacity: .55; font-size: 14px; } .wp-report + .wp-del { margin-left: 0; }
.follow-reqs { margin-bottom: 16px; } .follow-reqs h2 { font-size: 18px; margin: 0; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 767px) { .topbar-actions .icon-btn.chat-btn { display: grid; } }

/* Saved picture copies on sighting pages */
.saved-note { font-size: 12px; font-weight: 650; color: var(--accent); margin-left: 6px; }
.orig-post { margin: 8px 0 0; } .orig-post summary { cursor: pointer; font-weight: 600; color: var(--text-2); font-size: 14px; padding: 6px 0; }
.orig-post .embed { margin-top: 8px; }

/* AI photo check card */
.vision-card h2 { font-size: 19px; margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .vision-card h3 { font-size: 15px; margin: 4px 0 0; }
.vision-card p { margin: 0; } .vc-subject b { font-size: 16px; }
.vc-ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vc-ex li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; } .vc-ex small { grid-column: 1 / -1; color: var(--text-2); }
.vc-what { font-weight: 650; } .vc-lik { display: inline-flex; gap: 3px; align-items: center; }
.vc-lik i { width: 16px; height: 6px; border-radius: 3px; background: var(--field); } .vc-lik.l1 i:nth-child(-n+1), .vc-lik.l2 i:nth-child(-n+2), .vc-lik.l3 i { background: var(--accent); }
.vc-chips { display: flex; flex-wrap: wrap; gap: 6px; } .vc-chip { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--field); border: 1px solid var(--panel-line); }
.vc-chip.warn { background: rgba(255, 214, 10, .14); border-color: rgba(255, 214, 10, .4); color: var(--warn); }
.vc-verdict { font-style: italic; color: var(--text-2); } .vc-admin { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--panel-line); padding-top: 10px; }
.ai-alike .strip-meta, .ai-alike small { color: var(--accent); }

/* Submit: AI assistant */
.ai-assist { border-radius: var(--radius-lg); display: grid; gap: 10px; } .ai-assist h2, .vision-check h2 { margin: 0; font-size: 18px; } .ai-assist p { margin: 0; }
.ai-assist textarea { width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text); font: inherit; resize: vertical; }
.assist-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.assist-msg { margin: 0; font-weight: 600; color: var(--accent); } .assist-msg.bad { color: var(--warn); }
.assist-qs { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line); } .assist-qs p { margin: 0; }
.ai-filled { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent) !important; background: var(--accent-soft) !important; }
.vision-check { display: grid; gap: 10px; } #visionOut .vision-card { margin: 0; }

/* Search: Ask the archive */
.ask-archive { border-radius: var(--radius-lg); padding: 16px; margin: 0 0 20px; display: grid; gap: 10px; box-shadow: var(--glass-shadow); }
.ask-archive h2 { margin: 0; font-size: 19px; } .ask-archive header p { margin: 2px 0 0; } .ask-archive > p { margin: 0; }
.ask-log { display: grid; gap: 10px; } .ask-log:empty { display: none; }
.ask-msg { max-width: 92%; padding: 10px 14px; border-radius: 18px; line-height: 1.5; }
.ask-msg.me { justify-self: end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-radius: 18px 18px 6px 18px; font-weight: 600; }
.ask-msg.ai { justify-self: start; background: var(--field); border: 1px solid var(--panel-line); border-radius: 18px 18px 18px 6px; } .ask-msg.ai p { margin: 0 0 8px; } .ask-msg.ai p:last-of-type { margin-bottom: 0; }
.cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; vertical-align: super; margin: 0 1px; }
.cite:hover { text-decoration: none; background: var(--accent); color: var(--accent-ink); }
.ask-src { margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--panel-line); list-style: none; display: grid; gap: 4px; font-size: 13.5px; }
.ask-src b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11px; margin-right: 4px; } .ask-src small { color: var(--text-3); margin-right: 4px; }
.ask-form { display: flex; gap: 8px; } .ask-form input { flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text); font: inherit; }
.ask-try { display: flex; flex-wrap: wrap; gap: 6px; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: dotb 1s infinite; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotb { 50% { transform: translateY(-4px); opacity: .5; } }

/* Sky: planets, stars, aircraft */
.sky-objects, .sky-air { margin-top: 10px; } .sky-objects summary, .sky-air summary { cursor: pointer; font-weight: 650; }
.so-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.so-list li { display: grid; grid-template-columns: 24px minmax(110px, auto) minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 14px; }
.so-where { color: var(--text-2); } .so-where small { color: var(--text-3); } .so-mag { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.so-planet b { color: var(--accent); } .so-kind { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); vertical-align: 1px; }
.sky-air ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
@media (max-width: 600px) { .so-list li { grid-template-columns: 22px minmax(0, 1fr) auto; } .so-where { grid-column: 2 / 4; } }

/* Writer: article vs news */
.kind-pick { border: 0; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .kind-pick legend { font-weight: 650; margin-bottom: 6px; padding: 0; }
.kind-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--panel-line); background: var(--panel); cursor: pointer; }
.kind-opt span { display: grid; gap: 2px; } .kind-opt small { color: var(--text-2); }
.kind-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.news-only[hidden] { display: none; }
@media (max-width: 600px) { .kind-pick { grid-template-columns: 1fr; } }

/* ===== Stats: no gaps — cards flow into columns like a magazine ===== */
.st-grid { display: block !important; columns: 3 340px; column-gap: 12px; }
.st-grid > .card { display: grid; break-inside: avoid; margin: 0 0 12px !important; width: 100%; }
.st-grid > .st-card.wide { column-span: all; }
@media (max-width: 700px) { .st-grid { columns: 1; } }

/* ===== Glowing "Submit" in the top bar (same colours as the logo's .dev) ===== */
.nav-glow { --lg-a: #5ef0c0; --lg-b: #3fc9ff; animation: logoHue 10s linear infinite; font-weight: 800 !important; }
[data-theme="light"] .nav-glow { --lg-a: #0ea47a; --lg-b: #0a8fd6; animation-name: logoHueLight; }
.topnav a.nav-glow { background: linear-gradient(90deg, var(--lg-a), var(--lg-b)); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--lg-a) 60%, transparent)); }
.topnav a.nav-glow[aria-current] { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--lg-a) 80%, transparent)); }
.tabbar a.nav-glow span { background: linear-gradient(90deg, var(--lg-a), var(--lg-b)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.tabbar a.nav-glow svg { fill: var(--lg-a); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lg-a) 70%, transparent)); }
@media (prefers-reduced-motion: reduce) { .nav-glow { animation: logoHue 16s linear infinite !important; } [data-theme="light"] .nav-glow { animation-name: logoHueLight !important; } }

/* ===== Home: liquid-glass sidebar ===== */
.home-wrap.has-side { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .home-wrap.has-side { grid-template-columns: 236px minmax(0, 1fr); gap: 0 10px; align-items: start; transition: grid-template-columns .3s var(--ease, ease); }
  .home-wrap.has-side.side-min { grid-template-columns: 52px minmax(0, 1fr); }
  .home-wrap.has-side.side-off { grid-template-columns: minmax(0, 1fr); }
  .home-wrap > .home-side { position: sticky; top: calc(var(--topbar-h, 60px) + 12px); margin: 4px 0 24px 12px; max-height: calc(100dvh - var(--topbar-h, 60px) - 30px); overflow-y: auto; scrollbar-width: thin; }
  .home-side-inline { display: none; }
}
@media (max-width: 999px) { .home-wrap > .home-side { display: none; } .home-side-inline .home-side { margin: 0 8px; } }
.side-off .home-side { display: none !important; }
.side-off .hsb-show { display: inline-flex !important; }
.hsb-show { display: none; justify-self: start; align-items: center; gap: 6px; margin: 4px 0 0 12px; padding: 6px 12px; border-radius: 999px; border: 0; font: 650 13px var(--sans); color: var(--text); cursor: pointer; }
@media (min-width: 1000px) { .side-off .hsb-show { position: fixed; left: 12px; bottom: 18px; z-index: 20; margin: 0; box-shadow: var(--glass-shadow); } }
.hsb-bar { display: flex; align-items: center; gap: 4px; }
.hsb-bar .hsb-t { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-right: auto; }
.hsb-btn { width: 26px; height: 26px; border-radius: 8px; border: 0; background: var(--field); color: var(--text-2); cursor: pointer; font-size: 13px; line-height: 1; display: grid; place-items: center; }
.hsb-btn:hover { color: var(--text); background: var(--accent-soft); }
.hsb-open { display: none; }
.hsb-news { font-style: normal; font-weight: 800; font-size: 10.5px; color: #ff6961; text-transform: uppercase; letter-spacing: .04em; }
/* Minimized: a slim strip of icons (tap one to go there, » to open it again) */
.side-min .home-side { padding: 8px 6px; gap: 8px; justify-items: center; }
.side-min .home-side .hsb-t, .side-min .home-side .hsb-all, .side-min .home-side ul, .side-min .hsb-bar [data-hsb="min"] { display: none; }
.side-min .hsb-open { display: grid; }
.side-min .hsb-bar { flex-direction: column; }
.side-min .hsb-sec h2 { margin: 0; justify-content: center; }
@media (max-width: 999px) { .side-min .home-side { justify-items: stretch; } .side-min .hsb-bar { flex-direction: row; } .side-min .hsb-bar .hsb-t { display: block; } .side-min .hsb-sec { display: none; } }
.home-side { border-radius: var(--radius-lg); padding: 10px 10px; display: grid; gap: 12px; box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi); }
.hsb-sec h2 { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 750; margin: 0 0 6px; }
.hsb-sec h2 .hsb-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); font-size: 14px; flex: none; } .hsb-sec h2 .hsb-ic:hover { text-decoration: none; filter: brightness(1.2); }
.hsb-sec h2 .hsb-all { margin-left: auto; font-size: 12px; font-weight: 600; }
.hsb-sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hsb-sec li a { display: flex; gap: 8px; align-items: center; padding: 6px 6px; border-radius: 12px; color: var(--text); }
.hsb-sec li a:hover { text-decoration: none; background: var(--field); }
.hsb-sec li img { width: 42px; height: 34px; object-fit: cover; border-radius: 8px; flex: none; }
.hsb-sec li span { display: grid; min-width: 0; } .hsb-sec li b { font-size: 13px; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hsb-sec small { color: var(--text-3); font-size: 12px; } .hsb-status a { align-items: flex-start; } .hsb-status em { font-style: normal; font-size: 13px; color: var(--text-2); }

/* ===== Feed: full width, three columns on big screens ===== */
.feed-page.feed-wide { max-width: none !important; width: 100%; margin: 0; padding: 14px 18px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.feed-left, .feed-side { display: grid; gap: 12px; }
.feed-left .card, .feed-side .card { margin: 0; gap: 8px; padding: 16px; } .feed-left h2 { font-size: 17px; margin: 0; }
@media (min-width: 1000px) { .feed-page.feed-wide { grid-template-columns: minmax(0, 1fr) 320px; } .feed-left { display: none; } .feed-side { position: sticky; top: calc(var(--topbar-h, 60px) + 14px); } }
@media (min-width: 1400px) { .feed-page.feed-wide { grid-template-columns: 300px minmax(0, 1fr) 340px; } .feed-left { display: grid; position: sticky; top: calc(var(--topbar-h, 60px) + 14px); } }
@media (max-width: 999px) { .feed-side { order: 2; } .feed-left { order: 3; } }

/* ===== Pictures in statuses ===== */
.sp-imgs { margin: 6px 0; border-radius: 14px; overflow: hidden; } .sp-imgs img { max-height: 520px; }
.fc-imgs { display: flex; flex-wrap: wrap; gap: 6px; } .fc-imgs[hidden] { display: none; }
.fc-img { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--field); }
.fc-img img { width: 100%; height: 100%; object-fit: cover; } .fc-img.bad { outline: 2px solid var(--danger); }
.fc-img-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; cursor: pointer; }
.feed-compose.on-profile { margin: 0; }

/* ===== Legal ===== */
.legal-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 18px 16px calc(var(--tabbar-h, 0px) + 22px); font-size: 12.5px; color: var(--text-3); border-top: 1px solid var(--panel-line); }
.legal-bar a { color: var(--text-2); } .legal-bar .lb-note { flex-basis: 100%; text-align: center; }
@media (min-width: 768px) { .legal-bar { padding-bottom: 22px; } }
.legal-check { font-size: 14px; line-height: 1.45; } .legal-check a { font-weight: 600; }
.posting-notice { font-size: 12.5px; color: var(--text-3); margin: 6px 0 0; line-height: 1.45; }
.legal-page h2 { margin-top: 1.6em; } .welcome-card .legal-check { margin: 6px 0; }

/* ===== "What do you think?" express sign-up ===== */
.express-join { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--panel-line); margin-bottom: 14px; }
.express-join textarea { width: 100%; resize: vertical; min-height: 54px; padding: 12px 14px; border-radius: 14px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text); font: inherit; }
.ej-more { display: grid; gap: 8px; animation: lbIn .35s var(--ease) both; } .ej-more[hidden] { display: none; } .ej-title { margin: 0; }
.ej-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ej-fields input { min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text); font: inherit; }
.ej-msg { margin: 0; font-weight: 600; color: var(--warn); } .ej-bar { display: flex; justify-content: flex-end; }
@media (max-width: 640px) { .ej-fields { grid-template-columns: 1fr; } }

/* ===== Notifications: colourful list, bubble panel, pop-ups, settings ===== */
.bell { position: relative; }
.bell .badge[hidden] { display: none; }
.bell .badge { animation: ntBadge 2.4s ease-in-out infinite; }
@keyframes ntBadge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.bell.ring svg { animation: ntRing .9s var(--ease) both; transform-origin: 50% 10%; }
@keyframes ntRing { 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }
.nt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nt { animation: ntIn .45s var(--spring) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes ntIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.nt > .nt-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; color: var(--text); border: 1px solid var(--panel-line); position: relative; overflow: hidden; }
.nt > .nt-row:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.nt.unread > .nt-row { background: linear-gradient(100deg, color-mix(in srgb, var(--c) 18%, transparent), var(--panel) 70%); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.nt.unread > .nt-row::after { content: ""; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); animation: ntBadge 2s ease-in-out infinite; }
.nt-face { position: relative; flex: none; }
.nt-pic { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
img.nt-pic { border-radius: 12px; } .nt-emoji { font-size: 22px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.nt-ic { position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; background: var(--c); box-shadow: 0 0 0 2px var(--bg), 0 2px 8px color-mix(in srgb, var(--c) 60%, transparent); }
.nt-text { display: grid; gap: 3px; min-width: 0; padding-right: 14px; line-height: 1.4; } .nt-text small { overflow-wrap: anywhere; }
.nt-reason { color: var(--text); background: color-mix(in srgb, var(--c) 14%, transparent); padding: 4px 8px; border-radius: 8px; font-size: 13px; }
.nt-time { color: var(--text-3); font-size: 12px; }
.nt-day { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 18px 4px 8px; }
.nt-tabs { margin: 0 0 14px; max-width: 100%; overflow-x: auto; }
.nt-panel { position: fixed; z-index: 120; top: calc(var(--topbar-h, 60px) + 6px); right: 12px; width: min(420px, calc(100vw - 16px)); max-height: min(70dvh, 640px); display: flex; flex-direction: column; border-radius: 22px; box-shadow: var(--glass-shadow), 0 20px 60px rgba(0, 0, 0, .35); animation: ntPanel .28s var(--spring) both; overflow: hidden; }
.nt-panel[hidden] { display: none; }
@keyframes ntPanel { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.ntp-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--panel-line); }
.ntp-head span { display: flex; gap: 6px; align-items: center; }
.ntp-list { overflow-y: auto; padding: 10px; gap: 6px; } .ntp-list .nt > .nt-row { padding: 10px 12px; border-radius: 14px; } .ntp-list .nt-pic { width: 38px; height: 38px; }
.ntp-loading, .ntp-empty { text-align: center; padding: 24px 10px; color: var(--text-2); }
.ntp-all { display: block; text-align: center; padding: 11px; font-weight: 650; border-top: 1px solid var(--panel-line); }
@media (max-width: 600px) { .nt-panel { left: 8px; right: 8px; width: auto; top: calc(var(--topbar-h, 60px) + 4px); max-height: calc(100dvh - var(--topbar-h, 60px) - var(--tabbar-h, 64px) - 20px); } }
.nt-pop { position: fixed; z-index: 130; right: 16px; bottom: calc(var(--tabbar-h, 0px) + 18px); display: flex; gap: 10px; align-items: center; max-width: min(380px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 18px; color: var(--text);
  box-shadow: var(--glass-shadow), 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent), 0 10px 30px color-mix(in srgb, var(--c) 30%, transparent); animation: ntPop .5s var(--spring) both; }
.nt-pop:hover { text-decoration: none; } .nt-pop.out { animation: ntOut .5s var(--ease) both; }
.nt-pop-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 17px; }
.nt-pop-tx { font-size: 14px; font-weight: 600; line-height: 1.35; }
@keyframes ntPop { from { opacity: 0; transform: translateY(20px) scale(.9); } } @keyframes ntOut { to { opacity: 0; transform: translateY(14px); } }
@media (min-width: 768px) { .nt-pop { bottom: 20px; } }
.nt-settings .card { gap: 10px; } .nt-settings h2 { font-size: 18px; margin: 0; }
.nt-freq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nt-freq-opt { display: flex; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--panel-line); background: var(--panel); cursor: pointer; }
.nt-freq-opt span { display: grid; } .nt-freq-opt small { color: var(--text-2); font-size: 12.5px; } .nt-freq-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.nt-group-head { display: flex; justify-content: space-between; align-items: center; } .nt-cols { display: flex; gap: 10px; font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; } .nt-cols span { width: 46px; text-align: center; }
.nt-prefs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nt-prefs li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 46px 46px; gap: 10px; align-items: center; padding: 7px 4px; border-radius: 10px; }
.nt-prefs li:hover { background: var(--field); } .nt-pi { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, transparent); font-size: 14px; } .nt-pl { font-size: 14.5px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; justify-self: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--field); border: 1px solid var(--panel-line); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .25s var(--spring); }
.switch input:checked + i { background: var(--accent); border-color: transparent; } .switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.nt-save { position: sticky; bottom: calc(var(--tabbar-h, 0px) + 10px); display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 18px; z-index: 5; }
@media (max-width: 600px) { .nt-freq { grid-template-columns: 1fr; } .nt-prefs li { grid-template-columns: 28px minmax(0, 1fr) 44px 44px; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .nt, .nt-pop, .nt-panel, .bell.ring svg, .bell .badge, .nt.unread > .nt-row::after { animation: none !important; } }

/* ===== Rejection reasons, suggested edits ===== */
.reject-box { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reject-box select, .reject-box input { padding: 7px 10px; border-radius: 10px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text); font: inherit; font-size: 13.5px; }
.suggest-page { max-width: 860px; }
.suggest-editor { min-height: 320px; max-height: 70vh; overflow-y: auto; padding: 16px 18px; border-radius: 16px; background: var(--field); border: 1px solid var(--panel-line); outline: none; }
.suggest-editor:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sug-card { gap: 10px; } .sug-head { display: flex; gap: 10px; align-items: center; } .sug-note { margin: 0; font-style: italic; color: var(--text-2); }
.diff del, .diff-body del { background: rgba(255, 105, 97, .2); color: #ff8a80; text-decoration: line-through; border-radius: 3px; }
.diff ins, .diff-body ins { background: rgba(48, 209, 88, .2); color: #5be37f; text-decoration: none; border-radius: 3px; }
[data-theme="light"] .diff del { color: #b3261e; } [data-theme="light"] .diff ins { color: #146c2e; }
.diff-body { max-height: 420px; overflow-y: auto; padding: 12px 14px; border-radius: 12px; background: var(--field); font-size: 15px; line-height: 1.6; }
.diff-body p { margin: 0 0 10px; } .df-same { color: var(--text-3); font-size: 13px; font-style: italic; }
.sug-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.warn-text { color: var(--warn); font-weight: 600; margin: 0; }

/* ---------- Round 31: submitter line, verified witness, case files, group chats, account page, API keys, AI at a glance ---------- */
/* Sighting page: "Submitted by" above the date, verified badge, "Did you record this?" */
.sub-by { display: inline-flex; align-items: center; gap: 8px; margin: -2px 0 6px; color: var(--text); font-size: 14.5px; flex-wrap: wrap; }
a.sub-by:hover { text-decoration: none; } a.sub-by:hover b { text-decoration: underline; }
.sub-by .avatar { flex: none; }
.vw-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .01em; white-space: nowrap;
  color: #062b14; background: linear-gradient(135deg, #30d158, #64d2ff); box-shadow: 0 2px 10px rgba(48, 209, 88, .35); }
.witness-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--panel-line); color: var(--text-2); width: fit-content; }
.witness-cta:hover { text-decoration: none; color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.case-chips { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.case-chip { padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.case-chip:hover { text-decoration: none; filter: brightness(1.15); }
.art-cover figcaption { font-size: 13px; color: var(--text-2); padding: 8px 2px 0; }
.art-dateline { font-size: .78em; letter-spacing: .05em; }
.a-cat.news-cat { background: rgba(255, 105, 97, .16); color: #ff6961; }
[data-theme="light"] .a-cat.news-cat { color: #c4302b; }

/* Pop-ups: credit to member, add to case */
.case-dialog { width: min(480px, calc(100vw - 32px)); border: 0; border-radius: var(--radius-lg); padding: 20px; color: var(--text); }
.case-dialog::backdrop { background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.case-msg { margin: 0; font-weight: 650; }
.bulk-credit input { width: 150px; }

/* Case files */
.cases-head .lead { max-width: 760px; }
.case-new summary { cursor: pointer; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.case-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius-lg); overflow: hidden; color: var(--text); box-shadow: var(--glass-shadow); transition: transform .25s var(--ease, ease), box-shadow .25s; }
.case-card:hover { text-decoration: none; transform: translateY(-3px); }
.case-img { aspect-ratio: 16 / 9; background: var(--tile); display: grid; place-items: center; font-size: 46px; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { display: grid; gap: 6px; padding: 14px 16px 16px; align-content: start; }
.case-body b { font-size: 18px; line-height: 1.25; } .case-meta { color: var(--text-3); font-size: 12.5px; }
.case-page { display: grid; gap: 18px; }
.case-page .back-link { justify-self: start; }
.case-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--glass-shadow); display: grid; grid-template-columns: minmax(0, 1fr); }
.case-hero-img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.case-hero-body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.case-hero h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.case-kicker { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.case-summary { color: var(--text-2); font-size: 16.5px; line-height: 1.55; max-width: 820px; }
.case-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; color: var(--text-2); font-size: 14px; }
.case-stats b { color: var(--text); }
.case-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.case-map { height: 380px; border-radius: var(--radius); overflow: hidden; background: #111; }
.case-map-card h2 .muted, .case-timeline h2 .muted { font-weight: 500; font-size: 14px; }
.case-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(10, 132, 255, .9); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 4px 14px rgba(0, 0, 0, .45); font-size: 15px; }
.case-pop { display: grid; gap: 4px; width: 200px; color: #111; } .case-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; } .case-pop small { color: #555; }
.tl { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 14px; }
.tl::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent-2, #bf5af2)); opacity: .55; }
.tl-year { margin: 10px 0 0 -26px; } .tl-year span { display: inline-block; padding: 4px 14px; border-radius: 999px; font-weight: 800; font-size: 15px; background: var(--accent); color: var(--accent-ink); position: relative; z-index: 1; }
.tl-item { position: relative; }
.tl-dot { position: absolute; left: -26px; top: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--panel, #1c1c1e); box-shadow: 0 0 0 2px var(--accent); z-index: 1; }
.tl-card { position: relative; border-radius: var(--radius); box-shadow: var(--glass-shadow); }
.tl-link { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 12px; color: var(--text); align-items: start; }
.tl-link:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.tl-link:hover { text-decoration: none; } .tl-link:hover b { text-decoration: underline; }
.tl-link img { width: 116px; height: 86px; object-fit: cover; border-radius: 10px; background: var(--tile); }
.tl-main { display: grid; gap: 4px; min-width: 0; }
.tl-main b { font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; }
.tl-meta { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.tl-note { font-size: 13.5px; color: var(--accent); font-weight: 650; }
.tl-text { color: var(--text-2); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.tl-remove { position: absolute; top: 6px; right: 6px; } .tl-remove .icon-btn { width: 30px; height: 30px; font-size: 13px; opacity: .6; } .tl-remove .icon-btn:hover { opacity: 1; }
@media (max-width: 600px) { .tl-link { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; } .tl-link img { width: 84px; height: 66px; } .case-map { height: 280px; } .case-hero-body { padding: 16px; } }

/* Verify as witness (member form) and Admin → Witnesses */
.witness-entry { display: flex; gap: 12px; align-items: center; color: var(--text); padding: 12px; margin-bottom: 14px; }
.witness-entry:hover { text-decoration: none; }
.witness-entry img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.witness-entry span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.witness-page .form.card h2 { font-size: 16px; margin: 6px 0 0; }
.wr-head { display: grid; gap: 8px; }
.wr-entry { display: flex; gap: 12px; align-items: center; color: var(--text); } .wr-entry:hover { text-decoration: none; }
.wr-entry img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; } .wr-entry span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.wr-who { margin: 0; }
.wr-answers { display: grid; gap: 10px; margin: 0; } .wr-answers dt { font-weight: 700; font-size: 13.5px; } .wr-answers dd { margin: 2px 0 0; color: var(--text-2); overflow-wrap: anywhere; }
.wr-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wr-reject { flex: 1; min-width: 260px; } .wr-reject input { flex: 1; min-width: 0; }

/* Group chats */
.dm-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dm-group-av { display: grid; place-items: center; background: linear-gradient(135deg, #5e5ce6, #bf5af2); color: #fff; font-size: 18px; flex: none; }
.dm-msg.in-group { grid-template-columns: minmax(0, auto); }
.dm-from { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); margin: 6px 0 3px 4px; }
.dm-from .avatar.xs { width: 20px; height: 20px; font-size: 10px; }
.dm-msg.dm-system { align-self: center; max-width: 90%; } .dm-msg.dm-system p { background: none; border: 0; color: var(--text-3); font-size: 12.5px; padding: 4px 8px; text-align: center; }
.dm-group-new { padding: 16px; overflow-y: auto; }
.dm-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dm-pick legend { font-weight: 700; margin-bottom: 8px; }
.dm-pick label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--field); border: 1px solid var(--panel-line); cursor: pointer; min-width: 0; }
.dm-pick label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.dm-group-menu { margin-left: auto; } .dm-group-menu .fb-more-menu { width: min(320px, calc(100vw - 40px)); right: 0; } .dm-group-menu .form { padding: 8px 10px; gap: 8px; }
.dm-chat-head .dm-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; display: block; }

/* Account page: full-width glass, long text wraps */
.wrap.account { max-width: none; padding-left: clamp(16px, 3vw, 40px); padding-right: clamp(16px, 3vw, 40px); }
.account .card { width: 100%; }
.account-head { flex-wrap: wrap; } .account-head > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.account .sub-list span:not(.status) { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.account .sub-list li { flex-wrap: nowrap; }
.account p, .account label, .account li { overflow-wrap: anywhere; }
@media (min-width: 1100px) { .account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
  .account > .account-head, .account > .account-links, .account > .rank-card, .account > .form-errors, .account > .danger-zone { grid-column: 1 / -1; } }
.danger-zone { border: 1px solid rgba(255, 105, 97, .35); }
.danger-zone h2 { color: var(--danger); }
.danger-zone details > summary { list-style: none; width: fit-content; } .danger-zone details > summary::-webkit-details-marker { display: none; }
.danger-zone details[open] > summary { margin-bottom: 12px; }

/* Admin → API keys */
.keys-how { margin: 0 0 6px; }
.keys-group { display: grid; gap: 10px; margin: 26px 0; } .keys-group > h2 { margin: 0; font-size: 20px; } .keys-group > p { margin: 0; }
.key-row { padding: 0; gap: 0; margin: 0; }
.key-row > summary, .key-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.key-link { cursor: default; }
.key-row > summary::-webkit-details-marker { display: none; }
.key-row > summary::after { content: "›"; font-size: 22px; color: var(--text-3); transition: transform .2s; }
.key-row[open] > summary::after { transform: rotate(90deg); }
.key-title { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; } .key-title small { color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.key-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.key-form { padding: 0 18px 18px; }
.key-form code { overflow-wrap: anywhere; }

/* Admin → AI: AI at a glance, and the "Runs by itself" switch on jobs */
.switch-row { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.glance-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.glance-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--panel-line); }
.glance-row:last-child { border-bottom: 0; }
.g-ic { font-size: 22px; text-align: center; }
.g-main { display: grid; gap: 2px; min-width: 0; } .g-main small { color: var(--text-2); font-size: 13px; } .g-main .g-last { color: var(--text-3); font-size: 12px; }
.g-ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.g-state { grid-column: 2 / -1; } .g-state:empty { display: none; }
@media (max-width: 760px) { .glance-row { grid-template-columns: 30px minmax(0, 1fr); } .g-ctl { grid-column: 2; justify-content: flex-start; } }
.danger-zone .plain-list { list-style: none; padding-left: 0; display: grid; gap: 6px; margin: 0; }
.mod-ban-btn { border: 0; background: none; cursor: pointer; font-size: 13px; opacity: .45; padding: 2px 6px; border-radius: 8px; line-height: 1; }
.mod-ban-btn:hover { opacity: 1; background: rgba(255, 105, 97, .15); }
.s-mod { background: rgba(94, 92, 230, .18); color: #a5a3ff; }
.badge-card.secret { border-style: dashed; }

/* Read the Terms before agreeing (sign-up, quick sign-up, welcome) */
.terms-read { border: 1px solid var(--panel-line); border-radius: 14px; background: var(--field); overflow: hidden; margin: 4px 0 6px; }
.terms-read-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 9px 12px; border-bottom: 1px solid var(--panel-line); }
.terms-read-head a { margin-left: auto; }
.terms-read.is-read { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.terms-read.is-read [data-terms-hint] { color: var(--accent); font-weight: 700; }
.terms-scroll { max-height: 220px; overflow-y: auto; padding: 10px 14px; font-size: 13.5px; line-height: 1.55; overscroll-behavior: contain; }
.terms-scroll h3 { font-size: 14px; margin: 14px 0 4px; } .terms-scroll p, .terms-scroll ul { margin: 0 0 8px; } .terms-scroll .lead { font-size: 14px; }
.terms-end { color: var(--accent); font-weight: 700; }
.express-join .terms-scroll { max-height: 150px; }
.legal-check.is-locked { opacity: .5; }

/* Ads (only when switched on) */
.ad-slot { display: block; margin: 18px auto; max-width: 970px; text-align: center; min-height: 90px; }
.ad-label { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.home-sections > .ad-slot { margin: 10px 12px 18px; }

/* "Confirm your email" bar */
.verify-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px auto 0; max-width: 1180px; width: calc(100% - 24px); padding: 12px 16px; border-radius: var(--radius-lg); box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.vb-ic { font-size: 24px; animation: vbBob 2.4s ease-in-out infinite; } .vb-text { flex: 1 1 260px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
@keyframes vbBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .vb-ic { animation: none; } }

/* ===== Feed: use the whole width on every screen; one glass House rules card ===== */
.feed-page.feed-single { max-width: none; padding-left: clamp(12px, 3vw, 40px); padding-right: clamp(12px, 3vw, 40px); }
@media (min-width: 1000px) { .feed-page.feed-wide { grid-template-columns: 250px minmax(0, 1fr) 300px; } .feed-left { display: grid; position: sticky; top: calc(var(--topbar-h, 60px) + 14px); } }
@media (min-width: 1400px) { .feed-page.feed-wide { grid-template-columns: 300px minmax(0, 1fr) 340px; } }
.house-rules { border-radius: var(--radius-lg); padding: 16px 16px 12px; box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi); position: relative; overflow: hidden; }
.house-rules::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); pointer-events: none; }
.house-rules h2 { font-size: 17px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.house-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.house-rules li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 8px; font-size: 13.5px; line-height: 1.4; color: var(--text-2); padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--field) 70%, transparent); }
.house-rules li span { grid-row: span 2; font-size: 18px; } .house-rules li b { color: var(--text); }

/* ===== Favorites ===== */
.favs-page { display: grid; gap: 0; }
.fav-hero { background: radial-gradient(120% 140% at 50% 0%, rgba(255, 55, 95, .35), transparent 60%), radial-gradient(80% 90% at 8% 100%, rgba(191, 90, 242, .28), transparent 60%), radial-gradient(70% 90% at 95% 90%, rgba(255, 159, 10, .22), transparent 60%), var(--panel); }
.fav-hero h1 { background-image: linear-gradient(90deg, #ff9fb5, #ff375f, #bf5af2, #ffd60a, #ff9fb5); }
.fav-big { filter: drop-shadow(0 6px 18px rgba(255, 55, 95, .6)); }
.fav-hearts i { position: absolute; left: var(--x); bottom: -20px; color: #ff375f; font-style: normal; font-size: calc(18px * var(--s)); opacity: 0; animation: favRise 6s ease-in infinite; animation-delay: var(--d); }
@keyframes favRise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .55; } 100% { transform: translateY(-260px) scale(1.1) rotate(18deg); opacity: 0; } }
.fav-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fav-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 14px; }
.fav-shapes { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 300px; }
.fav-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 650; font-size: 13.5px; color: var(--text); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); transition: transform .2s var(--spring, ease), background .2s; }
.fav-chip b { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--c) 35%, transparent); }
.fav-chip:hover { text-decoration: none; transform: translateY(-2px); background: color-mix(in srgb, var(--c) 26%, transparent); }
.fav-chip.on { background: var(--c); color: #fff; border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 45%, transparent); }
.fav-grid .tile { animation: favIn .5s var(--spring, ease) both; }
.fav-grid .tile:nth-child(6n+1) { animation-delay: .02s; } .fav-grid .tile:nth-child(6n+2) { animation-delay: .07s; } .fav-grid .tile:nth-child(6n+3) { animation-delay: .12s; }
.fav-grid .tile:nth-child(6n+4) { animation-delay: .17s; } .fav-grid .tile:nth-child(6n+5) { animation-delay: .22s; } .fav-grid .tile:nth-child(6n) { animation-delay: .27s; }
.fav-grid .tile::before { content: "♥"; position: absolute; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: rgba(255, 55, 95, .85); box-shadow: 0 3px 10px rgba(255, 55, 95, .5); }
.fav-grid .tile:hover::before { animation: favBeat .7s ease; }
@keyframes favIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes favBeat { 30% { transform: scale(1.35); } 60% { transform: scale(.95); } }
.fav-pulse { color: #ff375f; animation: favBeat 1.6s ease-in-out infinite; }
@media (max-width: 760px) { .fav-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .fav-hearts i, .fav-grid .tile, .fav-pulse { animation: none !important; opacity: 1; } }

/* Sign-in page: quick sign-up underneath */
.quick-join { margin-top: 18px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent-soft) 60%, transparent); overflow: hidden; }
.quick-join > summary { display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.quick-join > summary::-webkit-details-marker { display: none; }
.quick-join > summary span:last-child { display: grid; gap: 2px; } .quick-join > summary small { color: var(--text-2); }
.qj-ufo { font-size: 30px; animation: vbBob 2.6s ease-in-out infinite; }
.quick-join .form { padding: 0 16px 16px; }

/* ===== Liquid-glass toasts (assets/toasts.js) ===== */
.tst-stack { position: fixed; z-index: 1200; left: 50%; bottom: calc(var(--tabbar-h, 0px) + env(safe-area-inset-bottom, 0px) + 18px); transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); display: grid; gap: 8px; pointer-events: none; }
@media (min-width: 900px) { .tst-stack { left: auto; right: 22px; transform: none; bottom: 22px; } }
.tst { position: relative; overflow: hidden; pointer-events: auto; cursor: pointer; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px 13px; border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35), inset 0 1px 0 var(--glass-hi); animation: tstIn .55s cubic-bezier(.2, 1.4, .4, 1) both; transition: transform .25s, opacity .25s; }
.tst::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tc) 28%, transparent), transparent 60%); pointer-events: none; }
.tst-ok { --tc: #30d158; } .tst-info { --tc: #64d2ff; } .tst-warn { --tc: #ffd60a; } .tst-error { --tc: #ff6961; }
.tst-ic { position: relative; width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--tc) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 45%, transparent); animation: tstPop .6s .1s cubic-bezier(.2, 1.6, .4, 1) both; }
.tst-tx { position: relative; display: grid; gap: 1px; min-width: 0; } .tst-tx b { font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; } .tst-tx small { font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.tst-x { position: relative; border: 0; background: none; color: var(--text-3); font-size: 13px; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; } .tst-x:hover { background: var(--field); color: var(--text); }
.tst-bar { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--tc) 70%, transparent); transform-origin: left; animation: tstLife var(--life, 4s) linear forwards; }
.tst.paused .tst-bar { animation-play-state: paused; }
.tst.out { animation: tstOut .3s ease-in forwards; }
.tst.bump { animation: tstBump .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes tstIn { from { opacity: 0; transform: translateY(26px) scale(.9); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tstOut { to { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes tstPop { from { transform: scale(.3) rotate(-25deg); } to { transform: none; } }
@keyframes tstLife { to { transform: scaleX(0); } }
@keyframes tstBump { 40% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .tst, .tst-ic, .tst.out, .tst.bump { animation: none !important; } .tst-bar { animation-duration: 0s; display: none; } }
.flashes { display: none; }   /* page messages show as toasts (they stay as plain text if JavaScript is off) */
html:not(.js) .flashes { display: grid; }

/* ===== 💡 Helpful tips (assets/hints.js) ===== */
.tip { position: fixed; z-index: 1100; left: 18px; bottom: 22px; width: min(360px, calc(100vw - 24px)); border-radius: 22px; padding: 12px 14px 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4), inset 0 1px 0 var(--glass-hi);
  animation: tipIn .6s cubic-bezier(.2, 1.3, .4, 1) both; overflow: hidden; }
.tip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 0% 0%, rgba(255, 214, 10, .22), transparent 55%), radial-gradient(90% 100% at 100% 100%, rgba(100, 210, 255, .18), transparent 60%); pointer-events: none; }
.tip > * { position: relative; }
.tip-head { display: flex; align-items: center; justify-content: space-between; }
.tip-label { font: 800 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #ffd60a; }
.tip-x { border: 0; background: none; color: var(--text-3); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; } .tip-x:hover { background: var(--field); color: var(--text); }
.tip-body { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; margin: 4px 0 10px; }
.tip-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, #ffd60a 18%, transparent); animation: tipWiggle 2.4s 1s ease-in-out 2; }
.tip-t { font-size: 15.5px; } .tip-p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.tip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tip-off { margin-left: auto; font-size: 12px; color: var(--text-3); }
.tip.out { animation: tipOut .3s ease-in forwards; }
.tip-glow { position: relative; z-index: 2; border-radius: 14px; animation: tipGlow 1.6s ease-in-out 4; }
@keyframes tipIn { from { opacity: 0; transform: translateY(30px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes tipOut { to { opacity: 0; transform: translateY(18px) scale(.95); } }
@keyframes tipWiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg) scale(1.08); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } }
@keyframes tipGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 214, 10, 0); } 50% { box-shadow: 0 0 0 4px rgba(255, 214, 10, .55), 0 0 26px rgba(255, 214, 10, .5); } }
@media (max-width: 899px) {
  .tip { left: 10px; right: 10px; width: auto; max-width: 420px; margin: 0 auto; bottom: auto; top: calc(var(--topbar-h, 60px) + env(safe-area-inset-top, 0px) + 8px);
    padding: 8px 10px; border-radius: 16px; animation-name: tipInTop; }
  .tip.out { animation-name: tipOutTop; }
  .tip-head { position: absolute; top: 4px; right: 4px; } .tip-label { display: none; }
  .tip-body { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; margin: 0 26px 6px 0; align-items: center; }
  .tip-ic { width: 30px; height: 30px; border-radius: 10px; font-size: 17px; }
  .tip-t { font-size: 13.5px; } .tip-p { font-size: 12px; line-height: 1.35; margin-top: 1px; }
  .tip-actions { gap: 4px; margin-left: 38px; } .tip-actions .btn.sm { padding: 3px 10px; font-size: 12px; min-height: 0; } .tip-ok { display: none; } .tip-off { font-size: 11px; }
  .tip-p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@keyframes tipInTop { from { opacity: 0; transform: translateY(-24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes tipOutTop { to { opacity: 0; transform: translateY(-16px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .tip, .tip-ic, .tip-glow, .tip.out { animation: none !important; } .tip-glow { box-shadow: 0 0 0 3px rgba(255, 214, 10, .6); } }

/* Article types: coloured labels, type row, case box */
.a-cat.kind-cat { font-weight: 800; }
.a-cat.k-news { background: rgba(255, 105, 97, .16); color: #ff6961; } .a-cat.k-case { background: rgba(100, 210, 255, .16); color: #64d2ff; }
.a-cat.k-interview { background: rgba(191, 90, 242, .16); color: #d18cff; } .a-cat.k-guide { background: rgba(48, 209, 88, .16); color: #30d158; }
[data-theme="light"] .a-cat.k-news { color: #c4302b; } [data-theme="light"] .a-cat.k-case { color: #0a6fa8; } [data-theme="light"] .a-cat.k-interview { color: #8a2fb8; } [data-theme="light"] .a-cat.k-guide { color: #1c8a3a; }
.type-row { margin-bottom: 8px; } .cat-row.sm { margin-bottom: 14px; }
.case-board { display: grid; gap: 16px; margin: 6px 0 24px; }
.case-follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-radius: var(--radius-lg); box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi); }
.case-follow p { margin: 2px 0 0; }
.fav-sort { margin: 0; }

/* "What changes when ads are on" table */
.ads-svc { overflow-x: auto; } .ads-svc table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.ads-svc th, .ads-svc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--panel-line); vertical-align: top; }
.ads-svc th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
@media (max-width: 640px) { .ads-svc table { min-width: 0; } .ads-svc thead { display: none; } .ads-svc tr { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--panel-line); } .ads-svc td { border: 0; padding: 2px 4px; }
  .ads-svc td:nth-child(2)::before { content: "Normally: "; color: var(--text-3); } .ads-svc td:nth-child(3)::before { content: "With ads: "; color: var(--text-3); } .ads-svc td:first-child { font-weight: 700; } }

/* Notifications page: full width, liquid glass; names & pictures open the member's profile */
.nt > .nt-row { box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi); transition: transform .2s var(--spring, ease), border-color .2s; }
.nt > .nt-row:hover { transform: translateY(-1px); }
.nt-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.nt-face, .nt-text { position: relative; } .nt-text { pointer-events: none; }
.nt-user { position: relative; z-index: 2; pointer-events: auto; font-weight: 750; color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c, var(--accent)) 60%, transparent); text-underline-offset: 3px; }
.nt-user:hover { color: var(--c, var(--accent)); }
.nt-face-link { display: block; text-decoration: none; }

/* ===== Second bars (sub-pages, filters, tabs) never hide options off-screen: they wrap onto another line instead of scrolling ===== */
.segmented, .nt-tabs, .admin-nav, .lb-filters, .fb-tabs, .hs-periods, .editor-tabs, .type-row, .cat-row { flex-wrap: wrap !important; overflow: visible !important; max-width: 100%; }
.segmented { border-radius: 22px; row-gap: 4px; }
.segmented a, .lb-filters > *, .fb-tabs a, .editor-tabs a, .editor-tabs button { white-space: nowrap; }
.dock .segmented { flex-wrap: nowrap !important; overflow-x: auto !important; border-radius: 999px; }   /* the floating sort bar on the home page still swipes */
.home-row + .hs-foot, .hs-foot { justify-content: flex-end; padding-right: 12px; }   /* "View more" sits on the right */

/* ===== Drifting grey mist over the plain background (one layer, moved by the graphics chip — light on phones) ===== */
body::after {
  content: ""; position: fixed; inset: -30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(28% 22% at 25% 30%, rgba(170, 180, 200, .13), transparent 70%),
    radial-gradient(24% 20% at 72% 62%, rgba(150, 160, 185, .11), transparent 70%),
    radial-gradient(20% 26% at 55% 18%, rgba(200, 205, 220, .08), transparent 70%),
    radial-gradient(26% 18% at 18% 78%, rgba(140, 150, 175, .09), transparent 70%);
  animation: bgMist 45s ease-in-out infinite alternate;
  will-change: transform;
}
[data-theme="light"] body::after {
  background:
    radial-gradient(28% 22% at 25% 30%, rgba(60, 70, 95, .1), transparent 70%),
    radial-gradient(24% 20% at 72% 62%, rgba(80, 90, 115, .09), transparent 70%),
    radial-gradient(20% 26% at 55% 18%, rgba(40, 50, 75, .07), transparent 70%),
    radial-gradient(26% 18% at 18% 78%, rgba(90, 100, 125, .08), transparent 70%);
}
@keyframes bgMist {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  33%  { transform: translate3d(6%, -4%, 0) rotate(6deg) scale(1.06); }
  66%  { transform: translate3d(-5%, 5%, 0) rotate(-5deg) scale(.97); }
  100% { transform: translate3d(3%, 6%, 0) rotate(4deg) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* ===== Messages: full width, and search for people to message ===== */
.dm-page { max-width: none; width: 100%; box-sizing: border-box; margin: 0; grid-template-columns: 360px minmax(0, 1fr); padding: 12px clamp(12px, 2vw, 28px); }
@media (min-width: 1500px) { .dm-page { grid-template-columns: 420px minmax(0, 1fr); } }
.dm-search { position: relative; padding: 0 12px 8px; }
.dm-search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; background: var(--field); border: 1px solid var(--panel-line); }
.dm-search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dm-search-box input { flex: 1; border: 0; background: none; padding: 10px 0; font: inherit; color: var(--text); outline: none; min-width: 0; }
.dm-people { position: absolute; left: 12px; right: 12px; top: calc(100% - 2px); z-index: 30; border-radius: 18px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); max-height: 360px; overflow-y: auto; animation: tstIn .3s ease both; }
.dm-people-head { margin: 4px 8px 6px; }
.dm-people ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dm-people a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--text); }
.dm-people a:hover, .dm-people a:focus { text-decoration: none; background: var(--accent-soft); }
.dm-people a > span:not(.avatar) { display: grid; flex: 1; min-width: 0; } .dm-people .avatar { flex: none; } .dm-people a small { color: var(--text-3); font-size: 12px; }
.dm-people a i { font-style: normal; opacity: .6; }
@media (max-width: 760px) { .dm-page { grid-template-columns: minmax(0, 1fr); padding: 8px; } }
.pager-nums { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.pager-nums .pg { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--field); border: 1px solid var(--panel-line); color: var(--text); font-weight: 650; font-size: 14px; }
.pager-nums .pg:hover { text-decoration: none; border-color: var(--accent); }
.pager-nums .pg.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.dm-people.glass { background: linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box, var(--edge) border-box; -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); }

/* Top bar: Favorites ❤️ and Stats 📊 as icons */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.topnav a.nav-ic { padding-inline: 10px; }
.nav-emoji { font-size: 16px; line-height: 1; display: inline-flex; vertical-align: -3px; transition: transform .2s; }
.nav-emoji svg { width: 17px; height: 17px; fill: currentColor; }
.topnav a.nav-ic:hover .nav-emoji { transform: scale(1.18); }

/* Avatar menu in the top bar */
.me-menu { position: relative; }
.me-menu > summary { list-style: none; cursor: pointer; }
.me-menu > summary::-webkit-details-marker { display: none; }
.me-menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.me-menu[open] > summary { box-shadow: 0 0 0 2px var(--accent); }
.me-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 220px; padding: 8px; border-radius: 18px; display: grid; gap: 2px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35); animation: drop .22s var(--spring) both; }
.me-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--panel-line); }
.me-head .avatar { width: 38px; height: 38px; } .me-head span { display: grid; min-width: 0; }
.me-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .me-head small { font-size: 12px; color: var(--text-3); }
.me-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--text); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.me-pop a:hover, .me-pop a:focus-visible { background: var(--lens); text-decoration: none; }
.me-pop svg { width: 18px; height: 18px; fill: currentColor; opacity: .8; }
.me-pop a.me-out { color: #ff6b6b; }

/* ---------- Sightings ↔ articles (app/entrylinks.php, assets/entrylinks.js) ---------- */
.el-picker { display: grid; gap: 10px; }
.el-chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.el-chosen:empty { display: none; }
.el-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--accent-soft, rgba(94,240,192,.14)); border: 1px solid var(--panel-line); font-size: 13.5px; max-width: 100%; }
.el-chip a { color: var(--text); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.el-x { border: 0; background: transparent; color: var(--text-2); font-size: 17px; line-height: 1; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }
.el-x:hover { background: var(--lens); color: var(--text); }
.el-search { position: relative; }
.el-search input { width: 100%; }
.el-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 340px; overflow: auto; padding: 6px; border-radius: 14px; background: var(--bg); background-image: linear-gradient(var(--panel), var(--panel)); border: 1px solid var(--panel-line); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.el-res, .el-sug { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.el-res:hover, .el-res:focus-visible, .el-sug:hover, .el-sug:focus-visible { background: var(--lens); }
.el-res > span:nth-child(2), .el-sug > span:nth-child(2) { flex: 1; min-width: 0; }
.el-res small, .el-sug small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.el-res small.el-type, .el-sug small.el-type { display: inline; margin-left: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.el-ic { font-size: 18px; line-height: 1.2; }
.el-plus { font-weight: 800; color: var(--accent); padding: 0 4px; }
.el-none { margin: 6px 8px; color: var(--text-2); font-size: 13.5px; }
.el-sugg { padding: 10px; border-radius: 14px; border: 1px dashed var(--accent); background: rgba(94,240,192,.05); }
.el-sugg-h { margin: 0 0 4px; font-size: 13.5px; }
.el-sugg-list { display: grid; gap: 2px; }
.el-why { font-style: italic; }
.el-section { display: grid; gap: 12px; }
.el-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.el-sec-head h2 { margin: 0; font-size: 19px; }
.el-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.el-card { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--panel-line); background: var(--lens); color: var(--text); text-decoration: none; }
.el-card:hover { border-color: var(--accent); text-decoration: none; }
.el-card b { display: block; }
.el-card small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.el-edit { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--panel-line); }
.wk-main .el-related { margin: 20px 0 6px; }
.wk-main .el-related h2 { font-size: 20px; }

/* Map: article layers (encyclopedia = sourced, in gold; case files purple; member articles pink) */
.map-layers { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.map-layers .check { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--panel-line); }
.map-layers .ml-w { border-color: rgba(255, 214, 10, .6); } .map-layers .ml-c { border-color: rgba(191, 90, 242, .6); } .map-layers .ml-a { border-color: rgba(255, 107, 157, .6); }
.art-pin { display: grid; place-items: center; border-radius: 9px; transform: rotate(45deg); border: 2px solid rgba(0, 0, 0, .45); }
.art-pin i { transform: rotate(-45deg); font-style: normal; font-size: 13px; line-height: 1; }
.art-pin-w { background: linear-gradient(135deg, #fff3b0, #ffd60a 55%, #ff9f0a); box-shadow: 0 0 0 2px rgba(0, 0, 0, .3), 0 0 18px #ffd60a; }
.art-pin-c { background: linear-gradient(135deg, #f0d4ff, #bf5af2 60%, #7e22ce); box-shadow: 0 0 0 2px rgba(0, 0, 0, .3), 0 0 16px #bf5af2; }
.art-pin-a { background: linear-gradient(135deg, #ffd6e6, #ff6b9d 60%, #be185d); box-shadow: 0 0 0 2px rgba(0, 0, 0, .3), 0 0 14px #ff6b9d; }
.art-cluster { display: grid; place-items: center; border-radius: 12px; background: rgba(255, 214, 10, .92); color: #241a00; font-weight: 800; font-size: 12.5px; box-shadow: 0 0 0 3px rgba(255, 214, 10, .3), 0 0 18px rgba(255, 214, 10, .6); }
.map-art .map-art-k { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; color: #1a1300; }
.map-art .map-art-k.art-pin-c, .map-art .map-art-k.art-pin-a { color: #fff; }
.map-art .map-art-k { transform: none; box-shadow: none; border: 0; }
.map-art .map-art-n { color: var(--accent); }
.map-art .map-art-go { display: block; margin-top: 6px; font-style: normal; font-weight: 700; color: #ffd60a; }

.badge-guest { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--lens); color: var(--text-2); }

/* ---------- Admin → 📍 Article locations ---------- */
.ag-page .stat-row a.stat { color: inherit; text-decoration: none; }
.ag-page .stat-row a.stat.on { outline: 2px solid var(--accent); }
.ag-tools { flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; align-items: center; }
.ag-filter { margin: 6px 0 12px; }
.ag-list { display: grid; gap: 10px; }
.ag-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) auto; gap: 10px 14px; align-items: center; padding: 12px 14px; }
.ag-head { display: grid; gap: 2px; min-width: 0; }
.ag-head b { overflow-wrap: anywhere; }
.ag-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ag-fields input { width: 100%; min-width: 0; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.ag-src.ag-manual { color: var(--accent); font-weight: 650; }
.ag-src.ag-off { color: #ff9f0a; }
@media (max-width: 900px) { .ag-row { grid-template-columns: 1fr; } .ag-actions { justify-content: flex-start; } }
@media (max-width: 520px) { .ag-fields { grid-template-columns: 1fr; } }
.map-art-pl { color: var(--text-2); }

/* ---------- 💛 Donations page (donate.php) ---------- */
.legal-bar .lb-donate { color: #ffd60a; font-weight: 650; }
.donate-page { display: grid; gap: 18px; padding-bottom: 40px; }
.donate-hero { text-align: center; padding-top: 12px; }
.donate-hero .lead { max-width: 620px; margin: 8px auto 0; }
.donate-hero .lead p + p { margin-top: 10px; }
.donate-ufo { font-size: 46px; filter: drop-shadow(0 6px 22px rgba(255, 214, 10, .45)); }
.donate-goal { padding: 18px; }
.dg-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 18px; }
.dg-top b { font-size: 26px; }
.dg-pct { margin-left: auto; font-weight: 700; color: #ffd60a; }
.dg-bar { height: 12px; border-radius: 999px; background: var(--lens); overflow: hidden; margin: 10px 0 12px; }
.dg-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffd60a, #ff9f0a); transition: width .6s; }
.dg-costs { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.dg-costs li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; border-top: 1px solid var(--panel-line); padding-top: 6px; }
.donate-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.donate-btn { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-lg, 18px); color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--dc) 22%, transparent), var(--panel)); border: 1px solid color-mix(in srgb, var(--dc) 45%, transparent); transition: transform .2s; }
.donate-btn:hover { text-decoration: none; transform: translateY(-2px); }
.donate-btn .db-ic { font-size: 26px; }
.donate-btn b { display: block; font-size: 17px; }
.donate-btn small { color: var(--text-2); }
.donate-btn .db-go { margin-left: auto; color: var(--text-2); }
.donate-addr h2, .donate-free h2, .donate-thanks h2 { font-size: 19px; margin-bottom: 8px; }
.da-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--panel-line); }
.da-v { overflow-wrap: anywhere; font-size: 13px; }
.donate-free ul { margin: 0; padding-left: 4px; list-style: none; display: grid; gap: 6px; }
.donate-edit > summary { cursor: pointer; font-weight: 650; }
.donate-edit[open] > summary { margin-bottom: 12px; }
@media (max-width: 520px) { .da-row { grid-template-columns: 1fr auto; } .da-l { grid-column: 1 / -1; font-weight: 650; } }

/* ---------- What else was in the sky? (app/sky_extra.php) ---------- */
.skyx { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--panel-line); }
.skyx h3 { font-size: 17px; margin-bottom: 8px; }
.skyx .sky-notes li > span:last-child { flex: 1 1 auto; min-width: 0; }
.skyx-ai { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--lens); }
.skyx-ai h3 { font-size: 15.5px; margin-bottom: 6px; }
.skyx-found { margin: 6px 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; }
.skyx-ai button { margin-top: 6px; }

/* ---------- Super search (search.php, app/supersearch.php) ---------- */
.ss-tabs { margin: 14px 0 6px; flex-wrap: wrap; }
.ss-tabs .chip b { margin-left: 4px; font-variant-numeric: tabular-nums; opacity: .75; }
.ss-section { margin-top: 22px; }
.ss-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ss-head h2 { font-size: 19px; }
.ss-head h2 .muted { font-size: 14px; font-weight: 600; }
.ss-list { padding: 4px 0; }
.ss-row { display: flex; gap: 12px; padding: 12px 16px; color: var(--text); align-items: flex-start; }
.ss-row + .ss-row { border-top: 1px solid var(--panel-line); }
.ss-row:hover { text-decoration: none; background: var(--lens); }
.ss-ic { font-size: 20px; line-height: 1.3; flex: none; }
.ss-body { display: grid; gap: 3px; min-width: 0; }
.ss-body b { overflow-wrap: anywhere; }
.ss-snip { color: var(--text-2); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.ss-snip mark, .ss-body mark { background: rgba(255, 214, 10, .28); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- 🙋 I saw this too (app/cowitness.php, i-saw-this.php) ---------- */
.cw-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; padding: 7px 14px; border-radius: 999px; margin: 0 8px 8px 0;
  background: rgba(48, 209, 88, .14); color: #30d158; border: 1px solid rgba(48, 209, 88, .35); }
.cw-badge:hover { text-decoration: none; background: rgba(48, 209, 88, .22); }
.cw-section { padding: 18px; }
.cw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cw-head h2 { font-size: 20px; }
.cw-item { padding: 12px 0; border-top: 1px solid var(--panel-line); }
.cw-item.pending { opacity: .8; }
.cw-item p { margin: 6px 0 0; overflow-wrap: anywhere; }
.cw-meta { display: flex; gap: 10px; align-items: center; }
.cw-meta > span { display: grid; min-width: 0; }
.cw-guest { display: grid; place-items: center; background: var(--lens); }
.cw-wait { color: #ff9f0a; font-size: 13.5px; }
.cw-acts { margin-top: 8px; gap: 6px; flex-wrap: wrap; }
.cw-same { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cw-same legend { font-weight: 650; margin-bottom: 6px; }

/* ---------- ⏱ Map time slider (map.php) ---------- */
.map-time-btn.on { background: var(--accent-soft); color: var(--accent); }
.map-time { position: absolute; z-index: 600; left: 50%; transform: translateX(-50%); top: calc(var(--topbar-h, 64px) + 12px); width: min(720px, calc(100% - 24px));
  padding: 10px 14px 12px; border-radius: 18px; display: grid; gap: 8px; }
.map-time[hidden] { display: none; }
.mt-bars { display: flex; align-items: flex-end; gap: 1px; height: 46px; cursor: pointer; }
.mt-bars i { flex: 1 1 0; min-width: 1px; background: rgba(255, 255, 255, .18); border-radius: 2px 2px 0 0; transition: background .2s; }
.mt-bars i.on { background: var(--accent, #30d158); }
.mt-row { display: flex; align-items: center; gap: 12px; }
.mt-row input[type=range] { flex: 1; accent-color: var(--accent, #30d158); }
.mt-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent, #30d158); color: #000; font-size: 15px; font-weight: 800; flex: none; cursor: pointer; }
.mt-label { min-width: 64px; text-align: right; font-size: 20px; font-variant-numeric: tabular-nums; }
.mt-opts { flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.mt-opts label { display: inline-flex; gap: 5px; align-items: center; }
.mt-opts .link-btn { margin-left: auto; }
@media (max-width: 600px) { .map-time { top: calc(var(--topbar-h, 56px) + 6px); padding: 8px 10px 10px; } .mt-bars { height: 34px; } .mt-label { font-size: 16px; min-width: 62px; white-space: nowrap; } .mt-row { gap: 8px; } }

/* ---------- 📂 Project Blue Book (app/bluebook.php, bluebook.php) ---------- */
.ufo-pin.bb { background: radial-gradient(circle at 35% 30%, #d6e9ff, #4f9dff 55%, #1d4f9e); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 12px #4f9dff; width: 14px; height: 14px; }
.map-layers .ml-b { border-color: rgba(79, 157, 255, .6); }
.bb-card { display: flex; gap: 18px; align-items: center; padding: 26px; border-radius: var(--radius-lg, 18px); margin: 0 16px;
  background: linear-gradient(135deg, rgba(79, 157, 255, .16), rgba(255, 214, 10, .08)), var(--panel); border: 1px solid rgba(79, 157, 255, .35); }
@media (min-width: 1000px) { .bb-card { margin: 0; min-height: 260px; } }
.bb-folder { font-size: 64px; filter: drop-shadow(0 8px 24px rgba(79, 157, 255, .4)); }
.bb-text { display: grid; gap: 6px; justify-items: start; }
.bb-text b { font-size: 22px; }
.bb-k { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: #7fb6ff; font-weight: 700; }
.bb-page { display: grid; gap: 18px; padding-bottom: 40px; }
.bb-years { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 12px; }
.bb-years a { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; color: var(--text-3); font-size: 10px; text-decoration: none; }
.bb-years a span { width: 100%; background: linear-gradient(#7fb6ff, #4f9dff); border-radius: 3px 3px 0 0; min-height: 2px; }
.bb-years a:hover span { background: #ffd60a; }
.bb-years a em { font-style: normal; margin-top: 4px; writing-mode: vertical-rl; transform: rotate(180deg); }
.bb-progress { height: 10px; border-radius: 999px; background: var(--lens); overflow: hidden; }
.bb-progress span { display: block; height: 100%; background: #4f9dff; transition: width .3s; }
@media (max-width: 600px) { .bb-card { flex-direction: column; text-align: center; } .bb-text { justify-items: center; } .bb-years a em { display: none; } }
.mt-opts select { width: auto; min-width: 0; padding: 4px 28px 4px 10px; height: auto; font-size: 13px; }

/* ---------- 📥 Import a subreddit (reddit-import.php, assets/rscreen.js) ---------- */
.rimport-page .card { margin-bottom: 16px; }
.ri-run { margin: 12px 0 8px; flex-wrap: wrap; gap: 10px; align-items: center; }
.ri-log { max-height: 340px; overflow: auto; display: grid; gap: 4px; font-size: 13.5px; margin: 8px 0 12px; }
.ri-log > div { display: flex; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 8px; background: var(--lens); overflow-wrap: anywhere; }
.ri-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.danger-zone { border: 1px solid rgba(255, 69, 58, .45); }
.btn.danger { background: #ff453a; color: #fff; }
.hold-note { display: block; color: #ff9f0a; font-size: 12.5px; margin-top: 2px; }
.warn { color: #ff9f0a; }
.rimport-page .inline-form { flex-wrap: wrap; gap: 8px; }
.ri-find { margin: 10px 0; }
.ri-posts { display: grid; }
.ri-post { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--panel-line); }
.ri-st { font-size: 18px; }
.ri-main { display: grid; gap: 2px; min-width: 0; }
.ri-main b { overflow-wrap: anywhere; font-weight: 600; }
.ri-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .ri-post { grid-template-columns: auto minmax(0, 1fr); } .ri-act { grid-column: 2; justify-content: flex-start; } }
.bb-toggle { cursor: pointer; border: 1px solid var(--panel-line); }
.bb-page { position: relative; flex: none; width: 150px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); background: #fff; }
.bb-page img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.bb-page span { position: absolute; left: 6px; bottom: 6px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; }
.rimport-page .btn { white-space: normal; text-align: left; max-width: 100%; height: auto; }

/* ---------- 🧹 Bulk delete (bulk-delete.php) ---------- */
.bulk-page .card { margin-bottom: 16px; }
.bd-what { border: 0; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.bd-what legend { font-weight: 650; margin-bottom: 6px; }
.bd-top { margin: 6px 0 12px; }
.bd-top .tag .muted { font-size: 11px; }
.bd-sample { margin: 8px 0 14px; padding-left: 18px; display: grid; gap: 3px; }
.bd-sample a { overflow-wrap: anywhere; }
#bdGo .bb-progress { margin-top: 12px; }
.ri-flag-acts { margin: 6px 0 10px; flex-wrap: wrap; gap: 8px; align-items: center; }
.ri-tick { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ri-tick img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.ri-wait a { font-weight: 650; }
.rimport-page .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.rimport-page .form-row .field input { width: 100%; min-width: 0; }
.rimport-page .form-row, .rimport-page .form-row .field { min-width: 0; }
.rimport-page form.form { grid-template-columns: minmax(0, 1fr); } .rimport-page select { max-width: 100%; }
.rimport-page label.check { flex-wrap: wrap; min-width: 0; } .rimport-page label.check small { white-space: normal; min-width: 0; overflow-wrap: anywhere; }

/* Sighting page: poll, other witnesses and alerts side by side (compact) */
.entry-engage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 16px 0; align-items: start; }
.entry-engage > .card { margin: 0; padding: 14px 16px; }
.entry-engage h2 { font-size: 15px; margin: 0 0 8px; }
.entry-engage .cw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.entry-engage .cw-head h2 { margin: 0; }
.entry-engage p { margin: 4px 0 0; }
.entry-engage .poll-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 6px 0; }
.entry-engage .poll-opt { padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.entry-engage .alert-links .pill { font-size: 13px; padding: 5px 10px; }
@media (min-width: 900px) {
  .entry-engage { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .entry-engage > .poll { grid-row: span 2; }
}
.so-kind { color: var(--accent); }
.table-scroll { overflow-x: auto; max-width: 100%; }
.stats-edit .pts-total { font-size: 15px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: 2px; }
.nt-siteonly { justify-self: center; white-space: nowrap; }
/* Admin → Points */
.points-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px 16px; }
.points-grid .pts-in { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.points-grid .pts-in input { width: 110px; flex: none; }
.points-src { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.points-top { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.points-top b { color: var(--accent); margin-left: 6px; }
.points-page .inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.points-page .inline-form .btn { white-space: normal; max-width: 100%; }
.pts-one { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 12px; }
.pts-one .btn { white-space: normal; }

.link-problem.soft { color: var(--text-2); background: none; border: 0; padding: 4px 0 0; font-size: 12.5px; }

/* Sighting page: sky conditions, collapsed until opened */
.sky-wrap > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sky-wrap > summary::-webkit-details-marker { display: none; }
.sky-wrap > summary::after { content: '▾'; margin-left: auto; color: var(--text-3); transition: transform .2s; }
.sky-wrap[open] > summary::after { transform: rotate(180deg); }
.sky-wrap .sky-sum-title { font-weight: 700; font-size: 16px; }
.sky-wrap[open] > summary { margin-bottom: 10px; }
.sky-wrap .sky-head h2 { display: none; }
.sky-wrap .sky { display: grid; }

/* Admin → Official UFO files */
.k-dvids { --k: #c8a14b; }
.gov-steps { margin: 6px 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.gov-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gov-upload input[type=file] { max-width: 100%; }
.gov-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 10px; }
.gov-table th, .gov-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--panel-line); white-space: nowrap; }
.gov-types { border: 0; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gov-page .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gov-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gov-recent a { display: grid; gap: 4px; font-size: 13px; color: var(--text); }
.gov-recent img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--field); }

/* Official U.S. government files: badges, banner, tags, page */
.tile-gov { position: absolute; left: 6px; bottom: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px;
  font-size: 11px; line-height: 1.5; color: #1a1408; background: linear-gradient(135deg, #f3d27a, #c99a2e); box-shadow: 0 1px 4px rgba(0,0,0,.35); pointer-events: none; }
.tile-gov b { font-weight: 800; }
.grid.dense .tile-gov, .home-sec.dense .tile-gov { font-size: 0; padding: 3px; } .grid.dense .tile-gov b, .home-sec.dense .tile-gov b { display: none; }
.tile.is-gov { outline: 1px solid rgba(214, 170, 70, .45); outline-offset: -1px; }
.gov-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; color: var(--text); text-decoration: none;
  background: linear-gradient(135deg, rgba(243, 210, 122, .18), rgba(201, 154, 46, .08)); border: 1px solid rgba(214, 170, 70, .5); }
.gov-banner:hover { border-color: #d6aa46; }
.gov-banner .gov-seal { font-size: 24px; }
.gov-banner b { display: block; color: #e7c25e; font-size: 14px; letter-spacing: .02em; }
.gov-banner small { color: var(--text-2); font-size: 12.5px; }
.tag.tag-official { background: linear-gradient(135deg, rgba(243, 210, 122, .25), rgba(201, 154, 46, .15)); border-color: rgba(214, 170, 70, .55); color: #e7c25e; font-weight: 650; }
:root[data-theme="light"] .gov-banner b, :root[data-theme="light"] .tag.tag-official { color: #8a6412; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .gov-banner b, :root:not([data-theme="dark"]) .tag.tag-official { color: #8a6412; } }
.utl-badge-gov { background: rgba(214, 170, 70, .18); color: #e7c25e; text-decoration: none; }
.gov-official .gov-hero { display: flex; gap: 16px; align-items: flex-start; margin: 16px 0; border: 1px solid rgba(214, 170, 70, .45);
  background: linear-gradient(135deg, rgba(243, 210, 122, .12), transparent 60%); }
.gov-hero-seal { font-size: 44px; line-height: 1; }
.gov-kicker { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #e7c25e; font-weight: 700; }
.gov-official .page-title { margin: 2px 0 6px; }
.gov-lead { margin: 0 0 8px; color: var(--text-2); max-width: 760px; }
.gov-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 14px; }
.gov-stats b { color: var(--text); }
.gov-batches { margin: 0 0 10px; }
.gov-batches small { color: var(--text-3); }
.gov-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.gov-filters input[type=search] { flex: 1 1 220px; min-width: 0; }
.gov-filters select { flex: 0 1 auto; max-width: 100%; }
.gov-batch { margin: 0 0 26px; }
.gov-batch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 10px; }
.gov-batch-head h2 { margin: 0; font-size: 20px; } .gov-batch-head h2 a { color: var(--text); text-decoration: none; }
.gov-batch-head .hs-more { margin-left: auto; }
.gov-official .gov-grid { margin: 0 -16px; }
@media (min-width: 900px) { .gov-official .gov-grid { margin: 0; } }
.gov-url { display: flex; gap: 6px; flex: 1 1 320px; min-width: 0; } .gov-url input { flex: 1; min-width: 0; }
@media (max-width: 600px) { .gov-official .gov-hero { flex-direction: column; gap: 6px; } .gov-hero-seal { font-size: 32px; } }
.gov-filters input[type=search] { width: auto; flex: 1 1 260px; }
.gov-filters select { width: auto; flex: 0 1 200px; min-width: 0; }
.gov-filters .btn { flex: none; }
@media (max-width: 600px) { .gov-filters select { flex: 1 1 140px; } }
.gov-batches .chip { font-size: 13px; }
/* Official documents & audio lists (/official, encyclopedia pages) */
.gov-docs-box { margin: 12px 0 0; border: 1px solid var(--panel-line); border-radius: 14px; padding: 10px 14px; background: var(--panel); }
.gov-docs-box > summary { cursor: pointer; font-weight: 650; }
.gov-doc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.gov-doc-list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gov-doc-list a { color: var(--text); text-decoration: none; }
.gov-doc-list .gd-main, .gov-docs .gov-doc-list li > a { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; flex: 1; min-width: 0; }
.gov-doc-list .gd-main:hover, .gov-docs .gov-doc-list li > a:hover { background: var(--field); }
.gov-doc-list .gd-ic { font-size: 20px; line-height: 1.2; }
.gov-doc-list b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.gov-doc-list small { color: var(--text-3); font-size: 12px; }
.gov-doc-list .gd-pdf { flex: none; font-size: 12px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--panel-line); color: var(--text-2); }
