/**
 * Investor Q&A page — visual polish only (local-ui-explore).
 * Scoped to .gmail-shell so join/staff shells stay unchanged.
 * No functional changes.
 */

/* ── Atmosphere — very quiet page wash (left glow was too strong) ── */
.gmail-shell {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(90, 120, 180, 0.04), transparent 58%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(180, 140, 100, 0.025), transparent 52%),
    radial-gradient(ellipse 45% 35% at 50% 100%, rgba(40, 60, 100, 0.03), transparent 50%),
    #050505;
}

.gmail-shell::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.18;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.gmail-shell > * {
  position: relative;
  z-index: 1;
}

/* ── Top bar ────────────────────────────────────────────── */
.gmail-shell .topbar.topbar-event {
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  padding: 0 28px;
  align-items: center;
  box-sizing: border-box;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.gmail-shell .topbar-event-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
}

.gmail-shell .topbar-event-meta {
  gap: 10px;
}

.gmail-shell .btn-share,
.gmail-shell .topbar .btn-share {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gmail-shell .btn-share:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Topbar monogram — identity only, not a control */
.gmail-shell .avatar.topbar-user-av,
.gmail-shell .topbar-user-av {
  width: 28px;
  height: 28px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: none;
  box-shadow: none;
  cursor: default;
  pointer-events: none; /* not clickable — no hover affordance */
  user-select: none;
  -webkit-user-select: none;
  transition: none;
}

/* ── Layout breathing room ──────────────────────────────── */
.gmail-shell .gmail-layout {
  gap: 0 20px;
  padding: 12px 48px 20px;
  background: transparent;
}

@media (min-width: 1200px) {
  .gmail-shell .gmail-layout {
    padding: 16px 80px 24px;
    gap: 0 28px;
  }
}

@media (min-width: 1600px) {
  .gmail-shell .gmail-layout {
    padding: 16px 120px 28px;
  }
}

/* ── Left rail ──────────────────────────────────────────── */
.gmail-shell .col-nav {
  padding: 4px 4px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gmail-shell .nav-compose {
  height: 44px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
  color: #0a0a0a;
  border: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.gmail-shell .nav-compose:hover:not(:disabled) {
  /* No translateY — parent overflow clips the lift */
  transform: none;
  filter: brightness(1.03);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 10px 24px rgba(0, 0, 0, 0.36);
}

.gmail-shell .nav-compose:disabled {
  opacity: 0.45;
  box-shadow: none;
}

.gmail-shell .nav-my-q-toggle {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gmail-shell .nav-my-q-toggle:hover,
.gmail-shell .nav-my-q-toggle.open {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f0f0f0;
}

.gmail-shell .nav-my-q-panel {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 12, 14, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.gmail-shell .nav-my-q-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.12s ease;
}

.gmail-shell .nav-my-q-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* About card — near-flat, barely-there wash */
.gmail-shell .nav-about {
  margin: 0;
  padding: 18px 16px 16px;
  border-radius: 14px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.018) 0%,
    rgba(255, 255, 255, 0.006) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.015) inset,
    0 8px 24px rgba(0, 0, 0, 0.16);
}

.gmail-shell .nav-about-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 12px;
}

.gmail-shell .nav-about-starts {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 8px;
}

.gmail-shell .nav-about-starts time {
  color: #fff;
  font-weight: 600;
}

.gmail-shell .nav-about-close {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.48);
  margin: 0 0 14px;
}

.gmail-shell .nav-about-stats {
  gap: 18px;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gmail-shell .nav-about-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.gmail-shell .nav-about-stat-key {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.gmail-shell .nav-about-copy {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.52);
}

/* ── Main list column ───────────────────────────────────── */
.gmail-shell .col-workspace.col-workspace-list-only,
.gmail-shell .col-workspace {
  min-width: 0;
}

.gmail-shell .col-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

/* Desktop: question list is the scroll container */
@media (min-width: 861px) {
  .gmail-shell .q-row-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
}

/* Mobile: no nested list scroll (page scrolls instead) */
@media (max-width: 860px) {
  .gmail-shell .col-list {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .gmail-shell .q-row-list {
    overflow: visible !important;
    overflow-y: visible !important;
    flex: none !important;
    max-height: none !important;
    scrollbar-width: none !important;
  }

  .gmail-shell .q-row-list::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }
}

/* Filter bar */
.gmail-shell .workspace-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
}

.gmail-shell .workspace-filter-bar.is-pinned {
  background: rgba(12, 12, 14, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.gmail-shell .bar-select,
.gmail-shell .bar-control.bar-select {
  height: 34px;
  padding: 0 28px 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.gmail-shell .bar-select:hover,
.gmail-shell .bar-select:focus {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.06);
  outline: none;
}

/* Question list */
.gmail-shell .q-row-list {
  padding: 6px 8px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.gmail-shell .q-row-list::-webkit-scrollbar {
  width: 8px;
}

.gmail-shell .q-row-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.gmail-shell .q-item {
  margin: 0 0 6px;
  padding: 18px 16px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.gmail-shell .q-item:hover {
  /* no flat fill — status gradients stay visible */
  border-color: rgba(255, 255, 255, 0.06);
  transform: none;
}

.gmail-shell .q-item.selected {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 28px rgba(0, 0, 0, 0.25);
  transform: none;
}

.gmail-shell .q-item.selected:hover {
  transform: none;
}

.gmail-shell .q-item-text {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  transform: none;
}

.gmail-shell .q-item:hover .q-item-text,
.gmail-shell .q-item.selected .q-item-text {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.01em;
  transform: none;
}

/* Meta row: status / topic / votes */
.gmail-shell .q-item-meta,
.gmail-shell .q-item-top,
.gmail-shell .q-item-head {
  gap: 8px;
  margin-bottom: 10px;
}

.gmail-shell .status-pill,
.gmail-shell .topic-pill,
.gmail-shell .q-item .status-pill,
.gmail-shell .q-item .topic-pill {
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
}

.gmail-shell .q-item.tone-answered .status-pill,
.gmail-shell .status-pill.answered {
  color: #9ec5f0;
  background: rgba(111, 177, 248, 0.12);
  border-color: rgba(111, 177, 248, 0.22);
}

.gmail-shell .q-item.tone-queued .status-pill,
.gmail-shell .status-pill.queued {
  color: #c4d4f0;
  background: rgba(62, 105, 172, 0.18);
  border-color: rgba(62, 105, 172, 0.28);
}

.gmail-shell .vote-btn-inline,
.gmail-shell .q-item .vote-btn-inline {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.gmail-shell .q-item .vote-btn-inline:hover:not(:disabled):not(.active) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.gmail-shell .q-item .vote-btn-inline.active {
  background: #f2f2f2;
  border-color: #f2f2f2;
  color: #0a0a0a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.gmail-shell .q-item-footer,
.gmail-shell .q-item-author {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.02em;
}

/* Empty state */
.gmail-shell .list-empty {
  padding: 64px 28px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.gmail-shell .list-empty p {
  max-width: 22em;
  margin: 0 auto;
  line-height: 1.55;
}

/* Footer */
.gmail-shell .nav-footer-row {
  padding: 8px 0 4px;
  opacity: 0.85;
}

.gmail-shell .nav-links a,
.gmail-shell .nav-link-btn,
.gmail-shell .built-with-grok {
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  transition: color 0.12s ease;
}

.gmail-shell .nav-links a:hover,
.gmail-shell .nav-link-btn:hover,
.gmail-shell .built-with-grok:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* No left status rails — status only via pills / subtle card wash */
.gmail-shell .q-item.tone-answered,
.gmail-shell .q-item.tone-queued,
.gmail-shell .q-item.tone-open,
.gmail-shell .q-item.tone-answered.selected,
.gmail-shell .q-item.tone-queued.selected,
.gmail-shell .q-item.tone-open.selected {
  box-shadow: none;
}

.gmail-shell .q-item.selected {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 36px rgba(0, 0, 0, 0.28);
}

/* Creative status washes — soft left-edge gradient, no rails */
/* Answered = cool blue */
.gmail-shell .q-item.tone-answered:not(.selected) {
  background: linear-gradient(
    105deg,
    rgba(120, 160, 220, 0.06) 0%,
    transparent 42%
  );
}

/* Submitted = neutral grey (not blue) */
.gmail-shell .q-item.tone-open:not(.selected),
.gmail-shell .q-item.tone-selected:not(.selected) {
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.035) 0%,
    rgba(180, 180, 185, 0.025) 28%,
    transparent 48%
  );
}

/* Selected for webcast (queued) = same cool blue as Answered */
.gmail-shell .q-item.tone-queued:not(.selected) {
  background: linear-gradient(
    105deg,
    rgba(120, 160, 220, 0.06) 0%,
    transparent 42%
  );
}

.gmail-shell .q-item.tone-answered.selected {
  background: linear-gradient(
    120deg,
    rgba(130, 170, 230, 0.1) 0%,
    rgba(255, 255, 255, 0.06) 55%
  );
}

.gmail-shell .q-item.tone-open.selected,
.gmail-shell .q-item.tone-selected.selected {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(160, 160, 165, 0.04) 40%,
    rgba(255, 255, 255, 0.04) 55%
  );
}

/* Queued selected = same blue family as Answered */
.gmail-shell .q-item.tone-queued.selected {
  background: linear-gradient(
    120deg,
    rgba(130, 170, 230, 0.1) 0%,
    rgba(255, 255, 255, 0.06) 55%
  );
}

/* Mobile: keep polish, tighter pad */
@media (max-width: 860px) {
  .gmail-shell .gmail-layout {
    padding: 8px 12px 16px;
    gap: 12px;
  }

  .gmail-shell .col-list {
    border-radius: 14px;
  }

  .gmail-shell .topbar.topbar-event {
    padding: 0 14px;
  }

  .gmail-shell .q-item {
    padding: 16px 14px;
  }

  .gmail-shell .q-item-text {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gmail-shell .nav-compose,
  .gmail-shell .q-item {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   EXPERIMENTAL — layout rhythm + motion (v3)
   ═══════════════════════════════════════════════════════════ */

:root {
  --qa-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --qa-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --qa-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --qa-stagger: 0.055s;
}

/* ── Keyframes ──────────────────────────────────────────── */
@keyframes qa-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes qa-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes qa-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes qa-topbar-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qa-compose-pulse {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.5) inset,
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55) inset,
      0 10px 32px rgba(255, 255, 255, 0.08),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

@keyframes qa-shimmer-line {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes qa-breathe {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.45; }
}

/* ── Page entrance choreography ─────────────────────────── */
.gmail-shell.qa-enter .topbar.topbar-event {
  animation: qa-topbar-in 0.7s var(--qa-ease-out) both;
}

.gmail-shell.qa-enter .col-nav {
  animation: qa-slide-in-left 0.75s var(--qa-ease-out) both;
  animation-delay: 0.08s;
}

.gmail-shell.qa-enter .col-list,
.gmail-shell.qa-enter .col-workspace {
  animation: qa-slide-in-right 0.8s var(--qa-ease-out) both;
  animation-delay: 0.14s;
}

.gmail-shell.qa-enter .nav-footer-row {
  animation: qa-rise 0.6s var(--qa-ease-out) both;
  animation-delay: 0.35s;
}

/* Override base item fades with richer rise */
.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item {
  animation: qa-rise 0.55s var(--qa-ease-out) both !important;
}

.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item:nth-child(1) { animation-delay: 0.28s !important; }
.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item:nth-child(2) { animation-delay: 0.34s !important; }
.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item:nth-child(3) { animation-delay: 0.4s !important; }
.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item:nth-child(4) { animation-delay: 0.46s !important; }
.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item:nth-child(5) { animation-delay: 0.52s !important; }
.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item:nth-child(6) { animation-delay: 0.58s !important; }
.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item:nth-child(7) { animation-delay: 0.64s !important; }
.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item:nth-child(8) { animation-delay: 0.7s !important; }
.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item:nth-child(9) { animation-delay: 0.76s !important; }
.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item:nth-child(10) { animation-delay: 0.82s !important; }
.gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item:nth-child(n + 11) { animation-delay: 0.88s !important; }

.gmail-shell.qa-enter .workspace-filter-bar {
  animation: qa-rise 0.5s var(--qa-ease-out) both;
  animation-delay: 0.22s;
}

.gmail-shell.qa-enter .nav-compose {
  animation: qa-rise 0.55s var(--qa-ease-spring) both, qa-compose-pulse 4s ease-in-out 1s infinite;
  animation-delay: 0.12s, 0.7s;
}

.gmail-shell.qa-enter .nav-about {
  animation: qa-rise 0.65s var(--qa-ease-out) both;
  animation-delay: 0.28s;
}

/* ── Experimental layout rhythm ─────────────────────────── */
/* Asymmetric column: list breathes wider; nav is tighter */
.gmail-shell .gmail-layout {
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 2.15fr);
  gap: 0 32px;
  padding: 20px 56px 28px;
}

@media (min-width: 1400px) {
  .gmail-shell .gmail-layout {
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 2.4fr);
    gap: 0 40px;
    padding: 24px 100px 32px;
  }
}

/* Vertical rhythm in left rail — uneven intentional gaps */
.gmail-shell .col-nav {
  gap: 0;
  padding-top: 8px;
}

.gmail-shell .nav-compose-stack {
  margin-bottom: 28px;
}

.gmail-shell .nav-compose-row {
  margin-bottom: 10px;
}

.gmail-shell .nav-about {
  margin-top: 8px;
  padding: 22px 18px 20px;
}

.gmail-shell .nav-about-label {
  margin-bottom: 16px;
}

.gmail-shell .nav-about-starts {
  margin-bottom: 12px;
  font-size: 14px;
}

.gmail-shell .nav-about-close {
  margin-bottom: 18px;
}

.gmail-shell .nav-about-stats {
  margin-bottom: 18px;
  padding-bottom: 18px;
}

/* List column: denser filter, airier cards */
.gmail-shell .col-list {
  border-radius: 20px;
}

.gmail-shell .workspace-filter-bar {
  padding: 14px 18px 12px;
  gap: 10px;
  position: relative;
}

/* Shimmer hairline under filter */
.gmail-shell .workspace-filter-bar::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: qa-shimmer-line 6s linear infinite;
  opacity: 0.7;
}

.gmail-shell .q-row-list {
  padding: 14px 12px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Alternating horizontal rhythm — slight indent cascade */
.gmail-shell .q-item {
  margin: 0 0 8px;
  padding: 20px 18px 18px;
  border-radius: 14px;
  transition:
    background 0.28s var(--qa-ease-soft),
    border-color 0.28s var(--qa-ease-soft),
    box-shadow 0.35s var(--qa-ease-out),
    transform 0.35s var(--qa-ease-out),
    opacity 0.25s ease;
}

.gmail-shell .q-row-list > .q-item:nth-child(odd) {
  margin-right: 6px;
}

.gmail-shell .q-row-list > .q-item:nth-child(even) {
  margin-left: 6px;
  margin-right: 0;
}

/* Hover: lift only (no scale — text looked enlarged). Don’t replace status gradients. */
.gmail-shell .q-item:hover {
  transform: translateY(-2px) scale(1);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 16px 40px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.gmail-shell .q-item.selected {
  transform: translateY(-1px);
  transition:
    background 0.3s var(--qa-ease-out),
    border-color 0.3s ease,
    box-shadow 0.4s var(--qa-ease-out),
    transform 0.4s var(--qa-ease-spring);
}

.gmail-shell .q-item.selected:hover {
  transform: translateY(-3px);
}

/* Meta pills: stagger micro-motion on hover */
.gmail-shell .q-item .status-pill,
.gmail-shell .q-item .topic-pill,
.gmail-shell .q-item .vote-btn-inline {
  transition:
    transform 0.25s var(--qa-ease-spring),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.25s ease;
}

.gmail-shell .q-item:hover .status-pill {
  transform: translateY(-1px);
}

.gmail-shell .q-item:hover .topic-pill {
  transform: translateY(-1px);
  transition-delay: 0.03s;
}

.gmail-shell .q-item:hover .vote-btn-inline {
  transform: translateY(-1px);
  transition-delay: 0.06s;
}

.gmail-shell .q-item-text {
  transition: color 0.25s ease;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  transform: none;
}

.gmail-shell .q-item:hover .q-item-text,
.gmail-shell .q-item.selected .q-item-text {
  font-size: 15px;
  letter-spacing: 0.01em;
  transform: none;
}

/* Keep lead cards same size as the rest — no type cascade */
.gmail-shell .q-row-list > .q-item:first-child .q-item-text,
.gmail-shell .q-row-list > .q-item:nth-child(2) .q-item-text,
.gmail-shell .q-row-list > .q-item:nth-child(3) .q-item-text {
  font-size: 15px;
  line-height: 1.55;
}

/* Ask button idle life */
.gmail-shell .nav-compose {
  transition:
    transform 0.25s var(--qa-ease-spring),
    box-shadow 0.3s ease,
    filter 0.2s ease;
}

.gmail-shell .nav-compose:hover:not(:disabled) {
  transform: none;
  filter: brightness(1.02);
}

.gmail-shell .nav-compose:active:not(:disabled) {
  transform: none;
  filter: brightness(0.98);
  transition-duration: 0.1s;
}

/* About card: slow ambient edge */
.gmail-shell .nav-about {
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.35s var(--qa-ease-out);
}

.gmail-shell .nav-about::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 30% 0%,
    rgba(255, 255, 255, 0.018),
    transparent 50%
  );
  animation: qa-breathe 7s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.4;
}

.gmail-shell .nav-about:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 20px 48px rgba(0, 0, 0, 0.35);
}

/* Filter selects: soft press */
.gmail-shell .bar-select {
  transition:
    transform 0.2s var(--qa-ease-spring),
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease;
}

.gmail-shell .bar-select:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gmail-shell .bar-select:active {
  transform: translateY(0) scale(0.98);
}

/* Topbar share micro-interaction */
.gmail-shell .btn-share {
  transition:
    transform 0.2s var(--qa-ease-spring),
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.gmail-shell .btn-share:hover {
  transform: translateY(-1px);
}

.gmail-shell .btn-share:active {
  transform: scale(0.96);
}

/* Footer fades in quieter */
.gmail-shell .nav-footer-row {
  transition: opacity 0.3s ease;
}

.gmail-shell .nav-footer-row:hover {
  opacity: 1;
}

/* List empty state motion */
.gmail-shell .list-empty {
  animation: qa-rise 0.7s var(--qa-ease-out) both;
  padding: 80px 32px;
}

/* Sticky filter: morph when pinned */
.gmail-shell .workspace-filter-bar.is-pinned {
  animation: qa-rise 0.35s var(--qa-ease-out) both;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Mobile rhythm */
@media (max-width: 860px) {
  .gmail-shell .gmail-layout {
    gap: 16px;
    padding: 10px 12px 20px;
  }

  .gmail-shell .q-row-list > .q-item:nth-child(odd),
  .gmail-shell .q-row-list > .q-item:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
  }

  .gmail-shell .q-item:hover {
    transform: none;
  }

  .gmail-shell .nav-compose-stack {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gmail-shell.qa-enter .topbar.topbar-event,
  .gmail-shell.qa-enter .col-nav,
  .gmail-shell.qa-enter .col-list,
  .gmail-shell.qa-enter .col-workspace,
  .gmail-shell.qa-enter .nav-footer-row,
  .gmail-shell.qa-enter .qa-enter-3 .q-row-list > .q-item,
  .gmail-shell.qa-enter .workspace-filter-bar,
  .gmail-shell.qa-enter .nav-compose,
  .gmail-shell.qa-enter .nav-about,
  .gmail-shell .workspace-filter-bar::after,
  .gmail-shell .nav-about::after {
    animation: none !important;
  }

  .gmail-shell .q-item,
  .gmail-shell .nav-compose,
  .gmail-shell .nav-about,
  .gmail-shell .bar-select,
  .gmail-shell .btn-share {
    transition: none !important;
  }

  .gmail-shell .q-item:hover,
  .gmail-shell .q-item.selected,
  .gmail-shell .q-item.selected:hover {
    transform: none !important;
  }
}
