/* ==================================================
   VAARTHA — DESIGN TOKENS
   Editorial wire-service theme: ink + saffron-gold + crimson
   ================================================== */

/* The browser's default [hidden] rule can be overridden by any later,
   equally-specific component rule that sets its own `display` (e.g.
   `.auth-form { display: flex }`). This keeps `el.hidden = true` reliable
   everywhere in the app regardless of what else styles that element. */
[hidden] { display: none !important; }

:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --gold: #E8A33D;
  --gold-soft: #F2C77A;
  --crimson: #C81E3A;
  --teal: #2DD9A8;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --shadow-card: 0 10px 30px -12px rgba(0,0,0,0.45);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="light"],
:root {
  --bg-app: #FFFFFF;
  --bg-outer: #F0EFEA;
  --surface: #FFFFFF;
  --surface-2: #F5F4F0;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --border: rgba(20,20,20,0.08);
  --text-primary: #16181D;
  --text-muted: #5B5F6B;
  --text-faint: #9A9EA8;
}

[data-theme="dark"] {
  --bg-app: #0F1115;
  --bg-outer: #08090b;
  --surface: #171A21;
  --surface-2: #1E222B;
  --surface-glass: rgba(23, 26, 33, 0.72);
  --border: rgba(255,255,255,0.08);
  --text-primary: #F2F0EA;
  --text-muted: #939AAA;
  --text-faint: #5D6272;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: var(--font-body);
  background: var(--bg-outer);
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  position: fixed;
  inset: 0;
}
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
input { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== APP SHELL — always fills a real phone screen edge to edge;
   only simulated as a framed "device" on wide desktop viewports.
   IMPORTANT: this uses a fixed `height` (not min-height) on mobile so the
   shell itself never grows past one screen. Only .feed-scroller inside it
   scrolls (with snap), Instagram/way2news style — the outer page/header/
   bottom-nav never move. ===== */
.app-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 460px) {
  body { display: flex; align-items: center; justify-content: center; padding: 24px 0; position: fixed; }
  .app-shell {
    max-width: 420px;
    height: min(900px, 94dvh);
    max-height: min(900px, 94dvh);
    border-radius: 32px;
    box-shadow: 0 40px 90px -30px rgba(0,0,0,0.55);
    border: 1px solid var(--border);
  }
}

/* ===== HEADER ===== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-top);
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}
.header-left { display: flex; align-items: center; gap: 4px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: linear-gradient(155deg, var(--gold), var(--crimson));
  color: #12100A;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 9px;
  font-size: 16px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.2px;
}
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-primary);
  position: relative;
  transition: background 0.15s;
}
.icon-btn:active { background: var(--surface-2); }
.icon-btn svg { width: 21px; height: 21px; }
.notif-dot {
  position: absolute; top: 7px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--crimson);
  border: 2px solid var(--surface);
}
.avatar-btn img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* Search */
.search-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 10px;
}
.search-row input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--text-primary);
  outline: none;
}
.search-row input:focus { border-color: var(--gold); }
.search-results {
  max-height: 50vh; overflow-y: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.search-result-item {
  display: flex; gap: 10px; padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.search-result-item img { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.search-result-item .srt { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.search-result-item .srm { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; font-family: var(--font-mono); }

/* Ticker — signature element: wire-service marquee */
.ticker {
  display: flex; align-items: center;
  background: #12100A;
  overflow: hidden;
  height: 30px;
}
[data-theme="light"] .ticker { background: #1B1A17; }
.ticker-tag {
  flex-shrink: 0;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0 10px;
  height: 100%;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-soft);
  padding-left: 12px;
  animation: ticker-scroll 22s linear infinite;
}
.ticker-track span { padding-right: 48px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

/* Category chips */
.chip-row {
  display: flex; gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #17140B;
  font-weight: 600;
}

/* ===== FEED VIEWPORT ===== */
.feed-viewport { flex: 1; overflow: hidden; position: relative; }
.feed-reporter { position: relative; }
.reporter-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(12px + var(--safe-top)) 12px 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0));
  pointer-events: none;
}
.reporter-bar .icon-btn { pointer-events: auto; color: #fff; }
.reporter-bar .icon-btn:active { background: rgba(255,255,255,0.15); }
#reporterBarName { font-weight: 600; font-size: 15px; color: #fff; pointer-events: none; }
.feed-scroller {
  height: 100%;
  overflow-y: hidden; /* JS drives paging exclusively — see enableFastPaging().
    Letting the browser ALSO scroll natively here (its old overflow:scroll +
    scroll-snap) was fighting the JS animation frame-by-frame, which is what
    caused the shaking. */
  overscroll-behavior: none;
  touch-action: none;
}

/* ===== NEWS CARD — Way2News style: top image + full-screen content panel, one per screen ===== */
.news-card {
  height: 100%;
  min-height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

/* Top image block — fixed share of the screen, full width, edge to edge */
.news-card .card-media {
  position: relative;
  flex: 0 0 35%;
  min-height: 35%;
  background: var(--surface-2);
  overflow: hidden;
}
.news-card .card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card-media-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.card-media-badges {
  position: absolute; left: 12px; top: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.badge {
  padding: 3px 9px; border-radius: 100px;
  font-weight: 600; letter-spacing: 0.03em;
  font-size: 10.5px;
}
.badge-breaking { background: var(--crimson); color: #fff; }
.badge-category { background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); color: #fff; }
.card-brand-tag {
  position: absolute; left: 12px; bottom: 10px;
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em;
  color: #fff; text-transform: lowercase;
}
.card-brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Content panel — solid background, fills the rest of the screen */
.card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.card-body-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden; /* matter is fixed in place — it never scrolls on its
    own; letting it scroll independently was creating a second scroll
    context that fought the card-to-card swipe gesture and made things
    feel jittery. The word-limit truncation keeps text within this space. */
  padding: 16px 16px 8px;
}
.card-headline {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.26;
  margin-bottom: 8px;
  color: var(--text-primary);
  text-wrap: balance;
}
.card-text {
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--text-primary);
  white-space: pre-line;
}
/* Footer is a single fixed-height line — height never depends on the
   article text or on how long the reporter name / district is, so the
   image(35%) + text(65%) split above it stays exactly as designed no
   matter how much "matter" (article text) a card has. */
.card-footer {
  flex-shrink: 0;
  height: 48px;
  padding: 0 14px calc(0px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
}
.card-footer-row {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  flex-wrap: nowrap;
  white-space: nowrap;
}
.meta-dot { flex-shrink: 0; }
.card-time { flex-shrink: 0; }
.card-reporter-btn {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted);
  flex-shrink: 1; min-width: 0; max-width: 68px;
  cursor: pointer;
}
.card-reporter-btn:not([data-reporter-id]),
.card-reporter-btn[data-reporter-id=""] {
  cursor: default;
}
.card-reporter-btn:active { color: var(--gold); }
.card-reporter-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.reporter-name-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.footer-spacer { flex: 1 1 auto; min-width: 2px; }
.card-meta-row-views {
  display: inline-flex; align-items: center; gap: 3px;
  flex-shrink: 0; color: var(--text-muted);
}
.card-meta-row-views .eye-icon { width: 13px; height: 13px; flex-shrink: 0; }
.action-btn {
  display: flex; align-items: center; gap: 3px;
  font-size: 10.5px; color: var(--text-muted); font-weight: 500;
  flex-shrink: 0;
}
.action-btn svg { width: 17px; height: 17px; }
.action-btn.liked { color: var(--crimson); }
.action-btn.bookmarked { color: var(--gold); }
.share-pill {
  display: flex; align-items: center; justify-content: center;
  background: #25D366;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}
.share-pill svg { width: 15px; height: 15px; }
.read-more-btn {
  background: var(--gold);
  color: #17140B;
  padding: 9px 16px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
}

/* Loading / empty states */
.state-msg {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--text-muted); text-align: center; padding: 40px;
}
.state-msg .em-title { font-family: var(--font-display); font-size: 19px; color: var(--text-primary); }

/* Shorts / video grid */
.feed-shorts {
  height: 100%; overflow-y: auto; padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.short-thumb {
  aspect-ratio: 9/16; border-radius: var(--radius-md);
  background: var(--surface-2); position: relative; overflow: hidden;
}
.short-thumb img { width: 100%; height: 100%; object-fit: cover; }
.short-thumb .st-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: #fff; font-size: 12px; font-weight: 500; line-height: 1.3;
}

/* Saved / list feed */
.feed-list { height: 100%; overflow-y: auto; padding: 12px 16px; }
.list-card {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.list-card img { width: 84px; height: 84px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.list-card .lc-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.list-card .lc-meta { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* Profile view */
.feed-profile { height: 100%; overflow-y: auto; padding: 20px 16px; }
.profile-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px;
}
.profile-card img, .profile-card .ph-fallback {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  background: var(--surface-2);
}
.profile-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.profile-email { font-size: 12.5px; color: var(--text-muted); }
.menu-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 500;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .chev { color: var(--text-faint); }

/* ===== POST VIEW ===== */
.feed-post { height: 100%; overflow-y: auto; padding: 20px 16px calc(20px + var(--safe-bottom)); }
.post-form { display: flex; flex-direction: column; gap: 14px; }
.post-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
}
.post-form input,
.post-form textarea,
.post-form select {
  font-size: 14.5px; font-weight: 400; color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.post-form input:focus,
.post-form textarea:focus,
.post-form select:focus { border-color: var(--gold); }
.post-form textarea { min-height: 90px; line-height: 1.5; }
.post-form .field-hint { font-size: 11px; font-weight: 400; color: var(--text-faint); }
.post-form .submit-btn {
  background: var(--gold); color: #17140B;
  padding: 13px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 14.5px; margin-top: 4px;
}
.post-form .submit-btn:disabled { opacity: 0.6; }
.post-intro { margin-bottom: 18px; }
.post-intro .em-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.post-intro p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-bottom: var(--safe-bottom);
  z-index: 40;
}
.nav-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px;
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 500;
}
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn.active { color: var(--gold); }
.nav-btn-post svg {
  width: 28px; height: 28px;
  padding: 3px;
  border-radius: 50%;
  background: var(--gold);
  color: #17140B;
}
.nav-btn-post.active svg,
.nav-btn-post:active svg { background: var(--crimson); color: #fff; }
.nav-btn-post.active,
.nav-btn-post:active { color: var(--text-faint); }

/* ===== SIDE MENU (hamburger drawer) ===== */
.drawer-backdrop {
  position: absolute; inset: 0; z-index: 110;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: stretch; justify-content: flex-start;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.drawer-backdrop.open { opacity: 1; }
.drawer {
  width: 82%; max-width: 320px;
  height: 100%;
  background: var(--surface);
  padding: calc(20px + var(--safe-top)) 0 calc(16px + var(--safe-bottom));
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 20px 0 50px -20px rgba(0,0,0,0.4);
  overflow-y: auto;
}
.drawer-backdrop.open .drawer { transform: translateX(0); }
.drawer-user {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.drawer-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--text-muted);
  flex-shrink: 0;
}
.drawer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.drawer-avatar svg { width: 24px; height: 24px; }
.drawer-user-name { font-weight: 700; font-size: 15.5px; }
.drawer-user-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.drawer-nav { display: flex; flex-direction: column; padding: 0 10px; }
.drawer-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  font-size: 14.5px; font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}
.drawer-item svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--text-muted); }
.drawer-item:active { background: var(--surface-2); }
.drawer-divider { height: 1px; background: var(--border); margin: 10px 6px; }
.drawer-label {
  padding: 4px 14px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-faint);
}
.drawer-cats-toggle { justify-content: flex-start; }
.drawer-cats-summary {
  margin-left: auto;
  font-size: 12.5px; color: var(--text-muted); font-weight: 500;
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drawer-cats-chevron { width: 15px !important; height: 15px !important; transition: transform 0.18s ease; }
.drawer-cats-toggle[aria-expanded="true"] .drawer-cats-chevron { transform: rotate(180deg); }
.drawer-cats { display: flex; flex-direction: column; padding: 2px 0 4px 12px; }
.drawer-cat-item {
  padding: 10px 14px; border-radius: var(--radius-md);
  font-size: 14px; color: var(--text-primary); text-align: left;
}
.drawer-cat-item:active { background: var(--surface-2); }
.drawer-cat-item.active { color: var(--gold); font-weight: 600; }

/* ===== SHEET / MODAL ===== */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  text-align: center;
}
.sheet h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.sheet .muted { color: var(--text-muted); font-size: 13.5px; margin-bottom: 18px; line-height: 1.5; text-align: left; }
.text-btn { margin-top: 14px; color: var(--text-muted); font-size: 13px; text-decoration: underline; background: none; }

.google-signin-block { margin-bottom: 18px; }
#googleSignInBtn { display: flex; justify-content: center; min-height: 40px; }
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 0; color: var(--text-faint);
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-tabs { display: flex; border: 1px solid var(--border); border-radius: 100px; padding: 3px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; padding: 9px 0; border-radius: 100px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); background: transparent;
}
.auth-tab.active { background: var(--gold); color: #17140B; }
.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
}
.auth-form input {
  font-size: 14.5px; font-weight: 400; color: var(--text-primary);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 11px 13px; outline: none; font-family: inherit;
}
.auth-form input:focus { border-color: var(--gold); }
.auth-form .submit-btn {
  background: var(--gold); color: #17140B;
  padding: 13px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 14.5px; margin-top: 2px;
}
.auth-form .submit-btn:disabled { opacity: 0.6; }
.auth-error { color: var(--crimson); font-size: 12.5px; margin: 0; }

/* Image upload control on the Post form */
.image-drop {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.image-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.image-drop-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-faint); font-size: 12.5px; font-weight: 500; pointer-events: none;
}
.image-drop-placeholder svg { width: 30px; height: 30px; }
.image-drop img {
  width: 100%; height: 100%; max-height: 220px; object-fit: cover; pointer-events: none;
}

.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-primary); padding: 10px 18px; border-radius: 100px;
  font-size: 13px; z-index: 200; box-shadow: var(--shadow-card);
}
