:root {
  color-scheme: dark;
  --bg: #0c1011;
  --shell: #111617;
  --panel: #222224;
  --panel-2: #2a2a2d;
  --panel-3: #343439;
  --line: #3c3f45;
  --line-soft: #2b2f34;
  --text: #f5f7fb;
  --muted: #9aa1ab;
  --blue: #1677ee;
  --blue-2: #2356c9;
  --orange: #ff672b;
  --green: #29c565;
  --red: #ff3b62;
  --pink: #da5bd7;
  --radius: 8px;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 0;
  background: #060808;
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

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

.cm-calm-route {
  min-height: 100vh;
  background: #f6f7f4;
  color: #17202c;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.cm-calm-route button,
.cm-calm-route input,
.cm-calm-route select,
.cm-calm-route textarea {
  font: inherit;
}

.cm-calm-route .cm-icon.icon-dot {
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font-size: inherit;
}

.cm-calm-route .cm-icon.icon-dot svg {
  width: 1.1em;
  height: 1.1em;
}

.cm-calm-nav .cm-icon {
  font-size: 18px;
}

.cm-action-toolbar .cm-icon,
.cm-prejoin-toolbar .cm-icon,
.cm-capability-trigger .cm-icon {
  font-size: 20px;
}

.cm-capability-content > .cm-icon {
  font-size: 22px;
}

.cm-empty-state .cm-icon {
  font-size: 28px;
}

.cm-video-placeholder .cm-icon {
  font-size: 34px;
}

.cm-calm-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid #d9ded9;
  background: rgba(250, 251, 248, 0.94);
  backdrop-filter: blur(18px);
}

.cm-calm-topbar.is-public {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.cm-calm-spacer {
  min-width: 0;
}

.cm-calm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
  color: #16202b;
  text-align: left;
}

.cm-calm-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd3d7;
  border-radius: 8px;
  background: #ffffff;
  color: #244c72;
  font-size: 12px;
  font-weight: 850;
}

.cm-calm-brand strong,
.cm-calm-brand em {
  display: block;
  font-style: normal;
  line-height: 1.05;
}

.cm-calm-brand em {
  color: #687380;
  font-size: 12px;
  font-weight: 750;
}

.cm-calm-nav {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.cm-calm-nav button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #5d6672;
  font-size: 13px;
  font-weight: 760;
}

.cm-calm-nav button:hover,
.cm-calm-nav button.is-active {
  border-color: #d3dbe0;
  background: #ffffff;
  color: #16202b;
}

.cm-calm-top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.cm-quiet-link {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  color: #4d5965;
  font-size: 13px;
  font-weight: 800;
}

.cm-google-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #cbd5dc;
  border-radius: 8px;
  background: #ffffff;
  color: #16202b;
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.cm-google-button.is-primary {
  border-color: #b9c6cf;
  box-shadow: 0 10px 24px rgba(31, 50, 65, 0.08);
}

.cm-google-button.is-large {
  min-height: 46px;
  padding: 0 18px;
}

.cm-google-button.is-compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.cm-google-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}

.cm-google-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}

.cm-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 16px;
  border: 1px solid #cbd5dc;
  font-weight: 820;
  line-height: 1;
}

.cm-button-primary {
  border-color: #1f4f76;
  background: #1f4f76;
  color: #ffffff;
}

.cm-button-secondary {
  border-color: #c9d4da;
  background: #ffffff;
  color: #17202c;
}

.cm-button-ghost {
  border-color: transparent;
  background: transparent;
  color: #44515f;
}

.cm-button-danger {
  border-color: #9f352c;
  background: #9f352c;
  color: #ffffff;
}

.cm-kicker {
  margin: 0;
  color: #5a6f84;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-calm-route {
  background: #f7f8f3;
}

.cm-public-intro {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 34px;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
  gap: 56px;
  align-items: center;
}

.cm-public-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.cm-public-copy h1 {
  max-width: 660px;
  margin: 0;
  color: #111927;
  font-size: clamp(52px, 5vw, 68px);
  line-height: 0.97;
  letter-spacing: 0;
}

.cm-public-copy p:not(.cm-kicker) {
  max-width: 590px;
  margin: 0;
  color: #4e5b68;
  font-size: 18px;
  line-height: 1.55;
}

.cm-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.cm-public-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid #cbd5dc;
  border-radius: 8px;
  background: #ffffff;
  color: #263341;
  font-size: 14px;
  font-weight: 820;
  box-shadow: 0 10px 24px rgba(31, 50, 65, 0.06);
}

.cm-public-secondary:hover {
  border-color: #93a9b5;
  color: #102131;
}

.cm-auth-note {
  color: #66727c;
  font-size: 13px;
  font-weight: 750;
}

.cm-public-proof-strip {
  max-width: 590px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.cm-public-proof-strip div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #d8e0dc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(31, 50, 65, 0.045);
}

.cm-public-proof-strip strong,
.cm-public-proof-strip span {
  display: block;
}

.cm-public-proof-strip strong {
  color: #17202c;
  font-size: 12px;
  line-height: 1.2;
}

.cm-public-proof-strip span {
  color: #64717e;
  font-size: 12px;
  line-height: 1.3;
}

.cm-product-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d1d9de;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(31, 50, 65, 0.1);
}

.cm-hero-illustration {
  border-color: #cbd8dc;
  box-shadow: 0 24px 58px rgba(31, 50, 65, 0.12);
}

.cm-product-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: center;
}

.cm-hero-illustration img {
  background: #fbfcf8;
  object-fit: contain;
}

.cm-product-preview figcaption {
  min-height: 76px;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-top: 1px solid #e1e6e9;
  background: #ffffff;
}

.cm-product-preview figcaption strong {
  color: #17202c;
}

.cm-product-preview figcaption span {
  color: #63707c;
  font-size: 13px;
  line-height: 1.35;
}

.cm-simple-capabilities {
  width: min(1180px, calc(100% - 48px));
  margin: 10px auto 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cm-simple-capability {
  min-height: 154px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px;
  border: 1px solid #d4dcd7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(35, 48, 56, 0.07);
}

.cm-simple-capability h2,
.cm-simple-capability p {
  margin: 0;
}

.cm-simple-capability h2 {
  font-size: 18px;
  line-height: 1.2;
}

.cm-simple-capability p {
  margin-top: 6px;
  color: #5d6976;
  line-height: 1.45;
}

.cm-simple-capability-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid #d1dbe1;
  border-radius: 8px;
  background: #f8faf7;
  color: #22435e;
  font-size: 13px;
  font-weight: 820;
}

.cm-simple-capability-action:hover {
  border-color: #9fb1bb;
  background: #ffffff;
}

.cm-capability-tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cm-capability-trigger {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d3dce2;
  border-radius: 8px;
  background: #ffffff;
  color: #536170;
  font-weight: 800;
}

.cm-capability-trigger[data-state="active"] {
  border-color: #8fa6b8;
  background: #eaf1f4;
  color: #17202c;
}

.cm-capability-content {
  min-height: 110px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid #d3dce2;
  border-radius: 8px;
  background: #ffffff;
}

.cm-capability-content h2,
.cm-capability-content p {
  margin: 0;
}

.cm-capability-content p {
  max-width: 720px;
  color: #5d6976;
  line-height: 1.5;
}

.cm-proof-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 18px auto 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cm-proof-strip span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d4dcd7;
  border-radius: 8px;
  background: #eef3ee;
  color: #3f5549;
  text-align: center;
  font-size: 13px;
  font-weight: 760;
}

.cm-app-route,
.cm-prejoin-route {
  background: #f4f5f1;
}

.cm-app-grid {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.cm-home-panel,
.cm-companion-panel,
.cm-prejoin-preview,
.cm-prejoin-settings,
.cm-dialog-content,
.cm-join-status {
  border: 1px solid #d4dcd7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(35, 48, 56, 0.08);
}

.cm-home-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.cm-home-panel h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
}

.cm-home-date {
  margin: -8px 0 4px;
  color: #687380;
  font-weight: 760;
}

.cm-action-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.cm-action-button {
  min-height: 92px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  background: #fbfcfa;
  color: #25313e;
  font-weight: 800;
}

.cm-action-button.is-primary {
  border-color: #d5e0d4;
  background: #edf4ed;
  color: #244c38;
}

.cm-action-button:hover {
  border-color: #adbac4;
  background: #ffffff;
}

.cm-calendar-surface {
  min-height: 360px;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid #dbe2e0;
  border-radius: 8px;
  overflow: hidden;
}

.cm-calendar-surface > header {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #dbe2e0;
  background: #f8faf7;
}

.cm-calendar-surface header div {
  display: grid;
  gap: 4px;
}

.cm-calendar-surface header span {
  color: #687380;
  font-size: 13px;
}

.cm-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 30px;
  color: #5d6976;
  text-align: center;
}

.cm-empty-state strong {
  color: #17202c;
  font-size: 20px;
}

.cm-empty-state span {
  max-width: 320px;
  line-height: 1.45;
}

.cm-companion-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.cm-companion-panel h2,
.cm-companion-panel p {
  margin: 0;
}

.cm-companion-panel p {
  color: #63707c;
  line-height: 1.45;
}

.cm-suggestion-list {
  display: grid;
  gap: 8px;
}

.cm-suggestion-list button {
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  padding: 0 12px;
  color: #344250;
  text-align: left;
  font-weight: 760;
}

.cm-composer-preview {
  min-height: 110px;
  display: grid;
  align-content: start;
  gap: 10px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  background: #f8faf7;
}

.cm-composer-preview span {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 8px;
  background: #e8eee8;
  color: #3f5549;
  font-size: 12px;
  font-weight: 800;
}

.cm-prejoin-layout {
  width: min(1040px, calc(100% - 48px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: center;
}

.cm-scribe-route {
  background: #f4f5f1;
}

.cm-scribe-layout {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 64px;
  display: grid;
  gap: 24px;
}

.cm-scribe-page-head {
  display: grid;
  gap: 10px;
}

.cm-scribe-page-head h1 {
  max-width: 720px;
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}

.cm-scribe-page-head p:not(.cm-kicker) {
  max-width: 560px;
  margin: 0;
  color: #5d6976;
  line-height: 1.5;
}

.cm-scribe-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.cm-scribe-panel,
.cm-scribe-summary {
  border: 1px solid #d4dcd7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(35, 48, 56, 0.08);
}

.cm-scribe-panel {
  display: grid;
  gap: 22px;
  padding: 22px;
}

.cm-scribe-option-group {
  display: grid;
  gap: 12px;
}

.cm-scribe-option-group header {
  display: grid;
  gap: 4px;
}

.cm-scribe-option-group h2,
.cm-scribe-option-group p,
.cm-scribe-summary h2,
.cm-scribe-summary p {
  margin: 0;
}

.cm-scribe-option-group h2 {
  font-size: 18px;
  line-height: 1.2;
}

.cm-scribe-option-group p,
.cm-scribe-summary p {
  color: #5d6976;
  line-height: 1.45;
}

.cm-scribe-toggle-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cm-scribe-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #d6dee2;
  border-radius: 8px;
  background: #fbfcfa;
  color: #344250;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
}

.cm-scribe-toggle:hover,
.cm-scribe-toggle[data-state="on"] {
  border-color: #8fa6b8;
  background: #eaf1f4;
  color: #17202c;
}

.cm-scribe-select-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cm-scribe-select {
  display: grid;
  gap: 8px;
  color: #3d4854;
  font-size: 13px;
  font-weight: 800;
}

.cm-scribe-select select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d6dee2;
  border-radius: 8px;
  padding: 0 10px;
  background: #fbfcfa;
  color: #17202c;
  font-weight: 700;
}

.cm-scribe-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.cm-scribe-summary {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.cm-scribe-summary ul {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding-left: 18px;
  color: #44515f;
  line-height: 1.4;
}

.cm-prejoin-preview {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.cm-prejoin-preview h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.cm-video-placeholder {
  min-height: 410px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid #d9e0df;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(242, 244, 240, 0.92)),
    #eef1ed;
  color: #44515f;
  text-align: center;
}

.cm-video-placeholder strong {
  color: #17202c;
  font-size: 20px;
}

.cm-video-placeholder span {
  max-width: 280px;
  line-height: 1.4;
}

.cm-prejoin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cm-prejoin-toolbar button:not(.cm-button) {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d3dce2;
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: #25313e;
  font-weight: 800;
}

.cm-prejoin-toolbar button.is-off {
  border-color: #ead2cc;
  background: #fff6f2;
  color: #9f352c;
}

.cm-prejoin-settings {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.cm-prejoin-settings h2,
.cm-prejoin-settings p {
  margin: 0;
}

.cm-prejoin-settings p {
  color: #63707c;
  line-height: 1.45;
}

.cm-prejoin-settings label {
  display: grid;
  gap: 6px;
  color: #3f4c58;
  font-size: 13px;
  font-weight: 800;
}

.cm-prejoin-settings select,
.cm-dialog-content input {
  min-height: 40px;
  width: 100%;
  border: 1px solid #cbd5dc;
  border-radius: 8px;
  background: #ffffff;
  color: #17202c;
  padding: 0 10px;
}

.cm-switch-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e1e6e3;
  border-bottom: 1px solid #e1e6e3;
}

.cm-switch-row > span {
  color: #3f4c58;
  font-weight: 800;
}

.cm-switch {
  width: 42px;
  height: 24px;
  position: relative;
  border-radius: 999px;
  background: #c8d2d6;
}

.cm-switch[data-state="checked"] {
  background: #1f4f76;
}

.cm-switch-thumb {
  width: 20px;
  height: 20px;
  display: block;
  transform: translateX(2px);
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease;
}

.cm-switch-thumb[data-state="checked"] {
  transform: translateX(20px);
}

.cm-prejoin-settings footer,
.cm-dialog-content footer,
.cm-join-status footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cm-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 29, 38, 0.34);
  backdrop-filter: blur(6px);
}

.cm-dialog-content {
  position: fixed;
  z-index: 81;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  display: grid;
  gap: 14px;
  padding: 20px;
}

.cm-dialog-content h2,
.cm-dialog-content p {
  margin: 0;
}

.cm-dialog-content p {
  color: #63707c;
  line-height: 1.45;
}

.cm-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cm-join-status {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100% - 48px));
  display: grid;
  gap: 12px;
  padding: 16px;
}

.cm-join-status > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
}

.cm-join-status > div span {
  grid-column: 2;
  color: #63707c;
  line-height: 1.35;
}

.cm-join-status p {
  margin: 0;
  color: #9f352c;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .cm-calm-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 10px 12px;
  }

  .cm-calm-topbar.is-public {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .cm-calm-brand {
    min-width: 0;
  }

  .cm-calm-nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .cm-calm-nav::-webkit-scrollbar {
    display: none;
  }

  .cm-calm-nav button {
    min-height: 34px;
    flex: 0 0 auto;
    gap: 6px;
    padding: 0 10px;
    font-size: 12px;
  }

  .cm-calm-top-actions {
    justify-content: end;
    gap: 6px;
  }

  .cm-calm-top-actions .cm-button,
  .cm-calm-top-actions .cm-quiet-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .cm-public-intro,
  .cm-app-grid,
  .cm-prejoin-layout,
  .cm-scribe-layout {
    width: min(100% - 24px, 680px);
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cm-public-intro {
    padding-top: 34px;
  }

  .cm-public-copy h1 {
    font-size: 38px;
  }

  .cm-public-proof-strip {
    grid-template-columns: 1fr;
  }

  .cm-simple-capabilities,
  .cm-capability-tabs,
  .cm-proof-strip {
    width: min(100% - 24px, 680px);
  }

  .cm-simple-capabilities {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
  }

  .cm-capability-tab-list,
  .cm-proof-strip,
  .cm-action-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .cm-scribe-content,
  .cm-scribe-select-grid {
    grid-template-columns: 1fr;
  }

  .cm-video-placeholder {
    min-height: 300px;
  }
}

@media (max-width: 520px) {
  .cm-calm-topbar.is-public .cm-calm-brand strong {
    font-size: 13px;
  }

  .cm-calm-topbar.is-public .cm-calm-brand em,
  .cm-calm-top-actions .cm-google-button.is-compact span,
  .cm-calm-topbar.is-public .cm-calm-top-actions .cm-google-button span {
    display: none;
  }

  .cm-calm-topbar.is-public .cm-calm-brand {
    gap: 8px;
  }

  .cm-calm-topbar.is-public .cm-google-button {
    min-width: 40px;
    padding: 0 10px;
  }

  .cm-public-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cm-public-actions .cm-google-button,
  .cm-public-secondary {
    width: 100%;
  }

  .cm-auth-note {
    width: 100%;
  }

  .cm-scribe-toggle-group {
    grid-template-columns: 1fr;
  }
}

.public-site {
  min-height: 100vh;
  overflow-x: hidden;
  background: #eef2f6;
  color: #111827;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 0 32px;
  background: rgba(10, 14, 22, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  backdrop-filter: blur(18px);
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 900;
}

.public-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.public-nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #d6dde8;
  font-weight: 800;
}

.public-sign-in,
.public-primary,
.public-secondary {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
}

.public-sign-in {
  color: #f5f8ff;
}

.public-primary {
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.public-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 23, 36, 0.64);
  color: white;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.public-primary.large,
.public-secondary.large {
  min-height: 58px;
  padding: 0 26px;
  border-radius: 9px;
}

.public-hero {
  position: relative;
  min-height: clamp(560px, 70vh, 720px);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #101820;
}

.public-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.public-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.9) 0%, rgba(6, 10, 18, 0.74) 34%, rgba(6, 10, 18, 0.36) 68%, rgba(6, 10, 18, 0.72) 100%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.26), rgba(6, 10, 18, 0.82));
}

.public-hero-copy {
  width: min(980px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 80px 0 54px;
  display: grid;
  gap: 18px;
  color: white;
}

.public-kicker {
  margin: 0;
  color: #8fb6ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
}

.public-hero p:not(.public-kicker) {
  max-width: 720px;
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.32;
}

.public-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #eef4ff;
  font-weight: 900;
}

.public-hero-status {
  width: min(1180px, calc(100vw - 64px));
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.76);
  color: #dbe7f8;
  backdrop-filter: blur(12px);
}

.public-hero-status span {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.public-hero-status span:last-child {
  border-right: 0;
}

.public-capabilities {
  width: min(1220px, calc(100vw - 64px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.capability-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid #d7dfe8;
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.capability-card .capability-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e8f1ff;
  color: #1769d8;
}

.capability-card .capability-icon svg {
  width: 20px;
  height: 20px;
}

.capability-card > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.capability-card h2 {
  margin: 0;
  font-size: 25px;
}

.capability-card ul {
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.capability-card li {
  min-height: 28px;
  display: flex;
  align-items: center;
  border-top: 1px solid #e7edf4;
}

.public-share-section {
  width: min(1220px, calc(100vw - 64px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: center;
  padding: 24px;
  border: 1px solid #d7dfe8;
  border-radius: 8px;
  background: #101820;
  color: white;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.public-share-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.public-share-copy h2,
.public-share-copy p {
  margin: 0;
}

.public-share-copy h2 {
  max-width: 520px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.public-share-copy p:not(.public-kicker) {
  color: #d5deea;
  line-height: 1.45;
}

.share-primitive-list {
  display: grid;
  gap: 8px;
  margin: 4px 0;
}

.share-primitive-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e6eef8;
  font-weight: 800;
}

.public-share-image {
  width: 100%;
  display: block;
  border: 1px solid #2d3a48;
  border-radius: 8px;
  background: #0a0f14;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.public-link-panel {
  width: min(1220px, calc(100vw - 64px));
  margin: 26px auto 62px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  padding: 26px;
  border: 1px solid #d7dfe8;
  border-radius: 8px;
  background: white;
  color: #111827;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.public-link-panel h2 {
  margin: 10px 0 0;
  font-size: 36px;
  line-height: 1;
}

.public-link-panel .public-kicker {
  color: #365bc4;
}

.public-link-list {
  display: grid;
}

.public-link-list button {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  align-items: center;
  text-align: left;
  border-bottom: 1px solid #d6dbe5;
}

.public-link-list button:hover {
  background: #f7faff;
}

.public-link-list span {
  grid-column: 1;
  color: #5b6470;
}

.public-link-list em {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #334155;
  font-style: normal;
}

.desktop {
  height: 100vh;
  display: grid;
  grid-template-columns: 80px 1fr;
  background: var(--shell);
  overflow: hidden;
}

.sidebar {
  background: #242426;
  border-right: 1px solid #313236;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 6px 10px;
  gap: 10px;
}

.brand {
  display: none;
  gap: 6px;
  justify-items: center;
  margin-bottom: 8px;
  text-align: center;
  font-size: 10px;
  line-height: 1.1;
}

.brand span {
  color: var(--muted);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e84ff, #55d6a4);
  font-weight: 800;
  font-size: 11px;
  color: white;
}

.brand-mark.big {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  font-size: 18px;
}

.nav {
  display: grid;
  gap: 4px;
  width: 100%;
}

.nav-item,
.settings-link {
  min-height: 50px;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  place-items: center;
  color: #e7e8eb;
  font-size: 10px;
}

.nav-item span {
  font-size: 17px;
}

.cm-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.cm-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-icon,
.composer-icon,
.footer-icon,
.heading-info,
.inline-icon,
.notice-icon,
.popover-info,
.row-icon,
.search-icon,
.tab-icon,
.attachment-icon {
  background: transparent;
  border-radius: 0;
  color: currentColor;
}

.button-icon,
.composer-icon,
.footer-icon,
.heading-info,
.notice-icon,
.popover-info,
.row-icon {
  width: 18px;
  height: 18px;
}

.button-icon svg,
.composer-icon svg,
.footer-icon svg,
.heading-info svg,
.notice-icon svg,
.popover-info svg,
.row-icon svg {
  width: 18px;
  height: 18px;
}

.inline-icon {
  width: 14px;
  height: 14px;
}

.inline-icon svg {
  width: 14px;
  height: 14px;
}

.notice-icon {
  color: #8dbdff;
}

.icon-only {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.icon-only:hover {
  background: rgba(255, 255, 255, 0.08);
}

button[data-tooltip] {
  position: relative;
}

button[data-tooltip]::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 80;
  transform: translateX(-50%) translateY(2px);
  max-width: 180px;
  padding: 5px 8px;
  border: 1px solid #454a52;
  border-radius: 6px;
  background: #111417;
  color: #eef2f7;
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

button[data-tooltip]:hover::after,
button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-item .icon-dot,
.settings-link .icon-dot {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
  color: #dfe6ee;
}

.nav-item.active .icon-dot,
.nav-item:hover .icon-dot,
.settings-link:hover .icon-dot {
  color: white;
}

.nav-item.active,
.nav-item:hover,
.settings-link:hover {
  background: #111719;
}

.settings-link {
  margin-top: auto;
  width: 100%;
}

.screen {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr;
  padding-top: 42px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: 42px;
  background: #2b2b2e;
  border-bottom: 1px solid #36383d;
  display: grid;
  grid-template-columns: 270px 1fr 270px;
  align-items: center;
  padding: 0 8px;
}

.topbar-left,
.topbar-center {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 18px;
}

.window-dots {
  display: flex;
  gap: 9px;
  padding-left: 6px;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #55575d;
}

.top-wordmark {
  line-height: 1;
  letter-spacing: 0;
}

.top-wordmark strong,
.top-wordmark span {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.top-wordmark span {
  color: var(--text);
}

.topbar-center {
  justify-content: center;
  gap: 10px;
}

.chrome-icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #d8dbe1;
  font-size: 0;
}

.chrome-icon:hover {
  background: #383a3e;
}

.chrome-icon.plus {
  font-size: 0;
}

.chrome-icon .icon-dot {
  width: 17px;
  height: 17px;
  border-radius: 0;
  background: transparent;
}

.chrome-icon .icon-dot svg {
  width: 17px;
  height: 17px;
}

.topbar button[data-tooltip]::after {
  top: calc(100% + 7px);
  bottom: auto;
}

.search-box {
  width: min(44vw, 440px);
  height: 32px;
  border-radius: 9px;
  background: #404145;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #c5c7cc;
}

.search-box .search-icon {
  width: 16px;
  height: 16px;
  color: #aeb5c1;
}

.search-box .search-icon svg {
  width: 16px;
  height: 16px;
}

.search-box input {
  min-height: 0;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f2f3f5;
  font-weight: 700;
}

.top-title {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.top-title span,
.fineprint,
.date,
.muted,
.note {
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.video-filter-section {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #34373d;
}

.video-filter-section > strong {
  padding: 0 14px;
  font-size: 13px;
}

.video-filter-section .filter-grid {
  padding-top: 0;
}

.pill,
.ghost,
.primary,
.danger,
.danger-soft,
.link-button {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-weight: 700;
}

.primary.tiny,
.tiny {
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.ghost {
  background: transparent;
}

.ghost.big {
  font-size: 24px;
}

.small {
  min-height: 26px;
  padding: 0 8px;
  font-size: 12px;
}

.ghost.icon-only,
.small.icon-only,
.top-actions .chrome-icon.ghost {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
}

.top-actions .chrome-icon.ghost {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

.danger {
  background: #e9292d;
  border-color: #e9292d;
  color: white;
  font-weight: 800;
}

.danger-soft {
  background: rgba(255, 59, 98, 0.12);
  color: #ff6d87;
  border-color: transparent;
}

.link-button {
  border: 0;
  background: transparent;
  color: #4da2ff;
  padding: 0;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #6166c8;
  color: white;
  font-weight: 800;
}

.avatar.mini,
.avatar.small {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 11px;
}

.workspace {
  min-height: 0;
  padding: 14px;
  background: #0d1314;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(740px, 1fr) 380px;
  gap: 14px;
  min-height: calc(100vh - 42px);
}

.home-main {
  max-width: 600px;
  margin: 68px auto 0;
  width: 100%;
}

.clock {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
}

.date {
  text-align: center;
  margin: 8px 0 36px;
}

.quick-actions {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin-bottom: 22px;
}

.quick {
  display: grid;
  place-items: center;
  gap: 10px;
  color: #b7bec8;
  min-width: 82px;
  font-size: 13px;
}

.icon-dot {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.icon-dot svg {
  width: 24px;
  height: 24px;
}

.icon-dot.button-icon,
.icon-dot.composer-icon,
.icon-dot.footer-icon,
.icon-dot.heading-info,
.icon-dot.inline-icon,
.icon-dot.notice-icon,
.icon-dot.popover-info,
.icon-dot.row-icon,
.icon-dot.search-icon,
.icon-dot.tab-icon {
  background: transparent;
  border-radius: 0;
  color: currentColor;
}

.icon-dot.button-icon,
.icon-dot.composer-icon,
.icon-dot.footer-icon,
.icon-dot.heading-info,
.icon-dot.notice-icon,
.icon-dot.popover-info,
.icon-dot.row-icon {
  width: 18px;
  height: 18px;
}

.icon-dot.button-icon svg,
.icon-dot.composer-icon svg,
.icon-dot.footer-icon svg,
.icon-dot.heading-info svg,
.icon-dot.notice-icon svg,
.icon-dot.popover-info svg,
.icon-dot.row-icon svg {
  width: 18px;
  height: 18px;
}

.icon-dot.inline-icon {
  width: 14px;
  height: 14px;
}

.icon-dot.inline-icon svg {
  width: 14px;
  height: 14px;
}

.icon-dot.search-icon {
  width: 16px;
  height: 16px;
}

.icon-dot.search-icon svg {
  width: 16px;
  height: 16px;
}

.icon-dot.tab-icon {
  width: 21px;
  height: 21px;
}

.icon-dot.tab-icon svg {
  width: 20px;
  height: 20px;
}

.icon-dot.attachment-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1f2a38;
  color: #8bbcff;
}

.icon-dot.attachment-icon svg {
  width: 20px;
  height: 20px;
}

.quick.orange .icon-dot {
  background: var(--orange);
}

.calendar-card {
  border: 1px solid var(--line-soft);
  background: #111718;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 14px;
  background: #1d3475;
  color: white;
  line-height: 1.25;
}

.info-banner > span {
  min-width: 0;
  flex: 1;
}

.info-banner a,
.info-banner strong {
  color: #64b2ff;
}

.info-banner button {
  margin-left: auto;
}

.calendar-head {
  height: 52px;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  text-align: center;
  background: #2a292c;
}

.empty-meetings {
  height: 380px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
}

.paper-plane {
  width: 76px;
  height: 44px;
  margin: 0 auto 12px;
  background: linear-gradient(145deg, #d8dcff, #8890aa);
  clip-path: polygon(0 30%, 100% 0, 70% 100%, 50% 62%);
  transform: rotate(8deg);
}

.calendar-card footer {
  display: grid;
  border-top: 1px solid var(--line-soft);
}

.calendar-card footer button {
  text-align: left;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}

.right-rail {
  min-width: 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr);
  gap: 8px;
}

.react-rail-panel {
  min-height: 0;
  display: contents;
}

.home-layout .right-rail {
  grid-template-rows: minmax(0, 1fr);
}

.home-layout .rail-switch {
  display: none;
}

.rail-switch {
  display: flex;
  gap: 6px;
}

.rail-switch button {
  flex: 1;
  border-radius: 8px;
  background: #1b2022;
  color: var(--muted);
  border: 1px solid var(--line-soft);
}

.rail-switch .active {
  color: white;
  border-color: var(--blue);
}

.ai-panel,
.panel-card {
  min-height: 0;
  background: #222224;
  border: 1px solid #3a3a3d;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-panel header,
.panel-card header,
.host-tools header {
  height: 48px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #333539;
}

.spacer {
  flex: 1;
}

.spark-heart {
  width: 64px;
  height: 64px;
  margin: 34px auto 4px;
  position: relative;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #2c86ff, #9368ff, #e85dd6);
  border-radius: 18px 18px 4px 18px;
}

.home-layout .spark-heart {
  width: 56px;
  height: 56px;
  margin-top: 248px;
  border-radius: 16px 16px 4px 16px;
}

.spark-heart span {
  position: absolute;
  inset: 18px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
}

.ai-panel h2 {
  text-align: center;
  margin: 14px 0 22px;
}

.home-layout .ai-panel h2 {
  margin-top: -12px;
}

.ai-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  min-height: 26px;
  margin: -4px 0 6px;
  padding: 0 10px;
  border: 1px solid #373a40;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.home-layout .ai-status {
  display: none;
}

.ai-status strong {
  color: #dfe5ec;
}

.scribe-mini-card {
  display: grid;
  gap: 4px;
  margin: 4px 18px 14px;
  padding: 12px;
  border: 1px solid #343940;
  border-radius: 10px;
  background: #1d2225;
  font-size: 12px;
}

.home-layout .scribe-mini-card {
  display: none;
}

.scribe-mini-card span {
  color: var(--muted);
}

.prompt-list {
  display: grid;
  gap: 12px;
  padding: 0 24px;
}

.home-layout .prompt-list {
  margin-top: auto;
  margin-bottom: 22px;
}

.prompt-list button {
  text-align: left;
  color: var(--muted);
}

.prompt-list button::before {
  content: "↳";
  margin-right: 8px;
}

.ai-messages {
  display: grid;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
  padding: 0 12px 10px;
}

.ai-message {
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: #2c2d31;
  color: #d9dde5;
  font-size: 12px;
  line-height: 1.35;
}

.ai-message.user {
  justify-self: end;
  max-width: 78%;
  background: #173d75;
  color: white;
}

.composer {
  margin: 16px 12px 0;
  border: 1px solid #35383d;
  border-radius: 18px;
  padding: 10px;
  background: #262729;
}

.home-layout .composer textarea {
  min-height: 30px;
}

.context-chip {
  display: inline-block;
  border-radius: 6px;
  background: #303236;
  padding: 5px 9px;
  font-size: 12px;
}

textarea {
  width: 100%;
  min-height: 106px;
  color: var(--text);
  background: transparent;
  border: 0;
  resize: none;
  padding: 10px 0;
}

.composer footer,
.panel-card footer {
  display: flex;
  gap: 8px;
  align-items: center;
}

.round,
.send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.send {
  margin-left: auto;
  background: #34383d;
}

.fineprint {
  margin: 6px 0 0;
  text-align: center;
  font-size: 11px;
  padding-bottom: 8px;
}

.panel-card {
  padding-bottom: 16px;
}

.panel-card > label,
.balance {
  display: grid;
  gap: 8px;
  margin: 14px;
  font-size: 13px;
  font-weight: 700;
}

select,
input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid #59606a;
  background: #24272a;
  color: var(--text);
  padding: 0 10px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--blue);
}

.notice {
  margin: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #1e2d66;
  border: 1px solid #3456b4;
  display: grid;
  gap: 4px;
}

.balance div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.danger-soft {
  align-self: center;
  min-width: 180px;
  margin-top: auto;
}

.center-stage {
  display: grid;
  place-items: center;
}

.prejoin-stage {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.08), transparent 18%),
    #242426;
}

.prejoin-window {
  width: min(640px, calc(100vw - 140px));
  background: #222325;
  border: 1px solid #4a4d52;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.prejoin-titlebar {
  height: 40px;
  display: grid;
  grid-template-columns: 76px 1fr 76px;
  align-items: center;
  background: #252729;
  border-bottom: 1px solid #303238;
  padding: 0 12px;
}

.prejoin-titlebar strong {
  text-align: center;
  color: #d6d8dd;
  font-size: 13px;
}

.window-dots.active span:nth-child(1) {
  background: #ff5f57;
}

.window-dots.active span:nth-child(2) {
  background: #ffbd2e;
}

.window-dots.active span:nth-child(3) {
  background: #28c840;
}

.camera-preview {
  height: 398px;
  margin: 0 12px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 31% 14%, rgba(255, 255, 255, 0.9) 0 3%, rgba(244, 227, 178, 0.28) 4%, transparent 17%),
    linear-gradient(100deg, rgba(110, 103, 88, 0.98), rgba(38, 41, 42, 0.95) 48%, rgba(175, 184, 185, 0.75)),
    linear-gradient(180deg, #6d6357, #2b2c2f);
}

.camera-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  background:
    linear-gradient(90deg, rgba(24, 25, 27, 0.2) 0 22%, transparent 22% 72%, rgba(15, 18, 20, 0.22) 72%),
    radial-gradient(circle at 18% 58%, rgba(0, 0, 0, 0.42) 0 15%, transparent 16%),
    radial-gradient(circle at 85% 46%, rgba(45, 122, 255, 0.42) 0 4%, transparent 5%);
}

.camera-preview.local,
.settings-preview {
  height: 215px;
}

.camera-preview.local {
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(27, 33, 39, 0.94), rgba(18, 22, 27, 0.98)),
    #151a1f;
}

.camera-preview.local::before {
  display: none;
}

.video-preview-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #dce4ec;
  text-align: center;
}

.video-preview-empty .preview-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #242c34;
  border: 1px solid #3b4652;
  color: #8fa1b4;
}

.video-preview-empty span {
  max-width: 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.person-card {
  position: absolute;
  width: 148px;
  height: 180px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 60px 60px 0 0;
  background:
    radial-gradient(circle at 50% 36px, #e3c3a6 0 35px, transparent 36px),
    linear-gradient(#181c21 82px, #111 82px);
}

.live-person {
  z-index: 2;
  width: 138px;
  height: 184px;
  left: 50%;
  bottom: 8px;
  border-radius: 54px 54px 10px 10px;
  background:
    radial-gradient(ellipse at 50% 132px, #d8dbe0 0 76px, transparent 77px),
    linear-gradient(180deg, transparent 0 72px, #d8dbe0 73px 100%);
  filter: saturate(0.92) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.live-person::before,
.live-person::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.live-person::before {
  top: 10px;
  width: 56px;
  height: 66px;
  border-radius: 48% 48% 44% 44%;
  background: #d7ac8a;
}

.live-person::after {
  top: 5px;
  width: 60px;
  height: 30px;
  border-radius: 34px 34px 18px 18px;
  background: #19110f;
}

.person-card.self {
  width: 118px;
  height: 145px;
}

.backgrounds {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 64px;
  border-radius: 8px;
  background: #111;
  border: 1px solid #68717c;
  padding: 9px 12px;
  font-weight: 700;
}

.prejoin-controls {
  position: absolute;
  z-index: 3;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: #2b3035;
  border-radius: 10px;
  overflow: hidden;
}

.prejoin-controls button {
  min-width: 82px;
  height: 54px;
  padding: 8px 12px;
  display: grid;
  gap: 4px;
  grid-template-rows: 18px 16px;
  place-items: center;
}

.prejoin-controls button svg {
  width: 18px;
  height: 18px;
}

.prejoin-controls button span {
  font-size: 12px;
  line-height: 1;
}

.prejoin-controls .off {
  color: #ff6e8c;
}

.device-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  padding: 12px;
  background: #020203;
}

.device-row select {
  background: #252525;
}

.permission-open {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #47505a;
  border-radius: 9px;
  background: #20262b;
  color: #e9f0f7;
  font-weight: 800;
}

.permission-open:hover {
  border-color: #66717d;
  background: #293039;
}

.prejoin-window > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
}

.prejoin-window > footer div {
  display: flex;
  gap: 10px;
}

.leave-popover {
  position: absolute;
  left: 0;
  top: 0;
  width: 250px;
  background: #2b2522;
  border: 1px solid #4a3a34;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  z-index: 6;
  box-shadow: var(--shadow);
}

.leave-popover .danger {
  grid-column: 1 / -1;
}

.join-loading {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(7px);
}

.loading-card {
  width: min(560px, calc(100% - 42px));
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid #555a61;
  border-radius: 12px;
  background: #252629;
  box-shadow: var(--shadow);
}

.loading-card h2 {
  margin: 0 0 8px;
}

.loading-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.35;
}

.loading-steps {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.loading-steps span {
  color: #b9c0ca;
}

.loading-steps span::before {
  content: "○";
  margin-right: 8px;
  color: #78818c;
}

.loading-steps .done::before {
  content: "✓";
  color: var(--green);
}

.join-error,
.join-ready {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.35;
}

.join-error {
  border: 1px solid rgba(255, 59, 98, 0.42);
  background: rgba(255, 59, 98, 0.1);
  color: #ffd7df;
}

.join-ready {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(41, 197, 101, 0.36);
  background: rgba(41, 197, 101, 0.1);
  color: #d9ffe9;
}

.join-ready span {
  color: #9fb5aa;
  font-size: 12px;
}

.loading-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #3a3d43;
}

.loading-progress i {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #56d6a8);
}

.loading-progress.ready i {
  width: 100%;
}

.loading-card footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.scribe-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 6px 118px 1fr;
  position: relative;
  overflow: hidden;
  background: #111014;
  color: #f5f6f8;
}

.scribe-shell::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(ellipse at 48% 18%, rgba(255, 255, 255, 0.2), transparent 16%),
    radial-gradient(ellipse at 36% 38%, rgba(87, 214, 184, 0.13), transparent 18%),
    radial-gradient(ellipse at 66% 58%, rgba(74, 109, 255, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(44, 43, 52, 0.2), rgba(17, 16, 20, 0.96));
  filter: blur(18px);
  transform: rotate(-8deg);
  animation: scribe-plasma-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.scribe-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}

.scribe-plasma,
.scribe-rings {
  position: absolute;
  pointer-events: none;
}

.scribe-plasma {
  inset: 0;
  opacity: 0.72;
  background:
    radial-gradient(ellipse at 54% 24%, rgba(255, 255, 255, 0.2), transparent 12%),
    conic-gradient(from 210deg at 50% 50%, transparent, rgba(80, 185, 255, 0.12), transparent, rgba(214, 95, 228, 0.1), transparent);
  mix-blend-mode: screen;
  filter: blur(30px);
}

.scribe-rings {
  width: min(760px, 52vw);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%) rotate(-16deg);
  opacity: 0.34;
}

.scribe-rings i,
.scribe-rings::before,
.scribe-rings::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(113, 219, 255, 0.2);
  border-radius: 42% 58% 48% 52%;
  box-shadow:
    0 0 26px rgba(67, 185, 255, 0.16),
    inset 0 0 42px rgba(218, 91, 215, 0.08);
  animation: scribe-ring-pulse 10s ease-in-out infinite;
}

.scribe-rings i:nth-child(1) {
  inset: 4%;
  border-color: rgba(255, 255, 255, 0.18);
  animation-delay: -2s;
}

.scribe-rings i:nth-child(2) {
  inset: 22%;
  border-color: rgba(86, 214, 184, 0.22);
  animation-delay: -4s;
}

.scribe-rings i:nth-child(3) {
  inset: 34%;
  border-color: rgba(218, 91, 215, 0.2);
  animation-delay: -6s;
}

.scribe-progress {
  position: relative;
  z-index: 2;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.scribe-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #43b9ff, #56d6b8, #da5bd7);
  transition: width 180ms ease;
}

.scribe-brand {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100vw - 112px));
  height: 78px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: rgba(30, 29, 36, 0.62);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.scribe-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scribe-brand strong {
  font-size: 22px;
  letter-spacing: 0;
}

.scribe-brand nav {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.scribe-brand nav button,
.scribe-status {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  color: #afb2ba;
  font-weight: 800;
}

.scribe-brand nav .active {
  background: rgba(255, 255, 255, 0.92);
  color: #111014;
}

.scribe-status {
  border: 1px solid rgba(86, 214, 184, 0.38);
  color: #d6fff6;
  background: rgba(86, 214, 184, 0.08);
}

.scribe-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #2e7cff, #56d6b8 54%, #da5bd7);
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(40, 154, 255, 0.26);
}

.scribe-mark.small {
  width: 42px;
  height: 36px;
  border-radius: 12px;
}

.scribe-center {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100vw - 120px));
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  padding-bottom: 84px;
  clip-path: inset(0);
}

.scribe-badge {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 5px 18px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(28, 27, 34, 0.68);
  color: #aeb1ba;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.scribe-badge strong {
  display: grid;
  place-items: center;
  min-width: 78px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111014;
  font-size: 17px;
}

.scribe-kicker {
  margin: 0;
  color: #a2a5ad;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scribe-sentence {
  font-size: clamp(36px, 4.6vw, 66px);
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
}

.scribe-sentence.capture-line {
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: auto minmax(380px, 500px) auto minmax(280px, 360px);
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.scribe-sentence.wrap {
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: clamp(30px, 3.2vw, 48px);
}

.scribe-sentence.wrap .scribe-value {
  min-height: 72px;
  font-size: clamp(22px, 2vw, 28px);
}

.scribe-context-grid {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.scribe-context-grid label {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: rgba(29, 29, 36, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.scribe-context-grid label > span {
  padding-left: 8px;
  color: #aeb3bd;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scribe-context-grid .scribe-value {
  min-width: 0;
  min-height: 70px;
  font-size: 24px;
}

.capture-line .scribe-value {
  min-width: 0;
  width: 100%;
}

.scribe-select,
.scribe-value {
  min-width: 320px;
}

.scribe-select.small,
.scribe-value.small {
  min-width: 210px;
}

.scribe-select.compact,
.scribe-value.compact {
  min-width: 230px;
}

.scribe-value {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(41, 40, 48, 0.78);
  color: white;
  font-size: clamp(24px, 2.35vw, 33px);
  font-weight: 760;
  text-align: left;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.scribe-value:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 185, 255, 0.42);
  background: rgba(50, 49, 58, 0.86);
}

.scribe-value span {
  color: #cfd3da;
  font-size: 24px;
}

.scribe-select select {
  width: 100%;
  min-height: 94px;
  padding: 0 26px;
  border: 0;
  border-radius: 7px;
  background: #303035;
  color: white;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.scribe-choice-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1120px;
}

.scribe-choice-row.secondary {
  margin-top: -10px;
}

.scribe-choice-row button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(35, 35, 42, 0.66);
  color: #c3c7d0;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.scribe-choice-row .active {
  border-color: #43b9ff;
  color: white;
  background: rgba(25, 77, 124, 0.68);
  box-shadow: 0 0 0 4px rgba(67, 185, 255, 0.12);
}

.scribe-assurance-grid {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scribe-assurance-grid.two-col {
  width: min(760px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scribe-assurance-grid span {
  min-height: 96px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(31, 31, 38, 0.66);
  color: #c5cad3;
  line-height: 1.32;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.scribe-assurance-grid strong {
  color: white;
}

.scribe-continue {
  width: min(560px, 100%);
  min-height: 78px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #111014;
  background: rgba(255, 255, 255, 0.96);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow:
    0 22px 60px rgba(255, 255, 255, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.34);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.scribe-continue:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 70px rgba(67, 185, 255, 0.18),
    0 20px 50px rgba(0, 0, 0, 0.34);
}

.scribe-actions {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
}

.scribe-actions > button:first-child {
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(37, 37, 44, 0.72);
  color: #d9dde5;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

@keyframes scribe-plasma-drift {
  from {
    transform: rotate(-8deg) translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: rotate(-3deg) translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes scribe-ring-pulse {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.42;
  }
  50% {
    transform: rotate(8deg) scale(1.05);
    opacity: 0.75;
  }
}

.room-shell {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 390px;
  gap: 0;
  background: #0b1011;
  position: relative;
}

.stage-area {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 10px;
  min-width: 0;
  overflow: hidden;
}

.stage-area > * {
  min-width: 0;
}

.stage-banners {
  display: grid;
  gap: 6px;
}

.transcription-bar {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  background: #202224;
  border: 1px solid #55575a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 12px;
}

.transcription-bar > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transcription-bar label {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.scribe-live-strip {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid #334154;
  border-radius: 9px;
  background: #142133;
  color: #dbe9fb;
  font-size: 12px;
}

.scribe-live-strip span:not(.scribe-dot) {
  color: #aebbd0;
}

.scribe-live-strip button {
  margin-left: auto;
  color: #56b8ff;
  font-weight: 700;
}

.scribe-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #32d27a;
  box-shadow: 0 0 0 4px rgba(50, 210, 122, 0.12);
}

.room-connection-strip {
  min-height: 36px;
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #343941;
  border-radius: 9px;
  background: #181b1f;
  color: #dfe6ef;
  font-size: 12px;
}

.room-connection-strip span:not(.connection-dot),
.room-connection-strip em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #aeb6c2;
  font-style: normal;
}

.room-connection-strip em {
  grid-column: 2 / -1;
  color: #ffcfdb;
}

.room-connection-strip.connected {
  border-color: rgba(41, 197, 101, 0.38);
  background: rgba(28, 67, 47, 0.6);
}

.room-connection-strip.connecting {
  border-color: rgba(77, 162, 255, 0.42);
  background: rgba(18, 44, 76, 0.68);
}

.room-connection-strip.failed {
  border-color: rgba(255, 59, 98, 0.42);
  background: rgba(72, 25, 36, 0.72);
}

.connection-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #747b87;
  box-shadow: 0 0 0 4px rgba(116, 123, 135, 0.12);
}

.room-connection-strip.connected .connection-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(41, 197, 101, 0.13);
}

.room-connection-strip.connecting .connection-dot {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 119, 238, 0.15);
}

.room-connection-strip.failed .connection-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 59, 98, 0.13);
}

.share-live-strip {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid #1f6bd9;
  border-radius: 9px;
  background: #11253a;
  color: #e9f4ff;
  font-size: 12px;
}

.share-live-strip span:not(.share-live-dot) {
  color: #a9b8c8;
}

.share-live-strip button {
  color: #56b8ff;
  font-weight: 700;
}

.share-live-strip button:first-of-type {
  margin-left: auto;
}

.share-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(41, 197, 101, 0.13);
}

.self-strip {
  height: 76px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tile {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  font-size: 31px;
}

.tag {
  align-self: flex-start;
  background: var(--blue);
  min-height: 28px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 3px;
  display: inline-grid;
  place-items: center;
}

.icon-tag {
  width: 34px;
  padding: 0;
}

.icon-tag .button-icon,
.icon-tag .button-icon svg {
  width: 16px;
  height: 16px;
}

.tile-menu {
  position: absolute;
  top: 62px;
  left: calc(50% + 46px);
  width: 220px;
  background: #252629;
  border: 1px solid #5a5d61;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 5;
  padding: 10px 0;
}

.tile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 32px;
  padding: 0 14px;
}

.tile-menu button:hover {
  background: #33363b;
}

.main-stage {
  position: relative;
  margin: 4px auto 8px;
  width: calc(100% - 28px);
  max-width: 1120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #141a1c;
  background:
    radial-gradient(circle at 50% 42%, rgba(31, 47, 55, 0.55), rgba(8, 11, 12, 0.88) 48%, #070a0b 100%),
    #090b0c;
  display: grid;
  place-items: center;
}

.meeting-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: #eef3f7;
}

.meeting-avatar {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #5961cf, #3e8fd6);
  color: white;
  font-size: 52px;
  font-weight: 800;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.meeting-placeholder strong {
  font-size: 18px;
}

.meeting-placeholder span {
  color: #aeb7c4;
  font-size: 13px;
}

.meeting-placeholder small {
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid #28313a;
  border-radius: 999px;
  background: rgba(12, 17, 19, 0.68);
  color: #93a0ae;
  font-size: 11px;
}

.remote-media-card {
  width: min(460px, calc(100% - 40px));
  min-height: 260px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 26px;
  border: 1px solid #26313a;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(31, 39, 45, 0.94), rgba(16, 21, 24, 0.96)),
    #151b1f;
  color: #eef3f7;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

.remote-media-card.screen-share-card {
  width: min(980px, calc(100% - 44px));
  min-height: min(640px, calc(100% - 44px));
  align-content: start;
  justify-items: stretch;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(23, 29, 34, 0.96), rgba(10, 13, 15, 0.98)),
    #101518;
}

.screen-share-topline {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #edf4fb;
}

.screen-share-topline strong {
  font-size: 14px;
}

.screen-share-topline span:last-child {
  margin-left: auto;
  color: #aeb7c4;
  font-size: 12px;
}

.remote-media-avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #2f7de1, #55c7b9);
  color: white;
  font-size: 42px;
  font-weight: 800;
}

.remote-media-renderer {
  width: min(240px, 100%);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #2b3944;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(57, 74, 84, 0.58), rgba(8, 11, 12, 0.9) 66%),
    #080b0d;
}

.screen-share-renderer {
  width: 100%;
  min-height: 420px;
  border-color: #36434e;
  background:
    linear-gradient(90deg, rgba(34, 42, 48, 0.9) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34, 42, 48, 0.9) 1px, transparent 1px),
    radial-gradient(circle at 45% 34%, rgba(48, 70, 84, 0.48), rgba(8, 11, 12, 0.92) 62%),
    #080b0d;
  background-size: 40px 40px, 40px 40px, auto, auto;
}

.remote-media-renderer[data-media-attached="true"] .remote-media-avatar {
  display: none;
}

.remote-media-renderer[data-screen-share-attached="true"] .remote-media-element.video:not([data-remote-media-source="screen_share"]) {
  display: none;
}

.remote-media-element.video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #050708;
}

.remote-media-element.video.screen-share {
  object-fit: contain;
}

.remote-media-element.audio {
  display: none;
}

.screen-share-fallback {
  width: auto;
  height: auto;
  padding: 12px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(21, 28, 32, 0.88);
  border: 1px solid #34414c;
  color: #dbe6f0;
  font-size: 13px;
}

.screen-share-fallback-icon,
.screen-share-fallback-icon svg {
  width: 16px;
  height: 16px;
}

.remote-media-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.remote-media-copy strong {
  font-size: 18px;
}

.remote-media-copy span,
.remote-media-card small {
  color: #aeb7c4;
  font-size: 12px;
}

.remote-media-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.remote-media-badges > span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #303a43;
  border-radius: 999px;
  background: #171f24;
  color: #9da8b5;
  font-size: 12px;
  font-weight: 700;
}

.remote-media-badges > span.active {
  border-color: rgba(77, 156, 255, 0.72);
  background: rgba(28, 94, 184, 0.28);
  color: #eef6ff;
}

.badge-icon {
  width: 14px;
  height: 14px;
}

.badge-icon svg {
  width: 14px;
  height: 14px;
}

.speaker-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.bottom-bar {
  width: 100%;
  min-width: 0;
  height: 66px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: center;
  border-top: 1px solid var(--line-soft);
  background: #101718;
  padding: 4px 8px 5px;
}

.react-toolbar-grid {
  display: contents;
}

.bottom-bar button {
  display: grid;
  grid-template-rows: 27px 16px;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-width: 58px;
  min-height: 56px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  color: #dfe4ec;
}

.bottom-bar button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.bottom-bar .icon-dot {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
}

.bottom-bar .icon-dot svg {
  width: 22px;
  height: 22px;
}

.bottom-bar .end {
  color: #ff4c78;
}

.bottom-bar .muted-control {
  color: #ff6e8c;
}

.bottom-bar .active-recording .icon-dot {
  color: #ff4c78;
}

.bottom-bar .active-control .icon-dot {
  color: #ffd36f;
}

.tool-popover,
.host-tools,
.record-popover {
  position: absolute;
  right: 410px;
  bottom: 76px;
  width: 260px;
  background: #27272a;
  border: 1px solid #55585e;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 8;
  padding: 12px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tool-grid button {
  min-height: 70px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 4px;
  font-size: 11px;
  position: relative;
}

.tool-grid .selected {
  outline: 2px solid var(--blue);
  background: #34363a;
}

.tool-grid em {
  position: absolute;
  right: 5px;
  top: 5px;
  font-style: normal;
  font-size: 9px;
  background: #5b43a6;
  border-radius: 6px;
  padding: 2px 4px;
}

.tool-popover footer {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.tool-popover footer button {
  float: right;
  color: #4da2ff;
}

.host-tools {
  top: 60px;
  bottom: auto;
  width: 500px;
}

.host-tools-note {
  margin: 6px 0 10px;
  color: #b7c0cc;
  font-size: 12px;
}

.host-tools label,
.row-link,
.advanced-list button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.host-tools input[type="checkbox"] {
  width: 42px;
}

.advanced-list {
  display: grid;
  margin-top: 10px;
}

.record-popover {
  top: 58px;
  right: 410px;
  bottom: auto;
  width: 300px;
  display: grid;
  gap: 10px;
}

.record-popover span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.archive-status {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #3a3f46;
  border-radius: 8px;
  background: #1b1d21;
}

.archive-status.saved {
  border-color: rgba(85, 199, 185, 0.62);
  background: rgba(38, 120, 111, 0.16);
}

.archive-status.failed {
  border-color: rgba(255, 76, 120, 0.58);
  background: rgba(120, 38, 58, 0.18);
}

.archive-status.writing {
  border-color: rgba(77, 162, 255, 0.58);
  background: rgba(39, 104, 184, 0.16);
}

.archive-path {
  display: block;
  padding: 8px 10px;
  border: 1px solid #3a3f46;
  border-radius: 8px;
  background: #16181c;
  color: #dce6f1;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.record-popover small,
.archive-error {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.archive-error {
  color: #ff8aa6;
  font-style: normal;
}

.record-popover button {
  background: #343439;
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 760;
}

.record-popover button .cm-icon {
  width: 17px;
  height: 17px;
  background: transparent;
  border: 0;
  color: currentColor;
}

.react-record-popover .archive-status .cm-icon {
  width: 18px;
  height: 18px;
  background: transparent;
  border: 0;
}

.meeting-chat {
  min-height: 0;
}

.chat-tabs {
  height: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #333539;
}

.chat-tabs button {
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 1px solid #41454d;
  border-radius: 9px;
  color: #d8dee8;
  font-size: 11px;
  font-weight: 800;
}

.chat-tabs .tab-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: #4da2ff;
}

.chat-tabs .tab-icon svg {
  width: 20px;
  height: 20px;
}

.chat-tabs button > span:not(.cm-icon) {
  line-height: 1;
}

.chat-tabs .active {
  border-color: #1680ff;
  box-shadow: inset 0 0 0 2px #1680ff;
}

.chat-thread {
  min-height: 0;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding: 16px 14px;
}

.chat-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #050708;
  border: 1px solid #30343b;
  color: #9ca9b8;
  font-size: 10px;
  font-weight: 900;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: #eef2f7;
  font-size: 12px;
}

.chat-meta span {
  color: var(--muted);
}

.chat-message p {
  margin: 0;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1f2b3a;
  color: white;
  line-height: 1.2;
  font-weight: 700;
  font-size: 13px;
}

.chat-attachment {
  width: min(230px, 100%);
  min-height: 70px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #3d4855;
  border-radius: 9px;
  background: #141b23;
}

.chat-attachment .attachment-icon {
  grid-row: 1 / -1;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1f2a38;
  color: #8bbcff;
}

.chat-attachment .attachment-icon svg {
  width: 20px;
  height: 20px;
}

.chat-attachment strong,
.chat-attachment span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-attachment strong {
  color: #eef4fb;
  font-size: 12px;
}

.chat-attachment span {
  color: #8f9cab;
  font-size: 11px;
}

.message-visibility {
  min-height: 30px;
  border-top: 1px solid #3d3f43;
  border-bottom: 1px solid #3d3f43;
  background: #3a3a3a;
  color: #c7ccd4;
  font-weight: 800;
  font-size: 12px;
}

.chat-composer {
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
  background: #252527;
}

.chat-composer textarea {
  min-height: 58px;
  padding: 4px 0;
}

.chat-composer footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.chat-composer footer button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.chat-composer footer button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.composer-gif {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.chat-composer .send {
  margin-left: auto;
  width: 34px;
  border-radius: 8px;
  background: #38404a;
  color: #dfe8f3;
}

.notes-window {
  position: absolute;
  left: 14px;
  top: 24px;
  z-index: 12;
  width: min(410px, calc(100vw - 470px));
  min-width: 350px;
  max-height: calc(100vh - 120px);
  display: grid;
  grid-template-rows: auto auto minmax(0, auto) auto;
  gap: 12px;
  padding: 0 16px 16px;
  border: 1px solid #4b4d52;
  border-radius: 10px;
  background: #101516;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notes-window > header {
  height: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 -16px;
  padding: 0 12px;
  background: #2b2b2e;
  border-radius: 10px 10px 0 0;
}

.notes-window > header strong {
  color: #d3d6dc;
  font-size: 13px;
}

.notes-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.notes-title-row h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.2;
}

.notes-title-row button {
  color: #4da2ff;
  font-size: 12px;
  font-weight: 800;
}

.live-transcript {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #222325;
}

.live-transcript header,
.live-transcript footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
}

.live-transcript header button {
  margin-left: auto;
  color: var(--muted);
}

.live-transcript header button + button {
  margin-left: 0;
}

.live-transcript pre {
  max-height: min(258px, calc(100vh - 425px));
  margin: 0;
  padding: 0 14px;
  overflow: auto;
  color: #eff2f5;
  white-space: pre-wrap;
  line-height: 1.36;
  font-size: 14px;
  font-family: inherit;
}

.live-transcript footer {
  color: var(--muted);
  font-size: 12px;
}

.live-transcript footer i {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #7d8491 0 3px, transparent 3px 7px);
}

.live-transcript footer button {
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  background: #55585f;
  font-weight: 800;
}

.notes-window > textarea {
  min-height: 58px;
  padding: 0;
  color: #737a84;
}

.react-notes-window .cm-icon {
  color: #a9b1bc;
}

.react-notes-window .live-transcript footer .cm-icon {
  width: 16px;
  height: 16px;
  background: transparent;
  border: 0;
}

.reactions-popover,
.participants-menu,
.transcription-popover {
  position: absolute;
  z-index: 11;
  border: 1px solid #56585d;
  border-radius: 10px;
  background: #242426;
  box-shadow: var(--shadow);
}

.reactions-popover {
  left: 50%;
  bottom: 240px;
  width: 300px;
  transform: translateX(-45%);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.reactions-popover header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #eef2f6;
  font-size: 12px;
}

.reaction-effects,
.reaction-grid {
  display: flex;
  gap: 7px;
  justify-content: center;
}

.reaction-effects button,
.reaction-grid button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #161b1f;
  font-size: 18px;
}

.reaction-effects .active,
.reaction-grid .active {
  outline: 2px solid var(--blue);
}

.reaction-title {
  text-align: center;
  font-size: 12px;
}

.reaction-row {
  min-height: 36px;
  border-radius: 8px;
  background: #343437;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reaction-row.active {
  color: #ffd36f;
}

.react-reactions-popover {
  gap: 10px;
  padding: 12px;
}

.react-reactions-popover header {
  justify-content: space-between;
  text-align: left;
}

.react-reactions-popover header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.react-reactions-popover .reaction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.react-reactions-popover .reaction-choice {
  width: auto;
  height: 54px;
  grid-template-rows: 22px 16px;
  gap: 3px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
}

.react-reactions-popover .reaction-choice .cm-icon {
  background: transparent;
  border: 0;
  color: #dfe8f4;
}

.react-reactions-popover .reaction-choice.active {
  outline: 2px solid var(--blue);
  background: #1c2b42;
}

.react-reactions-popover .reaction-row {
  width: 100%;
}

.react-reactions-popover .reaction-row .cm-icon {
  width: 18px;
  height: 18px;
  background: transparent;
  border: 0;
}

.participants-menu {
  left: 210px;
  bottom: 270px;
  width: 230px;
  padding: 8px 0;
}

.participants-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  text-align: left;
}

.participants-menu button:hover {
  background: #34363b;
}

.participants-menu span {
  color: var(--muted);
}

.react-participants-menu button > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eef3fa;
  font-weight: 720;
}

.react-participants-menu .menu-icon {
  width: 18px;
  height: 18px;
  background: transparent;
  border: 0;
  color: #aab4c0;
}

.react-participants-menu kbd {
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
}

.participants-menu hr {
  border: 0;
  border-top: 1px solid #3a3d42;
  margin: 6px 0;
}

.transcription-popover {
  right: 420px;
  top: 58px;
  width: 300px;
  display: grid;
  gap: 10px;
  padding: 16px 12px 12px;
}

.transcription-popover h3 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.transcription-popover button {
  min-height: 34px;
  text-align: left;
  padding: 0 10px;
  border-radius: 8px;
  color: #edf2f7;
}

.transcription-popover button::before {
  content: "";
  margin: 0;
}

.transcription-popover .danger-soft {
  margin: 4px 0 0;
  text-align: center;
  justify-self: stretch;
  color: #ff6d87;
}

.transcription-popover .danger-soft::before {
  content: "";
  margin: 0;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal-backdrop.light {
  place-items: center;
}

.permission-backdrop {
  background: rgba(23, 32, 44, 0.28);
  backdrop-filter: blur(8px);
}

.permission-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 44px);
  display: grid;
  gap: 16px;
  padding: 28px 32px 26px;
  overflow: auto;
  border: 1px solid #d4dcd7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(35, 48, 56, 0.18);
}

.permission-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.permission-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #17202c;
}

.permission-logo span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd3d7;
  border-radius: 8px;
  background: #eef3ee;
  color: #244c72;
  font-size: 11px;
  font-weight: 900;
}

.permission-logo strong {
  font-size: 15px;
  letter-spacing: 0;
}

.permission-modal h2 {
  margin: 10px 0 0;
  color: #17202c;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.permission-lede {
  margin: -6px 0 8px;
  color: #4e5b68;
  font-size: 17px;
  line-height: 1.35;
}

.permission-list {
  display: grid;
  gap: 14px;
}

.permission-row {
  min-height: 98px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  background: #f8faf7;
}

.permission-row-icon {
  width: 34px;
  height: 34px;
  color: #1f4f76;
  background: transparent;
  border: 0;
}

.permission-row > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.permission-row strong {
  color: #17202c;
  font-size: 18px;
  line-height: 1.1;
}

.permission-row span {
  color: #4e5b68;
  font-size: 14px;
  line-height: 1.3;
}

.permission-status {
  width: fit-content;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8eee8;
  color: #3f5549;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.permission-status.ready {
  background: #e7f6ed;
  color: #267448;
}

.permission-status.pending,
.permission-status.desktop-only {
  background: #e8f0f7;
  color: #1f4f76;
}

.permission-status.blocked {
  background: #fff0ed;
  color: #9f352c;
}

.permission-enable,
.permission-next {
  min-width: 108px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: #1f4f76;
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
}

.permission-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cbd5dc;
  border-radius: 8px;
  background: #f8faf7;
  color: #344250;
  line-height: 1.35;
}

.permission-modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.permission-modal footer span {
  color: #63707c;
  font-size: 12px;
}

.permission-next {
  min-width: 108px;
  background: #1f4f76;
}

.conversion-modal,
.ended-modal,
.schedule-modal {
  background: #252527;
  border: 1px solid #55575d;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.conversion-modal {
  width: 530px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 34px;
}

.progress-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
}

.progress-row span {
  height: 8px;
  border-radius: 8px;
  background: #4d4e52;
}

.progress-row i {
  display: block;
  height: 100%;
  width: 24%;
  border-radius: inherit;
  background: #c6c8cc;
}

.ended-modal {
  width: 520px;
  text-align: center;
  padding: 40px;
}

.gift {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: linear-gradient(90deg, #348cff 45%, #80baff 45% 55%, #348cff 55%);
  position: relative;
}

.gift::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 9px;
  background: #80baff;
}

.share-backdrop {
  background: rgba(0, 0, 0, 0.36);
}

.share-modal {
  width: min(1024px, calc(100vw - 56px));
  height: min(640px, calc(100vh - 72px));
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr) 62px;
  overflow: hidden;
  background: #262626;
  border: 1px solid #48494d;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.share-titlebar {
  display: grid;
  grid-template-columns: 150px 1fr 84px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #333438;
}

.window-dots.small {
  padding-left: 0;
}

.window-dots.small span {
  width: 10px;
  height: 10px;
}

.share-tabs {
  justify-self: center;
  display: inline-grid;
  grid-template-columns: repeat(3, 86px);
  gap: 0;
  padding: 3px;
  border-radius: 8px;
  background: #343437;
}

.share-tabs button {
  min-height: 30px;
  border-radius: 7px;
  color: #b6bbc4;
  font-weight: 800;
  font-size: 13px;
}

.share-tabs .active {
  color: #fff;
  background: #56565a;
}

.share-close {
  justify-self: end;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 22px;
  color: #d7dae0;
}

.share-close:hover {
  background: #37383c;
}

.share-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
}

.share-source-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  grid-auto-rows: minmax(108px, 1fr);
  gap: 10px 22px;
  padding: 30px 18px 24px;
}

.share-source {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px solid #44464b;
  border-radius: 8px;
  background: #29292a;
  color: #f0f2f6;
}

.share-source:hover {
  border-color: #62666d;
  background: #303033;
}

.share-source.selected {
  border-color: var(--blue);
  background: var(--blue);
}

.share-source strong {
  font-size: 13px;
}

.share-source em {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #d9eaff;
  font-size: 11px;
  font-style: normal;
}

.share-source-icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #343940;
  color: #6fb4ff;
}

.share-source-icon svg {
  width: 28px;
  height: 28px;
}

.share-source.selected .share-source-icon {
  background: rgba(9, 18, 31, 0.48);
  color: white;
}

.presenter-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 6px;
  padding: 12px 10px;
  background: #202021;
  border-left: 1px solid #333438;
  overflow: hidden;
}

.presenter-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  font-size: 13px;
}

.presenter-preview {
  height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid #3d3e43;
  border-radius: 10px;
  background: #101011;
}

.preview-screen {
  width: 150px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #363b42;
}

.preview-screen::before {
  content: "";
  width: 48px;
  height: 32px;
  border: 4px solid #4ca3ff;
  border-radius: 5px;
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.layout-grid button {
  min-height: 50px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid #3d3f45;
  border-radius: 8px;
  background: #252528;
  font-size: 11px;
  font-weight: 800;
}

.layout-grid button.selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.layout-grid span {
  width: 50px;
  height: 24px;
  border: 2px solid white;
  border-radius: 3px;
  display: block;
  position: relative;
}

.layout-grid button:nth-child(2) span::before,
.layout-grid button:nth-child(3) span::before,
.layout-grid button:nth-child(4) span::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: white;
  left: 5px;
  bottom: 5px;
}

.share-options {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 4px 8px 0;
}

.share-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 12px;
}

.share-options input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.share-overlay-options {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 0 8px;
  overflow: hidden;
}

.share-overlay-options div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.share-overlay-options button {
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #41454d;
  border-radius: 999px;
  background: #292b2f;
  color: #c3c9d3;
  font-size: 11px;
  font-weight: 800;
}

.share-overlay-options .active {
  border-color: #4ca3ff;
  background: #153b62;
  color: white;
}

.share-modal footer {
  display: grid;
  place-items: center;
  border-top: 1px solid #333438;
}

.share-submit {
  width: 164px;
  min-height: 34px;
  border-radius: 7px;
}

.portion-overlay {
  position: absolute;
  inset: 42px 0 0;
  z-index: 35;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at 50% 50%, rgba(30, 119, 238, 0.1), transparent 34%),
    rgba(6, 8, 9, 0.9);
}

.portion-toolbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  background: #202124;
  border-bottom: 1px solid #3a3b40;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.portion-toolbar div:first-child {
  display: grid;
  gap: 3px;
}

.portion-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.portion-presets {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: #303236;
}

.portion-presets button,
.portion-toolbar > button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  color: #dce1e8;
  border: 1px solid transparent;
  font-weight: 700;
}

.portion-presets .active {
  background: #4a4d54;
  border-color: #676b74;
  color: white;
}

.desktop-map {
  position: relative;
  margin: 24px;
  border: 1px solid #2e353b;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    #101516;
  background-size: 56px 56px;
}

.mock-window {
  position: absolute;
  border-radius: 10px;
  border: 1px solid #3b4148;
  background: rgba(43, 48, 54, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.mock-window.large {
  left: 7%;
  top: 16%;
  width: 50%;
  height: 55%;
}

.mock-window.side {
  right: 8%;
  top: 18%;
  width: 26%;
  height: 62%;
}

.mock-window.dock {
  left: 28%;
  right: 28%;
  bottom: 7%;
  height: 52px;
  border-radius: 18px;
}

.portion-layer-card {
  position: absolute;
  right: 6%;
  bottom: 11%;
  width: 260px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(76, 163, 255, 0.42);
  border-radius: 12px;
  background: rgba(18, 25, 33, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.portion-layer-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.portion-rect {
  position: absolute;
  display: grid;
  place-items: end end;
  padding: 10px;
  border: 3px solid #4ca3ff;
  border-radius: 8px;
  background: rgba(22, 119, 238, 0.12);
  cursor: move;
  touch-action: none;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.24),
    0 0 30px rgba(76, 163, 255, 0.24);
}

.portion-rect i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #dff0ff;
  border-radius: 50%;
  background: var(--blue);
}

.portion-rect i:nth-child(1) {
  left: -7px;
  top: -7px;
  cursor: nwse-resize;
}

.portion-rect i:nth-child(2) {
  right: -7px;
  top: -7px;
  cursor: nesw-resize;
}

.portion-rect i:nth-child(3) {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

.portion-rect i:nth-child(4) {
  left: -7px;
  bottom: -7px;
  cursor: nesw-resize;
}

.portion-rect span {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(9, 11, 12, 0.82);
  color: #dcecff;
  font-size: 12px;
  font-weight: 800;
}

.cm-icon-button,
.cm-toolbar-button,
.cm-share-source-card {
  border: 1px solid #3c3f45;
  border-radius: 8px;
  background: #22262c;
  color: #eef2f7;
}

.cm-icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.cm-toolbar-button {
  min-height: 56px;
  display: grid;
  grid-template-rows: 26px 16px;
  place-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
}

.cm-share-source-card {
  position: relative;
  min-height: 108px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 14px;
}

.cm-share-source-card span {
  color: #aeb7c4;
  font-size: 12px;
}

.cm-icon-button.is-active,
.cm-toolbar-button.is-active,
.cm-share-source-card.is-selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.cm-toolbar-button.is-muted,
.cm-toolbar-button.is-danger,
.cm-icon-button.is-danger {
  color: #ff6386;
}

.cm-share-source-check {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #8fc6ff;
}

.schedule-modal {
  width: 540px;
  padding: 18px 22px;
}

.schedule-modal header {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.compact {
  border-radius: 10px;
  margin-bottom: 10px;
}

.title-input {
  font-size: 16px;
  font-weight: 700;
  border-color: var(--blue);
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0;
}

.schedule-modal label,
.schedule-row {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 14px 0;
  display: flex;
  gap: 16px;
}

.schedule-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
}

.settings-window {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  height: calc(100vh - 42px);
  background: #222;
}

.settings-window aside {
  padding: 16px;
  background: #232427;
  border-right: 1px solid #303236;
  display: grid;
  align-content: start;
  gap: 9px;
}

.settings-window aside button {
  min-height: 38px;
  text-align: left;
  border-radius: 8px;
  padding: 0 10px;
}

.settings-window aside .active {
  background: var(--blue);
}

.settings-panel {
  padding: 24px 40px;
  max-width: 650px;
  overflow: auto;
}

.settings-card {
  border: 1px solid #34373d;
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.runtime-card,
.cost-card {
  gap: 16px;
}

.runtime-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.runtime-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.runtime-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #39424b;
  border-radius: 10px;
  background: #171d20;
}

.runtime-status strong {
  color: #dce6f1;
}

.runtime-status span {
  color: var(--muted);
}

.runtime-status.signed-in {
  border-color: rgba(41, 197, 101, 0.42);
  background: rgba(28, 67, 47, 0.32);
}

.runtime-status.offline {
  border-color: rgba(255, 59, 98, 0.42);
  background: rgba(72, 25, 36, 0.44);
}

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.runtime-grid article {
  min-width: 0;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid #343a42;
  border-radius: 10px;
  background: #1a2024;
}

.runtime-grid article.ready {
  border-color: rgba(41, 197, 101, 0.4);
  background: rgba(24, 54, 39, 0.42);
}

.runtime-grid span {
  color: #dce6ef;
  font-weight: 800;
}

.runtime-grid small,
.runtime-grid em {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.cost-card span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #333a42;
  border-radius: 10px;
  background: #171d20;
  color: #d8e0ea;
}

.ai-settings-card label {
  display: grid;
  gap: 8px;
}

.ai-settings-card label:has(input[type="checkbox"]) {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.ai-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-capability-grid span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1a2023;
  border: 1px solid #323840;
  color: #cfd6df;
  font-size: 12px;
}

.model-profile-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #343a42;
  border-radius: 10px;
  background: #1b2226;
  color: #cbd3dd;
  line-height: 1.35;
}

.model-profile-card strong {
  color: white;
}

.scribe-settings-card label {
  display: grid;
  gap: 8px;
}

.scribe-settings-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.scribe-settings-head span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #34373d;
  overflow: auto;
  scrollbar-width: none;
  padding: 0 10px;
}

.tabs button {
  min-height: 40px;
  padding: 0 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  color: #cdd4de;
}

.tabs .active {
  color: #4da2ff;
  border-color: #4da2ff;
}

.filter-grid,
.background-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 14px;
  overflow: auto;
}

.filter-grid.compact,
.background-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 14px 14px;
}

.avatar-mode-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #34373d;
  border-bottom: 1px solid #34373d;
}

.avatar-mode-card > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.video-permission-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-top: 1px solid #34373d;
  background: #17191c;
}

.video-permission-strip strong {
  min-width: 0;
  color: #dce4ed;
  font-size: 12px;
  line-height: 1.2;
}

.video-permission-strip button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #46515d;
  border-radius: 8px;
  background: #232a31;
  color: #dbe6f1;
  font-size: 11px;
  font-weight: 850;
}

.avatar-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.avatar-mode-grid button {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid #3b3f46;
  border-radius: 10px;
  background: #292c31;
  text-align: left;
  color: #dbe0e8;
  font-size: 11px;
  font-weight: 800;
}

.avatar-mode-grid button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #217cff, #56d6b8);
  color: white;
  font-size: 10px;
}

.avatar-mode-grid .selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.settings-avatar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-grid button,
.background-grid button {
  min-height: 54px;
  border-radius: 8px;
  background: #303236;
  border: 1px solid transparent;
  font-size: 10px;
}

.filter-grid.compact button,
.background-grid.compact button {
  min-height: 42px;
  padding: 0 8px;
  color: #dde4ec;
  font-size: 11px;
  font-weight: 750;
}

.filter-grid .selected,
.background-grid .selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.participant-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
}

.participants-panel h4 {
  margin: 18px 14px 6px;
}

.participants-panel footer {
  margin-top: auto;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.participants-panel footer button {
  min-height: 40px;
  background: #3a3b40;
  border-radius: 999px;
}

.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatches button {
  min-width: 60px;
  min-height: 28px;
  border-radius: 6px;
  border: 1px solid #777;
}

.swatches .dark {
  background: #111;
}

.swatches .light {
  background: white;
  color: #111;
}

.swatches .teal {
  background: #0e4a48;
}

.swatches .cream {
  background: #cbfbf7;
  color: #111;
}

.swatches .blue {
  background: #16356b;
}

.swatches .wine {
  background: #66172a;
}

.caption-preview {
  height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #0f1516;
  border: 1px solid #727980;
  border-radius: 8px;
}

.caption-preview span {
  color: #ffe861;
}

.whiteboard-workspace {
  display: grid;
  grid-template-columns: minmax(780px, 1fr) 360px;
  gap: 12px;
  min-height: calc(100vh - 42px);
}

.whiteboard-shell {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #141a1d;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.whiteboard-header {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #2c3338;
}

.whiteboard-header h1 {
  margin: 5px 0 0;
  font-size: 28px;
}

.whiteboard-actions,
.whiteboard-body {
  display: flex;
  gap: 10px;
}

.whiteboard-actions button,
.whiteboard-inspector button {
  min-height: 36px;
  border: 1px solid #48515a;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.whiteboard-body {
  min-height: 0;
  padding: 12px;
}

.whiteboard-tools {
  width: 48px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  border: 1px solid #303841;
  border-radius: 10px;
  background: #1c2328;
}

.whiteboard-tools button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #dce4ef;
  background: #2b3238;
  font-weight: 900;
}

.whiteboard-tools .icon-dot {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent;
}

.whiteboard-tools .icon-dot svg {
  width: 18px;
  height: 18px;
}

.whiteboard-tools .active {
  background: var(--blue);
}

.whiteboard-canvas {
  position: relative;
  min-height: 640px;
  flex: 1;
  overflow: hidden;
  border: 1px solid #303841;
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #0f1517;
  background-size: 28px 28px;
}

.whiteboard-drawing-layer,
.board-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.whiteboard-drawing-layer {
  z-index: 1;
  touch-action: none;
  cursor: crosshair;
}

.board-layer {
  z-index: 2;
  pointer-events: none;
}

.sticky-note,
.board-card {
  position: absolute;
  display: grid;
  gap: 7px;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.sticky-note {
  width: 230px;
  min-height: 136px;
  color: #17202d;
}

.sticky-note strong,
.board-card strong {
  font-size: 15px;
}

.sticky-note span,
.board-card span {
  line-height: 1.32;
  font-size: 14px;
}

.note-one {
  left: 10%;
  top: 16%;
  background: #f9df79;
  transform: rotate(-0.8deg);
}

.note-two {
  right: 12%;
  bottom: 18%;
  background: #9ce9d0;
  transform: rotate(0.8deg);
}

.board-card {
  left: 42%;
  top: 36%;
  width: 250px;
  border: 1px solid #3e83ff;
  background: #182339;
}

.board-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.board-lines path {
  fill: none;
  stroke: #4da2ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
}

.presence-chip {
  position: absolute;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #0f1517;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e84ff, #55d6a4);
  font-size: 10px;
  font-weight: 900;
}

.presence-chip.host {
  left: 28%;
  top: 48%;
}

.presence-chip.guest {
  right: 24%;
  top: 32%;
  background: linear-gradient(135deg, #da5bd7, #f6c05f);
}

.board-layer .presence-chip.host,
.board-layer .presence-chip.guest {
  right: auto;
  bottom: auto;
}

.whiteboard-inspector {
  width: 238px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #303841;
  border-radius: 10px;
  background: #1e252a;
}

.whiteboard-inspector > span {
  color: var(--muted);
}

.whiteboard-inspector > .sync-ok {
  color: #9ff0bf;
}

.whiteboard-inspector code {
  min-width: 0;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid #39424b;
  border-radius: 9px;
  color: #b8c7d8;
  background: #151b1f;
  text-overflow: ellipsis;
}

.whiteboard-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #303841;
  border-radius: 10px;
  background: #161b1e;
  color: var(--muted);
}

.whiteboard-status-row strong {
  color: #edf3fb;
  font-size: 12px;
}

.whiteboard-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 59, 98, 0.38);
  border-radius: 10px;
  background: rgba(255, 59, 98, 0.1);
  color: #ffd7df;
  line-height: 1.35;
}

.whiteboard-inspector label {
  display: grid;
  gap: 6px;
  color: #d8dee8;
}

.whiteboard-inspector input,
.whiteboard-inspector select {
  min-height: 36px;
  min-width: 0;
  border: 1px solid #4b535c;
  border-radius: 9px;
  padding: 0 10px;
  background: #1a2024;
  color: white;
  text-overflow: ellipsis;
}

.doc-workspace {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) 380px;
  gap: 18px;
}

.transcript {
  max-width: 780px;
  margin: 40px auto;
}

.transcript h1 {
  font-size: 42px;
  line-height: 1.1;
}

.pill-row {
  display: flex;
  gap: 8px;
}

.pill-row button,
.transcript-card {
  border: 1px solid #3a3d42;
  background: #242527;
  border-radius: 8px;
}

.pill-row button {
  min-height: 28px;
  padding: 0 10px;
}

.transcript-card {
  padding: 16px;
  margin: 12px 0 30px;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .desktop,
  .home-layout,
  .room-shell,
  .doc-workspace {
    grid-template-columns: 1fr;
  }

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

  .screen {
    grid-template-rows: auto 1fr;
  }

  .quick-actions {
    gap: 12px;
    flex-wrap: wrap;
  }

  .bottom-bar {
    grid-template-columns: repeat(5, 1fr);
    height: auto;
    padding: 8px 0;
  }

  .share-modal {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    grid-template-rows: 54px minmax(0, 1fr) 64px;
  }

  .share-titlebar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 10px;
  }

  .share-titlebar .window-dots {
    display: none;
  }

  .share-tabs {
    justify-self: stretch;
    width: min(100%, 260px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .share-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .share-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(104px, auto);
    gap: 10px;
    padding: 14px;
  }

  .share-source {
    min-width: 0;
  }

  .share-source-icon {
    width: 44px;
    height: 44px;
  }

  .presenter-panel {
    display: none;
  }

  .share-modal footer {
    padding: 0 14px;
  }

  .share-submit {
    width: 100%;
  }

  .portion-overlay {
    inset: 42px 0 0;
  }

  .portion-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .portion-toolbar div:first-child {
    min-width: 0;
  }

  .portion-presets {
    flex-wrap: wrap;
    border-radius: 12px;
  }

  .portion-presets button,
  .portion-toolbar > button {
    min-height: 32px;
    padding: 0 10px;
  }

  .desktop-map {
    margin: 12px;
  }

  .portion-layer-card {
    display: none;
  }

  .whiteboard-workspace {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 42px);
  }

  .whiteboard-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .whiteboard-header h1 {
    font-size: 24px;
  }

  .whiteboard-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .whiteboard-actions button {
    flex: 1 1 132px;
  }

  .whiteboard-body {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 10px;
  }

  .whiteboard-tools {
    width: 46px;
    padding: 7px;
  }

  .whiteboard-canvas {
    min-height: 520px;
  }

  .whiteboard-inspector {
    grid-column: 1 / -1;
    width: auto;
  }

  .notes-window {
    left: 12px;
    right: 12px;
    top: 54px;
    width: auto;
    min-width: 0;
  }

  .permission-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    gap: 10px;
    padding: 16px 18px;
  }

  .permission-modal h2 {
    margin-top: 8px;
    font-size: 26px;
  }

  .permission-lede {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .permission-list {
    gap: 10px;
  }

  .permission-row {
    min-height: 136px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 14px;
  }

  .permission-row-icon {
    width: 34px;
    height: 34px;
  }

  .permission-row strong {
    font-size: 19px;
  }

  .permission-row span {
    font-size: 13px;
  }

  .permission-enable {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
    font-size: 16px;
  }

  .permission-modal footer {
    align-items: stretch;
    flex-direction: column;
  }

  .permission-next {
    width: 100%;
  }

  .participants-menu,
  .reactions-popover,
  .transcription-popover {
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
  }

  .transcription-popover {
    top: 58px;
  }

  .runtime-grid {
    grid-template-columns: 1fr;
  }

  .public-nav {
    height: auto;
    grid-template-columns: 1fr auto;
    padding: 14px;
  }

  .public-brand strong {
    font-size: 16px;
  }

  .public-nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 14px;
    overflow: auto;
    font-size: 13px;
  }

  .public-sign-in {
    display: none;
  }

  .public-hero {
    min-height: 590px;
  }

  .public-hero h1 {
    font-size: clamp(48px, 16vw, 76px);
  }

  .public-hero p:not(.public-kicker) {
    font-size: 17px;
  }

  .public-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .public-hero-copy,
  .public-hero-status {
    width: calc(100vw - 28px);
  }

  .public-hero-status {
    grid-template-columns: 1fr 1fr;
  }

  .public-hero-status span:nth-child(2) {
    border-right: 0;
  }

  .public-capabilities {
    width: calc(100vw - 28px);
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 0;
  }

  .public-share-section {
    width: calc(100vw - 28px);
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .public-link-panel {
    width: calc(100vw - 28px);
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .public-link-panel h2 {
    font-size: 31px;
  }
}
