/* public/style.css - text "Quiet Editorial Minimal" Design System */
/* Zero Categories · Zero Score Clutter · Refined Spacing · "text" Mobile Bottom Dock */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700&display=swap');

:root {
  /* Light Mode ("Alabaster") */
  --bg-canvas: #FFFFFF;
  --bg-surface: #F4F4F5;
  --bg-surface-subtle: #FAFAFB;
  --bg-surface-hover: #E4E4E7;
  --bg-glass: rgba(255, 255, 255, 0.86);
  --bg-dock-float: rgba(255, 255, 255, 0.92);
  --text-primary: #09090B;
  --text-secondary: #52525B;
  --text-muted: #8E8E98;
  --border-subtle: #ECECEF;
  --border-glass: rgba(9, 9, 11, 0.08);
  --pill-active-bg: #09090B;
  --pill-active-fg: #FFFFFF;
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-pill: 9999px;
  --radius-card: 14px;

  /* Harmonized Editorial Font Scale */
  --fs-brand: 1.2rem;          /* 19.2px */
  --fs-nav: 0.90625rem;        /* 14.5px */
  --fs-tab: 0.8125rem;         /* 13px */
  --fs-pill: 0.8rem;           /* 12.8px */
  --fs-handle: 0.925rem;       /* 14.8px */
  --fs-meta: 0.78125rem;       /* 12.5px */
  --fs-post-short: 1.05rem;    /* 16.8px - subtle lift for short thoughts */
  --fs-post-regular: 0.96875rem; /* 15.5px - effortless long reading */
  --fs-reply-preview: 0.875rem; /* 14px */
  --fs-sidebar-title: 0.72rem; /* 11.5px */
  --fs-sidebar-item: 0.84375rem; /* 13.5px */
}

[data-theme="dark"] {
  /* Dark Mode ("Obsidian") */
  --bg-canvas: #09090B;
  --bg-surface: #141417;
  --bg-surface-subtle: #0E0E11;
  --bg-surface-hover: #202025;
  --bg-glass: rgba(9, 9, 11, 0.84);
  --bg-dock-float: rgba(18, 18, 21, 0.90);
  --text-primary: #F4F4F6;
  --text-secondary: #A1A1AA;
  --text-muted: #666672;
  --border-subtle: #19191D;
  --border-glass: rgba(255, 255, 255, 0.09);
  --pill-active-bg: #F4F4F6;
  --pill-active-fg: #09090B;
  --shadow-float: 0 14px 36px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overscroll-behavior-y: none;
  font-size: 16px;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
}

/* ==========================================================================
   3-Column Desktop Layout (190px Left | 600px Center | 290px Right)
   ========================================================================== */
.app-layout {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 600px) 290px;
  gap: 28px;
  padding: 0 20px;
  min-height: 100vh;
}

/* 1. Left Navigation Rail */
.sidebar-left {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-logo {
  font-size: var(--fs-brand);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0 12px;
  display: inline-block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 22px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-nav);
  font-weight: 500;
  transition: background 0.14s ease, color 0.14s ease;
  cursor: pointer;
}

.nav-link:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
}

.sidebar-footer-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-account-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-account-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.actor-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 8px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.theme-btn {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
}

.theme-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   2. Center Feed Column & Minimal Header
   ========================================================================== */
.feed-column {
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  min-height: 100vh;
  padding-bottom: 90px;
}

.floating-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 11px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-tabs,
.segmented-tabs {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3px;
  border-radius: var(--radius-pill);
}

.glass-tab,
.tab-pill {
  padding: 5px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-tab);
  font-weight: 500;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.glass-tab:hover,
.tab-pill:hover {
  color: var(--text-primary);
}

.glass-tab.active,
.tab-pill.active {
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
  font-weight: 600;
}

/* ==========================================================================
   3. Top-of-Feed Single-Row Expandable Composer
   ========================================================================== */
.expandable-composer {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

.composer-collapsed-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  cursor: text;
  transition: background 0.14s ease;
}

.composer-collapsed-bar:hover {
  background: var(--bg-surface-subtle);
}

.composer-collapsed-handle {
  font-size: var(--fs-handle);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.012em;
}

.composer-collapsed-prompt {
  flex: 1;
  font-size: 0.925rem;
  color: var(--text-muted);
  user-select: none;
}

.composer-collapsed-cta {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: var(--fs-pill);
  font-weight: 500;
  transition: all 0.14s ease;
}

.composer-collapsed-bar:hover .composer-collapsed-cta {
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
}

.composer-expanded-body {
  display: none;
  padding: 20px 24px 18px;
  background: var(--bg-surface-subtle);
  animation: expandComposer 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.expandable-composer.is-expanded .composer-collapsed-bar {
  display: none;
}

.expandable-composer.is-expanded .composer-expanded-body {
  display: block;
}

@keyframes expandComposer {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.premium-composer {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
}

.composer-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.composer-cancel-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.composer-cancel-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.optical-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  resize: none;
  overflow: hidden;
  transition: font-size 0.14s ease, line-height 0.14s ease;
  min-height: 68px;
}

.optical-textarea::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.optical-textarea.size-short {
  font-size: var(--fs-post-short);
  font-weight: 450;
  line-height: 1.56;
  letter-spacing: -0.012em;
}

.optical-textarea.size-medium,
.optical-textarea.size-long {
  font-size: var(--fs-post-regular);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.008em;
}

.emoji-toast {
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
  display: inline-block;
}

.composer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.composer-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ring-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.remaining-num {
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.progress-ring {
  transform: rotate(-90deg);
}

.ring-track {
  stroke: var(--border-subtle);
}

.ring-fill {
  stroke: var(--text-primary);
  transition: stroke-dashoffset 0.12s ease;
}

.btn-primary,
.btn-publish {
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.14s ease, transform 0.1s ease;
}

.btn-primary:disabled,
.btn-publish:disabled {
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: default;
  opacity: 0.55;
}

/* ==========================================================================
   4. Post Cards (Refined Editorial Spacing · 2 Action Pills Only)
   ========================================================================= */
.fyp-card,
.post-card {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.12s ease;
}

.fyp-card:hover,
.post-card:hover {
  background: rgba(128, 128, 128, 0.015);
}

/* 1-Line Clean Header (@username                       23h) */
.fyp-author-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.fyp-author-meta-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.author-handle {
  font-size: var(--fs-handle); /* 14.8px */
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.014em;
  cursor: pointer;
}

.author-handle:hover {
  text-decoration: underline;
}

.meta-dot {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.fyp-reason-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.post-time {
  font-size: var(--fs-meta); /* 12.5px */
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Harmonized 2-Tier Post Body Typography */
.post-tier-short,
.post-body-short {
  font-size: var(--fs-post-short); /* 16.8px */
  font-weight: 450;
  line-height: 1.58;
  letter-spacing: -0.013em;
  color: var(--text-primary);
  margin-bottom: 16px;
  white-space: pre-line;
  word-wrap: break-word;
  text-indent: 0;
  cursor: pointer;
}

.post-tier-medium,
.post-tier-long,
.post-body-regular {
  font-size: var(--fs-post-regular); /* 15.5px */
  font-weight: 400;
  line-height: 1.66;
  letter-spacing: -0.008em;
  color: var(--text-primary);
  margin-bottom: 16px;
  white-space: pre-line;
  word-wrap: break-word;
  text-indent: 0;
  cursor: pointer;
}

/* Connected Top-Reply Preview Spine */
.top-reply-preview {
  display: flex;
  gap: 12px;
  margin: -2px 0 16px 2px;
  padding: 2px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.reply-spine-line {
  width: 2px;
  background: var(--border-subtle);
  border-radius: 2px;
  flex-shrink: 0;
}

.reply-preview-box {
  font-size: var(--fs-reply-preview); /* 14px */
  color: var(--text-secondary);
  line-height: 1.5;
}

.reply-preview-author {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 6px;
}

/* 2-Pill Action Row (125 Likes | 37 Replies) */
.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: none;
  font-family: inherit;
  font-size: var(--fs-pill); /* 12.8px */
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, transform 0.1s ease;
  user-select: none;
  white-space: nowrap;
}

.action-pill:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.action-pill:active {
  transform: scale(0.96);
}

.action-pill.liked {
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
  font-weight: 600;
}

/* ==========================================================================
   5. Right Sidebar (Search + Rising Discussions + Manifesto)
   ========================================================================== */
.sidebar-right {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar-right::-webkit-scrollbar {
  display: none;
}

.sidebar-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 32px 8px 14px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.sidebar-search-input::placeholder {
  color: var(--text-muted);
}

.sidebar-search-input:focus {
  background: var(--bg-canvas);
  border-color: var(--text-secondary);
}

.search-kbd {
  position: absolute;
  right: 11px;
  font-size: 0.68rem;
  font-family: inherit;
  color: var(--text-muted);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1px 5px;
  pointer-events: none;
}

.surface-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 16px;
}

.surface-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.surface-title {
  font-size: var(--fs-sidebar-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--text-muted);
}

.rising-list {
  display: flex;
  flex-direction: column;
}

.rising-item {
  text-decoration: none;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity 0.14s ease;
}

.rising-item:first-child {
  padding-top: 2px;
}

.rising-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rising-item:hover {
  opacity: 0.8;
}

.rising-content {
  font-size: var(--fs-sidebar-item); /* 13.5px */
  color: var(--text-primary);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.rising-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.sidebar-manifesto-box {
  padding: 4px 6px;
}

.manifesto-title {
  font-size: var(--fs-sidebar-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.manifesto-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.manifesto-shortcuts {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.manifesto-shortcuts kbd {
  font-family: inherit;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   6. Profile, Replies, Likes Views & Modals
   ========================================================================== */
.profile-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.profile-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-bio {
  color: var(--text-secondary);
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.profile-meta-counts {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.profile-meta-counts strong {
  color: var(--text-primary);
}

.view-sub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-sub-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.reply-context-spine {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.spine-line-col {
  width: 16px;
  display: flex;
  justify-content: center;
}

.spine-line {
  width: 2px;
  background: var(--border-subtle);
  height: 100%;
}

.reply-parent-preview {
  flex: 1;
  padding-bottom: 10px;
}

.reply-parent-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.5;
}

.liker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.liker-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.liker-handle {
  font-size: var(--fs-handle);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.liker-bio {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.liker-time {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cursor-load-wrap {
  padding: 22px;
  text-align: center;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 9, 11, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}

.modal-content {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-float);
}

.google-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

.onboarding-card {
  padding: 26px !important;
}

.onboarding-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.onboarding-subtitle {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.onboarding-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.onboarding-label {
  font-size: 0.8rem;
  font-weight: 600;
}

.handle-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
}

.onboarding-input,
.onboarding-input-regular {
  flex: 1;
  background: var(--bg-surface);
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
}

.onboarding-input-regular {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   7. Mobile Layout: Clean Top Switcher + Bottom Dock with "text" Wordmark
   ========================================================================== */
.mobile-floating-dock {
  display: none;
}

@media (max-width: 1040px) {
  .app-layout {
    display: block;
    max-width: 640px;
    padding: 0;
  }

  .sidebar-left,
  .sidebar-right {
    display: none;
  }

  .feed-column {
    border: none;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .floating-header {
    padding: 10px 16px;
  }

  .composer-collapsed-bar {
    padding: 14px 18px;
  }

  .composer-expanded-body,
  .premium-composer {
    padding: 18px;
  }

  .fyp-card,
  .post-card {
    padding: 20px 18px;
  }

  /* Refined Single-Line Floating Mobile Bottom Bar with "text" Brand */
  .mobile-floating-dock {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    border-radius: var(--radius-pill);
    background: var(--bg-dock-float);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--shadow-float);
    white-space: nowrap;
  }

  .dock-brand {
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.14s ease;
  }

  .dock-brand.active {
    background: var(--bg-surface-hover);
  }

  .dock-item {
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.14s ease;
  }

  .dock-item.active {
    color: var(--text-primary);
    font-weight: 600;
    background: var(--bg-surface-hover);
  }

  .dock-write-btn {
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--pill-active-bg);
    color: var(--pill-active-fg);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   Zero-Email 12-Word Cryptographic Identity Modal & Recovery Grid Styles
   ========================================================================== */

.identity-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.identity-active-handle {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.key-status-dot {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.recovery-words-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
}

.recovery-word-cell {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.recovery-word-num {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.onboarding-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.5;
  resize: none;
}

.onboarding-textarea:focus {
  border-color: var(--text-primary);
  background: var(--bg-canvas);
}

.onboarding-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.handle-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.modal-close-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* ==========================================================================
   Quiet `···` Post Menu, Clickable @Mentions, Pinned Thoughts & Search Banner
   ========================================================================== */

.fyp-author-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.post-menu-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.12s ease, color 0.12s ease;
}

.post-menu-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.post-menu-dropdown {
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 35;
  min-width: 175px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-menu-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 7px 11px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.12s ease;
}

.post-menu-item:hover {
  background: var(--bg-surface);
}

.post-menu-item.danger {
  color: #dc2626;
}

/* Clickable Inline @Mentions */
.inline-mention {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

.inline-mention:hover {
  text-decoration: underline;
}

/* Pinned Defining Thoughts Box */
.pinned-thoughts-box {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.pinned-thought-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.5;
}

.pinned-thought-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pinned-thought-row:hover {
  opacity: 0.8;
}

.search-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

@media (max-width: 1040px) {
  #mobileThemeBtn {
    display: inline-flex !important;
  }
}
