/* Screenpods: shared palette, components, responsive states. */
.workspace-mobile-nav {
  display: none;
}

:root {
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ink: #edf3ef;
  --ink-soft: #c7d2cc;
  --muted: #98a59f;
  --faint: #65736c;
  --page: #0d1211;
  --surface: #111715;
  --surface-2: #151b18;
  --panel: #141b18;
  --line: rgba(211, 231, 221, 0.11);
  --line-strong: rgba(211, 231, 221, 0.2);
  --screen: #090e0d;
  --screen-2: #101714;
  --paper-surface: #e9ede5;
  --paper-ink: #26342b;
  --paper-line: #d5dbd1;
  --paper-line-strong: #c8d0c3;
  --paper-muted: #637165;
  --paper-label: #687569;
  --paper-soft-ink: #4a5b4c;
  --paper-address: #606c62;
  --paper-action: #293c30;
  --paper-action-ink: #edf1ea;
  --paper-accent: #bfcdb9;
  --teal: #a8d5c6;
  --teal-strong: #c3e8dc;
  --teal-soft: rgba(168, 213, 198, 0.13);
  --danger: #e39790;
  --danger-soft: rgba(227, 151, 144, 0.1);
  --workspace-bottom-dock-height: 104px;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

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

body {
  height: 100%;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

input {
  font: inherit;
  letter-spacing: 0;
}

textarea {
  font: inherit;
  letter-spacing: 0;
  line-height: 1.35;
}

select {
  font: inherit;
  letter-spacing: 0;
}

a {
  font: inherit;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  text-decoration: none;
}

h1 {
  letter-spacing: 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
}

h2 {
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

h3 {
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

h4 {
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

.brand {
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.eyebrow {
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .09em;
}

.brand__mark {
  display: inline-block;
  flex: 0 0 auto;
  box-shadow: none;
  position: relative;
  width: 18px;
  height: 16px;
  border: 2px solid var(--teal);
  border-radius: 3px;
  background: transparent;
  border-color: var(--ink-soft);
}

.brand__plan {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid var(--line);
  padding: 2px 7px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  border-color: var(--line);
  border-radius: 4px;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

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

.flash--alert {
  border-color: var(--line-strong);
  color: var(--danger);
}

/* One disclosure language for room, account, members, search and screen controls. */
.disclosure { min-width: 0; }
.disclosure > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 6px;
  border: 0;
  border-radius: 3px;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: "⌄"; font-size: 12px; }
.disclosure > summary:hover, .disclosure[open] > summary { color: var(--ink); background: var(--surface-2); }
.disclosure > summary:focus-visible, .disclosure__panel :is(button, a, input):focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.disclosure__panel {
  position: fixed;
  inset: auto;
  left: var(--disclosure-left, 8px);
  top: var(--disclosure-top, 48px);
  width: var(--disclosure-width, 280px);
  max-width: calc(100vw - 16px);
  max-height: var(--disclosure-max-height, 70dvh);
  z-index: 100;
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
  font-size: 13px;
  white-space: normal;
}
.disclosure:not([open]) > .disclosure__panel { display: none; }
.disclosure__panel::backdrop { background: transparent; }
/* Native in-flow disclosure remains usable without top-layer support. */
.disclosure--inline[open] { flex: 1 1 100%; width: 100%; max-width: 100%; }
.disclosure--inline > .disclosure__panel {
  position: static;
  width: 100%;
  max-width: 100%;
  max-height: min(50dvh, 320px);
  margin: 4px 0;
}
.screen-tile:has(.disclosure--inline[open]) { overflow: auto; }
.workspace-stage:has(.workspace-status-strip .disclosure--inline[open]) { grid-template-rows: auto minmax(0, 1fr); }
.workspace-status-strip:has(.disclosure--inline[open]), .topbar:has(.disclosure--inline[open]) { flex-wrap: wrap; flex-basis: auto; }
.workspace-status-strip > .workspace-status-strip__presence:has(.disclosure--inline[open]) { flex: 1 1 100%; flex-wrap: wrap; }
.disclosure__panel :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  height: auto;
  padding: 7px 10px;
  margin: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft);
  font: inherit;
  text-align: left;
  text-decoration: none;
  white-space: normal;
}
.disclosure__panel :is(a, button):hover { color: var(--ink); background: var(--surface-2); }
.disclosure__panel form { margin: 0; }
.disclosure__panel a[aria-current="page"] { border-left: 2px solid var(--teal); color: var(--ink); }
.disclosure__group, .screen-disclosure__group { padding-top: 6px; margin-top: 6px; border-top: 1px solid var(--line); }
.disclosure__label, .screen-disclosure__label { display: block; padding: 5px 10px; color: var(--muted); font-size: 11px; font-weight: 400; }
.screen-disclosure__metadata { display: grid; gap: 5px; padding: 8px 10px; color: var(--muted); font-size: 11px; }
.screen-disclosure__metadata > * { max-width: 100%; margin: 0; white-space: normal; overflow-wrap: anywhere; }
.screen-disclosure .zoom-controls, .screen-disclosure .screen-rotate-controls { display: flex; border: 0; }
.screen-disclosure .zoom-controls button, .screen-disclosure .screen-rotate-controls button { width: auto; flex: 1; justify-content: center; }
.account-disclosure { width: 100%; }
.account-disclosure > summary { padding: 8px 4px; }
.sidebar-account-name { overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--ink-soft); }
.sidebar-account-label { margin-left: auto; font-size: 11px; }
.members-disclosure { --disclosure-preferred-width: 320px; }
.search-disclosure { margin-left: auto; --disclosure-preferred-width: 320px; }
.search-disclosure[data-filtered="true"] > summary { color: var(--teal); }
.search-disclosure .chat-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 4px; }
.search-disclosure .chat-search .disclosure__label, .search-disclosure .chat-search-input { grid-column: 1 / -1; }
.search-disclosure .chat-search .disclosure__label { padding: 0; }
.search-disclosure .chat-search-input { padding: 8px; width: 100%; }
.search-disclosure .chat-search__count, .search-disclosure .chat-search-clear { position: static; transform: none; font-size: 12px; }
.search-disclosure .chat-search-clear { width: auto; }
.topbar > .chat-tabs { border: 0; padding: 0; gap: 16px; align-self: stretch; }
.topbar .chat-tab { min-height: 44px; }
.chat-panel > .typing-indicator:not([hidden]) { padding: 6px 14px; }
.workspace-status-strip > .workspace-status-strip__identity { flex-direction: column; align-items: flex-start; gap: 2px; }
.workspace-status-strip .workspace-screen-count { font-size: 11px; color: var(--muted); }
body:not(.workspace--empty) .workspace-screen-count { color: var(--teal); }
.share-button.share-button--quiet { min-height: 32px; padding: 5px 8px; border: 0; background: transparent; color: var(--ink-soft); font-size: 12px; }
.share-button.share-button--quiet:hover { background: var(--surface-2); color: var(--ink); }
.focus-mode-banner:not(.focus-mode-banner--active) { display: none; }

.screenpods-shell {
  position: relative;
  display: grid;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  grid-template-columns: var(--rooms-width, 248px) minmax(0, 1fr) var(--chat-width, minmax(360px, 420px));
  background: var(--page);
  color: var(--ink);
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right-color: var(--line);
  backdrop-filter: none;
  border-right: 1px solid var(--line);
  background: var(--page);
  padding: 12px 12px 0;
  box-shadow: none;
}

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

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

.sidebar .brand {
  min-height: 32px;
  margin-bottom: 18px;
  font-size: 15px;
  gap: 9px;
}

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

.room-list {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}

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

.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 {
  background: var(--teal-soft);
  color: var(--ink);
}

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

.room-list__item--active {
  box-shadow: none;
  color: var(--ink);
  border-color: transparent;
  border-left: 2px solid var(--teal);
  background: var(--surface-2);
}

.sidebar-action {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.topbar-link {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  font-size: 13px;
  width: 36px;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.tile-action {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  padding: 6px 8px;
  font-size: 12px;
  min-width: 34px;
  min-height: 32px;
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.settings-remove {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  border-color: var(--line);
  color: var(--danger);
  border: 1px solid var(--line);
  background: transparent;
}

.snapshot-card__actions > a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: none;
}

.snapshot-card__actions > button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.snapshot-preview__toolbar a {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.snapshot-preview__toolbar button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.sidebar-action:hover {
  border-color: var(--line-strong);
  background: var(--teal-soft);
  color: var(--ink);
  transform: none;
}

.topbar-link:hover {
  border-color: var(--line-strong);
  background: var(--teal-soft);
  color: var(--ink);
  transform: none;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--teal-soft);
  color: var(--ink);
  transform: none;
}

.tile-action:hover {
  border-color: var(--line-strong);
  background: var(--teal-soft);
  color: var(--ink);
  transform: none;
}

.settings-remove:hover {
  transform: none;
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-soft);
}

.sidebar-action:active {
  transform: translateY(0);
}

.topbar-link:active {
  transform: translateY(0);
}

.icon-button:active {
  transform: translateY(0);
}

.tile-action:active {
  transform: translateY(0);
}

.settings-remove:active {
  transform: translateY(0);
}

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

.sidebar__footer {
  margin-top: auto;
  padding: 12px 0;
  min-width: 0;
}

.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;
  color: var(--ink);
}

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

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

.sidebar-icon-link {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.sidebar-icon-button {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.sidebar-icon-link:hover {
  border-color: var(--line-strong);
  background: var(--teal-soft);
  color: var(--ink);
  transform: none;
}

.sidebar-icon-button:hover {
  border-color: var(--line-strong);
  background: var(--teal-soft);
  color: var(--ink);
  transform: none;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--teal-soft);
  color: var(--teal-strong);
}

.message__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--teal-soft);
  color: var(--teal-strong);
}

.settings-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--teal-soft);
  color: var(--teal-strong);
}

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

.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 var(--line-strong);
  border-radius: 4px;
  background: var(--teal);
  color: var(--ink-soft);
  padding: 2px 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none;
}

.workspace-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  position: relative;
  isolation: isolate;
  grid-template-rows: 52px minmax(0, 1fr);
  background: var(--surface);
}

.workspace-status-strip {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  gap: 12px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.workspace-status-strip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  border-color: var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--teal-strong);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  border-color: var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--teal-strong);
  animation: none;
}

.status-badge--idle {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--ink-soft);
}

.status-badge--sharing {
  background: var(--panel);
  color: var(--ink-soft);
  animation: none;
}

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

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

.live-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  animation: none;
}

.screens-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: var(--surface);
  background-image: none;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.focus-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  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: 600;
}

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

.focus-mode-banner--active {
  border-bottom-color: var(--line-strong);
  background: var(--teal-soft);
}

.focus-mode-banner__clear {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.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);
  min-height: 0;
  overflow: auto;
  gap: 8px;
  padding: 10px;
  perspective: none;
}

.tile-grid--stage {
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  grid-auto-rows: minmax(320px, 1fr);
  gap: 8px;
  padding: 10px;
  perspective: none;
  flex: 1;
  min-height: 0;
}

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

.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--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;
  text-align: center;
  min-height: 196px;
  padding: 30px 24px;
  gap: 8px;
  color: var(--muted);
}

.tile-grid__empty h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  font-size: 18px;
  font-weight: 500;
}

.tile-grid__empty p {
  margin: 0;
  line-height: 1.45;
  color: var(--ink-soft);
  font-size: 13px;
  max-width: 340px;
}

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

.screen-tile {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  border-color: var(--line);
  border-radius: 4px;
  background: var(--screen);
  box-shadow: none;
  animation: none;
  transition: border-color 140ms ease;
}

.screen-tile--focused {
  cursor: default;
  border-color: var(--teal);
  box-shadow: none;
}

.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: var(--screen);
  background-image: none;
}

.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 var(--line-strong);
  background: var(--panel);
  color: var(--ink-soft);
  opacity: 0.82;
  transform: translateY(-2px);
  backdrop-filter: none;
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

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

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

.screen-tile--focused .screen-focus-affordance {
  opacity: 1;
  transform: translateY(0);
  background: var(--teal);
  color: var(--ink-soft);
}

.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: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  text-shadow: none;
  animation: none;
}

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

.screen-pointer__dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--teal);
  box-shadow: none;
}

.screen-pointer__label {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  padding: 3px 7px;
  backdrop-filter: none;
}

.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: var(--ink-soft);
  text-align: center;
}

.screen-tile__placeholder-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 270px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  padding: 18px;
  box-shadow: none;
  backdrop-filter: none;
  color: var(--ink-soft);
}

.screen-tile__placeholder-card strong {
  color: var(--ink-soft);
}

.screen-tile__placeholder-card small {
  color: var(--ink-soft);
  line-height: 1.4;
}

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

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

.screen-tile__identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 160px;
  gap: 4px 10px;
  min-width: 0;
  margin-right: auto;
  font-size: 12px;
}

.screen-tile__capture-feedback {
  flex-basis: 100%;
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.screen-tile__capture-feedback:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.screen-tile__capture-feedback[data-state="error"] {
  color: var(--danger);
}

.screen-tile__capture-action {
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
}

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

.screen-tile__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}

.screen-tile__comment-count {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}

.screen-tile__comment-preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
  font-size: 0.74rem;
  font-weight: 600;
  font-style: italic;
  opacity: 0.82;
  color: var(--ink);
}

.screen-tile__snapshot-count {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}

.screen-tile__snapshot-status {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.screen-tile__meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
}

.screen-tile__shortcut-hint {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.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(--teal);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
}

.screen-tile__title-input:focus {
  border-color: var(--teal);
  box-shadow: none;
}

.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: 4px;
  background: transparent;
  color: var(--ink-dim);
  font-size: 0.72rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

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

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

.screen-tile__edit-title:hover {
  background: var(--surface-2);
  color: var(--teal);
}

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

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

.screen-tile__elapsed {
  color: var(--teal);
  font-weight: 600;
}

.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: 4px;
  transition: color 0.15s, background 0.15s;
}

.screen-tile__drag-handle:hover {
  color: var(--ink);
  background: var(--surface-2);
}

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

.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 {
  display: none;
}

.screen-tile__reorder-ghost {
  box-shadow: none;
  border-radius: 4px;
  transition: none;
}

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

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

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

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

.tile-action--danger {
  border-color: var(--line-strong);
  color: var(--danger);
}

.topbar-danger {
  border-color: var(--line-strong);
  border-radius: 4px;
  box-shadow: none;
  color: var(--danger);
  background: transparent;
  border: 1px solid var(--danger);
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.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 var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink-soft);
  opacity: 0.72;
  padding: 0;
  cursor: grab;
  pointer-events: auto;
  backdrop-filter: none;
  transition: opacity 140ms ease, background 140ms ease, transform 140ms ease;
}

.tile-comments:hover .tile-comments__drag {
  opacity: 1;
  background: var(--surface-2);
}

.tile-comments__drag:focus-visible {
  opacity: 1;
  background: var(--panel);
}

.tile-comments--dragging .tile-comments__drag {
  opacity: 1;
  background: var(--panel);
  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 var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink-soft);
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.25;
  pointer-events: auto;
  backdrop-filter: none;
}

.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 {
  opacity: 1;
}

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

.tile-comments--dragging .tile-comment-form {
  opacity: 1;
}

.tile-comment-form input {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink-soft);
  padding: 9px 42px 9px 11px;
  backdrop-filter: none;
}

.composer input[type="submit"] {
  padding: 10px 14px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--teal);
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  background: var(--teal);
  color: var(--page);
}

.message-reply-form input[type="submit"] {
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: none;
}

.share-button {
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--teal);
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  background: var(--teal);
  color: var(--page);
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
}

.pricing-button {
  display: block;
  margin-top: auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-color: var(--line-strong);
  border: 1px solid var(--teal);
  border-radius: 4px;
  background: transparent;
  color: var(--teal-strong);
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  height: 36px;
  min-height: 36px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
}

.auth-form input[type="submit"] {
  padding: 10px 14px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--teal);
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  background: var(--teal);
  color: var(--page);
}

.settings-form input[type="submit"] {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--teal);
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  background: var(--teal);
  color: var(--page);
  width: fit-content;
  justify-self: start;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}

.settings-add-person input[type="submit"] {
  font-weight: 600;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--teal);
  border-radius: 4px;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  background: var(--teal);
  color: var(--page);
  padding: 0 12px;
  height: 36px;
  min-height: 36px;
  font-size: 12px;
}

.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 var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--teal-strong);
  padding: 0;
  font-weight: 600;
  transform: translateY(-50%);
  backdrop-filter: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.tile-comment-form .tile-comments__drag:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--teal);
  transform: translateY(-50%) scale(1.04);
}

.composer:has(textarea:placeholder-shown) input[type="submit"] {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.composer input[type="submit"]:hover {
  border-color: var(--teal-strong);
  background: var(--teal-strong);
  color: var(--page);
  filter: none;
  transform: none;
  box-shadow: none;
}

.share-button:hover {
  border-color: var(--teal-strong);
  background: var(--teal-strong);
  color: var(--page);
  filter: none;
  transform: none;
  box-shadow: none;
}

.workspace-feedback {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.workspace-feedback[data-state="error"] {
  color: var(--danger);
}

.workspace-feedback[data-state="success"] {
  color: var(--teal);
}

.workspace-presence-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 0;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  backdrop-filter: none;
  margin: 0 12px 12px;
  border-color: var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  box-shadow: none;
  transform: none;
}

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

.presence-zone {
  display: grid;
  gap: 8px;
  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 {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

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

.presence-dot--sharing {
  animation: none;
}

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

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

.presence-roster {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.presence-roster__member {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 6px 8px;
  min-width: 0;
  padding: 8px 4px;
  color: var(--ink-soft);
}

.presence-roster__member--sharing {
  border-color: var(--line-strong);
  box-shadow: none;
}

.presence-roster__member--online {
  color: var(--ink);
}

.presence-roster__avatar {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.presence-roster__identity {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.presence-roster__role {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.presence-roster__state {
  grid-column: 2 / -1;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1;
}

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  border-radius: 4px;
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 20px 8px;
  font-size: 13px;
  font-weight: 400;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  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 {
  border-color: var(--line-strong);
  box-shadow: none;
  transform: translateY(-1px);
}

.presence-pill:focus-visible {
  border-color: var(--line-strong);
  box-shadow: none;
  transform: translateY(-1px);
}

.presence-pill__avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

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

.presence-pill:nth-child(3n + 3) .presence-pill__avatar {
  background: var(--panel);
  color: var(--muted);
}

.presence-zone__actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

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

.share-button--locked {
  box-shadow: none;
  border-color: var(--line-strong);
  background: transparent;
  color: var(--muted);
}

.share-button--request {
  box-shadow: none;
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
}

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

.workspace-permissions {
  display: none;
}

.workspace-activity-log {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  padding: 10px;
}

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

.workspace-activity-log__header small::before {
  content: "›";
  display: inline-block;
  width: 12px;
}

.workspace-activity-log[open] .workspace-activity-log__header small::before {
  content: "⌄";
}

.workspace-activity-log .session-log {
  margin-top: 10px;
  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;
  color: var(--ink);
  cursor: pointer;
  border-radius: 4px;
  box-shadow: none;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  background: transparent;
}

.workspace-invite-tile:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.workspace-invite-tile:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

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

.workspace-dock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.workspace-brief-copy {
  display: flex;
  min-width: 0;
}

.workspace-brief-copy__button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: none;
}

.workspace-brief-copy__button:hover {
  border-color: var(--teal);
  box-shadow: none;
}

.workspace-brief-copy__button:focus-visible {
  border-color: var(--teal);
  box-shadow: none;
}

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

.rooms-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;
  right: -7px;
}

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

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

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

.rooms-resize-handle:hover span {
  background: var(--teal);
  opacity: 1;
  transform: scaleY(1.18);
}

.rooms-resize-handle:focus-visible span {
  background: var(--teal);
  opacity: 1;
  transform: scaleY(1.18);
}

.workspace-resize-handle:hover span {
  background: var(--teal);
  opacity: 1;
  transform: scaleY(1.18);
}

.workspace-resize-handle:focus-visible span {
  background: var(--teal);
  opacity: 1;
  transform: scaleY(1.18);
}

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

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

.workspace-chat-rail {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left-color: var(--line);
  backdrop-filter: none;
  background: var(--surface);
  background-image: none;
  border-left: 1px solid var(--line);
  box-shadow: none;
}

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

.topbar {
  display: flex;
  align-items: center;
  min-height: 52px;
  flex: 0 0 52px;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.topbar__actions form {
  margin: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.topbar p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.typing-indicator {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  animation: typing-pulse 1.5s ease-in-out infinite;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-size: 11px;
  margin: 0;
}

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

.message time {
  color: var(--muted);
  font-size: 12px;
}

.log-entry p {
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 0;
}

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

.chat-tabs__button {
  min-height: 48px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 2px;
  position: relative;
  overflow: visible;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  border-radius: 4px;
}

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

.chat-panel__body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: var(--surface);
  background-image: none;
}

.chat-new-activity {
  position: sticky;
  z-index: 4;
  bottom: 10px;
  justify-self: center;
  margin: 12px auto 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-soft);
  padding: 9px 14px;
  font-weight: 600;
  box-shadow: none;
}

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

.chat-stream__new-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 0;
  height: 1px;
  background: var(--surface);
  border: none;
}

.chat-stream__new-divider span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-soft);
  padding: 2px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
}

.chat-scroll-to-top {
  position: sticky;
  z-index: 4;
  top: 0;
  justify-self: center;
  margin: 0 auto 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-soft);
  padding: 9px 14px;
  font-weight: 600;
  box-shadow: none;
  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 var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-soft);
  padding: 10px 16px;
  font-size: 0.875rem;
  box-shadow: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.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;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0 2px;
  font-weight: 500;
  background: transparent;
}

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

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

.chat-snapshot-filter__count {
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-weight: 400;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 4px;
  min-width: 16px;
  height: 16px;
}

.chat-snapshot-filter[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--panel);
  color: var(--ink);
}

.chat-snapshot-filter[aria-pressed="true"] .chat-snapshot-filter__count {
  background: var(--teal);
  color: var(--ink-soft);
}

.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 {
  display: none;
}

.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: var(--panel);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

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

.chat-search-clear:hover {
  background: var(--surface-2);
  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;
  padding: 4px;
  border-radius: 0;
  transition: background 140ms ease;
}

.message:hover {
  background: var(--surface-2);
  box-shadow: none;
  transform: none;
}

.message:focus-within {
  background: var(--panel);
}

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

.message__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
}

.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: 600;
  color: var(--ink-soft);
}

.mention {
  display: inline;
  color: var(--teal);
  background: var(--panel);
  border-radius: 4px;
  padding: 1px 3px;
  font-weight: 600;
  cursor: default;
}

}

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

.message-reply:hover {
  background: var(--surface-2);
  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: 600;
}

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

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

.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: 4px;
  background: transparent;
  color: var(--ink);
  padding: 5px 8px;
  font-size: 12px;
}

.message-action:hover {
  background: var(--surface-2);
}

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

.message__toolbar .button_to {
  margin: 0;
}

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

.message__react-btn:hover {
  background: var(--hover-bg, var(--surface-2));
  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, var(--panel));
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  user-select: none;
}

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

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

.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: 4px;
  background: var(--panel);
  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(--teal);
  outline: 2px solid var(--teal);
  box-shadow: none;
}

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

.message__save-edit {
  border: 0;
  border-radius: 4px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--teal);
  color: var(--ink-soft);
}

.message__cancel-edit {
  border: 0;
  border-radius: 4px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--ink-soft);
}

.message__save-edit:hover {
  background: var(--teal-strong);
}

.message__cancel-edit:hover {
  background: var(--surface-2);
}

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

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

.message__edit-btn {
  color: var(--ink-soft);
}

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

.message__edit-btn:hover {
  color: var(--ink);
}

.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: 4px;
  background: var(--surface);
  padding: 8px;
}

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

.message-reply-form textarea {
  min-width: 0;
  resize: none;
  border: 1px solid var(--line);
  padding: 10px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  color: var(--ink);
  border-radius: 4px;
  background: var(--screen-2);
  box-shadow: none;
}

.composer textarea {
  min-width: 0;
  resize: none;
  border: 1px solid var(--line);
  padding: 10px 12px;
  min-height: 44px;
  max-height: 128px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  color: var(--ink);
  border-radius: 4px;
  background: var(--screen-2);
  box-shadow: none;
}

.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);
  padding: 14px 12px;
  border-top-color: var(--line);
  backdrop-filter: none;
  border-color: var(--line);
  background: var(--surface);
  background-image: none;
  box-shadow: none;
}

.log-entry {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}

.log-entry > div { min-width: 0; }
.log-entry strong { font-size: 13px; font-weight: 500; }

.log-entry__icon {
  padding-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

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

.snapshot-card__image-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 120px;
  overflow: hidden;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.snapshot-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  background: var(--surface);
}

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

.snapshot-card__overlay span {
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink-soft);
  padding: 7px 12px;
}

.snapshot-card__image-button:hover .snapshot-card__overlay {
  background: var(--surface-2);
  opacity: 1;
}

.snapshot-card__image-button:focus-visible .snapshot-card__overlay {
  background: var(--panel);
  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: 4px;
  background: transparent;
  color: var(--muted);
  padding: 3px 5px;
  cursor: pointer;
  font-size: 12px;
  opacity: 1;
  transition: opacity 120ms ease, color 120ms ease, border-color 120ms ease;
}

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

.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(--teal);
  border-radius: 4px;
  background: var(--page);
  color: var(--ink);
  padding: 5px 8px;
  font-size: 13px;
}

.snapshot-card__cancel-caption {
  border: 0;
  border-radius: 3px;
  padding: 5px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.snapshot-card__caption-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.snapshot-card__caption-status:empty {
  display: none;
}

.snapshot-card__caption-status[data-state="error"] {
  color: var(--danger);
}

.snapshot-card__save-caption {
  border: 1px solid var(--teal);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--page);
  background: var(--teal);
}

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

.snapshot-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
}

.snapshot-card__actions .snapshot-disclosure {
  margin-left: auto;
}

.snapshot-disclosure > summary {
  min-height: 30px;
  padding-inline: 8px;
}

.snapshot-disclosure .snapshot-copy-status {
  display: block;
  min-height: 20px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 11px;
}

.snapshot-copy-status {
  min-width: 70px;
  color: var(--teal);
  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: var(--ink-soft);
  padding: 0;
}

.snapshot-preview__dialog::backdrop {
  background: var(--panel);
}

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

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

.snapshot-preview__toolbar strong {
  display: block;
}

.snapshot-preview__toolbar span {
  display: block;
  color: var(--ink-soft);
  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__position {
  color: var(--ink-soft);
  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: 4px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink-soft);
  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: var(--surface-2);
}

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

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

#how-it-works::before {
  content: "";
  display: block;
  height: 1px;
  max-width: 1264px;
  margin: 0 auto;
  background: var(--surface);
}

#pricing::before {
  content: "";
  display: block;
  height: 1px;
  max-width: 1264px;
  margin: 0 auto;
  background: var(--surface);
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--page);
}

.subscription-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--page);
}

.auth-panel {
  width: min(420px, 100%);
  padding: 28px;
  border-color: var(--line-strong);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  background-image: none;
  transition: border-color 140ms ease, background 140ms ease;
  box-shadow: none;
}

.subscribe-prompt {
  width: min(440px, 100%);
  padding: 28px;
  border-color: var(--line-strong);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  background-image: none;
  transition: border-color 140ms ease, background 140ms ease;
  box-shadow: none;
}

.settings-panel {
  border-color: var(--line-strong);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  background-image: none;
  transition: border-color 140ms ease, background 140ms ease;
  box-shadow: none;
  padding: 24px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-color: var(--line-strong);
  color: var(--ink);
  background-image: none;
  transition: border-color 140ms ease, background 140ms ease;
  box-shadow: none;
  padding: 24px;
  min-height: 0;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  animation: none;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
}

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

.auth-panel p {
  color: var(--muted);
}

.auth-switch {
  color: var(--muted);
}

.form-errors {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form__field {
  display: grid;
  gap: 6px;
}

.auth-form__field label {
  color: var(--ink-soft);
  font-size: 12px;
}

.profile-password {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-password summary {
  padding: 14px 0;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
}

.profile-password summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.profile-password__fields {
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
}

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

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

.auth-form input:not([type="submit"]) {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: none;
  border-radius: 4px;
  border-color: var(--line);
  background: var(--screen-2);
}

.settings-form input:not([type="submit"]) {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: none;
  border-radius: 4px;
  border-color: var(--line);
  background: var(--screen-2);
}

.settings-copy-link input {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: none;
  border-radius: 4px;
  border-color: var(--line);
  background: var(--screen-2);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 0;
}

.settings-add-person input:not([type="submit"]) {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  border-radius: 4px;
  background: var(--screen-2);
  box-shadow: none;
  padding: 8px;
  font-size: 12px;
  min-width: 0;
}

.settings-role-form select {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: none;
  border-radius: 4px;
  border-color: var(--line);
  background: var(--screen-2);
}

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

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

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

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

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

.pricing-page > .landing-nav {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 24px;
}

.pricing-page .landing-nav__actions {
  min-width: 0;
  max-width: 65%;
}

.pricing-page .landing-nav__actions > a:not(.landing-button) {
  overflow-wrap: anywhere;
  text-align: right;
}

.pricing-hero {
  margin: 0 auto;
  max-width: 1040px;
  padding: 40px 24px 28px;
  text-align: left;
}

.pricing-hero h1 {
  max-width: none;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  margin: 8px 0 12px;
}

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

.pricing-grid {
  display: grid;
  margin: 0 auto;
  border-color: var(--line);
  gap: 16px;
  max-width: 1040px;
  padding: 0 24px;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.pricing-card--highlight {
  border-color: var(--line-strong);
}

.pricing-card h2 {
  margin-top: 0;
  color: var(--ink-soft);
}

.pricing-card p {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

.pricing-card ul {
  margin-top: 0;
  display: grid;
  padding: 0;
  list-style: none;
  gap: 9px;
  margin-bottom: 0;
}

.pricing-card li {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

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

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

/* Landing shows the host plan on its own; center it instead of leaving a gap. */
.pricing-grid--host-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
}

.pricing-grid--current {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.pricing-card__current-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pricing-card__current-heading h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.plan-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.plan-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.pricing-grid--current .pricing-card--host .pricing-button {
  align-self: start;
  width: auto;
  margin-top: auto;
}

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

.pricing-card__badge {
  align-self: start;
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

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

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

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

.pricing-toggle {
  display: inline-grid;
  align-items: center;
  border-radius: 4px;
  box-shadow: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--line);
  background: var(--page);
}

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

.pricing-toggle label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  border-radius: 4px;
  box-shadow: none;
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--muted);
}

.pricing-toggle label span {
  color: var(--teal);
  font-size: 10px;
}

.pricing-toggle input:checked + label {
  border-radius: 4px;
  box-shadow: none;
  background: var(--surface-2);
  color: var(--ink);
}

.pricing-intervals {
  border-radius: 4px;
  box-shadow: none;
  border: 0;
  padding: 0;
  background: transparent;
}

.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 {
  line-height: 0.92;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.pricing-card__note {
  min-height: 0;
  margin-bottom: 16px;
}

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

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

.settings-nav {
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}

.settings-shell {
  max-width: 1120px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.settings-header {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 24px 0 12px;
}

.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 {
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 4px;
  box-shadow: none;
  background: transparent;
}

.settings-subnav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

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

.settings-header h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
}

.settings-header p {
  margin: 0;
  color: var(--muted);
}

.settings-panel h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.settings-panel h3 {
  margin: 0;
}

.settings-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.settings-member span {
  color: var(--muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.settings-panel__heading--split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.settings-invite .settings-panel__heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.settings-panel__heading--split > div:first-child {
  display: grid;
  gap: 5px;
}

.settings-add-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-radius: 4px;
  border-color: var(--line);
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 300px;
}

.settings-copy-link {
  display: grid;
  gap: 7px;
}

.settings-form label {
  display: grid;
  gap: 7px;
}

.settings-form label span {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.settings-copy-link span {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.settings-qr {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 96px;
  height: 96px;
  padding: 6px;
  flex: 0 0 auto;
  background: #ffffff;
}

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

.settings-table {
  display: grid;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 4px;
  background: var(--panel);
  box-shadow: none;
}

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

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

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

.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 {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-role-badge {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
}

.settings-role-picker {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 4px;
  border-color: var(--line);
  background: var(--screen-2);
}

.settings-role-option {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: 4px;
  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 {
  background: var(--teal-soft);
  color: var(--ink);
}

.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: var(--line-strong);
}

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

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

.popout-panel {
  height: 100dvh;
}

.screen-popout {
  height: 100dvh;
}

.popout-chat .popout-panel {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

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

.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);
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
}

.presence-zone__meta {
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
}

.tile-comments__count {
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
}

.share-button::after {
  position: absolute;
  inset: 0 auto 0 -28%;
  width: 24%;
  background: var(--surface);
  content: "";
  transform: translateX(-140%) skewX(-18deg);
  display: none;
}

.composer input[type="submit"]::after {
  position: absolute;
  inset: 0 auto 0 -28%;
  width: 24%;
  background: var(--surface);
  content: "";
  transform: translateX(-140%) skewX(-18deg);
  display: none;
}

.auth-form input[type="submit"]::after {
  position: absolute;
  inset: 0 auto 0 -28%;
  width: 24%;
  background: var(--surface);
  content: "";
  transform: translateX(-140%) skewX(-18deg);
  display: none;
}

.pricing-button::after {
  position: absolute;
  inset: 0 auto 0 -28%;
  width: 24%;
  background: var(--surface);
  content: "";
  transform: translateX(-140%) skewX(-18deg);
  display: none;
}

.auth-form input[type="submit"]:hover {
  border-color: var(--teal-strong);
  background: var(--teal-strong);
  color: var(--page);
  filter: none;
  transform: none;
  box-shadow: none;
}

.settings-form input[type="submit"]:hover {
  border-color: var(--teal-strong);
  background: var(--teal-strong);
  color: var(--page);
  filter: none;
  transform: none;
  box-shadow: none;
}

.settings-add-person input[type="submit"]:hover {
  border-color: var(--teal-strong);
  background: var(--teal-strong);
  color: var(--page);
  filter: none;
  transform: none;
  box-shadow: none;
}

.pricing-button:hover {
  border-color: var(--teal-strong);
  background: var(--teal-strong);
  color: var(--page);
  filter: none;
  transform: none;
  box-shadow: none;
}

.share-button:hover::after {
  animation: none;
}

.composer input[type="submit"]:hover::after {
  animation: none;
}

.auth-form input[type="submit"]:hover::after {
  animation: none;
}

.pricing-button:hover::after {
  animation: none;
}

.pricing-card:hover {
  box-shadow: none;
  background: var(--surface);
  transform: none;
  border-color: var(--line-strong);
}

.screen-tile:hover {
  border-color: var(--line-strong);
  filter: none;
  transform: none;
}

.screen-focus-affordance:hover {
  transform: translateY(-1px);
}

.chat-tabs__button--active::after {
  position: absolute;
  box-shadow: none;
  content: "";
  right: 18px;
  bottom: 8px;
  left: 18px;
  height: 2px;
  opacity: 0.85;
  background: var(--teal);
  border-radius: 0;
}

.message--new-arrival {
  animation: messageArrivalRise 520ms ease;
}

.message--highlight {
  animation: messageHighlightPulse 1.2s ease;
  border-radius: 4px;
}

.pinned-messages {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  border-color: var(--line);
  background: var(--surface);
  background-image: none;
  box-shadow: none;
}

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

.pinned-messages__header small {
  color: var(--muted);
  font-weight: 600;
  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 var(--line-strong);
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--panel);
  box-shadow: none;
}

.pinned-message:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.pinned-message__label {
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink-soft);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
}

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

.message--pinned {
  background: var(--panel);
  box-shadow: none;
}

.message__pin-btn {
  color: var(--ink-soft);
}

.message__pin-btn--active {
  background: var(--panel);
  color: var(--ink-soft);
}

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

.message-reply-form textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
  box-shadow: none;
}

.composer textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
  box-shadow: none;
}

.auth-form input:not([type="submit"]):focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
  box-shadow: none;
}

.settings-form input:not([type="submit"]):focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
  box-shadow: none;
}

.settings-copy-link input:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
  box-shadow: none;
}

.settings-add-person input:not([type="submit"]):focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
  box-shadow: none;
}

.settings-role-form select:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
  box-shadow: none;
}

.room-list__item--active:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.room-list__item--active:focus-visible {
  background: var(--panel);
  color: var(--ink);
}

.composer textarea::placeholder {
  color: var(--ink-soft);
}

.message-reply-form textarea::placeholder {
  color: var(--ink-soft);
}

.pricing-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-color: var(--line-strong);
  box-shadow: none;
}

.pricing-card h3 {
  color: var(--ink-soft);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

.message-reply-form input[type="submit"]:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: none;
}

.topbar-danger:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--danger);
}

.snapshot-card__jump {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--ink-soft);
}

.snapshot-card__jump:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-soft);
}

.screen-tile--snapshot-jump {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
  box-shadow: none;
  animation: none;
}

.workspace-restore-controls { display: none; }
body.chrome-hidden .workspace-restore-controls {
  display: block;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 30;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
}

body.chrome-hidden .sidebar {
  display: none;
}

body.chrome-hidden .workspace-chat-rail {
  display: none;
}

body.chrome-hidden .workspace-presence-dock {
  display: none;
}

body.chrome-hidden .collapse-tab {
  display: none;
}

body.chrome-hidden .workspace-resize-handle {
  display: none;
}

body.chrome-hidden .rooms-resize-handle {
  display: none;
}

body.chrome-hidden .screen-tile__footer {
  display: none;
}

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

body.chrome-hidden .tile-grid--stage {
  padding: 8px;
}

.workspace--empty .workspace-status-strip .icon-button[data-screens-target="fullscreenButton"] {
  display: none;
}

.workspace--empty .workspace-status-strip .layout-toggle {
  display: none;
}

.workspace--empty .workspace-status-strip .icon-button[data-action*="toggleChrome"] {
  display: none;
}

.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 var(--line-strong);
}

body.screens-open .screenpods-shell {
  grid-template-columns: var(--rooms-width, 248px) minmax(0, 1fr) var(--chat-width, minmax(360px, 420px));
  background: var(--page);
  color: var(--ink);
}

.pricing-button:not(.pricing-button--secondary) {
  background: var(--teal);
  color: var(--page);
}

[hidden] {
  display: none !important;
}

.brand__mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 6px;
  right: -5px;
  bottom: -5px;
  border: 2px solid var(--teal);
  border-radius: 2px;
  background: var(--page);
  border-color: var(--ink-soft);
}

.workspace-status-strip__presence {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
}

.workspace-member-avatars {
  display: flex;
  gap: 2px;
}

.workspace-member-avatars .presence-roster__avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-2);
}

.topbar__leading {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.topbar .icon-button {
  border: 0;
  height: 26px;
  min-height: 26px;
  width: 24px;
}

.topbar .topbar-link {
  border: 0;
  padding: 4px 6px;
  min-height: 26px;
  height: 26px;
  font-size: 11px;
  color: var(--muted);
}

.chat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 0 2px;
  cursor: pointer;
}

.chat-tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

.chat-log-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.chat-filter-bar:has(.chat-search[hidden]) {
  display: none;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.form-actions a {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 8px;
}

.settings-header > p {
  max-width: 560px;
  font-size: 13px;
}

.settings-header > .eyebrow {
  font-size: 11px;
}

.settings-section {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  background: var(--surface);
}

.settings-section .settings-form {
  margin-top: 0;
  gap: 16px;
}

.settings-general-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.settings-general-invite .settings-invite {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.settings-host {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
}

.settings-host-note {
  font-size: 12px;
}

.settings-nav .auth-brand {
  color: var(--ink);
  font-weight: 500;
}

.settings-nav .topbar-link {
  min-width: 0;
  max-width: 65%;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.pricing-card.pricing-card--host {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--teal);
  animation: none;
}

.pricing-card.pricing-card--host:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  border-top-color: var(--teal);
  transform: none;
}

.pricing-card__price small {
  font-size: 12px;
  color: var(--muted);
}

.pricing-toggle input:focus-visible + label {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.pricing-card--host .pricing-button {
  margin-top: 16px;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

body.chrome-hidden .screenpods-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.chrome-hidden .workspace-stage {
  grid-template-rows: minmax(0, 1fr);
}

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

* {
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

*::before {
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

*::after {
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

.screen-tile:hover {
  transform: none;
}

.screen-tile--snapshot-jump {
  animation: none;
}

.snapshot-card__jump {
  transition: none;
}
}

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

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

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

@media (max-width: 840px) {
.workspace-status-strip > .workspace-status-strip__presence { flex-basis: 100%; justify-content: flex-end; gap: 8px; }
.workspace-status-strip > .workspace-status-strip__identity { flex: 1; }
.workspace-status-strip > .workspace-status-strip__identity strong { max-width: 100%; }
.workspace-status-strip .presence-zone__actions { margin-right: auto; }
.disclosure > summary { min-height: 36px; }
.topbar { min-height: 44px; flex-basis: 44px; }

.topbar [data-workspace-target="chatButton"], .workspace-resize-handle, .rooms-resize-handle { display: none; }

.workspace-status-strip {
  flex-wrap: wrap;
}

.workspace-mobile-nav {
  display: block;
}

.pricing-grid {
  grid-template-columns: minmax(0, 1fr);
  padding: 0 18px;
}

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

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

.sidebar {
  display: none;
}

.collapse-tab {
  display: none;
}

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

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

.workspace-stage {
  grid-template-rows: auto minmax(0, 1fr);
}

.screens-panel {
  min-height: 0;
  overflow: visible;
  grid-template-rows: auto auto;
}

.chat-panel {
  min-height: 0;
  overflow: visible;
}

.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: minmax(0, 1fr);
}

.presence-zone__actions {
  flex: 1 1 auto;
}

.presence-roster__member {
  max-width: 100%;
}

.screen-tile__identity > * {
  max-width: 100%;
}

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

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

.composer {
  padding: 10px;
}

.settings-header {
  padding: 16px 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.settings-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.settings-panel__heading--split {
  display: grid;
}

.settings-member {
  grid-template-columns: minmax(0, 1fr) auto;
}

.settings-subnav {
  gap: 0;
  font-size: 12px;
  display: flex;
  position: static;
  overflow: auto;
}

.settings-add-person {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: none;
}

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

body .screenpods-shell {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(460px, 1fr);
  height: auto;
  min-height: 100dvh;
}

.chat-panel__body {
  flex: 1;
  min-height: 240px;
  max-height: 60dvh;
  overflow: auto;
  padding: 12px;
}

.workspace-status-strip {
  padding: 8px 12px;
  gap: 8px;
}

.workspace-status-strip__presence {
  font-size: 10px;
  gap: 4px;
}

.workspace-member-avatars {
  display: none;
}

.settings-general-invite {
  grid-template-columns: minmax(0, 1fr);
}

.settings-general-invite .settings-invite {
  border-left: 0;
  border-top: 1px solid var(--line);
  padding-left: 0;
  padding-top: 20px;
}

.settings-page {
  padding: 16px;
}

.settings-panel, .settings-section {
  padding: 20px;
}

.settings-subnav a {
  white-space: nowrap;
  background: transparent;
}

.settings-host-note {
  white-space: normal;
}

.settings-presenter-toggle {
  font-size: 12px;
}

.pricing-hero {
  padding: 28px 18px 24px;
}

.pricing-hero h1 {
  font-size: 26px;
}

.pricing-card {
  padding: 22px;
}

.popout-chat .chat-panel__body {
  max-height: none;
  min-height: 0;
  flex: 1;
}

.workspace-invite-tile {
  white-space: nowrap;
}

.tile-grid__empty {
  min-height: 180px;
  padding: 24px 18px;
}
}

@media (max-width: 1100px) and (min-width: 841px) {
.screenpods-shell {
  grid-template-columns: var(--rooms-width, 224px) minmax(0, 1fr) var(--chat-width, minmax(320px, 380px));
}

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

@keyframes messageArrivalRise { from { opacity: 0; } to { opacity: 1; } }

@keyframes messageHighlightPulse { from { background: var(--teal-soft); } to { background: transparent; } }

@keyframes screenSourceHighlight { from { outline: 2px solid var(--teal); } to { outline: 2px solid transparent; } }

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

@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.pricing-hero .eyebrow {
  font-size: 11px;
}

@media (min-width: 841px) and (max-width: 1100px) {
body.chat-popout-active .screenpods-shell {
  grid-template-columns: var(--rooms-width, 224px) minmax(0, 1fr) 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

body.rooms-collapsed .rooms-resize-handle {
  display: none;
}

body.chat-collapsed .workspace-resize-handle {
  display: none;
}

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