:root {
  color: #172033;
  background: #eef2f6;
  font-family:
    "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.language-switcher {
  min-height: 34px;
  padding: 4px;
  border: 1px solid #d1dedb;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.72);
}

.language-switcher button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  color: #62727b;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.is-selected {
  color: #102b31;
  background: #f1bd65;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.12);
}

.crm-app-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  background:
    linear-gradient(115deg, rgba(31, 86, 102, 0.08), transparent 36%),
    radial-gradient(circle at top right, rgba(231, 156, 78, 0.12), transparent 30%),
    #eef2f6;
}

.crm-app-shell.is-sidebar-collapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

.sidebar {
  height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 18px;
  color: #e7edf0;
  background: #13282f;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #d9e7ea;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-toggle svg {
  transform: rotate(180deg);
  transition: transform 160ms ease;
}

.is-sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(0deg);
}

.is-sidebar-collapsed .brand div,
.is-sidebar-collapsed .nav-label,
.is-sidebar-collapsed .sidebar-card {
  display: none;
}

.is-sidebar-collapsed .brand,
.is-sidebar-collapsed .nav-item {
  justify-content: center;
}

.is-sidebar-collapsed .nav-item {
  padding: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
}

.brand > span {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #13282f;
  background: #f1bd65;
  font-size: 1.3rem;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 2px;
  color: #9fb2b9;
  font-size: 0.78rem;
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c4d2d6;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.is-active {
  color: #13282f;
  background: #e8f1ee;
}

.sidebar-card {
  margin-top: auto;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-card svg {
  color: #f1bd65;
}

.sidebar-card strong {
  display: block;
  margin-top: 10px;
}

.sidebar-card p {
  margin: 8px 0 0;
  color: #acc0c6;
  font-size: 0.84rem;
  line-height: 1.45;
}

.crm-content {
  height: 100dvh;
  min-width: 0;
  overflow-y: auto;
  padding: 22px;
}

.crm-content--inbox {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.search-box {
  width: min(560px, 100%);
  height: 44px;
  border: 1px solid #d7e0e5;
  border-radius: 8px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #66747d;
  background: rgba(255, 255, 255, 0.86);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #172033;
  background: transparent;
  font-size: 0.92rem;
}

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

.primary-action,
.ghost-action,
.icon-button {
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.primary-action {
  border: 1px solid #0d5c63;
  padding: 0 14px;
  color: #fff;
  background: #0d5c63;
  box-shadow: 0 12px 24px rgba(13, 92, 99, 0.18);
}

.ghost-action,
.icon-button {
  border: 1px solid #d7e0e5;
  color: #203039;
  background: #fff;
}

.icon-button.is-active {
  border-color: #0d5c63;
  color: #0d5c63;
  background: #e7f5f5;
}

.ghost-action {
  padding: 0 14px;
}

.compact-action {
  min-height: 36px;
  margin-top: 12px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workflow-actions .compact-action {
  margin-top: 12px;
}

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

.danger-action {
  color: #b42318;
  border-color: #f4c7c3;
  background: #fff7f6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
}

.quick-modal {
  width: min(100%, 560px);
  max-height: min(88vh, 760px);
  max-height: min(88dvh, calc(100dvh - 40px), 760px);
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.quick-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.quick-modal h2 {
  margin: 0;
  font-size: 1.05rem;
}

.quick-modal form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.quick-modal label {
  display: grid;
  min-width: 0;
  gap: 7px;
  overflow-wrap: anywhere;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-modal input,
.quick-modal select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 8px;
  padding: 0 12px;
  color: #0f172a;
  font: inherit;
  text-transform: none;
  background: #ffffff;
}

.quick-modal .form-helper {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.quick-modal .form-helper.form-error {
  color: #b42318;
  font-weight: 800;
}

.quick-modal footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.tenant-create-modal label {
  grid-column: 1 / -1;
}

.detail-drawer {
  width: min(100%, 720px);
  max-height: min(90vh, 820px);
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

/* Record details slide in from the right so the board stays in view. */
.drawer-backdrop {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  background: rgba(15, 23, 42, 0.32);
}

.drawer-backdrop .detail-drawer {
  width: min(480px, 94vw);
  height: 100%;
  max-height: none;
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0;
  box-shadow: -18px 0 50px rgba(15, 23, 42, 0.22);
  animation: drawer-slide-in 0.22s ease;
}

.drawer-backdrop .detail-drawer--lead-workspace {
  width: min(1040px, 96vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.detail-drawer--lead-workspace > .detail-drawer__header {
  grid-column: 1 / -1;
}

.lead-mobile-tabs {
  display: none;
}

.detail-drawer--lead-workspace > .lead-detail-content {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  overflow: auto;
  padding-bottom: 20px;
}

.detail-drawer--lead-workspace > .lead-chat-panel--deal {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  margin: 0;
  border-width: 0 0 0 1px;
  border-radius: 0;
  background: #ffffff;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

@keyframes drawer-slide-in {
  from {
    transform: translateX(48px);
    opacity: 0.4;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-backdrop .detail-drawer {
    animation: none;
  }
}

.inline-form {
  display: grid;
  gap: 10px;
  margin: 0 20px 16px;
  padding: 14px;
  border-radius: 10px;
  background: #f3f7f8;
  border: 1px solid #d6e0e5;
}

.inline-form strong {
  color: #16242b;
  font-size: 0.9rem;
}

.inline-form label {
  display: grid;
  gap: 4px;
  color: #41525a;
  font-size: 0.8rem;
  font-weight: 600;
}

.inline-form input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #c7d4da;
  border-radius: 8px;
  background: #fff;
  outline: 0;
}

.inline-form input:focus-visible {
  border-color: #0d5c63;
}

.inline-form small {
  color: #5a6b72;
}

.inline-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ghost-action.is-active {
  border-color: #0d5c63;
  color: #0d5c63;
  background: #e8f3f4;
}

.detail-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.detail-drawer__header h2 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 1.4rem;
}

.detail-drawer__header p,
.detail-highlight span,
.related-record small {
  color: #64748b;
}

.detail-drawer__header p {
  margin: 6px 0 0;
}

.detail-eyebrow {
  color: #0d5c63;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px 0;
}

.detail-summary div,
.detail-highlight,
.related-record,
.lead-chat-panel {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.detail-summary div {
  min-width: 0;
  padding: 12px;
}

.detail-summary small,
.related-section h3 {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-summary strong,
.related-record strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.related-record-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.related-record-button.is-active,
.related-record-button:hover {
  border-color: #0d5c63;
  background: #e8f3f4;
}

.lead-chat-panel {
  margin: 16px 20px 20px;
  padding: 14px;
  display: grid;
  gap: 12px;
  min-height: 0;
}

.lead-chat-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lead-chat-panel h3 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 1rem;
}

.lead-chat-thread {
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(13, 92, 99, 0.08), transparent 18%),
    linear-gradient(135deg, #eef7f4, #f8fafc);
}

.lead-chat-panel--deal .lead-chat-thread {
  max-height: none;
  grid-row: 3;
  min-height: 0;
  padding: 12px;
}

.lead-chat-panel--deal .rich-chat-composer {
  grid-row: 4;
  align-self: end;
}

.lead-chat-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-highlight {
  margin: 16px 20px 0;
  padding: 14px;
  display: grid;
  gap: 4px;
}

.detail-highlight strong {
  color: #0d5c63;
  font-size: 1.45rem;
}

.detail-wide-action {
  margin: 16px 20px 0;
  width: calc(100% - 40px);
  justify-content: center;
}

.detail-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 20px 0;
}

.detail-action-grid .ghost-action {
  justify-content: center;
}

.related-section {
  padding: 18px 20px 0;
}

.related-section:last-child {
  padding-bottom: 20px;
}

.related-section h3 {
  margin: 0 0 10px;
}

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

.related-record {
  padding: 12px;
}

.related-record small {
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.workspace-main,
.workspace-side,
.ai-workbench {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.ai-workbench {
  grid-template-columns: 360px minmax(0, 1fr);
}

.hero-panel {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: end;
  padding: clamp(16px, 2.5vw, 24px);
  border-radius: 8px;
  color: #eef7f8;
  background:
    linear-gradient(135deg, rgba(19, 40, 47, 0.95), rgba(13, 92, 99, 0.82)),
    url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1600&q=80")
      center/cover;
  overflow: hidden;
}

.hero-panel h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-panel p {
  margin: 18px 0 0;
  max-width: 700px;
  color: rgba(238, 247, 248, 0.82);
  font-size: 1.02rem;
  line-height: 1.6;
}

.forecast-card {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.forecast-card span,
.forecast-card small {
  display: block;
  color: #bfd0d4;
  font-size: 0.82rem;
}

.forecast-card strong {
  display: block;
  margin: 8px 0;
  font-size: 2rem;
}

.onboarding-panel {
  border: 1px solid #cad9df;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(28, 43, 50, 0.06);
}

.onboarding-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.onboarding-summary span,
.onboarding-summary p,
.onboarding-progress small,
.onboarding-steps p {
  color: #66747d;
}

.onboarding-summary span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #e9f6f2;
  color: #1a7f64;
  font-size: 0.78rem;
  font-weight: 900;
}

.onboarding-summary h2 {
  margin: 10px 0 0;
  color: #16242b;
  font-size: 1.25rem;
}

.onboarding-summary p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.onboarding-progress {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid #dbe3e8;
  background: #f7fafb;
}

.onboarding-progress strong {
  color: #0d5c63;
  font-size: 1.8rem;
  line-height: 1;
}

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

.onboarding-steps article {
  min-width: 0;
  min-height: 176px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  background: #f9fbfc;
}

.onboarding-steps article.is-done {
  border-color: #bbdfd1;
  background: #f1faf6;
}

.onboarding-steps article > span {
  justify-self: start;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  background: #eef3f5;
  color: #61727a;
  font-size: 0.74rem;
  font-weight: 900;
}

.onboarding-steps article.is-done > span {
  background: #dff3eb;
  color: #1a7f64;
}

.onboarding-steps h3 {
  margin: 0;
  color: #16242b;
  font-size: 0.96rem;
}

.onboarding-steps p {
  margin: 5px 0 0;
  font-size: 0.84rem;
  line-height: 1.42;
}

.onboarding-steps button {
  width: 100%;
  min-width: 0;
}

.setup-card {
  margin-top: 18px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  padding: 16px;
  background: #f9fbfc;
}

.setup-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.setup-card__header h3 {
  margin: 0;
  color: #16242b;
  font-size: 1.02rem;
}

.setup-card__header p {
  margin: 5px 0 0;
  color: #66747d;
  line-height: 1.45;
}

.pipeline-stage-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.lead-field-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.pipeline-stage-editor__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
}

.lead-field-editor__row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(140px, 1.2fr) 130px minmax(120px, 1fr) 110px 84px 40px;
  gap: 10px;
  align-items: end;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.lead-field-editor__row label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #66747d;
  font-size: 0.78rem;
  font-weight: 800;
}

.lead-field-editor__check {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
}

.pipeline-stage-editor__row span {
  color: #66747d;
  font-size: 0.82rem;
  font-weight: 800;
}

.pipeline-stage-editor__row input,
.lead-field-editor__row input,
.lead-field-editor__row select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfdbe1;
  border-radius: 8px;
  padding: 0 12px;
  color: #16242b;
  background: #ffffff;
}

.lead-form-layout-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.lead-form-layout-editor__row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: #ffffff;
}

.lead-form-layout-editor__order {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef4f6;
  color: #66747d;
  font-size: 0.78rem;
  font-weight: 800;
}

.lead-form-layout-editor__row strong,
.lead-form-layout-editor__row small {
  display: block;
}

.lead-form-layout-editor__row small {
  margin-top: 2px;
  color: #66747d;
}

.lead-form-layout-editor__actions {
  display: flex;
  gap: 6px;
}

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

.metric-card,
.panel,
.copilot-panel {
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(28, 43, 50, 0.06);
}

.metric-card {
  padding: 16px;
  border-top: 4px solid #0d5c63;
}

.metric-card span,
.metric-card small {
  display: block;
  color: #62727a;
  font-size: 0.82rem;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  color: #16242b;
  font-size: 1.7rem;
  line-height: 1;
}

.metric-green {
  border-top-color: #25865d;
}

.metric-blue {
  border-top-color: #2d6cdf;
}

.metric-amber {
  border-top-color: #d18a1d;
}

.metric-red {
  border-top-color: #c94b4b;
}

.panel,
.copilot-panel {
  padding: 18px;
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-header.compact {
  margin-bottom: 12px;
}

.panel-header h2,
.copilot-header h2 {
  margin: 0;
  color: #16242b;
  font-size: 1.18rem;
  line-height: 1.2;
}

.panel-header p,
.copilot-header p {
  margin: 6px 0 0;
  color: #66747d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pipeline-panel {
  overflow: hidden;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(205px, 1fr));
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.kanban-column {
  min-width: 205px;
  min-height: 360px;
  padding: 10px;
  border-radius: 8px;
  background: #eef3f5;
  border: 2px dashed transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.kanban-column.is-drop-target {
  background: #e2f0ef;
  border-color: #0d5c63;
}

.kanban-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #dbe6ea;
  color: #41525a;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: 1px;
}

.kanban-placeholder {
  min-height: 84px;
  border-radius: 8px;
  border: 1.5px dashed #c7d4da;
}

.kanban-column__header {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
}

.kanban-column__header strong,
.kanban-column__header span,
.kanban-column__header small {
  display: block;
}

.kanban-column__header strong {
  color: #182830;
  font-size: 0.92rem;
}

.kanban-column__header span,
.kanban-column__header small {
  color: #6b7a82;
  font-size: 0.74rem;
  line-height: 1.35;
}

.kanban-list {
  display: grid;
  gap: 10px;
}

.deal-card {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbe3e8;
  cursor: grab;
  text-align: left;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.deal-card:hover,
.deal-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 92, 99, 0.14);
  border-color: #9fc4c6;
}

.deal-card:focus-visible {
  outline: 2px solid #0d5c63;
  outline-offset: 2px;
}

.deal-card:active {
  cursor: grabbing;
}

.deal-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
  cursor: grabbing;
}

.deal-card__probability {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f3f4;
  color: #0d5c63;
  font-size: 0.74rem;
  font-weight: 700;
}

.deal-card__value {
  color: #16242b;
  font-weight: 700;
}

.deal-card__owner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.deal-card__owner i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0d5c63;
  color: #fff;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
}

.detail-stage-row {
  display: grid;
  gap: 8px;
  padding: 16px 20px 0;
}

.detail-stage-row > small {
  color: #5a6b72;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

.stage-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
}

.stage-chip {
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid #c7d4da;
  background: #fff;
  color: #41525a;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.stage-chip:hover {
  border-color: #0d5c63;
  color: #0d5c63;
}

.stage-chip.is-current {
  background: #0d5c63;
  border-color: #0d5c63;
  color: #fff;
  cursor: default;
}

.deal-card__top,
.deal-card__meta,
.deal-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deal-card__top strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #16242b;
  font-size: 0.9rem;
  line-height: 1.25;
}

.record-actions {
  display: flex;
  flex-shrink: 0;
  gap: 5px;
}

.deal-card__top button,
.record-actions button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  color: #64737b;
  background: #f1f5f7;
}

.deal-card p,
.deal-card small {
  margin: 6px 0 0;
  color: #697982;
  font-size: 0.78rem;
  line-height: 1.4;
}

.deal-card__meta {
  margin-top: 12px;
  color: #15242b;
  font-size: 0.84rem;
  font-weight: 900;
}

.deal-card__footer {
  margin-top: 10px;
  color: #697982;
  font-size: 0.76rem;
}

.priority-alta {
  border-left: 4px solid #d85f46;
}

.priority-media {
  border-left: 4px solid #d18a1d;
}

.priority-baixa {
  border-left: 4px solid #25865d;
}

.copilot-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.copilot-header > span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0d5c63;
}

.insight-card,
.automation-stack article,
.workflow-grid article {
  padding: 14px;
  border-radius: 8px;
  background: #f5f8f9;
  border: 1px solid #dfe8ec;
}

.insight-card + .insight-card,
.automation-stack article + article {
  margin-top: 10px;
}

.insight-card.hot {
  background: #fff7e7;
  border-color: #f0d39b;
}

.insight-card strong,
.automation-stack strong,
.workflow-grid h3 {
  color: #16242b;
  font-size: 0.9rem;
}

.insight-card p,
.automation-stack p,
.automation-stack small,
.automation-stack em,
.workflow-grid p,
.workflow-grid small {
  display: block;
  margin: 7px 0 0;
  color: #63737b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.automation-stack {
  margin-top: 14px;
}

.automation-stack article > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.automation-stack svg {
  color: #d18a1d;
}

.automation-stack em {
  color: #0d5c63;
  font-style: normal;
  font-weight: 800;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.agenda-buckets {
  display: grid;
  gap: 14px;
}

.agenda-bucket {
  display: grid;
  gap: 8px;
}

.agenda-bucket h3 {
  margin: 0;
  color: #16242b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agenda-empty {
  margin: 0;
  color: #6b7a82;
  font-size: 0.78rem;
}

.activity-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #f5f8f9;
}

.activity-row > span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #0d5c63;
  background: #e0eeee;
}

.activity-row strong,
.activity-row small {
  display: block;
}

.activity-row strong {
  color: #16242b;
  font-size: 0.86rem;
}

.activity-row small {
  margin-top: 3px;
  color: #6b7a82;
  font-size: 0.76rem;
  line-height: 1.35;
}

.activity-row .activity-due {
  color: #0d5c63;
  font-weight: 800;
}

.activity-row.is-done {
  opacity: 0.72;
}

.activity-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.activity-action {
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #0d5c63;
  background: #eef7f6;
  cursor: pointer;
}

.activity-action:hover {
  color: #0a3f45;
}

.inbox-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: #f7fafb;
}

.inbox-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inbox-panel > .panel-header {
  flex: 0 0 auto;
}

.conversation-list {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #ffffff;
  border-right: 1px solid #dbe3e8;
  scrollbar-gutter: stable;
}

.conversation-row {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #edf2f5;
  border-radius: 0;
  padding: 12px;
  color: #203039;
  background: #fff;
}

.conversation-row.is-active {
  color: #0f2f35;
  background: #e8f3f4;
  box-shadow: inset 3px 0 0 #0d5c63;
}

.conversation-row strong,
.conversation-row small {
  display: block;
}

.conversation-row small {
  margin-top: 4px;
  color: #66747d;
  font-size: 0.76rem;
}

.conversation-row em {
  color: #0d5c63;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.conversation-detail {
  min-height: 0;
  padding: 16px;
  background: #f7fafb;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inbox-back-action {
  display: none;
}

.conversation-detail__title {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #dbe3e8;
}

.channel-avatar {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0d5c63;
}

.conversation-detail h3 {
  margin: 0;
  color: #16242b;
}

.conversation-detail p {
  margin: 4px 0 0;
  color: #66747d;
}

.message-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 0;
  display: grid;
  align-content: start;
  gap: 12px;
  scrollbar-gutter: stable;
}

.bubble {
  width: min(78%, 520px);
  padding: 12px 14px;
  border-radius: 18px 18px 18px 6px;
  line-height: 1.45;
  font-size: 0.92rem;
  display: grid;
  gap: 3px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.incoming {
  background: #fff;
  border: 1px solid #dbe3e8;
}

.outgoing {
  justify-self: end;
  color: #063238;
  background: #d8f5d0;
  border-radius: 18px 18px 6px 18px;
  border: 1px solid rgba(13, 92, 99, 0.14);
}

.message-metadata {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  color: #516575;
  font-size: 0.7rem;
  white-space: normal;
}

.message-author,
.message-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: inherit;
}

.message-author {
  margin-right: auto;
  font-weight: 700;
}

.message-status--failed {
  color: #a62622;
  font-weight: 700;
}

.crm-app-shell .inbox-panel .conversation-row.is-active {
  background: #e8f3fc;
  border-color: #dceaf5;
  box-shadow: inset 3px 0 0 #2481b8;
}

.inbox-panel .conversation-row:hover {
  background: #f1f7fb;
}

.conversation-avatar,
.crm-app-shell .inbox-panel .channel-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #2481b8;
}

.conversation-row__copy {
  min-width: 0;
}

.conversation-row__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.conversation-row__heading strong,
.conversation-row__preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-row__heading small {
  flex-shrink: 0;
  margin-top: 0;
  font-size: 0.68rem;
}

.conversation-row .conversation-row__channel {
  color: #326584;
  font-size: 0.68rem;
}

.inbox-panel .conversation-detail {
  background: #eef3f7;
}

.inbox-panel .conversation-detail__title {
  min-width: 0;
}

.inbox-panel .conversation-detail__title > div {
  min-width: 0;
}

.inbox-panel .conversation-detail__title p {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.inbox-panel .record-actions {
  margin-left: auto;
}

.inbox-panel .bubble {
  width: fit-content;
  max-width: min(85%, 560px);
  min-width: 130px;
  padding: 10px 13px 7px;
  border-radius: 14px 14px 14px 4px;
}

.crm-app-shell .inbox-panel .outgoing {
  background: #deeffc;
  border-color: #cbe3f5;
  color: #183b53;
  border-radius: 14px 14px 4px 14px;
}

.inbox-panel .conversation-handoff,
.inbox-panel .inbox-ai-actions,
.inbox-panel .rich-chat-composer {
  flex-shrink: 0;
}

.rich-chat-composer {
  display: grid;
  gap: 8px;
}

.attachment-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.attachment-chip span {
  min-width: 0;
  display: grid;
}

.attachment-chip strong,
.attachment-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip strong {
  font-size: 0.78rem;
}

.attachment-chip small {
  color: #64748b;
  font-size: 0.68rem;
}

.attachment-chip button,
.composer-tool-row button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #475569;
  background: transparent;
  cursor: pointer;
}

.attachment-chip button:hover,
.composer-tool-row button:hover {
  color: #0d5c63;
  background: #e8f3f4;
}

.composer-tool-row button.is-recording {
  color: #fff;
  background: #c2410c;
}

.rich-reply-box {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dbe3e8, 0 8px 22px rgba(15, 23, 42, 0.08);
}

.composer-tool-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rich-reply-box input:not([type='file']) {
  min-width: 0;
}

.voice-recorder-status {
  color: #0d5c63;
  font-size: 0.74rem;
  font-weight: 800;
}

.sr-only-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.meeting-modal {
  width: min(100%, 520px);
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
}

.meeting-modal label {
  display: grid;
  gap: 7px;
  margin: 0 20px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meeting-modal input {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 8px;
  padding: 0 12px;
  color: #0f172a;
  font: inherit;
  text-transform: none;
  background: #ffffff;
}

.meeting-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px 20px 0;
}

.meeting-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #c7dadd;
  border-radius: 10px;
  color: #16343a;
  background: #f5fbfb;
}

.meeting-card h3,
.meeting-card p {
  margin: 0;
}

.meeting-card h3 {
  font-size: 0.95rem;
}

.meeting-card p {
  color: #64748b;
  font-size: 0.82rem;
}

.meeting-actions,
.lead-chat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.public-meet-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(32, 178, 166, 0.16), transparent 30%),
    linear-gradient(135deg, #eef8f7 0%, #f8fbff 48%, #eef3ff 100%);
}

.public-meet-card {
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(13, 63, 70, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(15, 35, 47, 0.14);
}

.public-meet-language {
  justify-self: end;
}

.public-meet-card h1,
.public-meet-card p {
  margin: 0;
}

.public-meet-card h1 {
  color: #0d2f34;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
}

.public-meet-card p {
  color: #526372;
  line-height: 1.6;
}

.public-meet-form {
  display: grid;
  gap: 14px;
}

.public-meet-form label {
  display: grid;
  gap: 7px;
  color: #20333d;
  font-weight: 800;
}

.public-meet-form input {
  min-height: 44px;
  border: 1px solid #d8e2e8;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.public-meet-open {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #0f766e;
  font-weight: 800;
}

.meet-floating-layer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(360px, calc(100vw - 24px));
  min-height: 260px;
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(13, 63, 70, 0.22);
  border-radius: 14px;
  background: #0d2f34;
  color: #f8fdff;
  box-shadow: 0 24px 70px rgba(8, 35, 39, 0.28);
}

.meet-floating-layer.is-expanded {
  width: min(720px, calc(100vw - 32px));
  min-height: min(560px, calc(100vh - 32px));
}

.meet-floating-layer.meet-full-room {
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.meet-floating-layer.is-minimized {
  min-height: 0;
  grid-template-rows: auto;
}

.meet-floating-layer header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: rgba(6, 24, 27, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.meet-floating-layer:not(.meet-full-room) header {
  cursor: grab;
  touch-action: none;
}

.meet-floating-layer.is-dragging header {
  cursor: grabbing;
}

.meet-floating-layer h3,
.meet-floating-layer p {
  margin: 0;
}

.meet-floating-layer h3 {
  font-size: 0.94rem;
  color: #ffffff;
}

.meet-floating-layer p {
  margin-top: 2px;
  color: #b8d2d6;
  font-size: 0.78rem;
}

.meet-floating-window-actions,
.meet-floating-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meet-floating-window-actions {
  cursor: auto;
}

.meet-floating-window-actions button,
.meet-floating-controls button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f8fdff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.meet-floating-window-actions button:hover,
.meet-floating-controls button:hover,
.meet-floating-controls button.is-active {
  background: #20b2a6;
  border-color: #20b2a6;
}

.meet-floating-window-actions button:disabled,
.meet-floating-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.meet-floating-video {
  min-height: 150px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  padding: 10px;
  background: #071c20;
}

.meet-full-room .meet-floating-video {
  min-height: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  align-items: stretch;
  padding: 18px;
}

.meet-floating-video-tile,
.meet-floating-placeholder {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 10px;
  background: #102e34;
}

.meet-full-room .meet-floating-video-tile,
.meet-full-room .meet-floating-placeholder {
  min-height: 0;
  height: 100%;
  border-radius: 12px;
}

.meet-floating-video-tile span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #f8fdff;
  background: rgba(3, 13, 15, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.meet-floating-video-mount,
.meet-floating-video-element {
  width: 100%;
  height: 100%;
}

.meet-floating-video-element {
  object-fit: cover;
}

.meet-floating-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #b8d2d6;
  text-align: center;
  font-size: 0.8rem;
}

.meet-floating-controls {
  justify-content: center;
  padding: 10px 12px;
  background: rgba(6, 24, 27, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meet-full-room .meet-floating-controls {
  gap: 12px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
}

.meet-full-room .meet-floating-controls button {
  width: 46px;
  height: 46px;
}

.ai-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #61450d;
  background: #fff7e7;
  border: 1px solid #f0d39b;
  font-size: 0.86rem;
}

.conversation-handoff {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #d7e0e5;
  border-radius: 8px;
  background: #f8fbfc;
}

.conversation-handoff__copy {
  flex: 1 1 260px;
  min-width: 0;
  display: grid;
  gap: 5px;
}

.conversation-handoff__status,
.conversation-handoff__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.conversation-handoff__actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.conversation-handoff .compact-action {
  margin-top: 0;
}

.conversation-handoff__label {
  color: #5a6b72;
  font-size: 0.8rem;
  font-weight: 800;
}

.conversation-handoff__help {
  max-width: 520px;
  margin: 0;
  color: #5a6b72;
  font-size: 0.82rem;
  line-height: 1.45;
}

.handling-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0d3f46;
  background: #e8f3f4;
  border: 1px solid #c7dadd;
}

.handling-pill--human_active {
  color: #24461f;
  background: #ebf7e7;
  border-color: #c9dfc0;
}

.handling-pill--human_requested {
  color: #61450d;
  background: #fff7e7;
  border-color: #f0d39b;
}

.handling-pill--closed {
  color: #405057;
  background: #eef2f4;
  border-color: #d5dde2;
}

.inbox-ai-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.inbox-ai-actions button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.copilot-meta {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: #5a6b72;
}

.copilot-meta em {
  font-style: normal;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f3f4;
  color: #0d5c63;
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #fff7e7;
  border: 1px solid #f0d39b;
  color: #61450d;
  font-size: 0.9rem;
}

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

.reply-box {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

.reply-box input {
  min-height: 44px;
  border: 1px solid #d6e0e5;
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
}

.reply-box button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #0d5c63;
}

.reply-box.rich-reply-box {
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 52px;
  height: 52px;
  padding: 8px;
  border-radius: 26px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dbe3e8, 0 8px 22px rgba(15, 23, 42, 0.08);
}

.rich-reply-box .composer-tool-row button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #475569;
  background: transparent;
}

.rich-reply-box .composer-tool-row button:hover {
  color: #0d5c63;
  background: #e8f3f4;
}

.rich-reply-box input:not([type='file']) {
  border: 0;
  min-height: 34px;
  padding: 0 8px;
}

.rich-reply-box > button {
  border-radius: 999px;
}

.contact-table {
  display: grid;
  gap: 8px;
}

.lead-map-panel {
  overflow: hidden;
}

.map-summary {
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  color: #0d5c63;
  background: #e6f4f2;
  font-size: 0.83rem;
  font-weight: 900;
}

.lead-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 14px;
}

.lead-map-canvas {
  min-height: 430px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #dbe7ea;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.map-tile-layer {
  position: absolute;
  inset: 0;
}

.map-tile {
  position: absolute;
  display: block;
  max-width: none;
  user-select: none;
}

.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  border-radius: 6px;
  padding: 4px 6px;
  color: #40505a;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
  font-weight: 800;
}

.map-pin-button {
  position: absolute;
  z-index: 2;
  min-width: 38px;
  min-height: 38px;
  border: 3px solid #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #102b31;
  background: #f1bd65;
  box-shadow: 0 10px 22px rgba(16, 43, 49, 0.25);
  cursor: pointer;
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.map-pin-button::after {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  content: "";
  background: rgba(241, 189, 101, 0.2);
  z-index: -1;
}

.map-pin-button.is-selected {
  color: #fff;
  background: #0d5c63;
}

.map-pin-button.is-selected::after {
  background: rgba(13, 92, 99, 0.2);
}

.lead-map-sidebar,
.city-list,
.map-lead-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.city-row,
.map-lead-row {
  width: 100%;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  text-align: left;
  background: #fff;
}

.city-row {
  min-height: 58px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #23333d;
}

.city-row.is-active {
  border-color: #0d5c63;
  box-shadow: inset 3px 0 0 #0d5c63;
}

.city-row span,
.map-lead-row strong {
  font-weight: 900;
}

.city-row strong,
.map-detail-card header p,
.map-lead-row small {
  color: #6a7982;
  font-size: 0.78rem;
}

.map-detail-card {
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.map-detail-card header {
  margin-bottom: 12px;
}

.map-detail-card header span {
  color: #0d5c63;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-detail-card h3 {
  margin: 4px 0 0;
  color: #172033;
}

.map-detail-card header p {
  margin: 6px 0 0;
}

.map-lead-row {
  min-height: 62px;
  padding: 9px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  color: #203039;
}

.map-lead-row:hover {
  border-color: #0d5c63;
}

.map-lead-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0d5c63;
  font-weight: 900;
}

.accounts-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 14px;
}

.account-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.account-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  padding: 11px;
  color: #203039;
  background: #fff;
  cursor: pointer;
}

.account-row.is-active {
  border-color: #0d5c63;
  box-shadow: inset 3px 0 0 #0d5c63;
}

.account-row > span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0d5c63;
}

.account-row strong,
.account-row small {
  display: block;
}

.account-row small {
  margin-top: 4px;
  color: #66747d;
  font-size: 0.76rem;
  line-height: 1.35;
}

.account-detail {
  min-height: 500px;
  padding: 16px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: #f7fafb;
}

.account-detail__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dbe3e8;
}

.account-detail__actions {
  display: inline-flex;
  gap: 6px;
  align-self: start;
}

.account-detail__actions .icon-button {
  width: 34px;
  min-height: 34px;
}

.account-detail__header h3 {
  margin: 0;
  color: #16242b;
  font-size: 1.25rem;
}

.account-detail__header p {
  margin: 5px 0 0;
  color: #66747d;
}

.account-detail__header dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(68px, 1fr));
  gap: 8px;
}

.account-detail__header div:has(dt) {
  min-height: 58px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  background: #fff;
}

.account-detail__header dt {
  color: #66747d;
  font-size: 0.72rem;
  font-weight: 800;
}

.account-detail__header dd {
  margin: 4px 0 0;
  color: #16242b;
  font-size: 1.15rem;
  font-weight: 900;
}

.timeline-panel {
  padding-top: 16px;
}

.timeline-panel h4 {
  margin: 0 0 12px;
  color: #16242b;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-event {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: #fff;
}

.timeline-event > span {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: #0d5c63;
}

.timeline-event.event-deal > span {
  background: #d18a1d;
}

.timeline-event.event-activity > span {
  background: #1a7f64;
}

.timeline-event strong,
.timeline-event small {
  display: block;
}

.timeline-event small {
  margin-top: 4px;
  color: #66747d;
  font-size: 0.82rem;
}

.empty-state {
  margin: 0;
  color: #66747d;
}

.empty-state-card {
  min-height: 96px;
  border: 1px dashed #b8c8d0;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #f7fafb;
  font-weight: 800;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: min(360px, calc(100vw - 40px));
  display: grid;
  gap: 10px;
}

.toast-message {
  min-height: 48px;
  border: 1px solid #b8c8d0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #16242b;
  box-shadow: 0 16px 40px rgba(22, 36, 43, 0.16);
  font-size: 0.9rem;
  font-weight: 900;
}

.toast-success svg {
  color: #1a7f64;
}

.toast-error {
  border-color: #f0c6be;
  background: #fff8f6;
}

.toast-error svg {
  color: #b54834;
}

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

.integration-card {
  min-height: 230px;
  padding: 16px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: #f7fafb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.integration-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.integration-card__top span {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0d5c63;
}

.integration-card__top em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #6a4b11;
  background: #fff1d2;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.integration-card h3 {
  margin: 0;
  color: #16242b;
  font-size: 1rem;
}

.integration-card p {
  margin: 0;
  color: #66747d;
  font-size: 0.88rem;
  line-height: 1.5;
}

.integration-provider {
  border: 1px solid #cbd9df;
  border-radius: 8px;
  padding: 8px 10px;
  color: #24434b;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  word-break: break-word;
}

.integration-provider--muted {
  color: #5a6b72;
  background: #eef5f6;
}

.integration-provider--error {
  color: #8d3020;
  border-color: #efc6ba;
  background: #fff0ec;
}

.integration-card .ghost-action {
  margin-top: auto;
}

.lead-capture-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #dbe3e8;
}

.lead-capture-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.lead-capture-form label,
.lead-capture-card label {
  display: grid;
  gap: 7px;
  color: #5d6b73;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-capture-form input {
  min-height: 44px;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  padding: 0 12px;
  color: #16242b;
  background: #fff;
  font: inherit;
  text-transform: none;
}

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

.lead-capture-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: #fff;
}

.lead-capture-card h4,
.lead-capture-card p {
  margin: 0;
}

.lead-capture-card code,
.lead-capture-card textarea {
  width: 100%;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  background: #f7fafb;
  color: #203239;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.lead-capture-card code {
  display: block;
  padding: 10px;
  overflow-x: auto;
  text-transform: none;
}

.lead-capture-card textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

.tenant-delete-zone {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #f0c6c0;
  border-radius: 8px;
  background: #fff7f6;
}

.tenant-delete-zone h3 {
  margin: 0;
  color: #16242b;
  font-size: 1rem;
}

.tenant-delete-zone p {
  margin: 0;
  color: #6b2b24;
  font-size: 0.9rem;
  line-height: 1.45;
}

.tenant-delete-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tenant-delete-confirmation {
  display: grid;
  gap: 12px;
}

.tenant-delete-confirmation p {
  margin: 0;
  color: #6b2b24;
  line-height: 1.5;
}

.tenant-delete-confirmation strong {
  color: #16242b;
}

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

.team-company-context {
  width: fit-content;
  min-height: 30px;
  margin-top: 8px;
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  color: #0d5c63;
  background: #e6f4f2;
  font-size: 0.78rem;
  font-weight: 900;
}

.team-card {
  min-height: 220px;
  padding: 16px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: #f7fafb;
}

.team-card h3 {
  margin: 0 0 14px;
  color: #16242b;
  font-size: 1rem;
}

.team-list {
  display: grid;
  gap: 10px;
}

.team-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d8e3e8;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.team-list strong,
.team-list span {
  display: block;
}

.team-list strong {
  color: #16242b;
  font-size: 0.9rem;
}

.team-list span {
  color: #66747d;
  font-size: 0.78rem;
  word-break: break-word;
}

.team-list em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9f6f2;
  color: #16664f;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.team-list select {
  flex: 0 0 132px;
  min-height: 36px;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: #16242b;
  font-size: 0.78rem;
  font-weight: 850;
}

.team-invite-form {
  display: grid;
  align-content: start;
  gap: 12px;
}

.team-invite-form label {
  display: grid;
  gap: 6px;
  color: #52616a;
  font-size: 0.82rem;
  font-weight: 900;
}

.team-invite-form input,
.team-invite-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  padding: 0 10px;
  color: #17252d;
  background: #fff;
  font: inherit;
}

.audit-list {
  display: grid;
  gap: 10px;
}

.audit-event {
  display: grid;
  gap: 10px;
  border: 1px solid #d8e3e8;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.audit-event > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audit-event strong {
  color: #16242b;
  font-size: 0.92rem;
}

.audit-event span {
  color: #66747d;
  font-size: 0.78rem;
  white-space: nowrap;
}

.audit-event dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.audit-event dt {
  color: #66747d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-event dd {
  margin: 3px 0 0;
  color: #25323a;
  font-size: 0.84rem;
  word-break: break-word;
}

.billing-current {
  min-height: 38px;
  border: 1px solid #d7e0e5;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #203039;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: capitalize;
}

.market-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 520px);
  padding: 5px;
  margin-bottom: 16px;
  border: 1px solid #d7e0e5;
  border-radius: 8px;
  background: #f7faf9;
}

.market-switcher button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #66747d;
  font-weight: 900;
  cursor: pointer;
}

.market-switcher button.is-selected {
  color: #203039;
  background: #fff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.12);
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.billing-card {
  position: relative;
  min-height: 500px;
  padding: 18px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.billing-card.is-recommended {
  border-color: #0d5c63;
  box-shadow: 0 18px 42px rgba(13, 92, 99, 0.14);
}

.billing-card > em {
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 999px;
  color: #0d5c63;
  background: #dff2ef;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.billing-card h3 {
  margin: 0;
  color: #16242b;
  font-size: 1.1rem;
}

.billing-card p {
  min-height: 62px;
  margin: 0;
  color: #66747d;
  font-size: 0.88rem;
  line-height: 1.5;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price strong {
  color: #16242b;
  font-size: 1.85rem;
  line-height: 1;
}

.plan-price span {
  color: #66747d;
  font-size: 0.84rem;
}

.plan-limits {
  margin: 0;
  display: grid;
  gap: 8px;
}

.plan-limits div {
  min-height: 36px;
  border: 1px solid #e2e8ec;
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7fafb;
}

.plan-limits dt,
.plan-limits dd {
  margin: 0;
  font-size: 0.78rem;
}

.plan-limits dt {
  color: #66747d;
}

.plan-limits dd {
  color: #172033;
  font-weight: 900;
}

.billing-card ul {
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.billing-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #33444f;
  font-size: 0.84rem;
  line-height: 1.35;
}

.billing-card li svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #0d5c63;
}

.billing-card button {
  width: 100%;
  margin-top: auto;
}

.billing-card button:disabled {
  cursor: default;
  opacity: 0.72;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(170px, 1fr) 130px minmax(120px, 0.8fr) minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: #fff;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-cell > span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #13282f;
  font-weight: 900;
}

.contact-row strong,
.contact-row small {
  display: block;
}

.contact-row strong {
  color: #16242b;
  font-size: 0.9rem;
}

.contact-row small {
  margin-top: 3px;
  color: #66747d;
  font-size: 0.76rem;
}

.contact-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
}

.contact-actions .icon-button {
  width: 34px;
  min-height: 34px;
}

.channel-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0d5c63;
  font-size: 0.84rem;
  font-weight: 800;
}

.temperature-cell {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) 30px;
  gap: 8px;
  align-items: center;
  color: #203039;
  font-size: 0.84rem;
  font-weight: 800;
}

.temperature-cell > span {
  height: 7px;
  border-radius: 999px;
  background: #d18a1d;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span,
.workflow-grid span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #0d5c63;
  background: #e0eeee;
  font-size: 0.72rem;
  font-weight: 900;
}

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

.workflow-grid h3 {
  margin: 12px 0 0;
}















.priority-p0 > header span {
  background: #9c2f2f;
}

.priority-p1 > header span {
  background: #b06413;
}

.priority-p2 > header span {
  background: #0d5c63;
}

.priority-p3 > header span {
  background: #46525a;
}

@media (max-width: 1180px) {

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .workspace-grid,
  .ai-workbench {
    grid-template-columns: 1fr;
  }

  .onboarding-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {

  .crm-app-shell {
    display: block;
    height: 100dvh;
    overflow: hidden;
  }

  .sidebar {
    height: auto;
    max-height: 64px;
    min-height: auto;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sidebar-toggle {
    display: none;
  }

  .brand {
    flex: 0 0 auto;
    padding: 0;
  }

  .sidebar nav {
    display: flex;
    min-width: max-content;
    gap: 4px;
  }

  .nav-item {
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 10px;
  }

  .sidebar .nav-label {
    display: none;
  }

  .sidebar-card {
    display: none;
  }

  .crm-content {
    height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 14px;
  }

  .crm-content--inbox {
    overflow: hidden;
  }

  .crm-content--inbox .topbar,
  .crm-content--inbox .demo-banner,
  .crm-content--inbox .panel-header {
    display: none;
  }

  .topbar,
  .panel-header,
  .hero-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions,
  .toolbar {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-actions > button,
  .toolbar > button.primary-action {
    flex: 1;
  }

  .hero-panel {
    display: grid;
  }

  .forecast-card {
    max-width: 320px;
  }

  .inbox-panel {
    height: 100%;
    min-height: 0;
  }

  .inbox-layout {
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    min-width: 0;
  }

  .conversation-list {
    border-right: 0;
    border-bottom: 0;
    max-height: none;
  }

  .conversation-detail {
    padding: 12px;
    min-width: 0;
  }

  .inbox-layout--list .conversation-detail {
    display: none;
  }

  .inbox-layout--chat .conversation-list {
    display: none;
  }

  .inbox-layout--chat .conversation-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  .inbox-back-action {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 8px;
  }

  .inbox-back-action svg {
    transform: rotate(180deg);
  }

  .conversation-detail__title {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding-bottom: 8px;
  }

  .conversation-detail__title > div {
    min-width: 0;
  }

  .conversation-detail__title .record-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .conversation-detail__title h3 {
    font-size: 0.98rem;
  }

  .conversation-detail__title p {
    font-size: 0.76rem;
  }

  .inbox-ai-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .conversation-handoff {
    flex-wrap: wrap;
  }

  .conversation-handoff__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .message-thread {
    padding: 12px 0;
    min-height: 0;
  }

  .conversation-detail > .rich-chat-composer {
    align-self: stretch;
  }

  .conversation-detail .rich-reply-box {
    border-radius: 18px;
  }

  .conversation-detail .composer-tool-row button {
    width: 40px;
    height: 40px;
  }

  .bubble {
    width: min(90%, 520px);
  }

  .metrics-grid,
  .onboarding-steps,
  .setup-card__header,
  .inbox-layout,
  .accounts-layout,
  .lead-map-layout,
  .workflow-grid,
  .integration-grid,
  .lead-capture-form,
  .team-grid,
  .billing-grid {
    grid-template-columns: 1fr;
  }

  .setup-card__header {
    display: grid;
  }

  .pipeline-stage-editor__row {
    grid-template-columns: 1fr 40px;
  }

  .lead-field-editor__row {
    grid-template-columns: 1fr;
  }

  .pipeline-stage-editor__row span {
    grid-column: 1 / -1;
  }

  .onboarding-summary {
    grid-template-columns: 1fr;
  }

  .account-detail__header {
    display: grid;
  }

  .audit-event > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .audit-event dl {
    grid-template-columns: 1fr;
  }

  .market-switcher {
    grid-template-columns: 1fr;
  }

  .detail-summary {
    grid-template-columns: 1fr 1fr;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .lead-map-canvas {
    min-height: 300px;
    padding: 10px;
  }

  .lead-map-canvas svg {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .quick-modal form {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-modal input,
  .quick-modal select {
    font-size: 16px;
  }

  .crm-content {
    padding: 10px;
  }

  .sidebar {
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .brand > span {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .search-box {
    height: 42px;
    padding: 0 12px;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 44px 44px;
    gap: 8px;
    min-width: 0;
  }

  .topbar-company-menu {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .topbar-company-menu .company-menu__list {
    right: 0;
    left: 0;
    min-width: 0;
    width: 100%;
  }

  .topbar-actions .language-switcher {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
  }

  .topbar-actions .language-switcher button {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .session-action {
    grid-column: 1 / 3;
    min-width: 0;
    width: 100%;
  }

  .session-action span,
  .lead-action span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .utility-action {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .utility-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .lead-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .crm-content--inbox .panel-header .primary-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .demo-banner {
    flex-wrap: wrap;
  }

  .demo-banner .ghost-action {
    width: 100%;
  }

  .hero-panel {
    min-height: auto;
    padding: 22px;
    gap: 14px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .copilot-panel {
    padding: 14px;
  }

  .hero-panel h1 {
    font-size: 1.56rem;
    line-height: 1.16;
  }

  .hero-panel p {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.48;
  }

  .forecast-card {
    display: none;
  }

  .onboarding-panel,
  .metric-card,
  .panel,
  .copilot-panel {
    box-shadow: 0 10px 28px rgba(28, 43, 50, 0.05);
  }

  .onboarding-panel {
    padding: 14px;
  }

  .onboarding-summary {
    gap: 12px;
  }

  .onboarding-progress {
    width: 100%;
    height: auto;
    min-height: 54px;
  }

  .onboarding-steps article {
    min-height: auto;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-card strong {
    font-size: 1.35rem;
  }

  .panel-header {
    gap: 12px;
  }

  .panel-header h2 {
    font-size: 1.05rem;
  }

  .kanban-board {
    gap: 10px;
  }

  .activity-row,
  .conversation-row {
    align-items: start;
  }

  .bubble {
    width: 100%;
  }

  .detail-summary {
    grid-template-columns: 1fr;
  }

  .detail-action-grid {
    grid-template-columns: 1fr;
  }

  .drawer-backdrop .detail-drawer--lead-workspace {
    width: 100vw;
    height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  .detail-drawer--lead-workspace > .detail-drawer__header {
    min-height: 0;
  }

  .detail-drawer--lead-workspace.is-mobile-chat-active > .detail-drawer__header {
    align-items: center;
    padding: 10px 12px;
  }

  .detail-drawer--lead-workspace.is-mobile-chat-active > .detail-drawer__header .detail-eyebrow,
  .detail-drawer--lead-workspace.is-mobile-chat-active > .detail-drawer__header p {
    display: none;
  }

  .detail-drawer--lead-workspace.is-mobile-chat-active > .detail-drawer__header h2 {
    max-width: calc(100vw - 96px);
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lead-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
  }

  .lead-mobile-tabs button {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-weight: 900;
  }

  .lead-mobile-tabs button.is-active {
    border-color: #0d5c63;
    background: #0d5c63;
    color: #ffffff;
  }

  .detail-drawer--lead-workspace > .lead-detail-content {
    grid-column: 1;
    grid-row: 3;
    display: none;
    overflow: auto;
    padding-bottom: 16px;
    min-height: 0;
  }

  .detail-drawer--lead-workspace > .lead-detail-content.is-mobile-active {
    display: block;
  }

  .detail-drawer--lead-workspace > .lead-chat-panel--deal {
    grid-column: 1;
    grid-row: 3;
    display: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    min-height: 0;
    max-height: none;
    height: 100%;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .detail-drawer--lead-workspace > .lead-chat-panel--deal.is-mobile-active {
    display: grid;
  }

  .lead-chat-panel--deal header {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
  }

  .lead-chat-panel--deal .lead-chat-selector {
    grid-row: 2;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .lead-chat-panel--deal .lead-chat-thread {
    border-radius: 0;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }

  .lead-chat-panel--deal .rich-chat-composer {
    border-radius: 0;
    border-width: 1px 0 0;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.08);
  }
}

.billing-location-prompt {
  display: grid;
  gap: 12px;
  max-width: 560px;
  padding: 18px;
  border-radius: 10px;
  background: #f3f7f8;
  border: 1px solid #d6e0e5;
}

.billing-location-prompt p {
  margin: 0;
  color: #41525a;
  font-size: 0.9rem;
}

.setup-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.setup-chip:hover {
  background: rgba(255, 255, 255, 0.24);
}

.stage-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.stage-overview__item {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #dbe3e8;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.stage-overview__item:hover {
  border-color: #0d5c63;
  transform: translateY(-1px);
}

.stage-overview__item span {
  color: #5a6b72;
  font-size: 0.76rem;
  font-weight: 600;
}

.stage-overview__item strong {
  color: #16242b;
  font-size: 1.2rem;
}

.stage-overview__item small {
  color: #41525a;
}

.manager-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 14px;
}

.closed-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.closed-summary article {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #dbe3e8;
}

.closed-summary__won {
  background: #ecf7ee;
  border-color: #bfe3c6;
}

.closed-summary__lost {
  background: #fdf0ee;
  border-color: #f2cfc8;
}

.closed-summary span {
  color: #5a6b72;
  font-size: 0.78rem;
  font-weight: 700;
}

.closed-summary strong {
  font-size: 1.4rem;
  color: #16242b;
}

.closed-summary small {
  color: #41525a;
}

.owner-load-list {
  display: grid;
  gap: 8px;
}

.owner-load {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.owner-load__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0d5c63;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
}

.owner-load strong {
  display: block;
  color: #16242b;
  font-size: 0.88rem;
}

.owner-load small {
  color: #5a6b72;
}

.owner-load em {
  font-style: normal;
  font-weight: 700;
  color: #0d5c63;
}

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

.setup-guide {
  display: grid;
  gap: 10px;
  margin: 16px 20px 0;
  padding: 14px;
  border-radius: 10px;
  background: #f3f7f8;
  border: 1px solid #d6e0e5;
}

.setup-guide > strong {
  color: #16242b;
  font-size: 0.88rem;
}

.setup-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: #41525a;
  font-size: 0.85rem;
  line-height: 1.45;
}

.webhook-row {
  display: grid;
  gap: 6px;
}

.webhook-row > small {
  color: #5a6b72;
  font-weight: 600;
}

.webhook-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.webhook-row code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border-radius: 8px;
  background: #16242b;
  color: #d7f0ee;
  font-size: 0.76rem;
}

.integration-form {
  margin-top: 14px;
  margin-bottom: 20px;
}

.gmail-oauth-panel {
  display: grid;
  gap: 14px;
}

.gmail-mailbox-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  background: #ffffff;
}

.gmail-mailbox-row small {
  color: #5a6b72;
  font-weight: 800;
}

.gmail-mailbox-row strong {
  color: #16242b;
  overflow-wrap: anywhere;
}

.gmail-folder-list {
  display: grid;
  gap: 8px;
}

.gmail-folder-list > strong {
  color: #16242b;
  font-size: 0.88rem;
}

.gmail-folder-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: #ffffff;
  color: #24434b;
  font-weight: 800;
}

.gmail-folder-row input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.gmail-folder-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gmail-folder-row em {
  color: #6d7d84;
  font-size: 0.72rem;
  font-style: normal;
  text-transform: uppercase;
}

.pinned-lead {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.pinned-lead__fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: #0d5c63;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(13, 92, 99, 0.4);
  transition: transform 0.12s ease;
}

.pinned-lead__fab:hover {
  transform: translateY(-2px);
}

.pinned-lead__fab > svg {
  position: absolute;
  top: -3px;
  right: -3px;
  padding: 3px;
  border-radius: 50%;
  background: #f6b73c;
  color: #16242b;
  width: 18px;
  height: 18px;
}

.pinned-lead__card {
  width: min(320px, calc(100vw - 36px));
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d6e0e5;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
  display: grid;
  gap: 10px;
}

.pinned-lead__card header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pinned-lead__card header div {
  flex: 1;
  min-width: 0;
}

.pinned-lead__card header strong {
  display: block;
  color: #16242b;
}

.pinned-lead__card header small {
  color: #5a6b72;
}

.pinned-lead__card p {
  margin: 0;
  color: #41525a;
  font-size: 0.86rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pinned-lead__card .primary-action {
  justify-content: center;
}

.ai-settings-panel {
  grid-column: 1 / -1;
}

.ai-settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: end;
  max-width: 860px;
}

.ai-settings-form label {
  display: grid;
  gap: 4px;
  color: #41525a;
  font-size: 0.8rem;
  font-weight: 600;
}

.ai-settings-form input,
.ai-settings-form select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #c7d4da;
  border-radius: 8px;
  background: #fff;
  outline: 0;
}

.ai-settings-form small {
  grid-column: 1 / -1;
  color: #5a6b72;
}

.ai-settings-form footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.company-menu {
  position: relative;
}

.topbar-company-menu {
  flex: 0 1 240px;
  max-width: min(240px, 30vw);
  min-width: 180px;
}

.tenant-switcher__button {
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
}

.tenant-switcher__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notifications-menu {
  position: relative;
}

.notifications-button {
  position: relative;
}

.notifications-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
}

.notifications-menu__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 65;
  width: min(340px, calc(100vw - 28px));
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  gap: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d6e0e5;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.22);
}

.notifications-menu__header {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.notifications-menu__header small {
  color: #5a6b72;
  font-weight: 700;
}

.notification-permission {
  width: 100%;
  padding: 10px;
  border: 1px solid #d6e0e5;
  border-radius: 8px;
  background: #eef7f7;
  color: #16242b;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.notification-permission:hover {
  background: #dff0f0;
}

.notification-permission:disabled {
  cursor: wait;
  opacity: 0.65;
}

.notification-item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #16242b;
  text-align: left;
  cursor: pointer;
}

.notification-item:hover,
.notification-item.is-unread {
  background: #eef7f7;
}

.notification-item strong,
.notification-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item span,
.notifications-empty {
  color: #5a6b72;
  font-size: 0.82rem;
}

.notifications-empty {
  margin: 0;
  padding: 12px 10px;
}

.company-menu__chevron {
  transition: transform 0.12s ease;
}

.company-menu__chevron.is-open {
  transform: rotate(90deg);
}

.company-menu__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 240px;
  padding: 8px;
  display: grid;
  gap: 4px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d6e0e5;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.22);
}

.company-menu__badge {
  padding: 2px 8px;
  justify-self: start;
  border-radius: 999px;
  background: #fff7e7;
  border: 1px solid #f0d39b;
  color: #61450d;
  font-weight: 700;
}

.company-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #16242b;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}

.company-menu__item:hover {
  background: #eef3f5;
}

.company-menu__item.is-current {
  background: #e8f3f4;
  font-weight: 700;
}

.company-menu__item small {
  color: #5a6b72;
}

.company-menu__state {
  margin: 0;
  padding: 8px 10px;
  color: #5a6b72;
  font-size: 0.82rem;
  font-weight: 700;
}

.company-menu__state.is-error {
  color: #b42318;
}

.company-menu__signout {
  justify-content: flex-start;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
  color: #8a3434;
}

.company-menu__create {
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  color: #0d5c63;
  font-weight: 800;
}

.reports-workspace {
  display: grid;
  gap: 18px;
}

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

.report-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.report-row:last-child {
  border-bottom: 0;
}

.report-row div {
  display: grid;
  gap: 3px;
}

.report-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.report-row b {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .report-card-grid,
  .report-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .meet-floating-layer {
    right: 10px;
    bottom: 10px;
    width: min(320px, calc(100vw - 20px));
    min-height: 230px;
  }

  .meet-floating-layer.meet-full-room {
    inset: 0;
    right: auto;
    bottom: auto;
    width: 100vw;
    min-height: 100dvh;
  }

  .meet-floating-layer.is-expanded {
    width: calc(100vw - 20px);
    min-height: min(520px, calc(100vh - 20px));
  }

  .meet-floating-layer.meet-full-room.is-expanded {
    width: 100vw;
    min-height: 100dvh;
  }

  .meet-floating-video {
    min-height: 132px;
    grid-template-columns: 1fr;
  }

  .meet-floating-video-tile,
  .meet-floating-placeholder {
    min-height: 132px;
  }

  .meet-full-room .meet-floating-video {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .meet-full-room .meet-floating-video-tile,
  .meet-full-room .meet-floating-placeholder {
    min-height: 0;
  }
}
