:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #1f2528;
  --muted: #625d76;
  --line: rgba(83, 46, 157, 0.14);
  --accent: #5e17eb;
  --accent-deep: #532e9d;
  --accent-soft: #d9d9d9;
  --green: #327a56;
  --red: #9e4c44;
  --gold: #b78a1f;
  --shadow: 0 20px 50px rgba(64, 40, 126, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(94, 23, 235, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(83, 46, 157, 0.14), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f6f2ff 50%, #d9d9d9 100%);
  min-height: 100vh;
}

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

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  width: 68px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-mark-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy small,
.muted {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link-with-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 23, 235, 0.14);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(94, 23, 235, 0.24);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button.is-disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}

.button-ghost,
.button-subtle {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.flash-success {
  border-color: rgba(50, 122, 86, 0.35);
}

.flash-error {
  border-color: rgba(158, 76, 68, 0.35);
}

.flash-warning {
  border-color: rgba(183, 138, 31, 0.35);
}

.hero,
.workspace-hero,
.auth-shell,
.billing-shell {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  padding: 28px 0 36px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.96;
  margin-bottom: 14px;
}

h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.hero p,
.workspace-hero p,
.auth-copy p,
.billing-shell p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-panel,
.feature-grid,
.card-grid,
.story-strip {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.metric-card,
.panel-card,
.quote-panel,
.auth-card,
.helper-banner {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-card,
.feature-card,
.quote-panel,
.helper-banner {
  padding: 22px;
}

.metric-card strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.metric-card-accent {
  background:
    linear-gradient(160deg, rgba(94, 23, 235, 0.14), rgba(255, 255, 255, 0.78)),
    var(--surface);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 37, 40, 0.1);
  box-shadow: 0 10px 24px rgba(64, 40, 126, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
}

.story-strip {
  grid-template-columns: 1.3fr 1fr;
  margin-top: 24px;
}

.quote-panel {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.compact-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.auth-shell {
  grid-template-columns: 1fr 420px;
  align-items: start;
  padding-top: 30px;
}

.auth-card,
.panel-card {
  padding: 24px;
}

.auth-card,
.stacked-form,
.inline-form,
.analytics-filter,
.status-list {
  display: grid;
  gap: 14px;
}

.auth-link {
  color: var(--accent-deep);
  font-weight: 600;
}

.panel-card .inline-form {
  margin-bottom: 20px;
}

.panel-note {
  margin-top: 26px;
}

.card-grid-spaced {
  margin-top: 18px;
}

label {
  display: grid;
  gap: 7px;
}

.forwarding-settings,
.inbound-route-settings {
  display: grid;
  gap: 14px;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.forwarding-settings.is-inactive,
.inbound-route-settings.is-inactive {
  opacity: 0.5;
  filter: grayscale(0.2);
}

.forwarding-settings.is-inactive input,
.inbound-route-settings.is-inactive input {
  background: rgba(31, 37, 40, 0.06);
  border-color: rgba(31, 37, 40, 0.08);
}

.file-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.saved-voicemail-block {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.saved-voicemail-header,
.saved-voicemail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.saved-voicemail-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.is-hidden {
  display: none !important;
}

.saved-voicemail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.saved-voicemail-select {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.saved-voicemail-select input {
  min-height: auto;
  margin: 0;
}

input,
select {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(31, 37, 40, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 14px;
}

.workspace-hero,
.section-heading {
  padding: 14px 0 8px;
}

.workspace-hero {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.workspace-hero-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.helper-banner {
  margin-bottom: 18px;
}

.card-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.voicemail-two-up {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: stretch;
}

.panel-top,
.entity-card-inline,
.analytics-filter,
.status-list div,
.workspace-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.panel-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.entity-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zillow-import-list {
  margin-top: 22px;
}

.zillow-browser-fallback {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.entity-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.activity-scroll {
  max-height: 330px;
  overflow-y: auto;
  padding-right: 6px;
}

.activity-scroll::-webkit-scrollbar {
  width: 10px;
}

.activity-scroll::-webkit-scrollbar-thumb {
  background: rgba(31, 37, 40, 0.18);
  border-radius: 999px;
}

.entity-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.voicemail-inbox-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  height: 620px;
}

.voicemail-left-column {
  order: 1;
}

.voicemail-right-column {
  order: 2;
  height: 620px;
  display: grid;
  align-content: start;
}

.voicemail-entry-list {
  margin-top: 0;
  max-height: 560px;
}

.voicemail-entry {
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.voicemail-entry-top,
.voicemail-entry-actions,
.voicemail-greeting-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.voicemail-entry-copy {
  display: grid;
  gap: 4px;
}

.voicemail-entry-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.voicemail-entry-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.voicemail-new-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(94, 23, 235, 0.14);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.voicemail-duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(94, 23, 235, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.voicemail-entry-actions {
  padding-top: 2px;
  align-items: flex-start;
}

.voicemail-player-shell {
  display: grid;
  flex: 1 1 320px;
  min-width: 260px;
  gap: 6px;
  justify-items: stretch;
}

.voicemail-entry-actions audio,
.voicemail-greeting-actions audio {
  display: block;
  width: 100%;
  min-width: 260px;
  max-width: 380px;
}

.voicemail-entry-actions form {
  flex: 0 0 auto;
}

.voicemail-greeting-card {
  display: grid;
  gap: 16px;
}

.voicemail-greeting-copy {
  display: grid;
  gap: 4px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(31, 37, 40, 0.08);
  white-space: nowrap;
}

.live-context {
  display: grid;
  gap: 10px;
}

.softphone-panel,
.softphone-dialer,
.softphone-incoming {
  display: grid;
  gap: 14px;
}

.softphone-panel {
  margin-top: 18px;
}

.softphone-status-row,
.softphone-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.softphone-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 37, 40, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
}

.softphone-badge[data-state="connected"],
.softphone-badge[data-state="live"] {
  background: rgba(57, 148, 95, 0.14);
  color: #1f6b42;
}

.softphone-badge[data-state="connecting"],
.softphone-badge[data-state="calling"],
.softphone-badge[data-state="ringing"] {
  background: rgba(204, 102, 36, 0.14);
  color: var(--accent-deep);
}

.softphone-badge[data-state="error"] {
  background: rgba(177, 53, 53, 0.12);
  color: #8d2f2f;
}

.softphone-incoming {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 34px rgba(94, 23, 235, 0.18);
  animation: softphonePulse 1.4s ease-in-out infinite;
}

.softphone-incoming p {
  white-space: pre-line;
}

.softphone-incoming-visual {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(94, 23, 235, 0.12);
  color: var(--accent-deep);
  font-weight: 700;
}

.softphone-incoming-ping {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(94, 23, 235, 0.4);
  animation: softphonePing 1.2s ease-out infinite;
}

.softphone-global-host {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(360px, calc(100vw - 32px));
  z-index: 40;
  pointer-events: none;
}

.softphone-global-host .softphone-incoming {
  pointer-events: auto;
  box-shadow: 0 24px 60px rgba(64, 40, 126, 0.18);
}

@keyframes softphonePulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 34px rgba(94, 23, 235, 0.18);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(94, 23, 235, 0.24);
  }
}

@keyframes softphonePing {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(94, 23, 235, 0.42);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(94, 23, 235, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(94, 23, 235, 0);
  }
}

.live-headline {
  font-size: 1.15rem;
  font-weight: 700;
}

.live-fields {
  display: grid;
  gap: 8px;
}

.live-field {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.live-field span,
.campaign-modal-field span {
  text-align: right;
}

.live-field a,
.campaign-modal-field a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.chart-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.chart-row {
  display: grid;
  grid-template-columns: 120px 1fr 170px;
  align-items: center;
  gap: 14px;
}

.chart-bars {
  display: flex;
  min-height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(31, 37, 40, 0.08);
}

.bar-answered {
  background: var(--green);
}

.bar-no-answer {
  background: var(--red);
}

.bar-voicemail {
  background: var(--gold);
}

.status-list {
  margin: 0;
}

.status-list dt {
  color: var(--muted);
  margin-bottom: 4px;
}

.stacked-actions {
  display: grid;
  gap: 12px;
}

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

.messages-sidebar,
.messages-thread-card {
  min-height: 680px;
  max-height: min(78vh, 820px);
}

.messages-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
}

.messages-new-thread-button {
  margin-top: 14px;
}

.messages-conversation-list {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 4px;
}

.messages-conversation-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}

.messages-conversation-item.is-active {
  border-color: rgba(94, 23, 235, 0.28);
  box-shadow: inset 0 0 0 1px rgba(94, 23, 235, 0.12);
}

.messages-conversation-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.messages-conversation-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.messages-unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 23, 235, 0.14);
  flex: 0 0 auto;
}

.messages-preview {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messages-count-pill {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(94, 23, 235, 0.14);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.messages-thread-card {
  display: grid;
  gap: 18px;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
  overflow: hidden;
  height: clamp(680px, 78vh, 820px);
}

.messages-thread-top {
  align-items: end;
}

.messages-thread-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.messages-line-picker {
  min-width: 260px;
}

.messages-thread {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: 100%;
  overflow-y: auto;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 37, 40, 0.06);
  display: grid;
  gap: 12px;
  align-content: start;
}

.messages-thread-shell {
  position: relative;
  min-height: 0;
  display: flex;
  overflow: hidden;
  align-self: stretch;
  height: 100%;
}

.messages-thread-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  min-height: 40px;
  align-items: center;
}

.messages-date-divider {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.messages-date-divider span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 37, 40, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.messages-empty {
  color: var(--muted);
  align-self: center;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  position: relative;
  min-width: 0;
}

.message-row.is-outbound {
  justify-content: flex-end;
}

.message-row.is-inbound {
  justify-content: flex-start;
}

.message-stack {
  display: grid;
  gap: 6px;
  max-width: min(78%, 560px);
}

.message-stack.is-outbound {
  justify-items: end;
  margin-left: auto;
}

.message-stack.is-inbound {
  justify-items: start;
  margin-right: auto;
}

.message-bubble {
  width: fit-content;
  max-width: 100%;
  min-width: min(110px, 100%);
  padding: 12px 14px;
  border-radius: 22px;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba(31, 37, 40, 0.08);
}

.message-bubble-body {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.message-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
}

.message-time {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
}

.message-bubble.is-inbound .message-time {
  color: rgba(255, 255, 255, 0.72);
}

.message-bubble.is-outbound {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 8px;
}

.message-bubble.is-inbound {
  background: #111316;
  color: white;
  border-bottom-left-radius: 8px;
}

.message-failure-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  flex-wrap: wrap;
}

.message-failure-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #c94b3c;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.message-status-failed {
  color: #b75a49;
  font-size: 0.85rem;
  font-weight: 600;
}

.messages-resend-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
}

.messages-resend-link:hover {
  text-decoration: underline;
}

.messages-jump-latest {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(31, 37, 40, 0.08);
  background: rgba(255, 252, 248, 0.96);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(31, 37, 40, 0.14);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
}

.message-select-shell {
  display: none;
  align-items: center;
  justify-content: center;
  align-self: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  z-index: 2;
}

.messages-thread.is-delete-mode .message-select-shell {
  display: inline-flex;
}

.messages-thread.is-delete-mode .message-row.is-inbound {
  padding-left: 34px;
}

.messages-thread.is-delete-mode .message-row.is-outbound {
  padding-right: 34px;
}

.message-row.is-inbound .message-select-shell {
  left: 0;
}

.message-row.is-outbound .message-select-shell {
  right: 0;
}

.message-select-shell input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.message-select-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(94, 23, 235, 0.5);
  background: white;
  box-shadow: inset 0 0 0 3px white;
}

.message-select-shell input:checked + .message-select-dot {
  background: var(--accent);
}

.messages-compose {
  display: grid;
  gap: 14px;
  min-height: 0;
  align-content: start;
}

.messages-compose-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.messages-compose-contact-block {
  display: grid;
  gap: 6px;
  flex: 1;
}

.messages-compose-contact-block strong {
  font-size: 1rem;
}

.messages-compose textarea {
  min-height: 120px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(31, 37, 40, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  resize: vertical;
  font: inherit;
}

.messages-compose-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}

code {
  padding: 2px 6px;
  background: rgba(31, 37, 40, 0.08);
  border-radius: 8px;
}

.campaign-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.campaign-modal-shell.is-hidden {
  display: none;
}

.campaign-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 22, 0.45);
  backdrop-filter: blur(4px);
}

.campaign-modal {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  background: #fffaf2;
  border: 1px solid rgba(31, 37, 40, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(31, 37, 40, 0.2);
  padding: 26px;
  display: grid;
  gap: 18px;
}

.campaign-modal-top,
.campaign-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.campaign-modal-top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.campaign-modal-grid,
.campaign-modal-stats {
  display: grid;
  gap: 16px;
}

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

.campaign-modal-card,
.campaign-modal-summary {
  border: 1px solid rgba(31, 37, 40, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
}

.campaign-modal-headline {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.campaign-modal-status-tag {
  color: var(--accent-deep);
}

.campaign-modal-fields {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.campaign-modal-field {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.campaign-modal-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.campaign-modal-progress-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.campaign-modal-summary-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.campaign-modal-stats div {
  min-height: 118px;
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(94, 23, 235, 0.08);
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
}

.campaign-modal-stats strong {
  font-size: 2rem;
  line-height: 1;
}

.campaign-modal-stats span {
  width: 100%;
  line-height: 1.3;
  text-align: center;
}

.campaign-modal-progress-stats span {
  font-size: 0.95rem;
  white-space: nowrap;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .hero,
  .hero-panel,
  .feature-grid,
  .story-strip,
  .auth-shell,
  .card-grid.two-up,
  .messages-shell,
  .workspace-hero,
  .chart-row {
    grid-template-columns: 1fr;
  }

  .voicemail-two-up {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-nav,
  .entity-card-inline,
  .panel-top,
  .analytics-filter,
  .panel-actions,
  .campaign-modal-top,
  .campaign-modal-actions,
  .campaign-modal-top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .campaign-modal-grid,
  .campaign-modal-stats {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .messages-line-picker {
    min-width: 0;
    width: 100%;
  }

  .messages-thread-card {
    min-height: auto;
  }

  .messages-compose-header {
    flex-direction: column;
    align-items: stretch;
  }
}
