/* LinqCampus public site (everything outside /panel/): the shell every page shares, in the admin panel's look with
   Apple Human Interface Guidelines conventions: system font, a tinted source-list sidebar that collapses to a rail,
   a translucent tab bar and grouped sheet on phones, popover menus, bordered cards, 44pt touch targets on phones,
   light and dark appearance (follows the system unless the person picks one), reduced motion respected.

   Loaded after style.css by templates/base.html, so it is cached once for every page. Pages theme themselves through
   the --ax-* tokens: each page's own palette (e.g. --dkj-bg, --n-s, --B) points at them, once on :root for the dark
   appearance and once on body.fd-light for the light one. The appearance and sidebar state are set before first
   paint by templates/base.html; static/js/site_shell.js handles the controls. */

/* ── Tokens: dark appearance (same values as /panel/'s --adx-*) ── */
:root {
  --ax-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ax-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ax-radius: 14px;
  --ax-radius-sm: 10px;
  --ax-sidebar-w: 248px;
  --ax-rail-w: 72px;
  --ax-tabbar-h: 56px;
  --ax-ease: cubic-bezier(.32, .72, 0, 1);

  --ax-bg: #000000; --ax-sidebar: #111113; --ax-bar: rgba(22, 22, 24, .8);
  --ax-s: #1c1c1e; --ax-s2: #232326; --ax-s3: #2c2c2e; --ax-field: #1c1c1e; --ax-popover: #242427;
  --ax-br: #2b2b2e; --ax-br2: #3a3a3c;
  --ax-t: #f5f5f7; --ax-t2: #a1a1a6; --ax-t3: #6e6e73; --ax-tab: #8e8e93;
  --ax-hover: rgba(255, 255, 255, .06); --ax-row-hover: rgba(255, 255, 255, .04);
  --ax-nav-active: rgba(59, 140, 255, .2);
  --ax-accent: #3b8cff; --ax-accent-hover: #5a9dff; --ax-accent-ink: #78b0ff; --ax-accent-soft: rgba(59, 140, 255, .16); --ax-on-accent: #ffffff;
  --ax-green: #30d158; --ax-green-ink: #30d158;
  --ax-orange: #ff9f0a; --ax-orange-ink: #ff9f0a;
  --ax-red: #ff453a; --ax-red-ink: #ff6961;
  --ax-yellow: #ffd60a; --ax-yellow-ink: #ffd60a;
  --ax-purple: #bf5af2; --ax-indigo: #5e5ce6; --ax-teal: #40c8e0; --ax-pink: #ff375f;
  --ax-card-shadow: none;
  --ax-shadow-pop: 0 18px 50px -12px rgba(0, 0, 0, .8), 0 0 0 .5px rgba(255, 255, 255, .1);
  --ax-scrim: rgba(0, 0, 0, .5);
  color-scheme: dark;
}
/* ── Tokens: light appearance (the LMS palette the panel uses) ── */
body.fd-light {
  --ax-bg: #f7f8fa; --ax-sidebar: #f2f5fa; --ax-bar: rgba(249, 250, 252, .84);
  --ax-s: #ffffff; --ax-s2: #f6f8fb; --ax-s3: #eef1f5; --ax-field: #ffffff; --ax-popover: #ffffff;
  --ax-br: #e3e7ee; --ax-br2: #d4dae3;
  --ax-t: #0f1729; --ax-t2: #4b5565; --ax-t3: #8a919c; --ax-tab: #7c8491;
  --ax-hover: #e8edf5; --ax-row-hover: #f3f6fa;
  --ax-nav-active: #dfe9fd;
  --ax-accent: #0b63e6; --ax-accent-hover: #0852c2; --ax-accent-ink: #0b4fb8; --ax-accent-soft: #e7effd; --ax-on-accent: #ffffff;
  --ax-green: #34c759; --ax-green-ink: #1f8f3f;
  --ax-orange: #ff9500; --ax-orange-ink: #b25e00;
  --ax-red: #ff3b30; --ax-red-ink: #d70015;
  --ax-yellow: #ffcc00; --ax-yellow-ink: #9a7400;
  --ax-purple: #af52de; --ax-indigo: #5856d6; --ax-teal: #30b0c7; --ax-pink: #ff2d55;
  --ax-card-shadow: 0 1px 2px rgba(15, 23, 41, .04);
  --ax-shadow-pop: 0 12px 32px rgba(15, 23, 41, .12), 0 2px 6px rgba(15, 23, 41, .06);
  --ax-scrim: rgba(15, 23, 41, .32);
  color-scheme: light;
}
/* Older names pages still use. Declared on both elements so each resolves against its own appearance. */
:root, body.fd-light {
  --font: var(--ax-font);
  --dk-nav: var(--ax-sidebar); --dk-nav-br: var(--ax-br); --dk-nav-br2: var(--ax-br2);
  --dk-icon: var(--ax-t2); --dk-icon-a: var(--ax-t); --dk-hover: var(--ax-hover);
  --dk-surface: var(--ax-s); --dk-badge-br: var(--ax-sidebar); --dk-red: var(--ax-red);
  --dk-tip-bg: var(--ax-popover); --dk-popup: var(--ax-popover); --dk-body-bg: var(--ax-bg);
}

/* ── Type scale shared by the dark-shell pages (unchanged sizes; sentence case is the default now) ── */
:root {
  --tx-xs: .70rem; --tx-sm: .775rem; --tx-base: .875rem; --tx-md: .9375rem; --tx-lg: 1rem; --tx-xl: 1.125rem; --tx-2xl: 1.25rem; --tx-3xl: 1.5rem;
  --fw-normal: 400; --fw-medium: 500; --fw-semi: 600; --fw-bold: 700; --fw-heavy: 700;
  --lh-tight: 1.3; --lh-normal: 1.5; --lh-relaxed: 1.6;
  --ls-tight: -.01em; --ls-normal: 0; --ls-wide: 0; --ls-widest: 0;
}

/* ── Base ── */
body.site-body { font-family: var(--ax-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.site-body button, body.site-body input, body.site-body select, body.site-body textarea { font-family: inherit; }
body.dk-page, body.fd-body {
  background: var(--ax-bg); color: var(--ax-t);
  font-family: var(--ax-font); font-size: var(--tx-base); line-height: var(--lh-normal); font-weight: 400;
  text-rendering: optimizeLegibility; scrollbar-color: var(--ax-br2) transparent;
}
body.site-body ::selection { background: color-mix(in srgb, var(--ax-accent) 26%, transparent); }
body.site-body :is(a, button, summary, [role="button"], [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ax-accent) 55%, transparent); outline-offset: 2px;
}
[hidden] { display: none !important; }
.fd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fd-skip { position: fixed; left: 12px; top: -80px; z-index: 100000; padding: 10px 14px; border-radius: 10px; background: var(--ax-s); color: var(--ax-t); box-shadow: var(--ax-shadow-pop); text-decoration: none; font-weight: 600; }
.fd-skip:focus { top: 12px; }

/* ── The old light header, bottom bar and footer stay off on shell pages ── */
html body.dk-page:not(.story-full-body):not(.onboard-body):not(.chat-body) .site-header,
html body.dk-page header.site-header,
html body.dk-page .lc-mobile-bottom-nav,
html body.dk-page nav.lc-mobile-bottom-nav,
html body.dk-page .lc-mobile-account,
html body.dk-page .lc-mobile-account-link { display: none !important; visibility: hidden !important; pointer-events: none !important; }
body.dk-page.auth-compact-footer-body { padding-bottom: 0 !important; }
body.dk-page { padding-bottom: 0 !important; }
body.dk-page .page-wrap { padding-bottom: 0 !important; }
body.dk-page.auth-compact-footer-body:not(.home-feed-body) .site-footer,
body.dk-page.auth-compact-footer-body:not(.story-full-body) .site-footer,
body.dk-page .site-footer {
  display: none !important; visibility: hidden !important; position: static !important; height: 0 !important; min-height: 0 !important;
  overflow: hidden !important; padding: 0 !important; margin: 0 !important;
}

/* ── Page column beside the sidebar ──
   --fd-nav-w is the sidebar's width: the rail by default, the full source list with body.fd-nav-x. */
body.dk-page { --fd-nav-w: 0px; }
@media (min-width: 901px) {
  body.fd-has-nav { --fd-nav-w: var(--ax-rail-w); }
  body.fd-has-nav.fd-nav-x { --fd-nav-w: var(--ax-sidebar-w); }
  .dk-page .site-header, .dk-page .lc-mobile-bottom-nav { display: none !important; }
  .dk-page .page-wrap { max-width: 100%; width: 100%; margin: 0; padding-left: var(--fd-nav-w); box-sizing: border-box; overflow-x: hidden; }
  body.fd-nav-anim .page-wrap { transition: padding-left .22s cubic-bezier(.4, 0, .2, 1); }
}

/* ═══════════════════════ Sidebar (wide screens) ═══════════════════════ */
.fd-mob-nav { display: none; }
.fd-icon-nav {
  position: fixed; top: 0; left: 0; z-index: 500; display: flex; flex-direction: column; box-sizing: border-box;
  width: var(--fd-nav-w); height: 100vh; height: 100dvh; padding: 0; overflow: hidden;
  background: var(--ax-sidebar); border-right: 1px solid var(--ax-br); color: var(--ax-t2);
  font-family: var(--ax-font); font-size: 14px;
}
body.fd-nav-anim .fd-icon-nav { transition: width .22s cubic-bezier(.4, 0, .2, 1); }
.fd-sb-head { display: flex; align-items: center; gap: 6px; padding: 14px 12px 8px; flex: none; }
.fd-icon-logo {
  display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; padding: 6px; margin: 0; border-radius: 12px;
  color: var(--ax-t); text-decoration: none; width: auto; height: auto;
}
.fd-icon-logo:hover { background: var(--ax-hover); text-decoration: none; }
.fd-brand-mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; overflow: hidden; border-radius: 9px; background: #000; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.fd-brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-brand-text { display: grid; min-width: 0; line-height: 1.25; }
.fd-brand-name { overflow: hidden; color: var(--ax-t); font-size: 15.5px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; text-overflow: ellipsis; }
.fd-brand-sub { overflow: hidden; color: var(--ax-t2); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.fd-sb-toggle {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--ax-t2); font-size: 19px; cursor: pointer; transition: background .12s, color .12s;
}
.fd-sb-toggle:hover { background: var(--ax-hover); color: var(--ax-t); }

.fd-icon-items {
  display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 1px; min-height: 0; width: 100%;
  padding: 4px 12px 12px; box-sizing: border-box; overflow: hidden;
}
.fd-sb-label { padding: 14px 10px 6px; color: var(--ax-t3); font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }

/* a destination row: icon, label, then any count */
.fd-icon-btn {
  position: relative; display: flex; align-items: center; gap: 12px; flex-shrink: 0; box-sizing: border-box;
  width: 100%; height: 36px; padding: 0 10px; margin: 0; border: 0; border-radius: 9px;
  background: transparent; color: var(--ax-t); font: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.2;
  text-align: left; text-decoration: none; cursor: pointer; transition: background .12s, color .12s;
}
.fd-icon-btn > i { flex: none; width: 20px; color: var(--ax-t2); font-size: 19px; line-height: 1; text-align: center; transition: color .12s; }
.fd-icon-btn:hover { background: var(--ax-hover); color: var(--ax-t); text-decoration: none; }
.fd-icon-btn.fd-icon-active { background: var(--ax-nav-active); color: var(--ax-accent-ink); font-weight: 600; }
.fd-icon-btn.fd-icon-active > i { color: var(--ax-accent); }
.fd-icon-tip {
  order: 1; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  position: static; transform: none; padding: 0; background: none; color: inherit; font-size: inherit; font-weight: inherit; opacity: 1; pointer-events: none;
}
.fd-icon-tip::before { content: none; }
.fd-icon-badge, .fd-icon-btn .fd-notif-chip {
  order: 2; position: static; flex: none; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border: 0; border-radius: 999px;
  background: var(--ax-red); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
  display: inline-block;
}
.fd-notif-anchor { position: relative; }
.fd-notif-btn { border: 0; outline-offset: 2px; }
.fd-notif-chip { animation: fd-chip-pop .28s cubic-bezier(.34, 1.56, .64, 1) .4s both; }
.fd-notif-chip--hidden { display: none !important; }
@keyframes fd-chip-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* keeps pulsing while a "your turn" game nudge is unread */
@keyframes fd-chip-blink { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ax-red) 70%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
.fd-notif-chip.fd-notif-pulse { animation: fd-chip-pop .28s cubic-bezier(.34, 1.56, .64, 1) .4s both, fd-chip-blink 1.4s ease-in-out infinite .9s; }
@keyframes fd-notif-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ax-accent) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.fd-notif-ring { animation: fd-notif-glow .6s ease-out; }
/* the old hover pill duplicated the tray; the count already shows on the row */
.fd-notif-pill { display: none !important; }

/* footer: who is signed in, More, Appearance */
.fd-icon-bottom { display: flex; flex-direction: column; gap: 8px; flex: none; width: 100%; padding: 10px 12px 14px; box-sizing: border-box; border-top: 1px solid var(--ax-br); }
.fd-icon-profile-link {
  display: flex; align-items: center; gap: 10px; min-width: 0; width: auto; height: auto; margin: 0; padding: 6px; border-radius: 10px;
  color: var(--ax-t); text-decoration: none; transition: background .12s;
}
.fd-icon-profile-link:hover { background: var(--ax-hover); text-decoration: none; }
.fd-icon-profile-av {
  display: flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; overflow: hidden; border: 0; border-radius: 50%;
  background: var(--ax-accent-soft); color: var(--ax-accent); font-size: 13px; font-weight: 700;
}
.fd-icon-profile-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-icon-profile-av span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.fd-user-meta { display: grid; min-width: 0; line-height: 1.3; }
.fd-user-name { overflow: hidden; color: var(--ax-t); font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.fd-user-role { overflow: hidden; color: var(--ax-t2); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.fd-sb-actions { display: flex; gap: 6px; }
.fd-sb-actions .fd-icon-btn {
  flex: 1; justify-content: center; gap: 6px; height: 34px; padding: 0 8px; background: var(--ax-s3); font-size: 13px; font-weight: 500;
}
.fd-sb-actions .fd-icon-btn > i { width: auto; font-size: 16px; }
.fd-sb-actions .fd-icon-btn .fd-icon-tip { flex: 0 1 auto; }
.fd-sb-actions .fd-icon-btn:hover { background: var(--ax-br2); }
.fd-sb-actions .fd-icon-btn[aria-expanded="true"] { background: var(--ax-nav-active); color: var(--ax-accent-ink); }

/* rail: icons only, labels become tooltips (static/js/site_shell.js) */
.fd-nav-tooltip {
  position: fixed; z-index: 800; padding: 6px 10px; border: 1px solid var(--ax-br); border-radius: 8px; background: var(--ax-popover);
  box-shadow: var(--ax-shadow-pop); color: var(--ax-t); font: 500 13px/1.2 var(--ax-font); white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-4px, -50%); transition: opacity .12s, transform .12s;
}
.fd-nav-tooltip.show { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 901px) {
  body:not(.fd-nav-x) .fd-sb-head { flex-direction: column; gap: 6px; padding: 14px 0 8px; }
  body:not(.fd-nav-x) .fd-icon-logo { flex: none; padding: 4px; }
  body:not(.fd-nav-x) .fd-brand-text { display: none; }
  body:not(.fd-nav-x) .fd-icon-items { align-items: center; padding: 4px 0 12px; gap: 2px; }
  body:not(.fd-nav-x) .fd-sb-label { width: 32px; height: 1px; margin: 8px auto; padding: 0; overflow: hidden; background: var(--ax-br); color: transparent; }
  body:not(.fd-nav-x) .fd-icon-btn { justify-content: center; gap: 0; width: 44px; height: 40px; padding: 0; }
  body:not(.fd-nav-x) .fd-icon-btn > i { width: 22px; font-size: 20px; }
  body:not(.fd-nav-x) .fd-icon-tip { display: none; }
  body:not(.fd-nav-x) .fd-icon-badge, body:not(.fd-nav-x) .fd-icon-items .fd-notif-chip {
    position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; box-shadow: 0 0 0 2px var(--ax-sidebar);
  }
  body:not(.fd-nav-x) .fd-notif-anchor { display: flex; justify-content: center; width: 100%; }
  body:not(.fd-nav-x) .fd-icon-bottom { align-items: center; padding: 10px 0 14px; }
  body:not(.fd-nav-x) .fd-icon-profile-link { padding: 4px; }
  body:not(.fd-nav-x) .fd-user-meta { display: none; }
  body:not(.fd-nav-x) .fd-sb-actions { flex-direction: column; gap: 2px; }
  body:not(.fd-nav-x) .fd-sb-actions .fd-icon-btn { flex: none; width: 44px; height: 40px; padding: 0; background: transparent; }
  body:not(.fd-nav-x) .fd-sb-actions .fd-icon-btn > i { font-size: 19px; }
  body:not(.fd-nav-x) .fd-sb-actions .fd-icon-btn:hover { background: var(--ax-hover); }
}

/* ── Activity popover (positioned beside the row by base.html) ── */
.fd-notif-tray {
  position: fixed; top: 12px; left: calc(var(--fd-nav-w) + 8px); z-index: 700; width: 320px; overflow: hidden;
  background: var(--ax-popover); border: 1px solid var(--ax-br); border-radius: var(--ax-radius); box-shadow: var(--ax-shadow-pop);
  font-family: var(--ax-font); animation: fd-pop-in .16s ease both;
}
@keyframes fd-pop-in { from { opacity: 0; transform: translateX(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.fd-notif-tray-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px; border-bottom: 1px solid var(--ax-br); }
.fd-notif-tray-title { color: var(--ax-t); font-size: 15px; font-weight: 700; letter-spacing: -.01em; text-transform: none; }
.fd-notif-tray-title i { display: none; }
.fd-notif-tray-seeall { color: var(--ax-accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.fd-notif-tray-seeall:hover { text-decoration: underline; }
.fd-notif-tray-body { max-height: 340px; overflow-y: auto; scrollbar-width: thin; }
.fd-notif-tray-loading { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 22px; }
.fd-notif-tray-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ax-t3); animation: fd-dot-pulse 1.2s ease-in-out infinite; }
.fd-notif-tray-dot:nth-child(2) { animation-delay: .2s; }
.fd-notif-tray-dot:nth-child(3) { animation-delay: .4s; }
@keyframes fd-dot-pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.fd-notif-tray-item {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--ax-br);
  color: inherit; text-decoration: none; transition: background .12s; cursor: pointer;
}
.fd-notif-tray-item:last-child { border-bottom: 0; }
.fd-notif-tray-item:hover { background: var(--ax-row-hover); }
.fd-notif-tray-item.fd-tray-unread { background: color-mix(in srgb, var(--ax-accent) 6%, transparent); }
.fd-notif-tray-item.fd-tray-unread::after { content: ''; position: absolute; top: 17px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--ax-accent); }
.fd-notif-tray-av {
  display: flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; overflow: hidden; border-radius: 50%;
  background: var(--ax-accent-soft); color: var(--ax-accent); font-size: 14px;
}
.fd-notif-tray-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fd-tray-av--post_like, .fd-tray-av--confession, .fd-tray-av--confession_reply, .fd-tray-av--funda_like { background: color-mix(in srgb, var(--ax-pink) 14%, transparent); color: var(--ax-pink); }
.fd-tray-av--post_comment, .fd-tray-av--funda_comment { background: var(--ax-accent-soft); color: var(--ax-accent); }
.fd-tray-av--post_reshare, .fd-tray-av--badge { background: color-mix(in srgb, var(--ax-purple) 14%, transparent); color: var(--ax-purple); }
.fd-tray-av--circle_request, .fd-tray-av--circle_accept, .fd-tray-av--gig_accepted, .fd-tray-av--gig_approved,
.fd-tray-av--job_shortlisted, .fd-tray-av--job_interview { background: color-mix(in srgb, var(--ax-green) 15%, transparent); color: var(--ax-green-ink); }
.fd-tray-av--tag, .fd-tray-av--forum_post, .fd-tray-av--forum_reply, .fd-tray-av--linqcoin, .fd-tray-av--game_turn { background: color-mix(in srgb, var(--ax-orange) 15%, transparent); color: var(--ax-orange-ink); }
.fd-tray-av--fishpond_message, .fd-tray-av--fishpond_reply { background: color-mix(in srgb, var(--ax-teal) 15%, transparent); color: var(--ax-teal); }
.fd-notif-tray-text { flex: 1; min-width: 0; padding-right: 14px; }
.fd-notif-tray-msg { display: -webkit-box; overflow: hidden; color: var(--ax-t); font-size: 13.5px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fd-notif-tray-time { margin-top: 2px; color: var(--ax-t3); font-size: 12px; }
.fd-notif-tray-empty { padding: 26px 14px; color: var(--ax-t3); font-size: 13.5px; text-align: center; }

/* ── More menu (popover from the sidebar footer) ── */
.fd-more-popup {
  position: fixed; left: calc(var(--fd-nav-w) + 8px); bottom: 12px; z-index: 600; box-sizing: border-box;
  min-width: 248px; max-height: calc(100dvh - 24px); padding: 6px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ax-popover); border: 1px solid var(--ax-br); border-radius: 12px; box-shadow: var(--ax-shadow-pop);
  font-family: var(--ax-font); animation: fd-pop-in .14s ease both;
}
.fd-more-item {
  display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 100%; min-height: 34px; padding: 0 10px; margin: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--ax-t); font: inherit; font-size: 14px; font-weight: 500;
  text-align: left; text-decoration: none; cursor: pointer; transition: background .1s;
}
.fd-more-item:hover, .fd-more-item:focus-visible { background: var(--ax-hover); color: var(--ax-t); text-decoration: none; }
.fd-more-item i { width: 18px; flex: none; color: var(--ax-t2); font-size: 17px; text-align: center; }
.fd-more-item--danger, .fd-more-item--danger i { color: var(--ax-red-ink); }
.fd-more-item--danger:hover { background: color-mix(in srgb, var(--ax-red) 12%, transparent); color: var(--ax-red-ink); }
.fd-more-divider { height: 1px; margin: 6px 6px; background: var(--ax-br); }
.fd-more-form { margin: 0; }

/* ═══════════════════════ Phones and small tablets ═══════════════════════ */
@media (max-width: 900px) {
  .fd-icon-nav, .fd-more-popup, .fd-notif-tray, .fd-nav-tooltip { display: none !important; }
  .dk-page .lc-mobile-bottom-nav, .dk-page .site-header { display: none !important; }
  .dk-page .page-wrap { margin: 0 !important; padding-left: 0 !important; padding-top: 0 !important; max-width: 100% !important; width: 100% !important; box-sizing: border-box; }
  .dk-page .page-wrap { padding-bottom: var(--ax-tabbar-h) !important; }
  .fd-has-nav .page-wrap { padding-bottom: calc(var(--ax-tabbar-h) + env(safe-area-inset-bottom, 0px)) !important; }

  /* Tab bar */
  .fd-mob-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; display: flex !important; align-items: flex-start; justify-content: space-around;
    box-sizing: border-box; height: calc(var(--ax-tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
    background: var(--ax-bar); border-top: .5px solid var(--ax-br2);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    font-family: var(--ax-font);
  }
  .fd-mob-item {
    position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-width: 44px; height: var(--ax-tabbar-h); padding: 0; border: 0; background: transparent; color: var(--ax-tab);
    font-size: 10.5px; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: color .15s;
  }
  .fd-mob-item i { font-size: 25px; line-height: 1; }
  .fd-mob-item.fd-mob-active, .fd-mob-item[aria-expanded="true"] { color: var(--ax-accent); }
  .fd-mob-item:active i { transform: scale(.92); }
  .fd-mob-label { line-height: 1.1; }
  .fd-mob-icon-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }

  /* the count over the Activity tab: a badge, with the breakdown in a bubble above it */
  .fd-notif-chip--mob {
    position: absolute; left: 50%; bottom: calc(100% + 12px); top: auto; right: auto; display: flex; align-items: center; gap: 0;
    height: auto; min-width: 0; padding: 6px 11px; border: 0; border-radius: 10px; box-sizing: border-box;
    background: var(--ax-red); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--ax-red) 35%, transparent); transform: translateX(-50%);
    animation: fd-mob-chip-enter .35s cubic-bezier(.34, 1.56, .64, 1) .5s both;
  }
  .fd-notif-chip--mob::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ax-red); border-bottom: 0; }
  .fd-notif-chip--mob.fd-notif-pulse { animation: fd-mob-chip-enter .35s cubic-bezier(.34, 1.56, .64, 1) .5s both, fd-chip-blink 1.4s ease-in-out infinite .9s; }
  @keyframes fd-mob-chip-enter { from { opacity: 0; transform: translateX(-50%) scale(.5); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
  .fd-notif-pill-item { display: flex; align-items: center; gap: 4px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
  .fd-notif-pill-item .fd-pill-icon { font-size: 13px; color: #fff; }
  .fd-notif-pill-sep { width: 1px; height: 12px; margin: 0 8px; background: rgba(255, 255, 255, .45); }
}

/* Messages button floating over the tab bar */
.fd-mob-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(var(--ax-tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px); z-index: 499;
  display: none; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ax-accent); color: var(--ax-on-accent); font-size: 22px; text-decoration: none;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ax-accent) 38%, transparent), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .15s, box-shadow .15s;
}
.fd-mob-fab:hover { color: var(--ax-on-accent); text-decoration: none; }
.fd-mob-fab:active { transform: scale(.92); }
.fd-mob-fab-badge {
  position: absolute; top: -2px; right: -2px; display: flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box;
  border: 2px solid var(--ax-bg); border-radius: 999px; background: var(--ax-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}
@media (max-width: 900px) { .fd-mob-fab { display: flex; } }
body.dk-pd-body .fd-mob-fab { display: none !important; }

/* More sheet (phones): grouped rows like iOS Settings */
.fd-mob-more-sheet { position: fixed; inset: 0; z-index: 600; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--ax-font); }
.fd-mob-more-backdrop { position: absolute; inset: 0; background: var(--ax-scrim); animation: fd-fade-in .25s ease both; }
.fd-mob-more-card {
  position: relative; z-index: 1; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box;
  padding: 6px 16px calc(env(safe-area-inset-bottom, 0px) + 20px); border-radius: 14px 14px 0 0;
  background: var(--ax-bg); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); animation: fd-sheet-up .32s var(--ax-ease) both;
}
@keyframes fd-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fd-fade-in { from { opacity: 0; } to { opacity: 1; } }
.fd-sheet-grabber { width: 36px; height: 5px; margin: 0 auto 8px; border-radius: 3px; background: var(--ax-br2); }
.fd-sheet-head { position: sticky; top: -6px; z-index: 1; display: flex; align-items: center; justify-content: flex-end; min-height: 44px; margin: 0 -16px 8px; padding: 6px 16px 10px; background: var(--ax-bg); }
.fd-sheet-title { position: absolute; left: 50%; margin: 0; color: var(--ax-t); font-size: 17px; font-weight: 600; letter-spacing: -.01em; transform: translateX(-50%); }
.fd-sheet-done { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--ax-accent); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.fd-sheet-section { margin: 18px 4px 6px; color: var(--ax-t3); font-size: 13px; font-weight: 500; }
.fd-mob-more-group { overflow: hidden; margin: 0 0 4px; border-radius: 12px; background: var(--ax-s); }
.fd-mob-more-group + .fd-mob-more-group { margin-top: 18px; }
.fd-mob-more-item {
  position: relative; display: flex; align-items: center; gap: 14px; box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 34px 0 16px; margin: 0;
  border: 0; background: transparent; color: var(--ax-t); font: inherit; font-size: 16px; font-weight: 400; text-align: left; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fd-mob-more-item i { width: 22px; flex: none; color: var(--ax-accent); font-size: 21px; text-align: center; }
.fd-mob-more-item::after { content: ''; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid var(--ax-t3); border-right: 2px solid var(--ax-t3); transform: rotate(45deg); opacity: .7; }
.fd-mob-more-item + .fd-mob-more-item::before, .fd-mob-more-form + .fd-mob-more-item::before, .fd-mob-more-item + .fd-mob-more-form .fd-mob-more-item::before {
  content: ''; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--ax-br);
}
.fd-mob-more-item:active { background: var(--ax-hover); }
.fd-mob-more-form { margin: 0; }
.fd-mob-more-danger, .fd-mob-more-danger i { color: var(--ax-red-ink); }
.fd-mob-more-danger::after { content: none; }
.fd-mob-more-divider { display: none; }
@media (min-width: 901px) { .fd-mob-more-sheet { display: none !important; } }

/* segmented control (Appearance, in the More sheet) */
.fd-seg { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--ax-s3); }
.fd-seg button {
  flex: 1; min-height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ax-t);
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .15s, box-shadow .15s;
}
.fd-seg button[aria-pressed="true"] { background: var(--ax-s); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }
body:not(.fd-light) .fd-seg button[aria-pressed="true"] { background: #636366; }

/* ═══════════════════════ Shared pieces from base.html ═══════════════════════ */

/* page loader */
#lc-page-loader { background: var(--ax-bg); }

/* Flash messages: a banner card with a tinted symbol */
body.site-body .lc-msg {
  gap: 12px; padding: 12px 14px; border: 1px solid var(--ax-br); border-radius: 12px; background: var(--ax-s); color: var(--ax-t);
  box-shadow: var(--ax-shadow-pop); font-size: 14px; font-weight: 500; line-height: 1.45;
}
body.site-body .lc-msg .lc-msg-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--ax-accent-soft); color: var(--ax-accent); font-size: 13px; }
body.site-body .lc-msg .lc-msg-close { width: 28px; height: 28px; border-radius: 50%; color: var(--ax-t3); }
body.site-body .lc-msg .lc-msg-close:hover { background: var(--ax-hover); color: var(--ax-t); }
body.site-body .lc-msg--success, body.site-body .lc-msg--error, body.site-body .lc-msg--warning, body.site-body .lc-msg--info { background: var(--ax-s); border-color: var(--ax-br); color: var(--ax-t); }
body.site-body .lc-msg--success .lc-msg-icon { background: color-mix(in srgb, var(--ax-green) 16%, transparent); color: var(--ax-green-ink); }
body.site-body .lc-msg--error .lc-msg-icon { background: color-mix(in srgb, var(--ax-red) 14%, transparent); color: var(--ax-red-ink); }
body.site-body .lc-msg--warning .lc-msg-icon { background: color-mix(in srgb, var(--ax-orange) 16%, transparent); color: var(--ax-orange-ink); }
body.site-body .lc-msg--info .lc-msg-icon { background: var(--ax-accent-soft); color: var(--ax-accent); }
body.site-body .lc-msg--success .lc-msg-close, body.site-body .lc-msg--error .lc-msg-close,
body.site-body .lc-msg--warning .lc-msg-close, body.site-body .lc-msg--info .lc-msg-close { color: var(--ax-t3); }

/* Edit post: a sheet with a title bar */
body.site-body .pedit-backdrop, body.site-body .pdel-backdrop { background: var(--ax-scrim); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fd-fade-in .2s ease both; }
body.site-body .pedit-modal { background: var(--ax-s); border: 1px solid var(--ax-br); border-radius: 16px; box-shadow: var(--ax-shadow-pop); color: var(--ax-t); }
body.site-body .pedit-head { padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--ax-br); }
body.site-body .pedit-title { color: var(--ax-t); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
body.site-body .pedit-close { width: 30px; height: 30px; background: var(--ax-s3); color: var(--ax-t2); font-size: 18px; }
body.site-body .pedit-close:hover { background: var(--ax-br2); color: var(--ax-t); }
body.site-body .pedit-form { padding: 16px 20px 20px; }
body.site-body .pedit-type-chip { border: 1px solid var(--ax-br2); background: transparent; color: var(--ax-t); font-size: 13px; font-weight: 500; }
body.site-body .pedit-type-chip.is-active { background: var(--ax-accent); border-color: var(--ax-accent); color: var(--ax-on-accent); }
body.site-body .pedit-input, body.site-body .pedit-textarea, body.site-body .pedit-select {
  border: 1px solid var(--ax-br2); border-radius: 10px; background: var(--ax-field); color: var(--ax-t); font-size: 15px;
}
body.site-body .pedit-input:focus, body.site-body .pedit-textarea:focus, body.site-body .pedit-select:focus {
  border-color: var(--ax-accent); background: var(--ax-field); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ax-accent) 18%, transparent);
}
body.site-body .pedit-file-label { border: 1px dashed var(--ax-br2); background: var(--ax-s2); color: var(--ax-t2); border-radius: 10px; }
body.site-body .pedit-file-label:hover { border-color: var(--ax-accent); color: var(--ax-accent); }
body.site-body .pedit-submit { min-height: 44px; border-radius: 12px; background: var(--ax-accent); color: var(--ax-on-accent); font-size: 15px; font-weight: 600; }
body.site-body .pedit-submit:hover { background: var(--ax-accent-hover); }

/* Delete post: an alert, with the actions as full-width text buttons */
body.site-body .pdel-modal {
  width: min(300px, calc(100vw - 48px)); padding: 20px 16px 0; overflow: hidden; border: 1px solid var(--ax-br); border-radius: 14px;
  background: var(--ax-popover); box-shadow: var(--ax-shadow-pop); color: var(--ax-t);
}
body.site-body .pdel-title { margin: 0 0 4px; color: var(--ax-t); font-size: 17px; font-weight: 600; }
body.site-body .pdel-body { margin: 0 0 18px; color: var(--ax-t2); font-size: 13.5px; }
body.site-body .pdel-actions { gap: 0; margin: 0 -16px; border-top: 1px solid var(--ax-br); }
body.site-body .pdel-cancel, body.site-body .pdel-confirm {
  flex: 1; min-height: 46px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; cursor: pointer;
}
body.site-body .pdel-cancel { color: var(--ax-accent); font-weight: 400; }
body.site-body .pdel-confirm { border-left: 1px solid var(--ax-br); color: var(--ax-red-ink); font-weight: 600; }
body.site-body .pdel-cancel:hover, body.site-body .pdel-confirm:hover { background: var(--ax-hover); }

/* Incoming call */
#ic-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--ax-scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: var(--ax-font); }
#ic-overlay[hidden] { display: none; }
#ic-box { position: relative; width: 280px; padding: 30px 24px 26px; overflow: hidden; border: 1px solid var(--ax-br); border-radius: 22px; background: var(--ax-popover); box-shadow: var(--ax-shadow-pop); text-align: center; }
#ic-pulse { position: absolute; inset: 0; border-radius: 22px; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--ax-green) 18%, transparent), transparent 70%); pointer-events: none; animation: ic-pulse 1.6s ease-in-out infinite; }
@keyframes ic-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
#ic-avatar { width: 76px; height: 76px; margin-bottom: 12px; border: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--ax-s), 0 0 0 5px var(--ax-green); }
#ic-caller-name { margin-bottom: 4px; color: var(--ax-t); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
#ic-call-type { margin-bottom: 24px; color: var(--ax-t2); font-size: 14px; }
#ic-actions { display: flex; justify-content: center; gap: 44px; }
#ic-decline, #ic-accept { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border: 0; border-radius: 50%; color: #fff; font-size: 22px; cursor: pointer; transition: transform .15s, filter .15s; }
#ic-decline { background: #ff3b30; }
#ic-accept { background: #34c759; }
#ic-decline:hover, #ic-accept:hover { filter: brightness(1.06); transform: scale(1.05); }

/* App banner (Google Play) in the style of a smart app banner */
#lc-android-banner {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ax-s); border-bottom: 1px solid var(--ax-br);
  box-shadow: none; font-family: var(--ax-font);
}
#lc-android-banner[hidden] { display: none !important; }
.lc-ab-close { order: -1; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ax-t3); font-size: 20px; line-height: 1; cursor: pointer; }
.lc-ab-close:hover { background: var(--ax-hover); color: var(--ax-t); }
.lc-ab-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 .5px var(--ax-br2); }
.lc-ab-copy { flex: 1; min-width: 0; }
.lc-ab-copy strong { display: block; color: var(--ax-t); font-size: 14px; font-weight: 600; }
.lc-ab-copy span { color: var(--ax-t2); font-size: 12.5px; }
.lc-ab-cta {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 16px; border-radius: 999px; background: var(--ax-accent-soft);
  color: var(--ax-accent-ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s;
}
.lc-ab-cta:hover { background: color-mix(in srgb, var(--ax-accent) 24%, transparent); color: var(--ax-accent-ink); }

/* Install as an app */
body.site-body .pwa-install-card { border: 1px solid var(--ax-br); border-radius: 18px; background: var(--ax-popover); box-shadow: var(--ax-shadow-pop); color: var(--ax-t); }
body.site-body .pwa-install-icon { border-radius: 12px; }
body.site-body .pwa-install-copy h2 { color: var(--ax-t); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
body.site-body .pwa-install-copy p { color: var(--ax-t2); }
body.site-body .pwa-install-close { border-radius: 50%; background: var(--ax-s3); color: var(--ax-t2); }
body.site-body .pwa-install-primary { min-height: 44px; border: 0; border-radius: 12px; background: var(--ax-accent); color: var(--ax-on-accent); font-weight: 600; }
body.site-body .pwa-install-secondary { min-height: 44px; border: 0; border-radius: 12px; background: var(--ax-s3); color: var(--ax-t); font-weight: 600; }

/* Phones: 44pt targets in shared overlays */
@media (max-width: 900px) {
  body.site-body .pedit-close { width: 36px; height: 36px; }
  body.site-body .lc-msg .lc-msg-close { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .fd-icon-nav, .page-wrap, .fd-nav-tooltip, .fd-notif-tray, .fd-more-popup, .fd-mob-more-card, .fd-mob-more-backdrop,
  .fd-notif-chip, .fd-notif-chip--mob, .lc-msg, #ic-pulse { transition: none !important; animation: none !important; }
}

/* the skip link moves focus to the page; no ring around the whole page */
#lc-main:focus { outline: none; }

/* ── Older pages styled by style.css: their primary actions use the accent ── */
body.site-body .get-verified-btn, body.site-body .profile-strength-btn {
  background: var(--ax-accent) !important; border-color: var(--ax-accent) !important; color: var(--ax-on-accent) !important;
  border-radius: 999px; font-weight: 600;
}
body.site-body .get-verified-btn:hover, body.site-body .profile-strength-btn:hover { background: var(--ax-accent-hover) !important; border-color: var(--ax-accent-hover) !important; }
