/* ==========================================================================
   UniCircle — redesign brand layer (Claude Design → 2026 identity)
   Manrope + Instrument Serif · warm paper (#faf9f6) · dark nuance (#3a3934).
   Loaded AFTER main.css/components.css/unicircle.css so it overrides cleanly.
   Re-declares the few --uc-* / --color-* / --space-* vars unicircle.js reads
   inline, so the JS-injected styles keep resolving against the new palette.
   ========================================================================== */
:root {
  --uc-bg: #faf9f6;
  --uc-ink: #2b2a26;
  --uc-ink-2: #5c5a53;
  --uc-muted: #8b887e;
  --uc-panel: #3a3934;
  --uc-card: rgba(255,255,255,0.62);
  --uc-card-solid: #ffffff;
  --uc-border: rgba(43,42,38,0.10);
  --uc-border-2: rgba(43,42,38,0.08);
  --uc-focus: oklch(0.62 0.14 275);
  --uc-font-body: 'Manrope', system-ui, sans-serif;
  --uc-font-display: 'Instrument Serif', Georgia, serif;
  --uc-r-pill: 999px;
  --uc-r-lg: 28px;
  --uc-r-md: 24px;
  --uc-r-sm: 16px;
  --uc-shadow: 0 14px 40px rgba(43,42,38,0.06);
  --uc-shadow-lg: 0 18px 50px rgba(43,42,38,0.10);
  /* --- bridge vars the existing JS depends on --- */
  --uc-sky: oklch(0.62 0.14 235);
  --text-xs: 12px;
  --space-2: 8px;
  --space-3: 12px;
  --space-8: 40px;
}

/* ==========================================================================
   MEMBER-AREA REDESIGN (v2) — token remap + component re-skin.
   The authenticated app (feed · network · mentorship · pbl-hub · events ·
   jobs) renders from js/app.js markup that reads the legacy um / uc / color
   custom-property tokens. Retargeting those tokens to the paper/ink palette re-skins
   every surface at once; the override blocks below fix the few design-system
   hard-don'ts that a pure remap can't (colored modal/nav headers, accent
   stripes, azure chat bubbles, gold badges). Loaded last → wins the cascade.
   ========================================================================== */
:root {
  /* NOTE: main.css defines these tokens inside `@layer tokens`. To override a
     layered token from this unlayered sheet reliably across engines, the custom
     properties carry !important — the standard escape hatch for re-skinning a
     design-token layer from an outside stylesheet. */

  /* Typography: UI/body = Manrope; display serif applied selectively (never
     as bold UI labels). Reverses the earlier serif-everywhere bridge. */
  --font-heading: 'Manrope', system-ui, sans-serif !important;
  --font-body: 'Manrope', system-ui, sans-serif !important;

  /* Legacy blue/navy structure tokens → warm ink + dark nuance.
     Dark surfaces (rails, banners, footers) legitimately use --shadow-nuance. */
  --um-dark-blue: #3a3934 !important;   /* deep navy → dark nuance panel      */
  --um-light-blue: #2b2a26 !important;  /* sky blue  → ink (fills/links)      */
  --um-orange-red: #2b2a26 !important;  /* azure CTA → ink (primary accent)   */
  --um-white: #faf9f6 !important;       /* text-on-dark = paper               */
  --um-bachelor: #5c5a53 !important;    /* degree badge → ink-soft            */
  --um-master: #2b2a26 !important;      /* degree badge → ink                 */

  --uc-navy: #3a3934 !important;
  --uc-cobalt: #4a4842 !important;      /* mid nuance for the few gradients    */
  --uc-azure: #2b2a26 !important;       /* chat bubbles / chips / tabs → ink   */
  --uc-sky: oklch(0.62 0.14 275) !important;  /* focus/link → indigo swarm     */
  --uc-frost: #f1efe9 !important;
  --uc-ice: #faf9f6 !important;

  /* Surface + text tokens → paper / ink scale. */
  --color-bg: #faf9f6 !important;
  --color-surface: #ffffff !important;
  --color-surface-hover: #f1efe9 !important;
  --color-border: rgba(43,42,38,0.10) !important;
  --color-text-primary: #2b2a26 !important;
  --color-text-secondary: #5c5a53 !important;
  --color-text-muted: #8b887e !important;
  --color-accent-bg: rgba(43,42,38,0.05) !important;
  --color-premium: #2b2a26 !important;
}
/* Brand typography is SCOPED to redesigned surfaces (.uc-page) so the existing
   authenticated app keeps its own Outfit/Inter look until it is migrated too. */
.uc-page {
  background: var(--uc-bg);
  color: var(--uc-ink);
  font-family: var(--uc-font-body);
}
.uc-page h1, .uc-page h2, .uc-page h3 { text-wrap: balance; }
.uc-page p { text-wrap: pretty; }
.uc-page a { color: inherit; text-decoration: none; }
.uc-page input::placeholder { color: var(--uc-muted); }
.uc-page :focus-visible {
  outline: 2px solid var(--uc-focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.uc-serif { font-family: var(--uc-font-display); }

/* auth-modal helpers referenced by unicircle.js openAuth() */
.uc-row-between { display: flex; justify-content: flex-end; margin: 2px 0 0; }
.uc-link-muted { color: var(--uc-muted); font-size: 13px; }
.uc-link-muted:hover { color: var(--uc-ink); }

/* Hide the global SPA header on the guest landing (the landing hero carries its
   own nav pill). Router toggles body.uc-hide-header for pageName === 'landing'. */
body.uc-hide-header .global-header { display: none; }
body.uc-hide-header .skip-link { display: none; }

.uc-navpill {
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--uc-r-pill);
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--uc-border);
  box-shadow: 0 8px 30px rgba(43,42,38,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 20px;
}
.uc-btn-dark {
  background: var(--uc-ink);
  color: var(--uc-bg);
  border-radius: var(--uc-r-pill);
  padding: 9px 22px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.uc-btn-dark:hover { opacity: .85; }
.uc-btn-ghost {
  background: transparent;
  border: 1px solid var(--uc-border);
  color: var(--uc-ink);
  border-radius: var(--uc-r-pill);
  padding: 9px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.uc-btn-ghost:hover { background: rgba(43,42,38,.03); }
.uc-card {
  background: var(--uc-card);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-r-md);
  box-shadow: var(--uc-shadow);
  padding: 28px 30px;
}
.uc-panel-dark {
  background: var(--uc-panel);
  color: var(--uc-bg);
  border-radius: var(--uc-r-md);
}
.uc-hero-h1 {
  font-family: var(--uc-font-display);
  font-weight: 400;
  font-size: clamp(40px,7vw,104px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 18px;
}
.uc-hero-h1 em { font-style: italic; color: var(--uc-ink-2); }
.uc-eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--uc-muted);
  font-weight: 600;
}
@media (min-width:600px) { .uc-eyebrow { font-size: 13px; } }
.uc-input-pill {
  border-radius: var(--uc-r-pill);
  padding: 14px 22px;
  border: 1px solid var(--uc-border);
  background: #fff;
  font-family: var(--uc-font-body);
  font-size: 15px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.uc-input-pill:focus {
  border-color: var(--uc-focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--uc-focus) 20%, transparent);
}
.uc-arrow-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--uc-ink);
  color: var(--uc-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform .2s;
}
.uc-arrow-btn:hover { transform: scale(1.05); }
.uc-dashboard-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.uc-rail {
  background: var(--uc-panel);
  color: var(--uc-bg);
  padding: 20px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.uc-rail-link {
  display: block;
  padding: 10px 16px;
  border-radius: var(--uc-r-pill);
  color: rgba(250,249,246,.65);
  font-weight: 500;
  transition: background .2s;
}
.uc-rail-link:hover { background: rgba(250,249,246,.08); color: var(--uc-bg); }
.uc-rail-link.active,
.uc-rail-link[aria-current="page"] { background: rgba(250,249,246,.12); color: var(--uc-bg); }
.uc-people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.uc-avatar-initials {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: oklch(0.90 0.06 275);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--uc-font-display);
  font-size: 24px;
  color: var(--uc-ink);
  flex-shrink: 0;
}
@keyframes uc-cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.uc-anim-in { animation: uc-cardIn .7s ease .15s both; }
@media (max-width:1100px) {
  .uc-dashboard-shell { grid-template-columns: 1fr; }
  [data-uc-main-grid] { grid-template-columns: 1fr !important; }
}
@media (max-width:860px) {
  .uc-dashboard-shell { grid-template-columns: 1fr; }
  .uc-rail {
    position: static;
    height: auto;
    display: flex;
    overflow-x: auto;
    padding: 12px;
    gap: 8px;
    width: 100%;
  }
  .uc-rail-link { white-space: nowrap; }
}
@media (max-width:900px) { [data-nav-links] { display: none; } }
@media (max-width:520px) { .uc-people-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Header re-skin — restyles the existing .global-header markup to the paper
   nuance. Contract selectors (#profile-pill, .nav-item[data-page], .badge)
   are preserved; only appearance changes.
   ========================================================================== */
.global-header {
  background: rgba(250,249,246,.82) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--uc-border) !important;
  box-shadow: none !important;
}
.global-header .app-title,
.global-header .app-title span { color: var(--uc-ink) !important; font-family: var(--uc-font-display); }
.global-header .nav-item {
  color: var(--uc-ink-2);
  font-family: var(--uc-font-body);
  border-radius: var(--uc-r-pill);
}
.global-header .nav-item:hover { background: rgba(43,42,38,.04); color: var(--uc-ink); }
.global-header .nav-item.active {
  background: var(--uc-ink);
  color: var(--uc-bg);
}
.global-header .nav-item.active .iconify { color: var(--uc-bg); }
.global-header .badge {
  background: var(--uc-sky);
  color: var(--uc-bg);
}
#profile-pill {
  background: var(--uc-card);
  border: 1px solid var(--uc-border);
}

/* ==========================================================================
   Landing / login / dashboard page helpers (used by the re-skinned fallbacks)
   ========================================================================== */
.uc-page { background: var(--uc-bg); color: var(--uc-ink); font-family: var(--uc-font-body); }
.uc-section { max-width: 1152px; margin: 0 auto; padding: 60px 24px; }
.uc-hero {
  position: relative; min-height: 78vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px;
}
.uc-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.uc-hero > *:not(.uc-hero-canvas) { position: relative; z-index: 1; }
.uc-lead { font-size: 17px; line-height: 1.6; color: var(--uc-ink-2); max-width: 520px; margin: 0 0 32px; }
.uc-join-row {
  width: 100%; max-width: 480px; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 20px; border-radius: var(--uc-r-pill);
  background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--uc-border); box-shadow: var(--uc-shadow);
}
.uc-join-row input { flex: 1; border: none; background: transparent; font-family: var(--uc-font-body); font-size: 15px; color: var(--uc-ink); }
.uc-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.uc-feature-card { border-radius: var(--uc-r-lg); overflow: hidden; background: var(--uc-card); border: 1px solid var(--uc-border); box-shadow: var(--uc-shadow); }
.uc-feature-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.uc-feature-card .body { padding: 28px 30px 32px; }
.uc-footer-dark { background: var(--uc-panel); color: var(--uc-bg); padding: 72px 24px 56px; }
.uc-content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; padding: 20px 44px 48px; }
.uc-ribbon { position: relative; height: 210px; overflow: hidden; flex-shrink: 0; }
@media (max-width:1100px) { .uc-content-grid { grid-template-columns: 1fr; } }
@media (max-width:900px) { .uc-feature-grid { grid-template-columns: 1fr; } .uc-content-grid { padding: 20px 24px 40px; } }

/* ==========================================================================
   MEMBER-AREA COMPONENT OVERRIDES (v2)
   Fixes design-system hard-don'ts the token remap can't reach.
   ========================================================================== */

/* Page canvas: warm paper + Manrope. main.css sets body bg via a literal in
   @layer base, so it needs an explicit override. The guest landing paints its
   own surfaces (.uc-landing / .uc-hero) on top, so this is safe there too. */
body {
  background: var(--uc-bg) !important;
  color: var(--uc-ink);
  font-family: var(--uc-font-body);
}

/* --- Cards: soft warm shadow + generous radius. Background is left to the
   token-remapped --color-surface (white) so intentional inline dark-gradient
   banners keep their fill; only shape/elevation are unified here. --- */
.sbe-card {
  border: 1px solid var(--uc-border) !important;
  border-radius: var(--uc-r-md) !important;
  box-shadow: 0 8px 30px rgba(43,42,38,0.06) !important;
}

/* Hard-don't: no left accent stripes. Neutralise both inline and class-based
   border-left stripes (post-pbl-box + solution-item define them in rules). */
.sbe-card[style*="border-left"] { border-left: 1px solid var(--uc-border) !important; }
.feed-post[style*="border-left"] { border-left: 1px solid var(--uc-border) !important; }
.post-pbl-box, .solution-item { border-left: 1px solid var(--uc-border-2) !important; }

/* --- Display serif ONLY on true page/section titles (weight 400) --- */
.pbl-hub-intro h2,
.pbl-hub-header h2,
.uc-serif,
.sbe-modal .modal-header h3,
.uc-modal-head h3 {
  font-family: var(--uc-font-display) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

/* --- Buttons: ink primary / white secondary pills, min 44px touch --- */
.connect-btn, .attend-btn, .search-submit, .pbl-create-btn,
.submit-btn, .follow-btn, .trigger-btn {
  border-radius: var(--uc-r-pill) !important;
}
.connect-btn, .attend-btn, .search-submit, .pbl-create-btn, .submit-btn {
  background-color: var(--uc-ink) !important;
  color: var(--uc-bg) !important;
  border: none !important;
  font-weight: 600 !important;
}
.connect-btn:hover, .attend-btn:hover, .search-submit:hover,
.pbl-create-btn:hover, .submit-btn:hover {
  background-color: var(--uc-panel) !important;
}
.pbl-btn, .details-btn, .cancel-btn, .follow-btn {
  background: var(--uc-card-solid) !important;
  border: 1px solid var(--uc-border) !important;
  color: var(--uc-ink) !important;
  border-radius: var(--uc-r-pill) !important;
  font-weight: 600 !important;
}
.action-btn { border-radius: var(--uc-r-pill) !important; }
.action-btn.active {
  background-color: var(--uc-ink) !important;
  color: var(--uc-bg) !important;
}

/* --- Segmented sub-nav tabs: mist track, white active pill --- */
.uc-tabs { background: var(--uc-frost) !important; border: 1px solid var(--uc-border-2); }
.uc-tab.active {
  background: #fff !important;
  color: var(--uc-ink) !important;
  box-shadow: 0 2px 8px rgba(43,42,38,0.10) !important;
}

/* --- Modals: NO colored header bar; serif title, paper surface --- */
.uc-modal, .sbe-modal .modal-wrapper {
  border-radius: var(--uc-r-lg) !important;
  box-shadow: 0 24px 70px rgba(43,42,38,0.14) !important;
}
.uc-modal-head, .sbe-modal .modal-header {
  background: transparent !important;
  color: var(--uc-ink) !important;
  border-bottom: 1px solid var(--uc-border) !important;
}
.uc-modal-head h3, .sbe-modal .modal-header h3 { color: var(--uc-ink) !important; }
.uc-x, .sbe-modal .close-btn {
  color: var(--uc-ink) !important;
  background: var(--uc-frost) !important;
  border-radius: 50% !important;
  width: 34px; height: 34px;
}
.uc-modal-backdrop, .sbe-modal::backdrop {
  background: rgba(43,42,38,0.35) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* --- Chat drawer / FAB / bubbles: ink + nuance, no azure/gradient --- */
#uc-fab {
  background: var(--uc-ink) !important;
  color: var(--uc-bg) !important;
  box-shadow: 0 14px 40px rgba(43,42,38,0.18) !important;
}
#uc-fab:hover { filter: none; background: var(--uc-panel) !important; }
#uc-chat { border-radius: var(--uc-r-lg) !important; border: 1px solid var(--uc-border); }
.uc-chat-head { background: var(--uc-panel) !important; color: var(--uc-bg) !important; }
.uc-msg { background: var(--uc-frost) !important; color: var(--uc-ink) !important; }
.uc-msg.mine { background: var(--uc-ink) !important; color: var(--uc-bg) !important; }
.uc-peer.active { background: var(--uc-frost) !important; color: var(--uc-ink) !important; }
.uc-primary { background: var(--uc-ink) !important; color: var(--uc-bg) !important; border-radius: var(--uc-r-pill) !important; }
.uc-primary:hover { background: var(--uc-panel) !important; }
.uc-livechip { background: var(--uc-ink) !important; color: var(--uc-bg) !important; }

/* --- Toasts: dark nuance surface (allowed), paper text --- */
.uc-toast { background: var(--uc-panel) !important; color: var(--uc-bg) !important; }
.uc-toast--warn { background: var(--uc-panel) !important; }
.uc-toast b { color: #fff !important; }

/* --- Inputs: white pill, indigo focus ring --- */
.uc-form input, .search-input, .sbe-modal input, .sbe-modal textarea, .sbe-modal select {
  border-radius: var(--uc-r-pill) !important;
  border: 1px solid rgba(43,42,38,0.12) !important;
}
.sbe-modal textarea { border-radius: var(--uc-r-sm) !important; }
.uc-form input:focus, .search-input:focus {
  border-color: var(--uc-focus) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--uc-focus) 22%, transparent) !important;
}

/* --- Badges / ribbons: neutralise gold + saturated fills to ink/mist --- */
.premium-badge, .premium-ribbon, .degree-badge, .mentor-badge, .badge {
  background: var(--uc-ink) !important;
  color: var(--uc-bg) !important;
  background-image: none !important;
}
.degree-badge.msc, .degree-badge.bsc { background: var(--uc-frost) !important; color: var(--uc-ink) !important; }

/* --- Academic-overlap highlight: mist chip, not blue wash --- */
.academic-overlap, .tutorial-overlap-pill, .post-pbl-box {
  background: var(--uc-frost) !important;
  border: 1px solid var(--uc-border-2) !important;
  color: var(--uc-ink-2) !important;
}

/* --- AI search header: paper card, not blue --- */
.ai-search-container { background: var(--uc-card-solid) !important; border: 1px solid var(--uc-border) !important; border-radius: var(--uc-r-md) !important; }
.ai-search-container .sparkle-icon { color: var(--uc-focus) !important; }

/* --- Green/misc icon accents → ink-soft (swarm colors never as text) --- */
.media-btn.video .iconify, .iconify.check { color: var(--uc-ink-2) !important; }

/* ==========================================================================
   FINALISATION v3 — side-rail app shell + rebuilt screens (App.dc.html).
   Every authenticated page renders inside .uc-dashboard-shell (rail + main).
   Font coherence: Instrument Serif 400 for display titles, Manrope ≤700 for
   UI — no faux-bold 800 headings, no clipped pill buttons.
   ========================================================================== */

/* Shell main column */
.uc-main-col { min-width: 0; display: flex; flex-direction: column; }
.uc-page-main { padding: 28px clamp(20px, 3.5vw, 44px) 48px; }

/* Rail brand + dot + link reset (rail links are <a> and <button>) */
.uc-rail-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; }
.uc-rail-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.uc-rail-brand .uc-serif { font-size: 22px; color: var(--uc-bg); }
.uc-rail-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 12px; flex-shrink: 0; }
.uc-rail-link {
  display: flex; align-items: center; width: 100%; text-align: left;
  padding: 11px 14px; border: none; background: transparent; cursor: pointer;
  border-radius: var(--uc-r-pill); font-family: var(--uc-font-body);
  font-size: 14px; font-weight: 500; color: rgba(250,249,246,0.65);
}
.uc-rail-link:hover { background: rgba(250,249,246,0.08); color: var(--uc-bg); }
.uc-rail-link.active, .uc-rail-link[aria-current="page"] { background: rgba(250,249,246,0.12); color: var(--uc-bg); font-weight: 600; }

/* App header row (title + search) on inner screens */
.uc-app-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.uc-app-title { margin: 0; font-family: var(--uc-font-display); font-weight: 400; font-size: clamp(28px, 3.5vw, 38px); letter-spacing: -0.01em; color: var(--uc-ink); }
.uc-app-title em { font-style: italic; color: var(--uc-ink-2); }
.uc-app-search { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 20px; border-radius: 999px; background: rgba(255,255,255,0.7); border: 1px solid var(--uc-border); }
.uc-app-search input { width: min(220px, 44vw); border: none; background: transparent; font-family: var(--uc-font-body); font-size: 14px; color: var(--uc-ink); outline: none; }
.uc-app-search button { width: 38px; height: 38px; min-width: 38px; border-radius: 50%; background: var(--uc-ink); color: var(--uc-bg); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; }

/* Section title — Manrope 700 (never faux-bold serif) */
.uc-h2 { margin: 0; font-family: var(--uc-font-body); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--uc-ink); }

/* Rows, date circles */
.uc-row { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 16px; background: var(--uc-card-solid); border: 1px solid var(--uc-border-2); }
.uc-datecirc { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Pills — generous padding, nowrap, no clipping */
.uc-pill-ink, .uc-pill-ghost, .uc-pill-paper, .uc-pill-outline-paper {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 22px; border-radius: 999px; font-family: var(--uc-font-body);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; line-height: 1.2;
}
.uc-pill-ink { background: var(--uc-ink); color: var(--uc-bg); border: none; }
.uc-pill-ink:hover { background: var(--uc-panel); }
.uc-pill-ghost { background: transparent; color: var(--uc-ink); border: 1px solid var(--uc-border); }
.uc-pill-ghost:hover { background: rgba(43,42,38,0.03); }
.uc-pill-paper { background: var(--uc-bg); color: var(--uc-ink); border: none; padding: 12px 28px; font-weight: 700; }
.uc-pill-outline-paper { background: transparent; color: var(--uc-bg); border: 1px solid rgba(250,249,246,0.3); padding: 8px 18px; font-weight: 700; }
.uc-pill-sm { padding: 7px 18px; font-size: 12px; }

/* People / jobs / chips / tags */
.uc-person { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 14px; border-radius: 16px; background: var(--uc-card-solid); border: 1px solid var(--uc-border-2); text-align: center; }
.uc-joblink { display: block; padding: 14px 16px; border-radius: 14px; background: var(--uc-card-solid); border: 1px solid var(--uc-border-2); }
.uc-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--uc-border); background: transparent; font-family: var(--uc-font-body); font-size: 12px; color: var(--uc-ink-2); cursor: pointer; }
.uc-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--uc-ink-2); background: var(--uc-frost); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }

/* Filters + card/stat grids */
.uc-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.uc-filters select { min-width: 0; width: 100%; padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(43,42,38,0.12); background: #fff; font-family: var(--uc-font-body); font-size: 13px; color: var(--uc-ink); }
.uc-cards-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.uc-cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.uc-stats-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.uc-stat { padding: 20px 22px; border-radius: 16px; background: var(--uc-card-solid); border: 1px solid var(--uc-border-2); }
.uc-stat-n { font-family: var(--uc-font-display); font-size: 36px; line-height: 1; }
.uc-stat-l { font-size: 12px; color: var(--uc-muted); margin-top: 6px; }

@media (max-width: 1150px) {
  .uc-cards-3 { grid-template-columns: 1fr 1fr; }
  .uc-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .uc-cards-3, .uc-cards-2, .uc-stats-3 { grid-template-columns: 1fr; }
  .uc-filters { grid-template-columns: 1fr 1fr; }
  .uc-app-search input { width: 100%; }
}

/* ==========================================================================
   AUTH MODALS v3 — match New_design/Auth Modals.dc.html
   ========================================================================== */
.uc-modal { border-radius: 28px !important; padding: 0 !important; }
.uc-modal-head { padding: 30px 32px 18px !important; }
.uc-modal-head h3 { display: flex; align-items: center; gap: 12px; font-size: 26px !important; }
.uc-modal-head h3 img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.uc-modal-head h3 em { font-style: italic; color: var(--uc-ink-2); }
.uc-modal-body { padding: 0 32px 32px !important; }

/* LinkedIn: white button, ink text, blue brand chip (never a blue fill) */
.uc-linkedin {
  background: #fff !important; color: var(--uc-ink) !important;
  border: 1px solid rgba(43,42,38,0.14) !important; border-radius: 999px !important;
  font-weight: 600 !important; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.uc-linkedin:hover { background: var(--uc-bg) !important; }
.uc-li-chip { width: 20px; height: 20px; border-radius: 4px; background: #0A66C2; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Field labels — tiny uppercase */
.uc-form label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--uc-muted); font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.uc-form input { text-transform: none; letter-spacing: normal; }
.uc-or span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--uc-muted); font-weight: 600; }

/* Landing tabbed sign-in card */
.uc-login-card {
  width: 100%; max-width: 400px; margin: 0 auto; padding: 26px 28px;
  border-radius: 24px; background: rgba(255,255,255,0.62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--uc-border);
  box-shadow: 0 18px 50px rgba(43,42,38,0.10), inset 0 1px 1px rgba(255,255,255,0.9);
  display: flex; flex-direction: column; gap: 14px; text-align: left;
  animation: uc-cardIn .7s ease .15s both;
}
.uc-login-card .uc-tab { font-size: 12.5px; padding: 8px 0; }
.uc-login-card .uc-input-pill { font-size: 14px; }

/* ==========================================================================
   AUTH MODAL FIX — [hidden] must win over .uc-form{display:flex}. Without this
   the inactive tab's form (magic vs password/create) stays visible and both
   panels stack. A blanket rule keeps 'hidden' authoritative everywhere.
   ========================================================================== */
[hidden] { display: none !important; }
