:root {
  --ink: #17202a;
  --muted: #627084;
  --line: #dce4ea;
  --panel: #ffffff;
  --soft: #f5f7f2;
  --teal: #0f766e;
  --teal-dark: #0b514c;
  --coral: #e76f51;
  --amber: #f2b84b;
  --blue: #2b6cb0;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 228, 234, 0.85);
  backdrop-filter: blur(18px);
}

.brand,
.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span,
.sidebar-brand span {
  font-size: 22px;
}

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

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

.site-actions form {
  margin: 0;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.dashboard-site-header {
  gap: clamp(14px, 2vw, 26px);
  padding-block: 10px;
}

.dashboard-site-header .brand {
  flex: 0 0 auto;
}

.dashboard-site-header .site-nav {
  flex: 0 0 auto;
  margin-left: auto;
}

.site-nav form {
  margin: 0;
}

.nav-link,
.nav-button,
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.nav-link {
  padding: 9px 10px;
  font-weight: 700;
}

.nav-link:hover,
.text-button:hover {
  color: var(--teal);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 9px 18px rgba(15, 118, 110, 0.18);
}

.button:hover {
  background: var(--teal-dark);
}

.button.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.button-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.button-secondary:hover {
  background: #eef4f4;
}

.button-small {
  min-height: 36px;
  padding: 0 13px;
  font-size: 14px;
}

.hero {
  min-height: calc(78vh - 66px);
  display: flex;
  align-items: center;
  padding: clamp(54px, 8vw, 110px) clamp(20px, 6vw, 88px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 25, 32, 0.93) 0%, rgba(9, 25, 32, 0.82) 47%, rgba(9, 25, 32, 0.2) 100%),
    url("/assets/optimized/hero-dashboard-1500.webp") center right / cover no-repeat;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 9vw, 122px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 7vw, 96px) clamp(20px, 6vw, 88px);
  background: #fff;
}

.band-reverse {
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
  background: #f7faf9;
}

.band-reverse .band-copy {
  order: 2;
}

.band h2,
.cta-band h2,
.app-topline h1,
.panel h2,
.auth-card h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.band h2 {
  max-width: 680px;
  font-size: clamp(34px, 4.6vw, 64px);
}

.band p,
.cta-band p,
.auth-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #314052;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  content: "";
}

.feature-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cta-band {
  padding: clamp(54px, 7vw, 94px) clamp(20px, 6vw, 88px);
  background: var(--ink);
  color: #fff;
}

.cta-band p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 36px 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(231, 111, 81, 0.08)),
    var(--soft);
}

.auth-card,
.panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.08);
}

.auth-card {
  width: min(480px, 100%);
  padding: 30px;
}

.legal-shell {
  display: grid;
  place-items: start center;
  padding: clamp(36px, 7vw, 82px) 18px;
}

.legal-card {
  width: min(860px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 46px);
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.08);
}

.legal-card h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.legal-card h2 {
  margin: 26px 0 8px;
  font-size: 20px;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.7;
}

.legal-accept-card {
  width: min(560px, 100%);
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.auth-brand {
  margin-bottom: 22px;
}

.stack-form,
.widget-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #39485a;
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 43px;
  border: 1px solid #cfd9e1;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

select {
  width: 100%;
  min-height: 43px;
  border: 1px solid #cfd9e1;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 3px solid rgba(15, 118, 110, 0.15);
  border-color: var(--teal);
}

.auth-switch,
.inline-form {
  margin-top: 18px;
}

.notice {
  margin: 16px 0;
  border-radius: 8px;
  padding: 11px 12px;
  font-weight: 700;
}

.notice-error {
  background: #fde8e4;
  color: #9f2d18;
}

.notice-success,
.notice-info {
  background: #e6f4f1;
  color: #0b514c;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.app-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.sidebar-brand {
  margin-bottom: 18px;
}

.sidebar-brand img {
  width: 34px;
  height: 34px;
}

.side-item {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
}

.side-item.active,
.side-item:hover {
  background: #e8f3f1;
  color: var(--teal-dark);
}

.side-link {
  display: flex;
  align-items: center;
}

.app-main,
.admin-shell {
  min-width: 0;
  padding: clamp(20px, 4vw, 40px);
}

.dashboard-page {
  display: block;
}

.dashboard-home-grid,
.analytics-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.analytics-priority-grid {
  grid-template-columns: minmax(380px, 1.15fr) minmax(320px, 0.85fr);
}

.compact-select {
  width: min(380px, 100%);
}

.app-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.app-topline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.dashboard-header-stats {
  flex: 1 1 650px;
  min-width: min(650px, 48vw);
  max-width: 820px;
}

.top-gauge-shell {
  --gauge-color: #0f766e;
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid rgba(196, 210, 219, 0.86);
  border-radius: 8px;
  padding: 7px 8px 7px 9px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.86) 46%, rgba(37, 99, 235, 0.08)),
    #fff;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.08);
}

.top-gauge-shell.has-waiting {
  --gauge-color: #dc2626;
  border-color: rgba(220, 38, 38, 0.26);
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(255, 255, 255, 0.88) 48%, rgba(15, 118, 110, 0.08)),
    #fff;
  animation: headerCallPulse 1.25s ease-in-out infinite;
}

.top-gauge-shell.is-quiet {
  --gauge-color: #64748b;
}

.top-gauge-ring {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background:
    conic-gradient(var(--gauge-color) var(--gauge-percent, 0%), #dbe5eb 0),
    #fff;
}

.top-gauge-ring::after {
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #fff;
  content: "";
}

.top-gauge-ring strong,
.top-gauge-ring span {
  position: relative;
  z-index: 1;
}

.top-gauge-ring strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
}

.top-gauge-ring span {
  margin-top: 16px;
  color: #64748b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-gauge-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.top-gauge-copy span,
.top-gauge-stat span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-gauge-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-gauge-copy small {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-gauge-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  gap: 6px;
}

.top-gauge-stat {
  display: grid;
  min-width: 58px;
  min-height: 42px;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(196, 210, 219, 0.9);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.top-gauge-stat:hover {
  border-color: rgba(15, 118, 110, 0.35);
  background: #f8fbfa;
}

.top-gauge-stat strong {
  font-size: 17px;
  line-height: 1;
}

.top-gauge-stat.is-hot {
  border-color: rgba(220, 38, 38, 0.3);
  background: #fff7f7;
  color: #991b1b;
}

.dashboard-call-tray {
  display: grid;
  gap: 10px;
  margin: -12px 0 18px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: #fff7f7;
}

.call-tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.call-tray-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.call-tray-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.call-tray-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.call-tray-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.call-tray-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-tray-card b {
  color: #991b1b;
  font-size: 18px;
}

@keyframes headerCallPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); }
}

.app-topline h1 {
  font-size: clamp(30px, 4vw, 48px);
}

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

.metric-card {
  min-height: 112px;
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
}

.panel-grid,
.live-grid,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(360px, 1.2fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.widget-management {
  grid-template-columns: 1fr;
}

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

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.filter-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.filter-toggle input {
  width: auto;
  min-height: auto;
  accent-color: var(--teal);
}

.toggle-grid,
.sip-health-settings {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.route-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.route-summary-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.route-summary-card span,
.route-summary-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.route-summary-card strong {
  display: block;
  margin: 5px 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.admin-disclosure-form {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-disclosure-form > summary {
  cursor: pointer;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.admin-disclosure-form > form {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.panel h2 {
  font-size: 22px;
}

.widget-list,
.visitor-list {
  display: grid;
  gap: 10px;
}

.visitor-site-list {
  gap: 14px;
}

.widget-panel .widget-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.widget-card,
.visitor-card,
.call-request {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
  cursor: pointer;
}

.widget-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.widget-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.widget-card-actions .button,
.widget-card-actions .text-button {
  min-height: 32px;
}

.widget-card-empty {
  cursor: default;
}

.widget-card.active,
.visitor-card.active {
  border-color: var(--teal);
  background: #edf7f5;
}

.widget-card h3,
.visitor-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.visitor-site-group {
  display: grid;
  gap: 8px;
}

.visitor-site-header {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #1f2933;
  border-radius: 8px;
  padding: 12px 14px;
  background: #26313b;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.visitor-site-header:hover {
  border-color: #394653;
  background: #202a33;
}

.visitor-site-header strong,
.visitor-site-header small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.visitor-site-header small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.site-live-count {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 5px 8px;
  background: #dbf2ed;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.visitor-site-items {
  display: grid;
  gap: 8px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 2px solid #d7dee5;
}

.visitor-card-compact {
  padding: 12px;
}

.visitor-card-main {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.visitor-card-main h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.visitor-url {
  min-width: 0;
  margin: 7px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.status-pill,
.feature-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 8px;
  padding: 0 8px;
  background: #edf0f2;
  color: #344256;
  font-size: 12px;
  font-weight: 900;
}

.status-installed,
.status-connected,
.status-up {
  background: #dbf2ed;
  color: #0b514c;
}

.status-unchecked,
.status-checking,
.status-warning {
  background: #fff1d6;
  color: #68460f;
}

.status-call-waiting {
  background: #fee2e2;
  color: #991b1b;
}

.status-active-chat {
  background: #e0f2fe;
  color: #075985;
}

.status-active-call {
  background: #fae8ff;
  color: #86198f;
}

.status-not_found,
.status-disconnected,
.status-down,
.status-error {
  background: #fde8e4;
  color: #9f2d18;
}

.feature-stack,
.asset-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-on {
  background: #dbf2ed;
  color: #0b514c;
}

.feature-off {
  background: #edf0f2;
  color: #627084;
}

.asset-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.asset-present {
  background: #dbf2ed;
  color: #0b514c;
}

.asset-missing {
  background: #fde8e4;
  color: #9f2d18;
}

.mono-cell {
  display: inline-block;
  max-width: 220px;
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: #39485a;
  font-size: 11px;
}

.toggle-row,
.form-actions,
.snippet-header,
.call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.snippet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.toggle-row label {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fbfcfd;
}

.toggle-row input {
  width: auto;
  min-height: auto;
}

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

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

.telephony-note {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: #edf7f5;
}

.telephony-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sip-trunk-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.sip-trunk-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfd;
  cursor: default;
}

.sip-trunk-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sip-trunk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sip-trunk-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.sip-trunk-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sip-trunk-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.asset-state {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}

.asset-state-header,
.asset-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.asset-state-header span,
.asset-card a,
.asset-empty,
.asset-missing-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.asset-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.asset-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.asset-card-ready {
  border-color: rgba(15, 118, 110, 0.35);
}

.asset-thumb {
  display: block;
  width: 58px;
  height: 58px;
  margin-top: 10px;
  border-radius: 50%;
  object-fit: cover;
  background: #edf0f2;
}

.asset-card audio {
  width: 100%;
  height: 34px;
  margin-top: 10px;
}

.notification-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #f8fafb;
}

.settings-tab {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.settings-tab.active {
  background: #fff;
  color: var(--teal-dark);
  box-shadow: 0 1px 4px rgba(23, 32, 42, 0.08);
}

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

.schedule-editor {
  display: grid;
  gap: 10px;
}

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

.schedule-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(96px, 0.65fr) minmax(96px, 0.65fr) auto;
  gap: 8px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

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

.delivery-panel {
  background: #fbfcfd;
}

.route-help {
  border: 1px solid #dce4ea;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.route-field {
  margin: 0;
}

.service-queue-route-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.service-queue-option-list {
  display: grid;
  gap: 8px;
}

.service-queue-option-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(180px, 1.1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid #e3ebf1;
  border-radius: 8px;
  padding: 9px;
  background: #f8fbfc;
}

.service-queue-option-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.service-queue-option-row input[type="text"],
.service-queue-option-row input:not([type]) {
  min-width: 0;
}

.delivery-behavior-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.delivery-behavior-fields small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.route-failover-panel {
  border: 1px solid #dce4ea;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.route-failover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.route-failover-head strong,
.route-summary-card strong {
  color: var(--ink);
}

.route-failover-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.route-failover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.route-failover-grid.is-disabled {
  opacity: .48;
  pointer-events: none;
}

.style-settings-grid,
.style-copy-grid,
.style-color-grid {
  display: grid;
  gap: 10px;
}

.style-settings-grid,
.style-color-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.style-color-grid input[type="color"] {
  width: 100%;
  min-height: 42px;
  padding: 4px;
}

.widget-style-preview {
  --preview-accent: #0f766e;
  --preview-header: #17202a;
  --preview-surface: #ffffff;
  --preview-text: #17202a;
  display: grid;
  grid-template-columns: minmax(240px, 420px) auto;
  align-items: end;
  gap: 16px;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(23, 32, 42, 0.04)),
    #f7faf9;
  transition: background 0.15s ease, direction 0.15s ease;
}

.widget-style-preview .preview-panel {
  overflow: hidden;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background: var(--preview-surface);
  color: var(--preview-text);
  box-shadow: 0 16px 34px rgba(23, 32, 42, 0.16);
  transition: width 0.15s ease, border-radius 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.widget-style-preview[data-size="compact"] .preview-panel {
  width: 270px;
}

.widget-style-preview[data-size="normal"] .preview-panel {
  width: 340px;
}

.widget-style-preview[data-size="large"] .preview-panel {
  width: min(100%, 420px);
}

.widget-style-preview[data-size="compact"] .preview-message {
  margin: 9px;
  padding: 7px 9px;
  font-size: 12px;
}

.widget-style-preview[data-size="large"] .preview-message {
  margin: 15px;
  padding: 12px 14px;
  font-size: 14px;
}

.widget-style-preview[data-layout="concierge"] {
  grid-template-columns: auto minmax(240px, 420px);
  background:
    radial-gradient(circle at 82% 18%, rgba(31, 109, 69, 0.18), transparent 32%),
    linear-gradient(135deg, #eef7f1, #f8fbfa);
}

.widget-style-preview[data-layout="concierge"] .preview-panel {
  order: 2;
  border-radius: 16px;
  box-shadow: 0 24px 54px rgba(23, 32, 42, 0.2);
}

.widget-style-preview[data-layout="concierge"] .preview-launcher {
  order: 1;
  width: 126px;
  border-radius: 999px;
}

.widget-style-preview[data-layout="compact"] .preview-panel {
  width: 280px;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.14);
}

.widget-style-preview[data-layout="compact"] .preview-launcher {
  width: 52px;
  height: 52px;
  border-width: 3px;
}

.widget-style-preview .preview-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  background: var(--preview-header);
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease, padding 0.15s ease;
}

.widget-style-preview .preview-header div {
  display: grid;
  gap: 2px;
}

.widget-style-preview .preview-header small {
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.72;
}

.widget-style-preview[data-size="compact"] .preview-header {
  padding: 9px;
}

.widget-style-preview[data-size="large"] .preview-header {
  padding: 15px;
}

.widget-style-preview .preview-header span,
.widget-style-preview .preview-launcher span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--preview-accent);
}

.widget-style-preview .preview-message {
  max-width: 78%;
  margin: 12px;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 800;
}

.widget-style-preview .preview-message.agent {
  border: 1px solid #dce4ea;
  background: #fff;
}

.widget-style-preview .preview-message.visitor {
  margin-left: auto;
  background: var(--preview-accent);
  color: #fff;
}

.widget-style-preview .preview-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 12px;
  align-items: center;
}

.widget-style-preview .preview-composer span {
  min-width: 0;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  padding: 8px 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.widget-style-preview .preview-composer button {
  border: 0;
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--preview-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.widget-style-preview .preview-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin: -4px 12px 12px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.widget-style-preview .preview-legal button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--preview-accent);
  cursor: default;
  font: inherit;
  text-decoration: underline;
}

.widget-style-preview .preview-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 66px;
  height: 66px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--preview-accent);
  box-shadow: 0 16px 34px rgba(23, 32, 42, 0.22);
  transition: width 0.15s ease, height 0.15s ease, border-radius 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.widget-style-preview .preview-launcher b {
  display: none;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.widget-style-preview[data-layout="concierge"] .preview-launcher b {
  display: inline;
}

.widget-style-preview[data-size="compact"] .preview-launcher {
  width: 56px;
  height: 56px;
}

.widget-style-preview[data-size="large"] .preview-launcher {
  width: 78px;
  height: 78px;
}

.widget-style-preview[data-theme="concierge"] .preview-launcher {
  background: #17191d;
  box-shadow: 0 20px 46px rgba(23, 25, 29, 0.28);
}

.widget-style-preview[data-theme="concierge"] .preview-header {
  background: linear-gradient(135deg, var(--preview-header), var(--preview-accent));
}

.widget-style-preview[data-theme="concierge"] .preview-message.agent {
  background: #f8faf9;
}

.widget-style-preview[data-theme="minimal"] {
  background: #f8fafb;
}

.widget-style-preview[data-theme="minimal"] .preview-panel {
  border-color: #e2e8f0;
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.1);
}

.widget-style-preview[data-theme="minimal"] .preview-header {
  border-bottom: 1px solid #e2e8f0;
  background: var(--preview-surface);
  color: var(--preview-text);
}

.widget-style-preview[data-theme="minimal"] .preview-launcher {
  border-color: #e2e8f0;
  background: var(--preview-surface);
}

.widget-style-preview[data-position="bottom_left"] {
  direction: rtl;
}

.widget-style-preview[data-position="bottom_left"] > * {
  direction: ltr;
}

.settings-open {
  overflow: hidden;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(16, 24, 32, 0.58);
}

.settings-dialog {
  display: flex;
  width: min(1040px, 100%);
  max-height: min(92dvh, 900px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(23, 32, 42, 0.32);
}

.sip-settings-dialog {
  width: min(720px, 100%);
}

.settings-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.settings-dialog-head h2 {
  margin: 0;
}

.settings-dialog-head p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.settings-dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  overflow: auto;
  padding: 18px;
}

.sip-settings-body {
  grid-template-columns: 1fr;
}

.settings-dialog-body .snippet-box {
  align-self: start;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafb;
}

.notification-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notification-panel-heading small {
  display: block;
  margin-top: 3px;
}

.notification-grid {
  display: grid;
  gap: 12px;
}

.overview-widget-list,
.analytics-list,
.api-docs-content {
  display: grid;
  gap: 10px;
}

.analytics-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0 0 18px;
}

.analytics-widget-context {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: #f6fbfa;
}

.analytics-widget-context strong {
  display: block;
  margin-bottom: 4px;
}

.analytics-widget-context span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.analytics-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.analytics-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.analytics-tab span {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  border-radius: 999px;
  background: #eef2f3;
  color: var(--ink);
  font-size: 12px;
}

.analytics-tab-attention span {
  background: #fff2d2;
  color: #6b470d;
}

.analytics-tab.active,
.analytics-tab:hover {
  border-color: var(--teal);
  background: #edf8f7;
  color: var(--teal-dark);
}

.analytics-tab-panel {
  min-height: 360px;
}

.analytics-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.analytics-section-grid-main {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.analytics-side-stack {
  display: grid;
  gap: 14px;
}

.analytics-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.analytics-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.analytics-section-heading h3,
.analytics-subsection-title {
  margin: 0;
  font-size: 16px;
}

.analytics-section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.overview-widget-row,
.analytics-row,
.analytics-message-card,
.api-example,
.api-note,
.api-doc-intro {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.overview-widget-row,
.analytics-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.analytics-row-rich {
  align-items: stretch;
}

.analytics-row-rich > div {
  min-width: 0;
}

.analytics-message-card {
  display: block;
}

.analytics-message-main {
  min-width: 0;
}

.message-event-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.analytics-message-card p {
  margin: 8px 0 0;
  color: #293846;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.analytics-message-card .message-event-topline span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.analytics-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.analytics-clickable:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.analytics-row-selected {
  border-color: var(--teal);
  background: #eefbf9;
}

.analytics-focus-section {
  background: #fcfdfd;
}

.ip-summary-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  cursor: pointer;
  padding: 11px 12px;
  text-align: left;
}

.ip-summary-card strong,
.ip-summary-card span {
  display: block;
  overflow-wrap: anywhere;
}

.ip-summary-card strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.ip-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.ip-summary-card:hover {
  border-color: var(--teal);
  background: #eefbf9;
}

.selected-ip-panel {
  display: grid;
  gap: 12px;
}

.selected-ip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f7fbfc;
}

.selected-ip-head strong {
  display: block;
  margin-bottom: 4px;
}

.selected-ip-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.selected-ip-events {
  display: grid;
  gap: 10px;
}

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

.ip-intel-grid article,
.selected-ip-pages article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.ip-intel-grid span,
.selected-ip-pages span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.ip-intel-grid strong,
.selected-ip-pages strong {
  display: block;
  font-size: 13px;
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.ip-intel-grid small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.ip-visitor-list button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 7px 9px;
  text-align: left;
}

.ip-visitor-list button span {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  margin-left: 6px;
}

.ip-visitor-list button:hover {
  border-color: var(--teal);
}

.fingerprint-stack button,
.mini-list button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  padding: 6px 8px;
}

.fingerprint-stack button:hover,
.mini-list button:hover,
.ip-chip {
  border-color: var(--teal);
  color: var(--ink);
}

.overview-widget-row strong,
.analytics-row strong {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.overview-widget-row span,
.analytics-row span,
.api-doc-intro p,
.api-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.analytics-grid h3,
.api-example h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.analytics-list-tall {
  max-height: 520px;
  overflow: auto;
}

.analytics-ip-list {
  max-height: 520px;
  overflow: auto;
}

.analytics-list-contained {
  max-height: 430px;
  overflow: auto;
  padding-right: 3px;
}

.analytics-list-short {
  max-height: 300px;
  overflow: auto;
}

.fingerprint-stack,
.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.fingerprint-stack span,
.mini-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  padding: 6px 8px;
}

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

.disabled-toggle input {
  cursor: not-allowed;
}

.analytics-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 20px;
}

.analytics-message-list {
  max-height: 620px;
  overflow: auto;
}

.analytics-page-list {
  max-height: 620px;
  overflow: auto;
}

.analytics-subsection-title {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.tracking-grid textarea {
  min-height: 142px;
  resize: vertical;
}

.tracking-grid small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.inline-code-block {
  margin: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #101820;
  color: #e8f2f1;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.api-docs {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.api-doc-heading {
  margin-bottom: 10px;
}

.api-example pre,
.api-doc-intro pre {
  margin: 8px 0 0;
}

.api-token-layout {
  display: grid;
  gap: 12px;
}

.token-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

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

.token-card,
.token-empty,
.token-reveal {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.token-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.token-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.token-card-revoked {
  opacity: 0.68;
}

.token-empty {
  color: var(--muted);
  font-weight: 800;
}

.token-reveal {
  display: grid;
  gap: 10px;
  border-color: rgba(242, 184, 75, 0.45);
  background: #fff8e8;
}

.api-token-filter {
  justify-content: flex-start;
  margin: 2px 0 4px;
}

.token-value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.account-management {
  gap: 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.account-summary,
.account-billing-usage,
.account-call-summary,
.account-roadmap,
.account-device-list,
.account-alert-preferences,
.account-user-list,
.service-queue-list {
  display: grid;
  gap: 10px;
}

.account-summary-grid,
.account-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.account-summary-grid article,
.account-roadmap-grid article,
.account-device-card,
.account-user-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.account-summary-grid span,
.account-roadmap-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-summary-grid strong,
.account-roadmap-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.account-summary-grid small,
.account-roadmap-grid small,
.account-device-card small {
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-usage-overview,
.account-call-summary {
  display: grid;
  gap: 12px;
}

.account-pstn-meter,
.account-call-head,
.account-pstn-call {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.account-pstn-meter {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.account-pstn-meter span,
.account-call-head > div:first-child span,
.account-pstn-call span,
.account-capacity-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-pstn-meter strong,
.account-call-head > div:first-child strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.account-pstn-meter small,
.account-call-head small,
.account-pstn-call small {
  color: var(--muted);
  font-weight: 700;
}

.account-meter-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf0;
}

.account-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0c9aa3, #49b37a);
}

.account-capacity-list,
.account-routing-row,
.account-call-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-capacity-chip,
.account-routing-row span,
.account-call-stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-capacity-chip {
  min-width: 132px;
  padding: 10px 12px;
}

.account-capacity-chip strong {
  display: block;
  margin-top: 4px;
}

.account-routing-row span {
  padding: 8px 10px;
  color: #20323a;
  font-size: 12px;
  font-weight: 900;
}

.account-call-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.25fr);
  gap: 14px;
  padding: 14px;
  align-items: center;
}

.account-call-stats article {
  flex: 1 1 110px;
  padding: 10px;
}

.account-call-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-call-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.account-pstn-call-list {
  display: grid;
  gap: 8px;
}

.account-pstn-call {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(150px, 1fr) minmax(140px, 1fr) minmax(110px, 0.7fr) minmax(100px, 0.7fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.account-pstn-call strong {
  display: block;
  overflow-wrap: anywhere;
}

.account-pstn-call-status span {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9f6f2;
  color: #126046;
}

.account-device-card,
.account-user-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-device-card.current {
  border-color: rgba(12, 154, 163, 0.45);
  box-shadow: 0 0 0 3px rgba(12, 154, 163, 0.08);
}

.account-device-main {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.device-kind-icon {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #101820;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.account-device-actions,
.account-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-user-dialog {
  max-width: 920px;
}

.visitor-note-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.visitor-note-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.visitor-note-card.private {
  border-color: #f2cf8d;
  background: #fffaf0;
}

.visitor-note-card p {
  margin: 8px 0;
  color: var(--ink);
  white-space: pre-wrap;
}

.visitor-note-card small {
  color: var(--muted);
  font-weight: 800;
}

.visitor-note-form {
  margin-top: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.account-call-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.account-call-analytics-grid section {
  display: grid;
  gap: 10px;
}

.account-call-analytics-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.account-analytics-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(4, minmax(70px, 0.6fr));
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.account-analytics-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-analytics-row strong {
  color: var(--ink);
  font-size: 13px;
}

.service-queue-card {
  display: grid;
  gap: 10px;
}

.service-queue-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-queue-members span {
  border-radius: 8px;
  padding: 5px 8px;
  background: #eef3f7;
  color: #314153;
  font-size: 12px;
  font-weight: 900;
}

.account-user-routing-grid,
.service-queue-member-row.advanced {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(430px, 1.35fr);
  gap: 12px;
  align-items: center;
}

.account-user-routing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.service-queue-member-enable {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.service-queue-member-enable span {
  min-width: 0;
}

.service-queue-member-enable strong,
.service-queue-member-enable small {
  overflow-wrap: anywhere;
}

.service-queue-member-controls {
  display: grid;
  grid-template-columns: minmax(78px, 0.38fr) minmax(178px, 0.78fr) minmax(210px, 1fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.service-queue-member-field {
  display: flex !important;
  min-width: 0;
  flex-direction: column;
  align-items: stretch !important;
  gap: 5px !important;
}

.service-queue-member-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-queue-member-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.service-queue-member-row input[type="checkbox"] {
  width: auto;
}

.service-queue-member-row input,
.service-queue-member-row select,
.account-user-routing-grid input,
.account-user-routing-grid select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}

@media (max-width: 1020px) {
  .service-queue-member-row.advanced {
    grid-template-columns: 1fr;
  }

  .service-queue-member-controls {
    grid-template-columns: minmax(78px, 0.35fr) minmax(170px, 0.75fr) minmax(190px, 1fr);
  }
}

@media (max-width: 760px) {
  .account-user-routing-grid,
  .service-queue-member-controls,
  .visitor-info-grid,
  .visitor-contact-create {
    grid-template-columns: 1fr;
  }

  .account-call-analytics-grid,
  .account-analytics-row {
    grid-template-columns: 1fr;
  }
}

.settings-dialog-body-single {
  grid-template-columns: 1fr;
}

.account-user-form {
  display: grid;
  gap: 14px;
}

.account-permission-builder {
  display: grid;
  gap: 12px;
}

.permission-grid-heading {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-permission-grid {
  display: grid;
  gap: 8px;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) repeat(4, auto);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.permission-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.permission-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.permission-row input {
  width: auto;
  min-height: auto;
}

.account-alert-heading {
  margin-top: 6px;
}

.account-alert-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #f7fbfc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.account-alert-grid {
  display: grid;
  gap: 9px;
}

.account-alert-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.account-alert-row-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.account-alert-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-alert-columns > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-alert-columns b {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-alert-columns label,
.account-user-alert-switches label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fbfcfd;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.account-alert-columns input,
.account-user-alert-switches input {
  width: auto;
  min-height: auto;
}

.account-user-alert-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.account-user-alert-details {
  margin-top: 10px;
}

.account-user-alert-details summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 950;
}

.account-user-alert-details .account-alert-grid {
  margin-top: 10px;
}

.token-empty.compact {
  margin-top: 10px;
}

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

.alert-grid label {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  font-weight: 800;
}

.alert-grid input {
  width: auto;
  min-height: auto;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.snippet-box {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

pre {
  overflow: auto;
  border-radius: 8px;
  padding: 14px;
  background: #101820;
  color: #e7fff9;
  white-space: pre-wrap;
  word-break: break-word;
}

.conversation-panel {
  min-height: 580px;
}

.visitor-session-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1.85fr) auto;
  align-items: stretch;
  gap: 10px;
  margin: -2px 0 12px;
  border: 1px solid #d6e2e0;
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(135deg, #f6fbfa, #ffffff);
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.06);
}

.visitor-session-page,
.visitor-session-metrics article,
.visitor-session-return {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.visitor-session-page {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.visitor-session-page span,
.visitor-session-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.visitor-session-page strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.visitor-session-page small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.visitor-session-metrics article {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 9px;
}

.visitor-session-metrics strong {
  color: var(--teal-dark);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  letter-spacing: 0;
}

.visitor-session-return {
  display: grid;
  align-content: center;
  padding: 8px 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.message-list {
  display: flex;
  min-height: 310px;
  max-height: 440px;
  flex-direction: column;
  gap: 9px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}

.conversation-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #f8fafb;
}

.conversation-tab {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.conversation-tab.active {
  background: #fff;
  color: var(--teal-dark);
  box-shadow: 0 1px 4px rgba(23, 32, 42, 0.08);
}

.conversation-tab-panel {
  display: grid;
  gap: 10px;
}

.voice-message-list,
.visitor-activity-list {
  display: grid;
  max-height: 510px;
  gap: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}

.voice-message-card,
.visitor-activity-card,
.site-directory-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.voice-message-head,
.visitor-activity-card > div,
.site-directory-card {
  align-items: start;
}

.voice-message-head,
.visitor-activity-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.voice-message-card span,
.visitor-activity-card span,
.site-directory-card span,
.direct-status,
.voice-message-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.voice-message-card audio {
  width: 100%;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.visitor-activity-card a,
.site-directory-card a {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.direct-user-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.visitor-info-panel {
  display: grid;
  max-height: 560px;
  gap: 12px;
  overflow: auto;
}

.visitor-info-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.visitor-info-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.visitor-info-heading span,
.visitor-info-tile span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.visitor-info-heading strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.visitor-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.visitor-info-grid,
.visitor-contact-create {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.visitor-info-tile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafb;
}

.visitor-info-tile strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.visitor-contact-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.visitor-contact-search input,
.visitor-contact-create input {
  width: 100%;
}

.visitor-contact-create label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.visitor-contact-results button {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafb;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.visitor-contact-results button:hover {
  border-color: var(--teal);
  background: #ecfdf5;
}

.visitor-contact-results span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.visitor-user-agent {
  margin: 0;
  background: #f8fafb;
  color: var(--muted);
}

.direct-user-panel select {
  min-height: 166px;
}

.direct-user-panel input,
.direct-user-panel select,
.site-directory-panel input {
  width: 100%;
}

.site-directory-list {
  display: grid;
  max-height: 360px;
  gap: 10px;
  overflow: auto;
}

.site-directory-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.site-directory-card strong,
.site-directory-card a,
.site-directory-card span {
  display: block;
}

.site-directory-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-field {
  align-content: center;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
}

.checkbox-field input {
  width: auto;
}

.message {
  max-width: min(74%, 520px);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.45;
}

.message small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.message.visitor {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
}

.message.visitor small {
  color: var(--muted);
}

.message.agent {
  align-self: flex-end;
  background: var(--teal);
  color: #fff;
}

.message.system {
  align-self: center;
  background: #fff1d6;
  color: #68460f;
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.icon-button {
  min-width: 64px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.icon-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.call-connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 82px;
  border-color: rgba(15, 118, 110, 0.32);
  background: linear-gradient(135deg, #0f766e, #11917f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.call-connect-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-connect-button:hover {
  border-color: rgba(15, 118, 110, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.call-connect-button:disabled,
.call-connect-button.is-blocked {
  border-color: #d7e0e3;
  background: #eef3f4;
  color: #73808a;
  box-shadow: none;
  transform: none;
}

.call-status {
  margin-bottom: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff1d6;
  color: #68460f;
  font-weight: 800;
}

.call-request-timer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.call-request-timer span {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(104, 70, 15, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #68460f;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.call-request-timer b {
  color: var(--ink);
  font-size: 1.05rem;
}

.call-presence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.call-presence strong,
.call-presence span {
  display: block;
}

.call-presence span {
  margin-top: 3px;
  color: #45605c;
  font-size: 13px;
}

.call-presence small {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  padding: 6px 9px;
  background: #ecf7f5;
  color: #0b514c;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.media-stage.call-hud {
  position: sticky;
  top: 10px;
  z-index: 5;
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #0c1117;
  box-shadow: 0 18px 46px rgba(23, 32, 42, 0.22);
}

.media-stage audio {
  display: none;
}

.call-hud-top {
  display: grid;
  grid-template-columns: minmax(92px, 0.55fr) minmax(180px, 1.45fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.call-hud-summary span,
.call-meter span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.call-hud-summary strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.call-meter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.call-meter {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.call-meter i {
  display: block;
  overflow: hidden;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.call-meter b {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0.04);
  transform-origin: left center;
  border-radius: inherit;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0 4px, rgba(255, 255, 255, 0) 4px 8px),
    linear-gradient(90deg, #2ed3a2, #f2b84b);
  box-shadow: 0 0 18px rgba(46, 211, 162, 0.32);
  transition: transform 80ms linear;
}

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

.call-control-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.call-control-button:hover,
.call-control-button.active {
  border-color: rgba(46, 211, 162, 0.78);
  background: rgba(46, 211, 162, 0.16);
}

.call-control-button.danger {
  border-color: rgba(248, 113, 113, 0.34);
  background: #d94b4b;
}

.call-control-button:disabled {
  opacity: 0.46;
  cursor: default;
}

.call-video-stage {
  position: relative;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #05080c;
}

.media-stage.has-video .call-video-stage {
  display: block;
}

.call-video-stage video:first-of-type {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  max-height: 56vh;
  object-fit: cover;
  background: #0c1117;
}

.call-video-stage video:nth-of-type(2) {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(26%, 158px);
  aspect-ratio: 4 / 3;
  border: 2px solid #fff;
  border-radius: 12px;
  object-fit: cover;
  background: #17202a;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.media-stage.self-video-only .call-video-stage video:nth-of-type(2) {
  position: static;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.media-stage.expanded {
  margin-inline: -6px;
  border-radius: 18px;
}

.media-stage.expanded .call-hud-top {
  background: rgba(12, 17, 23, 0.94);
}

.media-stage.expanded .call-video-stage,
.media-stage.expanded .call-video-stage video:first-of-type {
  width: 100%;
}

.media-stage.expanded .call-video-stage video:first-of-type {
  min-height: min(62vh, 560px);
  max-height: 68vh;
  object-fit: contain;
}

.media-stage.expanded .call-video-stage video:nth-of-type(2) {
  width: min(24%, 180px);
}

.call-video-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.call-video-offer span {
  display: block;
  margin-top: 3px;
  color: #45605c;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

small {
  color: var(--muted);
}

@media (max-width: 1020px) {
  .dashboard-site-header {
    flex-wrap: wrap;
  }

  .dashboard-site-header .dashboard-header-stats {
    order: 3;
    flex-basis: 100%;
    min-width: 0;
    max-width: none;
  }

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

	  .panel-grid,
	  .live-grid,
	  .admin-grid,
	  .dashboard-home-grid,
	  .analytics-grid,
	  .analytics-section-grid,
	  .ip-intel-grid,
	  .tracking-grid,
	  .account-grid,
	  .band,
	  .band-reverse {
	    grid-template-columns: 1fr;
	  }

	  .band-reverse .band-copy {
	    order: 0;
	  }

  .account-call-head,
  .account-pstn-call {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .token-form,
  .token-card,
  .token-value-row,
  .analytics-toolbar,
  .analytics-widget-context,
  .selected-ip-head {
    grid-template-columns: 1fr;
  }

  .analytics-widget-context {
    display: grid;
  }

  .selected-ip-head {
    display: grid;
  }

  .selected-ip-pages {
    grid-template-columns: 1fr;
  }

  .token-card {
    display: grid;
  }

  .hero {
    min-height: 72vh;
    background:
      linear-gradient(180deg, rgba(9, 25, 32, 0.88), rgba(9, 25, 32, 0.55)),
      url("/assets/optimized/hero-dashboard-900.webp") center / cover no-repeat;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-brand {
    display: none;
  }

  .side-item {
    white-space: nowrap;
  }

  .app-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-topline-actions,
  .dashboard-header-stats {
    width: 100%;
  }

  .app-topline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-header-stats {
    min-width: 0;
  }

  .top-gauge-shell {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .top-gauge-metrics {
    grid-column: 1 / -1;
  }

	  .metric-grid,
	  .upload-grid,
	  .form-grid-3,
	  .asset-list,
	  .account-user-form,
	  .permission-row,
	  .account-alert-row,
	  .account-alert-columns,
	  .alert-grid,
	  .settings-dialog-body,
	  .settings-tabs,
	  .conversation-tabs,
		  .site-directory-card,
		  .schedule-row,
		  .delivery-behavior-fields,
		  .route-failover-grid,
		  .style-settings-grid,
	  .style-copy-grid,
	  .style-color-grid,
	  .widget-style-preview,
	  .visitor-session-strip {
	    grid-template-columns: 1fr;
	  }

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

  .visitor-session-return {
    white-space: normal;
  }

  .settings-overlay {
    align-items: stretch;
    padding: 8px;
  }

  .settings-dialog {
    max-height: calc(100dvh - 16px);
  }

  .settings-dialog-head,
  .widget-card-main,
  .account-device-card,
  .account-user-head,
  .sip-trunk-card-head,
  .sip-trunk-empty {
    flex-direction: column;
  }

  .widget-card-actions,
  .sip-trunk-actions {
    justify-content: flex-start;
  }

  .call-hud-top {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .call-hud-actions {
    justify-content: stretch;
  }

  .call-control-button {
    flex: 1 1 0;
    padding-inline: 9px;
  }

  .call-video-stage video:first-of-type {
    min-height: 230px;
    max-height: 46vh;
  }

  .call-video-stage video:nth-of-type(2) {
    width: min(34%, 120px);
  }

  .media-stage.expanded {
    margin-inline: 0;
  }

  .media-stage.expanded .call-video-stage video:first-of-type {
    min-height: min(54dvh, 520px);
    max-height: 58dvh;
  }

  .message {
    max-width: 92%;
  }
}

.hero-logo {
  width: min(240px, 54vw);
  height: auto;
  margin: 0 0 20px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.2));
}

.hero-trust {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.product-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(420px, 1.3fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(42px, 6vw, 78px) clamp(20px, 6vw, 88px);
  background: #f7faf9;
  border-bottom: 1px solid var(--line);
}

.strip-copy h2,
.install-band h2,
.admin-hero h1 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.strip-copy h2,
.install-band h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.live-preview {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #cfd9e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.preview-rail {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background: #17202a;
  color: #fff;
}

.preview-rail small {
  color: rgba(255, 255, 255, 0.68);
}

.active-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #20c997;
  box-shadow: 0 0 0 7px rgba(32, 201, 151, 0.18);
}

.preview-main {
  min-width: 0;
  padding: 16px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.preview-toolbar b {
  color: var(--teal);
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  padding-top: 14px;
}

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

.preview-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.preview-list button.selected {
  border-color: var(--teal);
  background: #edf7f5;
}

.preview-list small {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.preview-convo {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  gap: 10px;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafb;
}

.bubble {
  max-width: 78%;
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.35;
}

.bubble.agent {
  align-self: flex-end;
  background: var(--teal);
  color: #fff;
}

.bubble.visitor {
  border: 1px solid var(--line);
  background: #fff;
}

.preview-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.preview-actions span {
  flex: 1;
  border-radius: 8px;
  padding: 8px;
  background: #fff1d6;
  color: #68460f;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.install-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  padding: clamp(54px, 7vw, 92px) clamp(20px, 6vw, 88px);
  background: #fff;
}

.install-band p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.code-sample {
  margin: 0;
  min-height: 120px;
}

.mobile-download-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
  padding: clamp(54px, 7vw, 92px) clamp(20px, 6vw, 88px);
  background: #17202a;
  color: #fff;
}

.mobile-download-copy {
  max-width: 680px;
}

.mobile-download-copy .eyebrow {
  color: var(--amber);
}

.mobile-download-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.mobile-download-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.65;
}

.mobile-download-copy .check-list li {
  color: rgba(255, 255, 255, 0.9);
}

.mobile-download-copy .button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-download-copy .button-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-app-card {
  display: grid;
  place-items: center;
  min-height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.18), rgba(15, 118, 110, 0.3)),
    rgba(255, 255, 255, 0.06);
}

.app-phone {
  width: min(320px, 84vw);
  min-height: 410px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 10px solid #0d151d;
  border-radius: 36px;
  padding: 18px;
  background: #f6f8f5;
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.app-phone-top {
  width: 72px;
  height: 6px;
  justify-self: center;
  border-radius: 999px;
  background: #c5ced7;
}

.app-alert-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.app-alert-card span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.app-alert-card strong {
  font-size: 22px;
  line-height: 1.05;
}

.app-alert-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

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

.app-alert-actions b {
  border-radius: 8px;
  padding: 10px;
  background: var(--teal);
  color: #fff;
  text-align: center;
  font-size: 13px;
}

.app-alert-actions b + b {
  background: #fff1d6;
  color: #68460f;
}

.app-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.app-status-row span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #20c997;
  box-shadow: 0 0 0 5px rgba(32, 201, 151, 0.16);
}

.app-status-row p {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.admin-console {
  background: #f5f7f2;
  display: grid;
  gap: 18px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.08);
}

.admin-hero h1 {
  max-width: 860px;
  font-size: clamp(32px, 4vw, 54px);
}

.admin-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.admin-settings {
  display: grid;
  gap: 9px;
  align-content: start;
  border-radius: 8px;
  padding: 16px;
  background: #17202a;
  color: #fff;
}

.admin-settings span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
}

.admin-section-nav {
  position: sticky;
  top: 72px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid rgba(220, 228, 234, 0.95);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.08);
  backdrop-filter: blur(16px);
}

.admin-section-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.admin-section-nav a:hover,
.admin-section-nav a:focus,
.admin-section-nav a.active {
  border-color: rgba(15, 118, 110, 0.24);
  background: #edf8f7;
  color: var(--teal-dark);
  outline: none;
}

.admin-list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.admin-list-controls label {
  min-width: 180px;
}

.admin-list-controls select,
.admin-list-controls input {
  min-height: 36px;
}

.admin-list-controls button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.admin-list-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}

.admin-list-controls span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-area {
  display: grid;
  gap: 16px;
  scroll-margin-top: 150px;
  padding-top: 10px;
}

.admin-console.sectioned .admin-area {
  display: none;
}

.admin-console.sectioned .admin-area.active {
  display: grid;
}

.admin-area + .admin-area {
  border-top: 1px solid rgba(220, 228, 234, 0.92);
  padding-top: 26px;
}

.admin-area:target .admin-area-heading {
  border-left-color: var(--teal);
  background: #f6fbfa;
}

.admin-area-heading {
  border-left: 4px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-area-heading h2,
.admin-subheading h3 {
  margin: 0;
}

.admin-area-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.admin-area-heading p:not(.eyebrow),
.admin-subheading p {
  max-width: 780px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.admin-area .metric-grid,
.admin-area .admin-grid {
  margin-bottom: 0;
}

.admin-overview-metrics,
.admin-security-metrics {
  align-items: stretch;
}

.admin-overview-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: stretch;
}

.admin-overview-board .admin-overview-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-mailbox-snapshot {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 180px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 0.92)),
    #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.08);
}

.admin-mailbox-snapshot:hover {
  border-color: rgba(15, 118, 110, 0.48);
  transform: translateY(-1px);
}

.admin-mailbox-icon {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.admin-mailbox-snapshot > strong {
  font-size: 22px;
}

.admin-mailbox-snapshot > em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.admin-mailbox-snapshot > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: baseline;
  margin-top: 6px;
}

.admin-mailbox-snapshot b {
  font-size: 30px;
}

.admin-mailbox-snapshot span,
.admin-mailbox-snapshot small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-global-stats {
  display: grid;
  gap: 12px;
}

.admin-subheading {
  display: grid;
  gap: 2px;
}

.admin-subheading h3 {
  font-size: 18px;
}

.admin-compact-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-stat-card,
.admin-empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.admin-stat-card {
  display: grid;
  gap: 8px;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stat-card strong {
  font-size: 24px;
}

.admin-stat-card small {
  font-weight: 800;
  line-height: 1.45;
}

.admin-empty-state {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
}

.template-editor-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(340px, 0.78fr) minmax(340px, 0.86fr);
  gap: 16px;
  align-items: start;
}

.template-list,
.template-editor,
.template-preview {
  display: grid;
  gap: 10px;
}

.template-list {
  max-height: min(620px, 72vh);
  overflow: auto;
}

.template-create-form,
.template-list-items,
.template-group {
  display: grid;
  gap: 10px;
}

.template-create-form {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: #f6fbfa;
}

.template-create-form h3 {
  margin: 0;
}

.template-create-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.template-group {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.template-group-heading {
  display: grid;
  gap: 3px;
}

.template-group-heading strong {
  font-size: 13px;
  text-transform: uppercase;
}

.template-group-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.template-list-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
  color: var(--ink);
  text-decoration: none;
}

.template-list-item.active {
  border-color: var(--teal);
  background: #edf7f5;
  box-shadow: inset 4px 0 0 var(--teal);
}

.template-list-item span,
.template-preview-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.template-editor textarea {
  min-height: 120px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.template-variable-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-variable-row code {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
  background: #fff;
  color: var(--muted);
}

.template-preview-head {
  display: grid;
  gap: 4px;
}

.template-preview iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-email-shell {
  display: grid;
  gap: 14px;
}

.admin-email-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: #f4fbfa;
}

.admin-email-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-email-toolbar .admin-email-toolbar-actions {
  display: flex;
}

.admin-email-toolbar > div {
  display: grid;
  gap: 3px;
}

.admin-email-toolbar strong {
  font-size: 18px;
}

.admin-email-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-email-mailboxes {
  display: grid;
  gap: 8px;
}

.admin-email-mailboxes a,
.admin-email-mailboxes span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.admin-email-mailboxes a strong {
  color: var(--ink);
  font-size: 13px;
}

.admin-email-mailboxes a em {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 6px;
  background: #fef3c7;
  color: #92400e;
  font-style: normal;
}

.admin-email-mailboxes a.active {
  border-color: rgba(15, 118, 110, 0.28);
  background: #edf8f7;
  box-shadow: inset 4px 0 0 var(--teal);
  color: var(--teal-dark);
}

.admin-email-mailboxes a.active strong {
  color: var(--teal-dark);
}

.admin-email-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.22fr) minmax(280px, 0.34fr) minmax(420px, 0.74fr);
  gap: 16px;
  align-items: start;
}

.admin-email-folder-pane,
.admin-email-list {
  display: grid;
  gap: 8px;
}

.admin-email-folder-pane {
  position: sticky;
  top: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.admin-email-folder-pane > strong,
.admin-email-list-head strong {
  font-size: 14px;
}

.admin-email-list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.admin-email-list-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-email-list {
  max-height: min(760px, 78vh);
  overflow: auto;
  padding-right: 2px;
}

.admin-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.05);
}

.admin-email-row:hover,
.admin-email-row.active {
  border-color: rgba(15, 118, 110, 0.34);
  background: #f2faf8;
}

.admin-email-row.unread {
  box-shadow: inset 4px 0 0 var(--teal), 0 8px 24px rgba(23, 32, 42, 0.05);
}

.admin-email-row div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-email-row strong,
.admin-email-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-email-row span,
.admin-email-row time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-email-relation {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  background: #e8f4f2;
  color: var(--teal-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.admin-email-reader {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-email-message,
.admin-email-compose {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.admin-email-compose.is-hidden {
  display: none;
}

.admin-email-compose-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-email-compose-head h3 {
  margin: 0;
}

.admin-email-compose-head span,
.admin-email-compose-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-email-compose-head-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
  max-width: 360px;
}

.admin-email-message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-email-message-head div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-email-message-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.admin-email-message-head span,
.admin-email-message-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.admin-email-message-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-email-message-head b {
  border-radius: 999px;
  padding: 5px 8px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
}

.admin-email-message iframe {
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-email-message-empty {
  min-height: 260px;
  align-content: center;
  color: var(--muted);
}

.admin-email-relation-card {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 11px 12px;
  background: #f6fbfa;
}

.admin-email-relation-card span,
.admin-email-relation-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-email-relation-card.muted {
  background: #fbfcfd;
  color: var(--muted);
  font-weight: 850;
}

.admin-email-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-email-attachments span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-email-compose textarea {
  width: 100%;
  min-height: 160px;
  border: 1px solid #cfd9e1;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.admin-email-compose textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.15);
  border-color: var(--teal);
}

.admin-email-composer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #f8fbfb;
}

.admin-email-composer-toolbar button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.admin-email-rich-editor {
  min-height: 360px;
  max-height: 72vh;
  overflow: auto;
  border: 1px solid #cfd9e1;
  border-radius: 8px;
  padding: 0;
  background: #fff;
}

.admin-email-rich-editor:focus {
  outline: 3px solid rgba(15, 118, 110, 0.15);
  border-color: var(--teal);
}

.wp-plugin-page .site-header {
  background: rgba(255, 255, 255, 0.94);
}

.wp-hero,
.wp-download-band,
.wp-feature-band,
.wp-steps,
.wp-manual-install {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.wp-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 44px 0 28px;
}

.wp-hero-copy {
  display: grid;
  gap: 18px;
}

.wp-hero-copy h1,
.wp-download-band h2,
.wp-feature-copy h2,
.wp-steps h2 {
  margin: 0;
  color: var(--ink);
}

.wp-hero-copy h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
}

.wp-hero-copy p,
.wp-download-band p,
.wp-feature-copy p,
.wp-step-grid p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.wp-hero > img,
.wp-feature-band > img,
.wp-wide-image {
  width: 100%;
  border: 1px solid rgba(207, 217, 225, 0.9);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 42, 0.16);
}

.wp-download-band,
.wp-feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 54px 0;
}

.wp-feature-band-reverse .wp-feature-copy {
  order: 2;
}

.wp-download-card {
  display: grid;
  gap: 12px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 240px;
  padding: 24px;
  background: #fff;
}

.wp-download-card img {
  width: 136px;
  height: auto;
}

.wp-download-card strong {
  font-size: 24px;
}

.wp-download-card span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.wp-steps {
  display: grid;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 54px 0;
}

.wp-manual-install {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 54px 0;
}

.wp-manual-install .code-sample {
  margin: 0;
}

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

.wp-note-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.wp-note-grid strong {
  display: block;
  margin-bottom: 8px;
}

.wp-note-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

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

.wp-step-grid article {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfd;
}

.wp-step-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 950;
}

.centered-actions {
  justify-content: center;
}

.seo-hero,
.simple-hero,
.seo-feature-grid,
.seo-two-column,
.pricing-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 34px;
  align-items: center;
  min-height: calc(92vh - 70px);
  padding: 48px 0 34px;
}

.seo-hero-copy {
  display: grid;
  gap: 18px;
}

.seo-hero h1,
.simple-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 6.8vw, 82px);
  line-height: 0.96;
}

.seo-hero p,
.simple-hero p,
.seo-feature-grid p,
.seo-two-column p,
.pricing-card p:not(.eyebrow),
.pricing-card li {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.seo-hero img {
  width: 100%;
  border: 1px solid rgba(207, 217, 225, 0.9);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 42, 0.16);
}

.seo-feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 54px 0;
}

.seo-feature-grid article,
.pricing-card,
.seo-two-column > div {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.seo-feature-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.seo-feature-grid h2,
.seo-two-column h2,
.pricing-card h2 {
  margin: 0;
  color: var(--ink);
}

.seo-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 54px 0;
}

.simple-hero {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 72px 0 56px;
  text-align: center;
}

.simple-hero p {
  max-width: 820px;
}

.pricing-hero {
  padding-bottom: 34px;
}

.pricing-product-art {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
  padding: 0 0 34px;
}

.pricing-art-main,
.pricing-art-stack article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.pricing-art-main {
  position: relative;
  min-height: 430px;
}

.pricing-art-main img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
}

.pricing-art-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(13, 24, 32, 0.82);
  color: #fff;
  backdrop-filter: blur(12px);
}

.pricing-art-overlay strong,
.pricing-art-stack strong {
  display: block;
  color: inherit;
  font-size: 18px;
  line-height: 1.2;
}

.pricing-art-overlay p,
.pricing-art-stack p {
  margin: 7px 0 0;
  color: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.pricing-art-stack {
  display: grid;
  gap: 12px;
}

.pricing-art-stack article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  color: var(--ink);
}

.pricing-art-stack p {
  color: var(--muted);
}

.pricing-art-highlight {
  border-color: rgba(15, 118, 110, 0.42) !important;
  background: #f1fbf8 !important;
}

/* Pricing feature icons — backed by PNGs in /assets/icons/ (see imagestouse).
   Each .pricing-icon-* uses a real illustration; the wrapper provides the
   tinted card. ::before/::after are no longer used to draw the glyph. */
.pricing-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 6px 18px -8px rgba(15, 118, 110, 0.55);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 42px 42px;
}

.pricing-icon-call::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("/assets/icons/telephone.png") center / 42px 42px no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.pricing-icon-visitor::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("/assets/icons/insights.png") center / 42px 42px no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.pricing-icon-sip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("/assets/icons/telephone.png") center / 42px 42px no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transform: rotate(-12deg);
}

.pricing-icon-app::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("/assets/icons/announcement.png") center / 42px 42px no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.pricing-icon-widget::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("/assets/icons/widget-image.png") center / 42px 42px no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

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

.pricing-card strong {
  color: var(--teal);
  font-size: 34px;
  line-height: 1;
}

.pricing-card-featured {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 20px 48px rgba(15, 118, 110, 0.12);
}

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

.pricing-tier-list div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.pricing-tier-list span,
.pricing-tier-list b {
  color: var(--ink);
  font-weight: 900;
}

.pricing-tier-list small {
  color: var(--muted);
  font-weight: 800;
}

.pricing-save-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  border: 1px solid rgba(21, 94, 117, 0.22);
  border-radius: 8px;
  padding: 10px 14px;
  background: #eef8f8;
  color: #155e75;
  font-size: 14px;
  font-weight: 900;
}

.pricing-annual-price {
  display: block;
  margin: -8px 0 8px;
  color: #155e75;
  font-size: 13px;
  font-weight: 900;
}

.pricing-annual-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto 28px;
  border: 1px solid rgba(21, 94, 117, 0.16);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(236, 253, 245, 0.92)),
    #f8fbfd;
}

.pricing-annual-band h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.pricing-annual-band p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.pricing-annual-grid article {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.pricing-annual-grid span,
.pricing-annual-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pricing-annual-grid strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 22px;
}

.dashboard-focus-mode .app-shell {
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.dashboard-focus-mode .app-sidebar,
.dashboard-focus-mode .site-header,
.dashboard-focus-mode .app-topline #newWidgetButton {
  display: none;
}

.dashboard-focus-mode .app-main {
  padding: 14px;
}

.dashboard-focus-mode [data-dashboard-page="visitors"] .live-grid {
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
}

.dashboard-mobile-app {
  background: #f6f8f5;
}

.dashboard-mobile-app .site-header,
.dashboard-mobile-app .app-sidebar,
.dashboard-mobile-app .app-topline,
.dashboard-mobile-app .dashboard-call-tray,
.dashboard-mobile-app [data-dashboard-page]:not([data-dashboard-page="visitors"]) {
  display: none !important;
}

.dashboard-mobile-app .app-shell {
  display: block;
  min-height: 100dvh;
}

.dashboard-mobile-app .app-main {
  min-height: 100dvh;
  padding: 0;
}

.dashboard-mobile-app [data-dashboard-page="visitors"] {
  min-height: 100dvh;
}

.dashboard-mobile-app [data-dashboard-page="visitors"] .live-grid {
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 100dvh;
  margin: 0;
}

.dashboard-mobile-app [data-dashboard-page="visitors"] .panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-mobile-app .visitor-list {
  padding-bottom: 18px;
}

.dashboard-mobile-app .visitor-card {
  background: #fff;
}

.dashboard-mobile-app .visitor-site-header {
  border-color: #1f2933;
  background: #26313b;
  color: #fff;
}

.dashboard-mobile-app .visitor-site-header small {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-mobile-app .conversation-panel {
  min-height: 100dvh;
}

.dashboard-mobile-app .visitor-session-strip {
  grid-template-columns: 1fr;
  margin: 0 0 10px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.dashboard-mobile-app .visitor-session-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-mobile-app .visitor-session-return {
  white-space: normal;
}

.dashboard-mobile-app .message-list {
  min-height: 42dvh;
  max-height: 52dvh;
}

.dashboard-mobile-app .conversation-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-mobile-app .voice-message-list,
.dashboard-mobile-app .visitor-activity-list {
  max-height: 56dvh;
}

.dashboard-mobile-app.dashboard-conversation-open [data-dashboard-page="visitors"] .live-grid > .panel:first-child {
  display: none;
}

.dashboard-mobile-app:not(.dashboard-conversation-open) [data-dashboard-page="visitors"] .conversation-panel {
  display: none;
}

.admin-page .metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-page .site-header .nav-link[href="/#product"],
.admin-page .site-header .nav-link[href="/#calls"],
.admin-page .site-header .nav-link[href="/#mobile-app"],
.admin-page .site-header .nav-link[href="/#install"] {
  display: none;
}

@media (max-width: 1020px) {
  .product-strip,
  .install-band,
  .mobile-download-band,
  .seo-hero,
  .pricing-product-art,
  .seo-feature-grid,
  .seo-two-column,
  .pricing-grid,
  .admin-hero,
  .wp-hero,
  .wp-download-band,
  .wp-feature-band,
  .wp-note-grid,
  .template-editor-grid,
  .admin-overview-board,
  .admin-email-grid,
  .dashboard-focus-mode [data-dashboard-page="visitors"] .live-grid {
    grid-template-columns: 1fr;
  }

  .wp-hero {
    min-height: auto;
  }

  .seo-hero {
    min-height: auto;
  }

  .wp-feature-band-reverse .wp-feature-copy {
    order: 0;
  }

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

  .live-preview,
  .preview-grid {
    grid-template-columns: 1fr;
  }

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

  .template-list {
    max-height: none;
  }

  .admin-email-list {
    max-height: 360px;
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-nav .nav-link,
  .site-nav .button {
    flex: 0 0 auto;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(9, 25, 32, 0.9), rgba(9, 25, 32, 0.55)),
      url("/assets/optimized/hero-dashboard-900.webp") center / cover no-repeat;
  }

  .product-strip {
    padding-top: 36px;
  }

  .admin-page .metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-nav {
    top: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .admin-section-nav a {
    flex: 0 0 auto;
  }

  .admin-area {
    scroll-margin-top: 84px;
  }

  .admin-area-heading {
    padding: 10px;
  }

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

  .admin-email-toolbar,
  .admin-email-message-head,
  .admin-email-compose-head,
  .admin-email-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-email-toolbar {
    display: grid;
  }

  .admin-email-message-head {
    display: grid;
  }

  .admin-email-compose-head {
    display: grid;
  }

  .admin-email-compose-head-actions {
    justify-items: start;
    max-width: none;
  }

  .admin-list-controls label,
  .admin-list-controls button,
  .admin-list-controls span {
    flex: 1 1 100%;
  }

  .admin-email-row strong,
  .admin-email-row span {
    white-space: normal;
  }

  .admin-email-message iframe {
    min-height: 360px;
  }

  .wp-hero,
  .wp-download-band,
  .wp-feature-band,
  .wp-steps,
  .wp-manual-install,
  .mobile-download-band,
  .pricing-product-art,
  .seo-hero,
  .simple-hero,
  .seo-feature-grid,
  .seo-two-column,
  .pricing-grid {
    width: min(100% - 24px, 1180px);
  }

  .wp-step-grid {
    grid-template-columns: 1fr;
  }

  .pricing-art-main,
  .pricing-art-main img {
    min-height: 340px;
  }

  .pricing-art-overlay {
    position: static;
    margin: -78px 12px 12px;
  }
}

/* ===========================================================================
   Pricing page additions — 2026-05-18
   - .pricing-tagline : muted single-line tier description under the price
   - .pricing-card-cta : per-card button anchored to the bottom of each tier
   - .check-list li.muted : grayed-out "not included" line item
   - .pricing-compare : side-by-side feature/plan matrix
   - .pricing-faq    : two-column FAQ grid below the matrix
   =========================================================================== */
.pricing-tagline {
  margin: 6px 0 18px;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card .check-list {
  flex: 1 1 auto;
}

.pricing-card-cta {
  align-self: stretch;
  margin-top: 22px;
  justify-content: center;
  text-align: center;
}

.check-list li.muted {
  color: #94a3b8;
  font-style: italic;
}
.check-list li.muted::before {
  filter: grayscale(1) opacity(0.55);
}

.pricing-compare {
  margin-top: 64px;
  padding: 0 24px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-compare h2 {
  font-size: 26px;
  margin: 0 0 22px;
  color: #0f172a;
  text-align: center;
}

.pricing-compare-scroll {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: #fff;
  box-shadow: 0 12px 32px -22px rgba(15, 118, 110, 0.35);
}

.pricing-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}

.pricing-compare-table th,
.pricing-compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eef2f1;
}

.pricing-compare-table thead th {
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12.5px;
}

.pricing-compare-table thead th:first-child {
  background: #134e4a;
}

.pricing-compare-table tbody th {
  font-weight: 600;
  color: #0f172a;
  background: #f8fafa;
  width: 32%;
}

.pricing-compare-table td {
  font-weight: 600;
  color: #0f766e;
}

.pricing-compare-table td.muted {
  color: #94a3b8;
  font-weight: 500;
}

.pricing-compare-table tbody tr:last-child th,
.pricing-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-faq {
  margin: 64px auto 80px;
  padding: 0 24px;
  max-width: 1180px;
}

.pricing-faq h2 {
  font-size: 26px;
  margin: 0 0 22px;
  color: #0f172a;
  text-align: center;
}

.pricing-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.pricing-faq-grid article {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 8px 22px -18px rgba(15, 118, 110, 0.4);
}

.pricing-faq-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0f766e;
  line-height: 1.3;
}

.pricing-faq-grid p {
  margin: 0;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .pricing-compare,
  .pricing-faq {
    padding: 0 14px;
  }
  .pricing-compare-table {
    font-size: 13.5px;
  }
}

.story-page {
  background: #f6f8f7;
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 32px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 44px) 48px;
}

.story-hero-compact {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  text-align: center;
}

.story-hero-copy h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}

.story-hero-copy p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #3c4b5e;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.story-hero-compact .story-hero-copy p,
.story-hero-compact .hero-actions {
  margin-left: auto;
  margin-right: auto;
}

.story-hero-image,
.story-split img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.voice-path-diagram {
  display: grid;
  gap: 14px;
}

.voice-path-diagram article,
.sales-alert-card,
.roi-band > div,
.story-index-card,
.story-card-grid article,
.story-article article {
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(23, 32, 42, 0.08);
}

.voice-path-diagram article,
.sales-alert-card {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.voice-path-diagram img,
.sales-alert-card img {
  width: 56px;
  height: 56px;
}

.voice-path-diagram strong,
.sales-alert-card strong {
  font-size: 22px;
  line-height: 1.2;
}

.voice-path-diagram span,
.sales-alert-card p,
.sales-alert-card span {
  color: var(--muted);
  font-weight: 800;
}

.diagram-line {
  display: grid;
  min-height: 56px;
  place-items: center;
  border-radius: 8px;
  background: #26313b;
  color: #fff;
  font-weight: 900;
}

.diagram-cloud {
  background:
    radial-gradient(circle at 18% 12%, rgba(15, 118, 110, 0.16), transparent 34%),
    #fff;
}

.story-card-grid,
.story-index-grid,
.story-article {
  display: grid;
  max-width: 1180px;
  margin: 34px auto;
  padding: 0 clamp(18px, 4vw, 44px);
  gap: 16px;
}

.story-card-grid,
.story-index-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-card-grid article,
.story-index-card,
.story-article article {
  padding: 22px;
}

.story-index-card {
  color: inherit;
  text-decoration: none;
}

.story-card-grid span,
.story-index-card span,
.roi-band span {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.story-card-grid h2,
.story-index-card h2,
.story-article h2 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.18;
}

.story-card-grid p,
.story-index-card p,
.story-article p {
  margin: 0;
  color: #405064;
  line-height: 1.55;
}

.story-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 60px auto;
  padding: 0 clamp(18px, 4vw, 44px);
}

.story-split h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.story-split p:not(.eyebrow) {
  color: #405064;
  font-size: 17px;
  line-height: 1.6;
}

.roi-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 28px auto 48px;
  padding: 0 clamp(18px, 4vw, 44px);
}

.roi-band > div {
  padding: 26px;
}

.roi-band strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.roi-band p {
  margin: 0;
  color: #405064;
  line-height: 1.55;
}

.story-article {
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
}

.story-article article {
  padding: clamp(24px, 4vw, 40px);
}

@media (max-width: 960px) {
  .story-hero,
  .story-split,
  .roi-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .mobile-menu-toggle {
    display: grid;
    gap: 4px;
    order: 3;
    margin-left: 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    display: none;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav-open .site-nav {
    display: flex;
  }

  .site-nav .nav-link {
    padding: 12px;
  }

  .site-actions {
    order: 2;
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 0;
  }

  .site-actions .nav-link {
    padding: 8px 6px;
    white-space: nowrap;
  }

  .site-actions .button {
    min-height: 38px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .brand span {
    font-size: 20px;
  }

  .brand {
    order: 1;
    margin-right: auto;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .story-card-grid,
  .story-index-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================================
   Blog index sprucing — 2026-05-19
   Card grid with brand-share thumbnails. Hero gets a real image companion.
   =========================================================================== */
.blog-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.blog-index-hero-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 28px 60px -32px rgba(15, 118, 110, 0.55);
  display: block;
}

@media (max-width: 920px) {
  .pricing-annual-band {
    grid-template-columns: 1fr;
  }

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

  .blog-index-hero {
    grid-template-columns: 1fr;
  }
  .blog-index-hero-image {
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .pricing-annual-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto 80px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: #fff;
  box-shadow: 0 18px 42px -28px rgba(15, 118, 110, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -22px rgba(15, 118, 110, 0.55);
  border-color: rgba(15, 118, 110, 0.42);
}

.blog-card-thumb {
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.blog-card-eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0f766e;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 2px 0 4px;
  font-size: 19px;
  line-height: 1.3;
  color: #0f172a;
}

.blog-card p {
  margin: 0;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.55;
}

.blog-card-read {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f766e;
  letter-spacing: 0.01em;
}

.blog-card .blog-card-read span {
  transition: transform 0.18s ease;
  display: inline-block;
}

.blog-card:hover .blog-card-read span {
  transform: translateX(4px);
}

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

.contact-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.contact-card.active,
.contact-card:hover {
  border-color: var(--accent);
  background: #eefbf8;
}

.contact-card strong {
  color: var(--ink);
}

.contact-card span,
.contact-card small {
  color: var(--muted);
}

.contact-detail {
  display: grid;
  gap: 16px;
}

.contact-editor,
.contact-tool-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.contact-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.contact-editor-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.contact-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contact-inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.contact-tool-panel .contact-inline-form {
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) auto;
}

.contact-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.contact-summary-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-muted);
  padding: 12px;
}

.contact-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-summary-grid strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.contact-message-list {
  max-height: 420px;
  overflow: auto;
}

@media (max-width: 760px) {
  .contact-inline-form,
  .contact-tool-panel .contact-inline-form {
    grid-template-columns: 1fr;
  }
}

.account-recording-card {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 14px;
  align-items: start;
}

.account-recording-card span,
.account-recording-card small {
  display: block;
  color: var(--muted);
}

.account-recording-card strong {
  display: block;
  margin: 4px 0;
}

.account-recording-card form,
.inline-admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
}

.account-recording-card label,
.inline-admin-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-recording-card label:has(input[type="checkbox"]),
.inline-admin-form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.admin-row-disclosure {
  margin-top: 8px;
}

.admin-row-disclosure summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.inline-help {
  color: var(--muted);
  margin: 10px 0 0;
}

@media (max-width: 760px) {
  .account-recording-card {
    grid-template-columns: 1fr;
  }
}
