:root {
  --background: #ffffff;
  --foreground: #222220;
  --foreground-strong: #000000;
  --primary: #124bc4;
  --primary-hover: #133c9a;
  --primary-foreground: #fefefd;
  --secondary: #e2ecf8;
  --muted: #ddd9d4;
  --muted-foreground: #837972;
  --border: #d7d2cc;
  --ring: #124bc4;
  --radius: 0.45rem;
  --radius-sm: var(--radius);
  --radius-lg: calc(var(--radius) * 1.22);
  --radius-xl: calc(var(--radius) * 1.67);
  --content-side-padding: 1.25rem;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --auth-max: 22.5rem;
  --bg-surface: #faf7f5;
  --bg-pattern-color: #d7d2cc;
  --sidebar-bg: #ffffff;
  --sidebar-fg: #555555;
  --panel-bg: #ffffff;
  --panel-fg: #222220;
  --bg-wash: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-surface) 20%, transparent),
    color-mix(in srgb, var(--bg-surface) 85%, transparent)
  );
  --bg-layers:
    var(--bg-wash),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--bg-pattern-color) 18%, transparent) 11px,
      color-mix(in srgb, var(--bg-pattern-color) 18%, transparent) 12px
    );
  --bg-layers-size: auto, auto;
  --bg-layers-repeat: no-repeat, repeat;
}

html[data-bg-pattern="none"] {
  --bg-layers: none;
  --bg-layers-size: auto;
  --bg-layers-repeat: no-repeat;
}

html[data-bg-pattern="diagonal"] {
  --bg-layers:
    var(--bg-wash),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--bg-pattern-color) 18%, transparent) 11px,
      color-mix(in srgb, var(--bg-pattern-color) 18%, transparent) 12px
    );
  --bg-layers-size: auto, auto;
  --bg-layers-repeat: no-repeat, repeat;
}

html[data-bg-pattern="horizontal"] {
  --bg-layers:
    var(--bg-wash),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--bg-pattern-color) 18%, transparent) 11px,
      color-mix(in srgb, var(--bg-pattern-color) 18%, transparent) 12px
    );
  --bg-layers-size: auto, auto;
  --bg-layers-repeat: no-repeat, repeat;
}

html[data-bg-pattern="vertical"] {
  --bg-layers:
    var(--bg-wash),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--bg-pattern-color) 18%, transparent) 11px,
      color-mix(in srgb, var(--bg-pattern-color) 18%, transparent) 12px
    );
  --bg-layers-size: auto, auto;
  --bg-layers-repeat: no-repeat, repeat;
}

html[data-bg-pattern="grid"] {
  --bg-layers:
    var(--bg-wash),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--bg-pattern-color) 16%, transparent) 11px,
      color-mix(in srgb, var(--bg-pattern-color) 16%, transparent) 12px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--bg-pattern-color) 16%, transparent) 11px,
      color-mix(in srgb, var(--bg-pattern-color) 16%, transparent) 12px
    );
  --bg-layers-size: auto, auto, auto;
  --bg-layers-repeat: no-repeat, repeat, repeat;
}

html[data-bg-pattern="dots"] {
  --bg-layers:
    var(--bg-wash),
    radial-gradient(
      color-mix(in srgb, var(--bg-pattern-color) 40%, transparent) 1.15px,
      transparent 1.25px
    );
  --bg-layers-size: auto, 14px 14px;
  --bg-layers-repeat: no-repeat, repeat;
}

html[data-bg-pattern="crosshatch"] {
  --bg-layers:
    var(--bg-wash),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--bg-pattern-color) 14%, transparent) 11px,
      color-mix(in srgb, var(--bg-pattern-color) 14%, transparent) 12px
    ),
    repeating-linear-gradient(
      12deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--bg-pattern-color) 14%, transparent) 11px,
      color-mix(in srgb, var(--bg-pattern-color) 14%, transparent) 12px
    );
  --bg-layers-size: auto, auto, auto;
  --bg-layers-repeat: no-repeat, repeat, repeat;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem 0 0.15rem;
  text-align: center;
  border: 0;
  background: none;
}

.site-footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4bfb7;
  background: none;
}

body:has(.chat-page) .site-footer,
body:has(.auth-layout) .site-footer,
body:has(.auth-page) .site-footer {
  display: none;
}

body:has(.auth-layout),
body:has(.auth-page) {
  background-color: var(--bg-surface);
  background-image: var(--bg-layers);
  background-size: var(--bg-layers-size);
  background-repeat: var(--bg-layers-repeat);
}

.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-page > .auth-flash-slot {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 40;
}

.auth-page > .auth-flash-slot .auth-flash {
  width: 100%;
  margin: 0;
  flex-shrink: 0;
}

.auth-page > .auth-flash-slot > .auth-flash.is-visible + .auth-flash.is-visible {
  border-top: 1px solid color-mix(in srgb, var(--announcement-fg, #fff) 22%, transparent);
}

.announcement-slot > .auth-flash.is-visible + .auth-flash.is-visible,
.announcement-slot > .announcement-banner + .auth-flash.is-visible,
.announcement-slot > .auth-flash.is-visible + .announcement-banner {
  border-top: 1px solid color-mix(in srgb, var(--announcement-fg, #fff) 22%, transparent);
}

.auth-page > .auth-flash-slot:not(:has(.auth-flash.is-visible)) {
  display: none;
}

.auth-layout {
  flex: 1 1 auto;
  min-height: 0;
  background-color: var(--bg-surface);
  background-image: var(--bg-layers);
  background-size: var(--bg-layers-size);
  background-repeat: var(--bg-layers-repeat);
  color: var(--foreground);
  font-family: var(--font-sans);
}

@media (min-width: 1024px) {
  .auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .auth-page > .auth-layout {
    min-height: 0;
  }

  .auth-page:not(:has(.auth-flash-slot .auth-flash.is-visible)) > .auth-layout {
    min-height: 100vh;
  }

  .auth-page:has(.auth-flash-slot .auth-flash.is-visible) > .auth-layout {
    min-height: auto;
  }
}

.auth-aside {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2.5rem;
  background-color: var(--secondary);
}

@media (min-width: 1024px) {
  .auth-aside {
    display: flex;
  }
}

.auth-form-panel {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  background: transparent;
  color: var(--foreground);
}

.auth-form-panel-body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 1.25rem;
}

@media (min-width: 640px) {
  .auth-form-panel-body {
    padding: 3rem 2rem 1.25rem;
  }
}

.auth-form-card {
  width: 100%;
  max-width: var(--auth-max);
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-form-header {
  margin-bottom: 1.35rem;
}

.auth-form-mobile-brand {
  display: block;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.app-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.app-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.app-logo--sidebar {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.35rem 0.45rem 0.55rem;
}

.app-logo--sidebar img {
  height: 3.25rem;
  width: auto;
}

.app-logo--auth-mobile {
  margin: 0 0 1.25rem;
}

.app-logo--auth-mobile img {
  height: 1.85rem;
}

.app-logo--auth-aside {
  display: flex;
  justify-content: center;
  width: min(14rem, 70%);
}

.app-logo--auth-aside img {
  width: 100%;
  height: auto;
}

.app-logo--public {
  display: flex;
  justify-content: center;
  margin: 0 auto 0.35rem;
}

.app-logo--public img {
  height: 1.75rem;
}

.app-logo--landing img {
  height: 2.1rem;
}

@media (min-width: 1024px) {
  .auth-form-mobile-brand {
    display: none;
  }
}

.auth-form-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.auth-form-subtitle {
  margin: 0.4rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.auth-form-card > .notif-form-kicker {
  margin-bottom: 1.25rem;
  font-size: 2rem;
  text-align: left;
  border-bottom-color: transparent;
}

.auth-form-card > .notif-form-kicker + .auth-form-subtitle {
  margin: -0.65rem 0 1.25rem;
  text-align: left;
}

.auth-form .profile-agency-toggle {
  margin: 0.15rem 0;
}

.auth-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.auth-button-outline {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.85rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background-color 120ms ease, opacity 120ms ease;
}

.auth-button-outline:hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary) 70%, var(--panel-bg));
}

.auth-button-outline:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.2rem 0;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.auth-field-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-field-block[hidden] {
  display: none;
}

.auth-field-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.security-field-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.security-textfield {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-layout .security-textfield-input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--panel-bg);
  color: var(--panel-fg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.auth-layout .security-textfield-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent);
}

.auth-layout .security-textfield-input::placeholder {
  color: var(--muted-foreground);
  letter-spacing: 0;
}

.auth-password-textfield .security-textfield-input {
  padding-right: 2.6rem;
}

.auth-password-toggle {
  position: absolute;
  right: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: var(--primary);
  background: var(--secondary);
}

.auth-password-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

.auth-password-icon-hide.hidden,
.auth-password-icon-show.hidden {
  display: none;
}

.auth-forgot-link {
  margin: -0.15rem 0 0.15rem;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
}

.auth-forgot-link a,
.auth-signin-link a,
.auth-legal-notice a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.auth-forgot-link a:hover,
.auth-signin-link a:hover,
.auth-legal-notice a:hover {
  color: var(--primary-hover);
}

.auth-button-solid {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  margin-top: 0.15rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease, opacity 120ms ease;
}

.auth-button-solid:hover:not(:disabled) {
  background: var(--primary-hover);
}

.auth-button-solid:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-signin-link {
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--muted-foreground);
}

.auth-signin-link button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.auth-signin-link button:hover {
  color: var(--primary-hover);
}

.auth-signin-link .auth-resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: baseline;
}

.auth-signin-link .auth-resend-btn:disabled {
  color: var(--muted-foreground);
  cursor: not-allowed;
  text-decoration: none;
}

.auth-signin-link .auth-resend-btn:disabled:hover {
  color: var(--muted-foreground);
}

.auth-signin-link .auth-resend-btn.is-loading {
  text-decoration: none;
}

.auth-resend-spinner {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: auth-resend-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.auth-resend-btn:disabled .auth-resend-spinner {
  border-color: color-mix(in srgb, var(--muted-foreground) 25%, transparent);
  border-top-color: var(--muted-foreground);
}

@keyframes auth-resend-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-legal-footer {
  display: flex;
  justify-content: center;
  padding: 0 1.25rem 1.6rem;
}

@media (min-width: 640px) {
  .auth-legal-footer {
    padding: 0 2rem 1.85rem;
  }
}

.auth-legal-notice {
  margin: 0;
  max-width: var(--auth-max);
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.auth-flash {
  --announcement-bg: var(--primary);
  --announcement-fg: var(--primary-foreground);
  display: none;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 2rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 1rem;
  background: var(--announcement-bg);
  color: var(--announcement-fg);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.auth-flash.is-visible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.auth-flash[hidden] {
  display: none !important;
}

.auth-flash.dismissible-flash,
.auth-flash:has(.announcement-dismiss) {
  padding-right: 2.5rem;
}

.auth-flash a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-flash--error::before,
.auth-flash--success::before {
  display: inline-flex;
  width: fit-content;
  flex-shrink: 0;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--announcement-fg, #fff) 35%, transparent);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.08em;
  color: inherit;
}

.auth-flash--error::before {
  content: "Error";
}

.auth-flash--success::before {
  content: "Success";
}

.auth-flash.dismissible-flash::before {
  content: none;
  display: none;
}

.auth-flash.dismissible-flash.is-visible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.auth-flash.dismissible-flash .announcement-message,
.auth-flash.dismissible-flash [data-flash-message] {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: inherit;
}

.dismissible-flash-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: color-mix(in srgb, var(--announcement-fg, #fff) 80%, transparent);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 120ms ease;
}

.dismissible-flash-close:hover {
  color: var(--announcement-fg, #fff);
}

.auth-flash--error {
  --announcement-bg: #991b1b;
  --announcement-fg: #ffffff;
  border: 0;
  background: var(--announcement-bg);
  color: var(--announcement-fg);
}

.auth-flash--success,
.auth-flash--neutral {
  --announcement-bg: var(--secondary);
  --announcement-fg: #111111;
  border: 0;
  background: var(--announcement-bg);
  color: var(--announcement-fg);
}

.auth-flash--busy {
  --announcement-bg: #fef2f2;
  --announcement-fg: #991b1b;
  border: 0;
  background: var(--announcement-bg);
  color: var(--announcement-fg);
}

.auth-flash--ready {
  --announcement-bg: #ecfdf3;
  --announcement-fg: #166534;
  border: 0;
  background: var(--announcement-bg);
  color: var(--announcement-fg);
}

.auth-states-box {
  max-height: 12rem;
  overflow-y: auto;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--panel-bg);
  padding: 0.4rem;
}

.auth-state-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--panel-fg);
}

.auth-state-option:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.auth-state-option input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.auth-helper {
  margin: 0.3rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

.auth-name-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .auth-name-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-step {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-step.is-active {
  display: flex;
}

.auth-step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.auth-step-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--border);
}

.auth-step-dot.is-active {
  background: var(--primary);
}

.auth-step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-step-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.auth-step-actions .auth-button-solid {
  margin-top: 0;
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
  background: #faf7f5;
}

@media (min-width: 900px) {
  .admin-shell {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    align-items: start;
  }
}

.announcement-slot {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.announcement-slot[hidden] {
  display: none !important;
}

.announcement-slot > .announcement-banner {
  flex-shrink: 0;
  width: 100%;
}

.app-flash-slot {
  position: sticky;
  top: 0;
  z-index: 45;
}

.app-flash-slot:not(:has(.auth-flash.is-visible)) {
  display: none;
}

.app-flash-slot > .auth-flash {
  width: 100%;
  margin: 0;
  flex-shrink: 0;
}

.app-flash-slot > .auth-flash.is-visible + .auth-flash.is-visible {
  border-top: 1px solid color-mix(in srgb, var(--announcement-fg, #fff) 22%, transparent);
}

.admin-sidebar {
  border-bottom: 1px solid var(--border);
  background: var(--sidebar-bg);
  color: var(--sidebar-fg);
  overflow: visible;
}

@media (min-width: 900px) {
  .admin-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    border-bottom: 0;
    border-right: 1px solid var(--border);
    height: 100vh;
    max-height: 100vh;
    overflow-x: visible;
    overflow-y: auto;
  }
}

.admin-sidebar-inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 0.75rem;
  overflow: visible;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  overflow: visible;
}

.admin-nav-group {
  margin: 0.85rem 0 0.3rem;
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sidebar-fg) 55%, transparent);
}

.admin-nav-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.28rem;
  margin: 0.85rem 0 0.3rem;
  padding-right: 0.2rem;
}

.admin-nav-group-row .admin-nav-group {
  margin: 0;
  padding-right: 0;
  flex: 1;
  min-width: 0;
}

.admin-sidebar-nav > .admin-nav-group:first-child,
.admin-sidebar-nav > .admin-nav-group-row:first-child {
  margin-top: 0.15rem;
}

.admin-nav-group-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  line-height: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-nav-group-help svg {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  overflow: visible;
}

.admin-nav-group-help-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 62.832;
  stroke-dashoffset: 62.832;
  transform-origin: 12px 12px;
  transform: rotate(-90deg);
  animation: agency-help-ring-draw 2.4s ease-in-out infinite;
}

@keyframes agency-help-ring-draw {
  0% {
    stroke-dashoffset: 62.832;
  }
  55% {
    stroke-dashoffset: 0;
  }
  70% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 62.832;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-nav-group-help-ring {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.admin-nav-group-help:hover {
  color: #000;
}

.admin-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--sidebar-fg);
  padding: 0.38rem 0.5rem;
  text-align: left;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  cursor: pointer;
}

.nav-unread-badge,
.chat-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-unread-badge {
  margin-left: auto;
}

.nav-unread-badge[hidden],
.chat-unread-badge[hidden] {
  display: none;
}

.admin-nav-icon {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.85;
  display: inline-block;
  vertical-align: middle;
  color: currentColor;
}

.admin-nav-external-icon {
  margin-left: auto;
  width: 0.7rem;
  height: 0.7rem;
  font-size: 0.7rem;
  opacity: 0.35;
  transition: opacity 0.15s ease;
}

.admin-nav-link:hover .admin-nav-external-icon {
  opacity: 0.6;
}

.admin-nav-link:hover {
  background: color-mix(in srgb, var(--secondary) 72%, var(--sidebar-bg));
  color: var(--sidebar-fg);
}

.admin-nav-link.is-active {
  background: color-mix(in srgb, var(--secondary) 82%, var(--sidebar-bg));
  color: var(--sidebar-fg);
}

.admin-nav-link--muted {
  color: color-mix(in srgb, var(--sidebar-fg) 55%, transparent);
}

.admin-nav-link.is-disabled,
.admin-nav-link[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  color: color-mix(in srgb, var(--sidebar-fg) 62%, transparent);
}

.admin-nav-link.is-disabled:hover,
.admin-nav-link[aria-disabled="true"]:hover {
  background: transparent;
  color: color-mix(in srgb, var(--sidebar-fg) 62%, transparent);
}

.lead-modal-panel.agency-request-panel {
  position: relative;
  width: min(68rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(90vh, 52rem);
  border: 0;
  border-radius: var(--radius);
  background: #f4f6f8;
  box-shadow: 0 24px 64px rgba(34, 34, 32, 0.18);
  overflow: hidden;
}

.agency-request-panel .lead-modal-body {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  background: transparent;
}

.agency-request-features-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
}

.agency-request-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 7.75rem;
  padding: 0.9rem 0.9rem 0.8rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.agency-request-feature-title {
  margin: 0;
  color: #171717;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.25;
}

.agency-request-feature-copy {
  margin: 0.35rem 0 0;
  max-width: 15rem;
  color: color-mix(in srgb, #3f3f46 82%, transparent);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  line-height: 1.4;
}

.agency-request-feature-art {
  display: block;
  margin-top: auto;
  align-self: flex-end;
  width: min(62%, 8.5rem);
  height: auto;
  max-height: 5.5rem;
  color: var(--secondary);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.agency-request-feature-art svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: inherit;
}

.agency-request-feature-card.tone-mgmt {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 16rem;
  background: color-mix(in srgb, var(--secondary) 78%, #d9c8f0);
}

.agency-request-feature-card.tone-invite {
  grid-column: span 4;
  min-height: 7.75rem;
  background: color-mix(in srgb, var(--secondary) 55%, #f6d5df);
}

.agency-request-feature-card.tone-leads {
  grid-column: span 2;
  background: color-mix(in srgb, var(--secondary) 35%, #f7e7b8);
}

.agency-request-feature-card.tone-settings {
  grid-column: span 2;
  background: color-mix(in srgb, var(--secondary) 40%, #cfe9d6);
}

.agency-request-feature-card.tone-activity {
  grid-column: span 3;
  background: color-mix(in srgb, var(--secondary) 30%, #f4d4c2);
}

.agency-request-feature-card.tone-chat {
  grid-column: span 3;
  background: color-mix(in srgb, var(--secondary) 70%, #d5dde8);
}

.agency-request-feature-card.tone-mgmt .agency-request-feature-art {
  width: min(92%, 15rem);
  max-height: 12rem;
  align-self: center;
}

.agency-request-feature-card.tone-mgmt .agency-request-feature-copy {
  max-width: 12rem;
}

.agency-request-feature-card.tone-invite {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}

.agency-request-feature-copy-wrap {
  min-width: 0;
  flex: 1;
}

.agency-request-feature-card.tone-invite .agency-request-feature-art {
  margin-top: 0;
  margin-left: auto;
  align-self: center;
  width: min(32%, 9rem);
  max-height: 5.25rem;
}

.agency-request-feature-card.tone-activity .agency-request-feature-art,
.agency-request-feature-card.tone-chat .agency-request-feature-art {
  width: min(78%, 13rem);
  max-height: 8.5rem;
}

.agency-request-panel #agency-request-modal-error[hidden],
.agency-request-panel #agency-request-owner-btn[hidden],
.agency-request-panel #agency-request-owner-cancel[hidden] {
  display: none !important;
}

.agency-request-panel #agency-request-owner-btn,
.agency-request-panel #agency-request-owner-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  min-height: 2.65rem;
  justify-self: end;
}

@media (max-width: 720px) {
  .agency-request-panel .lead-modal-body {
    padding: 1.1rem;
  }

  .agency-request-features-grid {
    grid-template-columns: 1fr;
  }

  .agency-request-feature-card,
  .agency-request-feature-card.tone-mgmt,
  .agency-request-feature-card.tone-invite,
  .agency-request-feature-card.tone-leads,
  .agency-request-feature-card.tone-settings,
  .agency-request-feature-card.tone-activity,
  .agency-request-feature-card.tone-chat {
    grid-column: auto;
    grid-row: auto;
    min-height: 7rem;
  }

  .agency-request-feature-card.tone-invite {
    flex-direction: column;
  }

  .agency-request-feature-card.tone-invite .agency-request-feature-art {
    margin-left: 0;
    margin-top: auto;
    align-self: flex-end;
    width: min(55%, 9rem);
  }
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid color-mix(in srgb, var(--sidebar-fg) 12%, transparent);
}

.admin-nav-link--logout {
  color: color-mix(in srgb, #9f2f24 72%, var(--sidebar-fg));
}

.admin-nav-link--logout:hover {
  background: color-mix(in srgb, #9f2f24 12%, transparent);
  color: #9f2f24;
}

.agent-call-status-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding: 0.55rem 0.5rem;
  border-top: 1px solid var(--border);
}

.agent-call-status-wrap--navbar {
  margin: 0;
  padding: 0;
  border: 0;
}

.agent-call-status-wrap--navbar .call-routing-status {
  gap: 0;
  min-width: 5.75rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.agent-call-status-wrap--navbar .call-routing-status.is-unverified {
  position: relative;
  min-width: 11.5rem;
  border-color: transparent;
  white-space: nowrap;
}

.agent-call-status-wrap--navbar .call-routing-status [data-agent-call-status-label] {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.agent-call-status-wrap--navbar .call-routing-status.is-unverified:disabled {
  opacity: 1;
}

@property --pending-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.agent-call-status-wrap--navbar .call-routing-status.is-unverified::before,
.admin-call-routing-page .call-routing-status.is-unverified::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from -90deg,
    #f59e0b 0deg,
    #f59e0b var(--pending-border-angle),
    transparent var(--pending-border-angle),
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: pending-verification-border-draw 6s linear infinite;
}

@keyframes pending-verification-border-draw {
  0% {
    --pending-border-angle: 0deg;
  }
  45% {
    --pending-border-angle: 360deg;
  }
  55% {
    --pending-border-angle: 360deg;
  }
  100% {
    --pending-border-angle: 0deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-call-status-wrap--navbar .call-routing-status.is-unverified::before,
  .admin-call-routing-page .call-routing-status.is-unverified::before {
    animation: none;
    --pending-border-angle: 360deg;
  }
}

.agent-call-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: inherit;
  line-height: 0;
}

.agent-call-status-wrap--navbar [data-agent-call-status-label] {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.agent-call-status-label {
  color: var(--muted-foreground);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
}

.agent-call-status-wrap .call-routing-status {
  min-width: 3.75rem;
  margin: 0;
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding: 1.75rem 0 0.75rem;
  background-color: var(--bg-surface);
  background-image: var(--bg-layers);
  background-size: var(--bg-layers-size);
  background-repeat: var(--bg-layers-repeat);
}

.admin-main:has(> .admin-navbar) {
  padding-top: 0;
}

.admin-navbar {
  --admin-navbar-content-gap: 2.5rem;
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
  margin: 0 0 var(--admin-navbar-content-gap);
  border-bottom: 1px solid var(--primary);
  background: var(--sidebar-bg);
  color: var(--sidebar-fg);
}

.admin-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 56px;
  padding: 10px 16px;
}

@media (min-width: 640px) {
  .admin-navbar-inner {
    padding: 10px 24px;
  }
}

@media (min-width: 1024px) {
  .admin-navbar-inner {
    min-height: 60px;
    padding: 12px 32px 12px 16px;
  }

  .admin-navbar-search-field {
    padding: 0 14px 0 10px;
  }
}

.admin-navbar-center {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 768px) {
  .admin-navbar-center {
    display: block;
  }
}

.admin-navbar-command-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 36px;
}

.admin-navbar-search-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.admin-navbar-search-toggle:hover {
  background: var(--primary-hover);
}

.admin-navbar-search-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.admin-navbar-search-toggle-icon {
  flex-shrink: 0;
  opacity: 0.92;
}

.admin-navbar-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.admin-navbar-search-field:focus-within {
  border-color: var(--primary);
}

.admin-navbar-search-icon-wrap {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

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

.admin-navbar-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--foreground);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
}

.admin-navbar-search-input::placeholder {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #837972;
}

.admin-navbar-search-input:focus {
  outline: none;
}

.admin-navbar-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  max-height: 18rem;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  color: var(--foreground);
}

.admin-navbar-search-results[hidden] {
  display: none;
}

.admin-navbar-search-empty {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.4;
}

.admin-navbar-search-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.admin-navbar-search-item:hover,
.admin-navbar-search-item.is-active {
  background: var(--secondary);
}

.admin-navbar-search-item-label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--foreground);
}

.admin-navbar-search-item-path {
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.3;
}

.admin-navbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: auto;
  min-width: 0;
}

.admin-navbar-stats {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-navbar-stat,
.admin-navbar-icon-btn,
.admin-navbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  margin: 0;
  padding: 0.3rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--sidebar-fg) 14%, transparent);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--sidebar-fg);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-navbar-stat .admin-nav-icon,
.admin-navbar-icon-btn .admin-nav-icon,
.admin-navbar-logout .admin-nav-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: inherit;
}

.admin-navbar-stat {
  border-color: var(--primary);
}

.admin-navbar-stat.is-low {
  background: color-mix(in srgb, #c0392b 14%, transparent);
  border-color: color-mix(in srgb, #c0392b 55%, var(--primary));
}

.admin-navbar-icon-btn,
.admin-navbar-logout {
  border-color: var(--primary);
}

.admin-navbar-stat-value {
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-transform: none;
}

.admin-navbar-stat-label {
  color: color-mix(in srgb, var(--sidebar-fg) 78%, transparent);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-navbar-logout-form {
  margin: 0;
}

.admin-navbar-icon-btn {
  width: 2.15rem;
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0;
  cursor: pointer;
}

.admin-navbar-logout {
  max-width: 14rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  cursor: pointer;
}

.admin-navbar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-navbar-logout-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--foreground);
  text-transform: none;
  letter-spacing: 0.02em;
}

.admin-navbar-icon-btn:hover,
.admin-navbar-logout:hover,
.admin-navbar-icon-btn.is-active {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 900px) {
  .admin-navbar-stat-label,
  .admin-navbar-logout-name {
    display: none;
  }
}

@media (max-width: 640px) {
  .admin-navbar-stats {
    display: none;
  }
}

@media (min-width: 640px) {
  .admin-main {
    padding: 2.25rem 0 0.85rem;
  }

  .admin-main:has(> .admin-navbar) {
    padding-top: 0;
  }
}

/* One shared gap under the navbar - kill page-level top margins that stacked on top of it. */
.admin-main:has(> .admin-navbar) .notif-create-header,
.admin-main:has(> .admin-navbar) .admin-leads-page .admin-leads-toolbar,
.admin-main:has(> .admin-navbar) .admin-leads-management-page .admin-leads-toolbar,
.admin-main:has(> .admin-navbar) .audit-logs-page .admin-leads-toolbar,
.admin-main:has(> .admin-navbar) .soft-phone-toolbar,
.admin-main:has(> .admin-navbar) .soft-phone-call-toolbar {
  margin-top: 0;
}

.admin-main:has(.chat-page--admin) .admin-navbar,
.admin-main:has(.chat-page:not(.chat-page--admin)) .admin-navbar {
  flex-shrink: 0;
  margin: 0;
}

.admin-main:has(.chat-page--admin),
.admin-main:has(.chat-page:not(.chat-page--admin)) {
  padding: 0;
  min-height: 0;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  background-image: none;
}

.admin-main-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-side-padding);
  padding-right: var(--content-side-padding);
}

.admin-main-inner:has(.chat-page) {
  max-width: none;
}

.admin-main-inner:has(.leads-mgmt-page),
.admin-main-inner:has(.agent-leads-page) {
  max-width: none;
}

.agent-leads-page .admin-leads-toolbar,
.agent-leads-page .table-pager,
.agent-leads-page .agent-leads-stats,
.agent-leads-page .agent-leads-charts,
.agent-leads-page .purchase-filter-empty {
  width: 100%;
  max-width: none;
}

.agency-activity-page .admin-leads-toolbar,
.agency-activity-page .agency-activity-stats,
.agency-activity-page .agency-activity-charts,
.agency-activity-page .purchase-filter-empty {
  width: 100%;
  max-width: none;
}

.agency-activity-table {
  min-width: 48rem;
}

.agency-activity-page > .table-pager {
  margin-bottom: 1.5rem;
}

.agency-activity-page .agency-activity-stats {
  clear: both;
  margin-top: 0;
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .agency-activity-page .agency-activity-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .agency-activity-page .agency-activity-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.agent-leads-page .agent-leads-stats {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .agent-leads-page .agent-leads-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.agency-leads-page .agent-leads-stats {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.agent-leads-card {
  max-width: none;
  margin-bottom: 1rem;
}

.agent-leads-card .soft-phone-table-wrap {
  margin-bottom: 0;
  max-height: calc(100vh - 14rem);
  overflow: auto;
}

.agent-leads-table {
  min-width: 58rem;
}

.agent-leads-page .agent-leads-table {
  min-width: 49rem;
  font-size: 0.82rem;
}

.agent-leads-page .agent-leads-table thead th {
  padding-right: 0.55rem;
  padding-bottom: 0.5rem;
}

.agent-leads-page .agent-leads-table td {
  padding: 0.62rem 0.55rem 0.62rem 0;
}

.agent-leads-page .agent-leads-table th:nth-child(1) {
  width: 2.25rem;
}

.agent-leads-page .agent-leads-table th:nth-child(2) {
  width: 7.5rem;
}

.agent-leads-page .agent-leads-table th:nth-child(3) {
  width: 7.25rem;
}

.agent-leads-page .agent-leads-table th:nth-child(4) {
  width: 6.25rem;
}

.agent-leads-page .agent-leads-table th:nth-child(5) {
  width: 8.75rem;
}

.agent-leads-page .agent-leads-table th:nth-child(6) {
  width: 7.5rem;
}

.agent-leads-page .agent-leads-table th:nth-child(7),
.agent-leads-page .agent-leads-table th:nth-child(8) {
  width: 4rem;
}

.agent-leads-page .agent-leads-status-select {
  min-width: 8.25rem;
  max-width: 8.25rem;
  padding-left: 0.45rem;
}

.agent-leads-page .agent-leads-actions {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.agent-leads-page .agent-leads-action-btn--icon {
  width: 1.7rem;
  height: 1.7rem;
}

.agent-leads-email-cell {
  width: 11rem;
  max-width: 11rem;
}

.agent-leads-page:not(.agency-leads-page) .agent-leads-email-cell {
  width: 7.25rem;
  max-width: 7.25rem;
}

.agent-leads-page:not(.agency-leads-page) .agent-leads-phone-cell {
  width: 6.25rem;
  max-width: 6.25rem;
}

.agent-leads-email-cell .soft-phone-table-primary,
.agent-leads-phone-cell .soft-phone-table-primary,
.agent-leads-phone-cell .soft-phone-table-secondary {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  font-size: 0.78rem;
  line-height: 1.2;
}

.agent-leads-phone-cell .copy-number {
  display: inline;
  max-width: 100%;
}

.agent-leads-name {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.agent-leads-name:hover {
  color: var(--primary);
}

.agent-leads-status-select {
  display: inline-block;
  min-width: 8.5rem;
  max-width: 12rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding: 0.28rem 1.6rem 0.28rem 0.65rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c574f' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  line-height: 1.3;
}

.agent-leads-status-select:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 1px;
}

.agent-leads-status-select:disabled {
  opacity: 0.7;
  cursor: wait;
}

.agent-leads-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.agent-leads-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border: 1px solid #d8d2c9;
  border-radius: 999px;
  background: #fff;
  color: var(--primary, #2f5d9f);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  cursor: pointer;
}

.agent-leads-action-btn:hover {
  border-color: var(--primary, #2f5d9f);
  background: var(--secondary);
}

.agent-leads-action-btn--icon {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border-radius: var(--radius-sm);
}

.agent-leads-reassignment-badge {
  display: inline-flex;
  align-items: center;
  height: 1.85rem;
  padding: 0 0.55rem;
  border: 1px solid #d8d2c9;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: #746d66;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agent-leads-reassignment-badge--approved {
  border-color: color-mix(in srgb, var(--primary) 35%, #d8d2c9);
  color: var(--primary);
}

#agent-leads-reassignment-modal .agent-leads-reassignment-panel {
  width: min(28rem, 100%);
  max-height: min(90vh, 34rem);
}

#agent-leads-reassignment-modal .lead-modal-body {
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.1rem;
}

#agent-leads-reassignment-modal .agent-leads-reassignment-context {
  display: grid;
  gap: 0.35rem;
}

#agent-leads-reassignment-modal .agent-leads-reassignment-lead {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

#agent-leads-reassignment-modal .agent-leads-reassignment-help,
#agent-leads-reassignment-modal .agent-leads-reassignment-note {
  margin: 0;
  color: #746d66;
  font-size: 0.88rem;
  line-height: 1.45;
}

#agent-leads-reassignment-modal .agent-leads-reassignment-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a948c;
}

#agent-leads-reassignment-modal .leads-notes-input {
  min-height: 7rem;
  resize: vertical;
}

#agent-leads-reassignment-modal .lead-modal-actions {
  margin-top: 0.15rem;
}

.agent-leads-details-row td {
  padding-top: 0;
  padding-bottom: 1rem;
  background: color-mix(in srgb, var(--bg-surface) 70%, #fff);
}

.agent-leads-details-panel {
  display: grid;
  gap: 1rem;
  padding: 0.75rem 0 0.25rem;
}

.agent-leads-notes {
  display: grid;
  gap: 0.5rem;
  max-width: 36rem;
}

.agent-leads-charts {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .agent-leads-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.agent-leads-page .admin-dashboard-chart-wrap,
.agent-leads-page .admin-dashboard-chart-wrap--donut {
  height: 15rem;
}

.admin-shell:has(.chat-page--admin),
.admin-shell:has(.chat-page:not(.chat-page--admin)) {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/*
  Chat + top toast: JS toggles .is-chat-flash on the shell (complex :has()
  rules were matching in jQuery but not applying grid-row/max-height in CSS).

  Three auto rows cover subscription nudge + flash + announcement slots in
  DOM order; empty tracks collapse. Sidebar/main share the final 1fr row so
  a second top banner cannot drop into an implicit row under the chat.
*/
.admin-shell.is-chat-flash {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-items: stretch;
}

.admin-shell.is-chat-flash > .admin-sidebar,
.admin-shell.is-chat-flash > .admin-main {
  grid-row: 4;
  min-height: 0;
  height: auto;
  max-height: none;
  align-self: stretch;
}

.admin-shell:has(.chat-page--admin) > .admin-main,
.admin-shell:has(.chat-page--admin) > .admin-sidebar,
.admin-shell:has(.chat-page:not(.chat-page--admin)) > .admin-main,
.admin-shell:has(.chat-page:not(.chat-page--admin)) > .admin-sidebar {
  min-height: 0;
}

.admin-shell.is-chat-flash > .admin-main:has(.chat-page),
.admin-shell.is-chat-flash > .admin-main:has(.chat-page--admin) {
  height: auto;
  max-height: none;
}

@media (min-width: 900px) {
  .admin-shell.is-chat-flash > .admin-sidebar {
    height: auto;
    max-height: none;
    position: relative;
    top: auto;
  }
}

.admin-main-inner:has(.chat-page--admin),
.admin-main-inner:has(.chat-page:not(.chat-page--admin)) {
  max-width: none;
  flex: 1;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 899px) {
  .admin-shell:has(.chat-page--admin),
  .admin-shell:has(.chat-page:not(.chat-page--admin)) {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .admin-main:has(.chat-page--admin),
  .admin-main:has(.chat-page:not(.chat-page--admin)) {
    max-height: none;
    height: auto;
    overflow: visible;
  }

  .admin-main-inner:has(.chat-page--admin),
  .admin-main-inner:has(.chat-page:not(.chat-page--admin)) {
    height: auto;
    overflow: visible;
  }

  .chat-page--admin .chat-thread,
  .chat-page:not(.chat-page--admin) .chat-thread {
    max-height: calc(100vh - 18rem);
  }
}

.signup-info-page {
  width: 100%;
}

.signup-info-page .auth-flash {
  margin-bottom: 1rem;
}

.signup-rule-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ddd9d4;
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.signup-rule-card:hover {
  border-color: #c7d6ef;
  background: color-mix(in srgb, var(--secondary) 70%, #fff);
}

.signup-rule-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--secondary);
}

.signup-rule-card input {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.signup-rule-copy {
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.email-settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.email-settings-note,
.notif-summary-copy {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #5c574f;
}

.notif-summary-copy {
  margin-top: 0.9rem;
}

.email-delivery-hint {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #9a948c;
}

.email-delivery-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.email-delivery-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.email-delivery-row .email-delivery-input {
  width: 100%;
}

.email-delivery-row .email-delivery-input:disabled {
  background: #f5f3f0;
  color: #6b6560;
  cursor: not-allowed;
}

.notif-summary-card .email-settings-save-btn {
  margin-top: 1rem;
}

.signup-field-item {
  cursor: grab;
}

.signup-field-item.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.lead-field-card.is-drag-over {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.signup-field-item.is-drag-over {
  border-top: 1px solid var(--primary);
}

.signup-field-handle {
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: #c0bbb4;
  font-size: 0.7rem;
  letter-spacing: -0.08em;
  line-height: 1;
  user-select: none;
}

.signup-field-item .notif-scheduled-item-title {
  flex: 1;
  min-width: 0;
}

.signup-fields-sortable .notif-scheduled-item-head {
  align-items: center;
}

.leads-form-page {
  max-width: none;
}

.leads-form-toolbar-actions {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  gap: 0.45rem;
  flex-shrink: 0;
  width: 100%;
  height: 2.65rem;
  margin-bottom: 0.85rem;
}

.leads-form-toolbar-actions .leads-form-open-btn,
.leads-form-toolbar-actions .leads-form-toolbar-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.leads-form-toolbar-actions .leads-form-open-btn {
  white-space: nowrap;
}

.leads-form-open-btn {
  gap: 0.35rem;
  min-width: 0;
  border: 0;
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.leads-form-open-btn:hover {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.leads-form-open-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.leads-form-toolbar-btn {
  width: auto;
  gap: 0.35rem;
  white-space: nowrap;
}

#lead-form-copy-url {
  margin-top: 0;
}

.leads-form-layout {
  max-width: none;
}

.leads-form-editor {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.leads-form-access-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.leads-form-access-form .notif-create-submit {
  margin-top: 0.25rem;
}

.leads-form-fields-card {
  gap: 0;
}

.leads-form-fields-block {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.leads-form-fields-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.15rem;
}

.leads-form-fields-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6662;
}

.leads-form-parts {
  display: grid;
  gap: 1rem;
}

.leads-form-part .notif-form-kicker {
  margin-bottom: 0.85rem;
}

.leads-form-part .lead-part-fields {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.lead-field-card {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid #ddd9d4;
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.lead-field-card:hover {
  border-color: #c7d6ef;
  background: color-mix(in srgb, var(--secondary) 70%, #fff);
}

.lead-field-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ddd9d4;
  border-radius: var(--radius-sm);
  background: #fff;
}

.lead-field-card-head .signup-rule-copy {
  flex: 1;
}

.lead-field-card-head .notif-scheduled-delete {
  flex-shrink: 0;
}

.lead-field-card-body {
  display: grid;
  gap: 0.65rem;
}

.lead-field-required-card {
  margin: 0;
  cursor: pointer;
}

.lead-field-part-field {
  margin: 0;
}

.lead-field-part-field .notif-field-label {
  margin-bottom: 0.35rem;
}

.leads-form-part-title {
  margin: 0.35rem 0 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.leads-form-row-copy {
  flex: 1;
  min-width: 0;
}

.leads-form-row-meta {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: #837972;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-sans);
}

.leads-form-row-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 0.55rem;
}

.lead-required-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a6662;
  cursor: pointer;
}

.lead-required-toggle input {
  accent-color: var(--primary);
}

.leads-form-part-select {
  width: auto;
  min-width: 9rem;
  max-width: 12rem;
  min-height: 2rem;
  padding: 0.3rem 1.75rem 0.3rem 0.55rem;
}

.leads-form-options {
  margin-top: 0.65rem;
}

.leads-form-options summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  list-style: none;
}

.leads-form-options summary::-webkit-details-marker {
  display: none;
}

.leads-form-options-body {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.leads-form-options-save {
  justify-self: start;
}

.leads-form-preview-aside .notif-summary-card,
.leads-form-preview-aside.notif-summary {
  position: static;
  max-height: none;
  overflow: visible;
}

.leads-form-preview-body {
  margin-top: 0.85rem;
}

.leads-form-preview-aside .leads-form-preview-body .lead-fill-form {
  pointer-events: none;
}

.lead-fill-form {
  display: grid;
  gap: 1.15rem;
}

.lead-fill-part {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.95rem;
  border-top: 1px dotted #c9c4bc;
}

.lead-fill-part:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.lead-fill-part-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.lead-fill-part-fields {
  display: grid;
  gap: 0.75rem;
}

.lead-fill-field {
  display: grid;
  gap: 0.35rem;
}

.lead-fill-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #222220;
}

.lead-fill-required {
  color: #b42318;
}

.lead-fill-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lead-fill-preview-note,
.lead-fill-empty {
  margin: 0;
  font-size: 0.78rem;
  color: #6a6662;
}

.lead-public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 0;
  background: #f7f6f4;
  box-sizing: border-box;
}

.lead-public-page > .lead-public-shell {
  flex: 1 0 auto;
  width: min(28rem, 100%);
}

.lead-public-page > .lead-public-shell--with-routing,
.lead-public-shell--with-routing {
  width: min(64rem, 100%);
}

.lead-public-page > .site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  padding: 1.5rem 0 1rem;
}

.lead-public-shell {
  width: min(28rem, 100%);
  display: grid;
  gap: 0.85rem;
}

.lead-public-shell--unlock {
  grid-template-rows: auto minmax(0, 1fr);
}

.lead-public-shell--unlock .lead-unlock-card {
  align-self: center;
}

.lead-public-layout {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .lead-public-layout {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: 1rem;
  }

  /* ponytail: height:0 + min-height:100% sizes routing panel to the form card */
  .lead-public-routing {
    height: 0;
    min-height: 100%;
  }
}

.lead-public-brand {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--primary);
}

.lead-public-brand.app-logo {
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}

.lead-public-card {
  width: 100%;
}

.lead-public-form-card,
.lead-public-routing {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lead-public-routing {
  min-height: 22rem;
  overflow: hidden;
  max-height: none;
}

.lead-public-routing-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-top: 0.85rem;
  min-height: 0;
  overflow: hidden;
}

.lead-public-routing-table-wrap {
  flex: 0 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.lead-public-routing-fill {
  flex: 1 1 0;
  min-height: 0;
  margin-top: -1px;
  position: relative;
  z-index: 1;
  background: #fff;
}

.lead-public-routing-fill .table-skeleton {
  height: 100%;
  min-height: 100%;
  margin: 0;
}

.lead-public-routing-table-wrap[hidden] + .lead-public-routing-fill .table-skeleton {
  min-height: 14rem;
}

.lead-public-routing-table .order-vps-plan-row:last-of-type td {
  border-bottom-color: transparent;
}

.lead-public-routing-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.lead-public-routing-status--in_progress {
  color: #b54708;
  background: #fef0c7;
  border-color: #fedf89;
}

.lead-public-routing-status--completed {
  color: #067647;
  background: #e8f5ef;
  border-color: #abefc6;
}

.lead-public-routing-status--buffer_exceeded {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca;
}

/* Beat .order-vps-table { min-width: 44rem } and roomy cell padding */
.lead-public-routing-table.order-vps-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.78rem;
}

.lead-public-routing-table.order-vps-table thead th {
  padding: 0 0.35rem 0.45rem 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #9a948c;
  background: #fff;
  border-bottom: 1px solid #f0ece7;
  text-align: left;
  white-space: nowrap;
}

.lead-public-routing-table thead th:last-child,
.lead-public-routing-table .order-vps-plan-row td:last-child {
  padding-right: 0;
}

.lead-public-routing-table .order-vps-plan-row td {
  padding: 0.45rem 0.35rem 0.45rem 0;
  border-bottom: 1px solid #f0ece7;
  vertical-align: top;
}

.lead-public-routing-table .order-vps-table-index-col,
.lead-public-routing-table .order-vps-table-index {
  width: 1.6rem;
  min-width: 0;
  padding-right: 0.25rem;
  font-size: 0.7rem;
}

.lead-public-routing-table .order-vps-table-spec-cell {
  min-width: 0;
}

.lead-public-routing-table .order-vps-table-spec-primary,
.lead-public-routing-table .order-vps-table-spec-secondary,
.lead-public-routing-table .copy-number {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.lead-public-routing-table .order-vps-table-spec-primary {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.25;
}

.lead-public-routing-table .order-vps-table-index {
  font-weight: 400;
}

.lead-public-routing-table .order-vps-table-spec-secondary {
  margin-top: 0.1rem;
  font-size: 0.65rem;
  line-height: 1.2;
}

.lead-public-routing-table th:nth-child(1),
.lead-public-routing-table td:nth-child(1) {
  width: 1.6rem;
}

.lead-public-routing-table th:nth-child(2),
.lead-public-routing-table td:nth-child(2) {
  width: 4.75rem;
}

.lead-public-routing-table th:nth-child(2) .order-vps-table-spec-primary,
.lead-public-routing-table td:nth-child(2) .order-vps-table-spec-primary {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  white-space: pre-line;
  line-height: 1.2;
}

.lead-public-routing-table th:nth-child(3),
.lead-public-routing-table td:nth-child(3) {
  width: 22%;
}

.lead-public-routing-table th:nth-child(4),
.lead-public-routing-table td:nth-child(4) {
  width: auto;
}

.lead-public-routing-table th:nth-child(5),
.lead-public-routing-table td:nth-child(5) {
  width: 3.75rem;
}

.lead-public-routing-table th:nth-child(6),
.lead-public-routing-table td:nth-child(6) {
  width: 5.5rem;
}

.lead-public-routing-table th:nth-child(7),
.lead-public-routing-table td:nth-child(7) {
  width: 5.25rem;
}

.lead-unlock-card .lead-unlock-copy {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: #6a6662;
}

.lead-unlock-form {
  display: grid;
  gap: 0.85rem;
}

.leads-mgmt-page {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.leads-mgmt-page .auth-flash {
  margin-bottom: 1rem;
}

.leads-mgmt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.leads-mgmt-filter {
  display: grid;
  gap: 0.35rem;
}

.leads-mgmt-filter span,
.leads-mgmt-status span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a6662;
}

.leads-mgmt-filter .notif-input,
.leads-mgmt-status .notif-input {
  min-width: 11rem;
}

.leads-mgmt-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a6662;
}

.leads-mgmt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.leads-mgmt-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: #fff;
}

.leads-mgmt-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.leads-mgmt-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
}

.leads-mgmt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #6a6662;
}

.leads-mgmt-status {
  display: grid;
  gap: 0.35rem;
}

.leads-mgmt-details {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dotted #c9c4bc;
}

.leads-mgmt-details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  list-style: none;
}

.leads-mgmt-details summary::-webkit-details-marker {
  display: none;
}

.leads-mgmt-fields {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
}

.leads-mgmt-field {
  display: grid;
  gap: 0.15rem;
}

.leads-mgmt-field dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a948c;
}

.leads-mgmt-field dd {
  margin: 0;
  font-size: 0.9rem;
  color: #222220;
  word-break: break-word;
}

.leads-mgmt-empty {
  padding: 2rem 1rem;
  border: 1px dashed #d7d2cc;
  text-align: center;
  color: #6a6662;
}

.leads-mgmt-empty p {
  margin: 0;
}

.leads-mgmt-empty p + p {
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

.leads-mgmt-notes {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dotted #c9c4bc;
}

.leads-mgmt-notes-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a6662;
}

.leads-mgmt-notes .leads-notes-input {
  resize: vertical;
  min-height: 4.5rem;
}

.leads-notes-save {
  justify-self: start;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fefefd;
  min-height: 1.85rem;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.leads-notes-save:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.leads-notes-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 32, 0.45);
}

.lead-modal-panel {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  max-height: min(90vh, 44rem);
  overflow: auto;
  border: 1px solid #d7d2cc;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 40px rgba(34, 34, 32, 0.18);
  font-family: var(--font-sans);
}

.lead-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #d7d2cc;
  background: #fff;
}

.lead-modal-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222220;
}

.lead-modal-close {
  border: 0;
  background: transparent;
  color: #9a948c;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}

.lead-modal-close:hover {
  color: #222220;
}

.lead-modal-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
}

.lead-modal-body[hidden] {
  display: none !important;
}

.lead-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding-top: 0.25rem;
}

.lead-modal-actions #agency-group-delete,
.lead-modal-actions #admin-agency-group-delete {
  margin-right: auto;
}

.lead-modal-actions #admin-agency-group-delete[hidden],
.lead-modal-actions #agency-group-delete[hidden] {
  display: none !important;
}

.lead-modal-actions .lead-modal-cancel {
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  box-sizing: border-box;
}

.lead-modal-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--primary);
  padding: 0.55rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.lead-modal-cancel:hover {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.lead-modal .notif-create-submit {
  width: auto;
  padding: 0.55rem 1rem;
}

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

body.lead-modal-open {
  overflow: hidden;
}

.admin-page-header {
  margin-bottom: 1.75rem;
}

.signup-info-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.signup-info-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #ececec;
  border-radius: 9999px;
  background: #fff;
  color: #8a8a8a;
  font-size: 0.8rem;
  white-space: nowrap;
}

.signup-info-count span:first-child {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #111;
}

.signup-info-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .signup-info-layout {
    grid-template-columns: minmax(16rem, 18.5rem) minmax(0, 1fr);
    align-items: start;
  }
}

.admin-panel {
  margin-bottom: 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid #ececec;
  border-radius: var(--radius-xl);
  background: #fff;
}

.signup-info-composer,
.signup-info-list-panel {
  margin-bottom: 0;
}

.admin-panel-heading {
  margin-bottom: 0.85rem;
}

.admin-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111;
}

.admin-panel-copy {
  margin: 0.3rem 0 0;
  color: #8a8a8a;
  font-size: 0.84rem;
  line-height: 1.4;
}

.signup-info-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.signup-info-label {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 550;
  color: #666;
}

.signup-info-required {
  margin: 0.35rem 0 0.15rem;
}

.signup-info-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.admin-form {
  margin-top: 0.85rem;
}

.admin-form-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .admin-form-grid {
    grid-template-columns: 1.5fr 1fr auto auto;
    align-items: center;
  }
}

.admin-input {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-lg);
  background: #fafafa;
  color: #111;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  outline: none;
}

.admin-input:focus {
  border-color: #cfcfcf;
  background: #fff;
}

.admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #555;
}

.admin-primary-btn,
.admin-link-btn,
.admin-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-primary-btn,
.admin-link-btn {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 0.95rem;
}

.admin-primary-btn:hover,
.admin-link-btn:hover {
  background: var(--primary-hover);
}

.admin-ghost-btn {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--primary);
  padding: 0.4rem 0.75rem;
  min-height: 2.15rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-ghost-btn:hover {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.admin-fields-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.admin-field-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.admin-field-row:first-child {
  padding-top: 0.15rem;
}

.admin-field-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--secondary);
  color: var(--primary);
}

.admin-field-icon svg {
  width: 1rem;
  height: 1rem;
}

.admin-field-copy {
  min-width: 0;
  flex: 1;
}

.admin-field-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #111;
}

.admin-field-meta {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #9a9a9a;
}

.admin-field-badge {
  margin-left: 0.35rem;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
}

.admin-fields-empty {
  padding: 1.5rem 0.25rem;
  text-align: center;
}

.admin-fields-empty-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.admin-fields-empty-copy {
  margin: 0.35rem 0 0;
  color: #9a9a9a;
  font-size: 0.85rem;
  line-height: 1.4;
}

.profile-page {
  width: 100%;
  max-width: 68rem;
}

.profile-page > .auth-flash {
  margin: 0 0 1rem;
}

.profile-page [hidden] {
  display: none !important;
}

.profile-agency-toggle {
  width: 100%;
  margin: 0;
}

.profile-agency-toggle .notif-style-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.profile-agency-toggle .notif-style-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-mid-layout {
  margin-bottom: 1.25rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .profile-mid-layout.notif-create-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.profile-mid-layout .notif-create-main {
  margin-bottom: 0;
}

.profile-mid-side {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  min-width: 0;
}

.profile-mid-side .notif-create-main {
  height: auto;
}

.profile-states-card .notif-form-kicker {
  margin-bottom: 1rem;
}

.profile-hours-card .notif-form-kicker {
  margin-bottom: 1rem;
}

.profile-states-card .notif-section {
  padding-top: 0;
}

.profile-hours-card .notif-section {
  padding-top: 0;
}

.profile-states-card #profile-states-editor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-states-filter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.profile-states-filter-head .notif-field-label {
  margin-bottom: 0;
}

.profile-states-check-all {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a948c;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 120ms ease;
}

.profile-states-check-all:hover:not(:disabled) {
  color: var(--primary);
}

.profile-states-check-all:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#profile-states-editor.is-agency-locked .profile-state-chip {
  opacity: 0.72;
  cursor: not-allowed;
}

#profile-states-editor.is-agency-locked .profile-state-chip:hover {
  border-color: #e4e0db;
  background: #fafafa;
}

#profile-states-editor.is-agency-locked .profile-state-chip:has(input:checked) {
  border-color: var(--primary);
  background: var(--secondary);
}

.profile-account-card {
  max-width: none;
  height: 100%;
}

.profile-account-card .notif-section:first-of-type {
  padding-top: 0.85rem;
}

.profile-account-card .notif-form-kicker {
  margin-bottom: 0;
}

.profile-preview-card {
  max-width: 68rem;
  margin: 0 0 1.25rem;
}

.profile-avatar-field {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.profile-avatar-field--account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
}

.profile-avatar-actions {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.profile-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--secondary);
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-fallback {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
}

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

.profile-photo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.profile-photo-btn:hover {
  background: var(--secondary);
  border-color: var(--primary);
}

.profile-photo-btn.notif-create-submit {
  width: auto;
  min-width: 8.5rem;
  min-height: 2.65rem;
  margin-top: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  border: 0;
  background: var(--primary);
  color: #fff;
}

.profile-photo-btn.notif-create-submit:hover {
  background: var(--primary-hover);
  border-color: transparent;
  color: #fff;
}

.profile-field-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .profile-field-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-page .iti,
.auth-layout .iti {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--panel-bg);
  --iti-border-color: #ddd9d4;
  --iti-hover-color: rgba(18, 75, 196, 0.06);
  --iti-dialcode-color: #9a948c;
  --iti-dropdown-bg: #fff;
  --iti-arrow-color: #9a948c;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.profile-page .iti::after,
.auth-layout .iti::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid var(--iti-border-color);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.profile-page .iti {
  height: 2.5rem;
}

.profile-page .iti:focus-within {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent);
}

.profile-page .iti:focus-within::after {
  border-color: var(--primary);
}

.auth-layout .iti {
  height: 2.85rem;
  --iti-border-color: var(--primary);
}

.auth-layout .iti:focus-within {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent);
}

.profile-page .iti__country-container,
.auth-layout .iti__country-container {
  left: 1px;
  top: 1px;
  bottom: 1px;
  height: auto;
  padding: 0;
}

.profile-page .iti__selected-country,
.auth-layout .iti__selected-country {
  display: flex;
  align-items: center;
  min-height: 0;
  height: 100%;
  padding: 0 0 0 0.5rem;
  border-radius: calc(var(--radius-sm) - 1px) 0 0 calc(var(--radius-sm) - 1px);
  background: var(--secondary);
  border-right: 1px solid color-mix(in srgb, var(--iti-border-color) 22%, transparent);
}

.profile-page .iti__selected-country-primary,
.auth-layout .iti__selected-country-primary {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.4rem 0 0.2rem;
  border-radius: 0;
}

.profile-page .iti__selected-country:hover,
.profile-page .iti__selected-country[aria-expanded="true"],
.auth-layout .iti__selected-country:hover,
.auth-layout .iti__selected-country[aria-expanded="true"] {
  background: color-mix(in srgb, var(--secondary) 70%, var(--primary) 8%);
}

.profile-page .iti__dropdown-content,
.auth-layout .iti__dropdown-content {
  border: 1px solid #ddd9d4;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(34, 34, 32, 0.12);
  overflow: hidden;
}

.auth-layout .iti__dropdown-content {
  border-color: var(--primary);
}

.profile-page .iti__search-input,
.auth-layout .iti__search-input {
  border: 0;
  border-bottom: 1px solid #e4e0db;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #222220;
}

.profile-page .iti__country,
.auth-layout .iti__country {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #222220;
}

.profile-page .iti__country.iti__highlight,
.auth-layout .iti__country.iti__highlight {
  background: var(--secondary);
}

.profile-page .profile-phone-input.notif-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  line-height: 1.25;
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* Left padding is set by intl-tel-input to clear the flag control. */
}

.auth-layout .auth-phone-input.security-textfield-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  line-height: 1.25;
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* Left padding is set by intl-tel-input to clear the flag control. */
}

.auth-layout .auth-phone-input.security-textfield-input:focus {
  box-shadow: none;
}

.profile-page .profile-phone-input.notif-input:focus {
  box-shadow: none;
}

.profile-hint {
  margin: 0;
  font-size: 0.75rem;
  color: #9a948c;
}

.profile-summary-note {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--radius-sm);
  background: var(--secondary);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--primary);
}

.profile-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr));
  gap: 0.3rem;
  max-height: 14rem;
  overflow: auto;
  padding: 0.15rem;
}

.profile-state-chip {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.35rem 0.2rem;
  border: 1px solid #e4e0db;
  border-radius: var(--radius-sm);
  background: #fafafa;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.profile-state-chip:hover {
  border-color: #c7d6ef;
  background: var(--secondary);
}

.profile-state-chip:has(input:checked) {
  border-color: var(--primary);
  background: var(--secondary);
}

.profile-state-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-state-code {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  color: #111;
}

.profile-hours {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.profile-hours-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: end;
}

@media (min-width: 520px) {
  .profile-hours-row {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.85rem;
  }
}

.profile-hours-rule {
  display: none;
  width: 1.5rem;
  height: 1px;
  margin-bottom: 1.25rem;
  background: #d7d2cc;
}

@media (min-width: 520px) {
  .profile-hours-rule {
    display: block;
  }
}

.profile-day-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-day-chip {
  position: relative;
  cursor: pointer;
}

.profile-day-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-day-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #e4e0db;
  border-radius: var(--radius-sm);
  background: #fafafa;
  color: #555;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.profile-day-chip:hover span {
  border-color: #c7d6ef;
  background: var(--secondary);
}

.profile-day-chip:has(input:checked) span {
  border-color: var(--primary);
  background: var(--secondary);
  color: var(--primary);
}

.profile-hours-card.is-agency-locked .notif-input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background: #f5f4f2;
}

.profile-hours-card.is-agency-locked .profile-day-chip {
  opacity: 0.72;
  cursor: not-allowed;
}

.profile-hours-card.is-agency-locked .profile-day-chip:hover span {
  border-color: #e4e0db;
  background: #fafafa;
}

.profile-hours-card.is-agency-locked .profile-day-chip:has(input:checked) span {
  border-color: var(--primary);
  background: var(--secondary);
  color: var(--primary);
}

.announcement-banner {
  position: relative;
  display: block;
  width: 100%;
  background: var(--announcement-bg, var(--primary));
  color: var(--announcement-fg, #ffffff);
  transition: background-color 120ms ease, color 120ms ease;
}

.announcement-slot > .announcement-banner + .announcement-banner {
  border-top: 1px solid color-mix(in srgb, var(--announcement-fg, #fff) 22%, transparent);
}

.announcement-banner--preview {
  border-radius: var(--radius);
  overflow: hidden;
}

.announcement-banner-inner {
  display: flex;
  max-width: 90rem;
  margin: 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.35rem 2.5rem 0.35rem 1rem;
}

@media (min-width: 640px) {
  .announcement-banner-inner {
    height: 2rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.announcement-badge {
  display: inline-flex;
  width: fit-content;
  flex-shrink: 0;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--announcement-fg, #fff) 35%, transparent);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.08em;
  color: inherit;
}

.announcement-message {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: inherit;
}

@media (min-width: 640px) {
  .announcement-message {
    text-align: center;
  }
}

.announcement-links {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .announcement-links {
    margin-left: 1.5rem;
  }
}

.announcement-link-prefix,
.announcement-link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.08em;
  color: inherit;
}

.announcement-link {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--announcement-fg, #fff) 45%, transparent);
  text-underline-offset: 4px;
  transition: text-decoration-color 120ms ease;
}

.announcement-link:hover {
  text-decoration-color: var(--announcement-fg, #fff);
}

.subscription-nudge-banner {
  --announcement-bg: var(--primary);
  --announcement-fg: var(--primary-foreground, #ffffff);
}

.subscription-nudge-slot {
  position: sticky;
  top: 0;
  z-index: 44;
}

.subscription-nudge-banner .subscription-nudge-link {
  flex-shrink: 0;
  font-weight: 700;
}

.announcement-dismiss {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--announcement-fg, #fff) 80%, transparent);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 120ms ease;
}

.announcement-dismiss:hover {
  color: var(--announcement-fg, #fff);
}

.announcement-dismiss span {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}

.notifications-color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-color-input {
  display: block;
  width: 100%;
  height: 2.5rem;
  padding: 0.2rem;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.notifications-preview-wrap {
  margin-top: 0.35rem;
}

.notifications-swatch {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

.notifications-page {
  width: 100%;
}

.notif-create-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

.notif-create-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #111;
}

.notif-create-subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: #837972;
  line-height: 1.4;
}

.notif-create-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  max-width: 68rem;
}

@media (min-width: 960px) {
  .notif-create-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.9fr);
    gap: 1.75rem;
  }
}

.notif-create-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: none;
  padding: 1.15rem 1.25rem 1.3rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: #fff;
}

.notif-form-kicker {
  margin: 0 0 0.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dotted #c9c4bc;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: #111;
}

.notif-create-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.65rem;
  margin-top: 0.35rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.notif-create-submit:hover {
  background: var(--primary-hover);
}

.notif-create-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.notif-create-submit--secondary {
  background: var(--secondary);
  color: var(--primary);
}

.notif-create-submit--secondary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.notif-create-submit--secondary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.notif-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px dotted #c9c4bc;
}

.notif-section:last-of-type {
  border-bottom: 0;
}

.notif-section-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
}

.notif-section-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 0.15rem;
}

.notif-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.notif-field-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a948c;
}

.notif-input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ddd9d4;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #222220;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.notif-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(18, 75, 196, 0.12);
}

.notif-input::placeholder {
  color: #b0aaa2;
  letter-spacing: 0;
}

select.notif-input,
select.security-textfield-input,
select.profile-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: 0;
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%239a948c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.9rem;
}

input[type="search"].notif-input,
input[type="search"].security-textfield-input,
input[type="search"].profile-input {
  font-family: var(--font-sans);
  letter-spacing: 0;
  padding-left: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.25' stroke='%239a948c' stroke-width='1.75'/%3E%3Cpath stroke='%239a948c' stroke-linecap='round' stroke-width='1.75' d='m16.5 16.5 3 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.65rem center;
  background-size: 0.9rem;
}

.notif-utc-now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  margin: 0.15rem 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.3;
  color: #837972;
}

.notif-utc-now-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a948c;
}

.notif-utc-now-value {
  font-variant-numeric: tabular-nums;
  color: #111;
}

.notif-schedule-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .notif-schedule-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.notif-style-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr;
}

.notif-style-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ddd9d4;
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.notif-style-card:hover {
  border-color: #c7d6ef;
  background: color-mix(in srgb, var(--secondary) 70%, #fff);
}

.notif-style-card.is-selected,
.notif-style-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--secondary);
}

.notif-style-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.notif-style-card.profile-agency-toggle input {
  position: static;
  opacity: 1;
  pointer-events: auto;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0 0 0 auto;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.notif-style-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: #837972;
}

.notif-style-card.is-selected .notif-style-icon,
.notif-style-card:has(input:checked) .notif-style-icon {
  color: var(--primary);
}

.notif-style-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.notif-style-swatch {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  border-radius: 0.1rem;
}

.notif-style-swatch--custom {
  background: linear-gradient(135deg, var(--primary) 0 50%, #ffffff 50% 100%);
  border: 1px solid #d7d2cc;
}

.notif-style-copy {
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.notif-style-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.notif-style-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a948c;
}

.notif-summary {
  min-width: 0;
}

@media (min-width: 960px) {
  .notif-summary {
    position: sticky;
    top: 1.25rem;
  }
}

.notif-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: #fff;
  max-height: calc(100vh - 6rem);
  overflow: auto;
}

.notif-summary-card.lead-public-card,
.notif-summary-card.leads-form-preview-card {
  max-height: none;
  overflow: visible;
}

.notif-summary-title {
  margin: 0;
  padding-bottom: 0.9rem;
  border-bottom: 1px dotted #c9c4bc;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: #111;
}

.notif-summary-count {
  display: inline-block;
  margin-left: 0.35rem;
  color: #9a948c;
  font-weight: 500;
}

.notif-summary-count::before {
  content: "(";
}

.notif-summary-count::after {
  content: ")";
}

.notif-scheduled-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notif-scheduled-item {
  margin: 0;
  padding: 0.95rem 0;
  border-bottom: 1px dotted #c9c4bc;
}

.notif-scheduled-item:last-child {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.notif-scheduled-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.notif-scheduled-item-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #111;
}

.notif-scheduled-delete {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a948c;
  cursor: pointer;
}

.notif-scheduled-delete:hover {
  color: var(--primary);
}

.notif-scheduled-item-body {
  margin-top: 0.55rem;
  padding-left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.notif-scheduled-item-body p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.45;
  color: #555;
}

.notif-scheduled-item-body span:first-child {
  color: #9a948c;
  margin-right: 0.35rem;
}

.notif-scheduled-colors {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.notif-scheduled-swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid #d7d2cc;
  border-radius: 0.1rem;
}

.notif-scheduled-empty {
  margin: 0;
  padding: 1.15rem 0.25rem 0.5rem;
  text-align: center;
}

.notif-scheduled-empty p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a948c;
  line-height: 1.5;
}

.notif-scheduled-empty p + p {
  margin-top: 0.35rem;
}

.notifications-page .auth-flash {
  margin-bottom: 1rem;
}


.admin-dashboard-welcome {
  margin-bottom: 1.5rem;
}

.admin-dashboard-welcome .notif-create-subtitle {
  margin-top: 0.35rem;
}

.admin-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
  .admin-dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .admin-dashboard-stats {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.admin-dashboard-stat {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  text-decoration: none;
  color: inherit;
  transition: background-color 120ms ease;
}

.admin-dashboard-stat:hover {
  background: var(--secondary);
}

.admin-dashboard-stat-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--primary);
}

.admin-dashboard-stat-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a948c;
}

.leads-mgmt-stats {
  margin-bottom: 1rem;
}

.leads-mgmt-stats .admin-dashboard-stat {
  cursor: default;
}

.leads-mgmt-stats .admin-dashboard-stat:hover {
  background: var(--secondary);
}

.admin-dashboard-actions-card {
  margin-bottom: 1.25rem;
}

.admin-dashboard-actions-card .notif-form-kicker {
  margin-bottom: 0.85rem;
}

.admin-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-dashboard-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  min-height: 2.35rem;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease;
}

.admin-dashboard-action-icon {
  width: 0.9rem;
  height: 0.9rem;
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.9;
  color: currentColor;
}

.admin-dashboard-action:hover {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.admin-dashboard-action.is-primary {
  background: var(--primary);
  color: #fff;
}

.admin-dashboard-action.is-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.admin-dashboard-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .admin-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-dashboard-chart-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-self: stretch;
  min-height: 0;
}

.admin-dashboard-chart-wrap {
  position: relative;
  height: 15rem;
  margin-top: 0.75rem;
  flex: 1 1 auto;
}

.admin-dashboard-chart-wrap--donut {
  height: 15rem;
}

.admin-dashboard-page .admin-dashboard-chart-wrap,
.admin-dashboard-page .admin-dashboard-chart-wrap--donut,
.admin-dashboard-page .admin-dashboard-chart-wrap--wide,
.agent-dashboard-page .admin-dashboard-chart-wrap,
.agent-dashboard-page .admin-dashboard-chart-wrap--donut,
.agent-dashboard-page .admin-dashboard-chart-wrap--wide {
  height: 15rem;
}

.admin-dashboard-chart-card--full {
  margin-bottom: 1.25rem;
  align-self: stretch;
  width: 100%;
  height: auto;
}

.admin-dashboard-chart-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.15rem;
}

.admin-dashboard-chart-header .notif-form-kicker {
  margin: 0;
}

.admin-dashboard-chart-filter {
  margin: 0;
}

.admin-dashboard-chart-filter .notif-input {
  min-width: 10.5rem;
  font-size: 0.72rem;
}

.admin-dashboard-empty {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a948c;
}

.users-page {
  width: 100%;
}

.access-mgmt-layout {
  align-items: start;
}

.access-create-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.access-pages-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.access-pages-fieldset legend {
  margin-bottom: 0.55rem;
}

.access-pages-grid {
  display: grid;
  gap: 0.45rem;
}

.access-page-option {
  margin: 0;
}

.access-page-icon {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.72;
  color: var(--muted-foreground);
}

.access-page-option:has(input:checked) .access-page-icon {
  opacity: 0.9;
  color: var(--primary);
}

.access-accounts-list {
  margin-top: 0.85rem;
}

.access-account-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.access-account-fold {
  flex: 1;
  min-width: 0;
}

.access-account-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  cursor: pointer;
  list-style: none;
}

.access-account-summary::-webkit-details-marker {
  display: none;
}

.access-account-summary::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.15rem;
  border-right: 1.5px solid var(--primary);
  border-bottom: 1.5px solid var(--primary);
  transform: rotate(-45deg);
  flex-shrink: 0;
  align-self: center;
}

.access-account-fold[open] > .access-account-summary::before {
  transform: rotate(45deg);
}

.access-account-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a948c;
}

.access-account-body {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dotted #c9c4bc;
}

.access-account-actions {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .access-account-actions {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.order-vps-section {
  width: 100%;
  padding: 0 0 1.5rem;
  background: transparent;
}

.security-page {
  width: 100%;
  max-width: 68rem;
}

/* Auth shells reuse .security-page for shared field styles; keep the narrow form width. */
.auth-form-card.security-page {
  max-width: var(--auth-max);
}

.security-page > .auth-flash {
  margin: 0 0 1rem;
}

.security-mid-layout {
  margin-bottom: 1.25rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .security-mid-layout.notif-create-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.security-mid-layout .notif-create-main,
.security-sessions-card.notif-create-main {
  margin-bottom: 0;
}

.security-account-card .notif-form-kicker,
.security-2fa-card .notif-form-kicker,
.security-sessions-card .notif-form-kicker {
  margin-bottom: 0.85rem;
}

.security-card-intro {
  margin: -0.35rem 0 1rem;
}

.security-methods {
  display: grid;
  gap: 0.75rem;
}

.security-page .profile-hint a,
.security-page .security-ghost-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.security-page .security-ghost-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

.security-session-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-mfa-header {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  max-width: 42rem;
}

.security-page .security-section {
  margin-bottom: 1.25rem;
}

.security-2fa-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .security-2fa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.security-method-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.security-method-card.is-active {
  border-color: var(--primary);
}

.security-method-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
}

.security-method-copy,
.security-method-status,
.security-secret-label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.4;
  color: #837972;
}

.security-method-status {
  color: #067647;
  font-weight: 600;
}

.security-setup {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.security-secret {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.security-disable {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  max-width: 22rem;
}

.security-danger-btn,
.security-revoke-btn {
  width: fit-content;
}

.security-revoke-btn {
  appearance: none;
  border: 1px solid #fecdca;
  background: #fef3f2;
  color: #b42318;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.security-revoke-btn:hover {
  background: #fee4e2;
}

.security-sessions-table {
  min-width: 40rem;
}

.security-text {
  display: block;
  color: #111;
}

.security-text--body {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--foreground);
}

.security-text--1 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 400;
}

.security-text--secondary {
  color: var(--muted-foreground);
}

.security-page-body,
.security-container-inner {
  width: 100%;
}

.security-stack {
  display: grid;
  gap: 1.25rem;
}

.security-fields-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .security-fields-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.security-field-block,
.security-field-stack {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.security-field-foot {
  min-height: 1.25rem;
}

.security-field-action {
  color: var(--muted-foreground);
}

.security-field-foot a,
.security-ghost-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.security-ghost-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.45;
  cursor: pointer;
}

.security-ghost-link:hover {
  color: var(--primary-hover, var(--primary));
}

.security-text--gray {
  color: var(--muted-foreground);
}

.security-text--2 {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-page .security-textfield-input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--panel-bg);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.security-page .security-textfield-input:disabled,
.security-page .notif-input:disabled {
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: var(--muted-foreground);
  background: color-mix(in srgb, var(--secondary) 70%, #fff);
  color: var(--muted-foreground);
}

.security-password-control {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  min-width: 0;
}

.security-password-control .security-textfield {
  flex: 1;
  min-width: 0;
}

.security-change-password-btn {
  width: auto;
  min-height: 2.65rem;
  margin: 0;
  padding: 0.5rem 0.7rem;
  flex-shrink: 0;
  border-color: var(--primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.security-change-password-panel {
  width: min(28rem, 100%);
  border-color: var(--primary);
  border-radius: var(--radius);
  background: var(--panel-bg);
}

.security-change-password-panel .lead-modal-header,
.security-change-password-panel .lead-modal-body {
  background: var(--panel-bg);
}

.security-change-password-panel .lead-modal-header {
  border-color: var(--primary);
}

.security-change-password-panel .security-field-stack {
  gap: 0.4rem;
}

.security-change-password-panel .security-textfield-input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.6rem 2.6rem 0.6rem 0.8rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  outline: none;
  background: #fff;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.security-change-password-panel .auth-password-toggle {
  color: #837972;
}

.security-password-hint {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.security-totp-panel,
.security-email-2fa-panel {
  width: min(28rem, 100%);
  border-color: var(--primary);
  border-radius: var(--radius);
  background: var(--panel-bg);
}

.security-totp-panel .lead-modal-header,
.security-totp-panel .lead-modal-body,
.security-email-2fa-panel .lead-modal-header,
.security-email-2fa-panel .lead-modal-body {
  background: var(--panel-bg);
}

.security-totp-panel .lead-modal-header,
.security-email-2fa-panel .lead-modal-header {
  border-color: var(--primary);
}

.security-totp-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12.5rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--secondary);
}

.security-totp-qr-wrap canvas {
  display: block;
  width: 180px;
  height: 180px;
}

.security-totp-manual {
  display: grid;
  gap: 0.35rem;
}

.security-modal-error {
  --announcement-bg: #991b1b;
  --announcement-fg: #ffffff;
  display: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 2rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 1rem;
  background: var(--announcement-bg);
  color: var(--announcement-fg);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.security-modal-error:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.security-modal-error::before {
  content: "Error";
  display: inline-flex;
  width: fit-content;
  flex-shrink: 0;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--announcement-fg, #fff) 35%, transparent);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.08em;
  color: inherit;
}

.security-mfa-section,
.security-sessions-section {
  display: grid;
  gap: 0.5rem;
}

.security-section--2fa {
  gap: 0.75rem;
}

.security-mfa-header {
  display: grid;
  gap: 0.35rem;
  max-width: none;
  margin-bottom: 0.5rem;
}

.security-mfa-header h2,
.security-mfa-header p,
.security-mfa-header .security-text,
.security-card p,
.security-disable p,
.security-disable .security-text {
  margin: 0;
}

.security-section--2fa .security-card,
.security-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.security-section--2fa .security-card.is-active,
.security-card.is-active,
.security-session-card.is-current {
  border-color: var(--primary);
  background: var(--secondary);
}

.security-card-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  padding: 0.75rem 0.9rem;
}

.security-section--2fa .security-card-inner {
  align-items: center;
}

.security-card-content {
  display: grid;
  flex: 1;
  gap: 0.35rem;
  min-width: 0;
}

.security-card-label-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
}

.security-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0.16rem 0.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--muted-foreground);
  color: var(--primary-foreground);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.security-badge--solid {
  border: 0;
}

.security-badge--gray {
  background: #6b7280;
  color: #fff;
}

.security-badge--green,
.security-badge.is-enabled,
.security-badge.is-current {
  background: var(--primary);
  color: var(--primary-foreground);
}

.security-badge.is-current {
  padding: 0.4rem 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.security-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: auto;
  min-width: 5.75rem;
  min-height: 2.1rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  flex-shrink: 0;
  font-size: 0.72rem;
}

.security-page .security-action-btn.notif-create-submit {
  width: auto;
}

.security-action-btn--secondary,
.security-page .security-action-btn.notif-create-submit--secondary {
  background: var(--secondary);
  color: var(--primary);
}

.security-action-btn--secondary:hover:not(:disabled),
.security-page .security-action-btn.notif-create-submit--secondary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.security-action-btn--danger {
  border-color: #fecdca;
  background: #fef3f2;
  color: #b42318;
}

.security-action-btn--danger:hover:not(:disabled) {
  background: #fee4e2;
}

.security-page .security-setup {
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px dotted var(--border);
}

.security-disable {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  max-width: none;
  margin-top: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #fecdca;
  border-radius: var(--radius-sm);
  background: #fffafa;
}

.security-disable > div {
  display: grid;
  gap: 0.25rem;
}

@media (min-width: 720px) {
  .security-disable {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem) auto;
    align-items: end;
  }
}

.security-sessions-list {
  display: grid;
  gap: 0.65rem;
}

.security-sessions-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.75rem;
}

.security-sessions-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.security-sessions-header .security-mfa-header {
  flex: 1 1 16rem;
  margin-bottom: 0;
}

.security-sessions-header .security-action-btn {
  align-self: center;
}

.security-session-card .security-card-inner {
  min-height: 4.5rem;
}

.security-session-card .security-text--2 {
  font-weight: 400;
}

.security-session-icons {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  flex-shrink: 0;
  color: var(--foreground);
}

.security-session-icons iconify-icon {
  width: 1rem;
  height: 1rem;
}

.security-session-action-form,
.security-logout-row form {
  margin: 0;
}

.security-logout-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dotted var(--border);
}

.security-sessions-card {
  margin-top: 0;
}

@media (max-width: 639px) {
  .security-card-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .security-action-btn {
    width: 100%;
  }
}

.order-vps-table-wrap {
  width: 100%;
  height: max-content;
  overflow: auto;
  max-height: calc(100vh - 12rem);
  border: 0;
  background: transparent;
}

.order-vps-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #111;
  background: transparent;
}

.order-vps-table thead tr {
  border-bottom: 0;
}

.order-vps-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0 1.25rem 0.85rem 0;
  text-align: left;
  vertical-align: bottom;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a847c;
  border-bottom: 2px dotted var(--primary);
  white-space: nowrap;
  background: #fff;
}

.order-vps-table thead th:last-child {
  padding-right: 0;
}

.order-vps-table-index-col {
  width: 2.5rem;
}

.order-vps-plan-row td {
  padding: 1.45rem 1.25rem 1.45rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 0;
  background: transparent;
}

.order-vps-plan-row td:last-child {
  padding-right: 0;
}

.order-vps-plan-row:hover td {
  background: transparent;
}

.order-vps-table-index {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.order-vps-table-spec-cell {
  min-width: 8rem;
}

.order-vps-table-spec-primary {
  display: block;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  word-break: break-word;
}

.order-vps-table-spec-secondary {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
  color: #9a948c;
  word-break: break-word;
}

.order-vps-table-price {
  font-weight: 700;
  white-space: nowrap;
  color: #111;
}

.order-vps-empty {
  margin: 0;
  padding: 1.5rem 0;
  border: 0;
  text-align: left;
  color: #837972;
  font-size: 0.9rem;
}

.order-vps-empty.is-hidden {
  display: none;
}

.table-skeleton {
  box-sizing: border-box;
  width: 100%;
  min-height: 14rem;
  margin: 0.35rem 0 0.15rem;
  border-radius: 0;
  background-color: transparent;
  background-image: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--secondary) 42%, transparent) 0,
    color-mix(in srgb, var(--secondary) 42%, transparent) 2.15rem,
    transparent 2.15rem,
    transparent 2.95rem
  );
  background-size: 100% 2.95rem;
  background-repeat: repeat-y;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 22%,
    rgba(0, 0, 0, 0.4) 55%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 22%,
    rgba(0, 0, 0, 0.4) 55%,
    transparent 100%
  );
  animation: table-skeleton-pulse 2.2s ease-in-out infinite;
}

.table-empty {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 22rem;
  margin: 0.35rem 0 0.15rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 0;
  background: transparent;
  text-align: center;
  overflow: hidden;
}

.table-empty-skeleton {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  min-height: 100%;
  margin: 0;
  border-radius: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--secondary) 42%, transparent) 0,
    color-mix(in srgb, var(--secondary) 42%, transparent) 2.15rem,
    transparent 2.15rem,
    transparent 2.95rem
  );
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 22%,
    rgba(0, 0, 0, 0.4) 55%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 22%,
    rgba(0, 0, 0, 0.4) 55%,
    transparent 100%
  );
  animation: table-skeleton-pulse 2.2s ease-in-out infinite;
}

.table-empty-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.table-empty-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 18rem);
  color: var(--secondary);
}

.table-empty-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 14rem;
  object-fit: contain;
}

.table-empty-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.table-skeleton-row > td {
  padding: 0.35rem 0 0.15rem !important;
  border-bottom: 0 !important;
  vertical-align: top;
  background: transparent;
}

.admin-leads-table-wrap:has(.table-skeleton),
.soft-phone-data-wrap:has(.table-skeleton),
.products-table-wrap:has(.table-skeleton),
.order-vps-table-wrap:has(.table-skeleton),
.soft-phone-numbers-card:has(.table-skeleton),
.soft-phone-buy-table-wrap:has(.table-skeleton) {
  min-height: 16rem;
}

.admin-leads-table-wrap:has(.table-empty),
.soft-phone-data-wrap:has(.table-empty),
.products-table-wrap:has(.table-empty),
.order-vps-table-wrap:has(.table-empty),
.soft-phone-numbers-card:has(.table-empty),
.soft-phone-buy-table-wrap:has(.table-empty) {
  min-height: 24rem;
}

@keyframes table-skeleton-pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

.admin-leads-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  max-width: 72rem;
}

.admin-leads-toolbar .notif-input,
.admin-leads-toolbar .notif-create-submit,
.admin-leads-toolbar .soft-phone-list-btn,
.admin-leads-toolbar .admin-ghost-btn {
  height: 2.5rem;
  min-height: 2.5rem;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
}

.admin-leads-toolbar .users-search-wrap {
  flex: 1;
  min-width: min(100%, 16rem);
  max-width: 24rem;
}

.admin-leads-toolbar .users-search {
  width: 100%;
  min-width: 0;
}

.admin-leads-status-filter {
  margin: 0;
  min-width: 11rem;
}

.admin-leads-status-filter .notif-input {
  min-width: 11rem;
}

.admin-leads-date-filter {
  margin: 0;
}

.admin-leads-date-filter .notif-input {
  min-width: 9.5rem;
  width: 9.5rem;
}

.admin-leads-csv-btn {
  width: auto;
  gap: 0.45rem;
  margin-left: auto;
  margin-top: 0;
  min-width: 7.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  flex-shrink: 0;
}

.admin-leads-csv-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.admin-leads-csv-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-leads-page .admin-leads-csv-btn {
  margin-left: auto;
}

.admin-leads-page .admin-leads-toolbar,
.admin-leads-management-page .admin-leads-toolbar {
  margin-top: 1.25rem;
}

.admin-leads-page .admin-leads-card,
.admin-leads-management-page .admin-leads-card,
.audit-logs-page .admin-leads-card,
.agency-management-page .admin-leads-card {
  margin-top: 0;
  /* soft-phone-numbers-card zeros bottom pad; keep card border closed under the table */
  padding-bottom: 1.15rem;
}

.admin-leads-page .admin-leads-body {
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
  /* ponytail: 5× real lead rows (~4.1rem: 0.85×2 pad + two-line cell), + thead */
  min-height: calc(2.4rem + 5 * 4.1rem);
}

.admin-leads-page .admin-leads-table-wrap[hidden] {
  display: none;
}

.admin-leads-page .admin-leads-table .admin-leads-row:last-of-type td {
  border-bottom-color: transparent;
}

.admin-leads-page .admin-leads-fill {
  flex: 1 1 0;
  min-height: 0;
  margin-top: -1px;
  position: relative;
  z-index: 1;
  background: #fff;
}

.admin-leads-page .admin-leads-fill .table-skeleton {
  height: 100%;
  min-height: 100%;
  margin: 0;
}

.admin-leads-page .admin-leads-table-wrap[hidden] + .admin-leads-fill .table-skeleton {
  min-height: calc(5 * 4.1rem);
}

.audit-logs-page .admin-leads-csv-btn {
  margin-left: auto;
}

.audit-logs-page .admin-leads-toolbar {
  margin-top: 1.25rem;
}

.admin-leads-table-wrap {
  max-width: 72rem;
  min-height: 0;
  height: max-content;
  max-height: calc(100vh - 12rem);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  /* ponytail: no vertical pad - sticky top:0 + flush end at last row divider */
  padding: 0 1.1rem;
}

.admin-leads-page .admin-leads-card .admin-leads-table-wrap,
.admin-leads-management-page .admin-leads-card .admin-leads-table-wrap,
.admin-lead-reassignment-page .admin-leads-card .admin-leads-table-wrap,
.audit-logs-page .admin-leads-card .admin-leads-table-wrap,
.agency-management-page .admin-leads-card .admin-leads-table-wrap {
  flex: 0 1 auto;
  max-width: none;
  width: 100%;
  max-height: calc(100vh - 14rem);
  margin-top: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.admin-leads-table {
  min-width: 40rem;
  font-size: 0.88rem;
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-leads-table thead tr {
  border-bottom: 0;
}

.admin-leads-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.85rem 1rem 0.65rem 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #9a948c;
  background: #fff;
  border-bottom: 1px solid #e6e2dc;
}

.admin-leads-table .order-vps-plan-row td {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid #f0ece7;
  vertical-align: middle;
}

.admin-leads-table .order-vps-table-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: #9a948c;
}

.admin-leads-table .order-vps-table-spec-cell {
  min-width: 0;
}

.admin-leads-table .order-vps-table-spec-primary {
  font-weight: 400;
  font-size: 0.88rem;
}

.admin-leads-table .order-vps-table-spec-secondary {
  margin-top: 0.1rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: #a39e96;
}

.admin-leads-table .admin-leads-notes-cell .order-vps-table-spec-secondary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 14rem;
}

.admin-leads-notes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid #d8d2c9;
  border-radius: 999px;
  background: #fff;
  color: var(--primary, #2f5d9f);
  cursor: pointer;
}

.admin-leads-notes-btn:hover {
  border-color: var(--primary, #2f5d9f);
  background: var(--secondary);
}

.admin-leads-notes-btn svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
}

.admin-leads-notes-lead {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a948c;
}

.admin-leads-notes-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222220;
}

.admin-leads-name {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--primary);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.admin-leads-name:hover {
  text-decoration: underline;
}

.admin-lead-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5c574f;
  background-color: #f0ebe4;
  border-color: #e0d9cf;
}

.admin-lead-status--new {
  color: var(--primary, #2f5d9f);
  background-color: var(--secondary);
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
}

.admin-lead-status--contacted {
  color: var(--primary, #2f5d9f);
  background-color: var(--secondary);
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
}

.admin-lead-status--qualified {
  color: #067647;
  background-color: #e8f5ef;
  border-color: #abefc6;
}

.admin-lead-status--callback {
  color: #b54708;
  background-color: #fef0c7;
  border-color: #fedf89;
}

.admin-lead-status--not_qualified,
.admin-lead-status--not_interested {
  color: #b42318;
  background-color: #fee4e2;
  border-color: #fecdca;
}

.admin-lead-status--pending {
  color: #b54708;
  background-color: #fef0c7;
  border-color: #fedf89;
}

.admin-lead-status--approved {
  color: var(--primary, #2f5d9f);
  background-color: var(--secondary);
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
}

.admin-lead-status--rejected {
  color: #b42318;
  background-color: #fee4e2;
  border-color: #fecdca;
}

.admin-lead-status--verified {
  color: #067647;
  background-color: #e8f5ef;
  border-color: #abefc6;
}

.reassign-user-note {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: anywhere;
}

.reassign-actions {
  flex-wrap: wrap;
  gap: 0.3rem;
}

.reassign-decision-cell {
  min-width: 0;
}

.reassign-decision-history {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.admin-lead-reassignment-page .admin-leads-card {
  max-width: none;
  width: 100%;
  overflow: hidden;
}

.admin-lead-reassignment-page .admin-leads-card.soft-phone-numbers-card {
  max-width: none;
}

.admin-lead-reassignment-page .admin-leads-card .admin-leads-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-lead-reassignment-page .reassign-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}

.admin-lead-reassignment-page .reassign-table thead th {
  white-space: nowrap;
}

.admin-lead-reassignment-page .reassign-table .order-vps-table-index-col,
.admin-lead-reassignment-page .reassign-table .order-vps-table-index {
  width: 3%;
}

.admin-lead-reassignment-page .reassign-table th:nth-child(2),
.admin-lead-reassignment-page .reassign-table td:nth-child(2) {
  width: 16%;
}

.admin-lead-reassignment-page .reassign-table th:nth-child(3),
.admin-lead-reassignment-page .reassign-table td:nth-child(3) {
  width: 14%;
}

.admin-lead-reassignment-page .reassign-table th:nth-child(4),
.admin-lead-reassignment-page .reassign-table td:nth-child(4) {
  width: 11%;
}

.admin-lead-reassignment-page .reassign-table th:nth-child(5),
.admin-lead-reassignment-page .reassign-table td:nth-child(5) {
  width: 14%;
}

.admin-lead-reassignment-page .reassign-table th:nth-child(6),
.admin-lead-reassignment-page .reassign-table td:nth-child(6) {
  width: 26%;
}

.admin-lead-reassignment-page .reassign-table th:nth-child(7),
.admin-lead-reassignment-page .reassign-table td:nth-child(7) {
  width: 16%;
}

.admin-lead-reassignment-page .reassign-table .order-vps-table-spec-cell {
  min-width: 0;
  max-width: none;
}

.admin-lead-reassignment-page .reassign-table .order-vps-table-spec-primary,
.admin-lead-reassignment-page .reassign-table .order-vps-table-spec-secondary,
.admin-lead-reassignment-page .reassign-table .soft-phone-table-secondary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.admin-lead-reassignment-page .reassign-table .reassign-user-note {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.admin-lead-reassignment-page .reassign-table .reassign-decision-history .order-vps-table-spec-primary,
.admin-lead-reassignment-page .reassign-table .reassign-decision-history .order-vps-table-spec-secondary {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.admin-lead-reassignment-page .reassign-table .reassign-decision-history .order-vps-table-spec-primary {
  -webkit-line-clamp: 2;
  font-size: 0.82rem;
  font-weight: 600;
  color: #222220;
}

.admin-lead-reassignment-page .reassign-table .reassign-decision-history .order-vps-table-spec-secondary {
  -webkit-line-clamp: 3;
}

.admin-lead-reassignment-page .reassign-table .admin-lead-status {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
}

.admin-lead-reassignment-page .reassign-actions .agent-leads-action-btn {
  white-space: nowrap;
}

.admin-leads-value-cell {
  min-width: 5.5rem;
}

.admin-leads-value-input {
  width: 5.5rem;
  min-width: 5.5rem;
  height: 2.1rem;
  min-height: 2.1rem;
  padding: 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.admin-leads-details {
  margin: 0.35rem 0 0;
  padding: 0;
  border-top: 0;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem 1.25rem;
}

.admin-leads-details .leads-mgmt-field dt {
  color: #9a948c;
}

.admin-leads-details .leads-mgmt-field dd {
  font-size: 0.88rem;
  color: #222220;
}

.area-codes-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  max-width: 72rem;
}

.area-codes-toolbar .users-search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 22rem;
}

.area-codes-toolbar .users-search {
  width: 100%;
  min-width: 0;
}

.area-codes-toolbar .users-count {
  margin-left: auto;
}

.area-codes-state-grid {
  display: grid;
  gap: 1rem;
  max-width: 72rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.area-codes-no-results {
  margin: 0 0 1rem;
  color: #6a6662;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .area-codes-state-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.area-codes-state-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  height: 18rem;
  min-width: 0;
  overflow: hidden;
}

.area-codes-state-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.area-codes-state-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.area-codes-group-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #222220;
}

.area-codes-group-code {
  margin-left: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a948c;
  font-weight: 600;
}

.area-codes-state-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a948c;
  white-space: nowrap;
}

.area-codes-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-content: flex-start;
}

.area-code-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.area-codes-state-empty {
  margin: 0;
  font-size: 0.8rem;
  color: #9a948c;
}

.area-code-inline-input {
  min-width: 0;
  height: 2.5rem;
  min-height: 2.5rem;
  box-sizing: border-box;
}

.area-code-inline-btn {
  width: auto;
  height: 2.5rem;
  min-height: 2.5rem;
  min-width: 4.25rem;
  margin-top: 0;
  padding: 0 0.85rem;
  box-sizing: border-box;
}

.area-codes-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.75rem;
  padding: 0.15rem 0.25rem 0.15rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #d7d2cc);
  border-radius: var(--radius-sm);
  background: var(--secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.area-codes-remove {
  border: 0;
  background: transparent;
  color: #9a948c;
  font-size: 1rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
}

.area-codes-remove:hover {
  color: #b42318;
}

.product-form {
  display: grid;
  gap: 0.85rem;
}

.product-form-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.product-form-actions .notif-create-submit,
.product-form-actions .lead-modal-cancel {
  width: 100%;
}

.product-form-actions .lead-modal-cancel {
  min-height: 2.65rem;
  margin-top: 0;
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  box-sizing: border-box;
}

.product-form-actions .lead-modal-cancel[hidden] {
  display: none !important;
}

.products-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0;
  color: #6a6662;
  cursor: pointer;
}

.products-edit:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--secondary) 70%, #fff);
}

.admin-main:has(.products-page) > .admin-main-inner,
.admin-main:has(.email-settings-page) > .admin-main-inner {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.products-page,
.email-settings-page {
  margin-top: auto;
  margin-bottom: auto;
}

.products-layout {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  max-width: 68rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 960px) {
  .products-layout {
    grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    gap: 1.5rem;
  }

  /* ponytail: height:0 + min-height:100% sizes catalog to the add panel, not its own content */
  .products-catalog {
    height: 0;
    min-height: 100%;
  }
}

.products-add-panel {
  max-width: none;
  margin-bottom: 0;
}

.products-catalog {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 22rem;
}

.products-catalog.notif-summary {
  position: static;
}

.products-catalog-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow: hidden;
  padding-bottom: 1.15rem;
}

.products-catalog > .table-pager {
  flex-shrink: 0;
  margin-top: 0.75rem;
}

.products-catalog-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-top: 0.85rem;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.products-table-wrap {
  flex: 0 1 auto;
  overflow: auto;
  max-height: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.products-catalog-fill {
  flex: 1 1 0;
  min-height: 0;
  margin-top: 0.15rem;
}

.products-catalog-fill .table-skeleton {
  height: 100%;
  min-height: 100%;
  margin: 0;
}

.products-table-wrap[hidden] + .products-catalog-fill .table-skeleton {
  min-height: 14rem;
}

.products-table {
  width: 100%;
  min-width: 36rem;
  table-layout: fixed;
  font-size: 0.88rem;
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
}

.products-table thead tr {
  border-bottom: 0;
}

.products-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0 1rem 0.65rem 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #9a948c;
  background: #fff;
  border-bottom: 1px solid #e6e2dc;
}

.products-table .order-vps-table-index-col {
  width: 2.25rem;
}

.products-table .products-table-help-col,
.products-table .products-table-help-cell {
  width: 6.5rem;
  text-align: center;
}

.products-table .products-table-help-cell {
  padding-right: 0.35rem;
}

.products-table th:nth-child(4) {
  width: 5.5rem;
}

.products-table th:nth-child(5) {
  width: 6.5rem;
}

.products-table th:nth-child(7),
.products-table td.products-table-actions {
  width: 6.5rem;
}

.products-table .order-vps-plan-row td {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid #f0ece7;
  vertical-align: middle;
}

.products-table .order-vps-plan-row:last-of-type td {
  border-bottom: 0;
}

.products-table .order-vps-table-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: #9a948c;
}

.products-table .order-vps-table-spec-cell {
  min-width: 0;
}

.products-table .order-vps-table-spec-primary,
.products-table .order-vps-table-price {
  font-weight: 400;
  font-size: 0.88rem;
}

.products-table .shop-product-help {
  margin-inline: auto;
}

.products-table .shop-product-help-tip {
  bottom: auto;
  top: calc(100% + 0.45rem);
  z-index: 6;
  transform: translate(-50%, -0.15rem);
}

.products-table .shop-product-help:hover .shop-product-help-tip,
.products-table .shop-product-help:focus-visible .shop-product-help-tip {
  transform: translate(-50%, 0);
}

.products-table .shop-product-help-tip::after {
  top: auto;
  bottom: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-top: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  transform: translate(-50%, 55%) rotate(45deg);
}

.products-table .order-vps-table-spec-secondary {
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 400;
  color: #b8b3ab;
}

.products-table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.products-promo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(15, 107, 76, 0.28);
  border-radius: 999px;
  background: rgba(15, 107, 76, 0.08);
  color: #0f6b4c;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.products-promo-pill:hover {
  background: rgba(15, 107, 76, 0.14);
  border-color: rgba(15, 107, 76, 0.4);
}

.products-promo-pill.is-exhausted {
  border-color: rgba(154, 148, 140, 0.45);
  background: rgba(154, 148, 140, 0.12);
  color: #9a948c;
}

.products-promo-pill.is-exhausted:hover {
  background: rgba(154, 148, 140, 0.18);
}

#product-promo-modal .lead-modal-header {
  margin-bottom: 0;
  padding-bottom: 1.15rem;
}

#product-promo-modal .lead-modal-body {
  padding-top: 1.15rem;
}

#product-promo-modal .lead-modal-actions {
  align-items: stretch;
}

#product-promo-modal .lead-modal-actions .notif-create-submit {
  flex: 1 1 0;
  width: auto;
  min-height: 2.65rem;
  margin-top: 0;
  box-sizing: border-box;
}

#product-promo-modal .notif-create-submit[hidden] {
  display: none !important;
}

.products-promo-info {
  margin: 0;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}

.products-promo-info .leads-mgmt-field dd {
  font-size: 0.92rem;
  color: #222220;
}

.products-promo-scope {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.products-promo-scope > legend {
  padding: 0;
  margin: 0;
}

.products-promo-scope .notif-style-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.55rem;
}

.products-promo-scope .notif-style-card {
  justify-content: center;
  text-align: center;
  min-height: 2.5rem;
}

.products-checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #222220;
  cursor: pointer;
}

.users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.users-toolbar .users-count {
  margin-left: auto;
}

.users-search-wrap {
  min-width: min(100%, 18rem);
}

.users-search {
  min-width: 16rem;
}

.users-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a948c;
  white-space: nowrap;
}

.users-count-sep {
  margin: 0 0.15rem;
  opacity: 0.65;
}

.users-list {
  display: grid;
  gap: 0.85rem;
}

.users-card {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: #fff;
  scroll-margin-top: 1.5rem;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.users-card.is-targeted {
  background: var(--secondary);
  box-shadow: 0 0 0 3px rgba(18, 75, 196, 0.25);
}

.users-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dotted #c9c4bc;
}

.users-card-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.users-avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.users-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.users-card-name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.users-card-email {
  margin: 0.2rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #837972;
  word-break: break-word;
}

.users-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b54708;
}

.users-status.is-verified {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
}

.users-verify-btn {
  flex: 0 0 auto;
  width: auto;
  min-height: 2.15rem;
  margin-top: 0;
  padding: 0.4rem 0.9rem;
}

.users-card-grid {
  display: grid;
  gap: 0.75rem 1rem;
  margin: 0.95rem 0 0;
  padding: 0;
}

@media (min-width: 640px) {
  .users-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .users-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.users-card-grid > div {
  min-width: 0;
}

.users-card-grid dt,
.users-card-section-label,
.users-extra-list dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a948c;
}

.users-card-grid dd,
.users-card-section-value,
.users-extra-list dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #222220;
  line-height: 1.4;
  word-break: break-word;
}

.users-card-section {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dotted #c9c4bc;
}

.users-extra-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.45rem 0 0;
}

.users-extra-list > div {
  display: grid;
  gap: 0.15rem;
}

@media (min-width: 640px) {
  .users-extra-list > div {
    grid-template-columns: minmax(6rem, 10rem) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: baseline;
  }

  .users-extra-list dd {
    margin: 0;
  }
}

.users-empty {
  padding: 2rem 1rem;
  border: 1px dotted #c9c4bc;
  text-align: center;
}

.users-empty p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a948c;
  line-height: 1.5;
}

.users-empty p + p {
  margin-top: 0.35rem;
}

/* -- Chat -- */
.chat-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: calc(100vh - 4rem);
}

.chat-page:not(.chat-page--admin) {
  flex: 1;
  min-height: 0;
  height: 100%;
  gap: 0;
  overflow: hidden;
}

.chat-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.chat-page-title,
.notif-create-title {
  margin: 0;
}

.chat-page-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foreground);
}

.chat-page-subtitle {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.chat-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 28rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.chat-page--admin {
  flex: 1;
  min-height: 0;
  height: 100%;
  gap: 0;
  overflow: hidden;
}

.chat-page--admin .chat-shell,
.chat-page:not(.chat-page--admin) .chat-shell {
  min-height: 0;
  flex: 1;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.chat-admin-layout {
  display: grid;
  gap: 0;
  flex: 1;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--border);
  border-top: 0;
  background: var(--bg-surface);
  overflow: hidden;
}

@media (min-width: 900px) {
  .chat-admin-layout {
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    /* ponytail: avoid doubling admin-sidebar border-right */
    border-left: 0;
  }
}

.chat-inbox {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar-bg);
}

@media (min-width: 900px) {
  .chat-inbox {
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
}

.chat-inbox-title {
  margin: 0;
  padding: 0.85rem 1rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.chat-page--agency-admin .chat-inbox > #chat-inbox-list {
  flex: 1 1 auto;
  min-height: 0;
}

.chat-inbox-hidden-section {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 1px dotted #c9c4bc;
  padding-top: 0.55rem;
  margin-top: 0.15rem;
}

.chat-inbox-hidden-section[hidden] {
  display: none !important;
}

.chat-inbox-hidden-section .chat-inbox-title {
  padding: 0.35rem 0.85rem 0.45rem;
}

.chat-inbox-hidden-section .chat-inbox-list {
  flex: 0 1 auto;
  max-height: 12rem;
  overflow-y: auto;
}

.chat-inbox-hidden-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-inbox-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  border-bottom: 1px dotted #c9c4bc;
  padding-bottom: 0.7rem;
}

.chat-inbox-search {
  display: block;
  padding: 0 0.85rem;
}

.chat-inbox-search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  color: var(--foreground);
}

.chat-inbox-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent);
}

.chat-inbox-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  padding: 0.55rem 0.85rem 0;
}

.chat-inbox-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a6662;
  cursor: pointer;
  user-select: none;
}

.chat-inbox-filter input {
  accent-color: var(--primary);
}

.chat-inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.chat-inbox-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px dotted #c9c4bc;
}

.chat-inbox-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem 0.5rem 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.chat-inbox-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.chat-avatar {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-avatar--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--secondary);
}

.chat-avatar-icon {
  display: block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.78;
}

.chat-avatar-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.chat-avatar--lg .chat-avatar-icon {
  font-size: 1.2rem;
}

.chat-avatar--lg {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.7rem;
}

.chat-thread-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.chat-typing {
  margin: 0.15rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--muted-foreground, #6b7280) 90%, transparent);
  animation: chat-typing-pulse 1.4s ease-in-out infinite;
}

.chat-typing[hidden] {
  display: none !important;
}

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

.chat-inbox-row:hover .chat-inbox-item,
.chat-inbox-item:hover {
  background: color-mix(in srgb, var(--secondary) 70%, transparent);
}

.chat-inbox-item.is-active {
  background: var(--secondary);
}

.chat-fav-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  border: 0;
  background: transparent;
  color: #c9c4bc;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.chat-fav-btn svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.chat-fav-btn.is-on {
  color: var(--primary);
}

.chat-fav-btn.is-on svg {
  fill: currentColor;
  stroke: currentColor;
}

.chat-fav-btn[data-hide-group].is-on svg {
  fill: none;
}

.chat-fav-btn:hover {
  color: var(--primary);
}

.chat-fav-btn--header {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
}

.chat-fav-btn--header svg {
  width: 1.1rem;
  height: 1.1rem;
}

.chat-fav-btn[hidden] {
  display: none !important;
}

.chat-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  flex-shrink: 0;
}

.chat-thread-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.chat-thread-search {
  position: relative;
  flex-shrink: 0;
  padding: 0.55rem 1rem 0.65rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--secondary) 55%, var(--background));
}

.chat-thread-search[hidden] {
  display: none !important;
}

.chat-thread-search-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chat-thread-search-row input {
  flex: 1;
  min-width: 0;
  height: 2.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 0.7rem;
  font-size: 0.85rem;
  color: var(--foreground);
  background: var(--background);
}

.chat-thread-search-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 15%, transparent);
}

.chat-thread-search-meta {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #8a8580;
  white-space: nowrap;
}

.chat-thread-search-results {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.2rem;
  max-height: 12rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
}

.chat-thread-search-results[hidden] {
  display: none !important;
}

.chat-thread-search-result {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.chat-thread-search-result:hover,
.chat-thread-search-result.is-active {
  background: var(--secondary);
}

.chat-thread-search-result-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #8a8580;
}

.chat-thread-search-result-text {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.4rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--foreground);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.chat-profile-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chat-inbox-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.85rem auto 0;
}

.chat-thread-actions .soft-phone-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.soft-phone-list-btn[hidden] {
  display: none !important;
}

#agency-group-members-list.contracts-audience-list,
#admin-agency-group-members-list.contracts-audience-list {
  margin-top: 0.45rem;
}

#agency-group-members-list .contracts-audience-option,
#admin-agency-group-members-list .contracts-audience-option {
  align-items: center;
}

#agency-group-members-list .contracts-audience-option > span,
#admin-agency-group-members-list .contracts-audience-option > span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

#agency-group-members-list .contracts-audience-option strong,
#admin-agency-group-members-list .contracts-audience-option strong {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
}

#agency-group-members-list .contracts-audience-option > span > span,
#admin-agency-group-members-list .contracts-audience-option > span > span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

.admin-agency-group-panel {
  width: min(32rem, calc(100vw - 2rem));
}

.admin-agency-group-panel .notif-field {
  gap: 0.4rem;
}

.admin-agency-group-hint {
  margin: 0.35rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.35;
  color: #8a8580;
}

#admin-agency-group-members-list .chat-inbox-preview {
  margin: 0.35rem 0.15rem;
  font-size: 0.76rem;
  color: #8a8580;
}

#agency-group-modal .notif-style-card.profile-agency-toggle {
  margin-top: 0;
}

#agency-group-modal .notif-style-card .notif-style-copy {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

#agency-group-modal .notif-style-card .notif-style-meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted-foreground);
}

.chat-inbox-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--foreground);
}

.chat-inbox-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.chat-inbox-name-row .chat-inbox-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-presence-dot {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #b8b2aa;
}

.chat-presence-dot.is-online {
  background: #16a36a;
  box-shadow: 0 0 0 2px rgba(22, 163, 106, 0.12);
}

.chat-unread-badge {
  flex-shrink: 0;
}

.chat-inbox-preview {
  font-size: 0.78rem;
  color: #6a6662;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-inbox-time {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.chat-inbox-empty {
  padding: 1.25rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.chat-admin-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.chat-admin-placeholder {
  display: grid;
  place-content: center;
  gap: 0.35rem;
  flex: 1;
  min-height: 24rem;
  padding: 2rem 1rem;
  text-align: center;
}

.chat-selected-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.chat-shell.is-unselected .chat-selected-pane {
  display: none;
}

.chat-shell:not(.is-unselected) > #chat-unselected {
  display: none;
}

.chat-admin-placeholder p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.chat-thread-name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
}

.chat-thread {
  flex: 1 1 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  background-color: var(--bg-surface);
  background-image: var(--bg-layers);
  background-size: var(--bg-layers-size);
  background-repeat: var(--bg-layers-repeat);
}

.chat-page:not(.chat-page--admin) .chat-thread {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
}

.chat-page--admin .chat-thread {
  flex: 1 1 0;
  max-height: none;
}

.chat-empty {
  margin: auto;
  text-align: center;
  padding: 1.5rem;
}

.chat-day-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0.65rem;
  color: var(--muted-foreground);
}

.chat-day-divider::before,
.chat-day-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #e0d9cf;
}

.chat-day-divider span {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-empty p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.chat-empty p + p {
  margin-top: 0.35rem;
}

.chat-bubble-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(36rem, 100%);
  align-self: flex-start;
}

.chat-bubble-row.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble {
  max-width: min(32rem, calc(100% - 3.25rem));
  padding: 0.7rem 0.85rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.chat-bubble.is-mine {
  background: var(--secondary);
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
}

.chat-bubble-row.is-flash .chat-bubble,
.chat-bubble.is-flash {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}

.chat-reply-preview {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  margin: 0 0 0.55rem;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  text-align: left;
  cursor: pointer;
}

.chat-reply-preview-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.chat-reply-preview-text {
  font-size: 0.75rem;
  color: #6a6662;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-bubble-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--foreground);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-file {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px dotted #c9c4bc;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--background) 55%, transparent);
}

.chat-image {
  display: block;
  margin-top: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--background);
  max-width: 100%;
}

.chat-image img {
  display: block;
  max-width: min(18rem, 100%);
  max-height: 16rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.chat-bubble.is-mine .chat-file {
  background: color-mix(in srgb, var(--background) 45%, transparent);
}

.chat-file:hover {
  border-style: solid;
  border-color: var(--primary);
}

.chat-file-icon {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--primary);
  flex-shrink: 0;
}

.chat-file-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.chat-file-meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.chat-file-name {
  font-size: 0.8rem;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-file-size {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.chat-bubble-footer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.chat-bubble-sender {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground, #64748b);
}

.chat-bubble-time {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.chat-receipt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  user-select: none;
}

.chat-receipt.is-delivered {
  color: #9a948c;
}

.chat-receipt.is-seen {
  color: var(--primary);
}

.chat-bubble.is-mine .chat-receipt.is-seen {
  color: color-mix(in srgb, var(--primary) 85%, #1e40af 15%);
}

.chat-bubble-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.chat-bubble-row:hover .chat-bubble-actions,
.chat-bubble-row:focus-within .chat-bubble-actions {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .chat-bubble-actions {
    opacity: 1;
    pointer-events: auto;
  }
}

.chat-action-btn {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: #6a6662;
  padding: 0;
  cursor: pointer;
}

.chat-action-btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

.chat-action-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.chat-react-wrap {
  position: relative;
}

.chat-react-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.35rem);
  bottom: auto;
  transform: translateX(-50%);
  display: none;
  gap: 0.15rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  z-index: 5;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--foreground) 8%, transparent);
}

.chat-react-menu:not([hidden]) {
  display: flex;
}

.chat-bubble-row.is-mine .chat-react-menu {
  left: auto;
  right: 0;
  transform: none;
}

.chat-bubble-row.is-theirs .chat-react-menu {
  left: 0;
  transform: none;
}

.chat-react-emoji,
.chat-reaction-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  cursor: pointer;
}

.chat-react-emoji {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  padding: 0;
}

.chat-react-emoji:hover {
  background: var(--secondary);
}

.chat-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
  min-height: 0;
}

.chat-reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.chat-reaction-chip.is-mine {
  border-color: var(--primary);
  background: var(--secondary);
}

.chat-composer-wrap {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 0.75rem 0.85rem 0.85rem;
  flex-shrink: 0;
  margin-top: auto;
}

.chat-mention-menu {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: calc(100% - 0.35rem);
  z-index: 20;
  display: grid;
  gap: 0.15rem;
  max-height: 12rem;
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  box-shadow: 0 8px 24px rgba(34, 34, 32, 0.12);
}

.chat-mention-menu[hidden] {
  display: none;
}

.chat-mention-option {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--foreground);
}

.chat-mention-option:hover,
.chat-mention-option.is-active {
  background: var(--secondary);
}

.chat-mention-option-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.chat-mention-option-sub {
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

.chat-mention {
  font-weight: 650;
  color: var(--primary, #2f5d9f);
}

.chat-reply-bar,
.chat-file-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px dotted #c9c4bc;
  border-radius: var(--radius-sm);
  background: var(--secondary);
}

.chat-reply-bar[hidden],
.chat-file-bar[hidden] {
  display: none;
}

.chat-suggestions {
  margin-bottom: 0.55rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--secondary);
}

.chat-suggestions-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.chat-suggestions-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.chat-suggestions-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  padding: 0.05rem 0;
  scrollbar-width: thin;
}

.chat-suggestions-empty {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #6a6662;
  white-space: nowrap;
}

.chat-suggestions-empty[hidden] {
  display: none;
}

.chat-suggestion-chip {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.chat-suggestion-send {
  max-width: 14rem;
  padding: 0.32rem 0.6rem;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.chat-suggestion-send:hover {
  background: color-mix(in srgb, var(--secondary) 70%, var(--primary) 8%);
  color: var(--primary);
}

.chat-suggestion-delete {
  padding: 0 0.45rem;
  border: 0;
  border-left: 1px solid var(--border);
  background: transparent;
  color: #9a948c;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
}

.chat-suggestion-delete:hover {
  color: #b42318;
  background: #fef3f2;
}

.chat-suggestions-add-btn {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.chat-suggestions-add-btn:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--secondary) 70%, var(--primary) 8%);
}

.chat-suggestions-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dotted #c9c4bc;
}

.chat-suggestions-form[hidden] {
  display: none;
}

.chat-suggestions-input {
  flex: 1;
  min-width: 0;
  min-height: 2.15rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.85rem;
  color: var(--foreground);
}

.chat-suggestions-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 15%, transparent);
}

.chat-suggestions-save {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.chat-suggestions-save:hover:not(:disabled) {
  background: var(--primary-hover);
}

.chat-suggestions-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-suggestions-cancel {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--border);
}

.chat-suggestions-cancel:hover {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
}

.chat-suggestion-delete-panel {
  width: min(24rem, 100%);
  max-height: none;
}

.chat-suggestion-delete-copy {
  margin: 0;
  font-size: 0.92rem;
  color: var(--foreground);
}

.chat-suggestion-delete-preview {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: #6a6662;
  font-size: 0.82rem;
  line-height: 1.35;
  word-break: break-word;
}

.chat-suggestion-delete-preview:empty {
  display: none;
}

.chat-suggestion-delete-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border: 1px solid #fecdca;
  border-radius: var(--radius-sm);
  background: #fef3f2;
  color: #b42318;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
}

.chat-suggestion-delete-confirm:hover:not(:disabled) {
  background: #fee4e2;
}

.chat-suggestion-delete-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-reply-bar-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.chat-reply-bar-text,
#chat-file-name {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #6a6662;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 36rem;
}

.chat-reply-cancel {
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.15rem;
}

.chat-reply-cancel:hover {
  color: var(--foreground);
}

.chat-composer {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: end;
}

.chat-attach-btn {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #6a6662;
  cursor: pointer;
  background: var(--secondary);
}

.chat-attach-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: color-mix(in srgb, var(--secondary) 70%, var(--primary) 8%);
}

.chat-attach-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.chat-emoji-wrap {
  position: relative;
}

.chat-emoji-btn {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #6a6662;
  cursor: pointer;
  background: var(--secondary);
  padding: 0;
}

.chat-emoji-btn:hover,
.chat-emoji-btn[aria-expanded="true"] {
  color: var(--primary);
  border-color: var(--primary);
  background: color-mix(in srgb, var(--secondary) 70%, var(--primary) 8%);
}

.chat-emoji-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.4rem);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(8, 1.75rem);
  gap: 0.15rem;
  width: max-content;
  max-width: min(18rem, 70vw);
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--foreground) 12%, transparent);
}

.chat-emoji-panel[hidden] {
  display: none !important;
}

.chat-emoji-option {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
}

.chat-emoji-option:hover {
  background: var(--secondary);
}

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

.chat-input {
  width: 100%;
  min-height: 2.4rem;
  max-height: 8.75rem;
  resize: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--foreground);
  background: var(--background);
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 15%, transparent);
}

.chat-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 2.4rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.chat-send-btn:hover:not(:disabled) {
  background: var(--primary-hover);
}

.chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-page .auth-flash {
  margin-top: 0.55rem;
}

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

.shop-page .auth-flash {
  margin-bottom: 1rem;
}

.shop-page.signup-info-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shop-page.signup-info-page > * {
  width: 100%;
  max-width: 68rem;
}

.shop-unavailable {
  margin: 0;
  color: #5c574f;
  font-size: 0.95rem;
}

.shop-how-it-works {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 5rem;
}

.shop-how-heading {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
}

.shop-how-steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.shop-how-connector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.75;
}

.shop-how-arrow-right {
  display: none;
}

.shop-how-arrow-down {
  display: block;
}

@media (min-width: 1100px) {
  .shop-how-steps {
    flex-direction: row;
    align-items: stretch;
    gap: 0.45rem;
  }

  .shop-how-step {
    flex: 1 1 0;
    min-width: 0;
  }

  .shop-how-connector {
    align-self: center;
  }

  .shop-how-arrow-right {
    display: block;
  }

  .shop-how-arrow-down {
    display: none;
  }
}

.shop-how-step {
  display: flex;
  align-items: flex-start;
  min-height: 100%;
  padding: 0.85rem 0.9rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--secondary);
}

.shop-how-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.shop-how-step-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

.shop-how-step-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.shop-checkout-layout {
  margin-top: 1.25rem;
  margin-inline: auto;
  width: 100%;
  max-width: 68rem;
}

.shop-catalog {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.shop-toolbar {
  margin-bottom: 0;
  max-width: none;
}

.shop-toolbar .users-search-wrap {
  flex: 1 1 12rem;
  max-width: none;
}

.shop-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 0.65rem;
}

.shop-products-empty {
  margin: 0.35rem 0 0;
  padding: 1.25rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--muted-foreground);
}

.shop-product-card.is-hidden {
  display: none;
}

.shop-product-card {
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 3.6rem;
  margin: 0;
  padding: 0.85rem 1rem;
  text-align: left;
  font: inherit;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--foreground);
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}

.shop-product-card:hover {
  border-color: transparent;
}

.shop-product-card.is-selected,
.shop-product-card.is-selected:hover,
.shop-product-card[aria-selected="true"],
.shop-product-card[aria-selected="true"]:hover {
  border-color: var(--primary);
  background: var(--secondary);
}

.shop-product-card.has-promo {
  overflow: visible;
  isolation: isolate;
}

.shop-product-card.has-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 30%,
    color-mix(in srgb, #fff 55%, transparent) 47%,
    color-mix(in srgb, #fff 75%, transparent) 50%,
    color-mix(in srgb, #fff 55%, transparent) 53%,
    transparent 70%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  animation: shop-promo-shine 2.8s ease-in-out infinite;
}

.shop-product-card.has-promo > *:not(.shop-product-promo) {
  position: relative;
  z-index: 1;
}

.shop-product-card.has-promo .shop-product-promo {
  z-index: 2;
}

@keyframes shop-promo-shine {
  0%,
  28% {
    background-position: 120% 0;
  }
  58%,
  100% {
    background-position: -20% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-product-card.has-promo::after {
    animation: none;
    display: none;
  }
}

.shop-product-lead {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.shop-product-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.shop-product-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 auto;
}

.shop-product-promo {
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}

.shop-product-card.is-selected .purchase-promo-pill,
.shop-product-card[aria-selected="true"] .purchase-promo-pill {
  border-color: var(--primary);
}

.shop-product-label-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.shop-product-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
}

.shop-product-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--primary);
  cursor: help;
}

.shop-product-help-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: 5;
  width: max-content;
  max-width: 14rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.4;
  text-transform: none;
  color: var(--foreground);
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.15rem);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.shop-product-help-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  background: #fff;
  transform: translate(-50%, -55%) rotate(45deg);
}

.shop-product-help:hover .shop-product-help-tip,
.shop-product-help:focus-visible .shop-product-help-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.shop-product-specs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.shop-product-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.shop-product-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.shop-product-price-amount {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--foreground-strong);
}

.shop-product-price-period {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.shop-product-price--promo {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.shop-product-counter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
  min-width: 9.5rem;
}

.shop-product-stepper {
  display: grid;
  grid-template-columns: 2.35rem minmax(3.25rem, 1fr) 2.35rem;
  align-items: stretch;
  min-height: 2.45rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.shop-product-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.shop-product-stepper-btn--dec {
  border-right: 1px solid var(--primary);
}

.shop-product-stepper-btn--inc {
  border-left: 1px solid var(--primary);
}

.shop-product-stepper-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary) 70%, #fff);
}

.shop-product-stepper-btn:disabled {
  color: color-mix(in srgb, var(--primary) 35%, var(--muted));
  cursor: not-allowed;
}

.shop-product-stepper-symbol {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

.shop-product-stepper-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--foreground-strong);
  text-align: center;
  white-space: nowrap;
}

.shop-product-stepper-limits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.shop-product-card:not(.is-selected) .shop-product-counter {
  opacity: 0.55;
}

.shop-qty-field .notif-field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.shop-summary-qty-range {
  color: #9a948c;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.shop-qty-stepper {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  gap: 0.45rem;
  max-width: 14rem;
  align-items: center;
}

.shop-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #ddd9d4;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #222220;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.shop-qty-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--secondary);
}

.shop-qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.shop-qty-input {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.shop-summary-list {
  margin: 1rem 0 1.15rem;
}

.shop-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.65rem 1.5rem 1.75rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: #fff;
}

.shop-summary-heading {
  margin: 0;
  padding-bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: #111;
}

.shop-summary-divider {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px dotted color-mix(in srgb, var(--primary) 45%, var(--border));
}

.shop-summary-divider--row {
  margin: 1.2rem 0;
}

.shop-summary-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.shop-summary-row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.shop-summary-row-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.shop-summary-row-heading-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.shop-summary-help[hidden] {
  display: none;
}

.shop-summary-row-details {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-left: 0.85rem;
}

.shop-summary-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--foreground);
}

.shop-summary-detail-name {
  color: var(--muted-foreground);
}

.shop-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 0;
}

.shop-summary-total-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
}

.shop-summary-total-prices {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.shop-summary-total-amount {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111;
}

.shop-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.shop-buy-btn {
  width: 100%;
  margin: 0.85rem 0;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-buy-btn.is-disabled,
.shop-buy-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.shop-buy-btn.is-disabled:hover,
.shop-buy-btn[aria-disabled="true"]:hover {
  background: var(--primary);
}

.shop-payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  color: color-mix(in srgb, var(--foreground) 55%, var(--muted-foreground));
}

.shop-payment-logos li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: visible;
}

.shop-payment-logos iconify-icon {
  display: block;
  overflow: visible;
  opacity: 0.85;
}

.shop-payment-logos-item--amex iconify-icon {
  width: 2.85rem;
  height: 2.15rem;
}

.shop-powered-by-stripe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 0.45rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.shop-powered-by-stripe-logo {
  display: block;
  width: auto;
  height: 1.15rem;
}

.shop-price-promo {
  display: block;
  color: #067647;
  font-weight: 600;
}

.shop-price-was {
  text-decoration: line-through;
}

.purchase-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5c574f;
  background: #f0ebe4;
  border-color: #e0d9cf;
}

.purchase-status--paid {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}

.purchase-status--trialing {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
}

.purchase-status--pending {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}

.purchase-status--canceled,
.purchase-status--failed {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca;
}

.purchase-history-chart-card {
  margin: 0;
}

.purchase-history-stats {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-purchase-history-page .soft-phone-table-wrap,
.admin-purchase-history-page .table-pager,
.admin-purchase-history-page .purchase-history-stats,
.admin-purchase-history-page .purchase-history-charts,
.user-purchase-history-page .soft-phone-table-wrap,
.user-purchase-history-page .table-pager,
.user-purchase-history-page .purchase-history-stats,
.user-purchase-history-page .purchase-history-charts,
.billing-page .soft-phone-table-wrap {
  width: 100%;
  max-width: none;
}

.billing-page > .table-pager {
  width: 100%;
  max-width: none;
  /* Page uses flex gap; keep pager tight like purchase history. */
  margin-top: -0.5rem;
  margin-bottom: 0;
}

.purchase-history-card {
  max-width: none;
  max-height: none;
  min-height: 0;
  height: fit-content;
  overflow: visible;
  padding-bottom: 0;
  margin-bottom: 1rem;
}

.purchase-history-card .soft-phone-table-wrap {
  margin-bottom: 0;
  max-height: calc(100vh - 14rem);
  overflow: auto;
}

.admin-purchase-history-page > .table-pager,
.admin-purchase-history-page > .purchase-filter-empty,
.user-purchase-history-page > .table-pager,
.user-purchase-history-page > .purchase-filter-empty {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.purchase-history-table {
  min-width: 52rem;
}

.purchase-history-table th:nth-child(2),
.purchase-history-table td:nth-child(2) {
  width: 16%;
}

.purchase-history-table th:nth-child(3),
.purchase-history-table td:nth-child(3) {
  width: 14%;
}

.purchase-history-table th:nth-child(4),
.purchase-history-table td:nth-child(4) {
  width: 4.5rem;
}

.purchase-history-table th:nth-child(5),
.purchase-history-table td:nth-child(5) {
  width: 12rem;
  white-space: nowrap;
}

.purchase-history-table th:nth-child(6),
.purchase-history-table td:nth-child(6) {
  width: 8.5rem;
}

.purchase-history-table th:nth-child(7),
.purchase-history-table td:nth-child(7) {
  width: 7rem;
}

.purchase-history-table th:nth-child(8),
.purchase-history-table td:nth-child(8),
.purchase-history-table th:nth-child(9),
.purchase-history-table td:nth-child(9) {
  width: 6.25rem;
}

.purchase-history-table td:nth-child(8) .soft-phone-table-secondary,
.purchase-history-table td:nth-child(9) .soft-phone-table-secondary {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.user-purchase-history-table {
  min-width: 44rem;
}

.user-purchase-history-table th:nth-child(2),
.user-purchase-history-table td:nth-child(2) {
  width: 22%;
}

.user-purchase-history-table th:nth-child(3),
.user-purchase-history-table td:nth-child(3) {
  width: 4.5rem;
}

.user-purchase-history-table th:nth-child(4),
.user-purchase-history-table td:nth-child(4) {
  width: 12rem;
  white-space: nowrap;
}

.user-purchase-history-table th:nth-child(5),
.user-purchase-history-table td:nth-child(5) {
  width: 8.5rem;
}

.user-purchase-history-table th:nth-child(6),
.user-purchase-history-table td:nth-child(6) {
  width: 7rem;
}

.user-purchase-history-table th:nth-child(7),
.user-purchase-history-table td:nth-child(7) {
  width: 6.25rem;
}

.purchase-promo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #abefc6;
  background: #ecfdf3;
  color: #067647;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.purchase-total-amount {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #111;
}

.purchase-promo-savings {
  color: #067647 !important;
}

.purchase-history-card:has(.table-skeleton) .soft-phone-table-wrap {
  min-height: 12rem;
}

.purchase-history-card:has(.table-empty) .soft-phone-table-wrap,
.agent-leads-card:has(.table-empty) .soft-phone-table-wrap {
  min-height: 24rem;
}

.leads-mgmt-adjust {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.admin-leads-management-page .admin-leads-table-wrap {
  max-width: none;
  width: 100%;
}

.admin-leads-management-page .admin-leads-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.admin-leads-management-page .admin-leads-table .order-vps-table-index-col,
.admin-leads-management-page .admin-leads-table .order-vps-table-index {
  width: 2.75rem;
}

.admin-leads-management-page .admin-leads-table th:nth-child(3),
.admin-leads-management-page .admin-leads-table td:nth-child(3),
.admin-leads-management-page .admin-leads-table th:nth-child(4),
.admin-leads-management-page .admin-leads-table td:nth-child(4) {
  width: 7.25rem;
}

.admin-leads-management-page .admin-leads-table th:nth-child(5),
.admin-leads-management-page .admin-leads-table td:nth-child(5) {
  width: 5.75rem;
}

.admin-leads-management-page .admin-leads-table th:nth-child(6),
.admin-leads-management-page .admin-leads-table td:nth-child(6) {
  width: 10.5rem;
}

.admin-leads-management-page .admin-leads-table th:nth-child(7),
.admin-leads-management-page .admin-leads-table td:nth-child(7) {
  width: 5.75rem;
}

.admin-leads-management-page .admin-leads-table th:nth-child(8),
.admin-leads-management-page .admin-leads-table td:nth-child(8) {
  width: 7.25rem;
}

.admin-leads-management-page .admin-leads-table th:last-child,
.admin-leads-management-page .admin-leads-table td:last-child {
  padding-right: 0;
}

.admin-leads-management-page .order-vps-plan-row td {
  white-space: nowrap;
  vertical-align: middle;
}

.admin-leads-management-page .leads-mgmt-agent-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-leads-management-page .leads-mgmt-agent-cell .order-vps-table-spec-primary,
.admin-leads-management-page .leads-mgmt-agent-cell .order-vps-table-spec-secondary {
  display: inline;
  margin-top: 0;
  vertical-align: baseline;
}

.admin-leads-management-page .leads-mgmt-agent-cell .order-vps-table-spec-primary::after {
  content: " · ";
  color: #c4bfb7;
  font-weight: 400;
}

.leads-mgmt-input {
  width: 5rem;
  min-width: 5rem;
  min-height: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  text-align: center;
  box-sizing: border-box;
}

.leads-mgmt-cost-input {
  width: 5.5rem;
  min-width: 5.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.leads-mgmt-product-select {
  width: 100%;
  min-width: 0;
  max-width: 10rem;
  min-height: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  font-size: 0.72rem;
  box-sizing: border-box;
}

.leads-mgmt-set-btn {
  width: auto;
  min-width: 0;
  min-height: 2rem;
  height: 2rem;
  margin-top: 0;
  padding: 0 0.55rem;
  font-size: 0.68rem;
  line-height: 1;
  gap: 0.3rem;
  flex-shrink: 0;
  box-sizing: border-box;
}

.leads-balance-count {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-leads-management-page .leads-balance-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-leads-management-page .leads-balance-count--purchased {
  color: var(--primary, #2f5d9f);
  background: var(--secondary);
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
}

.admin-leads-management-page .leads-balance-count--received {
  color: #067647;
  background: #e8f5ef;
  border-color: #abefc6;
}

.subscription-free-toggle {
  display: inline-flex;
  min-height: 2.25rem;
  width: auto;
  max-width: 12rem;
}

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

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

.subscription-summary-table {
  width: 100%;
  margin-top: 0.9rem;
  border-collapse: collapse;
}

.subscriptions-page .notif-section.is-disabled {
  opacity: 0.55;
}

.subscriptions-page .notif-section.is-disabled .notif-input:disabled {
  cursor: not-allowed;
  background: #f3f1ee;
}

.subscriptions-page .notif-style-card.is-disabled,
.subscriptions-page .notif-style-card:has(input:disabled) {
  cursor: not-allowed;
  pointer-events: none;
}

.subscriptions-page .notif-style-card.is-disabled:hover,
.subscriptions-page .notif-style-card:has(input:disabled):hover {
  border-color: #ddd9d4;
  background: #fff;
}

.subscription-summary-table th,
.subscription-summary-table td {
  padding: 0.55rem 0;
  border-bottom: 1px dotted #ddd9d4;
  text-align: left;
  vertical-align: top;
  font-size: 0.82rem;
  line-height: 1.35;
}

.subscription-summary-table tr:last-child th,
.subscription-summary-table tr:last-child td {
  border-bottom: 0;
}

.subscription-summary-table th {
  width: 42%;
  padding-right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a948c;
}

.subscription-summary-table td {
  color: #222220;
  word-break: break-word;
}

.billing-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.billing-page > .auth-flash {
  margin-bottom: 0;
}

.billing-stats {
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .billing-stats.admin-dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .billing-stats.admin-dashboard-stats:has(.admin-dashboard-stat:nth-child(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.billing-stat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  line-height: 1.15;
}

.billing-stat-status iconify-icon {
  flex-shrink: 0;
}

.billing-stat-status-card {
  border: 0;
  background: var(--secondary);
}

.billing-stat-status-card:hover {
  background: var(--secondary);
}

.billing-stat-status-card--active,
.billing-stat-status-card--active:hover,
.billing-stat-status-card--permanently_free,
.billing-stat-status-card--permanently_free:hover {
  background: #dcfce7;
}

.billing-stat-status-card--trialing,
.billing-stat-status-card--trialing:hover {
  background: #dbeafe;
}

.billing-stat-status-card--past_due,
.billing-stat-status-card--past_due:hover {
  background: #ffedd5;
}

.billing-stat-status-card--canceled,
.billing-stat-status-card--canceled:hover,
.billing-stat-status-card--incomplete_expired,
.billing-stat-status-card--incomplete_expired:hover,
.billing-stat-status-card--unpaid,
.billing-stat-status-card--unpaid:hover {
  background: #fee2e2;
}

.billing-plan-card,
.billing-agency-card {
  max-width: none;
}

.billing-plan-subtitle {
  margin: 0 0 1rem;
  text-align: center;
}

.billing-charges-toolbar {
  margin: 0;
}

.billing-charges-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.billing-charges-toolbar #billing-subscribe,
.billing-charges-toolbar #billing-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  min-width: 0;
  flex-shrink: 0;
  height: 2.5rem;
  min-height: 2.5rem;
  margin-top: 0;
  padding: 0 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.billing-charges-toolbar #billing-portal {
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--secondary));
}

.billing-charges-card {
  margin-top: 0;
  margin-bottom: 0;
  max-width: none;
  padding-bottom: 0;
}

.billing-agent-subscriptions-card {
  margin-top: 1.25rem;
}

.billing-charges-card .purchase-filter-empty {
  margin: 0.75rem 0 0;
  text-align: center;
}

.billing-charges-body {
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
  /* thead + 5 skeleton/row slots */
  min-height: calc(2.4rem + 5 * 2.95rem);
}

.billing-page .billing-charges-card .soft-phone-table-wrap {
  flex: 0 1 auto;
  max-height: calc(100vh - 16rem);
  margin-bottom: 0;
  min-height: 0;
}

.billing-page .billing-charges-card .soft-phone-table-wrap[hidden] {
  display: none;
}

.billing-charges-table .soft-phone-data-row:last-of-type td {
  border-bottom: 1px solid #f0ece7;
}

.billing-charges-fill {
  flex: 1 1 0;
  min-height: 0;
  margin-top: -1px;
  position: relative;
  z-index: 1;
  background: #fff;
}

.billing-charges-fill[hidden] {
  display: none;
}

.billing-charges-fill .table-skeleton,
.billing-charges-fill .table-empty {
  height: 100%;
  min-height: 22rem;
  margin: 0;
}

.billing-charges-card .soft-phone-table-wrap[hidden] + .billing-charges-fill .table-skeleton,
.billing-charges-card .soft-phone-table-wrap[hidden] + .billing-charges-fill .table-empty {
  min-height: 22rem;
}

.billing-charges-card:has(.table-empty) .billing-charges-body {
  min-height: 24rem;
}

.billing-charges-table {
  width: 100%;
  min-width: 40rem;
  table-layout: fixed;
}

.billing-charges-table th,
.billing-charges-table td {
  width: auto;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.billing-charges-table th.soft-phone-table-index-col,
.billing-charges-table td.soft-phone-table-index {
  width: 2.75rem;
}

.billing-charges-table th:nth-child(2),
.billing-charges-table td:nth-child(2) {
  width: 7.25rem;
  white-space: nowrap;
}

.billing-charges-table th:nth-child(3),
.billing-charges-table td:nth-child(3) {
  width: 30%;
}

.billing-charges-table th:nth-child(4),
.billing-charges-table td:nth-child(4) {
  width: 11.5rem;
  white-space: nowrap;
}

.billing-charges-table th:nth-child(5),
.billing-charges-table td:nth-child(5) {
  width: 5.75rem;
  white-space: nowrap;
}

.billing-charges-table th:nth-child(6),
.billing-charges-table td:nth-child(6) {
  width: 6.75rem;
  text-align: left;
}

.billing-charges-table th:nth-child(7),
.billing-charges-table td:nth-child(7) {
  width: 5.5rem;
  white-space: nowrap;
}

.billing-charges-table .soft-phone-table-primary,
.billing-charges-table .soft-phone-table-secondary {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-charges-table td:nth-child(3) .soft-phone-table-primary,
.billing-charges-table td:nth-child(3) .soft-phone-table-secondary {
  white-space: nowrap;
}

.billing-charges-table .soft-phone-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  font-size: 0.6rem;
  padding: 0.18rem 0.4rem;
  min-height: 1.4rem;
}

.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.billing-actions .notif-create-submit {
  width: auto;
  flex: 1 1 10rem;
  margin-top: 0;
}

.billing-portal-btn {
  background: var(--secondary);
  color: var(--primary);
}

.billing-portal-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.billing-gate-note {
  margin-top: 1rem;
  text-align: center;
}

.billing-seat-field {
  max-width: none;
  margin-top: 1.25rem;
}

.billing-seat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.billing-seat-row .notif-input {
  width: 8rem;
  flex: 0 0 auto;
}

.billing-seat-row .notif-create-submit {
  width: auto;
  margin-top: 0;
  flex: 0 0 auto;
}

.subscription-user-status.is-entitled {
  color: #067647;
}

.subscription-info-page .leads-mgmt-agent-cell .order-vps-table-spec-primary,
.subscription-info-page .leads-mgmt-agent-cell .order-vps-table-spec-secondary {
  display: block;
}

.subscription-info-page .admin-leads-toolbar {
  flex-wrap: nowrap;
}

.subscription-info-page .call-routing-agents-card {
  margin-top: 0;
}

.subscription-info-page .call-routing-agents-table-wrap {
  max-width: none;
  max-height: calc(100vh - 14rem);
  margin-top: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.subscription-info-page .admin-leads-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.subscription-info-page .admin-leads-table thead th {
  padding: 0.35rem 0.45rem 0.35rem 0;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscription-info-page .admin-leads-table .order-vps-plan-row td {
  padding: 0.32rem 0.45rem 0.32rem 0;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 0.72rem;
  color: #5c574f;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscription-info-page .admin-leads-table .order-vps-table-index-col,
.subscription-info-page .admin-leads-table .order-vps-table-index {
  width: 1.6rem;
  padding-right: 0.2rem;
  font-size: 0.68rem;
}

.subscription-info-page .admin-leads-table th:nth-child(2),
.subscription-info-page .admin-leads-table td:nth-child(2) {
  width: 22%;
  min-width: 0;
  white-space: normal;
}

.subscription-info-page .admin-leads-table th:nth-child(3),
.subscription-info-page .admin-leads-table td:nth-child(3) {
  width: 8.75rem;
  text-align: center;
}

.subscription-info-page .admin-leads-table th:nth-child(4),
.subscription-info-page .admin-leads-table td:nth-child(4) {
  width: 4.25rem;
}

.subscription-info-page .admin-leads-table th:nth-child(5),
.subscription-info-page .admin-leads-table td:nth-child(5),
.subscription-info-page .admin-leads-table th:nth-child(6),
.subscription-info-page .admin-leads-table td:nth-child(6) {
  width: 5.5rem;
}

.subscription-info-page .admin-leads-table th:nth-child(7),
.subscription-info-page .admin-leads-table td:nth-child(7) {
  width: 4.75rem;
  text-align: center;
}

.subscription-info-page .admin-leads-table th:nth-child(8),
.subscription-info-page .admin-leads-table td:nth-child(8) {
  width: 10.5rem;
  padding-right: 0;
  overflow: visible;
  white-space: normal;
}

.subscription-info-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.subscription-info-actions .soft-phone-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6rem;
  padding: 0.18rem 0.4rem;
  min-height: 1.4rem;
  letter-spacing: 0.03em;
}

.subscription-info-actions .soft-phone-list-btn iconify-icon {
  flex-shrink: 0;
}

.subscription-info-page .admin-leads-table .order-vps-table-spec-primary {
  font-size: 0.74rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscription-info-page .admin-leads-table .order-vps-table-spec-secondary {
  font-size: 0.64rem;
  margin-top: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscription-info-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  width: fit-content;
  min-height: 1.35rem;
  margin: 0 auto;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #5c574f;
  background: #f0ebe4;
}

.subscription-info-status.is-active {
  color: #166534;
  background: #dcfce7;
}

.subscription-info-status.is-free {
  color: #0f766e;
  background: #ccfbf1;
}

.subscription-info-status.is-trialing {
  color: #1d4ed8;
  background: #dbeafe;
}

.subscription-info-status.is-past-due {
  color: #9a3412;
  background: #ffedd5;
}

.subscription-info-status.is-canceled {
  color: #991b1b;
  background: #fee2e2;
}

.agency-user-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e0d9cf;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5c574f;
  background: #f0ebe4;
}

.agency-user-status.is-owner {
  color: #067647;
  background: #e8f5ef;
  border-color: #abefc6;
}

.agency-user-status.is-pending {
  color: #9a3412;
  background: #fff7ed;
  border-color: #f5d0a9;
}

.agency-agents-count-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 1.75rem;
  padding: 0 0.55rem;
  border: 1px solid #d8d2c9;
  border-radius: 999px;
  background: #fff;
  color: var(--primary, #2f5d9f);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.agency-agents-count-btn:hover {
  border-color: var(--primary, #2f5d9f);
  background: var(--secondary);
}

.agency-agents-panel {
  max-width: 28rem;
}

.agency-agents-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.agency-agents-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.agency-agents-item-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.agency-agents-item-status {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 550;
  color: #9a948c;
}

.agency-agents-item-status.is-active {
  color: #067647;
}

.agency-agents-empty {
  margin: 0;
  color: #9a948c;
  font-size: 0.92rem;
}

.agency-team-page.leads-form-page {
  max-width: none;
}

.agency-team-page .soft-phone-toolbar {
  margin-top: 0;
}

.agency-team-page .soft-phone-toolbar-actions .leads-form-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  margin: 0;
}

.agency-team-page .soft-phone-numbers-card {
  max-width: none;
}

.agency-team-table {
  min-width: 54rem;
  table-layout: auto;
  font-size: 0.78rem;
}

.agency-team-table thead th {
  padding: 0 0.45rem 0.45rem 0;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

.agency-team-table .soft-phone-data-row td {
  padding: 0.5rem 0.45rem 0.5rem 0;
}

.agency-team-table th:nth-child(1),
.agency-team-table td:nth-child(1) {
  width: 2.25rem;
  padding-right: 0.35rem;
}

.agency-team-table th:nth-child(2),
.agency-team-table td:nth-child(2) {
  min-width: 9.5rem;
  max-width: 12rem;
}

.agency-team-table .soft-phone-table-primary {
  font-size: 0.8rem;
  line-height: 1.25;
}

.agency-team-table .soft-phone-table-secondary {
  font-size: 0.68rem;
  line-height: 1.25;
}

.agency-team-table .call-routing-status {
  min-width: 0;
  min-height: 1.35rem;
  margin: 0;
  padding: 0.12rem 0.4rem;
  font-size: 0.62rem;
  cursor: default;
}

.agency-team-table .agency-user-status {
  padding: 0.12rem 0.4rem;
  font-size: 0.58rem;
}

.agency-team-table .soft-phone-row-actions {
  gap: 0.25rem;
}

.agency-team-table .soft-phone-row-actions > .soft-phone-list-btn,
.agency-team-table .soft-phone-row-actions > .soft-phone-open-btn {
  min-height: 1.55rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
}

.agency-team-table th:nth-child(n + 3):not(:last-child),
.agency-team-table td:nth-child(n + 3):not(:last-child) {
  white-space: nowrap;
}

.agency-team-table th:last-child,
.agency-team-table td:last-child {
  min-width: 0;
  white-space: nowrap;
}

.agency-team-page .soft-phone-numbers-footer {
  max-width: none;
  margin-bottom: 1.5rem;
}

.agency-team-page .soft-phone-numbers-footer .table-pager {
  margin-bottom: 0;
}

.agency-team-empty-filter {
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.88rem;
}

.agency-settings-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.agency-settings-page #agency-settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.agency-settings-page .agency-settings-top-row {
  margin-bottom: 0;
  align-items: stretch;
}

.agency-settings-page .agency-settings-profile {
  max-width: none;
  margin-bottom: 0;
}

.agency-billing-card {
  max-width: none;
  height: 100%;
  padding: 1.5rem 1.5rem 1.65rem;
  gap: 1.15rem;
}

.agency-billing-card .notif-section-body {
  gap: 1.25rem;
}

.agency-billing-subtitle {
  margin: 0;
  line-height: 1.45;
}

.agency-settings-page .agency-billing-card .billing-seat-field {
  margin-top: 1.25rem;
}

.agency-billing-mode {
  display: grid;
  gap: 0.85rem;
  margin-top: 0;
}

.agency-billing-mode .notif-field-label {
  margin-bottom: 0.55rem;
}

.agency-billing-option-block {
  display: grid;
  gap: 0.55rem;
}

.agency-billing-option-hint.soft-phone-numbers-cost {
  margin: 0.1rem 0 0;
  padding: 0 0.15rem;
  text-align: left;
  line-height: 1.35;
}

.agency-billing-option.notif-create-submit {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) 0.9rem;
  align-items: center;
  justify-content: stretch;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 0.95rem;
  text-align: left;
}

.agency-billing-option.notif-create-submit:not(.is-active) {
  background: var(--secondary);
  color: var(--primary);
}

.agency-billing-option.notif-create-submit:not(.is-active):hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.agency-billing-option.notif-create-submit.is-active:hover:not(:disabled) {
  background: var(--primary-hover);
  color: var(--primary-foreground);
}

.agency-billing-option-check {
  opacity: 0;
}

.agency-billing-option.is-active .agency-billing-option-check {
  opacity: 1;
}

.agency-settings-page .billing-seat-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, 0.7fr) minmax(8rem, 1.3fr);
  gap: 0.5rem;
}

.agency-settings-page .billing-seat-row .notif-input,
.agency-settings-page .billing-seat-row .notif-create-submit {
  width: 100%;
}

.agency-settings-page .billing-seat-row .notif-create-submit {
  justify-content: center;
  white-space: nowrap;
}

.agency-seat-summary {
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.agency-seat-summary.soft-phone-numbers-cost {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1rem 0.75rem 0.35rem;
}

.agency-seat-summary strong {
  color: var(--primary);
  font-weight: 600;
}

.agency-settings-profile-body {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 720px) {
  .agency-settings-profile-body {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.75rem;
  }
}

.agency-settings-logo-field {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.agency-settings-profile-fields {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.agency-settings-profile-fields textarea.notif-input {
  min-height: 6rem;
  resize: vertical;
}

.agency-settings-page .profile-state-grid,
.profile-states-card .profile-state-grid {
  grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr));
  gap: 0.3rem;
  max-height: 14rem;
}

.auth-layout .profile-states-card .profile-state-grid {
  max-height: 18rem;
}

.agency-settings-page .profile-state-chip,
.profile-states-card .profile-state-chip {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.35rem 0.2rem;
}

.agency-settings-page .profile-state-code,
.profile-states-card .profile-state-code {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.agency-team-page .soft-phone-buy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.agency-team-summary-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
}

.agency-team-summary-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dotted #c9c4bc;
}

.agency-team-summary-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.agency-team-summary-list dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.agency-team-summary-list dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: #111;
  text-align: right;
}

.agency-team-invite-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.agency-team-invite-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dotted #c9c4bc;
}

.agency-team-invite-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.agency-team-invite-copy-block {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.agency-team-invite-cancel {
  flex-shrink: 0;
  width: auto;
  min-height: 2rem;
  margin: 0;
  padding: 0.35rem 0.65rem;
}

.agency-team-invite-email {
  font-size: 0.92rem;
  font-weight: 400;
  color: #111;
  word-break: break-word;
}

.agency-team-invite-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.agency-team-empty-panel {
  margin: 0.85rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.agency-team-invite-copy {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #837972;
}

.agency-team-invite-panel,
.agency-assign-leads-panel {
  width: min(28rem, 100%);
  border-color: var(--primary);
  border-radius: var(--radius);
  background: var(--panel-bg);
}

.agency-assign-leads-panel {
  width: min(32rem, 100%);
}

.agency-team-invite-panel .lead-modal-header,
.agency-team-invite-panel .lead-modal-body,
.agency-assign-leads-panel .lead-modal-header,
.agency-assign-leads-panel .lead-modal-body {
  background: var(--panel-bg);
}

.agency-team-invite-panel .lead-modal-header,
.agency-assign-leads-panel .lead-modal-header {
  border-color: var(--primary);
}

.agency-team-invite-panel .security-field-stack,
.agency-assign-leads-panel .security-field-stack {
  gap: 0.4rem;
}

.agency-team-invite-panel .security-textfield-input,
.agency-assign-leads-panel .security-textfield-input:not(.agency-assign-leads-qty) {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  outline: none;
  background: #fff;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.agency-team-invite-panel .security-textfield-input:disabled,
.agency-assign-leads-panel .security-textfield-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.agency-team-invite-access-list {
  margin: 0;
  padding: 0 0 0 0.95rem;
  display: grid;
  gap: 0.28rem;
  list-style: disc;
  color: color-mix(in srgb, var(--muted-foreground) 82%, #fff);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  line-height: 1.4;
}

.agency-team-invite-access-list li::marker {
  color: color-mix(in srgb, var(--muted-foreground) 55%, #fff);
}

.agency-assign-leads-available {
  margin: 0;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agency-assign-leads-available strong {
  color: var(--foreground);
  font-size: 0.9rem;
}

.agency-assign-leads-list {
  display: grid;
  gap: 0.55rem;
  max-height: min(40vh, 20rem);
  overflow-y: auto;
}

.agency-assign-leads-card {
  width: 100%;
  margin: 0;
}

.agency-assign-leads-card .notif-style-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.agency-assign-leads-card .notif-style-copy {
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}

.agency-assign-leads-card .notif-style-name,
.agency-assign-leads-card .notif-style-meta {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agency-assign-leads-card input.agency-assign-leads-qty {
  position: static;
  opacity: 1;
  pointer-events: auto;
  box-sizing: border-box;
  width: 4.5rem;
  min-width: 4.5rem;
  max-width: 4.5rem;
  min-height: 2rem;
  margin: 0 0 0 auto;
  padding: 0.35rem 0.5rem;
  flex-shrink: 0;
  border: 1px solid #ddd9d4;
  border-radius: var(--radius-sm);
  outline: none;
  background: #fff;
  color: var(--foreground);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: text;
  appearance: textfield;
  -moz-appearance: textfield;
}

.agency-assign-leads-card:hover input.agency-assign-leads-qty,
.agency-assign-leads-card:focus-within input.agency-assign-leads-qty {
  border-color: var(--primary);
}

.agency-assign-leads-card:focus-within {
  border-color: var(--primary);
  background: var(--secondary);
}

.agency-assign-leads-card:focus-within .notif-style-icon {
  color: var(--primary);
}

.agency-assign-leads-qty::-webkit-inner-spin-button,
.agency-assign-leads-qty::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.agency-assign-leads-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.15rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agency-assign-leads-summary strong {
  color: var(--foreground);
}

.agency-team-invite-meta-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #837972;
}

@media (max-width: 480px) {
  .agency-assign-leads-card .notif-style-meta {
    white-space: normal;
  }

  .agency-assign-leads-summary {
    display: grid;
    gap: 0.25rem;
  }
}

.settings-unlock-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(70vh, 36rem);
  width: 100%;
}

.settings-unlock-form {
  max-width: 24rem;
  width: 100%;
  margin: 0;
}

.settings-color-grid,
.settings-font-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .settings-color-grid {
    grid-template-columns: 1fr 1fr;
  }

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

.settings-icon-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}

.settings-pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.settings-pattern-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid #ddd9d4;
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.settings-pattern-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-pattern-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, #ddd9d4);
  background: color-mix(in srgb, var(--secondary) 70%, var(--panel-bg));
}

.settings-pattern-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  background: var(--secondary);
}

.settings-pattern-preview {
  display: block;
  height: 3.25rem;
  border-radius: calc(var(--radius-sm) * 0.85);
  border: 1px solid color-mix(in srgb, var(--bg-pattern-color) 35%, #ddd9d4);
  background-color: var(--bg-surface);
  background-image: none;
  background-repeat: repeat;
}

.settings-pattern-preview[data-pattern="none"] {
  background-image: none;
}

.settings-pattern-preview[data-pattern="diagonal"] {
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 5px,
    color-mix(in srgb, var(--bg-pattern-color) 28%, transparent) 5px,
    color-mix(in srgb, var(--bg-pattern-color) 28%, transparent) 6px
  );
}

.settings-pattern-preview[data-pattern="horizontal"] {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 5px,
    color-mix(in srgb, var(--bg-pattern-color) 28%, transparent) 5px,
    color-mix(in srgb, var(--bg-pattern-color) 28%, transparent) 6px
  );
}

.settings-pattern-preview[data-pattern="vertical"] {
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 5px,
    color-mix(in srgb, var(--bg-pattern-color) 28%, transparent) 5px,
    color-mix(in srgb, var(--bg-pattern-color) 28%, transparent) 6px
  );
}

.settings-pattern-preview[data-pattern="grid"] {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 5px,
      color-mix(in srgb, var(--bg-pattern-color) 24%, transparent) 5px,
      color-mix(in srgb, var(--bg-pattern-color) 24%, transparent) 6px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 5px,
      color-mix(in srgb, var(--bg-pattern-color) 24%, transparent) 5px,
      color-mix(in srgb, var(--bg-pattern-color) 24%, transparent) 6px
    );
}

.settings-pattern-preview[data-pattern="dots"] {
  background-image: radial-gradient(
    color-mix(in srgb, var(--bg-pattern-color) 55%, transparent) 1.1px,
    transparent 1.2px
  );
  background-size: 10px 10px;
}

.settings-pattern-preview[data-pattern="crosshatch"] {
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 5px,
      color-mix(in srgb, var(--bg-pattern-color) 22%, transparent) 5px,
      color-mix(in srgb, var(--bg-pattern-color) 22%, transparent) 6px
    ),
    repeating-linear-gradient(
      12deg,
      transparent,
      transparent 5px,
      color-mix(in srgb, var(--bg-pattern-color) 22%, transparent) 5px,
      color-mix(in srgb, var(--bg-pattern-color) 22%, transparent) 6px
    );
}

.settings-pattern-name {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a6662;
}

.settings-pattern-card.is-selected .settings-pattern-name {
  color: var(--primary);
}

.settings-icon-pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #ddd9d4;
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.settings-icon-pack-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-icon-pack-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, #ddd9d4);
  background: color-mix(in srgb, var(--secondary) 70%, var(--panel-bg));
}

.settings-icon-pack-card.is-selected {
  border-color: var(--primary);
  background: var(--secondary);
  box-shadow: 0 0 0 1px var(--primary);
}

.settings-icon-pack-preview {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
}

.settings-icon-pack-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c574f;
}

.settings-icon-pack-card.is-selected .settings-icon-pack-name {
  color: var(--primary);
}

.settings-color-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.settings-color-swatch {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.settings-radius-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.settings-radius-row input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}

.settings-radius-input {
  max-width: 7rem;
}

.settings-radius-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.85rem;
}

.settings-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-preview-btn {
  pointer-events: none;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.settings-actions .notif-create-submit {
  width: auto;
  flex: 1 1 10rem;
  margin-top: 0;
}

.settings-reset-btn {
  background: var(--secondary);
  color: var(--primary);
}

.settings-reset-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.settings-signalwire-form {
  margin-top: 1.75rem;
}

.settings-signalwire-grid {
  display: grid;
  gap: 1rem;
}

.settings-signalwire-grid .notif-style-meta {
  margin: 0.35rem 0 0;
}

.settings-usage-panel {
  display: flex;
  flex-direction: column;
  width: min(90rem, calc(100vw - 2rem));
  height: min(52rem, calc(100dvh - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}

.settings-usage-body {
  min-height: 0;
  padding: 1.25rem;
  overflow: auto;
  background: color-mix(in srgb, var(--secondary) 55%, var(--panel-bg, #fff));
}

.settings-usage-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #d7d2cc;
  background: #fff;
}

.settings-usage-total {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: #222220;
}

.settings-usage-margin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #4f4a45;
  cursor: pointer;
}

.settings-usage-margin-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.settings-usage-section {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #d7d2cc;
  background: #fff;
}

.settings-usage-toolbar {
  max-width: none;
  margin: 1rem 0;
}

.settings-usage-table-wrap {
  max-height: 24rem;
  margin-top: 0;
  overflow: auto;
}

.settings-usage-table-wrap .call-logs-table {
  min-width: 52rem;
  font-size: 0.78rem;
}

.settings-usage-table-wrap .call-logs-mono,
.settings-usage-table-wrap .call-logs-sid {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  white-space: nowrap;
}

.settings-usage-section .table-empty {
  margin: 0.35rem 0 0;
  min-height: 18rem;
}

.products-catalog-body #products-empty .table-empty,
.admin-leads-page .admin-leads-body > .table-empty {
  margin: 0;
  min-height: 18rem;
}

.settings-pct-calc-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .settings-pct-calc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }
}

.settings-pct-calc-result {
  margin: 0;
  min-height: 2.65rem;
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-surface) 88%, var(--primary) 4%);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}

.soft-phone-toolbar {
  margin-top: 1.25rem;
}

.soft-phone-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.soft-phone-record-toggle {
  width: auto;
  max-width: none;
  min-height: 2.5rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  box-sizing: border-box;
  cursor: pointer;
  white-space: nowrap;
}

.soft-phone-record-toggle .notif-style-name {
  font-size: 0.88rem;
}

.soft-phone-record-toggle:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

#soft-phone-settings-error.is-visible,
#soft-phone-settings-success.is-visible {
  margin-top: -0.65rem;
  margin-bottom: 0.85rem;
}

.soft-phone-open-btn,
.soft-phone-release-btn,
.soft-phone-buy-btn {
  width: auto;
  margin-top: 0;
  min-width: 0;
  min-height: 2.5rem;
  height: 2.5rem;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  white-space: nowrap;
}

.soft-phone-open-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.soft-phone-release-btn {
  background: #b42318;
  border-color: #b42318;
}

.soft-phone-release-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.soft-phone-buy-btn {
  gap: 0.45rem;
  flex-shrink: 0;
}

.soft-phone-buy-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.soft-phone-buy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.soft-phone-numbers-card {
  max-width: 72rem;
  max-height: none;
  min-height: 0;
  height: fit-content;
  overflow: visible;
  padding-bottom: 0;
}

.soft-phone-numbers-card .soft-phone-table-wrap {
  margin-bottom: 0;
  max-height: calc(100vh - 12rem);
  overflow: auto;
}

.soft-phone-numbers-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  max-width: 72rem;
  margin-top: 0.75rem;
}

.soft-phone-numbers-footer .soft-phone-numbers-cost {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.soft-phone-numbers-footer .table-pager {
  margin-top: 0;
  flex: 0 0 auto;
  margin-left: auto;
}

.soft-phone-table-wrap {
  margin-top: 0.85rem;
  overflow-x: auto;
}

.soft-phone-data-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 0;
  background: transparent;
}

.soft-phone-data-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #111;
  background: #fff;
}

.soft-phone-data-table thead tr {
  border-bottom: 0;
}

.soft-phone-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0 1rem 0.65rem 0;
  text-align: left;
  vertical-align: bottom;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a948c;
  border-bottom: 1px solid #e6e2dc;
  white-space: nowrap;
  background: #fff;
}

.soft-phone-data-table thead th:last-child {
  padding-right: 0;
}

.soft-phone-table-index-col {
  width: 3rem;
}

.soft-phone-data-row td {
  padding: 0.85rem 1rem 0.85rem 0;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #f0ece7;
  background: transparent;
}

.soft-phone-data-row:last-of-type td {
  border-bottom: 0;
}

.soft-phone-data-row td:last-child {
  padding-right: 0;
}

.soft-phone-table-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: #9a948c;
  white-space: nowrap;
}

.soft-phone-table-primary {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  color: #111;
  line-height: 1.3;
  word-break: break-word;
}

.soft-phone-table-secondary {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
  color: #837972;
  word-break: break-word;
}

.soft-phone-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.soft-phone-numbers-table {
  min-width: 48rem;
}

.soft-phone-numbers-table th:nth-child(2),
.soft-phone-numbers-table td:nth-child(2) {
  width: 22%;
}

.soft-phone-numbers-table th:nth-child(3),
.soft-phone-numbers-table td:nth-child(3) {
  width: 18%;
}

.soft-phone-numbers-table th:nth-child(4),
.soft-phone-numbers-table td:nth-child(4) {
  width: 16%;
}

.soft-phone-numbers-table th:nth-child(5),
.soft-phone-numbers-table td:nth-child(5) {
  width: 8.5rem;
}

.soft-phone-numbers-table th:last-child,
.soft-phone-numbers-table td:last-child {
  width: 15.5rem;
}

.soft-phone-numbers-table th:last-child {
  text-align: left;
}

.soft-phone-numbers-table td:last-child {
  text-align: left;
}

.soft-phone-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-start;
}

.soft-phone-row-actions > .soft-phone-open-btn,
.soft-phone-row-actions > .soft-phone-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 1.9rem;
  min-height: 1.9rem;
  max-height: 1.9rem;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0.68rem;
  line-height: 1;
}

.soft-phone-row-actions > .soft-phone-open-btn {
  gap: 0.35rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.soft-phone-open-external-icon {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
}

.soft-phone-row-actions > .soft-phone-list-btn:not(.soft-phone-icon-btn) {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.soft-phone-row-actions > .soft-phone-icon-btn {
  width: 2.1rem;
  min-width: 2.1rem;
  height: 2.1rem;
  min-height: 2.1rem;
  padding: 0;
}

.soft-phone-rename-panel {
  width: min(26rem, calc(100vw - 2rem));
  background: #fff;
  overflow: hidden;
}

.soft-phone-rename-body {
  background: #fff;
}

.soft-phone-rename-number {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: #837972;
}

.soft-phone-am-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #6b645e;
}

.soft-phone-am-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0 0.25rem;
  font-size: 0.9rem;
  color: #3f3a36;
  cursor: pointer;
}

.soft-phone-am-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #067647;
}

.soft-phone-am-greeting {
  min-height: 4.5rem;
  resize: vertical;
}

.soft-phone-rename-actions {
  align-items: center;
  margin: 0;
  padding: 1rem 1.15rem;
  border-top: 1px solid #e6e2dc;
  background: #fff;
}

.soft-phone-rename-actions .lead-modal-cancel,
.soft-phone-rename-actions .notif-create-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 2.35rem;
  min-height: 2.35rem;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.soft-phone-numbers-cost {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b0aaa2;
}

.soft-phone-numbers-cost-sep {
  color: #d4cfc7;
}

.soft-phone-numbers-cost-total {
  color: #b0aaa2;
  font-weight: 400;
}

.soft-phone-empty-copy {
  margin: 0.85rem 0 0;
}

.soft-phone-buy-panel {
  display: flex;
  flex-direction: column;
  width: min(78rem, calc(100vw - 2rem));
  height: min(42rem, calc(100dvh - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}

.soft-phone-buy-panel .lead-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.soft-phone-buy-filters {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 1rem;
  border-right: 1px solid #d7d2cc;
  background: #fff;
}

.soft-phone-buy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  flex: 0 0 auto;
}

.soft-phone-areacode-combo {
  position: relative;
}

.soft-phone-areacode-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.3rem);
  max-height: 14rem;
  overflow: auto;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ddd9d4;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(34, 34, 32, 0.12);
}

.soft-phone-areacode-list[hidden] {
  display: none;
}

.soft-phone-areacode-group {
  padding: 0.4rem 0.75rem 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a948c;
}

.soft-phone-areacode-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  color: #222220;
}

.soft-phone-areacode-option:hover,
.soft-phone-areacode-option.is-active {
  background: var(--secondary);
}

.soft-phone-areacode-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.soft-phone-areacode-meta {
  font-size: 0.78rem;
  color: #837972;
}

.soft-phone-buy-footer {
  margin-top: auto;
  padding-top: 1rem;
  flex: 0 0 auto;
  display: grid;
  gap: 0.55rem;
}

.soft-phone-buy-cost {
  margin: 0;
  justify-content: center;
  text-align: center;
}

.soft-phone-buy-actions {
  margin-top: 0;
  padding-top: 0;
  flex: 0 0 auto;
}

.soft-phone-buy-actions .notif-create-submit {
  width: 100%;
}

.soft-phone-buy-results-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.soft-phone-buy-panel .soft-phone-side-error {
  margin-top: 0.75rem;
  flex: 0 0 auto;
}

.soft-phone-buy-table-wrap {
  box-sizing: border-box;
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  /* ponytail: no top pad on scrollport - sticky th top:0 would overlap row 1 */
  padding: 0 1.75rem 0.85rem 1rem;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.soft-phone-buy-table-wrap[hidden] {
  display: none;
}

.soft-phone-buy-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}

.soft-phone-buy-table th,
.soft-phone-buy-table td {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.soft-phone-buy-table thead th {
  text-align: center;
  padding-top: 0.85rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.soft-phone-buy-table .soft-phone-table-primary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.soft-phone-buy-table .soft-phone-table-index-col,
.soft-phone-buy-table .soft-phone-table-index {
  width: 2.75rem;
  max-width: none;
}

.soft-phone-buy-table th:nth-child(2),
.soft-phone-buy-table td:nth-child(2) {
  width: 26%;
  max-width: none;
}

.soft-phone-buy-table th:nth-child(3),
.soft-phone-buy-table td:nth-child(3) {
  width: 16%;
  max-width: none;
}

.soft-phone-buy-table th:nth-child(4),
.soft-phone-buy-table td:nth-child(4) {
  width: 5.5rem;
  max-width: none;
}

.soft-phone-buy-table th:nth-child(5),
.soft-phone-buy-table td:nth-child(5) {
  width: auto;
  max-width: none;
}

.soft-phone-buy-table th:last-child,
.soft-phone-buy-table td:last-child {
  width: 8.75rem;
  max-width: none;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  text-align: center;
  overflow: hidden;
}

.soft-phone-buy-table .soft-phone-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .soft-phone-buy-panel {
    width: 100%;
    height: calc(100dvh - 2rem);
    max-height: calc(100dvh - 2rem);
  }

  .soft-phone-buy-panel .lead-modal-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .soft-phone-buy-filters {
    min-height: 18rem;
    border-right: 0;
    border-bottom: 1px solid #d7d2cc;
  }

  .soft-phone-buy-results-panel {
    min-height: 22rem;
  }
}

.soft-phone-call-header {
  align-items: flex-start;
}

.soft-phone-call-toolbar {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.soft-phone-back-link {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.soft-phone-exit-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.soft-phone-empty-card .shop-unavailable {
  margin: 0;
}

.soft-phone-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.15rem 1.25rem 1.3rem;
}

.soft-phone-panel-header {
  text-align: center;
  margin-bottom: 0.85rem;
}

.soft-phone-panel-header .notif-form-kicker {
  margin-bottom: 0.75rem;
}

.soft-phone-from-number {
  margin: 0.15rem 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.soft-phone-panel-header .admin-page-subtitle {
  margin: 0.35rem 0 0;
}

.soft-phone-status {
  display: inline-block;
  margin: 0.85rem 0 0.15rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c574f;
  background: #f0ebe4;
  border-color: #e0d9cf;
}

.soft-phone-status[data-tone="ready"] {
  color: #067647;
  background: #e8f5ef;
  border-color: #abefc6;
}

.soft-phone-status[data-tone="active"] {
  color: var(--primary, #2f5d9f);
  background: var(--secondary);
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
}

.soft-phone-status[data-tone="pending"] {
  color: #b54708;
  background: #fef0c7;
  border-color: #fedf89;
}

.soft-phone-status[data-tone="offline"] {
  color: #b42318;
  background: #fee4e2;
  border-color: #fecdca;
}

.soft-phone-status[data-tone="muted"] {
  color: #5c574f;
  background: #f0ebe4;
  border-color: #e0d9cf;
}

.soft-phone-call-controls {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.soft-phone-media-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0;
}

.soft-phone-media-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  width: auto;
  height: 2.5rem;
  min-height: 2.5rem;
  min-width: 0;
  flex: 1 1 0;
  margin: 0;
  padding: 0 0.95rem;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.soft-phone-media-btn:hover:not(:disabled):not(.is-active) {
  background: color-mix(in srgb, var(--secondary) 70%, var(--primary) 8%);
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
}

.soft-phone-media-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.soft-phone-media-btn.is-active {
  border-color: #fecdca;
  background: #fee4e2;
  color: #b42318;
}

.soft-phone-media-btn.is-active:hover:not(:disabled) {
  border-color: #fda29b;
  background: #fecdca;
  color: #912018;
}

.soft-phone-media-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  flex-shrink: 0;
}

.soft-phone-media-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.soft-phone-media-btn .soft-phone-media-icon--active {
  display: none;
}

.soft-phone-media-btn.is-active .soft-phone-media-icon--idle {
  display: none;
}

.soft-phone-media-btn.is-active .soft-phone-media-icon--active {
  display: block;
}

.soft-phone-dial-input {
  text-align: center;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.soft-phone-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0;
}

.soft-phone-pad-key {
  min-height: 3rem;
  border: 1px solid #e6e2dc;
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
  cursor: pointer;
}

.soft-phone-pad-key:hover {
  border-color: var(--primary);
  background: var(--secondary);
  color: var(--primary);
}

.soft-phone-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.soft-phone-actions .soft-phone-call-btn {
  flex: 1 1 100%;
  width: 100%;
}

.soft-phone-actions .soft-phone-hangup-btn {
  flex: 1 1 0;
  min-width: 0;
}

.soft-phone-actions .notif-create-submit,
.soft-phone-actions .soft-phone-add-person-btn {
  height: 2.5rem;
  min-height: 2.5rem;
  box-sizing: border-box;
}

.soft-phone-actions .notif-create-submit {
  width: auto;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* .notif-create-submit sets display:inline-flex, which beats [hidden] */
.soft-phone-actions .notif-create-submit[hidden] {
  display: none !important;
}

.soft-phone-live-captions-modal {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.soft-phone-live-captions-modal[hidden] {
  display: none !important;
}

.soft-phone-live-captions-panel {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(34, 34, 32, 0.14);
  text-align: left;
  font-family: var(--font-sans);
}

.soft-phone-live-captions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.soft-phone-live-captions-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #837972;
}

.soft-phone-live-captions-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #837972;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.soft-phone-live-captions-close:hover {
  background: #f4f1ea;
  color: #111;
}

.soft-phone-live-captions-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #9a948c;
}

.soft-phone-live-captions-hint:empty {
  display: none;
}

.soft-phone-live-captions-text {
  margin: 0;
  min-height: 2.6rem;
  max-height: 10rem;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #222220;
  white-space: pre-wrap;
  word-break: break-word;
}

.soft-phone-live-captions-text .is-interim {
  color: #837972;
}

@media (max-width: 640px) {
  .soft-phone-live-captions-modal {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
}

.soft-phone-add-person-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  flex: 0 0 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.soft-phone-add-person-btn:hover:not(:disabled) {
  background: var(--primary-hover);
}

.soft-phone-add-person-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.soft-phone-add-person-btn[hidden] {
  display: none !important;
}

.soft-phone-hangup-btn,
.soft-phone-reject-btn {
  background: #b42318;
  border-color: #b42318;
}

.soft-phone-hangup-btn:disabled {
  opacity: 0.45;
}

.soft-phone-answer-btn {
  background: #067647;
  border-color: #067647;
}

.soft-phone-incoming-modal .lead-modal-backdrop {
  background: rgba(34, 34, 32, 0.45);
}

.soft-phone-incoming-panel {
  width: min(22rem, calc(100vw - 2rem));
  max-height: none;
  border: 1px solid #d7d2cc;
  border-radius: var(--radius);
  background: #fff;
  color: #222220;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(34, 34, 32, 0.18);
  font-family: var(--font-sans);
}

.soft-phone-incoming-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1.5rem 1.35rem 1.45rem;
  background: #fff;
}

.soft-phone-incoming-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.soft-phone-incoming-avatar-wrap {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  margin: 0 0 1rem;
  display: grid;
  place-items: center;
}

.soft-phone-incoming-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(6, 118, 71, 0.35);
  animation: soft-phone-incoming-pulse 1.8s ease-out infinite;
}

.soft-phone-incoming-pulse--delay {
  animation-delay: 0.9s;
}

@keyframes soft-phone-incoming-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.soft-phone-incoming-avatar {
  position: relative;
  z-index: 1;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--secondary);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
}

.soft-phone-incoming-avatar-icon {
  width: 1.85rem;
  height: 1.85rem;
}

.soft-phone-incoming-avatar.has-initials .soft-phone-incoming-avatar-icon {
  display: none;
}

.soft-phone-incoming-initials {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #101828;
}

.soft-phone-incoming-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #101828;
  word-break: break-word;
  max-width: 100%;
}

.soft-phone-incoming-number {
  margin: 0;
  font-size: 1rem;
  color: #475467;
  font-variant-numeric: tabular-nums;
}

.soft-phone-incoming-name[hidden] + .soft-phone-incoming-number {
  margin-top: 0.15rem;
  font-size: 1.2rem;
  font-weight: 650;
  color: #101828;
}

.soft-phone-incoming-actions {
  width: 100%;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 0.5rem;
}

.soft-phone-incoming-action {
  appearance: none;
  border: 0;
  background: transparent;
  color: #475467;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
}

.soft-phone-incoming-action svg {
  width: 1.45rem;
  height: 1.45rem;
  padding: 1rem;
  box-sizing: content-box;
  border-radius: 999px;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.soft-phone-incoming-action--reject svg {
  background: #b42318;
  border: 1px solid #b42318;
  transform: rotate(135deg);
}

.soft-phone-incoming-action--accept svg {
  background: #067647;
  border: 1px solid #067647;
  animation: soft-phone-incoming-accept-bob 1.4s ease-in-out infinite;
}

.soft-phone-incoming-action--reject:hover svg,
.soft-phone-incoming-action--reject:focus-visible svg {
  transform: rotate(135deg) scale(1.06);
  filter: brightness(1.05);
}

.soft-phone-incoming-action--accept:hover svg,
.soft-phone-incoming-action--accept:focus-visible svg {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.soft-phone-incoming-action:focus-visible {
  outline: none;
}

.soft-phone-incoming-action:focus-visible svg {
  outline: 2px solid #222220;
  outline-offset: 3px;
}

@keyframes soft-phone-incoming-accept-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .soft-phone-incoming-pulse,
  .soft-phone-incoming-action--accept svg {
    animation: none;
  }
}

.soft-phone-add-person-panel {
  width: min(28rem, calc(100vw - 2rem));
  background: #fff;
  overflow: hidden;
}

.soft-phone-add-person-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1.35rem;
  background: #fff;
}

.soft-phone-add-person-contacts {
  max-height: 14rem;
  overflow-y: auto;
  border: 1px solid #e6e2dc;
  border-radius: 0.65rem;
  background: #fff;
}

.soft-phone-add-person-contacts-empty {
  margin: 0;
  padding: 0.95rem 1rem;
  font-size: 0.85rem;
  color: #9a948c;
}

.soft-phone-add-person-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #efeae4;
  cursor: pointer;
}

.soft-phone-add-person-contact:last-child {
  border-bottom: 0;
}

.soft-phone-add-person-contact:hover {
  background: var(--secondary);
}

.soft-phone-add-person-contact.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.soft-phone-add-person-contact input {
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

.soft-phone-add-person-contact-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.soft-phone-add-person-contact-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #222220;
}

.soft-phone-add-person-contact-phone {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #837972;
}

.soft-phone-add-person-hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #837972;
}

.soft-phone-add-person-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.soft-phone-add-person-footer .notif-create-submit {
  margin-top: 0;
}

.soft-phone-call-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 24rem) minmax(18rem, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  max-width: 68rem;
}

.soft-phone-contacts-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.soft-phone-contacts-col > .soft-phone-side {
  flex: 1 1 auto;
  min-height: 0;
}

.soft-phone-contacts-col > .table-pager {
  margin-top: 0.75rem;
  flex: 0 0 auto;
}

.soft-phone-side {
  min-height: 0;
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.soft-phone-side-header {
  margin: 0;
}

.soft-phone-side-title {
  margin: 0;
}

.soft-phone-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.soft-phone-contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.soft-phone-contact-save {
  width: auto;
  margin-top: 0;
}

.soft-phone-contact-form-actions {
  margin-top: 0.25rem;
}

.soft-phone-side-error {
  --announcement-bg: #991b1b;
  --announcement-fg: #ffffff;
  display: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 2rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 1rem;
  background: var(--announcement-bg);
  color: var(--announcement-fg);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.soft-phone-side-error:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.soft-phone-side-error::before {
  content: "Error";
  display: inline-flex;
  width: fit-content;
  flex-shrink: 0;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--announcement-fg, #fff) 35%, transparent);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.08em;
  color: inherit;
}

.soft-phone-side-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.soft-phone-side-toolbar .notif-input,
.soft-phone-side-toolbar .notif-create-submit,
.soft-phone-side-toolbar .soft-phone-list-btn {
  height: 2.5rem;
  min-height: 2.5rem;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
}

.soft-phone-side-toolbar .soft-phone-icon-btn {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
}

.soft-phone-side-toolbar .users-search-wrap {
  flex: 1 1 10rem;
  min-width: 0;
}

.soft-phone-contacts-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.soft-phone-contacts-actions .soft-phone-list-btn:not(.soft-phone-icon-btn) {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.soft-phone-contact-open {
  width: auto;
  margin-top: 0;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.soft-phone-contact-panel {
  width: min(28rem, 100%);
}

.soft-phone-history-stats {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  max-width: 68rem;
}

@media (min-width: 720px) {
  .soft-phone-history-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .soft-phone-history-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.soft-phone-history-card {
  margin-top: 0;
  width: 100%;
  max-width: 68rem;
  min-width: 0;
  height: auto;
  overflow: hidden;
  padding-bottom: 0;
}

.soft-phone-history-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  max-width: 68rem;
  margin-top: 0.75rem;
}

.soft-phone-history-footer .soft-phone-history-filter-empty {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.soft-phone-history-footer .table-pager {
  margin-top: 0;
  flex: 0 0 auto;
  margin-left: auto;
}

.soft-phone-history-card .soft-phone-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.soft-phone-history-head {
  display: block;
  margin-bottom: 1rem;
}

.soft-phone-history-head .notif-summary-title {
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

.soft-phone-history-toolbar {
  margin-bottom: 1rem;
  max-width: none;
}

.soft-phone-history-toolbar .admin-leads-csv-btn {
  margin-left: auto;
}

.soft-phone-history-table {
  min-width: 44rem;
  font-size: 0.8rem;
}

.soft-phone-history-table thead th {
  padding: 0.15rem 0.55rem 0.5rem 0;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.soft-phone-history-table .soft-phone-data-row td {
  padding: 0.55rem 0.55rem 0.55rem 0;
}

.soft-phone-history-table .soft-phone-table-index-col,
.soft-phone-history-table .soft-phone-table-index {
  width: 2.25rem;
  font-size: 0.68rem;
}

.soft-phone-history-table th:nth-child(2),
.soft-phone-history-table td:nth-child(2) {
  width: 18%;
}

.soft-phone-history-table th:nth-child(3),
.soft-phone-history-table td:nth-child(3) {
  width: 8.5rem;
  white-space: nowrap;
}

.soft-phone-history-table th:nth-child(4),
.soft-phone-history-table td:nth-child(4) {
  width: 5.25rem;
  white-space: nowrap;
}

.soft-phone-history-table th:nth-child(5),
.soft-phone-history-table td:nth-child(5) {
  width: 6.5rem;
  white-space: nowrap;
}

.soft-phone-history-table th:nth-child(6),
.soft-phone-history-table td:nth-child(6) {
  width: 4.25rem;
  white-space: nowrap;
}

.soft-phone-history-table th:nth-child(7),
.soft-phone-history-table td:nth-child(7) {
  width: 8rem;
  white-space: nowrap;
}

.soft-phone-history-table th:last-child,
.soft-phone-history-table td:last-child {
  width: 8.5rem;
  padding-right: 0;
}

.soft-phone-history-table .soft-phone-table-primary {
  font-size: 0.8rem;
}

.soft-phone-history-table .soft-phone-history-status {
  padding: 0.12rem 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.03em;
}

.soft-phone-history-table .soft-phone-history-actions {
  gap: 0.25rem;
}

.soft-phone-history-table .soft-phone-icon-btn {
  width: 1.7rem;
  min-width: 1.7rem;
  height: 1.7rem;
  min-height: 1.7rem;
  padding: 0;
}

.soft-phone-history-table .soft-phone-action-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.soft-phone-recording-open-btn {
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0;
  border-radius: 999px;
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
}

.soft-phone-recording-open-btn:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.soft-phone-recording-cell-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.soft-phone-transcript-open-btn {
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0;
  border-radius: 999px;
  color: #fff;
  border-color: #7c3aed;
  background: #7c3aed;
}

.soft-phone-transcript-open-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.soft-phone-transcript-open-btn.is-failed {
  border-color: #b42318;
  background: #fee4e2;
  color: #b42318;
}

.soft-phone-transcript-open-btn.is-loading {
  cursor: default;
  border-color: #e0d9cf;
  background: #f0ebe4;
}

.soft-phone-transcript-spinner {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 2px solid rgba(124, 58, 237, 0.25);
  border-top-color: #7c3aed;
  animation: soft-phone-spin 0.75s linear infinite;
}

.soft-phone-transcript-open-btn.is-loading .soft-phone-transcript-spinner {
  border: 2px solid rgba(154, 148, 140, 0.35);
  border-top-color: #5c574f;
}

@keyframes soft-phone-spin {
  to {
    transform: rotate(360deg);
  }
}

.soft-phone-transcript-panel {
  width: min(72rem, calc(100vw - 2rem));
  max-width: 72rem;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.soft-phone-transcript-layout {
  display: flex !important;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0 !important;
  padding: 0 !important;
  background: #fff;
  overflow: hidden;
}

.soft-phone-transcript-stats {
  flex: 0 0 20%;
  width: 20%;
  max-width: 20%;
  align-self: stretch;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
  margin: 0;
  padding: 1.35rem 1.25rem;
  border-right: 1px solid #e6e2dc;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

.soft-phone-transcript-stats .soft-phone-recording-label {
  margin: 0.85rem 0 0;
}

.soft-phone-transcript-stats .soft-phone-recording-label:first-child {
  margin-top: 0;
}

.soft-phone-transcript-stats .soft-phone-recording-value {
  margin: 0;
}

.soft-phone-transcript-main {
  flex: 1 1 80%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.soft-phone-transcript-empty {
  margin: 0;
  padding: 1.35rem 1.45rem;
  font-size: 0.9rem;
  color: #9a948c;
}

.soft-phone-transcript-loading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1.35rem 1.45rem;
  font-size: 0.9rem;
  color: #5c574f;
}

.soft-phone-transcript-lines {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0;
}

.soft-phone-transcript-line {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.7rem 1.45rem;
  border-bottom: 1px solid #f0ebe4;
}

.soft-phone-transcript-line:last-child {
  border-bottom: 0;
}

.soft-phone-transcript-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #837972;
  padding-top: 0.15rem;
}

.soft-phone-transcript-line-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #222220;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 720px) {
  .soft-phone-transcript-layout {
    flex-direction: column;
  }

  .soft-phone-transcript-stats {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    border-right: 0;
    border-bottom: 1px solid #e6e2dc;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.85rem;
    row-gap: 0.65rem;
    align-items: baseline;
  }

  .soft-phone-transcript-stats .soft-phone-recording-label {
    margin: 0;
  }
}

#soft-phone-transcript-modal .soft-phone-recording-footer {
  flex-shrink: 0;
}

.soft-phone-recording-panel {
  width: min(40rem, calc(100vw - 2rem));
  max-width: 40rem;
  overflow: hidden;
  background: #fff;
}

.soft-phone-recording-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1.6rem 1.65rem;
  background: #fff;
}

.soft-phone-recording-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.5rem;
}

.soft-phone-recording-meta-item {
  min-width: 0;
}

.soft-phone-recording-label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a948c;
}

.soft-phone-recording-value {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #222220;
  word-break: break-word;
}

.soft-phone-recording-player {
  padding: 1rem 1.1rem;
  border: 1px solid #e6e2dc;
  border-radius: 0.75rem;
  background: #fff;
}

.soft-phone-recording-player audio {
  display: block;
  width: 100%;
  height: 2.5rem;
}

.soft-phone-recording-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1.05rem 1.6rem;
  border-top: 1px solid #e6e2dc;
  background: #fff;
}

.soft-phone-recording-footer .lead-modal-cancel {
  min-height: 2.65rem;
  margin-top: 0;
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  box-sizing: border-box;
}

.soft-phone-recording-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  margin-top: 0;
}

.soft-phone-recording-download-icon {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}

.soft-phone-contact-panel {
  background: #fff;
  overflow: hidden;
}

.soft-phone-contact-panel .lead-modal-body {
  background: #fff;
}

.soft-phone-recording-empty {
  color: #9a948c;
}

.soft-phone-history-status {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c574f;
  background: #f0ebe4;
  border-color: #e0d9cf;
}

.soft-phone-history-status[data-status="completed"] {
  color: #067647;
  background: #e8f5ef;
  border-color: #abefc6;
}

.soft-phone-history-status[data-status="missed"] {
  color: #b54708;
  background: #fef0c7;
  border-color: #fedf89;
}

.soft-phone-history-status[data-status="rejected"],
.soft-phone-history-status[data-status="failed"] {
  color: #b42318;
  background: #fee4e2;
  border-color: #fecdca;
}

.soft-phone-history-status[data-status="canceled"] {
  color: #5c574f;
  background: #f0ebe4;
  border-color: #e0d9cf;
}

.soft-phone-history-empty td,
.soft-phone-contacts-empty td {
  padding: 0.35rem 0 0.15rem;
  color: inherit;
  font-size: inherit;
}

.soft-phone-history-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.soft-phone-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.9rem;
  height: 1.9rem;
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0;
  aspect-ratio: 1;
}

.soft-phone-action-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.soft-phone-history-filter-empty {
  margin: 0;
  padding: 0.25rem 0 0.5rem;
}

.soft-phone-contacts-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 0;
}

.soft-phone-contacts-table {
  min-width: 28rem;
}

.soft-phone-list-btn {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease;
}

.soft-phone-list-btn:hover:not(:disabled):not(.soft-phone-list-btn--danger) {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.soft-phone-list-btn--danger {
  border: 1px solid #e6e2dc;
  background: #fff;
  color: #b42318;
}

.soft-phone-list-btn--danger:hover:not(:disabled) {
  border-color: #fecdca;
  background: #fee4e2;
  color: #912018;
}

.soft-phone-list-btn--danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .soft-phone-contact-form-grid,
  .soft-phone-recording-meta-grid {
    grid-template-columns: 1fr;
  }

  .soft-phone-recording-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .soft-phone-call-layout {
    grid-template-columns: 1fr;
  }

  .soft-phone-panel {
    max-width: 24rem;
    margin: 0 auto;
  }
}



.table-pager {
  margin-top: 0.85rem;
}

.table-pager-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.table-pager-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.table-pager-page {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c574f;
  white-space: nowrap;
}

.table-pager-btn {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 2.1rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.table-pager-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.table-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.copy-number {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: copy;
  border-radius: 0.2rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-color 120ms ease, color 120ms ease;
}

.copy-number:hover,
.copy-number:focus-visible {
  background: var(--secondary);
  outline: none;
}

.copy-number.is-copied {
  background: rgba(6, 118, 71, 0.14);
  color: #067647;
}

.call-routing-group-phone-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.call-routing-group-phone-row .notif-input {
  flex: 1 1 auto;
  min-width: 0;
}

.call-routing-group-phone-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #a8a29a;
  box-shadow: none;
  cursor: pointer;
}

.call-routing-group-phone-refresh:hover:not(:disabled) {
  background: transparent;
  color: #6f6a63;
  border-color: transparent;
}

.call-routing-group-phone-refresh:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.call-routing-group-phone-refresh-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.call-routing-group-panel .soft-phone-side-error {
  margin-top: 0.75rem;
  flex: 0 0 auto;
}

.call-routing-group-table th:nth-child(2),
.call-routing-group-table td:nth-child(2) {
  width: 28%;
  max-width: none;
}

.call-routing-group-table th:nth-child(3),
.call-routing-group-table td:nth-child(3) {
  width: auto;
  max-width: none;
}

.call-routing-group-table th:nth-child(4),
.call-routing-group-table td:nth-child(4) {
  width: 9.5rem;
  max-width: none;
}

.call-routing-group-table th:last-child,
.call-routing-group-table td:last-child {
  width: 5.5rem;
  max-width: none;
}

.call-routing-group-select-cell input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  cursor: pointer;
  vertical-align: middle;
}

.call-routing-group-table .call-routing-group-member {
  cursor: pointer;
}

.call-routing-group-table .call-routing-group-member:hover td {
  background: var(--secondary);
}

.admin-call-routing-page .admin-leads-toolbar {
  flex-wrap: nowrap;
}

.admin-call-routing-page .call-routing-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.admin-call-routing-page .call-routing-settings-btn,
.admin-call-routing-page .call-routing-create-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-left: 0;
  flex-shrink: 0;
  width: auto;
  min-width: 0;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-call-routing-page .call-routing-create-group-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.admin-call-routing-page .call-routing-agents-card {
  margin-top: 0;
}

.admin-call-routing-page .call-routing-agents-table-wrap {
  max-width: none;
  max-height: calc(100vh - 14rem);
  margin-top: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.admin-call-routing-page .admin-leads-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.admin-call-routing-page .admin-leads-table thead th {
  padding: 0.55rem 0.55rem 0.55rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.admin-call-routing-page .admin-leads-table .order-vps-plan-row td {
  padding: 0.55rem 0.55rem 0.55rem 0;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-call-routing-page .admin-leads-table .order-vps-table-index-col,
.admin-call-routing-page .admin-leads-table .order-vps-table-index {
  width: 2.25rem;
  padding-right: 0.35rem;
}

.admin-call-routing-page .admin-leads-table th:nth-child(2),
.admin-call-routing-page .admin-leads-table td:nth-child(2) {
  width: 12rem;
  min-width: 0;
  white-space: normal;
}

.admin-call-routing-page .admin-leads-table th:nth-child(3),
.admin-call-routing-page .admin-leads-table td:nth-child(3) {
  width: 5.5rem;
  text-align: center;
  overflow: hidden;
}

.admin-call-routing-page .admin-leads-table th:nth-child(4),
.admin-call-routing-page .admin-leads-table td:nth-child(4) {
  width: 3.5rem;
  text-align: center;
}

.admin-call-routing-page .admin-leads-table th:nth-child(5),
.admin-call-routing-page .admin-leads-table td:nth-child(5) {
  width: 6.5rem;
}

.admin-call-routing-page .admin-leads-table th:nth-child(6),
.admin-call-routing-page .admin-leads-table td:nth-child(6) {
  width: 7.25rem;
}

.admin-call-routing-page .admin-leads-table th:nth-child(7),
.admin-call-routing-page .admin-leads-table td:nth-child(7),
.admin-call-routing-page .admin-leads-table th:nth-child(8),
.admin-call-routing-page .admin-leads-table td:nth-child(8) {
  width: 3.75rem;
  text-align: center;
}

.admin-call-routing-page .admin-leads-table th:nth-child(9),
.admin-call-routing-page .admin-leads-table td:nth-child(9),
.admin-call-routing-page .admin-leads-table th:nth-child(10),
.admin-call-routing-page .admin-leads-table td:nth-child(10) {
  width: 4.25rem;
}

.admin-call-routing-page .admin-leads-table th:nth-child(10),
.admin-call-routing-page .admin-leads-table td:nth-child(10) {
  padding-right: 0;
}

.admin-call-routing-page .admin-leads-table .order-vps-table-spec-primary {
  font-size: 0.82rem;
  line-height: 1.25;
}

.admin-call-routing-page .admin-leads-table .order-vps-table-spec-secondary {
  font-size: 0.7rem;
  margin-top: 0.05rem;
}

.admin-call-routing-page .call-routing-groups-cell {
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-call-routing-page .call-routing-group-link {
  display: inline;
  margin: 0 0.3rem 0 0;
  font-size: 0.75rem;
}

.admin-call-routing-page .leads-balance-count {
  font-size: 0.8rem;
}

.admin-call-routing-page .leads-mgmt-input {
  width: 3.5rem;
  min-width: 3.5rem;
  min-height: 1.75rem;
  height: 1.75rem;
  padding: 0 0.3rem;
  font-size: 0.8rem;
}

.admin-call-routing-page .leads-mgmt-adjust {
  gap: 0.25rem;
  justify-content: flex-start;
}

.call-routing-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  min-height: 1.75rem;
  margin: 0 auto;
  padding: 0.2rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease;
}

.admin-call-routing-page .call-routing-status {
  max-width: 100%;
  min-width: 5.75rem;
  min-height: 2.15rem;
  box-sizing: border-box;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-call-routing-page .call-routing-status.is-unverified {
  position: relative;
  border-color: transparent;
  overflow: visible;
  text-overflow: clip;
}

.admin-call-routing-page .call-routing-status.is-unverified:disabled {
  opacity: 1;
}

.call-routing-status.is-ready {
  color: #166534;
  background: #dcfce7;
}

.call-routing-status.is-busy {
  color: #991b1b;
  background: #fee2e2;
}

.call-routing-status.is-in-call {
  color: #1e40af;
  background: #dbeafe;
}

.call-routing-status.is-in-call:disabled {
  opacity: 1;
  cursor: default;
}

.call-routing-status.is-unverified {
  color: #92400e;
  background: #fef3c7;
  border-color: #f59e0b;
}

.call-routing-status:hover:not(:disabled) {
  transform: translateY(-1px);
}

.call-routing-status:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.call-routing-status:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.call-routing-status.is-unverified:disabled {
  opacity: 0.55;
}

.call-routing-states-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 1.75rem;
  margin: 0 auto;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.call-routing-states-btn:hover {
  background: var(--secondary);
}

.call-routing-states-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.call-routing-states-panel {
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(28rem, calc(100vh - 2rem));
}

.call-routing-states-body {
  padding: 0.85rem 1rem 1.1rem;
  overflow: auto;
}

.call-routing-states-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.call-routing-states-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.call-routing-states-empty {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.admin-call-routing-page .call-routing-stats {
  margin-top: 1rem;
  margin-bottom: 0;
  max-width: 72rem;
}

@media (min-width: 1100px) {
  .admin-call-routing-page .call-routing-stats {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

.call-routing-groups-toolbar {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.call-routing-groups-search-wrap {
  flex: 1 1 14rem;
  min-width: 0;
}

.call-routing-groups-sort-wrap {
  flex: 0 0 auto;
  min-width: 11rem;
}

.call-routing-groups-count {
  margin: 0 0 0 auto;
  flex: 0 0 auto;
}

.call-routing-groups-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0;
  max-width: 72rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 640px) {
  .call-routing-groups-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.call-routing-group-card {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 3rem;
  min-width: 0;
  height: max-content;
}

.call-routing-group-card.is-highlighted {
  background: var(--secondary);
}

.call-routing-groups-cell {
  min-width: 0;
}

.call-routing-group-link {
  display: inline;
  margin: 0 0.45rem 0.15rem 0;
  padding: 0;
  border: 0;
  background: none;
  color: #5c574f;
  font: inherit;
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.call-routing-group-link:hover {
  color: #222220;
}

.call-routing-group-none {
  color: #b0aaa2;
}

.call-routing-group-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.call-routing-group-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #222220;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.call-routing-group-card-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a948c;
  white-space: nowrap;
}

.call-routing-group-card-meta-count {
  font-weight: 600;
}

.call-routing-group-card-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.4rem 0.35rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #222220;
  line-height: 1.35;
  text-align: center;
}

.call-routing-group-card-phone .copy-number {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.3rem;
}

.call-routing-group-card-phone .copy-number::after {
  content: "";
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  background-color: currentColor;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.call-routing-group-card-phone .copy-number:hover::after,
.call-routing-group-card-phone .copy-number:focus-visible::after {
  opacity: 0.85;
}

.call-routing-group-card-phone .copy-number.is-copied::after {
  opacity: 1;
}

.call-routing-group-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: stretch;
  flex-shrink: 0;
}

.call-routing-group-view-btn,
.call-routing-group-edit-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 2.5rem;
  min-width: 0;
  min-height: 2.5rem;
  margin: 0;
  padding: 0 0.7rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.call-routing-group-view-btn {
  background: var(--secondary);
  color: var(--primary);
}

.call-routing-group-view-btn:hover {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.call-routing-group-edit-btn {
  background: var(--primary);
  color: #fff;
}

.call-routing-group-edit-btn:hover {
  background: var(--primary-hover);
}

.call-routing-group-card-actions-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  min-width: 0;
}

.call-routing-group-delete-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  grid-column: 1 / -1;
  width: 100%;
  height: 2.5rem;
  min-width: 0;
  min-height: 2.5rem;
  margin: 0;
  padding: 0 0.7rem;
  border: 1px solid #fecdca;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #b42318;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.call-routing-group-delete-btn:hover:not(:disabled) {
  background: #fef3f2;
  color: #912018;
}

.call-routing-group-delete-btn.is-confirming {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.call-routing-group-delete-btn.is-confirming:hover:not(:disabled) {
  background: #912018;
  border-color: #912018;
  color: #fff;
}

.call-routing-group-delete-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.call-routing-group-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.call-routing-group-pricing-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: 0;
  min-height: 2.5rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.call-routing-group-pricing-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary) 72%, var(--primary) 12%);
  color: var(--primary-hover);
}

.call-routing-group-pricing-btn.is-active {
  background: var(--primary);
  color: #fff;
}

.call-routing-group-pricing-btn.is-active:hover:not(:disabled) {
  background: var(--primary-hover);
  color: #fff;
}

.call-routing-group-pricing-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.call-routing-groups-empty {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #837972;
}

.call-routing-groups-empty[hidden] {
  display: none;
}

.call-routing-settings-panel {
  width: min(56rem, calc(100vw - 2rem));
  max-width: 56rem;
  background: #fff;
}

.call-routing-settings-panel .lead-modal-header {
  padding: 1.15rem 1.65rem;
}

.call-routing-settings-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.65rem 1.65rem 1.85rem;
  background: #fff;
}

.call-routing-settings-layout {
  display: grid;
  gap: 1.75rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .call-routing-settings-layout {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .call-routing-settings-fields {
    padding-right: 2.25rem;
  }

  .call-routing-settings-pricing {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    padding-left: 2.25rem;
    border-left: 1px solid #e6e2dc;
  }
}

.call-routing-settings-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.call-routing-settings-fields .lead-modal-actions {
  justify-content: stretch;
  padding-top: 0.5rem;
}

.call-routing-settings-fields .notif-create-submit {
  width: 100%;
}

.call-routing-settings-pricing {
  min-width: 0;
}

@media (max-width: 639px) {
  .call-routing-settings-pricing {
    padding-top: 1.5rem;
    border-top: 1px solid #e6e2dc;
  }
}

.call-routing-settings-pricing-title {
  margin: 0 0 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dotted #c9c4bc;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a948c;
}

.call-routing-settings-pricing-list {
  display: grid;
  gap: 1.35rem;
  margin: 0;
}

.call-routing-settings-pricing-item dt {
  margin: 0 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #3f3a35;
}

.call-routing-settings-pricing-item dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #222220;
}

.call-routing-settings-pricing-item .call-routing-settings-hint {
  margin-top: 0.3rem;
}

.call-routing-settings-hint {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 450;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #b0aaa2;
}

.call-routing-record-scope {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.call-routing-record-scope > legend {
  padding: 0;
  margin: 0;
}

.call-routing-record-scope .notif-style-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.55rem;
}

.call-routing-record-scope .notif-style-card {
  justify-content: center;
  text-align: center;
  min-height: 2.5rem;
}

.call-routing-group-detail-panel {
  display: flex;
  flex-direction: column;
}

.call-routing-group-detail-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.call-routing-group-detail-phone {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #837972;
}

.call-routing-group-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 1rem 1rem;
  overflow: hidden;
}

.call-routing-group-detail-body .soft-phone-side-error {
  margin: 0.75rem 0;
  flex: 0 0 auto;
}

.call-routing-group-detail-table-wrap {
  flex: 1 1 auto;
  max-width: none;
  max-height: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  overflow: auto;
}

.call-routing-group-detail-phone-value {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #4a453f;
}

.call-routing-group-edit-phone-hint {
  margin: 0.4rem 0 0;
}

@media (max-width: 720px) {
  .admin-call-routing-page .admin-leads-toolbar {
    flex-wrap: wrap;
  }

  .admin-call-routing-page .call-routing-toolbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .admin-call-routing-page .call-routing-create-group {
    margin-left: 0;
  }
}

.routing-history-page,
.routing-history-page .admin-leads-toolbar,
.routing-history-page .routing-history-table-wrap,
.routing-history-page .table-pager,
.routing-history-page .routing-history-filter-empty,
.routing-history-page .routing-history-stats,
.routing-history-page .routing-history-charts {
  width: 100%;
  max-width: none;
}

.routing-history-stats {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.call-recordings-stats {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .routing-history-stats,
  .call-recordings-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .routing-history-stats,
  .call-recordings-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.routing-history-charts,
.admin-leads-charts,
.audit-logs-charts,
.purchase-history-charts,
.leads-mgmt-charts,
.agency-mgmt-charts,
.call-logs-charts,
.dnc-mgmt-charts,
.call-recordings-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .routing-history-charts,
  .admin-leads-charts,
  .audit-logs-charts,
  .purchase-history-charts,
  .leads-mgmt-charts,
  .agency-mgmt-charts,
  .dnc-mgmt-charts {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .call-recordings-charts {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .call-logs-charts {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  }
}

.routing-history-chart-card,
.admin-leads-chart-card,
.audit-logs-chart-card,
.purchase-history-chart-card,
.dnc-mgmt-chart-card,
.call-recordings-chart-card {
  margin: 0;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.routing-history-charts .admin-dashboard-chart-wrap,
.admin-leads-charts .admin-dashboard-chart-wrap,
.audit-logs-charts .admin-dashboard-chart-wrap,
.purchase-history-charts .admin-dashboard-chart-wrap,
.leads-mgmt-charts .admin-dashboard-chart-wrap,
.agency-mgmt-charts .admin-dashboard-chart-wrap,
.dnc-mgmt-charts .admin-dashboard-chart-wrap,
.call-recordings-charts .admin-dashboard-chart-wrap,
.routing-history-charts .admin-dashboard-chart-wrap--donut,
.admin-leads-charts .admin-dashboard-chart-wrap--donut,
.audit-logs-charts .admin-dashboard-chart-wrap--donut,
.purchase-history-charts .admin-dashboard-chart-wrap--donut,
.leads-mgmt-charts .admin-dashboard-chart-wrap--donut,
.agency-mgmt-charts .admin-dashboard-chart-wrap--donut,
.dnc-mgmt-charts .admin-dashboard-chart-wrap--donut,
.call-recordings-charts .admin-dashboard-chart-wrap--donut {
  height: 15rem;
  flex: 1 1 auto;
}

.admin-leads-stats,
.audit-logs-stats,
.leads-mgmt-page-stats,
.agency-mgmt-page-stats,
.dnc-mgmt-stats {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .admin-leads-stats,
  .leads-mgmt-page-stats,
  .agency-mgmt-page-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .audit-logs-stats,
  .dnc-mgmt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .admin-leads-stats,
  .leads-mgmt-page-stats,
  .agency-mgmt-page-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

  .dnc-mgmt-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-leads-page .admin-leads-table-wrap,
.admin-leads-page .table-pager,
.admin-leads-page .admin-leads-stats,
.admin-leads-page .admin-leads-charts,
.audit-logs-page .admin-leads-table-wrap,
.audit-logs-page .table-pager,
.audit-logs-page .audit-logs-filter-empty,
.audit-logs-page .audit-logs-stats,
.audit-logs-page .audit-logs-charts {
  width: 100%;
  max-width: none;
}

.audit-logs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #f1efec;
  color: #514b45;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.audit-logs-pill--ip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.routing-history-page .users-count {
  margin-left: auto;
}

.routing-history-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 0.72rem;
}

.routing-history-page .admin-leads-table thead th {
  padding: 0.3rem 0.35rem 0.4rem 0;
  font-size: 0.52rem;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.routing-history-page .admin-leads-table .order-vps-plan-row td {
  padding: 0.35rem 0.35rem 0.35rem 0;
  vertical-align: middle;
}

.routing-history-page .admin-leads-table th:nth-child(1),
.routing-history-page .admin-leads-table td:nth-child(1) {
  width: 3%;
}

.routing-history-page .admin-leads-table th:nth-child(2),
.routing-history-page .admin-leads-table td:nth-child(2) {
  width: 11%;
  white-space: nowrap;
}

.routing-history-page .admin-leads-table th:nth-child(3),
.routing-history-page .admin-leads-table td:nth-child(3) {
  width: 10%;
  white-space: nowrap;
}

.routing-history-page .admin-leads-table th:nth-child(4),
.routing-history-page .admin-leads-table td:nth-child(4) {
  width: 11%;
}

.routing-history-page .admin-leads-table th:nth-child(5),
.routing-history-page .admin-leads-table td:nth-child(5) {
  width: 5%;
  text-align: center;
}

.routing-history-page .admin-leads-table th:nth-child(6),
.routing-history-page .admin-leads-table td:nth-child(6) {
  width: 12%;
  overflow: hidden;
}

.routing-history-page .admin-leads-table th:nth-child(7),
.routing-history-page .admin-leads-table td:nth-child(7) {
  width: 17%;
  overflow: hidden;
}

.routing-history-page .admin-leads-table th:nth-child(8),
.routing-history-page .admin-leads-table td:nth-child(8) {
  width: 9%;
  overflow: hidden;
  white-space: nowrap;
}

.routing-history-page .admin-leads-table th:nth-child(9),
.routing-history-page .admin-leads-table td:nth-child(9) {
  width: 8%;
  white-space: nowrap;
}

.routing-history-page .admin-leads-table th:nth-child(10),
.routing-history-page .admin-leads-table td:nth-child(10) {
  width: 8%;
  text-align: center;
  white-space: nowrap;
}

.routing-history-page .admin-leads-table th:last-child,
.routing-history-page .admin-leads-table td:last-child {
  width: 6%;
  padding-right: 0;
  text-align: center;
  white-space: nowrap;
}

.routing-history-dnc-cell {
  white-space: normal;
}

.routing-history-dnc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 1.4rem;
  margin: 0;
  padding: 0.16rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.routing-history-dnc-pill--clear {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}

.routing-history-dnc-pill--blocked {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca;
}

.routing-history-dnc-pill--error {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}

.routing-history-dnc-panel {
  width: min(28rem, calc(100vw - 2rem));
}

.routing-history-dnc-body {
  gap: 1rem;
}

.routing-history-dnc-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.routing-history-dnc-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.routing-history-dnc-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, #e6e2dc);
  border-radius: var(--radius-sm);
  background: var(--secondary);
  font-size: 0.78rem;
}

.routing-history-dnc-detail strong {
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.routing-history-dnc-detail strong.is-yes {
  color: #b42318;
}

.routing-history-dnc-detail strong.is-no {
  color: #067647;
}

.routing-history-dnc-detail strong.is-unknown {
  color: #b54708;
}

.routing-history-recording-cell {
  text-align: center;
}

.routing-history-recording-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 1px solid #d8d2c9;
  border-radius: 999px;
  background: #fff;
  color: var(--primary, #2f5d9f);
  cursor: pointer;
}

.routing-history-recording-btn:hover {
  border-color: var(--primary, #2f5d9f);
  background: var(--secondary);
}

.routing-history-recording-btn svg {
  width: 0.75rem;
  height: 0.75rem;
  display: block;
}

.routing-history-page .admin-leads-table .order-vps-table-spec-primary {
  font-size: 0.68rem;
  line-height: 1.2;
}

.routing-history-page .admin-leads-table .order-vps-table-spec-secondary {
  display: block;
  font-size: 0.54rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.routing-history-attempts-cell {
  min-width: 0;
}

.routing-history-attempt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.05rem 0.3rem;
  align-items: center;
}

.routing-history-attempt + .routing-history-attempt {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid #ece8e3;
}

.routing-history-priority,
.routing-history-state,
.routing-history-outcome {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.routing-history-priority {
  grid-row: 1 / span 2;
  min-width: 1.6rem;
  padding: 0.22rem 0.25rem;
  background: var(--secondary);
  color: var(--primary);
}

.routing-history-attempt-numbers {
  color: #3f3a35;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routing-history-amd-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.2rem;
  padding: 0.08rem 0.28rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: 0.05em;
}

.routing-history-state {
  min-width: 1.5rem;
  padding: 0.22rem 0.28rem;
  background: #f1efec;
  color: #514b45;
}

.routing-history-outcome {
  padding: 0.22rem 0.35rem;
  background: #f1efec;
  color: #514b45;
  white-space: nowrap;
}

.routing-history-outcome--answered {
  background: #e6f6ed;
  color: #17643a;
}

.routing-history-outcome--routing {
  background: var(--secondary);
  color: var(--primary);
}

.routing-history-outcome--unanswered,
.routing-history-outcome--no_agents,
.routing-history-outcome--no_state,
.routing-history-outcome--dnc_blocked {
  background: #fff0ed;
  color: #9f2f24;
}

.routing-history-outcome--dnc_error {
  background: #fffaeb;
  color: #b54708;
}

.routing-history-outcome--buffer_exceeded {
  background: #fef3f2;
  color: #b42318;
}

.routing-history-outcome--within_buffer {
  background: #fffaeb;
  color: #b54708;
  border: 1px solid #fedf89;
}

@media (max-width: 720px) {
  .routing-history-page .admin-leads-toolbar {
    flex-wrap: wrap;
  }

  .routing-history-page .users-count {
    width: 100%;
    margin-left: 0;
  }
}

.routing-monitor-page {
  display: grid;
  gap: 1.25rem;
  width: 100%;
}

.routing-monitor-embedded {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.routing-monitor-page .soft-phone-numbers-card,
.routing-monitor-page .call-routing-agents-card,
.routing-monitor-page .call-routing-agents-table-wrap,
.routing-monitor-page .routing-monitor-table-wrap,
.routing-monitor-page .admin-leads-toolbar,
.routing-monitor-page .users-toolbar,
.routing-monitor-page .routing-history-table-wrap,
.routing-monitor-page .table-pager,
.routing-monitor-page .routing-history-filter-empty,
.routing-monitor-page .admin-dashboard-stats,
.routing-monitor-page .routing-monitor-charts {
  width: 100%;
  max-width: none;
}

.routing-monitor-embedded .users-toolbar {
  margin-bottom: 0;
}

.routing-monitor-embedded .call-routing-agents-card,
.routing-monitor-embedded .routing-history-table-wrap {
  margin-top: 0;
}

.routing-monitor-mode,
.routing-monitor-state,
.routing-monitor-buffer {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.routing-monitor-stats {
  margin: 0;
}

.routing-monitor-charts {
  width: 100%;
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .routing-monitor-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .routing-monitor-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.routing-monitor-stat--live {
  background: #f1faf5;
  border-color: rgba(23, 100, 58, 0.2);
}

.routing-monitor-panel {
  min-width: 0;
  margin: 0;
}

.routing-monitor-section {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.routing-monitor-section-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.routing-monitor-section-stats .admin-dashboard-stat {
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
}

.routing-monitor-section-stats .admin-dashboard-stat-value {
  font-size: 1.05rem;
}

@media (min-width: 720px) {
  .routing-monitor-section-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.routing-monitor-grid {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.routing-monitor-body {
  display: flex;
  flex-direction: column;
}

.routing-monitor-table-wrap {
  flex: 0 1 auto;
  width: 100%;
  max-width: none;
  max-height: calc(100vh - 12rem);
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: auto;
}

.routing-monitor-table-wrap[hidden] {
  display: none !important;
}

.routing-monitor-table .order-vps-plan-row:last-of-type td {
  border-bottom-color: transparent;
}

.routing-monitor-fill {
  flex: 1 1 0;
  min-height: 0;
  margin-top: -1px;
  padding: 0;
  position: relative;
  z-index: 1;
  background: #fff;
}

.routing-monitor-fill[hidden] {
  display: none;
}

.routing-monitor-fill .table-skeleton {
  height: 100%;
  min-height: inherit;
  margin: 0;
}

.routing-monitor-table {
  width: 100%;
  min-width: 42rem;
  table-layout: fixed;
}

.routing-monitor-table thead th {
  padding: 0.55rem 0.55rem 0.55rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.routing-monitor-table .order-vps-plan-row td {
  padding: 0.55rem 0.55rem 0.55rem 0;
  white-space: nowrap;
  vertical-align: middle;
}

.routing-monitor-table tbody * {
  font-weight: 400;
}

.routing-monitor-table thead th:last-child,
.routing-monitor-table .order-vps-plan-row td:last-child {
  padding-right: 0;
}

.routing-monitor-table .order-vps-table-index-col,
.routing-monitor-table .order-vps-table-index {
  width: 2.25rem;
  padding-right: 0.35rem;
}

.routing-monitor-live-table {
  min-width: 62rem;
}

.routing-monitor-primary,
.routing-monitor-secondary {
  display: block;
}

.routing-monitor-primary {
  color: #1f1b18;
  font-weight: 600;
  white-space: nowrap;
}

.routing-monitor-secondary {
  margin-top: 0.16rem;
  color: #837b74;
  font-size: 0.67rem;
  white-space: nowrap;
}

.routing-monitor-secondary--strong {
  margin-top: 0;
  color: #514b45;
  font-size: 0.75rem;
  font-weight: 550;
}

.routing-monitor-metric {
  color: #352f2a;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

.routing-monitor-mode,
.routing-monitor-state,
.routing-monitor-buffer {
  padding: 0.3rem 0.48rem;
  font-size: 0.58rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.routing-monitor-mode--cpl {
  background: var(--secondary);
  color: var(--primary);
}

.routing-monitor-mode--cpa {
  background: #f2ebfb;
  color: #6941a5;
}

.routing-monitor-state--connected {
  background: #e6f6ed;
  color: #17643a;
}

.routing-monitor-state--ringing,
.routing-monitor-state--routing {
  background: #fff5df;
  color: #865b00;
}

.routing-monitor-state--stale {
  background: #f1efec;
  color: #69615a;
}

.routing-monitor-buffer {
  background: #edf7f1;
  color: #17643a;
}

.routing-monitor-buffer--exceeded {
  background: #fef0ee;
  color: #b42318;
}

.routing-monitor-danger {
  color: #b42318;
  font-family: var(--font-mono);
  font-weight: 700;
}

.routing-monitor-muted {
  color: #918a83;
  font-family: var(--font-mono);
  font-size: 0.67rem;
}

.routing-monitor-sync {
  margin: 0.1rem 0 0;
  color: #89817a;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-align: right;
}



.call-logs-page .call-logs-table {
  min-width: 42rem;
  font-size: 0.78rem;
}

.call-logs-page .call-logs-toolbar {
  max-width: none;
}

.call-logs-page .call-logs-number-toolbar {
  margin-top: 1.5rem;
}

.call-logs-page .call-logs-table thead th {
  padding: 0 0.55rem 0.45rem 0;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.call-logs-page .call-logs-table .soft-phone-data-row td {
  padding: 0.45rem 0.55rem 0.45rem 0;
}

.call-logs-page .call-logs-table .soft-phone-table-index-col,
.call-logs-page .call-logs-table .soft-phone-table-index {
  width: 2.25rem;
  font-size: 0.66rem;
}

.call-logs-page .call-logs-table th:nth-child(2),
.call-logs-page .call-logs-table td:nth-child(2) {
  width: 6.5rem;
  white-space: nowrap;
}

.call-logs-page .call-logs-table th:nth-child(3),
.call-logs-page .call-logs-table td:nth-child(3),
.call-logs-page .call-logs-table th:nth-child(4),
.call-logs-page .call-logs-table td:nth-child(4) {
  width: 8.5rem;
}

.call-logs-page .call-logs-table th:nth-child(5),
.call-logs-page .call-logs-table td:nth-child(5) {
  width: 2.5rem;
}

.call-logs-page .call-logs-table th:nth-child(6),
.call-logs-page .call-logs-table td:nth-child(6) {
  width: 5.5rem;
}

.call-logs-page .call-logs-table th:nth-child(7),
.call-logs-page .call-logs-table td:nth-child(7) {
  width: 3.25rem;
}

.call-logs-page .call-logs-table th:nth-child(8),
.call-logs-page .call-logs-table td:nth-child(8) {
  width: 4.75rem;
}

.call-logs-page .call-logs-table th:nth-child(9),
.call-logs-page .call-logs-table td:nth-child(9) {
  width: 4.5rem;
}

.call-logs-page .call-logs-number,
.call-logs-page .call-logs-mono,
.call-logs-page .call-logs-sid {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.call-logs-page .call-logs-table .purchase-status {
  font-size: 0.62rem;
  padding: 0.12rem 0.35rem;
}

.call-logs-dir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.call-logs-dir--inbound {
  background: #e8f2ec;
  color: #17643a;
}

.call-logs-dir--outbound {
  background: #e8eef8;
  color: #2f5d9f;
}

.call-logs-dir--other {
  background: #f1eee9;
  color: #746d66;
}

.call-logs-dir--number {
  background: #f7efe2;
  color: #8a5a16;
}

.admin-status-toast-stack {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 1200;
  display: grid;
  width: min(28rem, calc(100vw - 2rem));
  gap: 0.45rem;
  pointer-events: none;
}

.admin-status-toast {
  --announcement-bg: var(--secondary);
  --announcement-fg: #111111;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 2rem;
  padding: 0.35rem 2.5rem 0.35rem 1rem;
  border: 0;
  border-radius: 0;
  background: var(--announcement-bg);
  color: var(--announcement-fg);
  box-shadow: 0 10px 24px rgb(29 25 22 / 16%);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-0.45rem);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.admin-status-toast--busy {
  --announcement-bg: #991b1b;
  --announcement-fg: #ffffff;
}

.admin-status-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-status-toast .announcement-badge {
  border-color: color-mix(in srgb, var(--announcement-fg, #fff) 35%, transparent);
}

.admin-status-toast .announcement-message {
  text-align: left;
}

.admin-status-toast-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--announcement-fg, #fff) 80%, transparent);
  transform: translateY(-50%);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  transition: color 120ms ease;
}

.admin-status-toast-close:hover {
  color: var(--announcement-fg, #fff);
  background: transparent;
}

.contracts-embed-input {
  min-height: 9.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  resize: vertical;
}

.contracts-help {
  margin: 0.45rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.74rem;
  line-height: 1.4;
}

.contracts-visibility-grid {
  margin-bottom: 0.85rem;
}

.contracts-audience-panel {
  display: grid;
  gap: 0.55rem;
}

.contracts-audience-panel[hidden] {
  display: none;
}

.contracts-audience-list {
  display: grid;
  gap: 0.35rem;
  max-height: 14rem;
  overflow: auto;
  padding: 0.55rem;
  border: 1px solid #e5e0da;
  border-radius: var(--radius-sm);
  background: #fcfbf9;
}

.contracts-audience-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  margin: 0;
  padding: 0.35rem 0.4rem;
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--foreground);
  font-size: 0.78rem;
  line-height: 1.35;
  cursor: pointer;
}

.contracts-audience-option:hover {
  background: #f3efe9;
}

.contracts-audience-option input {
  margin-top: 0.15rem;
}

.contracts-audience-empty {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.76rem;
}

.contracts-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.contracts-row-title {
  margin: 0;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111;
  overflow-wrap: anywhere;
}

.contracts-row-delete {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e0da;
  border-radius: 999px;
  background: #fff;
  color: #9a948c;
  cursor: pointer;
  transition:
    color 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.contracts-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.contracts-row-edit {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e0da;
  border-radius: 999px;
  background: #fff;
  color: #9a948c;
  cursor: pointer;
  transition:
    color 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.contracts-row-edit:hover {
  border-color: #cfd9ea;
  background: #f3f6fb;
  color: #2f5d9f;
}

.contracts-row-delete:hover {
  border-color: #f0c8c2;
  background: #fdf3f2;
  color: #b42318;
}

.contracts-row.is-editing {
  margin: 0.35rem -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  border-radius: var(--radius-sm);
  background: #f7f5f1;
}

#contract-form.is-editing {
  border-color: #2f5d9f;
}

.contracts-row-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.contracts-visibility-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: #f1eee9;
  color: #746d66;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}

.contracts-visibility-pill--all {
  background: #e8f2ec;
  color: #17643a;
}

.contracts-visibility-pill--users {
  background: #e8eef8;
  color: #2f5d9f;
}

.contracts-visibility-pill--agencies {
  background: #f1ebf8;
  color: #6941a6;
}

.contracts-visibility-pill--groups {
  background: #f7efe2;
  color: #8a5a16;
}

.contracts-row-audience {
  color: #5c574f;
  font-size: 0.74rem;
  line-height: 1.4;
}

.contracts-row-date {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a948c;
}

.contracts-user-page {
  max-width: 72rem;
}

.contracts-user-shell {
  display: grid;
  gap: 0.85rem;
  background: transparent;
}

@media (min-width: 900px) {
  .contracts-user-shell {
    grid-template-columns: minmax(13rem, 15rem) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
  }
}

.contracts-user-tabs {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.contracts-user-tab {
  appearance: none;
  width: 100%;
  margin: 0;
  gap: 0.45rem;
  padding: 0.7rem 0.75rem;
  text-align: left;
  border-color: transparent;
  background: var(--secondary);
  color: var(--primary);
}

.contracts-user-tab:hover,
.contracts-user-tab.is-selected,
.contracts-user-tab.is-selected:hover {
  border-color: var(--primary);
  background: var(--secondary);
}

.contracts-user-tab .notif-style-name {
  color: var(--primary);
}

.contracts-user-tab .notif-style-meta {
  color: color-mix(in srgb, var(--primary) 65%, transparent);
}

.contracts-user-tab .notif-style-icon,
.contracts-user-tab.is-selected .notif-style-icon {
  color: var(--primary);
}

.contracts-user-tab-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.contracts-user-tab-arrow {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contracts-user-tab.is-selected .contracts-user-tab-arrow {
  display: inline-flex;
}

.contracts-user-tab .notif-style-copy {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
}

.contracts-user-tab-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contracts-user-panel {
  min-width: 0;
  min-height: calc(2 * (100vh - 2rem));
  height: calc(2 * (100vh - 2rem));
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: transparent;
  overflow: hidden;
}

@media (min-width: 900px) {
  .contracts-user-panel {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

.contracts-user-panel[hidden] {
  display: none;
}

.contracts-user-embed {
  box-sizing: border-box;
  height: 100%;
  padding: 0.85rem;
  background: transparent;
}

.contracts-user-embed iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  min-height: calc(2 * (100vh - 4rem)) !important;
  border: 0;
  border-radius: calc(var(--radius-sm) - 2px);
  background: #fff;
}

.contracts-user-empty {
  padding: 2.4rem 1.2rem;
  border: 1px dashed #ddd6ce;
  border-radius: var(--radius-sm);
  background: #fcfbf9;
  color: var(--muted-foreground);
  text-align: center;
}

.contracts-user-empty p {
  margin: 0;
  font-size: 0.9rem;
}

.contracts-user-empty-card {
  max-width: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contracts-user-empty-card .soft-phone-table-wrap {
  margin-bottom: 0;
  max-height: none;
  overflow: visible;
  min-height: 24rem;
}

/* -- DNC check (standalone) -- */
.dnc-check-shell {
  max-width: 28rem;
}

.dnc-check-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dnc-check-top .lead-public-brand {
  margin: 0;
}

.dnc-check-logout-form {
  margin: 0;
}

.dnc-check-logout {
  width: auto;
  min-width: 0;
  min-height: 2.2rem;
  margin-top: 0;
  padding: 0 0.85rem;
  font-size: 0.68rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.dnc-check-form {
  display: grid;
  gap: 0.85rem;
}

.dnc-check-result {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.dnc-check-result-head {
  margin-bottom: 0.9rem;
}

.dnc-check-result-phone {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.dnc-check-result-summary {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 560;
}

.dnc-check-result-summary.is-clear {
  color: #1f7a4d;
}

.dnc-check-result-summary.is-danger {
  color: #b42318;
}

.dnc-check-flags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.dnc-check-flag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--muted) 55%, transparent);
}

.dnc-check-flag-label {
  font-size: 0.82rem;
  color: var(--muted-foreground);
}

.dnc-check-flag-value {
  font-size: 0.82rem;
  font-weight: 650;
  min-width: 4.5rem;
  text-align: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8e4de;
  color: #44403c;
}

.dnc-check-flag-value.is-yes {
  background: #fee4e2;
  color: #b42318;
}

.dnc-check-flag-value.is-no {
  background: #dcf5e7;
  color: #1f7a4d;
}

.dnc-check-flag-value.is-unknown {
  background: #f5efe6;
  color: #78716c;
}

.dnc-mgmt-page .soft-phone-table-wrap,
.dnc-mgmt-page .table-pager,
.dnc-mgmt-page .dnc-mgmt-stats,
.dnc-mgmt-page .dnc-mgmt-charts,
.dnc-mgmt-page .dnc-mgmt-toolbar,
.dnc-mgmt-page .dnc-accounts-card,
.dnc-mgmt-page .dnc-history-card {
  width: 100%;
  max-width: none;
}

.dnc-mgmt-toolbar {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.dnc-mgmt-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.dnc-mgmt-toolbar-actions .dnc-mgmt-open-btn,
.dnc-mgmt-toolbar-actions .admin-leads-csv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-left: 0;
  margin-top: 0;
  width: auto;
  min-width: 0;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .dnc-mgmt-toolbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

.dnc-accounts-card,
.dnc-history-card {
  max-width: none;
  max-height: none;
  min-height: 0;
  height: fit-content;
  overflow: visible;
  padding-bottom: 0;
  margin-bottom: 1rem;
}

.dnc-accounts-card .soft-phone-table-wrap,
.dnc-history-card .soft-phone-table-wrap {
  margin-bottom: 0;
  max-height: calc(100vh - 14rem);
  overflow: auto;
}

.dnc-accounts-card:has(.table-skeleton) .soft-phone-table-wrap,
.dnc-history-card:has(.table-skeleton) .soft-phone-table-wrap {
  min-height: 12rem;
}

.dnc-accounts-card .soft-phone-table-wrap {
  max-height: 26rem;
}

.dnc-accounts-table {
  min-width: 40rem;
}

.dnc-accounts-table th:nth-child(2),
.dnc-accounts-table td:nth-child(2) {
  width: 22%;
}

.dnc-accounts-table th:nth-child(3),
.dnc-accounts-table td:nth-child(3) {
  width: 10.5rem;
  white-space: nowrap;
}

.dnc-accounts-table th:nth-child(4),
.dnc-accounts-table td:nth-child(4) {
  width: 5.5rem;
}

.dnc-accounts-table th:nth-child(5),
.dnc-accounts-table td:nth-child(5) {
  width: 8rem;
}

.dnc-accounts-table th:nth-child(6),
.dnc-accounts-table td:nth-child(6) {
  width: 7.5rem;
}

.dnc-accounts-table td:nth-child(3) .soft-phone-table-secondary {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dnc-account-check-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.dnc-account-actions-cell {
  text-align: left;
}

.dnc-account-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
}

.dnc-account-actions .soft-phone-list-btn.soft-phone-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.9rem;
  height: 1.9rem;
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0;
}

.dnc-mgmt-page > .table-pager,
.dnc-mgmt-page > .dnc-accounts-filter-empty,
.dnc-mgmt-page > .dnc-history-filter-empty {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.dnc-mgmt-page > #dnc-accounts-pager,
.dnc-mgmt-page > .dnc-accounts-filter-empty {
  margin-bottom: 1.25rem;
}

.dnc-history-table {
  min-width: 65rem;
}

.dnc-history-table th:nth-child(2),
.dnc-history-table td:nth-child(2) {
  width: 10.5rem;
  white-space: nowrap;
}

.dnc-history-table th:nth-child(3),
.dnc-history-table td:nth-child(3) {
  width: 9rem;
}

.dnc-history-table td:nth-child(3) .soft-phone-table-primary {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dnc-history-table th:nth-child(4),
.dnc-history-table td:nth-child(4) {
  width: 9rem;
  white-space: nowrap;
}

.dnc-history-table th:nth-child(5),
.dnc-history-table td:nth-child(5) {
  width: 7.5rem;
}

.dnc-history-table th:nth-child(6),
.dnc-history-table td:nth-child(6),
.dnc-history-table th:nth-child(7),
.dnc-history-table td:nth-child(7),
.dnc-history-table th:nth-child(8),
.dnc-history-table td:nth-child(8),
.dnc-history-table th:nth-child(9),
.dnc-history-table td:nth-child(9) {
  width: 5rem;
}

.dnc-history-table th:nth-child(10),
.dnc-history-table td:nth-child(10) {
  width: 5.5rem;
}

.dnc-history-table td:nth-child(2) .soft-phone-table-secondary,
.dnc-history-table td:nth-child(10) .soft-phone-table-secondary {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dnc-outcome-status--clear {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}

.dnc-outcome-status--on_dnc {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca;
}

.dnc-outcome-status--litigator {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}

.dnc-flag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 1.65rem;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  background: #f1efec;
  color: #514b45;
  border-color: #ddd6ce;
}

.dnc-flag-pill--y {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca;
}

.dnc-flag-pill--n {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}

.dnc-flag-pill--u,
.dnc-flag-pill--v {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}

.dnc-account-status {
  gap: 0.3rem;
  cursor: pointer;
}

.dnc-account-status:disabled {
  cursor: progress;
  opacity: 0.6;
}

.dnc-account-status.is-active {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}

.dnc-account-status.is-disabled {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca;
}
