/**
 * Pulse — an X-style theme for Sngine v5
 *
 * Pulse renders Nova's v5 markup and loads Nova's compiled CSS
 * (see _head.tpl: {theme_assets ... theme='nova'}). This file adds the
 * X-style layout (left rail, 600px timeline, right column), the flat
 * bordered timeline and the white / "lights out" palette.
 *
 * Nova's Tailwind utilities live in CSS cascade layers, so the plain
 * (unlayered) rules below win over them without !important.
 * Every rule is scoped to html.pulse so nothing leaks into Nova or admin.
 */

/* =========================================================
   1. Tokens
   ========================================================= */
html.pulse {
  --pl-bg: #ffffff;
  --pl-bg-2: #f7f9f9;
  --pl-bg-3: #eff3f4;
  --pl-border: #eff3f4;
  --pl-border-strong: #cfd9de;
  --pl-text: #0f1419;
  --pl-muted: #536471;
  --pl-hover: rgba(15, 20, 25, .1);
  --pl-hover-soft: rgba(0, 0, 0, .03);
  --pl-brand: #1d9bf0;
  --pl-brand-hover: #1a8cd8;
  --pl-brand-soft: rgba(29, 155, 240, .1);
  --pl-like: #f91880;
  --pl-like-soft: rgba(249, 24, 128, .1);
  --pl-repost: #00ba7c;
  --pl-repost-soft: rgba(0, 186, 124, .1);
  --pl-glass: rgba(255, 255, 255, .85);
  --pl-menu-shadow: rgba(101, 119, 134, .2) 0 0 15px, rgba(101, 119, 134, .15) 0 0 3px 1px;
  --pl-rail-w: 88px;
  --pl-col-w: 600px;
  --pl-aside-w: 350px;
  --pl-gap: 30px;
  --pl-topbar-h: 53px;
  --pl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --font-sans: var(--pl-font);
  --root-bg: var(--pl-bg);
  --plyr-color-main: var(--pl-brand);
  background-color: var(--pl-bg);
}
html.pulse[dir=rtl] {
  --pl-font: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html.pulse[data-theme=nova-dark] {
  --pl-bg: #000000;
  --pl-bg-2: #16181c;
  --pl-bg-3: #202327;
  --pl-border: #2f3336;
  --pl-border-strong: #536471;
  --pl-text: #e7e9ea;
  --pl-muted: #71767b;
  --pl-hover: rgba(231, 233, 234, .1);
  --pl-hover-soft: rgba(255, 255, 255, .03);
  --pl-glass: rgba(0, 0, 0, .65);
  --pl-menu-shadow: rgba(255, 255, 255, .2) 0 0 15px, rgba(255, 255, 255, .15) 0 0 3px 1px;
}

/* daisyUI palette (Nova's compiled CSS reads these) */
html.pulse[data-theme=nova] {
  --color-base-100: #ffffff;
  --color-base-200: #f7f9f9;
  --color-base-300: #eff3f4;
  --color-base-content: #0f1419;
  --color-primary: #1d9bf0;
  --color-primary-content: #ffffff;
  --color-secondary: #536471;
  --color-secondary-content: #ffffff;
  --color-accent: #f91880;
  --color-accent-content: #ffffff;
  --color-neutral: #0f1419;
  --color-neutral-content: #ffffff;
  --color-info: #1d9bf0;
  --color-info-content: #ffffff;
  --color-success: #00ba7c;
  --color-success-content: #ffffff;
  --color-warning: #ffd400;
  --color-warning-content: #0f1419;
  --color-error: #f4212e;
  --color-error-content: #ffffff;
  --radius-selector: .375rem;
  --radius-field: .5rem;
  --radius-box: 1rem;
}
html.pulse[data-theme=nova-dark] {
  --color-base-100: #000000;
  --color-base-200: #16181c;
  --color-base-300: #2f3336;
  --color-base-content: #e7e9ea;
  --color-primary: #1d9bf0;
  --color-primary-content: #ffffff;
  --color-secondary: #71767b;
  --color-secondary-content: #ffffff;
  --color-accent: #f91880;
  --color-accent-content: #ffffff;
  --color-neutral: #202327;
  --color-neutral-content: #e7e9ea;
  --color-info: #1d9bf0;
  --color-info-content: #ffffff;
  --color-success: #00ba7c;
  --color-success-content: #ffffff;
  --color-warning: #ffd400;
  --color-warning-content: #0f1419;
  --color-error: #f4212e;
  --color-error-content: #ffffff;
  --radius-selector: .375rem;
  --radius-field: .5rem;
  --radius-box: 1rem;
}

/* HeroUI palette */
html.pulse .heroui {
  --accent: #1d9bf0;
  --accent-foreground: #ffffff;
  --focus: #1d9bf0;
  --background: var(--pl-bg);
  --surface: var(--pl-bg);
  --overlay: var(--pl-bg);
  --muted: var(--pl-muted);
}
html.pulse[data-theme=nova-dark] .heroui {
  --surface-secondary: #16181c;
  --surface-tertiary: #202327;
  --field-background: #000000;
  --field-foreground: #e7e9ea;
}

/* =========================================================
   2. Base
   ========================================================= */
html.pulse body {
  background-color: var(--pl-bg);
  color: var(--pl-text);
  font-family: var(--pl-font);
  -webkit-font-smoothing: antialiased;
}
html.pulse ::selection { background: rgba(29, 155, 240, .3); }

/* soft cards become hairline-bordered surfaces on the flat background */
html.pulse .shadow-surface { box-shadow: 0 0 0 1px var(--pl-border); }

/* buttons are pills, like X */
html.pulse .heroui.button:not(.button--icon-only) { border-radius: 9999px; font-weight: 700; }
html.pulse .heroui.button--primary { --button-bg: var(--pl-brand); --button-bg-hover: var(--pl-brand-hover); --button-bg-pressed: var(--pl-brand-hover); }

/* menus: X's floating shadow, no border */
html.pulse .dropdown-menu {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--pl-menu-shadow);
  background-color: var(--pl-bg);
}
html.pulse .dropdown-item { border-radius: 0; }

/* utility pill (used by Pulse markup) */
html.pulse .pl-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 16px; border-radius: 9999px;
  font-size: 15px; font-weight: 700; line-height: 20px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background-color .2s, opacity .2s;
}
html.pulse .pl-pill.is-sm { min-height: 34px; font-size: 14px; }
html.pulse .pl-pill.is-block { width: 100%; min-height: 40px; }
html.pulse .pl-pill.is-solid { background: var(--pl-text); color: var(--pl-bg) !important; }
html.pulse .pl-pill.is-solid:hover { opacity: .88; }
html.pulse .pl-pill.is-brand { background: var(--pl-brand); color: #fff !important; }
html.pulse .pl-pill.is-brand:hover { background: var(--pl-brand-hover); }
html.pulse .pl-pill.is-outline { border-color: var(--pl-border-strong); color: var(--pl-text) !important; background: transparent; }
html.pulse .pl-pill.is-outline:hover { background: var(--pl-hover); }

/* =========================================================
   3. Frame: rail + main + aside
   ========================================================= */
html.pulse .site-shell { background: var(--pl-bg); }
html.pulse .pl-frame {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
html.pulse .pl-body {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
}
html.pulse .pl-body:not(.has-aside) { flex: 0 1 1060px; }
html.pulse .pl-frame.is-fluid .pl-body:not(.has-aside) { flex: 1 1 auto; }
html.pulse .pl-body.has-aside {
  flex: 0 1 auto;
  gap: var(--pl-gap);
}
html.pulse .pl-main {
  min-height: 100dvh;
  margin: 0;
}
html.pulse .pl-main.is-column {
  width: var(--pl-col-w);
  max-width: 100%;
  flex: 0 1 var(--pl-col-w);
  padding: 0 0 80px;
  border-inline: 1px solid var(--pl-border);
}
html.pulse .pl-main.is-wide {
  max-width: 1060px;
  border-inline-start: 1px solid var(--pl-border);
}
html.pulse .pl-frame.is-messages .pl-main { min-height: 0; }
html.pulse .pl-frame.is-messages { min-height: 0; overflow: hidden; }
html.pulse .pl-frame.is-messages .pl-body { align-items: stretch; min-height: 0; }
html.pulse .pl-frame.is-messages .pl-rail { height: 100%; }

/* Nova's chat dock has no place in an X layout */
html.pulse .chat-sidebar { display: none !important; }

/* mobile (< 768): Nova topbar + bottom bar, no rail */
html.pulse .pl-rail { display: none; }
html.pulse .pl-aside { display: none; }
@media (max-width: 767.98px) {
  html.pulse .pl-main.is-column { width: 100%; flex-basis: 100%; border-inline: 0; }
  html.pulse .pl-main.is-wide { border: 0; }
}
@media (min-width: 768px) {
  html.pulse .site-topbar { display: none !important; }
  html.pulse .pl-rail { display: block; }
  html.pulse #site-sidebar { display: none !important; }
}
@media (min-width: 1024px) {
  html.pulse .pl-aside { display: block; }
}
@media (min-width: 1280px) {
  html.pulse { --pl-rail-w: 275px; }
}
@media (min-width: 1024px) and (max-width: 1099.98px) {
  html.pulse { --pl-aside-w: 290px; --pl-gap: 20px; }
}

/* =========================================================
   4. Left rail
   ========================================================= */
html.pulse .pl-rail {
  position: sticky;
  top: 0;
  flex: 0 0 var(--pl-rail-w);
  width: var(--pl-rail-w);
  height: 100dvh;
  z-index: 30;
}
html.pulse .pl-rail-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 0 8px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
html.pulse .pl-rail-inner::-webkit-scrollbar { display: none; }
@media (min-width: 1280px) {
  html.pulse .pl-rail-inner { align-items: stretch; padding: 0 12px 0 8px; }
}

html.pulse .pl-logo {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 2px 0; flex-shrink: 0;
  border-radius: 9999px; transition: background-color .2s;
}
html.pulse .pl-logo:hover { background: var(--pl-hover); }
html.pulse .pl-logo-mark { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }

html.pulse .pl-nav { width: 100%; margin: 2px 0 4px; }
html.pulse .pl-nav > ul { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1280px) { html.pulse .pl-nav > ul { align-items: flex-start; } }

html.pulse .pl-link {
  display: flex; padding: 4px 0; color: var(--pl-text) !important; background: none; border: 0; cursor: pointer;
  text-decoration: none !important; outline: none;
}
html.pulse .pl-link-pill {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 12px; border-radius: 9999px;
  transition: background-color .2s;
}
html.pulse .pl-link:hover .pl-link-pill,
html.pulse .pl-link:focus-visible .pl-link-pill,
html.pulse .dropdown.open > .pl-link .pl-link-pill { background: var(--pl-hover); }
html.pulse .pl-link:focus-visible .pl-link-pill { box-shadow: 0 0 0 2px var(--pl-brand); }
html.pulse .pl-link-icon { position: relative; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; flex-shrink: 0; }
html.pulse .pl-link-icon .pl-ico { width: 26px; height: 26px; }
html.pulse .pl-link-icon span.pl-ico { font-size: 26px; }
html.pulse .pl-link-text { display: none; font-size: 20px; line-height: 24px; padding-inline-end: 16px; white-space: nowrap; }
html.pulse .pl-link.is-active .pl-link-text { font-weight: 700; }
@media (min-width: 1280px) { html.pulse .pl-link-text { display: inline; } }

html.pulse .pl-count {
  position: absolute; top: -6px; inset-inline-end: -8px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9999px; background: var(--pl-brand); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 1.5px var(--pl-bg);
}
html.pulse .pl-count[hidden] { display: none; }

/* "More" + account dropups */
html.pulse .pl-dropup { --placement: top-start; --offset: 6; --strategy: fixed; position: relative; }
html.pulse .pl-menu {
  width: 300px; max-width: calc(100vw - 24px); max-height: min(48vh, 520px); overflow-y: auto;
  padding: 8px 0; margin: 0; list-style: none;
}
html.pulse .pl-menu-item {
  display: flex !important; align-items: center; gap: 14px;
  padding: 12px 16px !important; font-size: 17px; font-weight: 600; line-height: 22px;
  color: var(--pl-text) !important; border-radius: 0 !important;
}
html.pulse .pl-menu-item:hover { background: var(--pl-hover-soft) !important; }
html.pulse .pl-menu-ico { width: 22px; height: 22px; flex-shrink: 0; }
html.pulse .pl-menu-sep { height: 1px; margin: 6px 0; background: var(--pl-border); list-style: none; }

/* Post button */
html.pulse .pl-post-wrap { width: 100%; display: flex; justify-content: center; margin: 12px 0 16px; }
html.pulse .pl-post-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 9999px; border: 1px solid transparent;
  background: var(--pl-text); color: var(--pl-bg) !important;
  font-size: 17px; font-weight: 700; cursor: pointer; transition: opacity .2s;
  text-decoration: none !important;
}
html.pulse .pl-post-btn:hover { opacity: .88; }
html.pulse .pl-post-btn.is-outline { background: transparent; border-color: var(--pl-border-strong); color: var(--pl-text) !important; }
html.pulse .pl-post-btn.is-outline:hover { background: var(--pl-hover); opacity: 1; }
html.pulse .pl-post-text { display: none; }
@media (min-width: 1280px) {
  html.pulse .pl-post-wrap { justify-content: stretch; }
  html.pulse .pl-post-btn { width: 90%; max-width: 234px; height: 52px; }
  html.pulse .pl-post-icon { display: none; }
  html.pulse .pl-post-text { display: inline; }
}
html.pulse .pl-join { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; margin: 12px 0; }
@media (min-width: 1280px) { html.pulse .pl-join { align-items: flex-start; } }

/* account button pinned to the bottom */
html.pulse .pl-user { margin-top: auto; margin-bottom: 12px; width: 100%; display: flex; justify-content: center; }
html.pulse .pl-user-btn {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 9999px;
  background: none; border: 0; color: var(--pl-text); cursor: pointer; transition: background-color .2s;
  min-width: 0; text-align: start;
}
html.pulse .pl-user-btn:hover, html.pulse .pl-user.open .pl-user-btn { background: var(--pl-hover); }
html.pulse .pl-user-avatar { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
html.pulse .pl-user-names, html.pulse .pl-user-dots { display: none; }
@media (min-width: 1280px) {
  html.pulse .pl-user { justify-content: stretch; }
  html.pulse .pl-user-btn { width: 100%; }
  html.pulse .pl-user-names { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 20px; }
  html.pulse .pl-user-name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.pulse .pl-user-handle { font-size: 15px; color: var(--pl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.pulse .pl-user-dots { display: inline-flex; flex-shrink: 0; }
}
html.pulse .pl-user .dropdown-menu { width: 300px; padding: 12px 0; }

/* =========================================================
   5. Right column
   ========================================================= */
html.pulse .pl-aside { flex: 0 0 var(--pl-aside-w); width: var(--pl-aside-w); position: sticky; top: 0; align-self: flex-start; }
html.pulse .pl-aside-inner {
  display: flex; flex-direction: column; gap: 16px;
  max-height: 100dvh; overflow-y: auto; padding-bottom: 48px;
  scrollbar-width: none;
}
html.pulse .pl-aside-inner::-webkit-scrollbar { display: none; }
html.pulse .pl-aside-search { position: sticky; top: 0; z-index: 2; padding: 6px 0 4px; background: var(--pl-bg); }

html.pulse .pl-search {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 16px;
  border-radius: 9999px; border: 1px solid transparent; background: var(--pl-bg-3);
  color: var(--pl-muted); font-size: 15px; text-align: start; cursor: text;
  transition: background-color .15s, border-color .15s;
}
html.pulse .pl-search:hover { border-color: var(--pl-border-strong); }
html.pulse .pl-search:focus-within { background: var(--pl-bg); border-color: var(--pl-brand); color: var(--pl-brand); }
html.pulse .pl-search-text { flex: 1; }
html.pulse .pl-search-kbd { font-family: inherit; font-size: 12px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--pl-border-strong); }
html.pulse .pl-search.is-input input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: var(--pl-text); font-size: 15px; }
html.pulse .pl-search.is-input input::placeholder { color: var(--pl-muted); }

html.pulse .pl-card {
  border: 1px solid var(--pl-border); border-radius: 16px;
  padding: 12px 16px; color: var(--pl-text);
}
html.pulse .pl-card.is-list { padding: 0; overflow: hidden; }
html.pulse .pl-card-title { font-size: 20px; font-weight: 800; line-height: 24px; letter-spacing: -.01em; margin: 0; }
html.pulse .pl-card.is-list .pl-card-title { padding: 12px 16px; }
html.pulse .pl-card-text { margin: 8px 0 0; font-size: 15px; line-height: 20px; color: var(--pl-text); }
html.pulse .pl-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 12px; }
html.pulse .pl-card-more {
  display: block; padding: 16px; font-size: 15px; color: var(--pl-brand) !important;
  transition: background-color .2s; text-decoration: none !important;
}
html.pulse .pl-card-more:hover { background: var(--pl-hover-soft); }

html.pulse .pl-trends { list-style: none; margin: 0; padding: 0; }
html.pulse .pl-trend {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px;
  color: var(--pl-text) !important; text-decoration: none !important; transition: background-color .2s;
}
html.pulse .pl-trend:hover { background: var(--pl-hover-soft); }
html.pulse .pl-trend-meta { font-size: 13px; line-height: 16px; color: var(--pl-muted); }
html.pulse .pl-trend-tag { font-size: 15px; line-height: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.pulse .pl-trends.is-page { border-bottom: 1px solid var(--pl-border); }

html.pulse .pl-wtf { list-style: none; margin: 0; padding: 0; }
html.pulse .pl-wtf-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; transition: background-color .2s; }
html.pulse .pl-wtf-item:hover { background: var(--pl-hover-soft); }
html.pulse .pl-wtf-avatar img { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; display: block; }
html.pulse .pl-wtf-names { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 20px; font-size: 15px; }
html.pulse .pl-wtf-name { display: flex; align-items: center; gap: 2px; min-width: 0; }
html.pulse .pl-wtf-name a { font-weight: 700; color: var(--pl-text) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.pulse .pl-wtf-name a:hover { text-decoration: underline; }
html.pulse .pl-wtf-handle { color: var(--pl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.pulse .pl-wtf-btn { flex-shrink: 0; }
html.pulse .pl-wtf-btn .heroui.button {
  --button-bg: var(--pl-text); --button-bg-hover: var(--pl-text); --button-bg-pressed: var(--pl-text); --button-fg: var(--pl-bg);
  height: 32px; min-height: 32px; padding: 0 16px; font-size: 14px; border-radius: 9999px;
}
html.pulse .pl-wtf-btn .heroui.button:hover { opacity: .88; }
html.pulse .pl-wtf-btn .heroui.button > [class*="icon-["] { display: none; }

html.pulse .pl-aside-extra:empty { display: none; }
html.pulse .pl-aside-extra { display: flex; flex-direction: column; gap: 16px; }
html.pulse .pl-aside-extra .card { border-radius: 16px; box-shadow: none; border: 1px solid var(--pl-border); background: transparent; }
html.pulse .pl-aside-footer { padding: 0 16px; }
html.pulse .pl-aside-footer > div { padding: 0; font-size: 13px; color: var(--pl-muted); }
html.pulse .pl-aside-footer > div > div { border-bottom: 0; padding-bottom: 6px; }

/* =========================================================
   6. Sticky column headers + tabs
   ========================================================= */
html.pulse .pl-head {
  position: sticky; top: 0; z-index: 25;
  background: var(--pl-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pl-border);
}
@media (max-width: 767.98px) {
  html.pulse .pl-head { top: var(--pl-topbar-h); }
}
html.pulse .pl-head-bar { display: flex; align-items: center; gap: 24px; min-height: 53px; padding: 0 16px; }
html.pulse .pl-head-home { display: none; }
html.pulse .pl-head-title { margin: 0; font-size: 20px; font-weight: 800; line-height: 24px; letter-spacing: -.01em; color: var(--pl-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.pulse .pl-head-sub { margin: 0; font-size: 13px; line-height: 16px; color: var(--pl-muted); }
html.pulse .pl-back {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 36px; margin-inline-start: -8px; border-radius: 9999px;
  color: var(--pl-text) !important; transition: background-color .2s;
}
html.pulse .pl-back:hover { background: var(--pl-hover); }
html.pulse .pl-head-bar .pl-back:last-child { margin-inline: 0 -8px; }
html.pulse[dir=rtl] .pl-back .pl-ico { transform: scaleX(-1); }
html.pulse .pl-head-search { padding: 6px 16px; }

html.pulse .pl-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
html.pulse .pl-tabs::-webkit-scrollbar { display: none; }
html.pulse .pl-tab {
  flex: 1 0 auto; display: flex; justify-content: center; min-width: 56px; height: 53px; padding: 0 16px;
  color: var(--pl-muted) !important; font-size: 15px; font-weight: 500; text-decoration: none !important;
  transition: background-color .2s; white-space: nowrap;
}
html.pulse .pl-tab:hover { background: var(--pl-hover); }
html.pulse .pl-tab > span { position: relative; display: flex; align-items: center; height: 100%; }
html.pulse .pl-tab.is-active { color: var(--pl-text) !important; font-weight: 700; }
html.pulse .pl-tab.is-active > span::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; border-radius: 9999px; background: var(--pl-brand);
}

html.pulse .pl-filters { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--pl-border); }
html.pulse .pl-filters:not(:has(*:not(.grow))) { display: none; }
html.pulse .pl-section-title { margin: 0; padding: 12px 16px; font-size: 20px; font-weight: 800; color: var(--pl-text); }
html.pulse .pl-pad { padding: 16px; }
html.pulse .pl-empty { padding: 32px 16px; }

/* =========================================================
   7. Timeline column content
   ========================================================= */
html.pulse .pl-main.is-column .pl-col,
html.pulse .pl-main.is-column .pl-feed { display: block; }
/* blocks that sit directly in the column get the 16px gutter X uses */
html.pulse .pl-col > .alert,
html.pulse .pl-col > .js_stories,
html.pulse .pl-col > .pl-promoted,
html.pulse .pl-col > .card,
html.pulse .pl-col > .grid,
html.pulse .pl-col > div.flex,
html.pulse .pl-col > .mt-3,
html.pulse .pl-col > .rounded-box { margin: 12px 16px; }
html.pulse .pl-col > .js_stories { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--pl-border); }
html.pulse .pl-promoted { display: flex; flex-direction: column; gap: 16px; }

/* posts filter (profile / groups) */
html.pulse .pl-main.is-column .posts-filter { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--pl-border); }

/* the stream: no gaps, rows divided by borders */
html.pulse .js_posts_stream > ul,
html.pulse .pl-post-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
html.pulse .js_posts_stream > ul > li { list-style: none; }
html.pulse .js_posts_stream > ul > li.rounded-box { border-radius: 0; background: transparent; padding: 32px 16px; }
html.pulse .pl-main.is-wide .js_posts_stream > ul:has(> li > .pl-post) {
  border: 1px solid var(--pl-border); border-radius: 16px;
}
html.pulse .pl-main.is-wide .js_posts_stream > ul > li:last-child > .pl-post { border-bottom: 0; }

html.pulse .js_see-more {
  margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--pl-border) !important;
  border-radius: 0 !important; background: transparent !important;
  padding: 16px !important; color: var(--pl-brand) !important; font-weight: 400 !important; font-size: 15px !important;
}
html.pulse .js_see-more:hover { background: var(--pl-hover-soft) !important; }
html.pulse .js_posts_loader { border-radius: 0; background: transparent; border-bottom: 1px solid var(--pl-border); }
html.pulse .posts-staging-btn { background: var(--pl-brand); }
@media (min-width: 768px) {
  html.pulse .posts-staging-btn { position: sticky; top: 64px; bottom: auto; display: block; margin: 0 auto; transform: none; inset-inline-start: auto; }
  html.pulse .posts-staging-btn.hidden { display: none; }
}

/* =========================================================
   8. Composer
   ========================================================= */
html.pulse .pl-composer {
  display: flex; gap: 12px; padding: 12px 16px 8px;
  border-bottom: 1px solid var(--pl-border); background: transparent;
}
html.pulse .pl-main.is-wide .pl-composer { border: 1px solid var(--pl-border); border-radius: 16px; margin-bottom: 16px; }
html.pulse .pl-composer-avatar { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; margin-top: 4px; }
html.pulse .pl-composer-main { flex: 1; min-width: 0; }
html.pulse .pl-composer-input {
  display: flex; align-items: center; width: 100%; min-height: 52px; padding: 8px 0;
  background: transparent; border: 0; cursor: text; text-align: start;
  font-size: 20px; line-height: 24px; color: var(--pl-muted);
}
html.pulse .pl-composer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--pl-border);
}
html.pulse .pl-composer-tools { display: flex; align-items: center; margin-inline-start: -8px; }
html.pulse .pl-tool {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 9999px; color: var(--pl-brand) !important; background: none; border: 0; cursor: pointer;
  transition: background-color .2s;
}
html.pulse .pl-tool:hover { background: var(--pl-brand-soft); }
html.pulse .pl-composer .pl-pill.is-brand { background: var(--pl-text); color: var(--pl-bg) !important; }
html.pulse .pl-composer .pl-pill.is-brand:hover { opacity: .88; }

/* =========================================================
   9. Posts
   ========================================================= */
html.pulse .pl-post {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pl-border) !important;
  transition: background-color .2s;
  font-size: 15px;
}
html.pulse .pl-post:hover { background: var(--pl-hover-soft) !important; }
html.pulse .pl-post.boosted { background: transparent !important; }
html.pulse .pl-post.pending { box-shadow: inset 3px 0 0 var(--color-warning) !important; }

/* avatar column: content is indented 68px like X */
html.pulse .pl-post > .post-body { padding-inline-start: 52px; }
html.pulse .pl-post > .post-body > .post-header { position: relative; padding: 12px 16px 2px; gap: 8px; }
html.pulse .pl-post > .post-body > .post-header > .post-avatar { position: absolute; inset-inline-start: -36px; top: 12px; }
html.pulse .pl-post > .post-body > .post-header .post-avatar-picture,
html.pulse .pl-post > .post-body > .post-header .post-avatar-anonymous { width: 40px; height: 40px; }
html.pulse .pl-post .post-header .post-meta { padding-top: 0; font-size: 15px; line-height: 20px; }

/* name · @handle · time */
html.pulse .pl-line1 { color: var(--pl-muted); }
html.pulse .pl-line1 a { color: var(--pl-text); font-weight: 700; }
html.pulse .pl-line1 a:hover { text-decoration: underline; }
html.pulse .pl-line1 .post-author { font-size: 15px; }
html.pulse .pl-meta { color: var(--pl-muted); font-weight: 400; white-space: nowrap; }
html.pulse .pl-meta .pl-handle { margin-inline-start: 2px; }
html.pulse .pl-meta .pl-sep { margin: 0 4px; }
html.pulse .pl-line1 a.pl-time { color: var(--pl-muted); font-weight: 400; }
html.pulse .pl-post .post-time { margin-top: 0; font-size: 13px; line-height: 16px; color: var(--pl-muted); }
html.pulse .pl-post .post-time:not(:has(> *)) { display: none; }
html.pulse .pl-post .post-time > span[aria-hidden]:first-child { display: none; }
html.pulse .pl-context { color: var(--pl-muted); }
html.pulse .pl-context a { color: var(--pl-text) !important; font-weight: 600; }
html.pulse .pl-context a:hover { text-decoration: underline; }

/* text + media */
html.pulse .pl-post .post-text { font-size: 15px; line-height: 20px; color: var(--pl-text); }
html.pulse .pl-post .post-text a { color: var(--pl-brand); }
html.pulse .pl-post > .post-body > :not(.post-header):not(.pl-actions) { margin-top: 2px; }

/* the source label (Popular / Suggested) above a post */
html.pulse .js_posts_stream li > div.mb-2:first-child { margin: 0; padding: 10px 16px 0 68px; font-size: 13px; font-weight: 700; color: var(--pl-muted); }

/* badges in the corner of pinned / promoted / pending posts */
html.pulse .pl-post .pin-icon,
html.pulse .pl-post .boosted-icon,
html.pulse .pl-post .pending-icon { position: static; transform: none; margin: 10px 16px 0 68px; width: max-content; background: transparent; color: var(--pl-muted); box-shadow: none; padding: 0; font-size: 13px; font-weight: 700; }

/* action bar */
html.pulse .pl-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  margin: 4px 0 0; padding: 0 16px 8px 0; max-width: 100%;
  border: 0; color: var(--pl-muted);
}
html.pulse .pl-act {
  display: inline-flex; align-items: center; flex: 1 1 0; min-width: 0;
  color: var(--pl-muted) !important; background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 13px; line-height: 16px; text-decoration: none !important;
  transition: color .2s;
}
html.pulse .pl-act-group { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
html.pulse .pl-act-group > .pl-act { flex: 0 0 auto; }
html.pulse .pl-act-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; margin: 0 -6px 0 -8px; border-radius: 9999px;
  transition: background-color .2s, color .2s;
}
html.pulse .pl-act-count { padding: 0 12px 0 10px; font-variant-numeric: tabular-nums; }
html.pulse .pl-act.is-off { opacity: .5; cursor: default; }
html.pulse .pl-act.is-save { width: 34px; height: 34px; justify-content: center; border-radius: 9999px; transition: background-color .2s, color .2s; }

html.pulse .pl-act.is-reply:not(.is-off):hover,
html.pulse .pl-act.is-views:hover,
html.pulse .pl-act.is-plain:hover { color: var(--pl-brand) !important; }
html.pulse .pl-act.is-reply:not(.is-off):hover .pl-act-ico,
html.pulse .pl-act.is-views:hover .pl-act-ico,
html.pulse .pl-act.is-plain:hover .pl-act-ico,
html.pulse .pl-act.is-save:hover { background: var(--pl-brand-soft); color: var(--pl-brand) !important; }
html.pulse .pl-act.is-repost:not(.is-off):hover { color: var(--pl-repost) !important; }
html.pulse .pl-act.is-repost:not(.is-off):hover .pl-act-ico { background: var(--pl-repost-soft); }
html.pulse .pl-act.is-like:hover { color: var(--pl-like) !important; }
html.pulse .pl-act.is-like:hover .pl-act-ico { background: var(--pl-like-soft); }
html.pulse .pl-act.is-save.js_unsave-post { color: var(--pl-brand) !important; }
html.pulse .pl-act.is-save.js_unsave-post svg path { fill: currentColor; }

/* react: the "mood" glyph renders as a heart (iconify masks read --svg) */
html.pulse .pl-actions .icon-\[tabler--mood-smile\] {
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
  width: 19px; height: 19px;
}
html.pulse .pl-react { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
html.pulse .pl-react .reaction-btn { display: inline-flex; align-items: center; justify-content: center; }
html.pulse .pl-react-name { display: none; }
html.pulse .pl-act.is-like .js_post-reactions-stats { display: inline-flex; min-width: 0; }
html.pulse .pl-act.is-like .reactions-stats { margin: 0; padding: 0 12px 0 10px; background: none !important; }
html.pulse .pl-act.is-like .reactions-stats-item { display: none; }
html.pulse .pl-act.is-like .reactions-stats > span { margin: 0; color: inherit !important; font-size: 13px; }
html.pulse .pl-act.is-like:has(.js_unreact-post) { color: var(--pl-like) !important; }

/* comments under a post */
html.pulse .pl-post > .post-footer { border-top: 0; padding-inline: 68px 16px; }
html.pulse .pl-post > .post-footer:not(.hidden) { padding-bottom: 8px; }

/* single post page: bigger text like X's detail view */
html.pulse .pl-post-page .pl-post:hover { background: transparent !important; }
html.pulse .pl-post-page .pl-post .post-text { font-size: 17px; line-height: 24px; }

/* =========================================================
   10. Profile
   ========================================================= */
html.pulse .pl-profile { border-radius: 0; padding-bottom: 0; background: transparent; }
html.pulse .pl-profile .profile-cover-wrapper { aspect-ratio: 3 / 1; border-radius: 0; }
html.pulse .pl-profile-body { display: block; position: relative; padding: 12px 16px 0; }
html.pulse .pl-profile .profile-avatar-wrapper {
  width: clamp(80px, 25%, 134px); height: auto; aspect-ratio: 1 / 1;
  margin-top: calc(clamp(80px, 25%, 134px) / -2 - 12px);
  border-radius: 9999px; corner-shape: round;
  box-shadow: 0 0 0 4px var(--pl-bg); --tw-ring-shadow: 0 0 #0000; background: var(--pl-bg-2);
}
html.pulse .pl-profile .profile-avatar-wrapper img,
html.pulse .pl-profile .profile-avatar-wrapper > .dropdown,
html.pulse .pl-profile .profile-avatar-wrapper > .dropdown > button,
html.pulse .pl-profile .profile-avatar-wrapper > span { border-radius: 9999px; corner-shape: round; }
html.pulse .pl-profile-info { display: flex; flex-direction: column; padding-top: 12px; }
html.pulse .pl-profile-info > * { order: 6; margin-top: 12px; }
html.pulse .pl-profile-info > :first-child { order: 0; margin-top: 0; }
html.pulse .pl-profile-info > .pl-profile-bio { order: 1; }
html.pulse .pl-profile-info > .pl-profile-meta { order: 2; }
html.pulse .pl-profile-info > .pl-profile-stats { order: 3; }
html.pulse #profile-name { font-size: 20px; line-height: 24px; font-weight: 800; letter-spacing: -.01em; gap: 4px; }
html.pulse .pl-profile-info > :first-child > div { margin-top: 0; font-size: 15px; color: var(--pl-muted); }
html.pulse .pl-profile-bio { font-size: 15px; line-height: 20px; color: var(--pl-text); overflow-wrap: anywhere; }
html.pulse .pl-profile-meta { gap: 4px 12px; font-size: 15px; color: var(--pl-muted); }
html.pulse .pl-profile-meta:empty { display: none; }
html.pulse .pl-profile-meta a { color: var(--pl-brand) !important; }
html.pulse .pl-profile-stats { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
html.pulse .pl-profile-stats a { color: var(--pl-muted) !important; text-decoration: none !important; }
html.pulse .pl-profile-stats a:hover { text-decoration: underline !important; text-decoration-color: var(--pl-text) !important; }
html.pulse .pl-profile-stats b { color: var(--pl-text); font-weight: 700; }

/* the buttons sit on the right, under the banner */
html.pulse .pl-profile .profile-buttons-wrapper {
  position: absolute; top: 12px; inset-inline-end: 16px; margin: 0; width: auto;
  flex-wrap: nowrap; justify-content: flex-end; gap: 8px;
}
html.pulse .pl-profile .profile-buttons-wrapper > * { flex: 0 0 auto !important; }
html.pulse .pl-profile .profile-buttons-wrapper .heroui.button { height: 36px; min-height: 36px; border-radius: 9999px; font-size: 15px; }
html.pulse .pl-profile .profile-buttons-wrapper .heroui.button--tertiary {
  --button-bg: transparent; --button-bg-hover: var(--pl-hover); --button-bg-pressed: var(--pl-hover); --button-fg: var(--pl-text);
  border: 1px solid var(--pl-border-strong);
}
html.pulse .pl-profile .profile-buttons-wrapper .heroui.button--primary {
  --button-bg: var(--pl-text); --button-bg-hover: var(--pl-text); --button-bg-pressed: var(--pl-text); --button-fg: var(--pl-bg);
}
html.pulse .pl-profile .profile-buttons-wrapper .heroui.button.button--icon-only { width: 36px; padding: 0; }
@media (max-width: 499.98px) {
  html.pulse .pl-profile .profile-buttons-wrapper .heroui.button:not(.button--icon-only) > [class*="icon-["] { display: none; }
  html.pulse .pl-profile .profile-buttons-wrapper .heroui.button { padding: 0 12px; font-size: 14px; }
}

/* profile tabs */
html.pulse .pl-ptabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--pl-border); margin-top: 4px; }
html.pulse .pl-ptabs-scroll { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
html.pulse .pl-ptabs-scroll::-webkit-scrollbar { display: none; }
html.pulse .pl-ptabs-list { display: flex; min-width: 100%; width: max-content; margin: 0; padding: 0; list-style: none; }
html.pulse .pl-ptab-item { flex: 1 0 auto; list-style: none; }
html.pulse .pl-ptab {
  display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 53px; padding: 0 16px;
  color: var(--pl-muted) !important; font-size: 15px; font-weight: 500; background: none; border: 0; cursor: pointer;
  text-decoration: none !important; white-space: nowrap; transition: background-color .2s;
}
html.pulse .pl-ptab:hover { background: var(--pl-hover); }
html.pulse .pl-ptab-ico { display: none; }
html.pulse .pl-ptab-label { position: relative; display: flex; align-items: center; height: 100%; }
html.pulse .pl-ptab.is-active { color: var(--pl-text) !important; font-weight: 700; }
html.pulse .pl-ptab.is-active .pl-ptab-label::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; border-radius: 9999px; background: var(--pl-brand); }
html.pulse .pl-ptabs-more { flex-shrink: 0; }
html.pulse .pl-ptabs-menu { list-style: none; margin: 0; padding: 0; }
html.pulse .pl-ptabs-menu .pl-ptab { justify-content: flex-start; height: auto; padding: 12px 16px; gap: 12px; font-weight: 600; color: var(--pl-text) !important; }
html.pulse .pl-ptabs-menu .pl-ptab-ico { display: inline-block; width: 20px; height: 20px; }
html.pulse .pl-ptabs-menu .pl-ptab.is-active .pl-ptab-label::after { display: none; }
html.pulse .pl-ptabs-menu .pl-ptab.is-active { color: var(--pl-brand) !important; }

/* about (collapsed by default) + center */
html.pulse .pl-profile-grid { display: block; }
html.pulse .pl-about-toggle { border-bottom: 1px solid var(--pl-border); border-radius: 0; background: transparent; padding: 14px 16px; font-size: 15px; }
html.pulse .pl-about-toggle:hover { background: var(--pl-hover-soft); }
html.pulse .pl-about-content > div { padding: 0 16px 16px; border-bottom: 1px solid var(--pl-border); }
html.pulse .pl-about div:has(> .profile-biography-text) { display: none; }
html.pulse .pl-profile-center > .rounded-3xl,
html.pulse .pl-profile-center > .card,
html.pulse .pl-profile-center > section { border-radius: 0; box-shadow: none; }

/* =========================================================
   11. Notifications, search
   ========================================================= */
html.pulse .pl-notif-bar { padding: 8px 16px; }
html.pulse .pl-notif-bar > span:first-child { display: none; }
html.pulse .pl-notif-bar h2 { font-size: 15px; font-weight: 700; }
html.pulse .pl-notif-list ul > li { transition: background-color .2s; }
html.pulse .pl-notif-list ul > li:hover { background: var(--pl-hover-soft); }
html.pulse .pl-notif-list .divide-y > * { border-color: var(--pl-border); }
html.pulse .pl-search-results .pl-cards-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 16px; list-style: none; }
@media (min-width: 560px) { html.pulse .pl-search-results .pl-cards-grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   12. Mobile chrome: topbar, bottom bar, compose button
   ========================================================= */
@media (max-width: 767.98px) {
  html.pulse .site-topbar {
    background: var(--pl-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-color: var(--pl-border);
  }
  html.pulse .site-topbar > div { height: var(--pl-topbar-h); }
  html.pulse .site-topbar .site-topbar-icon { --button-bg: transparent; --button-bg-hover: var(--pl-hover); --button-bg-pressed: var(--pl-hover); }
  html.pulse .js_site-bottom-bar {
    inset-inline: 0; bottom: 0; height: calc(53px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 0; border-width: 1px 0 0; border-color: var(--pl-border);
    background: var(--pl-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  html.pulse .js_site-bottom-bar .bg-primary\/12 { background: transparent; }
  html.pulse .js_site-bottom-bar .text-primary { color: var(--pl-text); }
}
html.pulse .pl-fab {
  position: fixed; z-index: 34; inset-inline-end: 16px; bottom: calc(53px + 16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 9999px; border: 0; background: var(--pl-brand); color: #fff; cursor: pointer;
  box-shadow: rgba(101, 119, 134, .2) 0 0 15px, rgba(101, 119, 134, .15) 0 0 3px 1px;
  transition: background-color .2s, transform .2s;
}
html.pulse .pl-fab:hover { background: var(--pl-brand-hover); }
html.pulse .pl-fab:active { transform: scale(.96); }
@media (min-width: 768px) { html.pulse .pl-fab { display: none; } }

/* =========================================================
   13. Landing (logged-out home) + auth pages
   ========================================================= */
html.pulse .pl-pill.is-lg { min-height: 40px; font-size: 15px; }
html.pulse .pl-pill.is-brand-text { color: var(--pl-brand) !important; }
html.pulse .pl-pill.is-brand-text:hover { background: var(--pl-brand-soft); }

html.pulse .pl-landing { display: flex; flex-direction: column; min-height: 100dvh; background: var(--pl-bg); color: var(--pl-text); }
html.pulse .pl-landing-main { flex: 1; display: flex; flex-direction: column; }
html.pulse .pl-landing-art { display: none; }
html.pulse .pl-landing-panel { display: flex; flex-direction: column; padding: 20px 32px 32px; max-width: 600px; width: 100%; margin: 0 auto; }
html.pulse .pl-landing-mark-sm { width: 48px; height: 48px; border-radius: 12px; margin: 12px 0 40px; }
html.pulse .pl-landing-title {
  margin: 0 0 40px; font-size: clamp(40px, 9vw, 64px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--pl-text);
}
html.pulse .pl-landing-sub { margin: 0 0 32px; font-size: 31px; line-height: 36px; font-weight: 800; letter-spacing: -.01em; color: var(--pl-text); }
html.pulse .pl-landing-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 300px; }
html.pulse .pl-landing-actions .divider { margin: 4px 0; color: var(--pl-text); font-size: 15px; }
html.pulse .pl-landing-actions .divider::before,
html.pulse .pl-landing-actions .divider::after { background-color: var(--pl-border); height: 1px; }
html.pulse .pl-landing-legal { margin: 2px 0 0; font-size: 11px; line-height: 14px; color: var(--pl-muted); }
html.pulse .pl-landing-legal a { color: var(--pl-brand) !important; }
html.pulse .pl-landing-legal a:hover { text-decoration: underline; }
html.pulse .pl-landing-have { margin: 40px 0 12px; font-size: 17px; line-height: 20px; font-weight: 700; color: var(--pl-text); }
html.pulse .pl-landing-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
html.pulse .pl-landing-footer { padding: 12px 16px 16px; }
html.pulse .pl-landing-footer > div { font-size: 13px; color: var(--pl-muted); }
html.pulse .pl-landing-footer > div > div > div,
html.pulse .pl-landing-footer ul { justify-content: center; }
html.pulse .pl-landing-footer a { color: var(--pl-muted) !important; }
html.pulse .pl-landing-footer a:hover { text-decoration: underline; }
@media (min-width: 1000px) {
  html.pulse .pl-landing-main { flex-direction: row; align-items: center; }
  html.pulse .pl-landing-art { display: flex; flex: 1 1 55%; align-items: center; justify-content: center; padding: 32px; min-height: 100%; }
  html.pulse .pl-landing-mark { width: min(380px, 70%); height: auto; border-radius: 22%; }
  html.pulse .pl-landing-logo { max-width: min(420px, 80%); max-height: 50vh; object-fit: contain; }
  html.pulse .pl-landing-panel { flex: 1 1 45%; margin: 0; padding: 16px; max-width: 760px; }
  html.pulse .pl-landing-mark-sm { display: none; }
  html.pulse .pl-landing-title { font-size: 64px; line-height: 84px; margin: 48px 0; }
}
html.pulse .pl-logo-dark { display: none; }
html.pulse[data-theme=nova-dark] .pl-logo-dark { display: block; }
html.pulse[data-theme=nova-dark] .pl-logo-light { display: none; }

/* sign in / sign up / reset: X's centred panel */
html.pulse body.auth-body { background: var(--pl-bg); }
html.pulse .pl-auth { display: flex; justify-content: center; align-items: flex-start; min-height: calc(100dvh - 5rem); padding: 32px 16px; }
@media (min-width: 640px) { html.pulse .pl-auth { align-items: center; } }
html.pulse .pl-auth-card {
  position: relative; width: 100%; max-width: 600px !important;
  padding: 16px 32px 48px; border-radius: 16px; background: var(--pl-bg);
}
@media (min-width: 640px) {
  html.pulse .pl-auth-card { border: 1px solid var(--pl-border); box-shadow: var(--pl-menu-shadow); padding: 16px 80px 48px; }
}
html.pulse .pl-auth-close {
  position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9999px; color: var(--pl-text) !important; transition: background-color .2s;
}
html.pulse .pl-auth-close:hover { background: var(--pl-hover); }
html.pulse .pl-auth-mark { display: flex; justify-content: center; margin: 0 auto 24px; width: 40px; }
html.pulse .pl-auth-mark img { width: 40px; height: 40px; border-radius: 10px; }
html.pulse .pl-auth-body .text-center { text-align: start; }
html.pulse .pl-auth-body h2 { font-size: 31px; line-height: 36px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
html.pulse .pl-auth-body h2 + p { color: var(--pl-muted); font-size: 15px; }
html.pulse .pl-auth-body .input,
html.pulse .pl-auth-body .select {
  min-height: 56px; border-radius: 4px; border: 1px solid var(--pl-border-strong); background: transparent; box-shadow: none; font-size: 17px;
}
html.pulse .pl-auth-body .input:focus,
html.pulse .pl-auth-body .input:focus-within,
html.pulse .pl-auth-body .select:focus { border-color: var(--pl-brand); outline: 1px solid var(--pl-brand); outline-offset: 0; }
html.pulse .pl-auth-body .input-floating-label { color: var(--pl-muted); }
html.pulse .pl-auth-body .input-floating:focus-within .input-floating-label { color: var(--pl-brand); }
html.pulse .pl-auth-body button[type=submit].heroui.button {
  --button-bg: var(--pl-text); --button-bg-hover: var(--pl-text); --button-bg-pressed: var(--pl-text); --button-fg: var(--pl-bg);
  min-height: 52px; font-size: 17px;
}
html.pulse .pl-auth-body button[type=submit].heroui.button:hover { opacity: .88; }
html.pulse .pl-auth-body .link-primary { color: var(--pl-brand); }
html.pulse .pl-auth-body .heroui.button--tertiary { border-radius: 9999px; border-color: var(--pl-border-strong); }
html.pulse .pl-auth-title { margin: 20px 0 28px; font-size: 31px; line-height: 36px; font-weight: 800; letter-spacing: -.01em; color: var(--pl-text); }
html.pulse .pl-auth-body form { margin-top: 0; padding-top: 10px; }
html.pulse .pl-auth-switch { margin-top: 32px; font-size: 15px; color: var(--pl-muted); }
html.pulse .pl-auth-switch a { color: var(--pl-brand) !important; }
html.pulse .pl-auth-switch a:hover { text-decoration: underline; }

/* the landing's sign in / sign up dialog */
html.pulse .pl-auth-dialog {
  position: fixed; inset: 0; margin: auto; height: fit-content;
  padding: 0; border: 0; background: transparent; color: var(--pl-text);
  width: calc(100% - 32px); max-width: 600px; max-height: 90vh; overflow: visible;
}
html.pulse .pl-auth-dialog::backdrop { background: rgba(91, 112, 131, .4); }
html.pulse[data-theme=nova-dark] .pl-auth-dialog::backdrop { background: rgba(91, 112, 131, .4); }
html.pulse .pl-auth-dialog .pl-auth-card { max-height: 90vh; overflow-y: auto; border: 0; box-shadow: none; }
@media (max-width: 639.98px) {
  html.pulse .pl-auth-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; }
  html.pulse .pl-auth-dialog .pl-auth-card { min-height: 100%; max-height: 100%; border-radius: 0; }
}

/* =========================================================
   14. Small polish
   ========================================================= */
html.pulse .modal-content, html.pulse .modal .card { border-radius: 16px; }
html.pulse .tooltip-content, html.pulse .tooltip-body { border-radius: 6px; }
html.pulse .verified-badge svg, html.pulse .verified-badge img { color: var(--pl-brand); }
@media (prefers-reduced-motion: reduce) {
  html.pulse * { transition: none !important; }
}
