: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 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);
  }
}

.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;
  border-radius: 8px;
  color: var(--muted);
  padding: 10px;
  transition: background 140ms ease, color 140ms ease;
}

.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;
}

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: 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);
}

.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%;
}

.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;
}

.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 {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  overflow: auto;
  overscroll-behavior: contain;
}

.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__footer > div:first-child {
  min-width: 120px;
  margin-right: auto;
}

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

.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;
}

.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;
}

.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;
}

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

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

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

.workspace-invite-tile {
  min-height: 48px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
}

/* 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;
}

.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 {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

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

.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-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;
}

.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-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;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

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

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

.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;
}

/* 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: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 28px 18px;
}

.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;
}

.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);
}

.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));
}

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

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

.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:
    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);
}

/* 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: hidden;
}

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

.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 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;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-hero h1 span {
  background: linear-gradient(92deg, #f4f8ff 0%, #dce6ff 42%, #9cc8ff 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.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;
}

.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-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);
}

.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-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;
}

.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));
}

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

.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);
}

.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;
}
