:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #eef5ff;
  --ink-soft: #cdd9ef;
  --muted: #8ea2c4;
  --faint: #647796;
  --page: #061225;
  --surface: #0a1932;
  --surface-2: #0d2142;
  --panel: rgba(12, 28, 54, 0.88);
  --line: rgba(133, 170, 255, 0.14);
  --line-strong: rgba(133, 170, 255, 0.28);
  --screen: #020817;
  --screen-2: #08162d;
  --teal: #2f6bff;
  --teal-strong: #78a0ff;
  --teal-soft: rgba(47, 107, 255, 0.17);
  --amber: #5f8cff;
  --rose: #6a7dff;
  --sage: #7ab7ff;
  --violet: #96b7ff;
  --danger: #ff6f8a;
  --blue: #55a7ff;
  --accent-primary: #2f6bff;
  --accent-glow: #58a6ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --shadow-tight: 0 16px 48px rgba(0, 0, 0, 0.3);
  --workspace-bottom-dock-height: 104px;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
}

button,
input,
textarea,
select,
a {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

textarea {
  line-height: 1.35;
}

h1,
h2,
h3,
h4,
.brand,
.landing-brand {
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 850;
}

.hidden {
  display: none !important;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 160, 0.34);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(14, 165, 160, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 160, 0);
  }
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

@keyframes heroVisualGlow {
  0% {
    opacity: 0.62;
  }

  100% {
    opacity: 0.95;
  }
}

@keyframes productFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes tokenDrift {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(4deg);
  }
}

@keyframes sectionReveal {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand,
.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand__mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(14, 165, 160, 0.14);
}

.brand__plan {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.flash {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 10px 14px;
  box-shadow: var(--shadow-tight);
}

.flash--alert {
  border-color: rgba(185, 67, 47, 0.35);
  color: var(--danger);
}

/* Workspace shell */
.screenpods-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--rooms-width, 248px) minmax(520px, 1fr) var(--chat-width, minmax(360px, 420px));
  height: 100vh;
  overflow: hidden;
  background: var(--page);
}

body.rooms-collapsed .screenpods-shell {
  grid-template-columns: 48px minmax(520px, 1fr) var(--chat-width, minmax(360px, 420px));
}

body.chat-collapsed .screenpods-shell,
body.chat-collapsed.screens-open .screenpods-shell {
  grid-template-columns: var(--rooms-width, 248px) minmax(520px, 1fr) 48px;
}

body.chat-popout-active .screenpods-shell,
body.chat-popout-active.screens-open .screenpods-shell {
  grid-template-columns: var(--rooms-width, 248px) minmax(520px, 1fr) 0;
}

body.rooms-collapsed.screens-open .screenpods-shell {
  grid-template-columns: 48px minmax(560px, 2fr) var(--chat-width, minmax(340px, 1fr));
}

body.rooms-collapsed.chat-collapsed .screenpods-shell,
body.rooms-collapsed.chat-collapsed.screens-open .screenpods-shell {
  grid-template-columns: 48px minmax(340px, 1fr) 48px;
}

body.rooms-collapsed.chat-popout-active .screenpods-shell,
body.rooms-collapsed.chat-popout-active.screens-open .screenpods-shell {
  grid-template-columns: 48px minmax(340px, 1fr) 0;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.86);
  padding: 16px 16px 0;
  backdrop-filter: blur(18px);
}

body.rooms-collapsed .sidebar,
body.chat-collapsed .chat-panel {
  visibility: hidden;
  pointer-events: none;
  border: 0;
  padding: 0;
  overflow: hidden;
}

body.chat-popout-active .workspace-chat-rail,
body.chat-popout-active .collapse-tab--chat {
  display: none;
}

body.workspace-chat-resizing,
body.workspace-rooms-resizing {
  cursor: col-resize;
  user-select: none;
}

.sidebar .brand {
  min-height: 34px;
  margin-bottom: 22px;
}

.brand .icon-button {
  margin-left: auto;
}

.room-list {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.room-list__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 8px;
  color: var(--muted);
  padding: 10px;
  transition: background 140ms ease, color 140ms ease;
  text-decoration: none;
}

.room-list__name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-list__preview {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.75;
}

.room-list__item:hover,
.room-list__item:focus-visible {
  background: rgba(14, 165, 160, 0.08);
  color: var(--ink);
}

.room-list__item--active {
  background: var(--teal-soft);
  color: var(--ink);
}

.sidebar-action,
.topbar-link,
.icon-button,
.tile-action,
.settings-remove,
.snapshot-card__actions a,
.snapshot-card__actions button,
.snapshot-preview__toolbar a,
.snapshot-preview__toolbar button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 8px 11px;
  font-size: 13px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.sidebar-action:hover,
.topbar-link:hover,
.icon-button:hover,
.tile-action:hover,
.settings-remove:hover {
  border-color: var(--line-strong);
  background: #10244a;
  transform: translateY(-1px);
}

.sidebar-action:active,
.topbar-link:active,
.icon-button:active,
.tile-action:active,
.settings-remove:active {
  transform: translateY(0);
}

.icon-button {
  width: 36px;
  padding: 0;
}

.icon-button--small {
  width: 30px;
  min-height: 30px;
  font-size: 14px;
}

.sidebar__footer {
  display: grid;
  align-content: center;
  gap: 10px;
  margin-top: auto;
  min-height: var(--workspace-bottom-dock-height);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
  color: var(--muted);
  box-shadow: 0 10px 28px rgba(28, 38, 42, 0.06);
}

.sidebar-profile {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-profile__identity {
  min-width: 0;
}

.sidebar-profile__identity strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-icon-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 4px;
}

.sidebar-icon-actions form {
  margin: 0;
}

.sidebar-icon-link,
.sidebar-icon-button {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.sidebar-icon-link:hover,
.sidebar-icon-button:hover {
  background: var(--panel);
  color: var(--ink);
}


.avatar,
.message__avatar,
.settings-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--ink);
  font-weight: 800;
}

iconify-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  font-size: 18px;
}

.collapse-tab {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  font-size: 12px;
  font-weight: 800;
}

.collapse-tab--rooms {
  left: 0;
}

.collapse-tab--chat {
  right: 0;
  left: auto;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.collapse-tab__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
}

.collapse-tab__badge {
  position: absolute;
  top: 14px;
  right: 8px;
  display: none;
  min-width: 20px;
  min-height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: var(--teal);
  color: #f4f7ff;
  padding: 2px 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  box-shadow: 0 8px 22px rgba(47, 107, 255, 0.4);
}

body.chat-collapsed .collapse-tab__badge:not([hidden]) {
  display: inline-grid;
  place-items: center;
}

body.rooms-collapsed .collapse-tab--rooms,
body.chat-collapsed .collapse-tab--chat {
  display: inline-flex;
}

/* Main stage */
.workspace-stage {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: var(--surface-2);
}

.workspace-status-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 18px;
}

.workspace-status-strip > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.workspace-status-strip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-status-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-badge,
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  border-radius: 999px;
  background: #163b77;
  color: #b8d1ff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-badge--idle {
  background: #13294f;
  color: #91a7c8;
}

.status-badge--sharing {
  background: #163b77;
  color: #b8d1ff;
}

.status-badge--idle::before,
.status-badge--sharing::before,
.live-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-badge--sharing::before,
.live-badge::before {
  animation: livePulse 2.4s ease-out infinite;
}

.screens-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 10%, rgba(14, 165, 160, 0.08), transparent 32%),
    var(--surface-2);
}

.focus-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 18, 37, 0.72);
  color: var(--ink);
  padding: 10px 14px;
}

.focus-mode-banner > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.focus-mode-banner__label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.focus-mode-banner__meta {
  color: var(--muted);
  font-size: 12px;
}

.focus-mode-banner--active {
  border-bottom-color: rgba(120, 160, 255, 0.34);
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.22), rgba(6, 18, 37, 0.72));
}

.focus-mode-banner__clear {
  flex: 0 0 auto;
  border: 1px solid rgba(120, 160, 255, 0.34);
  border-radius: 999px;
  background: rgba(120, 160, 255, 0.13);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.focus-mode-banner__clear[hidden] {
  display: none;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: minmax(220px, 1fr);
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.tile-grid--stage {
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  grid-auto-rows: minmax(320px, 1fr);
  gap: 12px;
  padding: 14px;
}

.tile-grid--stage:has(.tile-grid__empty) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.tile-grid--stage .screen-tile {
  display: flex;
}

.tile-grid--stage:has(.screen-tile--focused) {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
}

.tile-grid--stage:has(.screen-tile--focused) .screen-tile:not(.screen-tile--focused) {
  display: none;
}

.tile-grid--stage:has(.screen-tile--focused) .screen-tile--focused {
  min-height: 100%;
}

/* ── Workspace layout toggle: list (single-column) mode ── */
.tile-grid--stage.tile-grid--list {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 10px;
}

.tile-grid--stage.tile-grid--list .screen-tile {
  min-height: 260px;
}

.tile-grid--stage.tile-grid--list:has(.tile-grid__empty) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.tile-grid__empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 100%;
  border: 1px dashed rgba(22, 39, 45, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 50% 30%, rgba(14, 165, 160, 0.12), transparent 34%);
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.tile-grid__empty-visual {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 38px);
  gap: 8px;
  min-height: 48px;
  align-items: end;
  margin-bottom: 4px;
}

.empty-state-token {
  display: block;
  height: 36px;
  border: 1px solid rgba(22, 39, 45, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    var(--teal-soft);
  box-shadow: 0 10px 20px rgba(28, 38, 42, 0.08);
  animation: tokenDrift 4s ease-in-out infinite;
}

.empty-state-token:nth-child(2) {
  height: 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    #2b5fc6;
  animation-delay: 400ms;
}

.empty-state-token:nth-child(3) {
  height: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    #2a8dce;
  animation-delay: 800ms;
}

.tile-grid__empty h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
}

.tile-grid__empty p {
  max-width: 440px;
  margin: 0;
  line-height: 1.45;
}

.tile-grid__empty-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.tile-grid__empty-roster {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.tile-grid__empty-roster .presence-roster__avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
  line-height: 28px;
  border-radius: 50%;
  background: var(--teal-soft, rgba(14, 165, 160, 0.12));
  color: var(--ink);
  text-align: center;
  margin-left: -6px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.tile-grid__empty-roster .presence-roster__avatar:first-child {
  margin-left: 0;
}

.tile-grid__member-count {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}

.tile-grid__start-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 780px);
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.start-guide-step {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(47, 107, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.start-guide-step strong {
  color: var(--ink);
  font-size: 14px;
}

.start-guide-step span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.start-guide-step--primary {
  border-color: rgba(47, 107, 255, 0.42);
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.13), rgba(14, 165, 160, 0.1));
}

.start-guide-step--blocked {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.58));
}

@media (max-width: 980px) {
  .tile-grid__start-guide {
    grid-template-columns: 1fr;
  }
}

.screen-tile {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: var(--screen);
  box-shadow: var(--shadow-tight);
  cursor: pointer;
}

.screen-tile--focused {
  cursor: default;
}

.screen-tile:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: var(--screen);
}

.screen-tile__preview {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 165, 160, 0.09), transparent 44%),
    var(--screen);
}

.screen-focus-affordance {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.72);
  color: #eef8f7;
  opacity: 0.82;
  transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms ease, background 140ms ease;
  backdrop-filter: blur(12px);
}

.screen-tile:hover .screen-focus-affordance,
.screen-tile:focus-within .screen-focus-affordance,
.screen-tile--focused .screen-focus-affordance {
  opacity: 1;
  transform: translateY(0);
}

.screen-tile--focused .screen-focus-affordance {
  background: var(--teal);
  color: #031413;
}

.screen-tile__viewport {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  overflow: auto;
  overscroll-behavior: contain;
}

.screen-pointer-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.screen-pointer {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translate(-4px, -4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
  animation: pointerPing 1.8s ease-out infinite;
}

.screen-pointer[hidden] {
  display: none;
}

.screen-pointer__dot {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 0 0 6px rgba(255, 77, 109, 0.18), 0 0 24px rgba(255, 77, 109, 0.48);
}

.screen-pointer__label {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(3, 10, 20, 0.74);
  padding: 3px 7px;
  backdrop-filter: blur(10px);
}

@keyframes pointerPing {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 77, 109, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 77, 109, 0.72)); }
}

.screen-tile__viewport--pannable {
  cursor: grab;
}

.screen-tile__viewport--panning {
  cursor: grabbing;
}

.screen-tile__surface {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transition: width 120ms ease, height 120ms ease;
}

.screen-tile__video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: contain;
  background: var(--screen);
  transition: width 120ms ease, height 120ms ease, transform 120ms ease;
}

.screen-tile__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #d7e5e8;
  text-align: center;
}

.screen-tile__placeholder::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 42px);
  content: "";
  opacity: 0.86;
  transform: translateX(-130%);
  animation: shimmerSweep 4.8s ease-in-out infinite;
}

.screen-tile__placeholder-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 270px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.74);
  padding: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.screen-tile__placeholder-card strong {
  color: #fff;
}

.screen-tile__placeholder-card small {
  color: #9fb2b9;
  line-height: 1.4;
}

.screen-tile__placeholder-signal {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background:
    linear-gradient(90deg, var(--teal) 0 35%, transparent 35% 44%, var(--amber) 44% 68%, transparent 68% 76%, var(--rose) 76%),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 8px rgba(14, 165, 160, 0.1);
  animation: livePulse 2.8s ease-out infinite;
}

.screen-tile__placeholder[hidden] {
  display: none;
}

.screen-tile__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 10px;
}

.screen-tile__identity {
  display: grid;
  gap: 2px;
  min-width: 150px;
  margin-right: auto;
}

.screen-tile__footer strong,
.screen-tile__title,
.screen-tile__comment-count,
.screen-tile__comment-preview,
.screen-tile__snapshot-count,
.screen-tile__snapshot-status,
.screen-tile__meta,
.screen-tile__shortcut-hint {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-tile__title {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.screen-tile__title-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-tile__title-input {
  flex: 1;
  min-width: 0;
  padding: 1px 4px;
  border: 1px solid var(--accent-primary);
  border-radius: 3px;
  background: var(--surface);
  color: var(--nocturne-text);
  font-size: 0.88rem;
  font-weight: 800;
  font-family: inherit;
  outline: none;
}

.screen-tile__title-input:focus {
  border-color: var(--nocturne-accent-2);
  box-shadow: 0 0 0 2px rgba(54,211,194,0.18);
}

.screen-tile__edit-title {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-dim);
  font-size: 0.72rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.screen-tile__footer:hover .screen-tile__edit-title,
.screen-tile__edit-title:focus-visible {
  opacity: 1;
}

.screen-tile__edit-title:hover {
  background: rgba(47,107,255,0.12);
  color: var(--accent-primary);
}

.screen-tile__edit-title iconify-icon {
  font-size: 0.75rem;
}

.screen-tile__comment-count,
.screen-tile__snapshot-count {
  width: fit-content;
  border: 1px solid rgba(14, 165, 160, 0.24);
  border-radius: 999px;
  background: rgba(14, 165, 160, 0.1);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
}

.screen-tile__comment-preview {
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  font-style: italic;
  opacity: 0.82;
}

.screen-tile__comment-preview[hidden] {
  display: none;
}

.screen-tile__meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.screen-tile__elapsed {
  color: var(--accent-cool, #6d8ac4);
  font-weight: 600;
}

.screen-tile__snapshot-status {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.screen-tile__shortcut-hint {
  color: rgba(214, 226, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.screen-tile__drag-handle {
  cursor: grab;
  min-width: 28px;
  min-height: 28px;
  padding: 4px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.screen-tile__drag-handle:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.screen-tile__drag-handle:active {
  cursor: grabbing;
  color: var(--accent-primary);
}

.screen-tile--dragging {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.1s;
}

.screen-tile--collapsed {
  min-height: 52px;
}

.screen-tile--collapsed .screen-tile__preview,
.screen-tile--collapsed .live-badge,
.screen-tile--collapsed .zoom-controls,
.screen-tile--collapsed .screen-rotate-controls,
.screen-tile--collapsed .screen-tile__identity .screen-tile__comment-count,
.screen-tile--collapsed .screen-tile__identity .screen-tile__comment-preview,
.screen-tile--collapsed .screen-tile__identity .screen-tile__snapshot-count,
.screen-tile--collapsed .screen-tile__identity .screen-tile__snapshot-status,
.screen-tile--collapsed .screen-tile__identity .screen-tile__meta,
.screen-tile--collapsed .screen-tile__identity .screen-tile__shortcut-hint,
.screen-tile--collapsed .screen-tile__drag-handle,
.screen-tile--collapsed .tile-action--danger {
  display: none;
}

.screen-tile__reorder-ghost {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.42), 0 0 0 2px var(--accent-primary);
  border-radius: 12px;
  transition: none;
}

.zoom-controls,
.screen-rotate-controls {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tile-action {
  min-width: 34px;
  min-height: 32px;
  box-shadow: none;
}

.tile-action--icon,
.tile-action--value {
  border-width: 0;
  border-radius: 0;
}

.tile-action--value {
  min-width: 54px;
  border-inline: 1px solid var(--line);
  color: var(--muted);
}

.tile-action--danger,
.topbar-danger {
  border-color: rgba(185, 67, 47, 0.35);
  color: var(--danger);
}

.tile-comments {
  position: absolute;
  left: var(--comment-x, auto);
  top: var(--comment-y, auto);
  right: var(--comment-right, 10px);
  bottom: var(--comment-bottom, 10px);
  display: grid;
  gap: 8px;
  width: min(300px, 48%);
  pointer-events: none;
}

.tile-comments[style*="--comment-x"] {
  right: auto;
  bottom: auto;
}

.tile-comments__drag {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 10, 15, 0.34);
  color: rgba(255, 255, 255, 0.82);
  opacity: 0.72;
  padding: 0;
  cursor: grab;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  transition: opacity 140ms ease, background 140ms ease, transform 140ms ease;
}

.tile-comments:hover .tile-comments__drag,
.tile-comments__drag:focus-visible,
.tile-comments--dragging .tile-comments__drag {
  opacity: 1;
  background: rgba(6, 10, 15, 0.48);
}

.tile-comments--dragging .tile-comments__drag {
  cursor: grabbing;
  transform: scale(1.04);
}

.tile-comments__stream {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
}

.tile-comment {
  justify-self: end;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 10, 15, 0.42);
  color: #fff;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.25;
  pointer-events: auto;
  backdrop-filter: blur(14px);
}

.tile-comment strong {
  display: block;
  margin-bottom: 2px;
}

.tile-comment-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  pointer-events: auto;
  opacity: 0.88;
  transition: opacity 140ms ease;
}

.tile-comments:hover .tile-comment-form,
.tile-comments:focus-within .tile-comment-form,
.tile-comments--dragging .tile-comment-form {
  opacity: 1;
}

.tile-comment-form input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(6, 10, 15, 0.56);
  color: #fff;
  padding: 9px 42px 9px 11px;
  backdrop-filter: blur(14px);
}

.composer input[type="submit"],
.message-reply-form input[type="submit"],
.share-button,
.pricing-button,
.landing-button,
.auth-form input[type="submit"],
.settings-form input[type="submit"],
.settings-add-person input[type="submit"] {
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
}

.tile-comment-form .tile-comments__drag {
  position: absolute;
  top: 50%;
  right: 5px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(32, 213, 196, 0.24);
  border-radius: 999px;
  background: rgba(6, 10, 15, 0.38);
  color: var(--teal-strong);
  padding: 0;
  font-weight: 900;
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.tile-comment-form .tile-comments__drag:hover {
  border-color: rgba(32, 213, 196, 0.48);
  background: rgba(6, 10, 15, 0.58);
  color: var(--teal);
  transform: translateY(-50%) scale(1.04);
}

.composer input[type="submit"]:hover,
.share-button:hover,
.landing-button:hover {
  background: var(--teal-strong);
  transform: translateY(-1px);
}

/* Presence dock */
.workspace-presence-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: var(--workspace-bottom-dock-height);
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.94);
  padding: 14px 16px;
}

.workspace-presence-dock[hidden] {
  display: none;
}

.presence-zone {
  display: grid;
  grid-template-columns: max-content minmax(120px, 1fr);
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.presence-zone__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.presence-zone__summary small {
  color: var(--muted);
}

.presence-dot,
.live-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.presence-dot--sharing,
.live-dot {
  animation: livePulse 2.6s ease-out infinite;
}

.presence-dot--idle {
  background: var(--faint);
}

.presence-zone__people {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.presence-roster {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.presence-roster__member {
  display: inline-grid;
  grid-template-columns: auto max-content max-content;
  align-items: center;
  gap: 4px 7px;
  min-width: max-content;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(7, 18, 37, 0.5);
  color: rgba(241, 245, 249, 0.9);
  padding: 8px 10px;
}

.presence-roster__member--sharing {
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.12), 0 12px 26px rgba(45, 212, 191, 0.08);
}

.presence-roster__member--online {
  border-left: 3px solid #22c55e;
  padding-left: 8px;
}

.presence-roster__avatar {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.18);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 900;
}

.presence-roster__identity,
.presence-roster__role {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.presence-roster__role {
  color: rgba(125, 211, 252, 0.92);
}

.presence-roster__state {
  grid-column: 2 / -1;
  color: rgba(203, 213, 225, 0.72);
  font-size: 11px;
  line-height: 1;
}

.empty-state {
  color: var(--muted);
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  padding: 7px 10px;
  white-space: nowrap;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.presence-pill:hover,
.presence-pill:focus-visible {
  border-color: rgba(14, 165, 160, 0.36);
  box-shadow: 0 8px 22px rgba(28, 38, 42, 0.08);
  transform: translateY(-1px);
}

.presence-pill__avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2b5fc6;
  color: #6f4710;
  font-size: 11px;
  font-weight: 900;
}

.presence-pill:nth-child(3n + 2) .presence-pill__avatar {
  background: #dff3f0;
  color: var(--teal-strong);
}

.presence-pill:nth-child(3n + 3) .presence-pill__avatar {
  background: #2a8dce;
  color: var(--violet);
}

.presence-zone__actions {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  justify-self: end;
  min-width: max-content;
}

.presence-zone__share-feedback {
  max-width: 340px;
  color: var(--muted);
  line-height: 1.35;
}

.share-button {
  white-space: nowrap;
}

.share-button--locked {
  background: #9ba8ad;
}

.share-button--request {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(245, 158, 11, 0.12));
  border-color: rgba(250, 204, 21, 0.4);
  color: #fde68a;
}

.workspace-room-link,
.workspace-permissions {
  display: none;
}

.workspace-activity-log {
  display: grid;
  gap: 8px;
  min-width: min(260px, 100%);
  max-width: 340px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(238, 245, 255, 0.045);
  padding: 10px;
}

.workspace-activity-log__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.workspace-activity-log .session-log {
  gap: 8px;
  max-height: 132px;
  overflow: auto;
}

.log-entry__summary {
  color: var(--ink-soft);
}

.workspace-activity-log .log-entry {
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 8px;
  font-size: 12px;
}

.workspace-activity-log .log-entry__icon {
  width: 22px;
  height: 22px;
}

.workspace-invite-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  cursor: pointer;
}

.workspace-invite-tile:hover,
.workspace-invite-tile:focus-visible {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.workspace-invite-status {
  color: var(--muted);
  text-align: center;
}

.workspace-brief-copy {
  display: grid;
  gap: 6px;
  min-width: min(220px, 100%);
}

.workspace-brief-copy__button {
  min-height: 42px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.18), rgba(45, 212, 191, 0.12));
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.workspace-brief-copy__button:hover,
.workspace-brief-copy__button:focus-visible {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}

.workspace-brief-copy__status {
  color: var(--muted);
  text-align: center;
}

/* Pane resize handles */
.rooms-resize-handle,
.workspace-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 14px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: col-resize;
}

.rooms-resize-handle {
  right: -7px;
}

.rooms-resize-handle span,
.workspace-resize-handle span {
  width: 3px;
  height: 44px;
  border-radius: 999px;
  background: var(--line-strong);
  opacity: 0.54;
  transition: background 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.rooms-resize-handle:hover span,
.rooms-resize-handle:focus-visible span,
.workspace-resize-handle:hover span,
.workspace-resize-handle:focus-visible span,
body.workspace-rooms-resizing .rooms-resize-handle span,
body.workspace-chat-resizing .workspace-resize-handle span {
  background: var(--teal);
  opacity: 1;
  transform: scaleY(1.18);
}

body.rooms-collapsed .rooms-resize-handle,
body.chat-collapsed .workspace-resize-handle,
body.chat-popout-active .workspace-resize-handle {
  display: none;
}

/* Chat rail */
.workspace-chat-rail {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--panel);
}

.workspace-resize-handle {
  left: -7px;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--panel);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 16px 12px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar__actions form {
  margin: 0;
}

.topbar h1,
.topbar p {
  margin: 0;
}

.topbar h1 {
  font-size: 19px;
}

.typing-indicator {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-style: italic;
  animation: typing-pulse 1.5s ease-in-out infinite;
}

.typing-indicator[hidden] {
  display: none;
}

@keyframes typing-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.topbar p,
.message time,
.log-entry p {
  color: var(--muted);
  font-size: 12px;
}

.chat-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 0 16px;
}

.chat-tabs__button {
  min-height: 48px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
}

.chat-tabs__button--active {
  border-color: var(--teal);
  color: var(--ink);
}

.chat-panel__body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.chat-new-activity {
  position: sticky;
  z-index: 4;
  bottom: 10px;
  justify-self: center;
  margin: 12px auto 0;
  border: 1px solid rgba(96, 165, 250, 0.48);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.96), rgba(14, 165, 233, 0.88));
  color: #ffffff;
  padding: 9px 14px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.34);
}

.chat-new-activity[hidden] {
  display: none;
}

/* New-messages divider bar: thin accent-stripe that separates already-seen
   messages from new activity when re-entering a room.  Inspired by
   Discord / Slack catch-up dividers. */
.chat-stream__new-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 0;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(47, 107, 255, 0.6), rgba(88, 166, 255, 0.6));
  border: none;
}

.chat-stream__new-divider span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(47, 107, 255, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12, 28, 54, 0.96), rgba(6, 18, 37, 0.96));
  color: #cde0ff;
  padding: 2px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(2, 8, 23, 0.28);
}

.chat-scroll-to-top {
  position: sticky;
  z-index: 4;
  top: 0;
  justify-self: center;
  margin: 0 auto 12px;
  border: 1px solid rgba(96, 165, 250, 0.48);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.96), rgba(14, 165, 233, 0.88));
  color: #ffffff;
  padding: 9px 14px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.34);
  cursor: pointer;
}

.chat-scroll-to-top[hidden] {
  display: none;
}
}

.request-toast {
  position: sticky;
  z-index: 5;
  bottom: 0;
  justify-self: center;
  margin: 8px auto;
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 41, 2, 0.96), rgba(15, 9, 1, 0.92));
  color: #fde68a;
  padding: 10px 16px;
  font-size: 0.875rem;
  box-shadow: 0 8px 28px rgba(2, 8, 23, 0.42);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.request-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-stream,
.session-log {
  display: grid;
  gap: 14px;
}

.chat-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
}

.chat-snapshot-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.chat-snapshot-filter[hidden] {
  display: none;
}

.chat-snapshot-filter:hover {
  border-color: var(--accent-primary);
  color: var(--ink);
}

.chat-snapshot-filter__count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.18);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 800;
}

.chat-snapshot-filter[aria-pressed='true'] {
  border-color: var(--accent-primary);
  background: rgba(47, 107, 255, 0.16);
  color: var(--ink);
}

.chat-snapshot-filter[aria-pressed='true'] .chat-snapshot-filter__count {
  background: var(--accent-primary);
  color: #ffffff;
}

/* ── Chat search ────────────────────────────────────────────── */

.chat-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.chat-search[hidden] {
  display: none;
}

.chat-search__icon {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 15px;
}

.chat-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  padding: 4px 0;
}

.chat-search-input::placeholder {
  color: var(--faint);
}

.chat-search-input::-webkit-search-cancel-button,
.chat-search-input::-webkit-search-decoration {
  display: none;
}

.chat-search__count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.chat-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(133, 170, 255, 0.14);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.chat-search-clear[hidden] {
  display: none;
}

.chat-search-clear:hover {
  background: rgba(133, 170, 255, 0.24);
  color: var(--ink);
}

.message--search-hidden {
  display: none !important;
}

.chat-stream--snapshots-only .message:not(.message--snapshot) {
  display: none;
}

.message {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  border-radius: 8px;
  padding: 4px;
}

.message:hover,
.message:focus-within {
  background: rgba(14, 165, 160, 0.05);
}

.message__body {
  position: relative;
  min-width: 0;
}

.message__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.message__text {
  margin: 4px 0 0;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message__text strong {
  font-weight: 700;
  color: #fff;
}

.mention {
  display: inline;
  color: var(--accent-primary);
  background: rgba(56, 139, 253, 0.1);
  border-radius: 3px;
  padding: 1px 3px;
  font-weight: 600;
  cursor: default;
}
}

.message-reply {
  margin: 8px 0 6px;
  border-left: 2px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: rgba(14, 165, 160, 0.06);
  color: var(--muted);
  padding: 6px 8px;
  cursor: pointer;
  transition: background 160ms var(--nocturne-ease), border-color 160ms var(--nocturne-ease);
}

.message-reply:hover {
  background: rgba(14, 165, 160, 0.11);
  border-left-color: var(--teal-strong);
}

.message-reply span {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.message-reply p {
  margin: 0;
  color: var(--ink);
}

.message__thread-count {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--teal-strong);
  padding: 0;
  font-size: 12px;
  font-weight: 800;
}

.message__toolbar {
  position: absolute;
  top: -18px;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 3px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
  box-shadow: var(--shadow-tight);
}

.message:hover .message__toolbar,
.message:focus-within .message__toolbar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.message-action {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 5px 8px;
  font-size: 12px;
}

.message-action:hover {
  background: rgba(14, 165, 160, 0.08);
}

.message-action--danger {
  color: var(--danger);
}

.message__toolbar .button_to {
  margin: 0;
}

/* --- Message reactions --- */

.message__react-btn {
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1;
  transition: background 0.15s, transform 0.1s;
}

.message__react-btn:hover {
  background: var(--hover-bg, #2a3a5c);
  transform: scale(1.15);
}

.message__react-btn:active {
  transform: scale(0.9);
}

.message__react-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.message__reactions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  padding: 2px 8px;
  background: var(--badge-bg, #1e2d4a);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  user-select: none;
}

.message__reaction-emoji {
  font-size: 14px;
}

.message__reaction-count {
  color: var(--text-dim);
  font-weight: 600;
}

/* --- Message text editing --- */

.message__edit-form {
  margin-top: 8px;
}

.message__edit-form[hidden] {
  display: none;
}

.message__edit-form textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d2142;
  color: var(--ink);
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
}

.message__edit-form textarea:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.message__edit-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.message__save-edit,
.message__cancel-edit {
  border: 0;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.message__save-edit {
  background: var(--accent-primary);
  color: #fff;
}

.message__save-edit:hover {
  background: var(--accent-glow);
}

.message__cancel-edit {
  background: transparent;
  color: var(--ink-soft);
}

.message__cancel-edit:hover {
  background: rgba(255, 255, 255, 0.06);
}

.message__edited-indicator {
  color: var(--muted);
  font-size: 12px;
  margin-left: 4px;
}

.message-action--edit,
.message__edit-btn {
  color: var(--ink-soft);
}

.message-action--edit:hover,
.message__edit-btn:hover {
  color: var(--ink);
}

/* aligned to button_to height inside the flex toolbar */

.message-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  width: min(520px, 100%);
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px;
}

.message-reply-form[hidden] {
  display: none;
}

.message-reply-form textarea,
.composer textarea {
  min-width: 0;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d2142;
  color: var(--ink);
  padding: 10px 12px;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: var(--workspace-bottom-dock-height);
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 12px;
}

.composer textarea {
  min-height: 44px;
  max-height: 128px;
}

.log-entry {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 165, 160, 0.04);
  padding: 10px;
}

.log-entry__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-strong);
}

.log-entry p {
  margin: 2px 0 0;
}

.snapshot-card {
  margin: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.snapshot-card__image-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.snapshot-card img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(14, 165, 160, 0.16), transparent),
    #eef4f3;
}

.snapshot-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 120ms ease, background 120ms ease;
}

.snapshot-card__overlay span {
  border-radius: 8px;
  background: rgba(6, 10, 15, 0.85);
  color: #fff;
  padding: 7px 12px;
}

.snapshot-card__image-button:hover .snapshot-card__overlay,
.snapshot-card__image-button:focus-visible .snapshot-card__overlay {
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.snapshot-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

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

.snapshot-card__caption-label {
  font-size: 14px;
}

.snapshot-card__edit-caption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 3px 5px;
  cursor: pointer;
  font-size: 12px;
  opacity: 0;
  transition: opacity 120ms ease, color 120ms ease, border-color 120ms ease;
}

.snapshot-card__caption:hover .snapshot-card__edit-caption,
.snapshot-card__edit-caption:focus-visible {
  opacity: 1;
}

.snapshot-card__edit-caption:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.snapshot-card__caption-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.snapshot-card__caption-form input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--accent-primary);
  border-radius: 6px;
  background: var(--page);
  color: var(--text);
  padding: 5px 8px;
  font-size: 13px;
}

.snapshot-card__save-caption {
  border: 1px solid var(--accent-primary);
  border-radius: 6px;
  background: var(--accent-primary);
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.snapshot-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.snapshot-card__actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.snapshot-copy-status {
  min-width: 70px;
  color: var(--accent-2);
  font-size: 11px;
  text-align: right;
}

.snapshot-preview__dialog {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: var(--screen);
  color: #fff;
  padding: 0;
}

.snapshot-preview__dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.snapshot-preview__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--screen-2);
  padding: 10px 12px;
}

.snapshot-preview__toolbar > div {
  min-width: 0;
  margin-right: auto;
}

.snapshot-preview__toolbar strong,
.snapshot-preview__toolbar span {
  display: block;
}

.snapshot-preview__toolbar span {
  color: #adbdc2;
  font-size: 12px;
}

.snapshot-preview__toolbar form {
  margin: 0;
}

.snapshot-preview__stage {
  display: grid;
  place-items: center;
  height: calc(100vh - 53px);
  overflow: auto;
  background: var(--screen);
  padding: 18px;
}

.snapshot-preview__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Snapshot preview carousel navigation */
.snapshot-preview__position {
  color: #adbdc2;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}

.snapshot-preview__nav {
  position: absolute;
  inset: 53px 0 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
  align-items: center;
}

.snapshot-preview__nav-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 18, 22, 0.72);
  color: #e6f2f5;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 120ms ease, opacity 120ms ease;
}

.snapshot-preview__nav-btn:hover:not(:disabled) {
  background: rgba(20, 184, 166, 0.32);
}

.snapshot-preview__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.snapshot-preview__prev {
  justify-self: start;
  margin-left: 16px;
}

.snapshot-preview__next {
  justify-self: end;
  margin-right: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .snapshot-preview__nav-btn {
    transition: none;
  }
}

/* Landing */
.landing-body,
.auth-body {
  min-height: 100%;
  background: var(--page);
}

.landing-page {
  min-height: 100vh;
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.025) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(10, 10, 10, 0.02) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--page);
}

.landing-hero-shell {
  min-height: min(900px, 100vh);
  background:
    radial-gradient(circle at 78% 26%, rgba(20, 184, 166, 0.16), transparent 28%),
    linear-gradient(90deg, #080808, #151719 52%, #2a2d2f);
  color: #fff;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 28px 18px;
  transition: background 320ms ease, border-color 320ms ease, padding 280ms ease, box-shadow 320ms ease;
}

.landing-nav--scrolled {
  background: rgba(8, 10, 12, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.32);
  padding: 14px 28px 12px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (prefers-reduced-motion: reduce) {
  .landing-nav {
    transition: none;
  }
}

.landing-brand {
  font-size: 28px;
}

.landing-brand .brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background:
    linear-gradient(var(--page) 0 0) center / 12px 12px no-repeat,
    linear-gradient(135deg, #19c3b6, #0a7376);
  box-shadow: none;
  transform: rotate(45deg);
}

.landing-brand strong {
  letter-spacing: 0;
}

.landing-hero-shell .landing-brand strong {
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}

.landing-version-pill {
  border-radius: 8px;
  background: #dcefeb;
  color: var(--teal-strong);
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 900;
}

.landing-nav__actions,
.landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav__actions form {
  margin: 0;
}

.landing-nav__actions a,
.landing-nav__actions button,
.landing-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 13px;
  backdrop-filter: blur(14px);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.landing-nav__actions a:hover,
.landing-nav__actions button:hover,
.landing-secondary:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(440px, 1.12fr);
  align-items: center;
  gap: 18px;
  max-width: 1320px;
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 10px 28px 78px;
}

.landing-hero__copy,
.landing-product-shot,
.landing-logo-strip {
  position: relative;
  z-index: 1;
}

.landing-hero__copy {
  max-width: 530px;
  padding: 34px 0;
  color: #fff;
}

.landing-hero__pills {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 26, 32, 0.72);
  padding: 5px;
}

.landing-hero__pills span {
  border-radius: 999px;
  color: #d8eff0;
  padding: 7px 10px;
  font-size: 12px;
}

.landing-hero__pills span:first-child {
  background: rgba(14, 165, 160, 0.32);
  color: #37e2d6;
}

.landing-hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(54px, 6vw, 92px);
  letter-spacing: 0;
  line-height: 0.94;
}

.landing-hero h1 span {
  color: #fff;
}

.landing-copy {
  max-width: 470px;
  margin: 0 0 24px;
  color: #d6e4e6;
  font-size: 17px;
  line-height: 1.5;
}

.landing-note {
  margin: 14px 0 0;
  color: #c2d2d5;
  font-size: 13px;
}

/* Hero aura — large soft gradient blobs behind hero content.
   Complements the existing hero-shell ::before/::after conic blobs
   with larger, softer radial-gradient glows positioned behind the
   hero text and illustration. Inspired by Stripe's gradient-blob hero. */
.landing-hero-aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-hero-aura::before,
.landing-hero-aura::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
}

/* Top-right teal glow behind hero illustration */
.landing-hero-aura::before {
  width: 680px;
  height: 680px;
  background:
    radial-gradient(circle at 50% 40%, rgba(88, 166, 255, 0.7), rgba(20, 184, 166, 0.4), transparent 72%);
  top: -22%;
  right: -16%;
  animation: heroAura1 26s ease-in-out infinite;
}

/* Bottom-left violet glow behind hero text */
.landing-hero-aura::after {
  width: 520px;
  height: 520px;
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.5), rgba(47, 107, 255, 0.3), transparent 70%);
  bottom: -18%;
  left: -8%;
  animation: heroAura2 30s ease-in-out infinite;
}

@keyframes heroAura1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(-30px, 20px) scale(1.06); }
  50%      { transform: translate(15px, -15px) scale(0.94); }
  75%      { transform: translate(-10px, -25px) scale(1.04); }
}

@keyframes heroAura2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(25px, -30px) scale(0.92); }
  50%      { transform: translate(-15px, 10px) scale(1.08); }
  75%      { transform: translate(15px, 15px) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-aura::before,
  .landing-hero-aura::after {
    animation: none;
  }
}

/* Scroll-triggered entrance animations */
.landing-section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: sectionReveal 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-section-reveal:nth-child(1) { transition-delay: 0ms; }
.landing-section-reveal:nth-child(2) { transition-delay: 80ms; }
.landing-section-reveal:nth-child(3) { transition-delay: 160ms; }
.landing-section-reveal:nth-child(4) { transition-delay: 240ms; }
.landing-section-reveal:nth-child(5) { transition-delay: 320ms; }
.landing-section-reveal:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .landing-section-reveal,
  .landing-section-reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* Trust / benefit badge strip — reinforces credibility below the hero */
.landing-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 28px 12px;
}

.landing-trust-badge {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(126, 169, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 253, 250, 0.06);
  padding: 18px 16px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.landing-trust-badge:hover {
  border-color: rgba(126, 169, 255, 0.26);
  background: rgba(255, 253, 250, 0.10);
  transform: translateY(-2px);
}

.landing-trust-badge strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.landing-trust-badge > span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* CSS-only icons for trust badges */
.landing-trust-badge__icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin-bottom: 2px;
}

.landing-trust-badge__icon--card {
  background:
    linear-gradient(var(--page) 0 0) center / 10px 10px no-repeat,
    linear-gradient(135deg, var(--teal), #0a7376);
}

.landing-trust-badge__icon--browser {
  background:
    linear-gradient(var(--page) 0 0) center / 8px 14px no-repeat,
    linear-gradient(135deg, var(--blue), #1d4ed8);
}

.landing-trust-badge__icon--screen {
  background:
    linear-gradient(var(--page) 0 0) center / 12px 9px no-repeat,
    linear-gradient(135deg, #7c3aed, var(--violet));
}

.landing-trust-badge__icon--lock {
  background:
    linear-gradient(var(--page) 0 0) center / 8px 10px no-repeat,
    linear-gradient(135deg, var(--amber), var(--rose));
}

.landing-micro-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.landing-micro-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d6e4e6;
  padding: 8px 10px;
  font-size: 12px;
}

.landing-micro-card strong {
  color: #fff;
}

.landing-button {
  border: 1px solid rgba(145, 174, 255, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(32, 58, 118, 0.96), rgba(12, 29, 66, 0.96));
  color: #f4f7ff;
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.landing-button:hover {
  border-color: rgba(173, 197, 255, 0.5);
  background: linear-gradient(180deg, rgba(43, 73, 142, 0.98), rgba(15, 37, 82, 0.98));
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.42), 0 0 0 1px rgba(120, 160, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.landing-nav__actions .landing-button {
  border-color: rgba(145, 174, 255, 0.28);
  background: rgba(9, 22, 48, 0.72);
  color: #f4f7ff;
  backdrop-filter: blur(16px);
}

.landing-nav__actions .landing-button:hover {
  background: rgba(17, 38, 80, 0.86);
}

.landing-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.landing-quietcast-visual {
  position: relative;
  min-height: 430px;
  margin-right: 26px;
}

.landing-quietcast-visual img {
  display: block;
  width: 100%;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.landing-product-shot {
  min-height: 430px;
  margin-right: 26px;
  perspective: 1300px;
}

.landing-browser {
  position: absolute;
  inset: 40px 0 42px 18px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: #121d25;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  transform: rotateY(-12deg) rotateX(4deg);
  transform-origin: left center;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.landing-product-shot:hover .landing-browser {
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
  transform: rotateY(-9deg) rotateX(3deg) translateY(-4px);
}

.landing-browser aside {
  display: grid;
  align-content: start;
  gap: 10px;
  background: #071219;
  padding: 28px 16px;
}

.landing-browser aside span,
.landing-code-line {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.landing-browser aside span:nth-child(2) {
  background: rgba(14, 165, 160, 0.36);
}

.landing-browser main {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px),
    #101921;
  padding: 30px;
}

.landing-code-line {
  width: 54%;
  background: rgba(25, 211, 196, 0.3);
}

.landing-code-line--wide {
  width: 82%;
}

.landing-code-line--short {
  width: 38%;
  background: rgba(217, 149, 45, 0.38);
}

.landing-code-window {
  min-height: 190px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(14, 165, 160, 0.2), transparent 38%),
    #071018;
}

.landing-cursor {
  position: absolute;
  right: 20%;
  bottom: 34%;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 8px 10px;
  font-size: 12px;
  box-shadow: 0 0 0 8px rgba(45, 109, 246, 0.16);
  animation: productFloat 4.2s ease-in-out infinite;
}

.landing-product-toast {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.94);
  color: #16272d;
  padding: 9px 12px;
  font-size: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  animation: productFloat 4.6s ease-in-out infinite;
}

.landing-product-toast span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  animation: livePulse 2.4s ease-out infinite;
}

.landing-product-toast--snapshot {
  right: 24px;
  bottom: 34px;
}

.landing-product-toast--join {
  left: 44px;
  bottom: 106px;
  animation-delay: 650ms;
}

.landing-product-toast--join span {
  background: var(--amber);
}

/* Hero scroll-down indicator — subtle animated chevron at the
   bottom of the hero that signals content below the fold.
   Inspired by Stripe and Linear landing patterns. */
.landing-scroll-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
}

.landing-scroll-indicator span {
  display: block;
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(255, 255, 255, 0.35);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
  animation: scrollIndicatorBounce 2.2s ease-in-out infinite;
}

@keyframes scrollIndicatorBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50%      { transform: rotate(45deg) translate(5px, 5px); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-scroll-indicator span {
    animation: none;
    opacity: 0.5;
  }
}

.landing-product-shot__dock {
  position: absolute;
  right: 40px;
  bottom: 54px;
  display: inline-flex;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.landing-product-shot__dock span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dfe8e6;
  color: #183138;
  font-size: 11px;
  font-weight: 900;
  transition: background 140ms ease, transform 140ms ease;
}

.landing-product-shot__dock span:nth-child(2) {
  background: #2b5fc6;
}

.landing-product-shot__dock span:nth-child(3) {
  background: #2a8dce;
}

.landing-product-shot__dock span:hover {
  transform: translateY(-2px);
}

.landing-logo-strip {
  display: flex;
  justify-content: center;
  gap: 34px;
  max-width: 1320px;
  margin: -74px auto 0;
  color: rgba(255, 255, 255, 0.88);
  padding: 0 28px 42px;
  font-weight: 900;
}

.landing-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 44px 28px 24px;
}

.landing-feature {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.78);
  padding: 18px;
  box-shadow: 0 10px 34px rgba(28, 38, 42, 0.06);
}

.landing-feature span {
  color: var(--muted);
  line-height: 1.45;
}

.landing-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 28px 24px;
}

.landing-section__intro {
  max-width: 760px;
  margin-bottom: 24px;
}

.landing-section__intro h2,
.landing-final-cta h2 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.landing-section__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.landing-steps,
.landing-use-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.landing-step,
.landing-use-case {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow-tight);
}

.landing-step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-weight: 900;
}

.landing-step h3,
.landing-use-case strong {
  margin: 0;
  font-size: 22px;
}

.landing-step p,
.landing-use-case span {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.landing-use-cases {
  padding-top: 24px;
}

.landing-use-case {
  min-height: 180px;
  overflow: hidden;
}

.landing-use-case::before {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, var(--teal), var(--sage));
  content: "";
}

.landing-use-case:nth-child(2)::before {
  background:
    linear-gradient(135deg, var(--amber), var(--rose));
}

.landing-use-case:nth-child(3)::before {
  background:
    linear-gradient(135deg, var(--violet), var(--teal));
}

/* Testimonials */

.landing-testimonials {
  padding-bottom: 48px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 8px;
}

.testimonial-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  border-radius: 12px;
  padding: 32px 28px 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
}

.testimonial-card blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.testimonial-card blockquote p::before {
  content: "\201C";
  color: var(--teal-strong);
}

.testimonial-card figcaption {
  display: grid;
  gap: 2px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.testimonial-card figcaption strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.testimonial-card figcaption small {
  color: var(--muted);
  font-size: 12px;
}

.testimonial-card--accent {
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.12), rgba(96, 183, 255, 0.06)),
    var(--surface);
  border: 1px solid rgba(47, 107, 255, 0.2);
  box-shadow: 0 8px 32px rgba(2, 8, 23, 0.18);
}

.testimonial-card--accent:hover {
  box-shadow: 0 14px 40px rgba(2, 8, 23, 0.28), 0 0 0 1px rgba(47, 107, 255, 0.14);
}

.testimonial-card--surface {
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(2, 8, 23, 0.16);
}

.testimonial-card--surface:hover {
  box-shadow: 0 12px 36px rgba(2, 8, 23, 0.26), 0 0 0 1px var(--line-strong);
}

@media (max-width: 720px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* Metrics strip — big-number product stats inspired by Stripe's
   quantitative social-proof bar. Uses gradient value text and
   subtle card lift on hover. */

.landing-metrics {
  padding-bottom: 48px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 8px;
}

.metric-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 32px 24px 28px;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.52);
  transition: transform 220ms var(--nocturne-ease), box-shadow 220ms var(--nocturne-ease), border-color 220ms var(--nocturne-ease);
}

.metric-card:hover {
  border-color: rgba(112, 147, 255, 0.3);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(148,184,255,0.22);
  transform: translateY(-3px);
}

.metric-card__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-glow), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-card__value--static {
  /* Static values (1, ∞) — already at target, no animation needed.
     Still styled identically via the shared .metric-card__value class. */
}

.metric-card__label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.metric-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .metric-card {
    transition: none;
  }
}

.landing-pricing {
  padding-bottom: 58px;
}

/* Section gradient depth accents — subtle radial glows behind
   sections to create visual rhythm and depth as visitors scroll.
   Inspired by Stripe's alternating section tones and Linear's
   layered dark-mode gradients. */

.landing-section.landing-how {
  background:
    radial-gradient(ellipse at 18% 35%, rgba(20, 184, 166, 0.05), transparent 50%),
    radial-gradient(ellipse at 82% 65%, rgba(99, 102, 241, 0.04), transparent 45%),
    var(--page);
}

.landing-section.landing-use-cases {
  background:
    radial-gradient(ellipse at 85% 25%, rgba(245, 158, 11, 0.05), transparent 50%),
    radial-gradient(ellipse at 12% 75%, rgba(20, 184, 166, 0.04), transparent 45%),
    var(--page);
}

.landing-section.landing-pricing {
  background:
    radial-gradient(ellipse at 25% 18%, rgba(47, 107, 255, 0.07), transparent 52%),
    radial-gradient(ellipse at 72% 55%, rgba(88, 166, 255, 0.05), transparent 48%),
    var(--page);
}

.landing-pricing .pricing-grid {
  padding: 0;
}

/* Pricing FAQ accordion — interactive expandable FAQ items
   below the pricing cards. Follows Stripe's pattern of
   interactive information sections with smooth transitions. */
.pricing-faq {
  max-width: 700px;
  margin: 40px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.pricing-faq__item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.pricing-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

.pricing-faq__item summary::-webkit-details-marker {
  display: none;
}

.pricing-faq__item summary::marker {
  display: none;
  content: "";
}

.pricing-faq__item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 18px;
  font-weight: 400;
  color: var(--teal);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.pricing-faq__item[open] summary {
  color: var(--ink);
}

.pricing-faq__item[open] summary::after {
  transform: rotate(45deg);
  content: "+";
}

.pricing-faq__item p {
  margin: 0 4px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 600px;
}

.pricing-faq__item:hover summary {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .pricing-faq__item summary,
  .pricing-faq__item summary::after {
    transition: none;
  }
}

.landing-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1264px;
  margin: 24px auto 72px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(14, 165, 160, 0.06), transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(99, 102, 241, 0.04), transparent 50%),
    linear-gradient(90deg, rgba(3, 18, 23, 0.96), rgba(4, 34, 38, 0.9)),
    #06171d;
  color: #fff;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(28, 38, 42, 0.16);
}

.landing-final-cta h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
}

/* Landing footer */
.landing-footer {
  border-top: 1px solid var(--line);
  background: var(--screen);
  color: var(--ink-soft);
  padding: 56px 28px 0;
}

.landing-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  max-width: 1264px;
  margin: 0 auto 40px;
}

.landing-footer__brand {
  flex: 1;
  min-width: 200px;
}

.landing-footer__brand .brand__mark {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 9px;
  background:
    linear-gradient(var(--page) 0 0) center / 12px 12px no-repeat,
    linear-gradient(135deg, #19c3b6, #0a7376);
  transform: rotate(45deg);
  box-shadow: none;
}

.landing-footer__brand strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 850;
}

.landing-footer__brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.landing-footer__nav {
  display: flex;
  gap: 48px;
}

.landing-footer__col h4 {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.landing-footer__col a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: color 140ms ease;
}

.landing-footer__col a:hover {
  color: var(--ink);
}

.landing-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1264px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  color: var(--faint);
  font-size: 13px;
}

/* ----- Landing section dividers — subtle rhythm between sections ----- */

#how-it-works::before,
#pricing::before {
  content: "";
  display: block;
  height: 1px;
  max-width: 1264px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(112, 147, 255, 0.10) 25%,
    rgba(112, 147, 255, 0.20) 50%,
    rgba(112, 147, 255, 0.10) 75%,
    transparent
  );
}

.landing-use-cases {
  border-top: 1px solid rgba(112, 147, 255, 0.07);
}

.landing-final-cta {
  border-top-color: rgba(112, 147, 255, 0.18);
}

/* Auth, pricing, settings */
.auth-page,
.subscription-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--page);
  padding: 24px;
}

.auth-panel,
.subscribe-prompt,
.settings-panel,
.pricing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-tight);
}

.auth-panel {
  width: min(420px, 100%);
  padding: 28px;
}

.auth-brand {
  color: var(--teal-strong);
  font-weight: 900;
}

.auth-panel h1 {
  margin: 18px 0 6px;
}

.auth-panel p,
.auth-switch,
.form-errors {
  color: var(--muted);
}

.auth-form,
.settings-form,
.settings-role-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.auth-form input:not([type="submit"]),
.settings-form input:not([type="submit"]),
.settings-copy-link input,
.settings-add-person input:not([type="submit"]),
.settings-role-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d2142;
  color: var(--ink);
  padding: 11px 12px;
}

.auth-switch a,
.form-errors {
  color: var(--teal-strong);
}

.pricing-body,
.settings-body {
  min-height: 100%;
  background: var(--page);
}

.pricing-page,
.settings-page {
  min-height: 100vh;
  background: var(--page);
  padding-bottom: 54px;
}

.pricing-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 26px;
  text-align: center;
}

.pricing-hero h1 {
  max-width: 780px;
  margin: 8px auto 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}

.pricing-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 32px;
  gap: 18px;
}

.pricing-card--highlight {
  border-color: rgba(14, 165, 160, 0.45);
}

.pricing-card h2,
.pricing-card p,
.pricing-card ul {
  margin-top: 0;
}

.pricing-card p,
.pricing-card li {
  color: var(--muted);
}

.pricing-card ul {
  display: grid;
  gap: 13px;
  padding: 0;
  list-style: none;
}

.pricing-card li::before {
  color: var(--teal);
  content: "✓ ";
}

.pricing-button {
  display: block;
  margin-top: auto;
  text-align: center;
}

.pricing-grid--focused {
  align-items: stretch;
}

.pricing-card--host {
  overflow: visible;
}

.pricing-card__badge {
  align-self: start;
  margin-bottom: 0;
}

.pricing-card__popular-badge {
  position: absolute;
  top: 0;
  right: 20px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(135deg, var(--teal), var(--sage));
  color: #06121f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 14px 7px;
  box-shadow: 0 4px 16px rgba(14, 165, 160, 0.28);
  line-height: 1.3;
}

.pricing-card__header {
  display: grid;
  gap: 22px;
}

.pricing-card__header h3,
.pricing-card--participant h3 {
  margin-bottom: 10px;
}

.pricing-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(126, 169, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 19, 42, 0.72);
  padding: 6px;
}

.pricing-toggle input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.pricing-toggle label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  color: rgba(202, 216, 241, 0.78);
  cursor: pointer;
  font-weight: 700;
  padding: 0 16px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.pricing-toggle label span {
  color: #8ee7d9;
  font-size: 0.78rem;
}

.pricing-toggle input:checked + label {
  background: linear-gradient(180deg, rgba(43, 73, 142, 0.98), rgba(15, 37, 82, 0.98));
  color: #f4f7ff;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pricing-intervals {
  border: 1px solid rgba(126, 169, 255, 0.18);
  border-radius: 22px;
  background: rgba(7, 19, 42, 0.38);
  padding: 22px;
}

.pricing-interval--yearly {
  display: none;
}

.pricing-card--host:has(#billing-yearly:checked) .pricing-interval--monthly {
  display: none;
}

.pricing-card--host:has(#billing-yearly:checked) .pricing-interval--yearly {
  display: block;
}

.pricing-card__price {
  margin-bottom: 12px;
}

.pricing-card__price span {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.92;
}

.pricing-card__note {
  min-height: 48px;
  margin-bottom: 22px;
}

.pricing-card__features {
  margin-bottom: 0;
}

.pricing-button {
  display: block;
  margin-top: auto;
  text-align: center;
}

.pricing-button--secondary {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.settings-page {
  padding: 20px;
}

.settings-nav,
.settings-shell {
  max-width: 1120px;
  margin-inline: auto;
}

.settings-nav,
.settings-header,
.settings-panel__heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.settings-nav {
  align-items: center;
  margin-bottom: 16px;
}

.settings-shell {
  display: grid;
  gap: 14px;
}

.settings-shell--narrow {
  max-width: 560px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.settings-subnav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 4px;
}

.settings-subnav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 9px 10px;
}

.settings-subnav a:hover {
  background: rgba(14, 165, 160, 0.08);
  color: var(--ink);
}

.settings-content {
  display: grid;
  gap: 14px;
}

.settings-panel {
  padding: 20px;
}

.settings-header h1,
.settings-header p,
.settings-panel h2,
.settings-panel h3,
.settings-panel p {
  margin: 0;
}

.settings-header p,
.settings-panel p,
.settings-member span {
  color: var(--muted);
}

.settings-panel__heading {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
}

.settings-add-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d2142;
  padding: 8px;
}

.settings-copy-link,
.settings-form label,
.settings-form label span,
.settings-copy-link span {
  display: grid;
  gap: 7px;
}

.settings-form label span,
.settings-copy-link span {
  color: var(--muted);
  font-size: 12px;
}

.settings-qr {
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.settings-qr svg {
  display: block;
  width: 120px;
  height: 120px;
}

.settings-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.settings-group {
  margin-top: 18px;
}

.settings-group h3 {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.settings-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 88px 120px auto;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  padding: 12px 14px;
}

.settings-member + .settings-member {
  border-top: 1px solid var(--line);
}

.settings-member__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.settings-member strong,
.settings-member span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-role-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 5px 9px;
  font-size: 12px;
}

.settings-role-picker {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d2142;
  padding: 4px;
}

.settings-role-option {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: 6px;
  color: var(--muted);
}

.settings-role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-role-option span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.settings-role-option--active,
.settings-role-option:has(input:checked) {
  background: var(--teal-soft);
  color: var(--ink);
}

.settings-presenter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.settings-presenter-toggle input {
  accent-color: var(--teal);
}

.settings-danger {
  border-color: rgba(185, 67, 47, 0.28);
}

.settings-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 14px;
}

.subscribe-prompt {
  width: min(440px, 100%);
  padding: 28px;
}

.popout {
  min-height: 100dvh;
  overflow: hidden;
}

.popout-panel,
.screen-popout {
  height: 100vh;
  height: 100dvh;
}

.popout-chat .popout-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100dvh;
}

.popout-chat .chat-panel__body {
  flex: unset;
  min-height: 0;
  overflow: auto;
}

.popout-chat .composer {
  min-height: 72px;
}

.tile-grid--popout {
  height: calc(100vh - 64px);
}

.tile-grid--popout .screen-tile {
  grid-column: 1 / -1;
  min-height: calc(100vh - 96px);
}

.screen-popout__nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.screen-popout__counter {
  margin-left: 8px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .screenpods-shell,
  body.screens-open .screenpods-shell {
    grid-template-columns: var(--rooms-width, 224px) minmax(420px, 1fr) var(--chat-width, minmax(320px, 380px));
  }

  body.chat-popout-active .screenpods-shell,
  body.chat-popout-active.screens-open .screenpods-shell {
    grid-template-columns: var(--rooms-width, 224px) minmax(420px, 1fr) 0;
  }

  .tile-grid--stage {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(360px, 1fr);
  }
}

@media (max-width: 840px) {
  .landing-hero-shell {
    min-height: auto;
    background-position: 64% center;
  }

  .landing-nav {
    align-items: flex-start;
    gap: 14px;
    padding: 22px 18px;
  }

  .landing-brand {
    font-size: 20px;
  }

  .landing-brand .brand__mark {
    width: 24px;
    height: 24px;
  }

  .landing-nav__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .landing-version-pill {
    display: none;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px 18px 34px;
  }

  .landing-hero__copy {
    padding: 28px 0 0;
  }

  .landing-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .landing-product-shot {
    min-height: 360px;
    margin: 0 12px 18px;
  }

  .landing-quietcast-visual {
    min-height: 300px;
    margin: 0 0 18px;
  }

  .landing-quietcast-visual img {
    min-height: 300px;
  }

  .landing-browser {
    inset: 14px;
    grid-template-columns: 76px minmax(0, 1fr);
    transform: none;
  }

  .landing-product-shot:hover .landing-browser {
    transform: none;
  }

  .landing-browser main {
    padding: 20px;
  }

  .landing-product-toast {
    display: none;
  }

  .landing-logo-strip {
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    color: #fff;
  }

  .landing-feature-strip,
  .landing-steps,
  .landing-use-cases,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding: 54px 18px 16px;
  }

  .landing-section__intro h2,
  .landing-final-cta h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .landing-final-cta {
    display: grid;
    margin: 24px 18px 54px;
  }

  .screenpods-shell,
  body.screens-open .screenpods-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar,
  .collapse-tab {
    display: none;
  }

  .workspace-status-strip {
    min-height: auto;
    padding: 10px 14px;
  }

  .workspace-status-strip p {
    font-size: 12px;
  }

  .workspace-chat-rail {
    border-top: 1px solid var(--line);
    border-left: 0;
    min-height: 460px;
  }

  .workspace-stage,
  .screens-panel,
  .chat-panel {
    min-height: 0;
    overflow: visible;
  }

  .screens-panel {
    grid-template-rows: auto auto;
  }

  .tile-grid {
    padding: 10px;
  }

  .tile-grid--stage {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(260px, 42vh);
  }

  .screen-tile__footer {
    gap: 8px;
  }

  .tile-comments {
    width: min(280px, 72%);
  }

  .workspace-presence-dock {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 12px;
  }

  .presence-zone {
    grid-template-columns: 1fr;
  }

  .presence-zone__actions {
    justify-content: start;
  }

  .share-button {
    white-space: normal;
  }

  .topbar {
    padding: 12px;
  }

  .chat-tabs {
    padding-inline: 12px;
  }

  .chat-panel__body {
    flex: none;
    min-height: 220px;
    max-height: none;
    padding: 12px;
  }

  .composer {
    padding: 10px;
  }

  .settings-header,
  .settings-layout,
  .settings-panel__heading--split,
  .settings-member {
    display: grid;
    grid-template-columns: 1fr;
  }

  .settings-subnav {
    position: static;
    display: flex;
    overflow: auto;
  }

  .settings-add-person,
  .settings-role-form {
    grid-template-columns: 1fr;
  }
}

/* Blue Nocturne visual system */
:root {
  --nocturne-ink: #061225;
  --nocturne-surface: #0a1932;
  --nocturne-panel: rgba(12, 28, 54, 0.84);
  --nocturne-panel-solid: #0c1c36;
  --nocturne-text: #eef5ff;
  --nocturne-muted: #9fb2d2;
  --nocturne-muted-2: #6e85aa;
  --nocturne-line: rgba(133, 170, 255, 0.14);
  --nocturne-line-strong: rgba(133, 170, 255, 0.28);
  --accent-primary: #2f6bff;
  --accent-glow: #58a6ff;
  --accent-cyan: #55d8ff;
  --nocturne-spotlight: radial-gradient(circle at 50% 0%, rgba(47, 107, 255, 0.30), transparent 34%);
  --nocturne-radius: 28px;
  --nocturne-radius-sm: 18px;
  --nocturne-radius-xs: 12px;
  --nocturne-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --nocturne-shadow-soft: 0 18px 58px rgba(7, 9, 13, 0.18);
  --nocturne-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nocturne-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --font-mono: "SF Mono", "Geist Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;

  --page: #061225;
  --surface: #0a1932;
  --surface-2: #0d2142;
  --panel: rgba(12, 28, 54, 0.88);
  --ink: var(--nocturne-text);
  --ink-soft: #cdd9ef;
  --muted: var(--nocturne-muted);
  --faint: #647796;
  --line: var(--nocturne-line);
  --line-strong: var(--nocturne-line-strong);
  --teal: var(--accent-primary);
  --teal-strong: #78a0ff;
  --teal-soft: rgba(47, 107, 255, 0.17);
  --amber: var(--accent-glow);
  --screen: #020817;
  --screen-2: #08162d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --shadow-tight: 0 16px 48px rgba(0, 0, 0, 0.3);
}

@keyframes cinemaGlow {
  0%, 100% { opacity: 0.58; transform: translate3d(-1.5%, -1%, 0) scale(1); }
  50% { opacity: 0.95; transform: translate3d(1.5%, 1%, 0) scale(1.035); }
}

@keyframes screenFocusIn {
  0% { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes messageArrivalRise {
  0% { opacity: 0; transform: translateY(10px) scale(0.985); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes messageHighlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.12); }
  100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0); }
}

@keyframes cinemaPulse {
  0% { box-shadow: 0 0 0 0 rgba(112, 147, 255, 0.32); }
  70% { box-shadow: 0 0 0 9px rgba(112, 147, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(112, 147, 255, 0); }
}

@keyframes cinemaSweep {
  0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  20% { opacity: 0.56; }
  100% { transform: translateX(180%) skewX(-18deg); opacity: 0; }
}

body {
  text-rendering: geometricPrecision;
  background: var(--page);
}

.eyebrow,
.status-badge,
.live-badge,
.brand__plan,
.landing-version-pill,
.screen-popout__counter,
.presence-zone__meta,
.screen-tile__meta,
.tile-comments__count,
.message__meta,
.chat-tabs__button {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.landing-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(112, 147, 255, 0.14), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(88, 166, 255, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(7, 9, 13, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(7, 9, 13, 0.028) 1px, transparent 1px) 0 0 / 72px 72px,
    #061225;
}

.landing-hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--nocturne-text);
  background:
    radial-gradient(circle at 72% 18%, rgba(112, 147, 255, 0.27), transparent 26%),
    radial-gradient(circle at 88% 72%, rgba(88, 166, 255, 0.15), transparent 28%),
    linear-gradient(135deg, #05070a 0%, #0c1119 46%, #141827 72%, #10244a 100%);
}

.landing-hero-shell::before,
.landing-hero-shell::after {
  position: absolute;
  z-index: -1;
  width: min(760px, 60vw);
  height: min(760px, 60vw);
  border-radius: 999px;
  background: conic-gradient(from 160deg, transparent, rgba(112, 147, 255, 0.3), rgba(238, 245, 255, 0.08), rgba(88, 166, 255, 0.18), transparent);
  content: "";
  filter: blur(52px);
  opacity: 0.72;
  animation: cinemaGlow 16s ease-in-out infinite;
}

.landing-hero-shell::before { inset: -26% -8% auto auto; }
.landing-hero-shell::after { inset: auto auto -32% -14%; animation-delay: -6s; animation-duration: 20s; }

.landing-brand .brand__mark {
  background:
    linear-gradient(#090d12 0 0) center / 12px 12px no-repeat,
    conic-gradient(from 160deg, var(--accent-primary), var(--accent-glow), var(--accent-cyan), var(--accent-primary));
  box-shadow: 0 0 34px rgba(112, 147, 255, 0.36);
}

.landing-hero h1 {
  max-width: 760px;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
  animation: heroTextShimmer 2s var(--nocturne-ease) both;
}

.landing-hero h1 strong {
  font-weight: 900;
}

.landing-hero h1 span {
  background: linear-gradient(135deg, var(--teal), var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes heroTextShimmer {
  0% {
    filter: brightness(1);
    text-shadow: none;
  }
  35% {
    filter: brightness(1.3);
    text-shadow: 0 0 48px rgba(88, 166, 255, 0.4), 0 0 96px rgba(47, 107, 255, 0.15);
  }
  100% {
    filter: brightness(1);
    text-shadow: none;
  }
}

.landing-copy {
  color: rgba(238, 245, 255, 0.76);
  font-size: clamp(17px, 1.4vw, 20px);
}

/* Hero sub-headline semantic emphasis — matches Stripe's pattern of
   bolding key differentiators within hero copy for scannability. */
.landing-copy strong {
  color: var(--teal-light, #7dd3d0);
  font-weight: 700;
}

.landing-copy em {
  color: var(--violet-light, #c4b5fd);
  font-style: normal;
  font-weight: 600;
}

.landing-copy span {
  background: linear-gradient(135deg, var(--amber, #f0a560), var(--rose, #e8788a));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.landing-button,
.share-button,
.composer input[type="submit"],
.auth-form input[type="submit"],
.settings-form input[type="submit"],
.settings-add-person input[type="submit"],
.pricing-button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(238, 245, 255, 0.15);
  border-radius: 999px;
  background: linear-gradient(135deg, #1f55e8, #2f6bff 46%, #58a6ff);
  color: #f4f8ff;
  box-shadow: 0 14px 42px rgba(112, 147, 255, 0.24), inset 0 1px 0 rgba(188,210,255,0.32);
  transition: transform 180ms var(--nocturne-ease), box-shadow 180ms var(--nocturne-ease), filter 180ms var(--nocturne-ease);
}

.landing-button::after,
.share-button::after,
.composer input[type="submit"]::after,
.auth-form input[type="submit"]::after,
.pricing-button::after {
  position: absolute;
  inset: 0 auto 0 -28%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
  content: "";
  transform: translateX(-140%) skewX(-18deg);
}

.landing-button:hover,
.share-button:hover,
.composer input[type="submit"]:hover,
.auth-form input[type="submit"]:hover,
.settings-form input[type="submit"]:hover,
.settings-add-person input[type="submit"]:hover,
.pricing-button:hover {
  filter: saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 20px 54px rgba(112, 147, 255, 0.32), inset 0 1px 0 rgba(188,210,255,0.38);
}

.landing-button:hover::after,
.share-button:hover::after,
.composer input[type="submit"]:hover::after,
.auth-form input[type="submit"]:hover::after,
.pricing-button:hover::after {
  animation: cinemaSweep 900ms var(--nocturne-ease);
}

.landing-quietcast-visual {
  filter: drop-shadow(0 34px 90px rgba(0, 0, 0, 0.42));
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
  transition: transform 420ms var(--nocturne-spring), filter 420ms var(--nocturne-spring);
}

.landing-quietcast-visual:hover {
  filter: drop-shadow(0 46px 110px rgba(0, 0, 0, 0.5));
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-5px);
}

.landing-quietcast-visual::before {
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: var(--nocturne-radius-sm);
  background: linear-gradient(120deg, rgba(112,147,255,0.34), transparent 28%, transparent 72%, rgba(88,166,255,0.24));
  content: "";
  pointer-events: none;
  mix-blend-mode: screen;
  animation: heroVisualGlow 4s ease-in-out infinite alternate;
}

.landing-quietcast-visual img,
.landing-feature,
.landing-step,
.landing-use-case,
.pricing-card,
.auth-panel,
.settings-panel,
.subscribe-prompt {
  border-radius: var(--nocturne-radius-sm);
}

.landing-feature,
.landing-step,
.landing-use-case,
.pricing-card,
.auth-panel,
.settings-panel,
.subscribe-prompt {
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.52);
  transition: transform 220ms var(--nocturne-ease), box-shadow 220ms var(--nocturne-ease), border-color 220ms var(--nocturne-ease);
}

.landing-feature:hover,
.landing-step:hover,
.landing-use-case:hover,
.pricing-card:hover {
  border-color: rgba(112, 147, 255, 0.3);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(148,184,255,0.22);
  transform: translateY(-3px);
}

.landing-product-toast {
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.74);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.16);
}

.screenpods-shell {
  isolation: isolate;
  background:
    var(--nocturne-spotlight),
    radial-gradient(circle at 86% 86%, rgba(88, 166, 255, 0.11), transparent 32%),
    linear-gradient(135deg, #07090d 0%, #0c1016 48%, #11151d 100%);
  color: var(--nocturne-text);
}

.screenpods-shell::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(238, 245, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(238, 245, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px;
  content: "";
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 76%);
  pointer-events: none;
}

.sidebar,
.workspace-chat-rail,
.workspace-presence-dock,
.chat-panel,
.topbar,
.composer,
.workspace-status-strip {
  backdrop-filter: blur(24px) saturate(1.08);
}

.sidebar {
  border-right-color: var(--nocturne-line);
  background: rgba(12, 16, 22, 0.78);
  box-shadow: inset -1px 0 0 var(--nocturne-line), 22px 0 74px rgba(0,0,0,0.22);
}

.brand__plan,
.landing-version-pill,
.status-badge,
.live-badge {
  border-color: rgba(112, 147, 255, 0.24);
  background: rgba(112, 147, 255, 0.13);
  color: #dce6ff;
}

.status-badge--idle {
  border-color: rgba(238, 245, 255, 0.12);
  background: rgba(238, 245, 255, 0.07);
  color: rgba(238, 245, 255, 0.72);
}

.status-badge--sharing,
.live-badge {
  animation: cinemaPulse 2.5s ease-out infinite;
}

.workspace-stage {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.workspace-stage::after {
  position: absolute;
  inset: 64px 24px calc(var(--workspace-bottom-dock-height) + 24px);
  z-index: -1;
  border-radius: var(--nocturne-radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(112, 147, 255, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(238,245,255,0.045), rgba(238,245,255,0.012));
  content: "";
  box-shadow: inset 0 1px 0 rgba(238,245,255,0.08);
}

.workspace-status-strip {
  border-bottom-color: var(--nocturne-line);
  background: rgba(12, 16, 22, 0.68);
}

.screens-panel {
  background:
    radial-gradient(circle at 50% 0%, rgba(112, 147, 255, 0.08), transparent 36%),
    transparent;
}

.tile-grid { perspective: 1200px; }

.tile-grid__empty {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(238, 245, 255, 0.13);
  border-radius: var(--nocturne-radius);
  background:
    radial-gradient(circle at 50% 18%, rgba(112, 147, 255, 0.18), transparent 36%),
    radial-gradient(circle at 82% 84%, rgba(88, 166, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.82), rgba(8, 10, 15, 0.76));
  color: var(--nocturne-muted);
  box-shadow: inset 0 1px 0 rgba(238,245,255,0.08), var(--nocturne-shadow-soft);
  animation: screenFocusIn 520ms var(--nocturne-ease) both;
}

.tile-grid__empty::before {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(238, 245, 255, 0.055);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(238,245,255,0.035) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(0deg, rgba(238,245,255,0.026) 1px, transparent 1px) 0 0 / 38px 38px;
  content: "";
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 76%);
}

.tile-grid__empty-visual {
  grid-template-columns: repeat(3, 46px);
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(238, 245, 255, 0.08);
  border-radius: 20px;
  background: rgba(238, 245, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(238,245,255,0.08);
}

.empty-state-token {
  border-radius: 14px;
  border-color: rgba(238,245,255,0.1);
  background: linear-gradient(180deg, rgba(112,147,255,0.32), rgba(112,147,255,0.12));
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}

.empty-state-token:nth-child(2) { background: linear-gradient(180deg, rgba(88,166,255,0.32), rgba(88,166,255,0.1)); }
.empty-state-token:nth-child(3) { background: linear-gradient(180deg, rgba(101,234,223,0.24), rgba(101,234,223,0.08)); }

.tile-grid__empty h2 {
  color: var(--nocturne-text);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

.screen-tile {
  position: relative;
  overflow: hidden;
  border-color: rgba(238, 245, 255, 0.11);
  border-radius: var(--nocturne-radius-sm);
  background: linear-gradient(180deg, #030407, #080b11);
  box-shadow: 0 18px 58px rgba(0,0,0,0.3), 0 0 0 1px rgba(112,147,255,0.08);
  transform: translateZ(0);
  transition: transform 260ms var(--nocturne-spring), box-shadow 260ms var(--nocturne-spring), border-color 260ms var(--nocturne-spring), filter 260ms var(--nocturne-spring);
  animation: screenFocusIn 420ms var(--nocturne-ease) both;
}

.screen-tile::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(112,147,255,0.28), transparent 24%, transparent 74%, rgba(88,166,255,0.18));
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--nocturne-ease);
}

.screen-tile:hover {
  border-color: rgba(112, 147, 255, 0.34);
  filter: saturate(1.04);
  transform: translateY(-3px) scale(1.003);
}

.screen-tile:hover::before,
.screen-tile--focused::before { opacity: 1; }

.screen-tile--focused {
  border-color: rgba(112, 147, 255, 0.48);
  box-shadow: 0 26px 86px rgba(0,0,0,0.42), 0 0 0 1px rgba(112,147,255,0.24), 0 0 46px rgba(112,147,255,0.12);
}

.screen-tile__preview {
  background:
    radial-gradient(circle at 50% 0%, rgba(112,147,255,0.16), transparent 42%),
    repeating-linear-gradient(90deg, rgba(238,245,255,0.033) 0 1px, transparent 1px 56px),
    linear-gradient(135deg, rgba(88,166,255,0.07), transparent 46%),
    var(--screen);
}

.screen-tile__footer {
  border-top-color: rgba(238,245,255,0.08);
  background: linear-gradient(180deg, rgba(17,22,31,0.92), rgba(10,13,18,0.96));
}

.screen-tile__title {
  color: var(--nocturne-text);
}

.screen-tile__comment-count,
.screen-tile__snapshot-count {
  border-color: rgba(54,211,194,0.24);
  background: rgba(54,211,194,0.1);
  color: var(--nocturne-accent-2);
}

.screen-tile__meta,
.screen-tile__snapshot-status {
  color: var(--nocturne-muted);
}

.screen-tile__comment-preview {
  color: var(--nocturne-text);
}

.screen-focus-affordance,
.tile-action,
.sidebar-icon-link,
.sidebar-icon-button,
.icon-button,
.topbar-link,
.sidebar-action {
  border-radius: var(--nocturne-radius-xs);
  transition: transform 160ms var(--nocturne-ease), background 160ms var(--nocturne-ease), border-color 160ms var(--nocturne-ease), color 160ms var(--nocturne-ease), opacity 160ms var(--nocturne-ease);
}

.screen-focus-affordance:hover,
.tile-action:hover,
.sidebar-icon-link:hover,
.sidebar-icon-button:hover,
.icon-button:hover,
.topbar-link:hover,
.sidebar-action:hover {
  transform: translateY(-1px);
}

.sidebar-action,
.topbar-link,
.icon-button,
.tile-action,
.settings-remove,
.snapshot-card__actions a,
.snapshot-card__actions button,
.snapshot-preview__toolbar a,
.snapshot-preview__toolbar button {
  border-color: rgba(238,245,255,0.12);
  background: rgba(238,245,255,0.055);
  color: var(--nocturne-text);
  box-shadow: inset 0 1px 0 rgba(238,245,255,0.08);
}

.sidebar-action:hover,
.topbar-link:hover,
.icon-button:hover,
.tile-action:hover,
.settings-remove:hover {
  border-color: rgba(112,147,255,0.3);
  background: rgba(112,147,255,0.13);
}

.workspace-presence-dock {
  margin: 0 14px 14px;
  transform: translateY(-2px);
  border-color: var(--nocturne-line);
  border-radius: var(--nocturne-radius-sm);
  background: rgba(12, 16, 22, 0.78);
  box-shadow: 0 -16px 56px rgba(0,0,0,0.22), inset 0 1px 0 rgba(238,245,255,0.08);
}

.workspace-chat-rail {
  border-left-color: var(--nocturne-line);
  background: rgba(12, 16, 22, 0.76);
  box-shadow: -20px 0 74px rgba(0,0,0,0.2);
}

.chat-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(112,147,255,0.09), transparent 34%),
    linear-gradient(180deg, rgba(17,22,31,0.82), rgba(9,12,17,0.84));
}

.topbar {
  min-height: 82px;
  border-bottom-color: var(--nocturne-line);
  background: rgba(12,16,22,0.72);
}

.topbar h1 { letter-spacing: 0; }
.topbar__actions { gap: 7px; }

.chat-tabs {
  background: rgba(238,245,255,0.035);
}

.chat-tabs__button {
  position: relative;
  border-radius: 999px;
}

.chat-tabs__button--active::after {
  position: absolute;
  right: 14px;
  bottom: 6px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-glow));
  box-shadow: none;
  content: "";
}

.chat-panel__body {
  background:
    radial-gradient(circle at 90% 0%, rgba(112,147,255,0.08), transparent 30%),
    linear-gradient(180deg, transparent, rgba(88,166,255,0.026));
}

.empty-state {
  border: 1px solid rgba(238,245,255,0.1);
  border-radius: var(--nocturne-radius-xs);
  background: rgba(238,245,255,0.045);
  padding: 18px;
  text-align: center;
}

.message {
  border-radius: var(--nocturne-radius-xs);
  transition: transform 180ms var(--nocturne-ease), background 180ms var(--nocturne-ease), box-shadow 180ms var(--nocturne-ease);
}

.message:hover {
  background: rgba(238,245,255,0.055);
  box-shadow: 0 12px 34px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

.message--new-arrival {
  animation: messageArrivalRise 520ms var(--nocturne-ease);
}

.message--highlight {
  animation: messageHighlightPulse 1.2s var(--nocturne-ease);
  border-radius: var(--nocturne-radius-xs);
}

.pinned-messages {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--nocturne-line);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.14), rgba(12, 16, 22, 0.82));
  padding: 10px 12px;
}

.pinned-messages__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--nocturne-text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pinned-messages__header small {
  color: var(--nocturne-muted);
  font-weight: 700;
  text-transform: none;
}

.pinned-messages__list {
  display: grid;
  gap: 6px;
}

.pinned-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(112, 147, 255, 0.24);
  border-radius: 12px;
  background: rgba(238, 245, 255, 0.06);
  padding: 8px 10px;
}

.pinned-message:hover {
  border-color: rgba(112, 147, 255, 0.42);
  background: rgba(112, 147, 255, 0.13);
}

.pinned-message__label {
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.18);
  color: #cdd8ff;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 900;
}

.pinned-message__body {
  min-width: 0;
  overflow: hidden;
  color: var(--nocturne-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message--pinned {
  background: rgba(47, 107, 255, 0.08);
  box-shadow: inset 3px 0 0 rgba(88, 166, 255, 0.72);
}

.message__pin-btn {
  color: #cdd8ff;
}

.message__pin-btn--active {
  background: rgba(112, 147, 255, 0.16);
  color: #f4f7ff;
}

.message-pin-form {
  margin: 0;
}

.composer {
  border-top-color: var(--nocturne-line);
  background: rgba(12,16,22,0.82);
  box-shadow: 0 -16px 52px rgba(0,0,0,0.18);
}

.message-reply-form textarea,
.composer textarea,
.auth-form input:not([type="submit"]),
.settings-form input:not([type="submit"]),
.settings-copy-link input,
.settings-add-person input:not([type="submit"]),
.settings-role-form select {
  border-radius: var(--nocturne-radius-xs);
  transition: border-color 160ms var(--nocturne-ease), box-shadow 160ms var(--nocturne-ease), background 160ms var(--nocturne-ease);
}

.message-reply-form textarea:focus,
.composer textarea:focus,
.auth-form input:not([type="submit"]):focus,
.settings-form input:not([type="submit"]):focus,
.settings-copy-link input:focus,
.settings-add-person input:not([type="submit"]):focus,
.settings-role-form select:focus {
  outline: none;
  border-color: rgba(112,147,255,0.56);
  box-shadow: 0 0 0 4px rgba(112,147,255,0.14);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .landing-quietcast-visual,
  .landing-quietcast-visual:hover,
  .screen-tile:hover {
    transform: none;
  }
}

@media (max-width: 840px) {
  .landing-quietcast-visual,
  .landing-quietcast-visual:hover { transform: none; }
  .screenpods-shell::before,
  .workspace-stage::after { display: none; }
}

/* Blue Nocturne QA polish */
.room-list__item--active {
  background: rgba(112, 147, 255, 0.18);
  color: var(--nocturne-text);
  box-shadow: inset 0 0 0 1px rgba(112, 147, 255, 0.22);
}

.room-list__item--active:hover,
.room-list__item--active:focus-visible {
  background: rgba(112, 147, 255, 0.23);
  color: var(--nocturne-text);
}

.sidebar__footer {
  border-color: rgba(238, 245, 255, 0.12);
  background: rgba(238, 245, 255, 0.055);
  color: var(--nocturne-muted);
  box-shadow: inset 0 1px 0 rgba(238,245,255,0.08), 0 14px 42px rgba(0,0,0,0.18);
}

.sidebar-profile__identity strong {
  color: var(--nocturne-text);
}

.sidebar-icon-actions {
  border-color: rgba(238,245,255,0.1);
  background: rgba(7, 9, 13, 0.22);
}

.composer textarea,
.message-reply-form textarea {
  background: rgba(238, 245, 255, 0.07);
  color: var(--nocturne-text);
}

.composer textarea::placeholder,
.message-reply-form textarea::placeholder {
  color: rgba(238, 245, 255, 0.48);
}

.composer input[type="submit"] {
  background: linear-gradient(135deg, rgba(31,85,232,0.95), rgba(88,166,255,0.92));
  box-shadow: 0 10px 28px rgba(112,147,255,0.18), inset 0 1px 0 rgba(255,255,255,0.32);
}

.chat-tabs__button {
  overflow: visible;
  color: var(--nocturne-muted);
}

.chat-tabs__button--active {
  color: var(--nocturne-text);
  background: rgba(238, 245, 255, 0.045);
}

.chat-tabs__button--active::after {
  right: 18px;
  bottom: 8px;
  left: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-glow));
  opacity: 0.85;
}

.workspace-stage::after {
  inset: 76px 30px calc(var(--workspace-bottom-dock-height) + 30px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(112, 147, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(238,245,255,0.026), rgba(238,245,255,0.006));
  box-shadow: none;
}

.screen-tile__placeholder-card,
.empty-state,
.tile-grid__empty p,
.workspace-status-strip p,
.topbar p {
  color: rgba(238, 245, 255, 0.72);
}


/* Blue Nocturne landing hardening */
.landing-nav__actions .landing-button,
.landing-button,
.pricing-button {
  border-color: rgba(145, 174, 255, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(32, 58, 118, 0.96), rgba(12, 29, 66, 0.96));
  color: #f4f7ff;
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.landing-nav__actions .landing-button:hover,
.landing-button:hover,
.pricing-button:hover {
  border-color: rgba(173, 197, 255, 0.5);
  background: linear-gradient(180deg, rgba(43, 73, 142, 0.98), rgba(15, 37, 82, 0.98));
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.42), 0 0 0 1px rgba(120, 160, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.landing-button:focus-visible,
.pricing-button:focus-visible {
  outline: none;
  border-color: rgba(14, 165, 160, 0.7);
  box-shadow:
    0 0 0 3px rgba(14, 165, 160, 0.25),
    0 14px 34px rgba(2, 8, 23, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.landing-secondary:focus-visible {
  outline: none;
  border-color: rgba(14, 165, 160, 0.5);
  box-shadow: 0 0 0 3px rgba(14, 165, 160, 0.2);
}

.landing-nav__actions a:focus-visible {
  outline: none;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(14, 165, 160, 0.22);
}

.landing-feature,
.landing-step,
.landing-use-case,
.pricing-card,
.auth-panel,
.settings-panel,
.subscribe-prompt {
  border-color: rgba(126, 169, 255, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 107, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(14, 31, 61, 0.92), rgba(8, 20, 42, 0.88));
  color: var(--nocturne-text);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(153, 188, 255, 0.12);
}

.landing-feature span,
.landing-step p,
.landing-use-case span,
.pricing-card p,
.pricing-card li,
.landing-section__intro p {
  color: rgba(202, 216, 241, 0.78);
}

.landing-feature strong,
.landing-step h3,
.landing-use-case strong,
.pricing-card h2,
.pricing-card h3,
.landing-section__intro h2,
.landing-final-cta h2 {
  color: #f3f7ff;
}

/* Section heading gradient accent bars — subtle horizontal gradient
   lines beneath major H2 headings to create visual rhythm and
   craftsmanship. Inspired by Stripe's decorative heading treatments
   and Linear's refined typography system. */
.landing-section__intro h2::after,
.landing-final-cta h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--violet));
}

.landing-feature:hover,
.landing-step:hover,
.landing-use-case:hover,
.pricing-card:hover {
  border-color: rgba(126, 169, 255, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 107, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(18, 39, 76, 0.96), rgba(9, 23, 48, 0.92));
}

/* Feature strip gradient accent icons */
.landing-feature::before {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--teal), var(--sage));
  content: "";
}

.landing-feature:nth-child(2)::before {
  background:
    linear-gradient(135deg, var(--amber), var(--rose));
}

.landing-feature:nth-child(3)::before {
  background:
    linear-gradient(135deg, var(--violet), var(--accent-cyan));
}

.landing-feature:nth-child(4)::before {
  background:
    linear-gradient(135deg, var(--accent-primary), var(--blue));
}

/* Per-step gradient number circles — visual consistency with
   feature cards and use-case cards. Each step gets its own
   Blue Nocturne gradient pair. */
.landing-step:nth-child(1) span {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #f4f8ff;
}

.landing-step:nth-child(2) span {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #f4f8ff;
}

.landing-step:nth-child(3) span {
  background: linear-gradient(135deg, var(--violet), var(--amber));
  color: #f4f8ff;
}

@media (min-width: 960px) {
  .landing-steps,
  .landing-use-cases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Flow connector arrows between How it works steps */
  .landing-step:nth-child(1)::after,
  .landing-step:nth-child(2)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -12px;
    z-index: 2;
    transform: translate(50%, -50%);
    color: rgba(120, 160, 255, 0.52);
    font-size: 20px;
    font-weight: 700;
    pointer-events: none;
  }
}

.landing-quietcast-visual img {
  filter: brightness(0.78) saturate(0.92) contrast(1.04);
}

/* Blue Nocturne app primary actions */
.share-button,
.composer input[type="submit"],
.message-reply-form input[type="submit"],
.auth-form input[type="submit"],
.settings-form input[type="submit"],
.settings-add-person input[type="submit"] {
  border: 1px solid rgba(145, 174, 255, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(32, 58, 118, 0.96), rgba(12, 29, 66, 0.96));
  color: #f4f7ff;
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.share-button:hover,
.composer input[type="submit"]:hover,
.message-reply-form input[type="submit"]:hover,
.auth-form input[type="submit"]:hover,
.settings-form input[type="submit"]:hover,
.settings-add-person input[type="submit"]:hover {
  border-color: rgba(173, 197, 255, 0.5);
  background: linear-gradient(180deg, rgba(43, 73, 142, 0.98), rgba(15, 37, 82, 0.98));
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.42), 0 0 0 1px rgba(120, 160, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.share-button--locked {
  border-color: rgba(155, 168, 173, 0.34);
  background: rgba(155, 168, 173, 0.16);
  color: rgba(244, 247, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.share-button--request {
  border-color: rgba(250, 204, 21, 0.38);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(245, 158, 11, 0.10));
  color: #fde68a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.room-list__item--active {
  background: rgba(32, 58, 118, 0.62);
  color: #f4f7ff;
}

.topbar-danger,
.settings-remove {
  border: 1px solid rgba(255, 111, 138, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(80, 29, 48, 0.82), rgba(42, 15, 28, 0.88));
  color: #ffd7df;
  box-shadow: 0 12px 30px rgba(2, 8, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.topbar-danger:hover,
.settings-remove:hover {
  border-color: rgba(255, 111, 138, 0.52);
  background: linear-gradient(180deg, rgba(104, 35, 58, 0.9), rgba(54, 18, 34, 0.94));
  color: #ffe7ec;
}

/* Snapshot "Jump to screen" link: accent-colored so reviewers can spot the way
   back to the live source screen a snapshot was captured from. */
.snapshot-card__jump {
  border-color: rgba(112, 147, 255, 0.34);
  background: rgba(112, 147, 255, 0.16);
  color: #cdd8ff;
}

.snapshot-card__jump:hover {
  border-color: rgba(112, 147, 255, 0.6);
  background: rgba(112, 147, 255, 0.26);
  color: #e7ecff;
}

/* Brief highlight ring on the source tile when jumped to from a snapshot. */
.screen-tile--snapshot-jump {
  outline: 2px solid rgba(112, 147, 255, 0.85);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(112, 147, 255, 0.18), 0 18px 40px rgba(2, 8, 23, 0.5);
}

@keyframes screenpods-snapshot-jump-pulse {
  0%, 100% { outline-color: rgba(112, 147, 255, 0.85); }
  50% { outline-color: rgba(112, 147, 255, 0.35); }
}

.screen-tile--snapshot-jump {
  animation: screenpods-snapshot-jump-pulse 800ms ease-in-out 2;
}

@media (prefers-reduced-motion: reduce) {
  .screen-tile--snapshot-jump { animation: none; }
  .snapshot-card__jump { transition: none; }
}

/* ── Hero CTA entrance animation ──────────────────────────────────
   Staggered fade-and-slide-up on page load draws immediate attention
   to the primary conversion action. Inspired by Stripe's polished
   button interactions and Linear's refined motion design.
   Respects prefers-reduced-motion. */
@keyframes heroCtaEntrance {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-hero .landing-actions .landing-button,
.landing-hero .landing-actions .landing-secondary {
  animation: heroCtaEntrance 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-hero .landing-actions .landing-button {
  animation-delay: 160ms;
}

.landing-hero .landing-actions .landing-secondary {
  animation-delay: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero .landing-actions .landing-button,
  .landing-hero .landing-actions .landing-secondary {
    animation: none;
  }
}

/* ── Pricing card animated gradient border ──────────────────────────
   Subtle shifting gradient border on the Host pricing card to draw
   visitor attention to the primary revenue-generating plan. Uses
   background-clip technique for broad browser compatibility.
   Inspired by Stripe's gradient CTA accent patterns.
   Respects prefers-reduced-motion. */
.pricing-card.pricing-card--highlight {
  border: 2px solid transparent;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 107, 255, 0.12), transparent 34%) padding-box,
    linear-gradient(180deg, rgba(14, 31, 61, 0.92), rgba(8, 20, 42, 0.88)) padding-box,
    linear-gradient(
      135deg,
      var(--teal),
      var(--blue),
      var(--violet),
      var(--amber),
      var(--teal)
    ) border-box;
  background-size: auto, auto, 300% 300%;
  animation: pricingBorderShift 6s ease infinite;
}

/* Hover: brighter border with tighter glow */
.pricing-card.pricing-card--highlight:hover {
  border-color: rgba(126, 169, 255, 0.34);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(153, 188, 255, 0.12),
    0 0 32px rgba(47, 107, 255, 0.14);
}

@keyframes pricingBorderShift {
  0% {
    background-position: 0% 50%, 0% 0%, 0% 50%;
  }
  50% {
    background-position: 0% 50%, 0% 0%, 100% 50%;
  }
  100% {
    background-position: 0% 50%, 0% 0%, 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card.pricing-card--highlight {
    animation: none;
    border-color: rgba(14, 165, 160, 0.45);
    background:
      radial-gradient(circle at 100% 0%, rgba(47, 107, 255, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(14, 31, 61, 0.92), rgba(8, 20, 42, 0.88));
    background-size: auto, auto;
    box-shadow:
      0 20px 64px rgba(0, 0, 0, 0.26),
      inset 0 1px 0 rgba(153, 188, 255, 0.12);
  }
}

/* ── Distraction-free mode ──────────────────────────────────────────
   Toggled via workspace#toggleChrome (button or Ctrl+Shift+H).
   Hides all workspace chrome so collaborators can focus on shared
   screens. Moving the mouse to any edge reveals the UI temporarily
   for quick access; the mode persists until toggled again. */
body.chrome-hidden .sidebar,
body.chrome-hidden .workspace-chat-rail,
body.chrome-hidden .workspace-presence-dock,
body.chrome-hidden .collapse-tab,
body.chrome-hidden .workspace-resize-handle,
body.chrome-hidden .rooms-resize-handle {
  display: none;
}

body.chrome-hidden .screen-tile__footer,
body.chrome-hidden .workspace-status-strip {
  display: none;
}

body.chrome-hidden .tile-grid--stage {
  padding: 8px;
}

/* ── Workspace declutter: hide controls when no screens are shared ─── */

.workspace--empty .workspace-status-strip .icon-button[data-screens-target="fullscreenButton"],
.workspace--empty .workspace-status-strip .layout-toggle,
.workspace--empty .workspace-status-strip .icon-button[data-action*="toggleChrome"] {
  display: none;
}

/* ── Compact presence dock for empty rooms ───────────────────────── */

.workspace-presence-dock--compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
}

.workspace-presence-dock--compact .workspace-dock-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.workspace-presence-dock--compact .workspace-invite-tile {
  background: transparent;
  border: 1px dashed rgba(96, 165, 250, 0.4);
}

/* ── Chat panel header label ──────────────────────────────────────── */

.topbar__label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

/* ── Empty-state guide card readability ───────────────────────────── */

.start-guide__card:not(.start-guide__card--active) {
  background: rgba(20, 45, 75, 0.7);
  border-color: rgba(96, 165, 250, 0.18);
  color: rgba(200, 224, 255, 0.75);
}