/* ═══════════════════════════════════════════════════════
   Design Tokens
═══════════════════════════════════════════════════════ */
:root {
  /* Neutrals */
  --black:  #0A0A0A;
  --g900:   #18181B;
  --g700:   #36363D;
  --g600:   #4A4A53;
  --g500:   #61616B;
  --g400:   #82828C;
  --g300:   #C7C7CD;
  --g200:   #E4E4E7;
  --g100:   #F4F4F5;
  --g50:    #FAFAFA;
  --white:  #FFFFFF;

  /* Structural */
  --line:   #E2E2E6;
  --paper:  #F4F4F7;

  /* Section backgrounds */
  --slate:  #F5F7FA;
  --cream:  #FAF4E8;
  --amber:  #FBF1E0;

  /* One accent — Telegram blue, used sparingly */
  --ton:    #0098EA;

  /* Soft card tints — used on the services page */
  --tint-cream:   linear-gradient(155deg, #FCF8EF 0%, #F6EEDB 100%);
  --tint-blue:    linear-gradient(155deg, #F6F9FD 0%, #EAF0F8 100%);
  --tint-sage:    linear-gradient(155deg, #F4F8F3 0%, #E8F0E7 100%);
  --tint-neutral: linear-gradient(155deg, #FBFBFA 0%, #F1F1EE 100%);
  --bd-cream:   #EDE3CD;
  --bd-blue:    #E0E7F1;
  --bd-sage:    #DCE6DB;
  --bd-neutral: #E7E7E3;

  /* Layout */
  --max-w:      1180px;
  --pad-x:      2rem;
  --header-h:   62px;

  /* Radius */
  --r-btn:     8px;
  --r-card:    12px;
  --r-card-lg: 14px;
  --r-lg:      16px;
  --r-pill:    999px;
}

/* ═══════════════════════════════════════════════════════
   Reset
═══════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Kill the blue/grey tap-highlight box on mobile when tapping links/buttons */
* {
  -webkit-tap-highlight-color: transparent;
}
a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--g600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
  font-optical-sizing: auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--black);
  font-weight: 600;
  line-height: 1.06;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, button, textarea, select { font-family: inherit; }

/* ═══════════════════════════════════════════════════════
   Container
═══════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ═══════════════════════════════════════════════════════
   Kicker / Eyebrow label
═══════════════════════════════════════════════════════ */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g500);
  margin-bottom: 14px;
}

.kicker-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--g400);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   Header
═══════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-tg {
  font-size: 22px;
  color: var(--ton);
  flex-shrink: 0;
  line-height: 1;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}

/* ── Telegram Lottie icon ──
   .i-tg         plane only, inherits text color
   .i-tg-circle  plane on a blue TON circle (drop-in for the fa-telegram brand-mark)
*/
.i-tg,
.i-tg-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: -0.15em;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.i-tg > svg,
.i-tg-circle > svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.i-tg-circle {
  background: var(--ton);
  color: #fff;
  border-radius: 50%;
}
.i-tg-circle > svg {
  width: 64% !important;
  height: 64% !important;
}

.logo-word {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.03em;
}

.logo-word span {
  color: var(--g400);
  font-weight: 400;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 2px;
}

.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g500);
  padding: 0 12px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: color 0.12s;
  letter-spacing: -0.005em;
}

.nav a:hover {
  color: var(--black);
}

.nav-submit {
  margin-left: 4px;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-btn) !important;
  padding: 0 14px !important;
  height: 34px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--g600) !important;
  transition: border-color 0.12s, color 0.12s !important;
}
.nav-submit:hover {
  border-color: var(--g300) !important;
  color: var(--black) !important;
}

.nav-build {
  margin-left: 4px;
  background: var(--black) !important;
  color: white !important;
  border-radius: var(--r-btn) !important;
  padding: 0 16px !important;
  height: 34px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  transition: opacity 0.12s !important;
}
.nav-build:hover { opacity: 0.86 !important; color: white !important; }

.nav-cta {
  margin-left: 6px;
  background: var(--ton) !important;
  color: white !important;
  border-radius: var(--r-btn) !important;
  padding: 0 18px !important;
  height: 34px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  transition: opacity 0.12s !important;
}

.nav-cta:hover {
  opacity: 0.86 !important;
  color: white !important;
}

/* ── Mobile menu ── */
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--white);
  cursor: pointer;
  transition: border-color .12s;
}
.nav-toggle:hover { border-color: var(--g300); }
.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--black);
  border-radius: 2px;
  transition: transform .16s ease, opacity .16s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px var(--pad-x) 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--g700);
  border-radius: var(--r-btn);
  transition: color .12s, background .12s;
}
.mobile-nav a i { width: 18px; font-size: 14px; color: var(--g400); }
.mobile-nav a:hover { color: var(--black); background: var(--paper); }
.mobile-nav-cta {
  margin-top: 8px;
  justify-content: center;
  background: var(--ton);
  color: white !important;
  padding: 13px !important;
}
.mobile-nav-cta:hover { opacity: .9; background: var(--ton); }

/* ═══════════════════════════════════════════════════════
   Buttons
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-btn);
  padding: 11px 22px;
  cursor: pointer;
  transition: opacity 0.12s, border-color 0.12s, background 0.12s;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover { opacity: 0.82; }

.btn-ghost {
  background: transparent;
  color: var(--g700);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--black); background: rgba(0,0,0,0.04); }

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--line);
}

.btn-secondary:hover { border-color: var(--g300); }

/* ═══════════════════════════════════════════════════════
   Tags / Pills
═══════════════════════════════════════════════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--g600);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  white-space: nowrap;
  background: var(--white);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   Section base + tinted variants
═══════════════════════════════════════════════════════ */
.section         { padding: 88px 0; }
.section-slate   { background: var(--slate); }
.section-cream   { background: var(--cream); }
.section-amber   { background: var(--amber); }

/* Section header (kicker + h2 + optional link) */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
  margin-top: 6px;
}

.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--g500);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  transition: color 0.12s;
  flex-shrink: 0;
}

.section-link:hover { color: var(--black); }

/* ═══════════════════════════════════════════════════════
   Hero
═══════════════════════════════════════════════════════ */
.hero {
  background: var(--white);
  padding: 100px 0 88px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 58px;
  letter-spacing: -0.05em;
  line-height: 1.04;
  color: var(--black);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 17px;
  color: var(--g500);
  line-height: 1.58;
  margin-bottom: 40px;
  letter-spacing: -0.005em;
}

/* Hero search form */
.hero-search {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 6px 6px 6px 22px;
  gap: 12px;
  margin-bottom: 28px;
  transition: border-color 0.2s, background 0.2s;
}

.hero-search:focus-within {
  border-color: var(--ton);
  background: rgba(0, 152, 234, 0.02);
}

.hero-search:focus-within .hero-search-icon {
  color: var(--ton);
}

.hero-search-icon {
  color: var(--g400);
  font-size: 15px;
  flex-shrink: 0;
  transition: color 0.2s;
}

/* Wrapper that holds real input + fake animated placeholder */
.search-ph-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.hero-search input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  background: transparent;
  padding: 12px 0;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
}

/* Fake animated placeholder */
.search-ph {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--g400);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.search-ph.ph-out {
  opacity: 0;
  transform: translateY(calc(-50% - 10px));
}
.search-ph.ph-in {
  opacity: 0;
  transform: translateY(calc(-50% + 10px));
}

.hero-search button {
  background: var(--ton);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  height: 42px;
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  transition: opacity 0.12s;
}

.hero-search button:hover { opacity: 0.86; }

/* Category pills under search */
.hero-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-cats-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--g400);
  letter-spacing: 0.01em;
}

.hero-cats a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--g600);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  transition: border-color 0.12s, color 0.12s;
}

.hero-cats a:hover {
  border-color: var(--g300);
  color: var(--black);
}

/* Stats line */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  color: var(--g600);
}

.hero-stats-item {
  padding: 0 22px;
  letter-spacing: -0.005em;
}

.hero-stats-item b {
  font-weight: 600;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}

.hero-stats-item:not(:first-child) {
  border-left: 1px solid var(--line);
}

/* value-strip replaced by stats-dark */



/* ═══════════════════════════════════════════════════════
   App Cards
═══════════════════════════════════════════════════════ */
.apps-grid,
.apps-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.app-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.12s, border-color 0.12s;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.app-card:hover {
  background: var(--paper);
  border-color: var(--g300);
}

/* New card head: monogram + info + external icon */
.app-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-card-info {
  flex: 1;
  min-width: 0;
}

.app-card-ext {
  font-size: 10px;
  color: var(--g300);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.12s, color 0.12s;
}
.app-card:hover .app-card-ext {
  opacity: 1;
  color: var(--g400);
}

/* Keep .app-header for backwards compat on homepage spotlight */
.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-monogram {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

/* Monogram — single neutral tone */
[data-cat] { background: var(--slate); color: var(--g500); }

.app-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 3px;
}

/* Verification badges — text pills */
.vbadge {
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  flex-shrink: 0;
}

.vbadge i { font-size: 10px; }

.vbadge-tg {
  background: rgba(0,152,234,0.1);
  color: #0085CC;
}

.vbadge-us {
  background: var(--g100);
  color: var(--g600);
  border: 1px solid var(--line);
}

.app-desc {
  font-size: 13px;
  color: var(--g500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-footer {
  margin-top: auto;
  padding-top: 4px;
}

.app-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ton);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.12s;
  text-decoration: none;
}

.app-link:hover { opacity: 0.72; }

/* ═══════════════════════════════════════════════════════
   Category Rows  (bordered container with hairline dividers)
═══════════════════════════════════════════════════════ */
.cats-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cats-container {
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  background: var(--white);
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.cat-row:not(:first-child) {
  border-top: 1px solid var(--line);
}

.cat-row:hover { background: var(--paper); }

.cat-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--g600);
}

.cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.015em;
  flex: 1;
}

.cat-count {
  font-size: 12.5px;
  color: var(--g400);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}

.cat-arrow {
  color: var(--g300);
  font-size: 10px;
}

/* ═══════════════════════════════════════════════════════
   Editorial list  (blog posts on homepage + blog listing)
═══════════════════════════════════════════════════════ */
.editorial-list {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}

.editorial-item {
  display: grid;
  grid-template-columns: 96px auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.editorial-item:not(:first-child) {
  border-top: 1px solid var(--line);
}

.editorial-item:hover { background: var(--paper); }

.editorial-item:hover .editorial-title { color: var(--ton); }

.editorial-date {
  font-size: 12px;
  color: var(--g400);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.editorial-body { min-width: 0; }

.editorial-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editorial-excerpt {
  font-size: 13px;
  color: var(--g500);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editorial-time {
  font-size: 12px;
  color: var(--g400);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ═══════════════════════════════════════════════════════
   Submit slab - sits between Browse (cream) and Articles (white)
═══════════════════════════════════════════════════════ */
.submit-slab-section {
  background: var(--white);
  padding: 56px 0 64px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Contained card, so the section blends with the bands above and below
   instead of introducing a third competing background. */
.submit-slab-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 44px 40px 40px;
}



.submit-slab-h {
  font-size: 34px; font-weight: 600; color: var(--black);
  letter-spacing: -0.03em; line-height: 1.1;
  margin: 0 0 14px;
}
.submit-slab-sub {
  font-size: 16px; line-height: 1.55;
  color: var(--g700); margin: 0 auto 28px;
  max-width: 520px;
}
.submit-slab-cta-row {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px; flex-wrap: wrap; justify-content: center;
}
.submit-slab-btn {
  padding: 12px 20px;
  font-size: 14px;
}
.submit-slab-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--g700); text-decoration: none;
  border-radius: var(--r-btn);
  transition: background .15s, color .15s;
}
.submit-slab-ghost:hover { color: var(--black); background: rgba(0,0,0,0.04); }
.submit-slab-trust {
  font-size: 12.5px; color: var(--g500);
  margin: 0; letter-spacing: -0.005em;
}

/* Floating app constellation */
.submit-slab-constellation {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 0 auto 24px;
  flex-wrap: wrap;
}
.ss-icon {
  width: 48px; height: 48px; border-radius: 13px;
  flex-shrink: 0;
  will-change: transform;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
}
.ss-icon img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.ss-icon-empty {
  background: var(--white);
  border: 2px dashed var(--ton);
  color: var(--ton);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  position: relative;
}
.ss-icon-empty::after {
  content: 'You';
  position: absolute;
  bottom: -22px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700;
  color: var(--ton); white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Gentle staggered float - slow and organic */
@keyframes ss-float-a { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ss-float-b { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ss-float-c { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.ss-icon:nth-child(1) { animation: ss-float-a 4.5s ease-in-out infinite; }
.ss-icon:nth-child(2) { animation: ss-float-b 5.5s ease-in-out infinite .3s; }
.ss-icon:nth-child(3) { animation: ss-float-c 5s ease-in-out infinite .6s; }
.ss-icon:nth-child(4) { animation: ss-float-b 6s ease-in-out infinite .9s; }
.ss-icon:nth-child(5) { animation: ss-float-a 4.5s ease-in-out infinite 1.2s; }
.ss-icon:nth-child(6) { animation: ss-float-c 5.5s ease-in-out infinite 1.5s; }
.ss-icon:nth-child(7) { animation: ss-float-a 5s ease-in-out infinite 1.8s; }

@media (prefers-reduced-motion: reduce) {
  .ss-icon, .ss-blob { animation: none !important; }
}

@media (max-width: 720px) {
  .submit-slab-section { padding: 56px 0 60px; }
  .submit-slab-h { font-size: 28px; }
  .submit-slab-sub { font-size: 14.5px; }
  .ss-icon { width: 40px; height: 40px; border-radius: 11px; }
  .submit-slab-constellation { gap: 8px; margin-bottom: 24px; padding-bottom: 20px; }
}

/* ═══════════════════════════════════════════════════════
   Newsletter
═══════════════════════════════════════════════════════ */
.newsletter {
  background: var(--amber);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.newsletter-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.1;
}

.newsletter p {
  font-size: 15px;
  color: var(--g600);
  margin-bottom: 28px;
  line-height: 1.55;
}

.newsletter-form {
  display: flex;
  border: 1px solid var(--g300);
  border-radius: var(--r-btn);
  overflow: hidden;
  background: var(--white);
}

.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--black);
  background: transparent;
  min-width: 0;
}

.newsletter-form input::placeholder { color: var(--g400); }

.newsletter-form button {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.12s;
}

.newsletter-form button:hover { opacity: 0.82; }

.newsletter-note {
  font-size: 12px;
  color: var(--g400);
  margin-top: 14px;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   Footer
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-cols {
  display: contents;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--g500);
  line-height: 1.6;
  max-width: 220px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-link {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--g500);
  transition: border-color 0.12s, color 0.12s;
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--g300);
  color: var(--black);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 5px;
}

.footer-col a {
  font-size: 14px;
  color: var(--g600);
  transition: color 0.12s;
}

.footer-col a:hover { color: var(--black); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 12.5px;
  color: var(--g400);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 12.5px;
  color: var(--g400);
  transition: color 0.12s;
}

.footer-bottom-links a:hover { color: var(--g600); }

/* ═══════════════════════════════════════════════════════
   Page Intro  (shared: apps, blog)
═══════════════════════════════════════════════════════ */
.page-intro {
  padding: 64px 0 0;
}

.page-intro-inner {
  padding-bottom: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.page-intro h1 {
  font-size: 40px;
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin-bottom: 10px;
}

.page-intro p {
  font-size: 15px;
  color: var(--g500);
}

/* ═══════════════════════════════════════════════════════
   Filter Tabs  (underline style)
═══════════════════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--g500);
  padding: 14px 18px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.filter-tab:hover { color: var(--black); }

.filter-tab.active {
  color: var(--black);
  border-bottom-color: var(--black);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   Search Bar  (apps page standalone)
═══════════════════════════════════════════════════════ */
.search-bar {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  gap: 12px;
  background: white;
  transition: border-color 0.2s;
  margin-bottom: 28px;
}

.search-bar:focus-within {
  border-color: var(--ton);
}
.search-bar:focus-within .search-icon {
  color: var(--ton);
}

.search-icon {
  color: var(--g400);
  font-size: 14px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 0;
  font-size: 14.5px;
  color: var(--black);
  background: transparent;
  letter-spacing: -0.005em;
}

.search-bar input::placeholder { color: var(--g400); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.empty-state i {
  font-size: 28px;
  color: var(--g300);
  margin-bottom: 18px;
  display: block;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--g600);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.empty-state p {
  font-size: 14px;
  color: var(--g400);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════
   Blog: Featured post
═══════════════════════════════════════════════════════ */
.blog-featured {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  padding: 40px;
  margin-bottom: 14px;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}

.blog-featured:hover {
  background: var(--paper);
  border-color: var(--g300);
}

.blog-featured:hover .blog-featured-title { color: var(--ton); }

.blog-featured-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.blog-featured-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g500);
}

.blog-featured-date {
  font-size: 12px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
}

.blog-featured-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 14px;
  transition: color 0.12s;
}

.blog-featured-excerpt {
  font-size: 15px;
  color: var(--g500);
  line-height: 1.6;
  margin-bottom: 24px;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.blog-featured-read {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--g500);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Blog: Posts list */
.posts-list {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}

.post-list-item {
  display: grid;
  grid-template-columns: 100px auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.post-list-item:not(:first-child) {
  border-top: 1px solid var(--line);
}

.post-list-item:hover { background: var(--paper); }

.post-list-item:hover .post-list-title { color: var(--ton); }

.post-list-date {
  font-size: 12px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.post-list-body { min-width: 0; }

.post-list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  transition: color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.post-list-excerpt {
  font-size: 13px;
  color: var(--g500);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-list-time {
  font-size: 12px;
  color: var(--g400);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ═══════════════════════════════════════════════════════
   Post page
═══════════════════════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 99;
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ton);
  transition: width 0.1s linear;
}

.post-page {
  padding-bottom: 88px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g500);
  padding: 32px 0 0;
  transition: color 0.12s;
  text-decoration: none;
}

.post-back:hover { color: var(--black); }

.post-page-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.post-meta-sep {
  color: var(--g300);
  font-size: 11px;
}

.post-meta-date,
.post-meta-time {
  font-size: 13px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-page article > h1 {
  font-size: 44px;
  letter-spacing: -0.05em;
  line-height: 1.06;
  color: var(--black);
  margin-bottom: 22px;
  max-width: 740px;
}

.post-lede {
  font-size: 17px;
  color: var(--g600);
  line-height: 1.62;
  letter-spacing: -0.005em;
  max-width: 660px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

/* Two-column layout */
.post-layout {
  display: grid;
  /* minmax(0,...) rather than 1fr: a 1fr track takes its minimum from
     max-content, so one wide code block or table inside the article was
     widening the whole column and pushing the page sideways. */
  grid-template-columns: minmax(0, 1fr) 256px;
  gap: 64px;
  align-items: start;
}
.post-content { min-width: 0; }

/* Article body — Source Serif 4 */
.post-content {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--g700);
  font-optical-sizing: auto;
  font-feature-settings: normal;
}

.post-content h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-top: 52px;
  margin-bottom: 18px;
  line-height: 1.2;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

.post-content h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-top: 40px;
  margin-bottom: 14px;
  line-height: 1.3;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

.post-content p { margin-bottom: 22px; }
.post-content p:last-child { margin-bottom: 0; }

.post-content a {
  color: var(--ton);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }

.post-content strong {
  font-weight: 600;
  color: var(--g900);
}

.post-content code {
  font-family: 'SF Mono','Fira Code','Fira Mono',monospace;
  font-size: 0.84em;
  background: var(--g100);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--g700);
}

.post-content pre {
  background: var(--g900);
  border-radius: 8px;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 28px;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--g200);
  font-size: 14px;
  border-radius: 0;
}

.post-content blockquote {
  border-left: 2px solid var(--ton);
  padding-left: 22px;
  margin-bottom: 22px;
  color: var(--g600);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 44px 0;
}

/* Sidebar TOC */
.post-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.toc-widget {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
}

.toc-widget-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 14px;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

.toc-widget .toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-widget .toc li { margin-bottom: 0; }

.toc-widget .toc a {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--g500);
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--line);
  transition: color 0.12s, border-color 0.12s;
  line-height: 1.4;
  text-decoration: none;
}

.toc-widget .toc a:hover {
  color: var(--black);
  border-left-color: var(--g300);
}

.toc-widget .toc a.toc-active {
  color: var(--black);
  font-weight: 500;
  border-left-color: var(--ton);
}

/* Share row */
.post-share {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.post-share-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--g400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--g600);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
  background: none;
  text-decoration: none;
  font-family: inherit;
}

.share-btn:hover {
  border-color: var(--g300);
  color: var(--black);
}

/* Related posts */
.related-posts {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.related-posts h3 {
  font-size: 18px;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.related-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}

.related-card:hover {
  background: var(--paper);
  border-color: var(--g300);
}

.related-card:hover .related-title { color: var(--ton); }

.related-date {
  font-size: 12px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
}

.related-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.12s;
}

.related-excerpt {
  font-size: 13px;
  color: var(--g500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   404 page
═══════════════════════════════════════════════════════ */
.not-found {
  text-align: center;
  padding: 120px 0;
}

.not-found-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 22px;
}

.not-found h2 {
  font-size: 40px;
  letter-spacing: -0.045em;
  color: var(--black);
  margin-bottom: 12px;
}

.not-found p {
  font-size: 15px;
  color: var(--g500);
  margin-bottom: 36px;
}

.not-found-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.not-found-arrow {
  color: var(--g400);
  margin: 0 auto 28px;
  display: block;
  width: 80px;
}

/* ═══════════════════════════════════════════════════════
   Toast
═══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--black);
  color: var(--white);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

.toast button {
  background: none;
  border: none;
  color: var(--g500);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.toast-check { color: #4ade80; }

/* ═══════════════════════════════════════════════════════
   Responsive
═══════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  :root { --pad-x: 1.25rem; }

  /* Full nav collapses into the mobile menu below */
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .hero               { padding: 64px 0 56px; }
  .hero h1            { font-size: 40px; }
  .hero-sub           { font-size: 15px; }
  .hero-stats-item    { padding: 0 12px; }

  .value-container {
    grid-template-columns: 1fr;
  }
  .value-item:not(:first-child) {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .value-item { padding: 28px 24px; }

  .apps-grid,
  .apps-full-grid     { grid-template-columns: 1fr 1fr; }

  .cats-layout        { grid-template-columns: 1fr; }

  .editorial-item     { grid-template-columns: auto 1fr auto; }
  .editorial-date     { display: none; }

  .post-layout        { grid-template-columns: minmax(0, 1fr); }
  .post-sidebar       { display: none; }
  .post-page article > h1 { font-size: 32px; }

  .footer-inner       { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols        { display: flex; flex-direction: column; gap: 40px; }
  .footer-bottom      { flex-direction: column; gap: 12px; text-align: center; }

  .related-grid       { grid-template-columns: 1fr; }

  .post-list-item     { grid-template-columns: auto 1fr auto; }
  .post-list-date     { display: none; }

  .blog-featured      { padding: 28px; }
  .blog-featured-title { font-size: 22px; }

  .section            { padding: 64px 0; }
  .page-intro         { padding-top: 48px; }
}

@media (max-width: 600px) {
  .hero h1            { font-size: 32px; }
  .hero-stats         { flex-direction: column; gap: 10px; }
  .hero-stats-item    { border-left: none !important; padding: 0; }

  .apps-grid,
  .apps-full-grid     { grid-template-columns: 1fr; }

  .not-found-actions  { flex-direction: column; align-items: center; }
  .section-header     { flex-direction: column; align-items: flex-start; gap: 12px; }

  .post-list-item     { grid-template-columns: 1fr; gap: 8px; }
  .post-list-time     { display: none; }

  .editorial-item     { grid-template-columns: 1fr; gap: 6px; padding: 16px 20px; }
  .editorial-time     { display: none; }

  .filter-tab         { padding: 12px 14px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════
   Hero: split-column layout
═══════════════════════════════════════════════════════ */
.hero {
  padding: 84px 0 76px;
  background: var(--slate);
  border-bottom: 1px solid var(--line);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}

/* Override the centered defaults for left-aligned hero */
.hero-left { text-align: left; }
.hero-left h1 { font-size: 72px; line-height: 1.03; margin-bottom: 22px; letter-spacing: -0.045em; font-weight: 600; }
.rotate-word {
  display: inline-block;
  color: var(--ton);
  transition: opacity .26s ease, transform .26s ease;
}
.rotate-word.rotate-word-out { opacity: 0; transform: translateY(-0.28em); }
@media (prefers-reduced-motion: reduce) { .rotate-word { transition: none; } }
.hero-left .hero-sub { font-size: 16.5px; line-height: 1.65; margin-bottom: 32px; color: var(--g600); max-width: 400px; }
.hero-left .hero-search { margin-bottom: 20px; }
.hero-left .hero-cats { justify-content: flex-start; }
.hero-left .hero-stats { justify-content: flex-start; }
.hero-left .hero-stats-item:first-child { padding-left: 0; }

/* Right-side app preview panel */
.hero-apps-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  background: white;
  /* featured card now has no header above it */
}
.hero-apps-panel > a.hero-app-main:first-child {
  border-top: none;
}

.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--slate);
}

.hero-panel-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--g500);
}

.hero-panel-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--g400);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.12s;
  text-decoration: none;
}

.hero-panel-link:hover { color: var(--black); }

.hero-app-main {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}

.hero-app-main:hover { background: var(--paper); }

.hero-app-main-desc {
  font-size: 13px;
  color: var(--g500);
  line-height: 1.5;
  margin: 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.hero-app-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.hero-app-row:hover { background: var(--paper); }

.hero-app-row-mono {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-app-row-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.hero-app-row-cat {
  font-size: 12px;
  color: var(--g400);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   Featured apps: spotlight layout (1 big + 2 small)
═══════════════════════════════════════════════════════ */
.apps-spotlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.spotlight-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, background 0.12s;
  background: white;
}

.spotlight-card:hover {
  border-color: var(--g300);
  background: var(--paper);
}

.spotlight-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.spotlight-mono {
  width: 52px !important;
  height: 52px !important;
  border-radius: 13px !important;
  font-size: 17px !important;
}

.spotlight-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--g300);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
  padding-top: 2px;
}

.spotlight-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 7px;
}

.spotlight-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--g500);
  margin: 12px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  flex: 1;
}

.spotlight-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ton);
  padding-top: 22px;
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════
   Blog spotlight cards — mirror the app spotlight pattern
═══════════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.blog-spotlight {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  background: var(--white);
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s, background .12s;
}
.blog-spotlight:hover {
  border-color: var(--g300);
  background: var(--paper);
}
.blog-spotlight-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.blog-spotlight-date {
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.blog-spotlight-date b {
  font-size: 22px; font-weight: 600; color: var(--black);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.blog-spotlight-date span {
  font-size: 10.5px; color: var(--g500);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
  margin-top: 2px;
}
.blog-spotlight-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--g300);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
  padding-top: 2px;
}
.blog-spotlight-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 12px;
}
.blog-spotlight-tags {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.blog-spotlight-time {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: var(--g100); color: var(--g600);
}
.blog-spotlight-time i { font-size: 9px; }
.blog-spotlight-excerpt {
  font-size: 13px; color: var(--g600);
  line-height: 1.55; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-spotlight-read {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--black);
  padding-top: 14px;
  border-top: 1px solid var(--g100);
}
.blog-spotlight-read i { font-size: 11px; transition: transform .12s; }
.blog-spotlight:hover .blog-spotlight-read i { transform: translateX(3px); }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-spotlight { padding: 22px; }
}

/* ═══════════════════════════════════════════════════════
   Category tiles: 4-col visual grid
═══════════════════════════════════════════════════════ */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 14px;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  text-decoration: none;
  color: inherit;
  background: white;
  transition: background 0.12s, border-color 0.12s;
}

.cat-pill:hover {
  background: var(--ton);
  border-color: var(--ton);
}

.cat-pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background: rgba(0,152,234,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ton);
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}

.cat-pill:hover .cat-pill-icon {
  background: rgba(255,255,255,0.2);
  color: white;
}

.cat-pill-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  transition: color 0.12s;
}

.cat-pill:hover .cat-pill-name { color: white; }

.cat-pill-count {
  font-size: 12px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  transition: color 0.12s;
}

.cat-pill:hover .cat-pill-count { color: rgba(255,255,255,0.7); }

/* Stacked logo previews inside the pill */
.cat-pill-previews {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.cat-pill-logo,
.cat-pill-mono {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  border: 2px solid white;
  margin-left: -8px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px !important;
  font-weight: 600;
  color: white;
  transition: border-color 0.12s;
}
.cat-pill-logo:first-child,
.cat-pill-mono:first-child { margin-left: 0; }
.cat-pill:hover .cat-pill-logo,
.cat-pill:hover .cat-pill-mono { border-color: var(--ton); }
@media (max-width: 600px) {
  .cat-pill-previews { display: none; }
}

/* ═══════════════════════════════════════════════════════
   Blog: magazine layout (featured left + list right)
═══════════════════════════════════════════════════════ */
.blog-magazine {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
  align-items: start;
}

.blog-mag-feature {
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 300px;
  transition: background 0.12s, border-color 0.12s;
}

.blog-mag-feature:hover {
  background: var(--paper);
  border-color: var(--g300);
}

.blog-mag-feature:hover .blog-mag-feature-title { color: var(--ton); }

.blog-mag-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.blog-mag-feature-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 14px;
  transition: color 0.12s;
}

.blog-mag-feature-excerpt {
  font-size: 15px;
  color: var(--g500);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 24px;
}

.blog-mag-feature-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.blog-mag-read {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--g500);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Right column: compact list */
.blog-mag-list {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-mag-item {
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  transition: background 0.12s;
}

.blog-mag-item:not(:first-child) { border-top: 1px solid var(--line); }
.blog-mag-item:hover { background: var(--paper); }
.blog-mag-item:hover .blog-mag-item-title { color: var(--ton); }

.blog-mag-item-date {
  font-size: 11.5px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
}

.blog-mag-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition: color 0.12s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-mag-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════
   Apps page: sidebar layout
═══════════════════════════════════════════════════════ */
.apps-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 40px;
}

.apps-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g500);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}

.sidebar-link:hover { background: var(--paper); color: var(--black); }

.sidebar-link.active {
  background: rgba(0, 152, 234, 0.07);
  color: var(--ton);
  font-weight: 600;
}

.sidebar-link.active .sidebar-count { color: var(--ton); opacity: 0.65; }

.sidebar-count {
  font-size: 12px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
}

.apps-sidebar-link.active .sidebar-count { color: var(--g600); }

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g400);
  margin: 0 0 8px;
  padding: 0 10px;
}
.sidebar-section-title-spaced {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-link-verified .vbadge { font-size: 11px; padding: 3px 9px; }
.sidebar-link-verified.active { background: var(--paper); }

.app-card-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.apps-main { min-width: 0; }

/* ═══════════════════════════════════════════════════════
   Responsive additions
═══════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-right { display: none; }
  .hero-left h1 { font-size: 40px; }

  .apps-spotlight {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .spotlight-card { padding: 22px; }

  .blog-magazine { grid-template-columns: 1fr; }
  .blog-mag-list { display: none; }

  .apps-layout { grid-template-columns: 1fr; }
  .apps-sidebar { display: none; }
}

@media (max-width: 640px) {
  .apps-spotlight {
    grid-template-columns: 1fr;
  }
  .spotlight-card { padding: 20px; }
  .spotlight-name { font-size: 17px; }
  .spotlight-desc { font-size: 13.5px; }
}

@media (max-width: 600px) {
  .cat-pills { gap: 8px; }
  .cat-pill { padding: 9px 14px 9px 11px; }
}

/* ═══════════════════════════════════════════════════════
   Hero: animated dot-grid background + entrance animations
═══════════════════════════════════════════════════════ */

/* Dot grid lives on the hero section itself */
.hero {
  position: relative;
  overflow: hidden;
}

/* Subtle animated dot grid via ::before */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 152, 234, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0;
  animation: hero-grid-in 1.2s ease-out 0.1s forwards,
             hero-grid-drift 22s linear 1.3s infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-grid-in {
  from { opacity: 0; }
  to   { opacity: 0.85; }
}

@keyframes hero-grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 28px 28px; }
}

/* Ensure hero content sits above the grid */
.hero .container { position: relative; z-index: 1; }

/* Staggered entrance for hero left column */
.hero-left h1,
.hero-left .hero-sub,
.hero-left .hero-search,
.hero-left .hero-cats,
.hero-left .hero-stats {
  opacity: 0;
  animation: hero-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-left h1           { animation-delay: 0.12s; }
.hero-left .hero-sub    { animation-delay: 0.24s; }
.hero-left .hero-search { animation-delay: 0.36s; }
.hero-left .hero-cats   { animation-delay: 0.46s; }
.hero-left .hero-stats  { animation-delay: 0.54s; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero right panel: fade in once, stays fixed */
.hero-right {
  opacity: 0;
  animation: hero-panel-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes hero-panel-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════
   Reduce motion: respect user preference
═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-left .kicker,
  .hero-left h1,
  .hero-left .hero-sub,
  .hero-left .hero-search,
  .hero-left .hero-cats,
  .hero-left .hero-stats,
  .hero-right {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════
   Hero marquee — two-row scrolling app strip
═══════════════════════════════════════════════════════ */
.hero-marquee {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-row {
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  gap: 8px;
  width: max-content;
}

.marquee-go-left  { animation: marquee-left  85s linear infinite; }
.marquee-go-right { animation: marquee-right 85s linear infinite; }

@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 9px;
  border: 1px solid rgba(0, 152, 234, 0.18);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 500;
  color: var(--g600);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .12s, color .12s;
}

.marquee-item:hover {
  border-color: var(--g300);
  color: var(--black);
}

.marquee-mono {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Pause on hover */
.hero-marquee:hover .marquee-inner {
  animation-play-state: paused;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-go-left,
  .marquee-go-right { animation: none; }
}

/* Hide on very small screens */
@media (max-width: 480px) {
  .hero-marquee { display: none; }
}

/* ═══════════════════════════════════════════════════════
   Hero panel — 3×3 app icon grid + browse footer
═══════════════════════════════════════════════════════ */
.hero-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.hero-app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: background .12s;
}
.hero-app-icon:hover { background: var(--paper); }

.hero-app-icon-mono {
  width: 44px !important;
  height: 44px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
  font-weight: 600;
  flex-shrink: 0;
}

.hero-app-icon-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--g500);
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.hero-panel-browse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--g500);
  text-decoration: none;
  transition: color .12s, background .12s;
  background: var(--slate);
}
.hero-panel-browse:hover { color: var(--black); background: var(--paper); }

/* ═══════════════════════════════════════════════════════
   Hero wave separator
═══════════════════════════════════════════════════════ */
.hero-wave {
  width: 100%;
  line-height: 0;
  margin-top: 48px;
  position: relative;
  z-index: 2;
}
.hero-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}


/* ═══════════════════════════════════════════════════════
   Stats + values strip
═══════════════════════════════════════════════════════ */
.stats-light {
  background: var(--slate);
  padding: 88px 0 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 64px;
}

.stat-block {
  padding: 0 56px 0 0;
}
.stat-block:not(:first-child) {
  padding: 0 56px;
  border-left: 1px solid var(--line);
}
.stat-block:last-child {
  padding: 0 0 0 56px;
}

.stat-num {
  font-size: 88px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 14px;
  color: var(--g400);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.stats-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 48px;
  margin-top: 0;
}

.stats-val-item {
  padding: 0 48px 0 0;
}
.stats-val-item:nth-child(2) {
  padding: 0 48px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.stats-val-item:last-child {
  padding: 0 0 0 48px;
}

.stats-val-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.stats-val-body {
  font-size: 13px;
  color: var(--g500);
  line-height: 1.65;
  letter-spacing: -0.005em;
  max-width: 260px;
}

/* Mobile / tablet */
@media (max-width: 880px) {
  .stats-light { padding: 56px 0 52px; }

  /* Stats row: stack vertically with subtle dividers */
  .stats-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 40px; }
  .stat-block,
  .stat-block:not(:first-child),
  .stat-block:last-child {
    padding: 22px 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .stat-block:first-child { border-top: none; padding-top: 0; }
  .stat-block:last-child { padding-bottom: 0; }
  .stat-num { font-size: 56px; margin-bottom: 6px; }
  .stat-label { font-size: 13px; }

  /* Stats values: stack vertically, drop side borders */
  .stats-values {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 32px;
  }
  .stats-val-item,
  .stats-val-item:nth-child(2),
  .stats-val-item:last-child {
    padding: 18px 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--line);
  }
  .stats-val-item:first-child { border-top: none; padding-top: 0; }
  .stats-val-item:last-child { padding-bottom: 0; }
  .stats-val-title { font-size: 14px; margin-bottom: 6px; }
  .stats-val-body { font-size: 13.5px; max-width: none; line-height: 1.55; }

  .header-end { display: none; }
}

/* ═══════════════════════════════════════════════════════
   Submit page
═══════════════════════════════════════════════════════ */
.submit-layout {
  display: block;
  max-width: 720px;
  padding-top: 8px;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.submit-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: white;
}

.submit-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

.field-req { color: var(--ton); }
.field-optional { font-weight: 400; color: var(--g400); }

.field-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--black);
  background: white;
  transition: border-color 0.12s;
  outline: none;
  box-sizing: border-box;
}

.field-input:focus {
  border-color: var(--ton);
}

.field-input::placeholder { color: var(--g400); }

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a1a1aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.field-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field-hint {
  font-size: 12.5px;
  color: var(--g400);
  line-height: 1.5;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  background: var(--ton);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--r-btn);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.12s;
  align-self: flex-start;
}

.submit-btn:hover { opacity: 0.86; }

/* Success state */
.submit-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
}

.submit-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,152,234,0.1);
  color: var(--ton);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 20px;
}

.submit-success h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.submit-success p {
  font-size: 15px;
  color: var(--g500);
  line-height: 1.65;
  max-width: 420px;
}

/* Sidebar */
.submit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.submit-info-block { display: flex; flex-direction: column; gap: 10px; }

.submit-info-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: var(--g400);
}

.submit-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.submit-info-list li {
  font-size: 13.5px;
  color: var(--g600);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.submit-info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--g300);
}

.submit-info-body {
  font-size: 13.5px;
  color: var(--g500);
  line-height: 1.6;
}


.field-monospace {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px !important;
  letter-spacing: 0.02em;
}

.field-prefix-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.12s;
  background: white;
}

.field-prefix-wrap:focus-within { border-color: var(--ton); }

.field-prefix {
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--g400);
  background: var(--g50);
  height: 44px;
  display: flex;
  align-items: center;
  border-right: 1.5px solid var(--line);
  flex-shrink: 0;
}

.field-input-prefixed {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  height: 44px;
}

.field-input-prefixed:focus { outline: none; }

/* Logo upload */
.logo-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  background: white;
}

.logo-upload:hover {
  border-color: var(--ton);
  background: rgba(0,152,234,0.02);
}

.logo-upload-preview {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  background: var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--g300);
  flex-shrink: 0;
  overflow: hidden;
}

.logo-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-upload-text { display: flex; flex-direction: column; gap: 3px; }

.logo-upload-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}

.logo-upload-hint {
  font-size: 12.5px;
  color: var(--g400);
}

/* Card intro note + inline field icon */
.submit-card-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--g500);
  margin: -4px 0 4px;
}
.field-ico { color: var(--g400); font-size: 12px; margin-right: 5px; }

/* Screenshots upload */
.shots-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 16px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  background: white;
  transition: border-color 0.12s, background 0.12s;
}
.shots-upload:hover { border-color: var(--ton); background: rgba(0,152,234,0.02); }
.shots-upload i { font-size: 20px; color: var(--g300); margin-bottom: 4px; }
.shots-upload-title { font-size: 14px; font-weight: 500; color: var(--black); }
.shots-upload-hint { font-size: 12.5px; color: var(--g400); }
.shots-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.shots-preview:empty { display: none; }
.shots-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* FAQ repeater */
.faq-repeater { display: flex; flex-direction: column; gap: 12px; }
.faq-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.faq-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--g400);
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
  transition: color 0.12s, background 0.12s;
}
.faq-remove:hover { color: var(--black); background: var(--g100); }
.faq-add-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 15px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--g700);
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.faq-add-btn:hover { border-color: var(--ton); color: var(--black); }

/* Error banner */
.submit-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  font-size: 13.5px;
  color: #B91C1C;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .submit-layout { max-width: 100%; }
  .field-row-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   Legal pages  (privacy / terms)
═══════════════════════════════════════════════════════ */
.legal-container {
  max-width: 760px;
}

.legal-page {
  padding: 48px 0 96px;
}

.legal-meta {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--g500);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.legal-content {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--g700);
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-top: 44px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p { margin-bottom: 18px; }

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 22px;
}

.legal-content li { margin-bottom: 8px; }

.legal-content a {
  color: var(--black);
  border-bottom: 1px solid var(--g300);
  transition: border-color 0.12s;
}

.legal-content a:hover { border-bottom-color: var(--black); }

.legal-content strong {
  color: var(--black);
  font-weight: 600;
}

.legal-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: var(--g100);
  color: var(--g900);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .legal-page { padding: 32px 0 72px; }
  .legal-content { font-size: 15px; }
  .legal-content h2 { font-size: 18px; margin-top: 36px; }
}

/* ────────────────────────────────────────────────────────────
   Logo image (replaces monogram when an app has a real logo)
   ──────────────────────────────────────────────────────────── */
.app-logo-img {
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: var(--paper);
}
/* Card-size logo: match .app-monogram default size */
.app-card .app-logo-img { width: 44px !important; height: 44px !important; flex-shrink: 0; }
.hero-app-main .app-logo-img { width: 48px !important; height: 48px !important; flex-shrink: 0; }
.app-hero-logo {
  width: 96px; height: 96px;
  border-radius: var(--r-card-lg);
  object-fit: cover;
  background: var(--paper);
  flex-shrink: 0;
}
.spotlight-card .app-logo-img.spotlight-mono {
  width: 52px !important;
  height: 52px !important;
  border-radius: 13px !important;
  object-fit: cover;
}
.hero-app-icon-logo {
  width: 44px !important;
  height: 44px !important;
  border-radius: 11px;
  object-fit: cover;
  background: var(--paper);
  display: block;
  flex-shrink: 0;
}
.marquee-logo {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px;
  object-fit: cover;
  background: var(--paper);
  display: block;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   App detail page (/<slug>)
   ──────────────────────────────────────────────────────────── */
.app-page { padding: 32px 0 96px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--g500);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--g600);
  transition: color .12s;
}
.breadcrumb a:hover { color: var(--black); }
.breadcrumb-sep { color: var(--g400); }
.breadcrumb-current { color: var(--black); font-weight: 500; }

/* Hero */
.app-hero {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 30px 0;
  margin-bottom: 40px;
}
.app-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding-bottom: 24px;
}
.app-hero-mono {
  width: 88px;
  height: 88px;
  font-size: 30px;
  font-weight: 600;
  border-radius: var(--r-card-lg);
  flex-shrink: 0;
}
.app-hero-id { flex: 1; min-width: 0; }
.app-hero-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.app-hero-id h1 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 9px;
  color: var(--black);
}
.app-hero-lede {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--g700);
  margin: 0;
  max-width: 52ch;
}

/* Rank badge: earned position, uses the single accent */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(0,152,234,0.09);
  color: #0085CC;
  white-space: nowrap;
}
.rank-badge i { font-size: 10px; }

/* Right column: primary action, then the vote and why it matters */
.app-hero-cta-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 216px;
  flex-shrink: 0;
}
.app-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  padding: 12px 20px;
  width: 100%;
}
.app-vote-form { margin: 0; }
.app-vote-form .vote-btn { width: 100%; justify-content: center; }
.app-vote-why {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--g500);
  margin: 1px 0 0;
  text-align: center;
}

/* Meta strip: replaces the old sidebar meta card */
.app-hero-meta {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin: 0;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
}
.app-hero-meta > div { min-width: 0; }
.app-hero-meta dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 3px;
}
.app-hero-meta dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g900);
}
.app-hero-meta dd a { color: var(--g900); }
.app-hero-meta dd a:hover { color: var(--ton); }
.app-hero-meta dd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--g600);
}
.app-hero-meta-end { margin-left: auto; }
.app-hero-meta-end form { margin: 0; }
/* Two-column layout */
.app-page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* Left sidebar */
.app-page-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.app-toc {
  font-size: 13px;
  border-left: 2px solid var(--line);
  padding-left: 16px;
}
.app-toc-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g500);
  margin: 0 0 12px;
}
.app-toc ul { list-style: none; padding: 0; margin: 0; }
.app-toc li { margin: 6px 0; line-height: 1.45; }
.app-toc li ul { padding-left: 12px; margin-top: 4px; }
.app-toc a {
  color: var(--g600);
  transition: color .12s;
  display: inline-block;
}
.app-toc a:hover { color: var(--black); }

.app-side-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
  background: var(--white);
}
.app-side-card-quiet { background: var(--paper); }
.app-side-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  font-size: 13px;
  padding: 10px 14px;
}
.app-side-meta { margin: 0; font-size: 12.5px; }
.app-side-meta dt {
  color: var(--g500);
  font-weight: 500;
  margin-bottom: 2px;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}
.app-side-meta dd { margin: 0 0 14px; color: var(--black); }
.app-side-meta dd:last-child { margin-bottom: 0; }
.app-side-meta dd a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .12s;
}
.app-side-meta dd a:hover { color: var(--ton); }
.app-side-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  background: var(--paper);
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--g700);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-side-card-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--black);
  margin: 0 0 6px;
}
.app-side-card-body {
  font-size: 12.5px;
  color: var(--g600);
  line-height: 1.55;
  margin: 0 0 14px;
}
.app-side-card-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 12.5px;
  padding: 9px 14px;
}

/* Main prose column */
.app-page-main { min-width: 0; }
.app-prose {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--g700);
}
.app-prose > *:first-child { margin-top: 0; }
.app-prose h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.app-prose h2:first-child { margin-top: 0; }
.app-prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin: 32px 0 10px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.app-prose p { margin: 0 0 18px; }
.app-prose ul, .app-prose ol { padding-left: 22px; margin: 0 0 18px; }
.app-prose li { margin: 6px 0; }
.app-prose strong { color: var(--black); font-weight: 600; }
.app-prose a {
  color: var(--ton);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .12s;
}
.app-prose a:hover { color: var(--black); }
.app-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--g900);
}
/* ── Tables (command reference, comparisons) ── */
.app-prose table,
.post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0 26px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.app-prose thead th,
.post-content thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g500);
  background: var(--paper);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.app-prose tbody td,
.post-content tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
  color: var(--g700);
}
.app-prose tbody tr:last-child td,
.post-content tbody tr:last-child td { border-bottom: none; }
.app-prose tbody tr:hover td,
.post-content tbody tr:hover td { background: var(--g50, #FAFAFA); }
/* First column of a command table reads as the command itself */
.app-prose tbody td:first-child,
.post-content tbody td:first-child {
  white-space: nowrap;
  width: 1%;
  color: var(--black);
  font-weight: 500;
}
.app-prose tbody td:first-child code,
.post-content tbody td:first-child code {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--black);
  font-size: 13px;
  line-height: 1.5;
  padding: 2px 8px;
}
@media (max-width: 640px) {
  .app-prose table, .post-content table { font-size: 14px; }
  .app-prose thead, .post-content thead { display: none; }
  .app-prose tbody td, .post-content tbody td {
    display: block;
    border-bottom: none;
    padding: 2px 16px;
  }
  .app-prose tbody td:first-child, .post-content tbody td:first-child {
    width: auto;
    padding-top: 14px;
    white-space: normal;
  }
  .app-prose tbody tr, .post-content tbody tr { display: block; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .app-prose tbody tr:last-child, .post-content tbody tr:last-child { border-bottom: none; }
}

.app-prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ton);
  background: var(--paper);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  color: var(--g700);
  font-style: normal;
}
.app-prose blockquote p:last-child { margin-bottom: 0; }
.app-prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

/* Hero social / community links */
.app-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.app-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--g700);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .12s, color .12s, background .12s;
}
.app-hero-link:hover { border-color: var(--g400); color: var(--black); }
.app-hero-link i { font-size: 12px; color: var(--g500); }
.app-hero-link:hover i { color: var(--ton); }

/* Shared section heading for screenshots / FAQ */
.app-section-h {
  font-size: 24px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.015em;
  margin: 48px 0 18px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Screenshot gallery */
.app-shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  align-items: start;
}
.app-shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--paper);
  transition: border-color .12s;
}
.app-shot:hover { border-color: var(--g400); }
.app-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* FAQ accordion (native <details>) */
.faq-accordion {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  list-style: none;
  transition: background .12s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--paper); }
.faq-chevron {
  font-size: 12px;
  color: var(--g400);
  flex-shrink: 0;
  transition: transform .18s ease;
}
.faq-item[open] .faq-q { color: var(--ton); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--ton); }
.faq-a {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--g700);
}

/* Verification note inline */
.app-verify-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 40px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  font-size: 14px;
  line-height: 1.55;
}
.app-verify-note i {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.app-verify-note strong { color: var(--black); font-weight: 600; }
.app-verify-tg {
  background: rgba(0, 152, 234, 0.06);
  border: 1px solid rgba(0, 152, 234, 0.18);
  color: var(--g700);
}
.app-verify-tg i { color: var(--ton); }
.app-verify-us {
  background: var(--cream);
  border: 1px solid #EAD7B3;
  color: var(--g700);
}
.app-verify-us i { color: #B17B1F; }
.app-verify-none {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--g600);
}
.app-verify-none i { color: var(--g500); }

.app-page-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.app-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  padding: 13px 22px;
}
.app-cta i { font-size: 17px; }

/* Related */
.app-related {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.app-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.app-related-head h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

@media (max-width: 960px) {
  .app-page-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .app-page-side { position: static; order: 2; }
  .app-toc { display: none; }
}
@media (max-width: 720px) {
  .app-page { padding: 20px 0 72px; }
  .breadcrumb { margin-bottom: 20px; }
  .app-hero {
    grid-template-columns: auto 1fr;
    padding: 20px;
    gap: 14px 16px;
    margin-bottom: 32px;
  }
  .app-hero-right {
    grid-column: 1 / -1;
    text-align: left;
  }
  .app-hero-cta { width: 100%; justify-content: center; }
  .app-hero-mono,
  .app-hero-logo { width: 68px; height: 68px; font-size: 24px; }
  .app-hero-mid h1 { font-size: 25px; }
  .app-hero-lede { font-size: 15px; }
  .app-hero-updated { margin-top: 10px; }
  .app-section-h { font-size: 21px; margin: 40px 0 16px; }
  .app-prose { font-size: 16px; }
  .app-prose h2 { font-size: 21px; margin: 36px 0 12px; }
  .app-page-cta-row .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .app-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .app-hero-logo,
  .app-hero-mono { width: 60px; height: 60px; font-size: 22px; border-radius: 15px; }
  .app-hero-mid h1 { font-size: 23px; }
  .app-hero-links { gap: 6px; }
  .app-hero-link { padding: 6px 11px; font-size: 12.5px; }
  .app-shots-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .faq-q { padding: 14px 15px; font-size: 15px; }
  .faq-a { padding: 0 15px 15px; font-size: 14.5px; }
  .app-verify-note { padding: 14px; }
}

/* ────────────────────────────────────────────────────────────
   Consent banner - full-width bottom bar (classic pattern)
   ──────────────────────────────────────────────────────────── */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(0,0,0,0.08);
}
.consent-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.consent-text {
  flex: 1;
  min-width: 280px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--g700);
}
.consent-text strong { color: var(--black); font-weight: 600; margin-right: 4px; }
.consent-text a { color: var(--ton); text-decoration: underline; text-underline-offset: 3px; }
.consent-text a:hover { color: var(--black); }
.consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.consent-btn {
  padding: 10px 18px;
  border-radius: var(--r-btn);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  white-space: nowrap;
}
.consent-btn:hover { border-color: var(--g400); }
.consent-accept {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.consent-accept:hover { background: var(--g700); border-color: var(--g700); }
@media (max-width: 640px) {
  .consent-inner { gap: 14px; padding: 14px var(--pad-x); }
  .consent-text { font-size: 13px; min-width: 100%; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; padding: 10px 14px; }
}


/* ═══════════════════════════════════════════════════════
   Advertise / promote page
═══════════════════════════════════════════════════════ */
.adv-section { padding: 4px 0 96px; }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.adv-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  padding: 22px;
  transition: border-color .12s;
}
.adv-card:hover { border-color: var(--g300); }
.adv-card-lead { border-color: var(--g900); }
.adv-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.adv-card-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}
.adv-card-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.adv-card-price i { font-size: 12px; font-style: normal; font-weight: 400; color: var(--g500); }
.adv-card-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--g600);
  margin: 0 0 14px;
}
.adv-points { list-style: none; padding: 0; margin: auto 0 0; }
.adv-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--g600);
  margin: 6px 0;
}
.adv-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--g300);
}
.adv-card-lead .adv-points li::before { background: var(--ton); }

/* Bundle */
.adv-bundle {
  display: flex;
  gap: 34px;
  align-items: stretch;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--cream);
  padding: 26px 28px;
  margin-bottom: 46px;
}
.adv-bundle-main { flex: 1; min-width: 280px; }
.adv-bundle-kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--g500);
  margin: 0 0 6px;
}
.adv-bundle-title {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--black);
  margin: 0 0 8px;
}
.adv-bundle-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--g600);
  margin: 0 0 16px;
  max-width: 52ch;
}
.adv-bundle-body strong { color: var(--black); font-weight: 600; }
.adv-bundle-list { list-style: none; padding: 0; margin: 0; max-width: 420px; }
.adv-bundle-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  font-size: 13.5px;
  color: var(--g600);
}
.adv-bundle-list li:last-child { border-bottom: none; }
.adv-bundle-list b {
  color: var(--g900);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.adv-bundle-buy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  padding-left: 34px;
  border-left: 1px solid rgba(0,0,0,0.09);
  flex-shrink: 0;
}
.adv-bundle-was {
  font-size: 13px;
  color: var(--g500);
  text-decoration: line-through;
  margin: 0;
}
.adv-bundle-price {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--black);
  margin: 0 0 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.adv-bundle-btn { display: inline-flex; align-items: center; gap: 8px; }

/* Terms */
.adv-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  margin-bottom: 52px;
}
.adv-term-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--g500);
  margin: 0 0 7px;
}
.adv-term-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--g600);
  margin: 0;
}

.adv-foot { text-align: center; }
.adv-foot-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--g700);
  margin: 0 auto 20px;
  max-width: 46ch;
}
.adv-foot .btn { display: inline-flex; align-items: center; gap: 8px; }
.adv-foot-note { font-size: 13.5px; color: var(--g500); margin: 18px 0 0; }
.adv-foot-note a { color: var(--ton); text-decoration: underline; text-underline-offset: 3px; }

.spon-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A5A0B;
  background: rgba(245,158,11,0.14);
  border: 1px solid rgba(245,158,11,0.32);
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: 1px;
}

@media (max-width: 720px) {
  .adv-bundle { padding: 22px; gap: 22px; }
  .adv-bundle-buy {
    padding-left: 0; border-left: none;
    padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.09);
    width: 100%;
  }
  .adv-bundle-price { font-size: 34px; }
}

/* ═══════════════════════════════════════════════════════
   User accounts: header menu, login page, votes
═══════════════════════════════════════════════════════ */
.nav-user { position: relative; margin-left: 8px; }
.nav-user-btn {
  display: flex; align-items: center; padding: 0;
  border: none; background: none; cursor: pointer; border-radius: 50%;
}
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 1px solid var(--line);
  transition: border-color .12s;
}
.nav-user-btn:hover .nav-avatar { border-color: var(--ton); }
.nav-avatar-mono {
  display: flex; align-items: center; justify-content: center;
  background: var(--ton); color: white; font-size: 13px; font-weight: 600;
}
.nav-user-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 264px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  z-index: 60;
}
.nav-user-menu[hidden] { display: none; }

.um-head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; }
.um-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; flex: none; border: 1px solid var(--line);
}
.um-avatar-mono {
  display: flex; align-items: center; justify-content: center;
  background: var(--ton); color: var(--white); font-size: 15px; font-weight: 600;
  border-color: var(--ton);
}
.um-id { display: flex; flex-direction: column; min-width: 0; }
.um-name {
  font-size: 14px; font-weight: 600; color: var(--black);
  letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.um-handle { font-size: 12.5px; color: var(--g500); }

.um-stats {
  display: flex; gap: 8px;
  padding: 11px 12px; margin-bottom: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color .12s;
}
.um-stats:hover { border-color: var(--g300); }
.um-stat { display: flex; flex-direction: column; flex: 1; }
.um-stat b {
  font-size: 17px; font-weight: 600; color: var(--black);
  line-height: 1.15; font-variant-numeric: tabular-nums;
}
.um-stat span { font-size: 11.5px; color: var(--g500); }

.um-links { display: flex; flex-direction: column; }
.um-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  font-size: 13.5px; font-weight: 500; color: var(--g700);
  border-radius: 7px;
  transition: background .12s, color .12s;
}
.um-links a:hover { background: var(--paper); color: var(--black); }
.um-links i { width: 15px; font-size: 12px; color: var(--g500); }
.um-links a:hover i { color: var(--ton); }

.um-foot { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.um-foot form { margin: 0; }
.um-foot button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--g600); background: none; border: none;
  border-radius: 7px; cursor: pointer; text-align: left;
  transition: background .12s, color .12s;
}
.um-foot button:hover { background: #FEF2F2; color: #B91C1C; }
.um-foot i { width: 15px; font-size: 12px; color: var(--g500); }
.um-foot button:hover i { color: #B91C1C; }

.mobile-nav-form { margin: 0; }
.mobile-nav-form button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 12px 4px; font-family: inherit; font-size: 15px; font-weight: 500;
  color: var(--g700); background: none; border: none; cursor: pointer; text-align: left;
}
.mobile-nav-form button i { width: 18px; font-size: 14px; color: var(--g400); }

/* Login page */
.auth-wrap { padding: 72px 0 110px; }
.auth-card {
  max-width: 440px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--white); padding: 44px 36px;
}
.auth-mark { border-radius: 13px; margin-bottom: 20px; }
.auth-card h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; color: var(--black); margin: 0 0 8px; }
.auth-lede { font-size: 15px; line-height: 1.6; color: var(--g500); margin: 0 0 28px; }
.auth-widget {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;          /* reserves the exact height of the Telegram button */
  margin-bottom: 28px;
}
.auth-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.auth-widget.is-ready .auth-skeleton { display: none; }
.auth-skeleton[hidden] { display: none; }
.auth-skeleton-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--g500);
  font-size: 14px;
  font-weight: 500;
  animation: auth-pulse 1.4s ease-in-out infinite;
}
@keyframes auth-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .auth-skeleton-btn { animation: none; } }
.auth-error {
  display: flex; align-items: center; gap: 9px; justify-content: center;
  padding: 12px 16px; margin-bottom: 22px;
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px;
  font-size: 13.5px; color: #B91C1C;
}
.auth-perks { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; }
.auth-perks li {
  display: flex; align-items: center; gap: 11px;
  font-size: 14px; color: var(--g600); padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.auth-perks li:last-child { border-bottom: none; }
.auth-perks i { width: 16px; font-size: 12px; color: var(--ton); }
.auth-fine { font-size: 12.5px; line-height: 1.6; color: var(--g400); margin: 0; }
.auth-fine a { color: var(--g600); text-decoration: underline; text-underline-offset: 2px; }
.auth-note { font-size: 13px; color: var(--g500); }

/* Upvote + report */
.app-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--g700); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-btn);
  cursor: pointer; transition: border-color .12s, color .12s, background .12s;
}
.vote-btn:hover { border-color: var(--ton); color: var(--black); }
.vote-btn i { font-size: 12px; color: var(--g400); }
.vote-btn:hover i { color: var(--ton); }
.vote-btn.voted { background: rgba(0,152,234,0.07); border-color: var(--ton); color: var(--ton); }
.vote-btn.voted i { color: var(--ton); }
.vote-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.report-btn {
  font-size: 12.5px; color: var(--g400); background: none; border: none;
  font-family: inherit; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; transition: color .12s;
}
.report-btn:hover { color: var(--g700); }
.report-done { font-size: 12.5px; color: var(--g500); }

/* ═══════════════════════════════════════════════════════
   Profile (minimal, matches blog and apps)
═══════════════════════════════════════════════════════ */
.profile-narrow { max-width: 720px; }

.pf-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.pf-stat {
  flex: 1 1 96px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 16px;
  background: var(--white);
}
.pf-stat b { display: block; font-size: 21px; font-weight: 600; color: var(--black); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pf-stat span { font-size: 12.5px; color: var(--g500); }

.pf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pf-h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--black); margin: 0; }
.pf-h2-spaced { margin-top: 52px; margin-bottom: 16px; }
.pf-add { flex-shrink: 0; }

.pf-list { display: flex; flex-direction: column; gap: 12px; }
.pf-item {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  padding: 18px;
  transition: border-color .12s;
}
.pf-item:hover { border-color: var(--g300); }
.pf-item-main { display: flex; gap: 15px; }
.pf-logo { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex-shrink: 0; background: var(--paper); }
.pf-logo-mono {
  display: flex; align-items: center; justify-content: center;
  background: var(--g100); color: var(--g600); font-weight: 600; font-size: 15px;
}
.pf-item-body { flex: 1; min-width: 0; }
.pf-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.pf-name { font-size: 15.5px; font-weight: 600; color: var(--black); letter-spacing: -0.01em; }
a.pf-name:hover { color: var(--ton); }
.pf-status {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 20px;
}
.pf-status-approved { background: rgba(16,185,129,0.12); color: #047857; }
.pf-status-pending  { background: rgba(245,158,11,0.12); color: #92400E; }
.pf-status-rejected { background: var(--g100); color: var(--g600); }
.pf-desc { font-size: 13.5px; line-height: 1.6; color: var(--g600); margin: 0 0 10px; }
.pf-metrics { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--g500); }
.pf-metrics b { color: var(--black); font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-note { font-size: 12.5px; color: var(--g500); margin: 0; line-height: 1.55; }

.pf-posts { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.pf-posts-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--g400); margin: 0 0 8px;
}
.pf-post {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 7px 0; transition: color .12s;
}
.pf-post-title { font-size: 13.5px; font-weight: 500; color: var(--g700); }
.pf-post:hover .pf-post-title { color: var(--ton); }
.pf-post-meta { font-size: 12px; color: var(--g400); flex-shrink: 0; }

.pf-empty {
  border: 1px dashed var(--line);
  border-radius: var(--r-card);
  padding: 40px 24px;
  text-align: center;
  background: var(--paper);
}
.pf-empty p { font-size: 14.5px; color: var(--g500); margin: 0 0 18px; }

.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 8px;
  font-size: 13.5px; font-weight: 500; color: var(--g700);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; transition: border-color .12s, color .12s;
}
.pf-chip:hover { border-color: var(--ton); color: var(--black); }
.pf-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

@media (max-width: 640px) {
  .pf-stat { flex: 1 1 calc(33% - 10px); }
  .pf-head { flex-direction: column; align-items: flex-start; }
}

/* Articles about this app */
.app-articles-list { display: flex; flex-direction: column; gap: 2px; }
.app-article {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  transition: color .12s;
}
.app-article:last-child { border-bottom: none; }
.app-article-title { font-size: 15.5px; font-weight: 500; color: var(--g900); }
.app-article:hover .app-article-title { color: var(--ton); }
.app-article-meta { font-size: 12.5px; color: var(--g400); flex-shrink: 0; white-space: nowrap; }

/* Manual-details fallback in submit form */
.submit-manual {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 0 14px;
}
.submit-manual > summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g600);
  transition: color .12s;
}
.submit-manual > summary::-webkit-details-marker { display: none; }
.submit-manual > summary::before { content: "+ "; color: var(--g400); }
.submit-manual[open] > summary::before { content: "\2212  "; }
.submit-manual > summary:hover { color: var(--black); }
.submit-manual[open] { padding-bottom: 16px; }
.submit-manual .field-group { margin-bottom: 16px; }
.submit-manual .field-group:last-child { margin-bottom: 0; }
.adv-table .adv-price {
  white-space: nowrap; width: 1%;
  font-weight: 600; color: var(--black);
  font-variant-numeric: tabular-nums;
}
.adv-table .adv-price span { font-weight: 400; color: var(--g400); font-size: 12.5px; }

/* Profile: reuses the app hero vocabulary */
.profile-narrow { max-width: 820px; }
.pf-avatar { border-radius: 50% !important; }
.app-hero-meta dd.pf-num {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.pf-hint { font-size: 12px; color: var(--g500); }
.app-section-h.pf-section { margin-top: 40px; }

/* Profile: growth / get-featured panel */
.pf-grow {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
  padding: 18px 20px;
  margin-top: 26px;
}
.pf-grow-main { flex: 1; min-width: 260px; }
.pf-grow-title {
  font-size: 10.5px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--g400); margin: 0 0 5px;
}
.pf-grow-body { font-size: 14px; line-height: 1.6; color: var(--g600); margin: 0; max-width: 60ch; }
.pf-grow-body strong { color: var(--black); font-weight: 600; }
.pf-grow-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.pf-grow-btn { padding: 9px 16px; font-size: 13.5px; }

/* Changelog */
.cl-narrow { max-width: 720px; }
.cl-entry { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.cl-entry:last-child { border-bottom: none; margin-bottom: 0; }
.cl-date {
  font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--g400); margin: 0 0 7px;
}
.cl-title { font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: var(--black); margin: 0 0 14px; }
.cl-list { list-style: none; padding: 0; margin: 0; }
.cl-list li {
  position: relative; padding-left: 20px; margin: 10px 0;
  font-size: 15px; line-height: 1.65; color: var(--g600);
}
.cl-list li::before {
  content: ""; position: absolute; left: 3px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--g300);
}
.cl-list strong { color: var(--black); font-weight: 600; }

/* Profile: articles (cards) + inline editorial rows */
.pf-articles-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 44px;
}
.pf-articles-head .app-section-h { margin: 0 0 14px; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 13px; }
.art-card {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--white); padding: 20px; transition: border-color .12s;
}
.art-card:hover { border-color: var(--g300); }
.art-kicker {
  font-size: 10.5px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--g500);
}
.art-title {
  font-size: 16px; font-weight: 600; letter-spacing: -.015em;
  color: var(--black); line-height: 1.35;
}
.art-card:hover .art-title { color: var(--ton); }
.art-ex { font-size: 13.5px; line-height: 1.6; color: var(--g600); }
.art-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
}
.art-apps { display: inline-flex; align-items: center; font-size: 12.5px; color: var(--g600); }
.art-apps img {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
  margin-right: -7px; border: 1.5px solid var(--white);
}
.art-apps > span { margin-left: 13px; }
.art-date { font-size: 12px; color: var(--g500); white-space: nowrap; }

.art-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line); transition: color .12s;
}
.art-row:last-child { border-bottom: none; }
.art-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.art-row-title { font-size: 14px; font-weight: 500; color: var(--g900); }
.art-row:hover .art-row-title { color: var(--ton); }
.art-row-meta { font-size: 12px; color: var(--g500); }
.art-row-date { font-size: 12px; color: var(--g500); white-space: nowrap; }
.pf-empty-sm { padding: 26px 22px; }
.pf-empty-sm p { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ── Live page preview (submit / article editor) ── */
.pv-wrap { margin-top: 18px; }
.pv-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--g700); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer;
  transition: border-color .12s, color .12s;
}
.pv-toggle:hover { border-color: var(--ton); color: var(--black); }
.pv-toggle i { font-size: 12px; color: var(--g500); }
.pv-toggle:hover i { color: var(--ton); }
.pv-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--white);
}
.pv-panel[hidden] { display: none; }
.pv-bar {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.pv-bar-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--g500);
}
.pv-bar-note { font-size: 12.5px; color: var(--g500); }
.pv-body { padding: 22px 24px; font-size: 15.5px; }
.pv-body > *:first-child { margin-top: 0; }
.pv-body h2:first-child { margin-top: 0; }
.pv-empty { color: var(--g500); font-size: 14px; margin: 0; }

/* ═══════════════════════════════════════════════════════
   Top rated (leaderboard)
═══════════════════════════════════════════════════════ */
.top-narrow { max-width: 820px; }
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.top-note { font-size: 12.5px; color: var(--g500); margin: 0; }

.top-list {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; background: var(--white);
}
.top-row {
  display: flex; align-items: center; gap: 15px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.top-row:last-child { border-bottom: none; }
.top-row:hover { background: var(--paper); }
.top-row-featured { background: rgba(0,152,234,0.03); }
.top-row-featured:hover { background: rgba(0,152,234,0.06); }

.top-rank {
  width: 26px; flex: none; text-align: right;
  font-size: 14px; font-weight: 600; color: var(--g400);
  font-variant-numeric: tabular-nums;
}
.top-row-featured .top-rank { color: var(--ton); }

.top-logo {
  width: 40px; height: 40px; border-radius: 10px;
  object-fit: cover; flex: none; background: var(--paper);
}
.top-logo-mono {
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}

.top-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.top-name { font-size: 15px; font-weight: 600; color: var(--black); letter-spacing: -0.01em; }
.top-name:hover { color: var(--ton); }
.top-desc {
  font-size: 13px; color: var(--g600); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.top-tags { display: flex; align-items: center; gap: 6px; flex: none; }

.top-votes {
  display: flex; flex-direction: column; align-items: flex-end;
  flex: none; min-width: 62px;
}
.top-votes b {
  font-size: 17px; font-weight: 600; color: var(--black);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.top-votes span { font-size: 11px; color: var(--g500); }

.top-empty {
  border: 1px dashed var(--line); border-radius: var(--r-card);
  background: var(--paper); padding: 40px 24px; text-align: center;
}
.top-empty p { font-size: 14.5px; color: var(--g600); margin: 0 auto 18px; max-width: 46ch; }
.top-foot { font-size: 13.5px; color: var(--g500); margin: 22px 0 0; }
.top-foot a { color: var(--ton); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .top-tags { display: none; }
  .top-desc { display: none; }
  .top-row { padding: 12px 14px; gap: 12px; }
}

/* ── Leaderboard podium (top 3) ── */
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.podium-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  padding: 20px;
  transition: border-color .12s;
}
.podium-card:hover { border-color: var(--g300); }
.podium-1 { background: var(--cream); border-color: #E5D9BE; }
.podium-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.podium-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 12.5px; font-weight: 600;
  background: var(--g100); color: var(--g600);
  font-variant-numeric: tabular-nums;
}
.podium-1 .podium-rank { background: var(--black); color: var(--white); }
.podium-votes { font-size: 12.5px; color: var(--g500); }
.podium-votes b { color: var(--black); font-weight: 600; font-variant-numeric: tabular-nums; }
.podium-logo {
  width: 52px; height: 52px; border-radius: 13px;
  object-fit: cover; display: block; margin-bottom: 12px;
  background: var(--paper);
}
.podium-logo-mono {
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600;
}
.podium-name {
  font-size: 17px; font-weight: 600; color: var(--black);
  letter-spacing: -0.015em; margin-bottom: 6px;
}
.podium-name:hover { color: var(--ton); }
.podium-desc {
  font-size: 13px; line-height: 1.55; color: var(--g600); margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.podium-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; }

@media (max-width: 820px) {
  .podium { grid-template-columns: 1fr; }
  .podium-desc { -webkit-line-clamp: 2; }
}

/* Leaderboard category chips */
.top-cats { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.top-cat {
  font-size: 13px; font-weight: 500; color: var(--g600);
  padding: 6px 13px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--white);
  transition: border-color .12s, color .12s, background .12s;
}
.top-cat:hover { border-color: var(--g300); color: var(--black); }
.top-cat.active { background: var(--black); border-color: var(--black); color: var(--white); }





/* ── Trading note: meant to be read, not skimmed past ── */
.tnote {
  border: 1px solid #E5D9BE;
  border-radius: var(--r-lg);
  background: var(--cream);
  padding: 28px 30px;
  margin-top: 48px;
}
.tnote-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 10px;
}
.tnote-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--g700);
  margin: 0 0 20px;
  max-width: 60ch;
}
.tnote-lede strong { color: var(--black); font-weight: 600; }
.tnote-list { list-style: none; padding: 0; margin: 0; }
.tnote-list li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 15px;
  line-height: 1.6;
  color: var(--g700);
}
.tnote-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 21px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--g900);
}
.tnote-list strong {
  display: block;
  color: var(--black);
  font-weight: 600;
  margin-bottom: 2px;
}
@media (max-width: 640px) {
  .tnote { padding: 22px 20px; }
  .tnote-title { font-size: 17px; }
  .tnote-lede { font-size: 15px; }
  .tnote-list li { font-size: 14.5px; }
}

/* ═══════════════════════════════════════════════════════
   Responsive: app hero, leaderboard, profile
   (these rules were lost in an earlier stylesheet cleanup)
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* The action column must drop below the identity, not squeeze it */
  .app-hero-top { flex-wrap: wrap; gap: 20px; }
  .app-hero-id { flex: 1 1 100%; order: 2; }
  .app-hero-left, .app-hero-logo, .app-hero-mono { order: 1; }
  .app-hero-cta-col { order: 3; width: 100%; }
  .app-vote-why { text-align: left; }
}

@media (max-width: 720px) {
  .app-page { padding: 20px 0 72px; }
  .breadcrumb { margin-bottom: 18px; font-size: 12.5px; }
  .app-hero { padding: 20px 18px 0; margin-bottom: 30px; }
  .app-hero-top { gap: 16px; padding-bottom: 18px; }
  .app-hero-logo, .app-hero-mono { width: 62px; height: 62px; font-size: 22px; border-radius: 15px; }
  .app-hero-id h1 { font-size: 26px; }
  .app-hero-lede { font-size: 15px; }
  .app-hero-meta { gap: 16px 26px; padding: 14px 0 16px; }
  .app-hero-meta-end { margin-left: 0; flex: 1 1 100%; }
  .app-hero-meta dd code { font-size: 11.5px; word-break: break-all; }

  .app-section-h { font-size: 20px; margin: 36px 0 14px; }
  .app-prose { font-size: 16px; }
  .app-prose h2 { font-size: 20px; margin: 32px 0 12px; }
  .app-page-cta-row .btn { width: 100%; justify-content: center; }

  /* Leaderboard */
  .top-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .top-row { padding: 12px 14px; gap: 12px; }
  .top-rank { width: 20px; font-size: 13px; }
  .top-logo { width: 36px; height: 36px; border-radius: 9px; }
  .top-votes { min-width: 52px; }
  .top-votes b { font-size: 15px; }
  .podium-card { padding: 18px; }

  /* Profile */
  .pf-item-main { flex-wrap: wrap; }
  .pf-metrics { gap: 14px; font-size: 12.5px; }
  .pf-grow { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pf-grow-actions { width: 100%; }
}

@media (max-width: 480px) {
  .app-hero { padding: 16px 14px 0; }
  .app-hero-logo, .app-hero-mono { width: 54px; height: 54px; font-size: 19px; border-radius: 13px; }
  .app-hero-id h1 { font-size: 23px; }
  .app-hero-tags { gap: 6px; }
  .app-hero-links { gap: 6px; }
  .app-hero-link { padding: 6px 10px; font-size: 12.5px; }
  .app-hero-meta { gap: 14px 22px; }
  .tnote { padding: 20px 16px; }
  .top-desc { display: none; }
  .top-tags { display: none; }
  .pf-chip { font-size: 12.5px; }
}

/* Post page: tighten the meta row and headings on small screens */
@media (max-width: 720px) {
  .post-hero-meta, .post-meta { flex-wrap: wrap; gap: 8px 10px; }
  .post-meta-sep { display: none; }
  .post-meta-date, .post-meta-time { font-size: 12.5px; white-space: nowrap; }
  .post-header h1 { font-size: 30px; line-height: 1.15; }
  .post-lede { font-size: 16px; }
  .post-content { font-size: 17px; }
  .post-share { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 480px) {
  .post-header h1 { font-size: 26px; }
  .post-content { font-size: 16.5px; }
}

/* Post page: tighten the meta row and headings on small screens */
@media (max-width: 720px) {
  .post-hero-meta, .post-meta { flex-wrap: wrap; gap: 8px 10px; }
  .post-meta-sep { display: none; }
  .post-meta-date, .post-meta-time { font-size: 12.5px; white-space: nowrap; }
  .post-header h1 { font-size: 30px; line-height: 1.15; }
  .post-lede { font-size: 16px; }
  .post-content { font-size: 17px; }
  .post-share { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 480px) {
  .post-header h1 { font-size: 26px; }
  .post-content { font-size: 16.5px; }
}



/* ═══════════════════════════════════════════════════════
   Most upvoted this month - homepage ranking
   The row itself is the bar: a translucent fill scaled to the
   leader sits behind the content, so the gap between apps
   reads at a glance instead of being implied by order.
═══════════════════════════════════════════════════════ */
.vchart-sub {
  font-size: 14px;
  color: var(--g600);
  margin: -14px 0 22px;
  max-width: 64ch;
}
.vchart {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vchart li {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.vchart-row {
  display: block;
  text-decoration: none;
}
.vchart-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(0, 152, 234, .11);
  transition: background .12s ease;
}
.vchart li:first-child .vchart-fill { background: rgba(0, 152, 234, .20); }
.vchart-row:hover .vchart-fill { background: rgba(0, 152, 234, .17); }
.vchart li:first-child .vchart-row:hover .vchart-fill { background: rgba(0, 152, 234, .26); }

.vchart-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 16px;
}
.vchart-rank {
  flex: none;
  width: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--g400);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.vchart li:nth-child(-n+3) .vchart-rank { color: var(--ton); }
.vchart-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
  background: var(--white);
}
.vchart-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--g600);
}
.vchart-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vchart-votes {
  margin-left: auto;
  padding-left: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--g900);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .vchart-sub { margin: -10px 0 18px; font-size: 13.5px; }
  .vchart-in { gap: 11px; padding: 10px 13px; }
  .vchart-logo { width: 32px; height: 32px; border-radius: 8px; }
  .vchart-name { font-size: 14.5px; }
  .vchart-rank { width: 15px; font-size: 12.5px; }
}

/* ═══════════════════════════════════════════════════════
   Small-screen corrections
═══════════════════════════════════════════════════════ */

/* Leaderboard: at 820px the three podium cards drop to one column and
   become full-height blocks that push the rest of the ranking off screen.
   Reflow each one into a compact row so 1-3 read like 4-10. */
@media (max-width: 820px) {
  .podium { gap: 10px; margin-bottom: 10px; }
  .podium-card {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas:
      "rank logo name votes"
      "desc desc desc desc"
      "tags tags tags tags";
    align-items: center;
    gap: 0 11px;
    padding: 12px 14px;
  }
  /* Unwrap the head so rank and votes sit on the same line as the app. */
  .podium-head { display: contents; }
  .podium-rank { grid-area: rank; width: 22px; height: 22px; font-size: 11.5px; }
  .podium-votes { grid-area: votes; font-size: 12px; white-space: nowrap; }
  .podium-logo {
    grid-area: logo;
    width: 40px; height: 40px;
    border-radius: 10px;
    margin: 0;
  }
  .podium-logo-mono { font-size: 14px; }
  .podium-name { grid-area: name; margin: 0; font-size: 16px; }
  .podium-desc {
    grid-area: desc;
    -webkit-line-clamp: 2;
    margin: 11px 0 0;
    font-size: 12.5px;
  }
  .podium-tags { grid-area: tags; margin-top: 11px; }
}

@media (max-width: 480px) {
  .podium-desc { display: none; }
  .podium-tags { margin-top: 10px; }
}

/* Sign-in: the mark sat left of a centred heading. */
.auth-mark { display: block; margin-left: auto; margin-right: auto; }

/* Monthly users, from Telegram's own public count on t.me */
.usage-n { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--black); }
.usage-delta {
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.usage-delta.up { color: #047857; }
.usage-delta.down { color: #B4453F; }
.app-card-usage {
  font-size: 12px;
  color: var(--g500);
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.app-card-usage b { color: var(--g700); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════
   Submit and edit: the listing page, editable in place.
   There is no form. Every block is styled as the output it
   becomes, so nothing needs a preview and nothing needs a
   label. Handles live in a gutter and appear on hover.
═══════════════════════════════════════════════════════ */

.ed-form { display: block; }

/* the only chrome the editor adds */
.ed-tools {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.ed-tools-in {
  max-width: var(--max-w); margin: 0 auto;
  padding: 11px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.ed-tools-l { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ed-tools-r { display: flex; align-items: center; gap: 9px; flex: none; }
.ed-state {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  background: var(--g100); color: var(--g600); white-space: nowrap;
}
.ed-state-live { background: rgba(0,152,234,.10); color: #0085CC; }
.ed-note { font-size: 12.5px; color: var(--g500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-ghost {
  background: none; border: none; font: inherit; font-size: 13px;
  color: var(--g500); cursor: pointer; padding: 8px 4px;
  transition: color .12s ease;
}
.ed-ghost:hover { color: var(--g900); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn:disabled, .btn[disabled] { background: var(--g200); color: var(--g400); cursor: not-allowed; }

.ed-page { max-width: var(--max-w); margin: 0 auto; padding: 28px var(--pad-x) 60px; }
.ed-error {
  background: #FDF2F2; border: 1px solid #F3D4D4; color: #A03A34;
  border-radius: var(--r-card); padding: 13px 16px; font-size: 14px; margin-bottom: 20px;
}

/* start bar */
.ed-start {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 22px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 17px 19px; margin-bottom: 24px;
}
.ed-start-t { font-size: 14.5px; font-weight: 600; color: var(--black); margin: 0; }
.ed-start-d { font-size: 12.5px; line-height: 1.55; color: var(--g500); margin: 4px 0 0; max-width: 62ch; }
.ed-start-f { display: flex; gap: 9px; align-items: center; }
.ed-start-f input {
  width: 250px; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 13px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px;
  color: var(--g900); background: var(--white); transition: border-color .12s ease;
}
.ed-start-f input:focus { outline: none; border-color: var(--black); }
.ed-start-err { grid-column: 1 / -1; font-size: 12.5px; color: #A03A34; margin: 0; }
.ed-start-alt { grid-column: 1 / -1; font-size: 12.5px; color: var(--g500); margin: 2px 0 0; }
.ed-linkbtn {
  background: none; border: none; padding: 0; font: inherit; color: var(--ton);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}

/* hero, editable */
.ed-hero .app-hero-top { align-items: flex-start; }
.ed-logo {
  width: 88px; height: 88px; border-radius: var(--r-card-lg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1px dashed var(--g300); background: rgba(255,255,255,.5);
  overflow: hidden; transition: border-color .12s ease;
}
.ed-logo:hover { border-color: var(--g500); }
.ed-logo-img { width: 88px; height: 88px; border-radius: var(--r-card-lg); object-fit: cover; display: block; }
.ed-logo-empty { font-size: 11.5px; color: var(--g400); text-align: center; line-height: 1.4; padding: 8px; }
.ed-logo:has(.ed-logo-img:not([hidden])) { border-style: solid; border-color: transparent; }

.ed-cat {
  font: inherit; font-size: 11px; font-weight: 500; color: var(--g600);
  background: rgba(255,255,255,.75); border: 1px solid #EDE3CD;
  padding: 3px 26px 3px 10px; border-radius: 100px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%2382828C' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.ed-cat:focus { outline: none; border-color: var(--g500); }

.ed-type { display: inline-flex; border: 1px solid #EDE3CD; border-radius: 100px; overflow: hidden; background: rgba(255,255,255,.75); }
.ed-type input { position: absolute; opacity: 0; pointer-events: none; }
.ed-type label {
  font-size: 11px; font-weight: 500; color: var(--g500);
  padding: 4px 11px; cursor: pointer; transition: background .12s ease, color .12s ease;
}
.ed-type input:checked + label { background: var(--black); color: #fff; }

.ed-name {
  font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 9px;
  color: var(--black); outline: none; border-radius: 5px;
  transition: background .12s ease;
}
.ed-lede {
  outline: none; border-radius: 5px; min-height: 26px;
  transition: background .12s ease;
}
.ed-name:hover, .ed-lede:hover { background: rgba(0,0,0,.03); }
.ed-name:focus, .ed-lede:focus { background: rgba(0,152,234,.06); }
.ed-lede-count {
  display: block; font-size: 11px; color: var(--g400); margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

/* the empty-state text on any editable surface */
[contenteditable][data-ph]:empty::before,
[data-ph].ed-b-body > .ed-row:only-child:empty::before {
  content: attr(data-ph); color: var(--g400); pointer-events: none;
}
.ed-b-body[data-ph]:empty::before { content: attr(data-ph); color: var(--g400); }

.ed-links { gap: 6px; }
.ed-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.7); border: 1px solid #EDE3CD;
  border-radius: 7px; padding: 5px 10px; transition: border-color .12s ease;
}
.ed-link:focus-within { border-color: var(--g500); }
.ed-link i { font-size: 11px; color: var(--g400); }
.ed-link input {
  border: none; background: none; font: inherit; font-size: 12.5px;
  color: var(--g700); width: 92px; outline: none;
}
.ed-link input::placeholder { color: var(--g400); }

.ed-cta-fake { pointer-events: none; opacity: .55; }
.ed-cta-vote {
  border: 1px solid #EDE3CD; background: rgba(255,255,255,.7); border-radius: 8px;
  padding: 10px 20px; font-size: 13.5px; color: var(--g500); text-align: center;
}
.ed-url { display: block; margin-top: 4px; }
.ed-url span {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--g400); margin-bottom: 5px;
}
.ed-url input {
  width: 100%; border: 1px solid #EDE3CD; border-radius: 8px; padding: 8px 11px;
  font: inherit; font-size: 12.5px; color: var(--g700); background: rgba(255,255,255,.7);
}
.ed-url input:focus { outline: none; border-color: var(--g500); }

.ed-toc-empty { font-size: 12.5px; color: var(--g400); line-height: 1.55; margin: 0; }
.ed-toc ul { list-style: none; margin: 0; padding: 0; }
.ed-toc li {
  font-size: 13px; color: var(--g500); padding: 5px 0 5px 11px;
  border-left: 1px solid var(--line); line-height: 1.4;
}

/* ── the body: blocks styled as published output ── */
.ed-prose { --gut: 38px; position: relative; }
.ed-b { position: relative; padding: 3px 0 3px var(--gut); border-radius: 5px; }
.ed-b-gut {
  position: absolute; left: 0; top: 4px; display: flex; align-items: center; gap: 1px;
  opacity: 0; transition: opacity .12s ease;
}
.ed-b:hover .ed-b-gut, .ed-b:focus-within .ed-b-gut { opacity: 1; }
.ed-b-btn {
  width: 20px; height: 20px; border: none; border-radius: 5px; cursor: pointer;
  background: var(--g100); color: var(--g400); font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s ease, color .12s ease;
}
.ed-b-btn:hover { background: var(--g200); color: var(--g700); }
.ed-b-del:hover { color: #A03A34; }
.ed-b-body { outline: none; }
.ed-b:focus-within::before {
  content: ""; position: absolute; left: calc(var(--gut) - 15px); top: 5px; bottom: 5px;
  width: 2px; border-radius: 2px; background: var(--ton);
}

.ed-b-h2 .ed-b-body {
  font-size: 22px; font-weight: 600; letter-spacing: -0.022em; color: var(--black);
  line-height: 1.32; padding: 26px 0 6px;
}
.ed-b-p .ed-b-body { font-size: 16.5px; line-height: 1.75; color: var(--g700); padding: 8px 0; }

.ed-b-ul .ed-b-body, .ed-b-ol .ed-b-body { padding: 6px 0; }
.ed-b-ul .ed-row {
  position: relative; padding-left: 19px;
  font-size: 16.5px; line-height: 1.75; color: var(--g700);
}
.ed-b-ul .ed-row::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--g300);
}
.ed-b-ol .ed-b-body { counter-reset: edstep; }
.ed-b-ol .ed-row {
  position: relative; padding-left: 36px; margin: 5px 0;
  font-size: 16.5px; line-height: 1.75; color: var(--g700);
}
.ed-b-ol .ed-row::before {
  counter-increment: edstep; content: counter(edstep);
  position: absolute; left: 0; top: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--g100); color: var(--g600);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* command table: the site's signature, so it looks right while being typed */
.ed-b-cmd .ed-b-body { padding: 12px 0; }
.ed-b-cmd .ed-row {
  display: grid; grid-template-columns: 31% 1fr; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.55; color: var(--g600);
}
.ed-b-cmd .ed-row:first-child { border-top: 1px solid var(--line); }
.ed-b-cmd .ed-row::first-line { color: var(--g600); }
.ed-b-cmd .ed-b-body::before {
  content: "Command | what it does";
  display: block; font-size: 10px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--g400); padding-bottom: 8px;
}

.ed-b-call .ed-b-body {
  border-left: 2px solid var(--ton); background: var(--paper);
  border-radius: 0 8px 8px 0; padding: 15px 19px; margin: 14px 0;
  font-size: 15.5px; line-height: 1.65; color: var(--g700);
}

.ed-insert { display: flex; align-items: center; gap: 11px; padding: 16px 0 0 calc(38px - 28px); }
.ed-insert-btn {
  width: 20px; height: 20px; border: none; border-radius: 5px; cursor: pointer;
  background: var(--g100); color: var(--g500); font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s ease;
}
.ed-insert-btn:hover { background: var(--g200); }
.ed-insert-t { font-size: 15px; color: var(--g400); }
.ed-insert-t kbd {
  font-family: ui-monospace, Menlo, monospace; font-size: 11.5px;
  background: var(--g100); color: var(--g600); border-radius: 4px; padding: 2px 6px;
}

/* insert menu */
.ed-slash {
  position: absolute; z-index: 60; width: 246px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 6px;
}
.ed-slash-h {
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--g400); padding: 7px 10px 5px; margin: 0;
}
.ed-slash-i {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 8px 10px; border: none; border-radius: 7px; background: none;
  font: inherit; font-size: 13.5px; color: var(--g700); cursor: pointer; text-align: left;
  transition: background .12s ease;
}
.ed-slash-i:hover { background: var(--g100); }
.ed-slash-i .ico { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--g500); width: 18px; }
.ed-slash-i .k { margin-left: auto; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--g300); }

/* optional zones: quiet until used, invisible once published */
.ed-band {
  border: 1px dashed var(--g300); border-radius: var(--r-card); background: var(--paper);
  padding: 24px; text-align: center; margin: 28px 0 0; cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.ed-band:hover { border-color: var(--g400); background: var(--g100); }
.ed-band b { display: block; font-size: 14px; font-weight: 500; color: var(--g700); margin-bottom: 3px; }
.ed-band span { font-size: 13px; color: var(--g500); }
.ed-band.has { border-style: solid; background: var(--white); text-align: left; }
.ed-shots-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ed-shot { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.ed-faq { margin-top: 14px; }
.ed-faq-row {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px 44px 14px 15px; margin-bottom: 10px; background: var(--white);
}
.ed-faq-q, .ed-faq-a {
  width: 100%; border: none; outline: none; font: inherit; background: none;
  color: var(--g900); resize: none;
}
.ed-faq-q { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.ed-faq-a { font-size: 14.5px; line-height: 1.6; color: var(--g600); }
.ed-faq-q::placeholder, .ed-faq-a::placeholder { color: var(--g400); font-weight: 400; }
.ed-faq-x {
  position: absolute; top: 11px; right: 11px;
  width: 22px; height: 22px; border: none; border-radius: 5px; cursor: pointer;
  background: var(--g100); color: var(--g400); font-size: 14px; line-height: 1;
}
.ed-faq-x:hover { color: #A03A34; }

/* preview as a visitor */
.ed-previewing .ed-b-gut,
.ed-previewing .ed-insert,
.ed-previewing .ed-band,
.ed-previewing .ed-start { display: none; }
.ed-previewing .ed-name:hover,
.ed-previewing .ed-lede:hover { background: none; }

/* submitted */
.sub-done-wrap { padding: 90px 0 110px; }
.sub-done { max-width: 480px; margin: 0 auto; text-align: center; }
.sub-done-tick {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(4,120,87,.10);
  color: #047857; display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin: 0 auto 20px;
}
.sub-done h1 { font-size: 27px; font-weight: 600; letter-spacing: -0.028em; color: var(--black); margin: 0 0 10px; }
.sub-done p { font-size: 15px; line-height: 1.65; color: var(--g600); margin: 0; }
.sub-done-acts { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }

@media (max-width: 900px) {
  .ed-start { grid-template-columns: 1fr; }
  .ed-start-f input { width: 100%; }
}
@media (max-width: 720px) {
  .ed-tools-in { padding: 10px 16px; gap: 10px; }
  .ed-note { display: none; }
  .ed-ghost { display: none; }
  .ed-page { padding: 20px 16px 50px; }
  .ed-name { font-size: 25px; }
  .ed-prose { --gut: 0; }
  .ed-b-gut { position: static; opacity: 1; margin-bottom: 4px; }
  .ed-b:focus-within::before { display: none; }
  .ed-insert { padding-left: 0; }
  .ed-b-cmd .ed-row { grid-template-columns: 1fr; gap: 3px; }
  .ed-link input { width: 78px; }
  .sub-done-acts { flex-direction: column; }
}

/* [hidden] loses to any display rule with a class selector, which silently
   showed the verified badge and the manual-link field on a fresh page. */
.ed-form [hidden], .ed-page [hidden] { display: none !important; }

.ed-logo-empty {
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding: 6px;
  max-width: 100%;
}
.pf-edit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--g500);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 11px;
  transition: border-color .12s ease, color .12s ease;
}
.pf-edit:hover { border-color: var(--g400); color: var(--g900); }
.pf-edit i { font-size: 10px; }

/* Upvotes on a listing row. The only number an owner sees, so it gets
   the weight of a headline rather than sitting in a row of statistics. */
.pf-upvotes {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
}
.pf-up-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 152, 234, .10);
  color: var(--ton);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pf-up-n {
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pf-up-l { font-size: 13px; color: var(--g500); }
.pf-up-rank {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--g600);
  padding-left: 11px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
}

/* ── Editor: labelled sections ───────────────────────────
   The two required things say so, and everything optional
   says that too, so nobody has to guess what blocks them. */
.ed-req, .ed-opt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 7px;
  vertical-align: 1px;
}
.ed-req { background: rgba(0, 152, 234, .10); color: #0080C4; }
.ed-opt { background: var(--g100); color: var(--g500); }

/* About: the one sentence, at the foot of the hero card */
.ed-about {
  border-top: 1px solid #EDE3CD;
  padding: 17px 0 4px;
}
.ed-about-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}
.ed-about-t {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--g500);
}
.ed-about-in {
  font-size: 16px;
  line-height: 1.6;
  color: var(--g900);
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #EDE3CD;
  border-radius: 9px;
  background: rgba(255, 255, 255, .75);
  outline: none;
  min-height: 24px;
  transition: border-color .12s ease;
  max-width: 64ch;
}
.ed-about-in:hover { border-color: var(--g300); }
.ed-about-in:focus { border-color: var(--g500); background: var(--white); }
.ed-about-d { font-size: 12px; color: var(--g500); margin: 8px 0 0; }
.ed-lede-count {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
}

/* Links row header */
.ed-links-h {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--g500);
  margin: 16px 0 8px;
}

/* Full description header, above the writing surface */
.ed-body-h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 11px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ed-body-t {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--g500);
}
.ed-body-d { font-size: 12.5px; color: var(--g500); }

/* Type: checkboxes now, because an app can be both */
.ed-type input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.ed-type label { user-select: none; }
.ed-type input:checked + label { background: var(--black); color: #fff; }
.ed-type label:hover { color: var(--g900); }
.ed-type input:checked + label:hover { color: #fff; }

@media (max-width: 720px) {
  .ed-about-in { font-size: 15px; }
  .ed-body-h { gap: 4px 12px; }
}

/* ═══════════════════════════════════════════════════════
   Top picks. Three equal cards, no invented ranking, and
   the two numbers that are actually true: upvotes from
   members, and Telegram's own monthly-user count.
═══════════════════════════════════════════════════════ */
.picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pick {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  padding: 20px 20px 0;
  text-decoration: none;
  transition: border-color .12s ease;
}
.pick:hover { border-color: var(--g300); }

.pick-head { display: flex; align-items: flex-start; gap: 13px; }
.pick-logo {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: cover;
  flex: none;
  background: var(--paper);
}
.pick-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
}
.pick-id { min-width: 0; flex: 1; }
.pick-name {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.018em;
  line-height: 1.25;
}
.pick-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.pick-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--g600);
  margin: 15px 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* The stat foot sits on the card edge, so all three line up
   regardless of how long the description runs. */
.pick-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.pick-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--g500);
  white-space: nowrap;
}
.pick-stat b {
  font-weight: 600;
  color: var(--g900);
  font-variant-numeric: tabular-nums;
}
.pick-votes i { font-size: 10px; color: var(--ton); }
.pick-go {
  margin-left: auto;
  font-size: 12px;
  color: var(--g300);
  transition: color .12s ease;
}
.pick:hover .pick-go { color: var(--g700); }

@media (max-width: 900px) {
  .picks { grid-template-columns: repeat(2, 1fr); }
  .picks .pick:last-child { display: none; }
}
@media (max-width: 620px) {
  .picks { grid-template-columns: 1fr; gap: 12px; }
  .picks .pick:last-child { display: flex; }
  .pick { padding: 16px 16px 0; }
  .pick-logo { width: 46px; height: 46px; border-radius: 11px; }
  .pick-name { font-size: 16px; }
  .pick-desc { -webkit-line-clamp: 2; margin: 13px 0 15px; }
}
/* Hand-written HTML carried through from a page we wrote. Visible so the
   owner knows it is there, not editable so they cannot break the markup. */
.ed-b-raw .ed-b-body {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--g500);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* A filled link input needs room for a real URL, not a placeholder. */
.ed-link input { width: 92px; }
.ed-link input:not(:placeholder-shown) { width: 158px; }
.ed-link input:focus { width: 200px; }
.ed-links { flex-wrap: wrap; }

/* ── Owner verification strip ─────────────────────────────
   Shown on the edit page when a listing has no badge yet.
   Lives outside the editor form, because forms cannot nest. */
.verify-strip {
  background: var(--cream);
  border-bottom: 1px solid #EDE3CD;
}
.verify-in {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.verify-t {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--black);
  margin: 0;
}
.verify-t i { font-size: 13px; color: var(--g500); }
.verify-d {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--g600);
  margin: 5px 0 0;
  max-width: 74ch;
}
.verify-d b { color: var(--g900); font-weight: 500; }
.verify-f { display: flex; gap: 9px; align-items: center; flex: none; }
.verify-f input {
  width: 240px;
  border: 1px solid #EDE3CD;
  border-radius: 8px;
  padding: 10px 13px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  color: var(--g900);
  background: var(--white);
  transition: border-color .12s ease;
}
.verify-f input:focus { outline: none; border-color: var(--g500); }
.verify-msg {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) 15px;
  font-size: 13px;
}
.verify-err { color: #A03A34; }
.verify-done { background: rgba(4,120,87,.07); border-bottom-color: rgba(4,120,87,.18); }
.verify-done .verify-t i { color: #047857; }

@media (max-width: 720px) {
  .verify-in { padding: 14px 16px; gap: 14px; }
  .verify-f { width: 100%; }
  .verify-f input { flex: 1; width: auto; }
  .verify-msg { padding: 0 16px 13px; }
}


/* ═══════════════════════════════════════════════════════
   Homepage API band. The only dark block on the page, so
   it reads as a different kind of thing without needing
   any decoration to say so.
═══════════════════════════════════════════════════════ */
.api-band { background: #0E0E12; padding: 72px 0; }
.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.api-kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #6E6E7C;
}
.api-band h2 {
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.032em;
  color: #fff;
  margin: 12px 0 0;
  line-height: 1.15;
  max-width: 15ch;
}
.api-lede {
  font-size: 15.5px;
  line-height: 1.7;
  color: #9494A0;
  margin: 16px 0 0;
  max-width: 52ch;
}
.api-acts { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.api-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 8px;
  transition: background .12s ease;
}
.api-cta:hover { background: #E4E4EA; }
.api-cta i { font-size: 11px; }
.api-alt { font-size: 14px; color: #9494A0; transition: color .12s ease; }
.api-alt:hover { color: #fff; }

.api-demo {
  border: 1px solid #23232C;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #121218;
}
.api-demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid #23232C;
}
.api-verb {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #4FB6F0;
  background: rgba(0, 152, 234, .12);
  padding: 3px 8px;
  border-radius: 4px;
}
.api-path { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: #C6C6D0; }
.api-code { margin: 0; padding: 16px 18px; overflow-x: auto; }
.api-code code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: #8E8E9C;
  white-space: pre;
  display: block;
}
.api-code .c-k { color: #C6C6D0; }
.api-code .c-t { color: #5BC08C; }
.api-code .c-s { color: #E0B77A; }
.api-code .c-n { color: #7FB6E8; }
.api-demo-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-top: 1px solid #23232C;
}
.api-demo-sep span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #5BC08C;
  background: rgba(91, 192, 140, .10);
  padding: 3px 8px;
  border-radius: 4px;
  margin: 12px 0 0;
}

@media (max-width: 900px) {
  .api-band { padding: 52px 0; }
  .api-grid { grid-template-columns: 1fr; gap: 32px; }
  .api-band h2 { font-size: 27px; max-width: none; }
}
@media (max-width: 620px) {
  .api-acts { gap: 16px; }
  .api-cta { width: 100%; justify-content: center; }
}



/* ═══════════════════════════════════════════════════════
   Homepage API band. The only dark block on the page, so
   it reads as a different kind of thing without needing
   any decoration to say so.
═══════════════════════════════════════════════════════ */
.api-band { background: #0E0E12; padding: 72px 0; }
.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.api-kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #6E6E7C;
}
.api-band h2 {
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.032em;
  color: #fff;
  margin: 12px 0 0;
  line-height: 1.15;
  max-width: 15ch;
}
.api-lede {
  font-size: 15.5px;
  line-height: 1.7;
  color: #9494A0;
  margin: 16px 0 0;
  max-width: 52ch;
}
.api-acts { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.api-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 8px;
  transition: background .12s ease;
}
.api-cta:hover { background: #E4E4EA; }
.api-cta i { font-size: 11px; }
.api-alt { font-size: 14px; color: #9494A0; transition: color .12s ease; }
.api-alt:hover { color: #fff; }

.api-demo {
  border: 1px solid #23232C;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #121218;
}
.api-demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid #23232C;
}
.api-verb {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #4FB6F0;
  background: rgba(0, 152, 234, .12);
  padding: 3px 8px;
  border-radius: 4px;
}
.api-path { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: #C6C6D0; }
.api-code { margin: 0; padding: 16px 18px; overflow-x: auto; }
.api-code code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: #8E8E9C;
  white-space: pre;
  display: block;
}
.api-code .c-k { color: #C6C6D0; }
.api-code .c-t { color: #5BC08C; }
.api-code .c-s { color: #E0B77A; }
.api-code .c-n { color: #7FB6E8; }
.api-demo-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-top: 1px solid #23232C;
}
.api-demo-sep span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #5BC08C;
  background: rgba(91, 192, 140, .10);
  padding: 3px 8px;
  border-radius: 4px;
  margin: 12px 0 0;
}

@media (max-width: 900px) {
  .api-band { padding: 52px 0; }
  .api-grid { grid-template-columns: 1fr; gap: 32px; }
  .api-band h2 { font-size: 27px; max-width: none; }
}
@media (max-width: 620px) {
  .api-acts { gap: 16px; }
  .api-cta { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════
   Homepage API. The endpoint set as a specimen rather than
   dressed up as a terminal. Same light ground, hairlines
   and one accent as everything else on the page.
═══════════════════════════════════════════════════════ */
.apiv-lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--g600);
  margin: -16px 0 26px;
  max-width: 54ch;
}

.apiv-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.apiv-verb {
  flex: none;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--g500);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 9px;
}
.apiv-path {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px;
  color: var(--g900);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.apiv-path em { font-style: normal; color: var(--g400); }
.apiv-arrow { flex: none; color: var(--g300); font-size: 11px; margin: 0 2px; }
.apiv-res {
  flex: none;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px;
  color: var(--g500);
  white-space: nowrap;
}
.apiv-res b { color: var(--ton); font-weight: 600; }

.apiv-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 18px;
}
.apiv-notes span { font-size: 13px; color: var(--g500); }
.apiv-notes b { color: var(--g900); font-weight: 500; }

@media (max-width: 860px) {
  .apiv-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 12px;
    overflow-x: visible;
  }
  .apiv-path { white-space: normal; word-break: break-all; font-size: 13px; }
  .apiv-arrow { display: none; }
  .apiv-res { grid-column: 2; font-size: 13px; }
  .apiv-notes { gap: 8px 0; flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════
   API page. Sidebar on the left, one column of content on
   the right, in the same white ground and hairlines as
   every other page. No panels, no cards, no shadows.
═══════════════════════════════════════════════════════ */
.api-shell { padding: 40px 0 90px; }
.api-container {
  display: grid;
  grid-template-columns: 186px 1fr;
  gap: 54px;
  align-items: start;
}

/* sidebar */
.api-nav-in { position: sticky; top: 88px; }
.api-nav-h {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--g400);
  margin: 22px 0 8px;
}
.api-nav-h:first-child { margin-top: 0; }
.api-nav-a {
  display: block;
  padding: 6px 0 6px 13px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--g500);
  border-left: 1px solid var(--line);
  transition: color .12s ease, border-color .12s ease;
}
.api-nav-a:hover { color: var(--g900); }
.api-nav-a.on { color: var(--black); font-weight: 500; border-left-color: var(--black); }

/* content */
.api-main { max-width: 680px; min-width: 0; }
.api-h1 {
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.032em;
  color: var(--black);
  margin: 10px 0 0;
  line-height: 1.14;
}
.api-lede { font-size: 16px; line-height: 1.7; color: var(--g600); margin: 14px 0 0; }

.api-sec { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.api-sec h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.024em;
  color: var(--black);
  margin: 0 0 14px;
}
.api-sec > p { font-size: 15px; line-height: 1.75; color: var(--g600); margin: 0 0 20px; }
.api-sec code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  background: var(--g100);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--g900);
}
.api-sec a { color: var(--ton); }
.api-small { font-size: 13px; line-height: 1.65; color: var(--g500); margin: 0; }

/* fact rows: a bold claim and a plain explanation, hairline between */
.api-facts { margin: 0; }
.api-facts > div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.api-facts > div:first-child { border-top: none; padding-top: 0; }
.api-facts dt { font-size: 14.5px; font-weight: 600; color: var(--black); letter-spacing: -0.01em; }
.api-facts dd { font-size: 14px; line-height: 1.7; color: var(--g600); margin: 0; }


/* steps */
.api-steps { list-style: none; margin: 0 0 18px; padding: 0; }
.api-steps li { display: flex; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); }
.api-steps li:first-child { border-top: none; padding-top: 0; }
.api-steps span {
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--g500);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.api-steps div { font-size: 14.5px; line-height: 1.7; color: var(--g600); }
.api-steps b { color: var(--black); font-weight: 500; }

/* endpoints */
.api-ep { padding: 20px 0; border-top: 1px solid var(--line); }
.api-ep:first-of-type { border-top: none; padding-top: 0; }
.api-ep-t { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.api-ep-t code { font-size: 13.5px; background: none; padding: 0; color: var(--black); font-weight: 500; }
.api-verb {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .09em;
  background: rgba(0, 152, 234, .10);
  color: #0080C4;
  padding: 3px 8px;
  border-radius: 4px;
}
.api-ep-d { font-size: 14px; line-height: 1.7; color: var(--g600); margin: 0 0 13px; }
.api-ep-d:last-child { margin-bottom: 0; }

.api-code {
  background: #131317;
  border-radius: 10px;
  padding: 15px 17px;
  overflow-x: auto;
  margin: 0 0 13px;
}
.api-code code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: #D2D2DA;
  background: none;
  padding: 0;
  white-space: pre;
  display: block;
}

.api-tabs { display: flex; gap: 6px; margin: 24px 0 12px; }
.api-tab {
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  color: var(--g600);
  padding: 6px 14px;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.api-tab:hover { border-color: var(--g300); }
.api-tab.is-on { background: var(--black); border-color: var(--black); color: #fff; font-weight: 500; }

/* keys */
.api-signin {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px;
}
.api-signin p { margin: 0; font-size: 14.5px; color: var(--g700); }
.api-warn {
  border: 1px solid #EDE3CD; background: var(--cream); border-radius: var(--r-card);
  padding: 14px 16px; font-size: 13.5px; line-height: 1.65; color: var(--g700); margin-bottom: 18px;
}
.api-newform { display: flex; gap: 9px; margin-bottom: 24px; }
.api-newform input {
  flex: 1; max-width: 300px;
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px;
  font: inherit; font-size: 13.5px; color: var(--g900); transition: border-color .12s ease;
}
.api-newform input:focus { outline: none; border-color: var(--black); }


@media (max-width: 900px) {
  /* A 1fr track takes its minimum from max-content, so the nowrap link row
     widened the whole page instead of scrolling inside itself. */
  .api-container { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .api-container > * { min-width: 0; }
  .api-nav { position: sticky; top: 0; z-index: 30; background: var(--white); margin: 0 0 26px; min-width: 0; }
  .api-nav-in { position: static; display: flex; gap: 18px; overflow-x: auto;
    padding: 12px 0; border-bottom: 1px solid var(--line); }
  .api-nav-h { display: none; }
  .api-nav-a { border-left: none; padding: 0; white-space: nowrap; font-size: 13px; }
  .api-nav-a.on { border-left: none; }
  .api-h1 { font-size: 27px; }
  .api-facts > div { grid-template-columns: 1fr; gap: 5px; }
  .api-table thead { display: none; }
  .api-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
    .api-table td:nth-child(3) { display: none; }
  }

/* ── Your keys: cards, created and revoked without a reload ── */
.api-reveal {
  border: 1px solid rgba(4, 120, 87, .22); background: rgba(4, 120, 87, .05);
  border-radius: var(--r-card); padding: 15px 17px; margin-bottom: 16px;
}
.api-reveal-h { font-size: 12.5px; font-weight: 600; color: #047857; margin: 0 0 10px; }
.api-reveal-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.api-reveal-row code {
  flex: 1; min-width: 220px; font-size: 12.5px; background: var(--white);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; word-break: break-all;
}
.api-msg { font-size: 13px; color: #047857; margin: 0 0 14px; }
.api-msg.is-bad { color: #A03A34; }

.api-keys { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.api-key {
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 13px 15px;
  transition: opacity .18s ease, transform .18s ease, border-color .12s ease;
}
.api-key.is-new { opacity: 0; transform: translateY(-4px); }
.api-key.is-revoked { opacity: .45; }
.api-key-main { min-width: 0; flex: 1; }
.api-key-name {
  display: block; font-size: 14.5px; font-weight: 600; color: var(--black);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.api-key-pre {
  display: block; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px;
  color: var(--g500); background: none !important; padding: 0 !important; margin-top: 2px;
}
.api-key-meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--g500); flex: none; }
.api-key-meta b { color: var(--g900); font-weight: 600; font-variant-numeric: tabular-nums; }
.api-key-x {
  flex: none; background: none; border: 1px solid var(--line); border-radius: 7px;
  cursor: pointer; font: inherit; font-size: 12.5px; color: var(--g500); padding: 6px 12px;
  transition: border-color .12s ease, color .12s ease;
}
.api-key-x:hover { border-color: #E3B9B6; color: #A03A34; }
.api-key-x:disabled { opacity: .5; cursor: default; }
.api-key-tag {
  flex: none; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--g100); color: var(--g500); padding: 3px 8px; border-radius: 4px;
}

@media (max-width: 620px) {
  .api-cards { grid-template-columns: 1fr; }
  .api-card-figs { gap: 20px; }
  .api-fig { font-size: 23px; }
  .api-key { flex-wrap: wrap; gap: 10px 14px; }
  .api-key-main { flex: 1 1 100%; }
  .api-key-meta { flex: 1; }
  .api-key-x, .api-key-tag { margin-left: auto; }
  .api-newform { flex-wrap: wrap; }
  .api-newform input { max-width: none; flex: 1 1 100%; }
}

/* ── What you can build: the copy beside a picture of the
      thing being described, drawn as a Telegram message ── */
.api-builds { display: flex; flex-direction: column; gap: 0; }
.api-build {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 34px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.api-build:first-child { border-top: none; padding-top: 4px; }
.api-build-t { font-size: 15.5px; font-weight: 600; color: var(--black); margin: 0 0 7px; letter-spacing: -0.014em; }
.api-build-d { font-size: 14px; line-height: 1.7; color: var(--g600); margin: 0; }

/* the chat mock */
.tg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Pinned to the UI face so the mock still reads as a chat when it sits
     inside post content, which sets a serif for body copy. */
  font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.tg-msg {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 5px;
  padding: 13px 15px;
}
.tg-title {
  font-size: 12.5px; font-weight: 600; color: var(--black);
  margin: 0 0 9px; letter-spacing: -0.008em;
}
.tg-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; line-height: 1.5; color: var(--g700); margin: 6px 0;
}
.tg-row.is-done { color: var(--g400); text-decoration: line-through; text-decoration-thickness: 1px; }
.tg-tick { color: #047857; font-size: 11px; flex: none; }
.tg-box {
  width: 11px; height: 11px; border: 1.5px solid var(--g300);
  border-radius: 3px; flex: none;
}
.tg-prize {
  margin-left: auto; font-size: 11px; font-weight: 600; color: #0085CC;
  background: rgba(0, 152, 234, .10); padding: 2px 7px; border-radius: 20px;
  font-variant-numeric: tabular-nums;
}
.tg-line { font-size: 12.5px; line-height: 1.6; color: var(--g700); margin: 0 0 5px; }
.tg-line:last-child { margin-bottom: 0; }
.tg-dim { color: var(--g500); }
.tg-stat { font-size: 12.5px; color: var(--g600); margin: 9px 0; }
.tg-stat b {
  font-size: 20px; font-weight: 600; color: var(--black);
  letter-spacing: -0.02em; margin-right: 5px; font-variant-numeric: tabular-nums;
}
.tg-btn {
  display: block; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 14px; font-size: 12.5px; font-weight: 500; color: #0085CC;
}

/* ── Limits as figures rather than another table of prose ── */
.api-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 10px; margin-bottom: 18px; }
.api-chip {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px 15px;
}
.api-chip b {
  display: block; font-size: 23px; font-weight: 600; color: var(--black);
  letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.api-chip span { display: block; font-size: 12px; color: var(--g500); margin-top: 6px; line-height: 1.4; }
.api-rule { margin-top: 11px; }
.api-rule b { color: var(--g900); font-weight: 500; }

@media (max-width: 720px) {
  .api-build { grid-template-columns: 1fr; gap: 16px; }
  .api-chips { grid-template-columns: repeat(2, 1fr); }
}
.api-errs { width: 100%; border-collapse: collapse; }
.api-errs td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--g600); vertical-align: top; }
.api-errs tr:last-child td { border-bottom: none; }
.api-errs td:first-child { width: 62px; }
.api-errs b { color: var(--g900); font-weight: 500; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }

/* ── Your apps on the API page: just the identifier and the count ── */
.api-sec-first { padding-top: 34px; margin-top: 34px; }
.api-apps { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.api-app {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.api-app-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; background: var(--paper); }
.api-app-mono { display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; color: var(--g600); }
.api-app-name {
  font-size: 14.5px; font-weight: 600; color: var(--black) !important;
  letter-spacing: -0.012em; white-space: nowrap;
}
.api-app-slug {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--g600);
  background: var(--g100);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 9px;
  cursor: pointer;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.api-app-slug:hover { border-color: var(--g300); color: var(--g900); }
.api-app-slug.is-copied { background: rgba(4,120,87,.09); color: #047857; }
.api-app-votes { margin-left: auto; font-size: 13px; color: var(--g500); white-space: nowrap; }
.api-app-votes b { color: var(--g900); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .api-app { flex-wrap: wrap; gap: 8px 11px; }
  .api-app-name { flex: 1; }
  .api-app-votes { margin-left: 0; flex: 1 1 100%; }
}

/* ── Profile: upvotes and the 30-day shape of them ── */
.pf-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.pf-upvotes { margin-top: 0; }
.pf-chart { display: flex; align-items: flex-end; gap: 11px; }
.pf-chart svg { width: 96px; height: 26px; flex: none; overflow: visible; }
.pf-chart polyline {
  fill: none;
  stroke: var(--ton);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.pf-chart-l { font-size: 11.5px; color: var(--g500); line-height: 1.4; }
.pf-chart-l b { color: var(--g900); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .pf-stats { gap: 12px; }
  .pf-chart svg { width: 80px; }
}

/* ── Preview bar, shown on an unpublished page ── */
.prev-bar { background: var(--cream); border-bottom: 1px solid #EDE3CD; }
.prev-bar-in { display: flex; align-items: center; gap: 12px; padding: 12px var(--pad-x); flex-wrap: wrap; }
.prev-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--black); color: #fff; padding: 4px 9px; border-radius: 4px; flex: none;
}
.prev-txt { font-size: 13.5px; color: var(--g700); line-height: 1.5; }

/* ── Rejected listing on the profile: the reason and the way back ── */
.pf-rejected {
  border: 1px solid #EDE3CD; background: var(--cream);
  border-radius: var(--r-card); padding: 14px 16px; margin-top: 12px;
}
.pf-rejected-h {
  font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--warn, #B45309); margin: 0 0 6px;
}
.pf-rejected-b { font-size: 14px; line-height: 1.6; color: var(--g700); margin: 0 0 12px; }
.pf-rejected-go {
  display: inline-block; font-size: 13px; font-weight: 500; color: #fff;
  background: var(--black); border-radius: 8px; padding: 8px 15px;
}
