:root {
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-800: #1d4ed8;
  --blue-700: #2563eb;
  --blue-600: #3b82f6;
  --blue-100: #dbeafe;
  --blue-075: #e8f1ff;
  --blue-050: #eff6ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe3ee;
  --soft-line: #eef2f7;
  --danger: #dc2626;
  --warning: #b45309;
  --success: #16a34a;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --page: #f1f5f9;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  --soft-shadow: 0 5px 18px rgba(15, 23, 42, 0.07);
  --focus-ring: rgba(37, 99, 235, 0.2);
  --radius: 12px;
  --layout-max-width: 1440px;
  --layout-wide-max-width: 1600px;
  --layout-reading-max-width: 1200px;
  --layout-marketing-max-width: 1480px;
  --layout-gutter: clamp(16px, 2.5vw, 40px);
  --font-family-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-size-xs: 0.8125rem;
  --font-size-sm: 0.9375rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: clamp(2.25rem, 4vw, 3.5rem);
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --control-height: 42px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --blue-950: #edf6ff;
  --blue-900: #d8e9ff;
  --blue-800: #b9d8ff;
  --blue-700: #8fc2ff;
  --blue-600: #63a8ff;
  --blue-100: #153f6d;
  --blue-075: #102f52;
  --blue-050: #0c253f;
  --ink: #edf5ff;
  --muted: #a7b7cb;
  --line: #294866;
  --soft-line: #1d3651;
  --danger: #ff9b90;
  --warning: #ffd479;
  --success: #67d6a0;
  --surface: #0f2136;
  --surface-soft: #122a44;
  --page: #081827;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  --soft-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --focus-ring: rgba(99, 168, 255, 0.28);
  color-scheme: dark;
}

:root[data-theme="dark"] .button,
:root[data-theme="dark"] button.button {
  border-color: #4f9cf3;
  background: #1766b6;
  color: #f7fbff;
}

:root[data-theme="dark"] .button:hover,
:root[data-theme="dark"] button.button:hover {
  border-color: #78b7ff;
  background: #0f5398;
  color: #ffffff;
}

:root[data-theme="dark"] .button.success {
  border-color: #4ade80;
  background: #15803d;
}

:root[data-theme="dark"] .button.success-soft {
  border-color: #4ade80;
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

:root[data-theme="dark"] .button.success-soft:hover {
  border-color: #86efac;
  background: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
}

:root[data-theme="dark"] .button.secondary {
  border-color: #5a87b8;
  background: #102f52;
  color: #d8e9ff;
}

:root[data-theme="dark"] .button.secondary:hover {
  border-color: #8fc2ff;
  background: #153f6d;
  color: #ffffff;
}

:root[data-theme="dark"] .button.danger {
  border-color: #f87171;
  background: transparent;
  color: #fca5a5;
}

:root[data-theme="dark"] .button.danger:hover {
  border-color: #fca5a5;
  background: rgba(220, 38, 38, 0.14);
  color: #fecaca;
}

:root[data-theme="dark"] .filter-pills .filter-link.active,
:root[data-theme="dark"] .filter-pills .filter-link:hover {
  border-color: #5aa8ff;
  background: #145ea8;
  color: #ffffff;
}

:root[data-theme="dark"] .upload-field input[type="file"]::file-selector-button {
  border-color: #4f9cf3;
  background: #1766b6;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--blue-100) 62%, transparent), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, var(--page) 46%, #f6f8fc 100%);
  font-family: var(--font-family-sans);
  font-weight: var(--font-weight-normal);
  line-height: 1.45;
  overflow-x: hidden;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--blue-100) 32%, transparent), transparent 34rem),
    linear-gradient(180deg, var(--surface-soft), var(--page) 48%, #081827);
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

table {
  max-width: 100%;
}

a {
  color: var(--blue-700);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--blue-900);
  text-decoration: underline;
}

button,
input,
select,
textarea {
  min-width: 0;
  font: inherit;
}

code {
  display: inline-block;
  max-width: 100%;
  padding: 0.15rem 0.35rem;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: var(--blue-050);
  color: var(--blue-900);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface) 88%, transparent));
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px);
}

.site-nav,
.page-shell {
  width: min(var(--layout-max-width), calc(100% - (2 * var(--layout-gutter))));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 68px;
}

.site-nav-top {
  display: flex;
  align-items: center;
  flex: 0 0 clamp(130px, 14vw, 176px);
  min-width: 0;
}

.site-nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 0.65rem;
  min-width: 0;
  overflow: visible;
}

.public-mobile-menu,
.mobile-nav-actions {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue-900);
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: var(--soft-shadow);
}

.mobile-nav-toggle:hover {
  border-color: var(--blue-600);
  background: var(--blue-050);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--blue-900);
  font-size: 1.04rem;
  font-weight: 750;
  letter-spacing: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(128px, 13vw, 168px);
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue-700) 45%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(21, 101, 192, 0.22);
}

.desktop-nav-actions,
.nav-links,
.account-links,
.actions,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.desktop-nav-actions {
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(0.65rem, 1.25vw, 1.1rem);
}

.account-links {
  flex: 0 0 auto;
  margin-left: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.48rem;
}

.nav-links a,
.account-links a,
.desktop-nav-actions .nav-link,
.desktop-nav-actions .nav-account-link,
.mobile-nav-actions .nav-account-link,
.link-button {
  color: var(--muted);
  font-size: var(--font-size-sm);
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  gap: 0.12rem;
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--blue-050));
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  flex-wrap: nowrap;
  overflow: visible;
}

.platform-admin-nav-links {
  align-content: center;
  flex-wrap: nowrap;
  overflow: visible;
}

.nav-links:empty {
  display: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.32rem 0.54rem;
  border-radius: 999px;
  transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.nav-links a.is-active {
  background: var(--surface);
  color: var(--blue-700);
  font-weight: 750;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.09);
}

.company-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 30px;
  padding: 0.28rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--muted);
  font-size: var(--font-size-xs);
  font-weight: 700;
  white-space: nowrap;
}

.mobile-company-status {
  display: none;
}

.status-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
}

.status-divider {
  color: var(--muted);
  font-weight: 700;
}

.company-status-pill.is-good {
  border-color: color-mix(in srgb, var(--success) 24%, var(--line));
  color: var(--success);
  background: color-mix(in srgb, var(--success) 5%, var(--surface));
}

.company-status-pill.is-warning {
  border-color: color-mix(in srgb, var(--warning) 28%, var(--line));
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 6%, var(--surface));
}

.company-status-pill.is-danger {
  border-color: color-mix(in srgb, var(--danger) 26%, var(--line));
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
}

.account-links a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.desktop-nav-actions .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.desktop-nav-actions .nav-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.78rem;
  border: 1px solid color-mix(in srgb, var(--blue-700) 26%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, var(--blue-050));
  color: var(--blue-900);
  font-weight: 700;
}

.desktop-nav-actions .nav-account-link:hover,
.desktop-nav-actions .nav-account-link:focus-visible {
  border-color: color-mix(in srgb, var(--blue-700) 42%, var(--line));
  background: var(--blue-050);
  color: var(--blue-900);
  text-decoration: none;
}

.desktop-nav-actions .nav-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.48rem 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.1rem;
  padding: 0.16rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  white-space: nowrap;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 28px !important;
  padding: 0.25rem 0.56rem !important;
  font-size: 0.9rem;
  line-height: 1.1;
  border-radius: 999px;
}

.language-switcher a.is-active {
  color: #fff !important;
  background: var(--blue-700);
}

.nav-links a:hover,
.account-links a:not(.button):hover,
.desktop-nav-actions .nav-link:hover,
.link-button:hover {
  color: var(--blue-900);
  background: var(--surface);
  text-decoration: none;
}

.account-links .language-switcher a.is-active:hover,
.account-links .language-switcher a.is-active:focus-visible {
  color: #fff !important;
  background: var(--blue-800);
  text-decoration: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-050);
  color: var(--blue-900);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.theme-toggle:hover {
  border-color: var(--blue-600);
  background: var(--surface);
  color: var(--blue-900);
}

.link-button {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.page-shell {
  padding: 1.4rem 0 2.75rem;
}

body > .page-shell {
  flex: 1 0 auto;
}

body > .page-shell.support-form-builder-shell {
  width: min(var(--layout-wide-max-width), calc(100% - (2 * var(--layout-gutter))));
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--blue-050)), var(--surface));
}

.site-footer .page-shell {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer-inner strong {
  color: var(--blue-900);
  font-weight: 750;
}

.site-footer-inner span {
  margin-left: 0.45rem;
}

@media (max-width: 1240px) {
  .site-nav:has(.nav-links) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding: 0.7rem 0;
  }

  .site-nav:has(.nav-links) .site-nav-top {
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
  }

  .site-nav:has(.nav-links) .site-nav-top .brand {
    min-width: 0;
  }

  .site-nav:has(.nav-links) .brand-logo {
    width: 148px;
    height: 36px;
  }

  .site-nav:has(.nav-links) .mobile-company-status {
    display: inline-flex;
    flex: 0 1 auto;
    max-width: 42vw;
    margin-left: auto;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
  }

  .site-nav:has(.nav-links) .mobile-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: none;
  }

  .site-nav:has(.nav-links) .site-nav-menu {
    display: none;
    width: 100%;
  }

  .site-nav:has(.nav-links) .site-nav-menu.is-open {
    display: block;
    width: 100%;
    margin-top: 1rem;
    margin-left: 0;
    padding: 0 0 0.45rem;
    text-align: left;
  }

  .site-nav:has(.nav-links) .site-nav-menu .company-status-pill {
    display: none;
  }

  .site-nav:has(.nav-links) .site-nav-menu .nav-links,
  .site-nav:has(.nav-links) .site-nav-menu .account-links {
    display: grid;
    width: 100%;
    gap: 0.95rem;
  }

  .site-nav:has(.nav-links) .site-nav-menu .nav-links {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .site-nav:has(.nav-links) .site-nav-menu .nav-links:has(a) {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .site-nav:has(.nav-links) .account-links {
    width: 100%;
    align-items: flex-start;
    gap: 0;
    justify-content: flex-start;
    margin-left: 0;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--blue-900);
  text-decoration: none;
}

.page-header,
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.page-header {
  justify-content: space-between;
}

.workspace-header h1 {
  font-size: clamp(1.6rem, 2.25vw, 2rem);
  font-weight: 650;
}

.workspace-header .muted {
  font-size: 0.95rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.65rem;
  color: var(--ink);
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.875rem, 2.4vw, 2.25rem);
  font-weight: 650;
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 1rem;
}

.lead {
  color: var(--muted);
  font-size: var(--font-size-md);
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.hero {
  display: grid;
  gap: 0.85rem;
  max-width: 680px;
}

.panel,
.page-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.page-card {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin-inline: auto;
}

.styled-page-card {
  padding: 0;
  overflow: hidden;
}

.styled-page-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--soft-line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-075) 70%, var(--surface)), var(--surface));
}

.styled-page-header h1 {
  margin-bottom: 0.4rem;
}

.styled-page-header .lead {
  max-width: 620px;
  margin: 0;
}

.styled-page-body {
  padding: 1.5rem;
}

.page-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.marketing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(2.2rem, 4.5vw, 4.8rem);
  min-height: min(680px, calc(100vh - 98px));
  padding: clamp(2.6rem, 5vw, 4.6rem) 0 clamp(2rem, 4vw, 3rem);
}

.marketing-hero::before {
  position: absolute;
  inset: -1rem -7vw auto 38%;
  width: min(780px, 58vw);
  height: 560px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 75% 18%, color-mix(in srgb, var(--blue-100) 54%, transparent), transparent 24rem),
    repeating-radial-gradient(ellipse at 58% 20%, color-mix(in srgb, var(--blue-600) 18%, transparent) 0 1px, transparent 1px 18px);
  content: "";
  opacity: 0.55;
  z-index: -1;
}

.marketing-hero-copy {
  max-width: 620px;
}

.marketing-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 1.2rem;
  padding: 0.38rem 0.82rem;
  border: 1px solid color-mix(in srgb, var(--blue-600) 34%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue-050) 72%, var(--surface));
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 750;
}

.marketing-hero h1 {
  max-width: 15.5ch;
  margin-bottom: 1rem;
  color: var(--blue-900);
  font-size: clamp(2.45rem, 4.35vw, 3.75rem);
  font-weight: 850;
  line-height: 1.05;
  overflow-wrap: normal;
}

.marketing-hero h1 span,
.marketing-hero h1 strong {
  display: block;
}

.marketing-hero h1 strong {
  color: #075ff0;
}

.marketing-hero .lead {
  max-width: 560px;
  margin-bottom: 1.25rem;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.58;
}

.marketing-checklist {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0 0 1.7rem;
  list-style: none;
}

.marketing-checklist li {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--blue-950);
  font-weight: 600;
}

.marketing-checklist li i {
  color: var(--blue-700);
  font-size: 1.18rem;
}

.marketing-actions .button {
  min-width: 170px;
}

.marketing-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.marketing-product-preview {
  min-width: 0;
}

.marketing-workflow-frame {
  position: relative;
  overflow: hidden;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--blue-050)), var(--surface)),
    var(--surface);
  box-shadow: 0 22px 55px rgba(8, 61, 120, 0.16);
}

.marketing-workflow-frame::before {
  content: "";
  position: absolute;
  inset: 4.75rem 2rem auto 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-700), color-mix(in srgb, var(--blue-700), white 72%));
  opacity: 0.34;
}

.marketing-workflow-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.marketing-workflow-header img {
  width: 132px;
  max-width: 48%;
}

.marketing-workflow-header span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-050);
  color: var(--blue-900);
  font-size: 0.72rem;
  font-weight: 700;
}

.marketing-workflow-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(170px, auto);
  gap: 0.85rem;
}

.marketing-workflow-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.marketing-workflow-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--blue-700);
  font-size: 1.35rem;
}

.marketing-workflow-card p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marketing-workflow-card h2 {
  margin: 0 0 0.45rem;
  color: var(--blue-950);
  font-size: 1rem;
  line-height: 1.25;
}

.marketing-workflow-card span:not(.marketing-workflow-icon) {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.42;
}

.marketing-app-frame {
  display: grid;
  grid-template-columns: 150px minmax(210px, 0.9fr) minmax(250px, 1.1fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 55px rgba(8, 61, 120, 0.16);
}

.marketing-app-sidebar {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--soft-line);
  background: color-mix(in srgb, var(--surface) 88%, var(--blue-050));
}

.marketing-app-sidebar img {
  width: 116px;
  margin: 0 0 0.7rem;
}

.marketing-app-sidebar span {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.46rem 0.55rem;
  border-radius: 7px;
  color: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 650;
}

.marketing-app-sidebar i {
  width: 1rem;
  color: var(--blue-700);
  font-size: 0.98rem;
  text-align: center;
}

.marketing-app-sidebar span.active {
  background: var(--blue-050);
  color: var(--blue-700);
}

.marketing-app-queue {
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.marketing-app-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.marketing-app-heading strong {
  color: var(--blue-900);
  font-size: 0.92rem;
}

.marketing-app-heading span {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--blue-700);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}

.marketing-app-search {
  margin-bottom: 0.65rem;
  padding: 0.54rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.marketing-mini-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-bottom: 0.7rem;
}

.marketing-mini-filters span {
  padding: 0.26rem 0.48rem;
  border-radius: 999px;
  background: var(--blue-050);
  color: var(--blue-900);
  font-size: 0.62rem;
  font-weight: 700;
}

.marketing-ticket {
  display: grid;
  gap: 0.22rem;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
}

.marketing-ticket.active {
  border-color: var(--blue-700);
  background: var(--blue-050);
  box-shadow: inset 3px 0 0 var(--blue-700);
}

.marketing-ticket strong {
  color: var(--blue-900);
  font-size: 0.82rem;
  line-height: 1.3;
}

.marketing-ticket small {
  color: var(--ink);
  font-size: 0.72rem;
}

.marketing-ticket em {
  width: fit-content;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: var(--blue-075);
  color: var(--blue-900);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
}

.marketing-app-detail {
  padding: 1.4rem;
  background: var(--surface-soft);
}

.marketing-ticket-kicker {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marketing-app-detail h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.marketing-app-detail dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.marketing-app-detail dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.marketing-app-detail dd {
  margin: 0.1rem 0 0;
  color: var(--blue-950);
  font-size: 0.76rem;
  font-weight: 650;
}

.marketing-message {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.45;
}

.marketing-message.staff {
  border-color: color-mix(in srgb, var(--success) 34%, var(--line));
  background: color-mix(in srgb, var(--success) 5%, var(--surface));
}

.marketing-reply-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.marketing-reply-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.marketing-reply-row button {
  min-height: 30px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--blue-700);
  border-radius: 8px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
}

.marketing-section {
  padding: 3rem 0 1rem;
}

.marketing-section-heading {
  max-width: 680px;
  margin-bottom: 1.4rem;
}

.marketing-section-heading h2 {
  color: var(--blue-900);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.marketing-section-heading.centered {
  max-width: none;
  text-align: center;
}

.marketing-section-heading.centered h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.marketing-website-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  max-width: 920px;
  margin-inline: auto;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-050) 70%, var(--surface)), var(--surface));
  box-shadow: var(--soft-shadow);
}

.marketing-website-icon {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-075);
  color: var(--blue-700);
  font-size: 1.35rem;
}

.marketing-website-card h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.marketing-website-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.marketing-trust-note {
  width: min(760px, 100%);
  margin: 1.75rem auto;
  text-align: center;
}

.marketing-trust-icon {
  display: inline-grid;
  width: 4.8rem;
  height: 4.8rem;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--blue-050), var(--blue-075));
  color: var(--blue-700);
  font-size: 2rem;
  font-weight: 700;
}

.marketing-trust-icon i {
  font-size: 1em;
  line-height: 1;
}

.marketing-trust-note h2 {
  margin: 0.55rem 0 0;
  color: var(--blue-900);
  font-size: 0.98rem;
}

.marketing-trust-note p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.marketing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.marketing-feature-grid article {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.marketing-feature-grid span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-050);
  color: var(--blue-900);
  font-weight: 700;
}

.marketing-feature-grid h3 {
  margin-bottom: 0.45rem;
  color: var(--blue-900);
}

.marketing-feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.marketing-capabilities {
  padding-top: 2.3rem;
}

.marketing-capability-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.marketing-capability-grid article {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
}

.marketing-capability-grid span {
  display: grid;
  width: 4.8rem;
  height: 4.8rem;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--blue-050), var(--blue-075));
  color: var(--blue-700);
  font-size: 2rem;
  font-weight: 700;
}

.marketing-capability-grid i {
  line-height: 1;
}

.marketing-capability-grid h3 {
  margin: 0.5rem 0 0;
  color: var(--blue-900);
  font-size: 0.92rem;
}

.marketing-capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.marketing-bottom-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr 0.95fr;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--blue-050) 70%, transparent), transparent 28%, transparent 72%, color-mix(in srgb, var(--blue-050) 70%, transparent)),
    var(--surface);
  box-shadow: var(--soft-shadow);
}

.marketing-info-panel {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: transparent;
}

.marketing-info-panel + .marketing-info-panel {
  border-left: 1px solid var(--soft-line);
}

.marketing-info-panel h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.marketing-info-panel > p {
  color: var(--muted);
  line-height: 1.55;
}

.marketing-checklist.compact {
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.marketing-checklist.compact li {
  font-size: 0.9rem;
}

.marketing-info-illustration {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: auto auto -1.2rem;
  align-self: center;
}

.marketing-steps {
  display: grid;
  gap: 1.85rem;
  margin-top: 1.6rem;
}

.marketing-steps p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding-left: 0;
  border-left: 0;
}

.marketing-steps p > i {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-050);
  color: var(--blue-700);
  font-size: 1.45rem;
}

.marketing-steps strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--blue-900);
  font-size: 1rem;
  line-height: 1.25;
}

.marketing-steps span {
  color: var(--muted);
  line-height: 1.45;
}

.marketing-steps p > span {
  display: block;
}

.marketing-info-panel.cta {
  justify-content: flex-start;
}

.marketing-info-panel.cta .button {
  width: 100%;
  min-height: 56px;
  margin-top: 0.8rem;
  font-size: 1rem;
}

.marketing-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-top: 1.2rem;
  color: var(--blue-700);
  font-weight: 750;
  text-decoration: none;
}

.marketing-inline-link::after {
  content: "→";
  font-size: 1.1em;
  line-height: 1;
}

.public-page {
  width: min(var(--layout-marketing-max-width), 100%);
  margin-inline: auto;
}

.public-page-hero {
  display: grid;
  justify-items: center;
  padding: 2.6rem 0 1.6rem;
  text-align: center;
}

.public-page-hero h1 {
  max-width: 840px;
  margin: 0.75rem auto 0;
  color: var(--blue-900);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.02;
  text-align: center;
}

.public-page-hero .lead {
  max-width: 720px;
  margin: 0.95rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.58;
  text-align: center;
}

.public-features-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(1.25rem, 3.2vw, 3rem) 0 clamp(2rem, 4vw, 3rem);
}

.public-features-hero-copy h1 {
  max-width: 820px;
  margin: 0.85rem 0 0;
  color: var(--blue-900);
  font-size: clamp(2.35rem, 5.8vw, 4.6rem);
  line-height: 1.02;
}

.public-features-hero-copy .lead {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.feature-hero-panel,
.feature-visual-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--blue-100) 62%, transparent), transparent 18rem),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow);
}

.feature-hero-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.feature-window {
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-window-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.8rem;
  border-bottom: 1px solid var(--soft-line);
}

.feature-window-bar span {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--blue-100);
}

.feature-ticket-preview {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1rem, 2.4vw, 1.6rem);
}

.feature-ticket-preview > div {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.feature-ticket-preview small,
.feature-ticket-preview span {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-ticket-preview strong {
  color: var(--blue-900);
  font-size: 1.1rem;
}

.public-feature-outcomes {
  display: grid;
  gap: clamp(1.1rem, 2.6vw, 2rem);
  width: min(1180px, 100%);
  margin: 0 auto clamp(2rem, 5vw, 4rem);
}

.feature-outcome {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.15rem, 3.2vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-soft));
  box-shadow: var(--soft-shadow);
}

.feature-outcome:nth-child(even) .feature-outcome-copy {
  order: 2;
}

.feature-outcome-copy {
  min-width: 0;
}

.feature-outcome-icon {
  display: inline-grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--blue-700);
  font-size: 1.25rem;
}

.feature-outcome h2 {
  max-width: 620px;
  margin: 0.85rem 0 0;
  color: var(--blue-900);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.feature-outcome-copy > p {
  max-width: 640px;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

.feature-outcome .public-check-list {
  margin-top: 1rem;
}

.feature-outcome .public-check-list li {
  font-size: 1rem;
}

.feature-pro-note {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--blue-700) 26%, var(--line));
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--blue-900) !important;
  font-size: 0.96rem !important;
  font-weight: 700;
}

.feature-visual-panel {
  min-height: 300px;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.feature-form-card,
.feature-queue-card,
.feature-conversation-card {
  display: grid;
  gap: 0.85rem;
  height: 100%;
}

.feature-form-card span,
.feature-queue-card header span {
  color: var(--blue-900);
  font-weight: 800;
}

.feature-form-card label {
  display: flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.feature-form-card label.is-message {
  min-height: 5.6rem;
  align-items: flex-start;
}

.feature-form-card p,
.feature-queue-card p,
.feature-conversation-card p {
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.98rem;
}

.feature-form-card p {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--blue-900);
  font-weight: 700;
}

.feature-queue-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.feature-queue-card header strong {
  display: inline-grid;
  min-width: 2.4rem;
  min-height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-700);
  color: #ffffff;
}

.feature-queue-card p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.feature-queue-card p:first-of-type {
  border-color: color-mix(in srgb, var(--blue-700) 35%, var(--line));
  background: var(--blue-050);
}

.feature-queue-card p span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.feature-conversation-card {
  align-content: center;
}

.feature-conversation-card p {
  display: grid;
  gap: 0.25rem;
  max-width: 84%;
}

.feature-conversation-card p span {
  color: var(--blue-900);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-conversation-card .from-team {
  justify-self: end;
  border-color: color-mix(in srgb, var(--blue-700) 35%, var(--line));
  background: var(--blue-050);
}

.feature-conversation-card .from-secure {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  max-width: 92%;
  color: var(--blue-900);
  font-weight: 700;
}

.feature-included-section {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.feature-included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.feature-included-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.feature-included-grid span {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  grid-row: span 2;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--blue-700);
}

.feature-included-grid h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.05rem;
  line-height: 1.25;
}

.feature-included-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.4;
}

.public-feature-list {
  display: grid;
  gap: 0.9rem;
  width: min(1040px, 100%);
  margin: 0 auto 1.5rem;
}

.public-feature-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) minmax(18rem, 0.85fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.public-feature-icon,
.public-contact-icon {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--blue-700);
  font-size: 1.2rem;
}

.public-feature-copy h2,
.public-contact-card h2,
.public-cta-panel h2 {
  margin: 0;
  color: var(--blue-900);
}

.public-feature-copy p,
.public-contact-card p,
.public-cta-panel p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.public-check-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-check-list li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.public-check-list i {
  flex: 0 0 auto;
  margin-top: 0.12rem;
  color: var(--blue-700);
  font-size: 0.9rem;
}

.public-soft-notice,
.public-footnote {
  width: min(860px, 100%);
  margin: 0 auto 1.2rem;
  color: var(--muted);
  text-align: center;
}

.public-soft-notice {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  line-height: 1.5;
}

.public-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 1rem;
  width: min(920px, 100%);
  margin: 0 auto;
}

.public-plan-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1rem;
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.public-plan-card.is-recommended {
  border: 2px solid color-mix(in srgb, var(--blue-700) 65%, var(--line));
  background: linear-gradient(155deg, color-mix(in srgb, var(--blue-050) 55%, var(--surface)), var(--surface) 42%);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--blue-700) 12%, transparent);
}

.public-plan-title-row {
  display: flex;
  min-height: 1.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.badge.public-plan-recommended {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--blue-700) 24%, transparent);
}

.public-plan-header h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.55rem;
  line-height: 1.15;
}

.public-plan-price {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.public-plan-price span {
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0;
}

.public-plan-pricing {
  min-height: 4.6rem;
  margin-top: 0.85rem;
}

.public-plan-support,
.public-plan-description {
  color: var(--muted);
  line-height: 1.45;
}

.public-plan-support {
  margin: 0.2rem 0 0;
  font-size: 15px;
}

.public-plan-badge-row {
  display: flex;
  min-height: 1.85rem;
  margin-top: 0.7rem;
  align-items: center;
}

.pricing-summary [hidden] {
  display: none !important;
}

.public-plan-description {
  min-height: 2.9rem;
  margin: 0.7rem 0 0;
  font-size: 16px;
}

.button.public-plan-cta {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.public-plan-card:not(.is-recommended) .public-plan-cta.secondary {
  border-color: var(--blue-700);
  background: transparent;
  color: var(--blue-700);
}

.public-plan-card:not(.is-recommended) .public-plan-cta.secondary:hover {
  border-color: var(--blue-800);
  background: var(--blue-050);
  color: var(--blue-800);
}

.pricing-cancel-note {
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.public-plan-highlights {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.public-plan-highlights li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}

.public-plan-highlights i {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: var(--blue-050);
  color: var(--blue-700);
  font-size: 0.65rem;
}

.pricing-hero {
  padding: clamp(1rem, 2.5vw, 2rem) 0 clamp(0.75rem, 1.5vw, 1.1rem);
}

.pricing-summary,
.pricing-comparison {
  width: min(960px, 100%);
  margin-inline: auto;
}

.pricing-comparison {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

.billing-toggle {
  display: flex;
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.billing-toggle button {
  min-width: 7rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.billing-toggle button.is-active {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 3px 10px rgba(25, 78, 145, 0.2);
}

.billing-toggle button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue-600) 45%, transparent);
  outline-offset: 2px;
}

.pricing-section-heading {
  margin-bottom: 1rem;
}

.pricing-section-heading h2 {
  margin: 0.2rem 0 0;
  color: var(--blue-900);
}

.pricing-table-scroll {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pricing-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  table-layout: fixed;
}

.pricing-table th,
.pricing-table td {
  padding: 0.62rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.pricing-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--blue-050) 68%, var(--surface));
  color: var(--blue-900);
  font-size: 1rem;
  font-weight: 850;
  text-align: center;
}

.pricing-table thead th + th {
  border-left: 1px solid var(--line);
}

.pricing-table thead th:first-child,
.pricing-table tbody th {
  width: 54%;
  text-align: left;
}

.pricing-table tbody th {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.pricing-table td {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
  text-align: center;
}

.pricing-table .pricing-pro-column {
  background: color-mix(in srgb, var(--blue-050) 52%, var(--surface));
}

.pricing-table-group th {
  padding-block: 0.55rem;
  background: var(--blue-050);
  color: var(--blue-900);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-table tbody:last-child tr:last-child > * {
  border-bottom: 0;
}

.pricing-mobile-comparison {
  display: none;
}

.pricing-mobile-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.pricing-mobile-section + .pricing-mobile-section {
  margin-top: 0.75rem;
}

.pricing-mobile-section h3 {
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: var(--blue-050);
  color: var(--blue-900);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-mobile-feature-list {
  display: grid;
}

.pricing-mobile-feature {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.pricing-mobile-feature:last-child {
  border-bottom: 0;
}

.pricing-mobile-feature h4 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.3;
}

.pricing-mobile-feature dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.pricing-mobile-feature dl > div {
  display: grid;
  align-content: center;
  min-height: 3rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue-050) 36%, var(--surface));
}

.pricing-mobile-feature dl > .pricing-pro-column {
  border-color: color-mix(in srgb, var(--blue-700) 20%, var(--line));
  background: color-mix(in srgb, var(--blue-050) 68%, var(--surface));
}

.pricing-mobile-feature dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pricing-mobile-feature dd {
  display: flex;
  align-items: center;
  min-height: 1.65rem;
  margin: 0.2rem 0 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.comparison-status {
  display: inline-grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border-radius: 50%;
}

.comparison-status.is-included {
  background: var(--blue-050);
  color: var(--blue-700);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue-700) 16%, transparent);
}

.comparison-status.is-unavailable {
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.public-cta-panel.pricing-cta {
  width: min(960px, 100%);
  margin: clamp(2.25rem, 4vw, 3.25rem) auto 1rem;
  border-color: color-mix(in srgb, var(--blue-700) 20%, var(--line));
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--blue-100) 58%, transparent), transparent 16rem),
    linear-gradient(135deg, var(--blue-050), var(--surface));
  box-shadow: var(--soft-shadow);
}

.pricing-cta h2 {
  max-width: 590px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}

.pricing-cta .public-cta-actions .button {
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-size: 15px;
}

.public-faq-list {
  display: grid;
  gap: 0.7rem;
  width: min(880px, 100%);
  margin: 0 auto 1.5rem;
}

.public-faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.public-faq-list summary {
  padding: 0.85rem 1rem;
  color: var(--blue-900);
  cursor: pointer;
  font-weight: 700;
}

.public-faq-list p {
  margin: 0;
  padding: 0 1rem 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.public-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1040px, 100%);
  margin: 0 auto 1.2rem;
}

.public-contact-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.public-contact-notice {
  display: grid;
  gap: 0.25rem;
  text-align: left;
}

.public-contact-form-section {
  display: grid;
  gap: 0.8rem;
  width: min(1180px, 100%);
  margin: 1.4rem auto 0;
}

.public-contact-form-heading {
  width: min(860px, 100%);
  margin-inline: auto;
  text-align: center;
}

.public-contact-form-heading h2 {
  margin: 0;
  color: var(--blue-900);
}

.public-contact-form-heading p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.public-contact-form-frame {
  overflow: hidden;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.public-contact-form-frame iframe {
  background: var(--surface);
}

.public-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(980px, 100%);
  margin: 1.4rem auto 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-050), var(--surface));
}

.public-cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.public-cta-actions .button {
  width: auto;
  min-height: 38px;
  padding: 0.48rem 0.8rem;
  font-size: 0.9rem;
}

.confirmation-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.confirmation-summary strong {
  color: var(--blue-900);
  font-size: 1.25rem;
}

.prose > :last-child {
  margin-bottom: 0;
}

.error-header {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--danger) 8%, var(--surface)), var(--surface));
}

.expert-workspace {
  width: min(var(--layout-wide-max-width), 100%);
  margin-inline: auto;
}

.form-card {
  max-width: 620px;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.support-new-card {
  max-width: 900px;
}

.support-brand-surface {
  --support-primary-color: var(--blue-700);
  --support-background-color: var(--surface);
  --support-card-background-color: var(--surface-soft);
  --support-text-color: var(--ink);
  --support-input-bg: var(--surface);
  --support-input-text: var(--ink);
  --support-button-text-color: #fff;
  --support-border-radius: var(--radius);
  --support-panel-color: var(--support-card-background-color);
  --support-subtle-text-color: color-mix(in srgb, var(--support-text-color) 68%, var(--muted));
  --support-input-placeholder-color: color-mix(in srgb, var(--support-input-text) 58%, transparent);
  --support-input-border-color: color-mix(in srgb, var(--support-text-color) 18%, var(--line));
  --support-divider-color: color-mix(in srgb, var(--support-text-color) 18%, transparent);
  --support-step-background-color: color-mix(in srgb, var(--support-primary-color) 14%, var(--support-panel-color));
  background: var(--support-background-color);
  color: var(--support-text-color);
  border-radius: var(--support-border-radius);
}

.support-brand-surface .styled-page-header h1,
.support-brand-surface .styled-page-header .lead,
.support-brand-surface .embed-support-header h1,
.support-brand-surface .embed-support-header p,
.support-brand-surface .field label,
.support-brand-surface .checkbox-field label,
.support-brand-surface .support-form-section-heading h2 {
  color: var(--support-text-color);
}

.support-brand-surface .page-eyebrow,
.support-brand-surface .support-form-section-heading p {
  color: var(--support-subtle-text-color);
}

.support-brand-surface .styled-page-header {
  border-bottom-color: var(--support-divider-color);
  background: var(--support-background-color);
}

.support-brand-surface .support-form-section {
  border-color: var(--support-input-border-color);
  background: var(--support-panel-color);
}

.support-brand-surface .support-form-step {
  background: var(--support-step-background-color);
  color: var(--support-primary-color);
}

.support-brand-surface .support-form-section,
.support-brand-surface input,
.support-brand-surface select,
.support-brand-surface textarea {
  border-radius: var(--support-border-radius);
}

.support-brand-surface input,
.support-brand-surface select,
.support-brand-surface textarea {
  border-color: var(--support-input-border-color);
  background: var(--support-input-bg);
  color: var(--support-input-text);
}

.support-brand-surface input::placeholder,
.support-brand-surface textarea::placeholder {
  color: var(--support-input-placeholder-color);
  opacity: 1;
}

.support-brand-surface select option {
  background: var(--support-input-bg);
  color: var(--support-input-text);
}

.support-brand-surface input[type="checkbox"] {
  accent-color: var(--support-primary-color);
}

.support-brand-surface .upload-field,
.support-brand-surface .embed-upload-field {
  border-color: var(--support-input-border-color);
  background: color-mix(in srgb, var(--support-input-bg) 72%, var(--support-panel-color));
}

.support-brand-surface .upload-field input[type="file"],
.support-brand-surface .embed-upload-field input[type="file"] {
  background: var(--support-input-bg);
  color: var(--support-input-text);
}

.support-brand-surface .upload-field input[type="file"]::file-selector-button,
.support-brand-surface .embed-upload-field input[type="file"]::file-selector-button {
  border-color: var(--support-primary-color);
  background: var(--support-primary-color);
  color: var(--support-button-text-color);
}

.support-brand-surface input:focus,
.support-brand-surface select:focus,
.support-brand-surface textarea:focus {
  border-color: var(--support-primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--support-primary-color) 18%, transparent);
  outline: none;
}

.support-brand-surface .support-form-footer {
  border-top-color: var(--support-divider-color);
}

.support-brand-surface .button,
.support-brand-surface button.button,
.support-brand-surface .support-submit-button {
  border-color: var(--support-primary-color);
  background: var(--support-primary-color);
  color: var(--support-button-text-color);
}

.support-new-header {
  padding-bottom: 1.35rem;
}

.support-brand-logo {
  display: block;
  max-width: min(100%, 220px);
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1rem;
}

.support-new-form {
  display: grid;
  gap: 1rem;
}

.support-new-validation:empty {
  display: none;
}

.support-form-section {
  display: grid;
  grid-template-columns: minmax(145px, 0.34fr) minmax(0, 1.66fr);
  gap: 1.25rem;
  padding: 1.1rem;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.support-form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.support-form-section-heading h2,
.support-form-section-heading p {
  margin: 0;
}

.support-form-section-heading h2 {
  font-size: 1rem;
}

.support-form-section-heading p {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.support-form-step {
  display: grid;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: 0.82rem;
  font-weight: 700;
}

.support-form-grid {
  display: grid;
  gap: 0.75rem 0.9rem;
}

.support-form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-form-grid-request {
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
}

.support-form-grid .field {
  margin-bottom: 0;
}

.support-form-wide {
  grid-column: 1 / -1;
}

.support-message-field textarea {
  min-height: 150px;
}

.staff-create-ticket-card {
  max-width: 980px;
}

.staff-create-ticket-form .support-form-section {
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1.64fr);
  gap: 1rem;
  padding: 0.85rem;
}

.staff-create-ticket-customer-grid {
  align-items: start;
}

.staff-create-ticket-customer-grid input {
  min-height: 3.1rem;
}

.staff-create-ticket-form .support-form-submit {
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
}

.staff-create-ticket-form .support-form-submit .button {
  width: auto;
  min-width: 0;
  min-height: 2.2rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.84rem;
}

.staff-create-ticket-form .support-attachment-section .support-form-section-heading {
  max-width: 17rem;
}

.staff-create-ticket-form .support-attachment-section .support-upload-field {
  width: min(100%, 42rem);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.staff-create-ticket-form .support-attachment-section .support-file-picker {
  min-height: 5.6rem;
  border-radius: 8px;
  background: var(--surface);
}

.staff-create-ticket-form .support-attachment-section .support-file-icon {
  font-size: 1.08rem;
}

.staff-create-ticket-form .support-attachment-section .support-file-drop-text {
  font-size: 0.86rem;
}

.staff-create-ticket-form .support-attachment-section .support-file-name {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  text-align: center;
}

.support-attachment-maximum {
  margin-top: 0.35rem !important;
  font-size: 0.78rem !important;
  font-weight: 700;
}

.support-accepted-formats {
  margin-bottom: 0.35rem !important;
  font-size: 0.74rem !important;
  line-height: 1.3;
}

.support-form-footer {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--soft-line);
}

.support-upload-field {
  width: 100%;
  margin: 0;
}

.support-attachment-section .upload-field {
  align-self: start;
}

.support-upload-field p {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
}

.support-form-submit {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.75rem;
}

.support-form-submit .checkbox-field {
  margin: 0;
}

.support-submit-button {
  width: auto;
  min-width: 9rem;
  justify-self: start;
}

.field {
  display: grid;
  gap: 0.32rem;
  margin-bottom: 0.7rem;
}

.field label,
.checkbox-field label {
  color: var(--blue-900);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.input,
.select,
.textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: 0.58rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus,
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--blue-600);
}

.support-brand-surface :is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea
) {
  border-color: var(--support-input-border-color);
  background: var(--support-input-bg);
  color: var(--support-input-text);
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--support-input-text) 7%, transparent);
}

.support-brand-surface :is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  textarea
)::placeholder {
  color: var(--support-input-placeholder-color);
  opacity: 1;
}

.support-brand-surface select option {
  background: var(--support-input-bg);
  color: var(--support-input-text);
}

.support-brand-surface :is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea
):focus {
  border-color: var(--support-primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--support-primary-color) 18%, transparent);
  outline: none;
}

.support-brand-surface :is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="search"],
  input[type="tel"],
  input[type="number"]
):-webkit-autofill {
  -webkit-text-fill-color: var(--support-input-text);
  box-shadow: 0 0 0 1000px var(--support-input-bg) inset;
}

.support-brand-surface :is(.upload-field, .embed-upload-field) {
  border-color: var(--support-input-border-color);
  background: color-mix(in srgb, var(--support-input-bg) 72%, var(--support-panel-color));
  color: var(--support-text-color);
}

.support-brand-surface input[type="file"] {
  border-color: var(--support-input-border-color);
  background: var(--support-input-bg);
  color: var(--support-input-text);
}

.support-brand-surface input[type="file"]::file-selector-button {
  border-color: var(--support-primary-color);
  background: var(--support-primary-color);
  color: var(--support-button-text-color);
}

:root[data-theme="dark"] .support-brand-surface :is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea,
  input[type="file"]
) {
  border-color: var(--support-input-border-color);
  background: var(--support-input-bg);
  color: var(--support-input-text);
}

:root[data-theme="dark"] .support-brand-surface input[type="file"]::file-selector-button {
  border-color: var(--support-primary-color);
  background: var(--support-primary-color);
  color: var(--support-button-text-color);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.7rem 0;
}

.checkbox-field input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

.queue-search {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
}

.queue-search label {
  color: var(--blue-900);
  font-weight: 600;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.search-row input {
  flex: 1;
}

.button,
button.button,
.filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 0.58rem 0.95rem;
  border: 1px solid var(--blue-700);
  border-radius: 7px;
  background: var(--blue-700);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.button:hover,
button.button:hover,
.filter-link:hover {
  border-color: var(--blue-800);
  background: var(--blue-800);
  color: #fff;
  text-decoration: none;
}

.button.secondary,
.filter-link {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.button.secondary:hover,
.filter-link:hover {
  border-color: color-mix(in srgb, var(--blue-600) 35%, var(--line));
  background: var(--blue-050);
  color: var(--blue-800);
}

.button.success {
  border-color: var(--success);
  background: var(--success);
}

.button.success-soft {
  border-color: color-mix(in srgb, var(--success) 48%, var(--line));
  background: color-mix(in srgb, var(--success) 11%, var(--surface));
  color: color-mix(in srgb, var(--success) 65%, #065f46);
}

.button.danger {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  background: transparent;
  color: var(--danger);
}

.button.warning {
  border-color: var(--warning);
  background: color-mix(in srgb, var(--warning) 16%, var(--surface));
  color: var(--warning);
}

.button.danger:hover {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  color: var(--danger);
}

.button.success-soft:hover {
  border-color: var(--success);
  background: color-mix(in srgb, var(--success) 17%, var(--surface));
  color: color-mix(in srgb, var(--success) 55%, #064e3b);
}

.button.warning:hover {
  border-color: var(--warning);
  background: color-mix(in srgb, var(--warning) 10%, var(--surface));
  color: var(--warning);
}

.button.link {
  border-color: transparent;
  background: transparent;
  color: var(--blue-700);
}

.button.small {
  min-height: 32px;
  padding: 0.42rem 0.7rem;
}

.account-links a.button {
  color: #fff;
  white-space: nowrap;
}

.account-links a.button:hover {
  color: #fff;
}

.filter-link.active {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
}

.alert {
  padding: 0.75rem 0.9rem;
  margin: 0.8rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-050);
  color: var(--blue-900);
}

.alert.danger {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  color: var(--danger);
}

.alert.warning {
  border-color: color-mix(in srgb, var(--warning) 45%, var(--line));
  background: color-mix(in srgb, var(--warning) 14%, var(--surface));
  color: var(--warning);
}

.alert.neutral {
  background: var(--blue-050);
  color: var(--muted);
}

.validation,
.field-validation-error,
.validation-summary-errors {
  color: var(--danger);
  font-size: 0.92rem;
}

.validation-summary-valid,
.field-validation-valid {
  display: none;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) 1fr;
  gap: 0.5rem 1rem;
  margin: 0.8rem 0 1rem;
}

.details-grid dt {
  color: var(--muted);
  font-weight: 600;
}

.details-grid dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.message-list,
.ticket-list,
.attachment-list {
  display: grid;
  gap: 0.75rem;
}

.message,
.ticket-card {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.message {
  padding: 0.95rem;
}

.attachment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--blue-900);
  font-weight: 600;
}

.attachment-card span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.attachment-card .muted {
  flex: 0 0 auto;
}

.attachment-card:hover {
  border-color: var(--blue-600);
  background: var(--blue-050);
  text-decoration: none;
}

.message-attachments {
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.message-attachments .attachment-card {
  padding: 0.62rem 0.75rem;
  box-shadow: none;
}

.message.internal {
  border-color: color-mix(in srgb, var(--warning) 55%, var(--line));
  background: color-mix(in srgb, var(--warning) 13%, var(--surface));
}

.message-header,
.ticket-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--blue-075);
  color: var(--blue-900);
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--blue-600) 14%, var(--line));
}

.badge.warning {
  border-color: color-mix(in srgb, var(--warning) 22%, var(--line));
  background: color-mix(in srgb, var(--warning) 10%, var(--surface));
  color: var(--warning);
}

.badge.neutral {
  border-color: var(--soft-line);
  background: var(--blue-050);
  color: var(--muted);
}

.workspace-grid {
  display: grid;
  grid-template-columns: clamp(320px, 23vw, 370px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.expert-workspace.is-loading [data-workspace-queue],
.expert-workspace.is-loading [data-ticket-details] {
  opacity: 0.62;
  transition: opacity 140ms ease;
}

.expert-workspace .workspace-header {
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
}

.expert-workspace .workspace-header h1,
.expert-workspace .workspace-header p {
  margin-bottom: 0;
}

.mobile-back-to-queue {
  display: none;
}

.expert-mobile-section {
  display: block;
}

.expert-mobile-section > summary {
  display: none;
}

.expert-ticket-content {
  display: flex;
  flex-direction: column;
}

.expert-ticket-header {
  order: 1;
}

.expert-ticket-details-section {
  order: 6;
}

.expert-ticket-actions-section {
  order: 2;
}

.expert-conversation {
  order: 3;
}

.expert-ticket-content > .alert,
.expert-reply-composer {
  order: 4;
}

.internal-note-composer {
  order: 5;
}

.workspace-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.workspace-public-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.6rem;
  row-gap: 0.2rem;
  min-width: min(100%, 360px);
  max-width: 520px;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.workspace-public-link span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workspace-public-link a {
  min-width: 0;
  overflow: hidden;
  color: var(--blue-900);
  font-size: 0.9rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-public-link,
.workspace-header-actions,
.queue-panel-header,
.queue-title-row,
.queue-ticket-subject-row,
.expert-ticket-title-row,
.support-ticket-title-row,
.dashboard-header,
.settings-header,
.billing-header,
.billing-current-plan,
.plan-card-header,
.section-heading-row {
  min-width: 0;
}

.not-found-page {
  display: grid;
  min-height: min(640px, calc(100vh - 220px));
  place-items: center;
  padding: 3rem 0;
}

.not-found-shell {
  width: min(100%, 760px);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-050) 70%, transparent), transparent 52%),
    var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.not-found-shell .page-eyebrow {
  margin-bottom: 0.8rem;
  color: var(--blue-700);
  font-size: 0.95rem;
}

.not-found-shell h1 {
  margin-bottom: 0.9rem;
  color: var(--blue-900);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.not-found-shell .lead {
  max-width: 560px;
  margin: 0 auto 1.8rem;
  color: var(--muted);
}

.not-found-shell .page-actions {
  justify-content: center;
}

.workspace-count-badge {
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  box-shadow: var(--soft-shadow);
}

.ticket-card {
  display: block;
  color: var(--ink);
}

.ticket-card:hover {
  border-color: var(--blue-600);
  box-shadow: var(--soft-shadow);
  text-decoration: none;
}

.ticket-card.active {
  border-color: var(--blue-700);
  background: var(--blue-075);
}

.ticket-subject {
  margin: 0 0 0.2rem;
  color: var(--blue-900);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-card,
.message,
.dashboard-panel,
.settings-card,
.page-card,
.queue-panel,
.ticket-detail-panel,
.billing-section,
.platform-admin-page {
  min-width: 0;
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.section {
  margin-top: 1.15rem;
}

.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;
}

.queue-panel,
.ticket-detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.queue-panel {
  padding: 0;
  overflow: hidden;
}

.queue-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--soft-line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-075) 70%, var(--surface)), var(--surface));
}

.queue-panel-header h2 {
  margin: 0;
}

.queue-title-row,
.queue-ticket-subject-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.queue-unread-count {
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--blue-700);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.queue-unread-count.is-empty {
  background: var(--blue-050);
  color: var(--muted);
}

.unread-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-600) 16%, transparent);
}

.ticket-list .ticket-card.has-unread .ticket-subject {
  font-weight: 750;
}

.refresh-link {
  color: var(--blue-800);
  font-weight: 600;
}

.queue-search {
  margin: 0;
  padding: 0.55rem 0.75rem 0.12rem;
}

.queue-sort-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.38rem;
  margin: 0;
  padding: 0.08rem 0.75rem 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.queue-sort-form label {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.queue-sort-form select {
  width: auto;
  min-width: 9.5rem;
  min-height: 28px;
  padding: 0.22rem 1.55rem 0.22rem 0.48rem;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.1;
}

.filter-pills {
  gap: 0.26rem;
  padding: 0.24rem 0.75rem 0.36rem;
  border-bottom: 1px solid var(--soft-line);
}

.filter-pills .filter-link {
  gap: 0.28rem;
  min-height: 24px;
  padding: 0.18rem 0.36rem;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
}

.filter-pill-label {
  min-width: 0;
}

.filter-pill-count {
  display: inline-grid;
  min-width: 1.12rem;
  height: 1.12rem;
  padding: 0 0.22rem;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue-050) 72%, transparent);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.filter-pills .filter-link.active,
.filter-pills .filter-link:hover {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
}

.filter-pills .filter-link.active .filter-pill-count,
.filter-pills .filter-link:hover .filter-pill-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.ticket-list {
  margin-top: 0;
  padding: 0.22rem 0.45rem 0.5rem;
}

.ticket-list .ticket-card {
  margin-top: 0.16rem;
  padding: 0.58rem 0.64rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
}

.ticket-list .ticket-card:hover,
.ticket-list .ticket-card.active {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--blue-050);
}

.ticket-list .ticket-card.active {
  border-color: var(--blue-600);
  box-shadow: inset 3px 0 0 var(--blue-600);
}

.queue-pagination {
  display: grid;
  justify-items: center;
  padding: 0.7rem 0.2rem 0;
  border-top: 1px solid var(--soft-line);
  text-align: center;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.22rem;
}

.pagination-link,
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  min-height: 1.55rem;
  padding: 0.22rem 0.38rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--blue-900);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1;
}

.pagination-link:hover {
  border-color: var(--line);
  background: var(--blue-050);
  color: var(--blue-900);
  text-decoration: none;
}

.pagination-link.active {
  border-color: color-mix(in srgb, var(--blue-700) 24%, var(--line));
  background: var(--blue-050);
  color: var(--blue-900);
}

.pagination-link.disabled {
  cursor: not-allowed;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  opacity: 1;
}

.pagination-ellipsis {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.queue-ticket-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  min-width: 0;
}

.queue-ticket-heading .ticket-subject {
  min-width: 0;
  max-width: 100%;
}

.queue-ticket-customer {
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.queue-ticket-status-line {
  display: flex;
  margin-top: 0.5rem;
}

.queue-ticket-status-line .badge {
  max-width: 100%;
  white-space: normal;
}

.queue-ticket-heading .badge {
  flex: 0 0 auto;
  max-width: 42%;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  white-space: normal;
}

.queue-ticket-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.queue-ticket-meta span:not(:first-child)::before,
.queue-ticket-meta time::before {
  margin-right: 0.55rem;
  content: "•";
  color: var(--line);
}

.ticket-detail-panel {
  min-height: 520px;
  padding: 1.35rem 1.5rem;
}

.expert-workspace .ticket-detail-panel {
  padding: 0;
  overflow: hidden;
}

.expert-ticket-header {
  padding: 0.9rem 1.15rem;
  border-bottom: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-075) 70%, var(--surface)), var(--surface));
}

.expert-ticket-details-section {
  border-bottom: 1px solid var(--soft-line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-075) 70%, var(--surface)), var(--surface));
}

.expert-ticket-details-section .expert-ticket-meta {
  margin: 0;
  padding: 0 1.15rem 0.9rem;
}

.expert-ticket-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.expert-ticket-title-row h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.expert-ticket-status {
  flex: 0 0 auto;
  padding: 0.28rem 0.6rem;
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  color: var(--success);
  font-size: 0.8rem;
}

.expert-ticket-status.neutral {
  background: var(--blue-050);
  color: var(--muted);
}

.expert-ticket-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0.7rem 0 0;
}

.expert-ticket-meta > div {
  min-width: 0;
}

.expert-ticket-meta dt {
  margin-bottom: 0.05rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.expert-ticket-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 550;
}

.expert-ticket-meta-wide {
  grid-column: auto;
}

.expert-ticket-details-mobile {
  display: none;
}

.expert-ticket-meta-desktop {
  margin-top: 0.7rem;
}

.expert-closure-details-desktop {
  margin: 0.7rem 0 0;
}

.ticket-detail-panel .expert-closure-details {
  margin: 1rem 1.5rem 0;
}

.expert-ticket-top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--soft-line);
  background: var(--surface-soft);
}

.expert-ticket-top-actions .expert-assignment-row,
.expert-ticket-top-actions .expert-ticket-actions {
  padding: 0;
}

.expert-ticket-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.65rem 1.15rem 0;
}

.expert-assignment-row {
  padding: 0.65rem 1.15rem 0;
}

.ticket-assignment-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticket-assignment-form select {
  width: auto;
  min-width: 190px;
}

.expert-ticket-actions .button,
.ticket-assignment-form .button {
  min-height: 36px;
  padding: 0.45rem 0.75rem;
}

.ticket-assignment-form select {
  min-height: 36px;
  padding-block: 0.45rem;
}

.expert-conversation {
  padding: 0.9rem 1.15rem 0;
}

.expert-message-list {
  gap: 0.65rem;
}

.expert-message {
  padding: 0.9rem 1rem;
  border-left-width: 3px;
  box-shadow: none;
}

.expert-message.customer-message {
  border-left-color: var(--blue-600);
  background: var(--blue-050);
}

.expert-message.staff-message {
  border-left-color: var(--success);
  background: color-mix(in srgb, var(--success) 5%, var(--surface-soft));
}

.expert-message .message-header {
  align-items: baseline;
}

.expert-message .message-header time {
  font-size: 0.78rem;
}

.expert-message p {
  margin: 0.4rem 0 0;
  white-space: pre-wrap;
}

.expert-ticket-content > .alert,
.expert-ticket-content > .composer-card {
  margin-right: 1.5rem;
  margin-left: 1.5rem;
}

.expert-ticket-content > .composer-card:last-child {
  margin-bottom: 1.5rem;
}

.support-ticket-page {
  width: min(1000px, 100%);
  min-height: 0;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
}

.ticket-summary {
  display: block;
  margin-bottom: 1rem;
}

.ticket-summary h2 {
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
}

.ticket-detail-panel .details-grid {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.support-ticket-header {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--soft-line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-075) 70%, var(--surface)), var(--surface));
}

.support-ticket-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  margin-bottom: 0.65rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.support-ticket-brand-logo {
  flex: 0 0 auto;
  width: auto;
  max-width: 126px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.support-ticket-brand strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.support-ticket-brand-label {
  margin: 0 0 0.12rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-ticket-title-row,
.support-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.support-ticket-title-row h1 {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.support-ticket-eyebrow,
.support-section-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-ticket-status {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0.22rem 0.5rem;
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  color: var(--success);
  font-size: 0.74rem;
}

.support-ticket-status.neutral {
  background: var(--blue-050);
  color: var(--muted);
}

.support-ticket-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.8rem;
  margin: 0.55rem 0 0;
}

.support-ticket-meta > div {
  min-width: 0;
}

.support-ticket-meta dt {
  margin-bottom: 0.05rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-ticket-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 550;
}

.support-ticket-meta-wide {
  grid-column: auto;
}

.ticket-detail-panel .support-closure-details {
  margin: 0.75rem 1.15rem 0;
}

.support-conversation {
  padding: 0.75rem 0.9rem;
}

.support-section-heading {
  align-items: end;
  margin-bottom: 0.65rem;
}

.support-section-heading h2,
.support-section-heading h3 {
  margin: 0;
}

.support-message-list {
  gap: 0.55rem;
}

.support-message {
  padding: 0.75rem 0.85rem;
  border-left-width: 3px;
  box-shadow: none;
}

.support-message.customer-message {
  border-left-color: var(--blue-600);
  background: var(--blue-050);
}

.support-message.expert-message {
  border-left-color: var(--success);
  background: color-mix(in srgb, var(--success) 5%, var(--surface-soft));
}

.support-message .message-header {
  align-items: baseline;
}

.support-message .message-header time {
  font-size: 0.76rem;
}

.support-message p {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
}

.support-message .message-attachments {
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.support-message .message-attachments .attachment-card {
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.message-context-note {
  display: inline-flex;
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.support-empty-state {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.support-reply-composer {
  gap: 0.55rem;
  margin: 0 0.9rem 0.9rem;
  padding: 0.75rem;
  border-color: color-mix(in srgb, var(--blue-700) 30%, var(--line));
}

.support-reply-composer .composer-header h2 {
  margin: 0;
  font-size: 1rem;
}

.support-reply-composer .composer-header p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.support-reply-composer textarea {
  min-height: 96px;
  background: var(--surface);
}

.support-reply-composer .button {
  width: fit-content;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  justify-self: end;
}

.support-closed-alert {
  margin: 0 0.9rem 0.9rem;
}

.empty-detail {
  display: grid;
  min-height: 420px;
  place-items: center;
  text-align: center;
}

.composer-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.composer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.composer-header .badge {
  margin-left: auto;
}

.composer-header h3,
.composer-header p {
  margin: 0;
}

.composer-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.composer-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.composer-field-heading .badge {
  flex: 0 0 auto;
}

.composer-field-heading label {
  font-weight: 700;
}

.internal-note-composer {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--warning) 52%, var(--line));
  background: color-mix(in srgb, var(--warning) 9%, var(--surface));
}

.expert-ticket-content > .internal-note-composer {
  margin-bottom: 1.5rem;
}

.internal-note-composer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 42px;
  margin: -1rem;
  padding: 0.75rem 1rem;
  color: var(--blue-900);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.internal-note-composer > summary::-webkit-details-marker {
  display: none;
}

.internal-note-composer > summary::after {
  color: var(--muted);
  content: "+";
  font-weight: 700;
}

.internal-note-composer > summary .badge {
  margin-left: auto;
}

.internal-note-composer[open] > summary {
  margin-bottom: 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--warning) 42%, var(--line));
}

.internal-note-composer[open] > summary::after {
  content: "-";
}

.internal-note-form {
  display: grid;
  gap: 0.75rem;
}

.internal-note-composer textarea {
  min-height: 92px;
  border-color: color-mix(in srgb, var(--warning) 45%, var(--line));
  background: color-mix(in srgb, var(--warning) 5%, var(--surface));
}

.internal-note-composer .button {
  width: fit-content;
}

.expert-reply-composer {
  border-color: color-mix(in srgb, var(--blue-700) 28%, var(--line));
}

.expert-reply-composer textarea {
  min-height: 132px;
}

.expert-reply-composer .button {
  width: fit-content;
}

.expert-reply-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1rem;
}

.expert-reply-actions .compact-upload {
  flex: 0 1 34rem;
  max-width: 34rem;
  margin: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
}

.expert-reply-actions .compact-upload label {
  margin-bottom: 0.1rem;
  font-size: 0.9rem;
}

.expert-reply-actions .compact-upload p {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
}

.expert-reply-actions .compact-upload input[type="file"] {
  width: 100%;
  padding: 0.25rem;
  border-width: 1px;
  font-size: 0.82rem;
}

.expert-reply-actions .compact-upload input[type="file"]::file-selector-button {
  padding: 0.28rem 0.5rem;
}

.expert-reply-actions > .button {
  flex: 0 0 auto;
  margin-left: auto;
  margin-top: 0;
}

.expert-workspace {
  padding-bottom: 1rem;
}

.expert-workspace + .site-footer,
body:has(.expert-workspace) .site-footer {
  display: none;
}

.expert-workspace .workspace-header {
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--blue-600) 16%, var(--line));
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--surface), color-mix(in srgb, var(--blue-050) 58%, var(--surface)));
  box-shadow: var(--soft-shadow);
}

.expert-workspace .workspace-header .page-eyebrow {
  margin-bottom: 0.15rem;
  font-size: 0.74rem;
}

.expert-workspace .workspace-header h1 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.expert-workspace .workspace-header .muted {
  display: none;
}

.expert-workspace .workspace-header-actions {
  gap: 0.45rem;
}

.expert-workspace .workspace-header-actions > .button {
  min-height: 34px;
  padding: 0.44rem 0.7rem;
  border-radius: 7px;
  font-size: 0.84rem;
}

.expert-workspace .workspace-free-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.2rem 0 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--warning) 7%, var(--surface));
  box-shadow: var(--soft-shadow);
}

.expert-workspace .workspace-free-banner h2 {
  margin: 0 0 0.2rem;
  color: var(--warning);
  font-size: 1rem;
  line-height: 1.2;
}

.expert-workspace .workspace-free-banner p {
  margin: 0;
  color: color-mix(in srgb, var(--warning) 58%, var(--ink));
  font-size: 0.9rem;
  line-height: 1.4;
}

.expert-workspace .workspace-free-banner .button {
  flex: 0 0 auto;
}

.expert-workspace .workspace-disabled-action {
  border-color: color-mix(in srgb, var(--muted) 22%, var(--line));
  background: color-mix(in srgb, var(--muted) 8%, var(--surface));
  color: var(--muted);
  cursor: not-allowed;
  opacity: 1;
}

.expert-workspace .workspace-disabled-action:hover {
  border-color: color-mix(in srgb, var(--muted) 22%, var(--line));
  background: color-mix(in srgb, var(--muted) 8%, var(--surface));
  color: var(--muted);
}

.expert-workspace .workspace-public-link {
  min-width: 0;
  max-width: 300px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.42rem 0.48rem;
  box-shadow: none;
}

.expert-workspace .workspace-public-link span {
  grid-column: auto;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

.expert-workspace .workspace-public-link a {
  display: none;
}

.expert-workspace .workspace-public-link .button {
  min-height: 28px;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
}

.expert-workspace .workspace-count-badge {
  padding: 0.32rem 0.55rem;
  font-size: 0.74rem;
  box-shadow: none;
}

.expert-workspace .workspace-grid {
  grid-template-columns: clamp(320px, 23vw, 370px) minmax(0, 1fr);
  gap: 0.85rem;
  margin-top: 0;
}

.expert-workspace .queue-panel,
.expert-workspace .ticket-detail-panel {
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.expert-workspace .queue-panel-header {
  padding: 0.72rem 0.8rem;
  background: var(--surface-soft);
}

.expert-workspace .queue-panel-header h2 {
  font-size: 1rem;
}

.expert-workspace .queue-panel-header .support-section-eyebrow {
  margin-bottom: 0.1rem;
  font-size: 0.68rem;
}

.expert-workspace .refresh-link {
  font-size: 0.78rem;
  font-weight: 700;
}

.expert-workspace .queue-unread-count {
  padding: 0.12rem 0.36rem;
  font-size: 0.64rem;
}

.expert-workspace .queue-toolbar {
  display: grid;
  grid-template-columns: minmax(0, calc(55% - 0.29rem)) minmax(0, calc(45% - 0.29rem));
  align-items: stretch;
  gap: 0.58rem;
  padding: 0.42rem 0.58rem 0.18rem;
}

.expert-workspace .queue-search {
  min-width: 0;
  padding: 0;
}

.expert-workspace .queue-search .search-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.expert-workspace .queue-search input {
  min-height: 34px;
  padding: 0.38rem 0.56rem;
  border-radius: 7px;
  font-size: 0.82rem;
}

.expert-workspace .queue-sort-form {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 0.16rem 0.28rem 0.16rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: inset 0 1px 1px rgba(11, 60, 111, 0.03);
  font-size: 0.68rem;
}

.expert-workspace .queue-sort-form label {
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.expert-workspace .queue-sort-form label::after {
  content: ":";
}

.expert-workspace .queue-sort-form select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 28px;
  padding: 0.1rem 1.35rem 0.1rem 0.22rem;
  border: 0;
  background-color: transparent;
  font-size: 0.68rem;
  color: var(--blue-900);
  box-shadow: none;
  text-overflow: ellipsis;
}

.expert-workspace .filter-pills {
  gap: 0.22rem;
  padding: 0.16rem 0.58rem 0.28rem;
}

.expert-workspace .filter-pills .filter-link {
  min-height: 22px;
  padding: 0.15rem 0.32rem;
  border-radius: 999px;
  font-size: 0.68rem;
}

.expert-workspace .filter-pill-count {
  min-width: 1.02rem;
  height: 1.02rem;
  padding: 0 0.2rem;
  font-size: 0.58rem;
}

@media (max-width: 760px) {
  .expert-workspace .queue-toolbar {
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .expert-workspace .queue-sort-form {
    width: 100%;
  }
}

.expert-workspace .ticket-list {
  display: flex;
  flex-direction: column;
  min-height: 11rem;
  padding: 0.18rem 0.38rem 0.45rem;
}

.expert-workspace .queue-empty-state {
  display: grid;
  flex: 1 1 auto;
  min-height: 10rem;
  place-items: center;
  padding: 1.5rem 0.75rem;
  text-align: center;
}

.expert-workspace .queue-empty-state p {
  margin: 0;
  max-width: 18rem;
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.45;
}

.expert-workspace .ticket-list .ticket-card {
  margin-top: 0.1rem;
  padding: 0.42rem 0.5rem;
  border-radius: 7px;
}

.expert-workspace .ticket-list .ticket-card.active {
  box-shadow: inset 3px 0 0 var(--blue-600);
}

.expert-workspace .ticket-subject {
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.18;
}

.expert-workspace .queue-ticket-customer {
  margin-top: 0.06rem;
  font-size: 0.74rem;
}

.expert-workspace .queue-ticket-status-line {
  margin-top: 0.2rem;
}

.expert-workspace .queue-ticket-status-line .badge {
  padding: 0.12rem 0.34rem;
  font-size: 0.58rem;
}

.expert-workspace .queue-ticket-heading .badge {
  padding: 0.12rem 0.34rem;
  font-size: 0.58rem;
}

.expert-workspace .queue-ticket-meta {
  gap: 0.08rem 0.3rem;
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.expert-workspace .queue-ticket-meta span:not(:first-child)::before,
.expert-workspace .queue-ticket-meta time::before {
  margin-right: 0.38rem;
}

.expert-workspace .queue-pagination {
  padding: 0.45rem 0.15rem 0;
}

.expert-workspace .pagination-link,
.expert-workspace .pagination-ellipsis {
  min-width: 1.42rem;
  min-height: 1.42rem;
  font-size: 0.68rem;
}

.expert-workspace .expert-ticket-header {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--soft-line);
  background: var(--surface);
}

.expert-workspace .expert-ticket-title-row {
  gap: 0.75rem;
}

.expert-workspace .support-ticket-eyebrow {
  margin-bottom: 0.12rem;
  font-size: 0.7rem;
}

.expert-workspace .expert-ticket-title-row h2 {
  font-size: 1rem;
}

.expert-workspace .expert-ticket-meta-desktop {
  margin-top: 0.55rem;
}

.expert-workspace .expert-ticket-status {
  padding: 0.18rem 0.48rem;
  font-size: 0.68rem;
}

.expert-workspace .expert-ticket-details-section {
  border-bottom: 1px solid var(--soft-line);
  background: var(--surface-soft);
}

.expert-workspace .expert-ticket-details-section .expert-ticket-meta {
  padding: 0.55rem 0.9rem 0.65rem;
}

.expert-workspace .expert-ticket-meta {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem 0.65rem;
}

.expert-workspace .expert-ticket-meta dt {
  font-size: 0.63rem;
  letter-spacing: 0.02em;
}

.expert-workspace .expert-ticket-meta dd {
  font-size: 0.76rem;
}

.expert-workspace .ticket-detail-panel .expert-closure-details {
  margin: 0.55rem 0.9rem 0;
  padding: 0.6rem;
}

.expert-workspace .expert-ticket-header .expert-closure-details {
  margin: 0.55rem 0 0;
}

.expert-workspace .expert-ticket-actions-section {
  border-bottom: 1px solid var(--soft-line);
  background: var(--surface-soft);
  padding-bottom: 0.7rem;
}

.expert-workspace .expert-assignment-row,
.expert-workspace .expert-ticket-actions {
  padding: 0.5rem 0.9rem 0;
}

.expert-workspace .expert-ticket-actions {
  gap: 0.38rem;
}

.expert-workspace .ticket-assignment-form {
  gap: 0.38rem;
}

.expert-workspace .ticket-assignment-form select {
  min-width: 170px;
  min-height: 32px;
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  font-size: 0.78rem;
}

.expert-workspace .expert-ticket-actions .button,
.expert-workspace .ticket-assignment-form .button {
  min-height: 32px;
  padding: 0.34rem 0.58rem;
  border-radius: 7px;
  font-size: 0.76rem;
}

.expert-workspace .expert-ticket-actions .button.danger {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  color: var(--danger);
}

.expert-workspace .expert-ticket-actions .button.danger:hover {
  background: color-mix(in srgb, var(--danger) 14%, var(--surface));
}

.expert-workspace .expert-ticket-actions .button.success-soft {
  border-color: color-mix(in srgb, var(--success) 50%, var(--line));
  background: color-mix(in srgb, var(--success) 12%, var(--surface));
  color: color-mix(in srgb, var(--success) 62%, #064e3b);
}

.expert-workspace .expert-ticket-actions .button.success-soft:hover {
  border-color: var(--success);
  background: color-mix(in srgb, var(--success) 18%, var(--surface));
}

.expert-workspace .expert-conversation {
  padding: 0.75rem 0.9rem 0;
}

.expert-workspace .support-section-heading {
  margin-bottom: 0.55rem;
}

.expert-workspace .support-section-heading h3 {
  font-size: 0.95rem;
}

.expert-workspace .expert-message-list {
  gap: 0.42rem;
}

.expert-workspace .expert-message {
  padding: 0.58rem 0.68rem;
  border-left-width: 2px;
  border-radius: 7px;
}

.expert-workspace .expert-message .message-header strong {
  font-size: 0.78rem;
}

.expert-workspace .expert-message .message-header time {
  font-size: 0.66rem;
}

.expert-workspace .expert-message p {
  margin-top: 0.26rem;
  font-size: 0.82rem;
  line-height: 1.38;
}

.expert-workspace .message-attachments {
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.expert-workspace .message-attachments .attachment-card {
  padding: 0.26rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
}

.expert-workspace .expert-ticket-content > .alert,
.expert-workspace .expert-ticket-content > .composer-card {
  margin: 0.75rem 0.9rem 0;
}

.expert-workspace .expert-ticket-content > .composer-card:last-of-type {
  margin-bottom: 0.9rem;
}

.expert-workspace .expert-ticket-content {
  padding-bottom: 0.9rem;
}

.expert-reply-composer,
.internal-note-composer {
  border-radius: 8px;
  box-shadow: none;
}

.expert-reply-composer > summary,
.internal-note-composer > summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 0.62rem 0.75rem;
  color: var(--blue-900);
  cursor: pointer;
  font-weight: 700;
}

.expert-reply-composer > summary {
  gap: 0.45rem;
}

.internal-note-composer > summary {
  justify-content: space-between;
}

.expert-reply-composer > summary::-webkit-details-marker,
.internal-note-composer > summary::-webkit-details-marker {
  display: none;
}

.expert-reply-composer > summary::after,
.internal-note-composer > summary::after {
  color: var(--muted);
  content: "+";
  font-weight: 700;
}

.expert-reply-composer > summary::after {
  margin-left: auto;
}

.expert-reply-composer[open] > summary,
.internal-note-composer[open] > summary {
  border-bottom: 1px solid color-mix(in srgb, var(--soft-line) 58%, transparent);
}

.expert-reply-composer[open] > summary::after,
.internal-note-composer[open] > summary::after {
  content: "-";
}

.expert-reply-form,
.internal-note-form {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem 0.75rem;
}

.expert-reply-form {
  gap: 0.3rem;
  padding: 0.38rem 0.5rem 0.5rem;
}

.expert-reply-form > .field.canned-response-picker {
  display: grid;
  grid-template-columns: auto minmax(14rem, 1fr);
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.expert-reply-form > .field.canned-response-picker label {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.expert-reply-form > .field.canned-response-picker select {
  min-height: 30px;
  padding: 0.28rem 0.48rem;
  border-radius: 6px;
  font-size: 0.78rem;
}

.canned-response-picker {
  position: relative;
}

.canned-response-combobox {
  position: relative;
  max-width: 28rem;
}

.canned-response-combobox > summary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  min-height: 34px;
  list-style: none;
}

.canned-response-combobox > summary::-webkit-details-marker {
  display: none;
}

.canned-response-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.35rem);
  left: 0;
  width: min(38rem, calc(100vw - 2rem));
  max-height: min(420px, 62vh);
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--blue-900) 14%, transparent);
}

.canned-response-popover input[type="search"] {
  min-height: 34px;
  padding: 0.34rem 0.55rem;
  border-radius: 6px;
  font-size: 0.84rem;
}

.canned-response-results {
  display: grid;
  gap: 0.32rem;
}

.canned-response-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.48rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.canned-response-result[hidden],
.canned-response-empty[hidden],
.canned-response-selected[hidden] {
  display: none !important;
}

.canned-response-result-main {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.canned-response-result-main strong {
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.canned-response-result-main span {
  color: var(--muted);
  font-size: 0.72rem;
}

.canned-response-language-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.28rem;
}

.canned-response-language-actions .button {
  min-height: 28px;
  padding: 0.18rem 0.44rem;
}

.canned-response-selected {
  margin: 0.28rem 0 0;
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  .canned-response-combobox {
    max-width: none;
  }

  .canned-response-popover {
    width: calc(100vw - 2rem);
  }

  .canned-response-result {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .canned-response-language-actions {
    justify-content: flex-start;
  }
}

.expert-reply-composer > summary {
  min-height: 32px;
  padding: 0.34rem 0.55rem;
  font-size: 0.84rem;
}

.expert-reply-composer > summary .badge {
  padding: 0.12rem 0.34rem;
  font-size: 0.58rem;
}

.expert-workspace .expert-reply-composer textarea {
  height: 92px;
  min-height: 90px;
  padding: 0.42rem 0.55rem;
  font-size: 0.86rem;
}

.expert-workspace .internal-note-composer textarea {
  min-height: 76px;
}

.expert-workspace .expert-reply-actions {
  align-items: flex-start;
  gap: 0.32rem;
}

.expert-workspace .expert-reply-actions .compact-upload {
  display: grid;
  flex: 1 1 28rem;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.18rem 0.45rem;
  max-width: 34rem;
  margin: 0;
  padding: 0.3rem 0.42rem;
  border-style: solid;
  border-radius: 6px;
  background: var(--surface);
}

.expert-workspace .expert-reply-actions .compact-upload label {
  margin: 0;
  font-size: 0.74rem;
  white-space: nowrap;
}

.expert-workspace .expert-reply-actions .compact-upload p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.66rem;
}

.expert-workspace .expert-reply-actions .compact-upload input[type="file"] {
  min-height: 30px;
  padding: 0.16rem;
  font-size: 0.72rem;
}

.expert-workspace .expert-reply-actions .compact-upload input[type="file"]::file-selector-button {
  padding: 0.2rem 0.38rem;
}

.expert-workspace .expert-reply-actions > .button,
.expert-workspace .internal-note-form .button {
  min-height: 32px;
  padding: 0.36rem 0.62rem;
  border-radius: 6px;
  font-size: 0.78rem;
}

.demo-mode-banner {
  margin: 0 0 1rem;
  font-weight: 700;
}

.demo-view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.demo-view-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--blue-900);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.demo-view-switch-link i {
  color: var(--blue-700);
  font-size: 0.9rem;
}

.demo-view-switch-link:hover {
  background: var(--blue-050);
}

.demo-view-switch-link.active {
  background: var(--blue-700);
  color: #fff;
}

.demo-view-switch-link.active i {
  color: #fff;
}

.demo-customer-ticket {
  display: grid;
  gap: 0;
}

.demo-customer-page {
  width: min(var(--layout-wide-max-width), 100%);
  margin: 0 auto;
}

.demo-customer-content {
  max-width: 860px;
  margin: 0 auto;
}

.demo-customer-page .demo-view-switch {
  margin-bottom: 1rem;
}

.demo-customer-page .demo-workspace-header {
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  padding-block: 1rem;
}

.demo-customer-page .demo-workspace-header h1,
.demo-customer-page .demo-workspace-header p {
  margin-bottom: 0;
}

.workspace-grid.demo-customer-layout {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

.demo-customer-layout .ticket-detail-panel {
  width: 100%;
}

.demo-workspace .ticket-detail-panel,
.demo-workspace .support-ticket-page {
  box-shadow: none;
}

.demo-workspace .expert-ticket-header,
.demo-workspace .expert-conversation {
  padding-inline: 0.9rem;
}

.demo-workspace .expert-ticket-actions {
  padding: 0.6rem 0.9rem 0;
}

.demo-workspace button:disabled,
.demo-workspace textarea:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.demo-disabled-actions .button:disabled,
.demo-disabled-composer .button:disabled {
  border-color: var(--line);
  background: var(--blue-050);
  color: var(--muted);
}

.demo-disabled-composer textarea:disabled {
  background: color-mix(in srgb, var(--blue-050) 72%, var(--surface));
  color: var(--muted);
}

.demo-disabled-composer {
  gap: 0.55rem;
  padding: 0.75rem;
}

.demo-disabled-composer textarea {
  min-height: 90px;
}

.demo-disabled-composer .composer-field-heading {
  margin-bottom: 0.35rem;
}

.demo-disabled-composer .button {
  width: fit-content;
  min-height: 34px;
  padding: 0.42rem 0.7rem;
}

.demo-workspace .ticket-list .ticket-card {
  overflow: hidden;
}

.demo-workspace .queue-ticket-subject-row {
  min-width: 0;
}

.demo-workspace .ticket-subject {
  max-width: 100%;
}

:root[data-theme="dark"] .internal-note-composer {
  border-color: #9d7b31;
  background: rgba(138, 90, 0, 0.14);
}

:root[data-theme="dark"] .internal-note-composer textarea {
  border-color: #866c32;
  background: rgba(138, 90, 0, 0.08);
}

:root[data-theme="dark"] .internal-note-composer .button.warning {
  border-color: #d6a94b;
  background: #5f4213;
  color: #ffe3a3;
}

:root[data-theme="dark"] .internal-note-composer .button.warning:hover {
  background: #76531b;
  color: #fff4d8;
}

.readable {
  max-width: 760px;
}

.auth-shell {
  display: grid;
  min-height: min(560px, calc(100vh - 150px));
  align-items: center;
}

.company-register-shell {
  padding-block: 1rem;
}

.company-register-card {
  width: min(860px, 100%);
  margin-inline: auto;
}

.company-register-form {
  display: grid;
  gap: 1rem;
}

.company-register-section {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.company-register-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.company-register-heading h2,
.company-register-heading p {
  margin: 0;
}

.company-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.company-register-grid .field {
  align-content: start;
  margin-bottom: 0;
}

.field-hint {
  margin: 0;
  font-size: 0.82rem;
}

.slug-preview {
  width: fit-content;
  max-width: 100%;
  margin: 0.1rem 0 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: var(--blue-050);
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.slug-preview span {
  color: var(--blue-900);
  font-weight: 650;
}

.upload-field {
  padding: 0.9rem;
  border: 1px dashed color-mix(in srgb, var(--blue-700) 45%, var(--line));
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-soft), var(--blue-050));
}

.upload-field p {
  margin: -0.15rem 0 0.45rem;
  font-size: 0.9rem;
}

.upload-field input[type="file"] {
  min-height: auto;
  padding: 0.5rem;
  border-style: solid;
  background: var(--surface);
}

.upload-field input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.upload-field input[type="file"]::file-selector-button:hover {
  background: var(--blue-800);
}

.file-picker-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 42px;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.file-picker-input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0 !important;
  opacity: 0;
}

.file-picker-control:focus-within {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--blue-600);
}

.file-picker-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.48rem 0.78rem;
  border: 1px solid var(--blue-700);
  border-radius: var(--radius);
  background: var(--blue-700);
  color: #fff !important;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650 !important;
  line-height: 1.1;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.file-picker-button:hover {
  border-color: var(--blue-800);
  background: var(--blue-800);
}

.file-picker-button:active {
  border-color: var(--blue-900);
  background: var(--blue-900);
  transform: translateY(1px);
}

.file-picker-input:disabled + .file-picker-button {
  opacity: 0.55;
  cursor: not-allowed;
}

.file-picker-input:disabled + .file-picker-button:hover {
  border-color: var(--blue-700);
  background: var(--blue-700);
  transform: none;
}

.file-picker-name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-shell,
.settings-card {
  width: min(var(--layout-max-width), 100%);
  align-self: start;
}

.settings-shell {
  display: grid;
  gap: 1rem;
}

.settings-card.is-loading {
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.settings-card.is-saving-order {
  cursor: progress;
}

.settings-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  text-align: left;
}

.settings-header .page-eyebrow {
  margin-bottom: 0.25rem;
}

.settings-header p {
  max-width: 54rem;
  margin: 0;
}

.settings-form {
  display: grid;
  gap: 1rem;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(210px, 238px) minmax(0, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  align-items: start;
}

.settings-tabs {
  display: grid;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.settings-menu {
  position: sticky;
  top: 1rem;
}

.settings-content {
  min-width: 0;
  align-self: start;
}

.settings-content-card {
  padding: 1rem;
  align-self: start;
}

.settings-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.settings-overview-card {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.settings-overview-card:hover {
  border-color: color-mix(in srgb, var(--blue-700) 36%, var(--line));
  background: color-mix(in srgb, var(--blue-050) 48%, var(--surface));
  transform: translateY(-1px);
}

.settings-overview-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue-700);
}

.settings-overview-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  color: var(--muted);
  font-size: var(--font-size-sm);
  line-height: 1.35;
}

.settings-overview-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--blue-900);
  font-weight: 800;
  line-height: 1.2;
}

.settings-overview-title .branding-pro-badge {
  padding-inline: 0.5rem;
  font-size: 0.72rem;
}

.settings-overview-arrow {
  color: var(--muted);
  font-size: 0.85rem;
}

.marketing-comparison {
  display: grid;
  gap: 1.25rem;
}

.marketing-comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.06fr);
  gap: 1rem;
  align-items: stretch;
}

.marketing-comparison-card {
  display: grid;
  align-content: start;
  gap: 1.15rem;
  min-width: 0;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.marketing-comparison-card.is-before {
  border-color: color-mix(in srgb, var(--muted) 24%, var(--line));
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--muted) 5%);
}

.marketing-comparison-card.is-before h3 {
  color: color-mix(in srgb, var(--ink) 70%, var(--muted));
}

.marketing-comparison-card.is-resolugo {
  border: 2px solid color-mix(in srgb, var(--blue-600) 58%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--blue-050) 76%, var(--surface)), var(--surface));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.09);
}

.marketing-comparison-card-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.marketing-comparison-card-heading .page-eyebrow,
.marketing-comparison-card-heading h3 {
  margin: 0;
}

.marketing-comparison-card-heading h3 {
  margin-top: 0.2rem;
  color: var(--blue-900);
  font-size: var(--font-size-lg);
}

.marketing-comparison-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 10%, var(--surface));
  color: var(--muted);
  font-size: 1.05rem;
}

.is-resolugo .marketing-comparison-icon {
  background: var(--blue-700);
  color: #fff;
}

.marketing-comparison-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketing-comparison-list li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  line-height: 1.5;
}

.marketing-comparison-list i {
  margin-top: 0.25rem;
  color: var(--muted);
}

.is-resolugo .marketing-comparison-list i {
  color: var(--blue-700);
}

.marketing-comparison-transition {
  display: grid;
  width: 44px;
  height: 44px;
  align-self: center;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue-600) 28%, var(--line));
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue-700);
  box-shadow: var(--soft-shadow);
}

.support-form-builder-page { width: 100%; }
.support-form-builder-layout { grid-template-columns: minmax(0, 1fr); }
.support-form-builder-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.support-form-builder-header-actions { flex: 0 0 auto; }
.support-form-builder-page .settings-content { width: 100%; }
.support-form-builder-page .settings-group { padding: 0; border: 0; background: transparent; }
.support-form-builder-page .branding-form > .settings-group > div:first-child { display: none; }

.settings-tab {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: var(--control-height);
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.settings-tab i {
  width: 1rem;
  color: color-mix(in srgb, var(--muted), var(--blue-700) 22%);
  font-size: 0.9rem;
  text-align: center;
}

.settings-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-tab:hover {
  color: var(--blue-900);
  background: var(--surface-soft);
}

.settings-tab:hover i,
.settings-tab.is-active i {
  color: var(--blue-800);
}

.settings-tab.is-active {
  border-color: color-mix(in srgb, var(--blue-700), white 70%);
  color: var(--blue-900);
  background: color-mix(in srgb, var(--blue-700), white 88%);
  box-shadow: inset 3px 0 0 var(--blue-700);
}

.settings-groups {
  display: grid;
  gap: 1rem;
}

.settings-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 0.7rem;
}

.settings-list-general {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.55rem;
}

.settings-list-ticket-settings {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
  gap: 0.55rem;
}

.settings-group {
  display: grid;
  gap: 0.85rem;
}

.settings-form > .settings-groups > .settings-group {
  padding: 0.82rem;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-soft) 58%, transparent);
}

.settings-group h2 {
  margin: 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--soft-line);
}

.settings-group-title-with-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.settings-form > .settings-groups > .settings-group h2 {
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.setting-row {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.setting-row[hidden] {
  display: none;
}

.setting-row-primary {
  border-color: color-mix(in srgb, var(--blue-600) 50%, var(--line));
  background: color-mix(in srgb, var(--blue-050) 70%, var(--surface-soft));
}

.setting-row-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, auto);
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
}

.setting-row-compact .setting-copy {
  min-width: 0;
}

.setting-row-compact .setting-value {
  justify-self: end;
}

.setting-input-with-unit {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  max-width: 13rem;
}

.setting-input-with-unit input {
  min-width: 0;
  max-width: 7rem;
}

.setting-input-with-unit span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.settings-compact-groups {
  display: grid;
  gap: 0.75rem;
}

.settings-compact-group {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.settings-compact-group h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: var(--font-size-md);
  line-height: 1.2;
}

.settings-compact-list {
  display: grid;
  gap: 0.5rem;
}

.settings-compact-list-inline {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.settings-compact-list-inline .setting-row-compact {
  grid-template-columns: minmax(13rem, 1fr) auto;
  min-height: 0;
  padding: 0.62rem 0.7rem;
}

.settings-compact-list-inline .setting-row-compact .setting-value {
  align-self: center;
}

.settings-compact-list-inline .setting-input-with-unit {
  max-width: 14rem;
}

.settings-compact-list-inline .setting-input-with-unit input {
  max-width: 8rem;
}

.settings-info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.settings-info-note i {
  margin-top: 0.15rem;
  color: var(--blue-600);
}

.settings-notification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.setting-row-notification {
  align-items: center;
  min-height: 0;
  padding: 0.9rem;
}

.setting-row-notification .setting-copy p {
  max-width: 34rem;
}

.setting-row-notification .setting-value {
  width: auto;
  min-width: max-content;
}

.settings-file-type-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.settings-file-type-row .setting-row {
  align-self: start;
}

.email-ticket-creation-settings {
  display: grid;
  gap: 0.75rem;
}

.email-ticket-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.email-ticket-address-row p {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
}

.email-ticket-address-row code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--blue-900);
  font-size: 0.94rem;
}

.email-ticket-warning {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--warning) 45%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--warning) 12%, var(--surface));
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.45;
}

.setting-row label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--blue-900);
  font-weight: 650;
}

.setting-row p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.setting-copy {
  flex: 1;
}

.setting-value {
  width: min(100%, 220px);
  margin-bottom: 0;
}

.setting-value input,
.setting-value select {
  min-height: 38px;
  padding-block: 0.45rem;
}

.setting-switch {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  gap: 0.65rem;
  margin: 0 !important;
  cursor: pointer;
  user-select: none;
}

.setting-switch > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.setting-switch-track {
  display: flex;
  width: 46px;
  height: 25px;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 150ms ease, background 150ms ease;
}

.setting-switch-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 150ms ease, background 150ms ease;
}

.setting-switch > input:checked + .setting-switch-track {
  border-color: var(--blue-600);
  background: var(--blue-700);
}

.setting-switch > input:checked + .setting-switch-track .setting-switch-thumb {
  transform: translateX(19px);
  background: #fff;
}

.setting-switch > input:focus-visible + .setting-switch-track {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.setting-switch-state {
  min-width: 4.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.settings-actions {
  justify-content: flex-start;
}

.settings-actions-general {
  min-height: 0;
  margin: 0;
  padding: 0;
}

.settings-save-status:empty {
  display: none;
}

.settings-save-status {
  align-self: center;
  min-width: 5rem;
  font-size: 0.88rem;
}

@media (max-width: 1190px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-menu {
    position: static;
  }

  .settings-tabs {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  }

  .settings-tab {
    white-space: normal;
  }

  .settings-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-notification-grid {
    grid-template-columns: 1fr;
  }
}

.settings-card .settings-header h1 {
  font-size: clamp(1.65rem, 2vw, 2rem);
  line-height: 1.12;
}

.settings-card .settings-group h2 {
  font-size: var(--font-size-lg);
  line-height: 1.2;
}

.settings-form .field {
  max-width: 42rem;
}

.settings-form .field input,
.settings-form .field select {
  min-height: 38px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-heading-row h2 {
  margin: 0;
}

.section-heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.canned-card {
  display: grid;
  gap: 1.3rem;
}

.canned-form {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--soft-line);
}

.canned-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr) minmax(92px, 0.2fr);
  gap: 0.85rem;
  align-items: start;
}

.compact-field {
  max-width: 130px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 550;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.canned-list-section {
  gap: 0.8rem;
}

.canned-response-list {
  display: grid;
  gap: 0.75rem;
}

.canned-response-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.canned-response-row.is-inactive {
  opacity: 0.76;
}

.canned-response-title-row,
.canned-response-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.canned-response-title-row h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1rem;
  font-weight: 700;
}

.canned-response-meta,
.canned-response-preview {
  margin: 0.35rem 0 0;
}

.canned-response-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.canned-response-preview {
  color: var(--text);
  line-height: 1.55;
}

.canned-response-actions {
  justify-content: flex-end;
}

.canned-response-actions form {
  margin: 0;
}

.category-form {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--soft-line);
}

.category-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.branding-logo-field {
  display: grid;
  gap: 0.7rem;
}

.branding-logo-card {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 0.65fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 139, 230, 0.08), rgba(255, 255, 255, 0) 42%),
    var(--surface-soft);
}

.branding-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 0.6rem;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.branding-logo-preview img {
  display: block;
  max-width: min(100%, 150px);
  max-height: 68px;
  object-fit: contain;
}

.branding-logo-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 62px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
}

.branding-logo-controls {
  display: grid;
  align-content: center;
  gap: 0.55rem;
}

.branding-logo-controls label {
  margin: 0;
}

.branding-logo-controls .field-help {
  margin: 0.2rem 0 0;
}

.branding-logo-controls input[type="file"] {
  width: 100%;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.branding-logo-controls input[type="file"]::file-selector-button {
  margin-right: 0.55rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.branding-logo-controls input[type="file"]::file-selector-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.branding-remove-logo {
  justify-self: start;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.branding-editor-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.branding-editor-controls {
  display: grid;
  gap: 1rem;
}

.branding-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.branding-language-card {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.branding-language-header {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--soft-line);
}

.branding-language-header h3,
.branding-section-heading h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1rem;
}

.branding-language-header p,
.branding-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.branding-language-card .field {
  gap: 0.4rem;
  margin: 0;
}

.branding-language-card label {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.25;
}

.branding-language-card input {
  min-height: 38px;
}

.branding-language-card textarea {
  min-height: 86px;
  max-height: 140px;
}

.branding-visual-settings {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.branding-visual-settings h3 {
  margin: 0;
  font-size: 1rem;
}

.branding-section-heading {
  display: grid;
  gap: 0.2rem;
}

.branding-pro-lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem;
  border: 1px dashed color-mix(in srgb, var(--blue-700) 42%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-075) 75%, transparent), transparent 56%),
    var(--surface);
}

.branding-pro-lock-icon {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-075);
  color: var(--blue-700);
}

.branding-pro-lock-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

.branding-pro-lock-heading h3,
.branding-pro-lock p {
  margin: 0;
}

.branding-pro-lock p {
  margin-bottom: 0.7rem;
  color: var(--muted);
  line-height: 1.45;
}

.branding-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 0.7rem;
  align-items: stretch;
}

.branding-color-grid .field {
  display: grid;
  grid-template-rows: 3.75rem 42px auto;
  gap: 0.4rem;
  align-items: end;
  min-width: 0;
  margin: 0;
}

.branding-color-grid label {
  align-self: end;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.25;
}

.branding-color-grid input[type="color"],
.branding-color-grid input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 42px;
}

.branding-color-grid input[type="color"] {
  padding: 0.2rem;
}

.branding-visual-actions {
  display: flex;
  justify-content: flex-start;
}

.branding-embed-only-option {
  align-items: flex-start;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.branding-embed-only-option span {
  display: grid;
  gap: 0.25rem;
}

.branding-embed-only-option small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.4;
}

.branding-preview-panel {
  position: static;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.branding-preview-panel [hidden] {
  display: none !important;
}

.branding-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.branding-preview-actions > span {
  display: grid;
  gap: 0.15rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.branding-preview-actions > div {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.branding-preview-embed-shell {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding: 0.75rem;
  border-radius: var(--support-border-radius, 8px);
  background: var(--support-background-color, transparent);
}

.branding-preview-embed-shell .embed-support-card {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

.branding-preview-embed-shell .embed-support-card {
  box-shadow: none;
}

.branding-preview-embed-shell .embed-support-form {
  pointer-events: none;
}

.category-language-card {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  min-width: 0;
}

.category-language-card h3 {
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--soft-line);
}

.category-language-card .field:last-child {
  margin-bottom: 0;
}

.category-language-card textarea {
  min-height: 84px;
}

.branding-form .category-language-card label {
  line-height: 1.25;
}

.branding-form .category-language-card input,
.branding-form .category-language-card textarea {
  min-width: 0;
}

.category-list-section,
.category-list {
  display: grid;
  gap: 0.8rem;
}

.category-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.category-row.is-inactive {
  opacity: 0.76;
}

.category-title-row,
.category-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.category-title-row h3 {
  margin: 0;
}

.category-meta,
.category-description {
  margin: 0.35rem 0 0;
}

.category-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.category-meta code {
  color: var(--blue-900);
  font-weight: 650;
}

.category-description {
  line-height: 1.5;
}

.category-actions {
  justify-content: flex-end;
}

.category-actions form {
  margin: 0;
}

.billing-section {
  gap: 1rem;
}

.billing-header,
.billing-current-plan,
.plan-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.billing-current-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: start;
  gap: 1.25rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.billing-current-plan h3,
.plan-card h3 {
  margin: 0.1rem 0;
}

.billing-status-badge {
  width: fit-content;
  margin-top: 0.15rem;
}

.billing-limit-list {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  margin: 0;
  padding: 0.2rem 0;
}

.billing-limit-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  min-width: 0;
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--soft-line);
}

.billing-limit-item:last-child {
  border-bottom: 0;
}

.billing-limit-item dt,
.plan-limit-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.billing-limit-item dt,
.billing-limit-item dd {
  margin: 0;
  white-space: nowrap;
}

.billing-limit-item dd {
  color: var(--blue-900);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.billing-period-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.billing-period-option {
  min-height: 2.2rem;
  padding: 0.35rem 0.8rem;
  border: 0;
  border-radius: calc(var(--radius-sm) - 2px);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.billing-period-option.is-active {
  background: var(--blue-700);
  color: #fff;
}

.billing-inline-link {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

[data-plan-billing-content][hidden] {
  display: none !important;
}

.plan-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.plan-card.is-current {
  border-color: color-mix(in srgb, var(--blue-700) 55%, var(--line));
  background: color-mix(in srgb, var(--blue-050) 55%, var(--surface-soft));
}

.plan-price {
  margin: 0.2rem 0 0;
  color: var(--blue-900);
  font-weight: 750;
}

.plan-statement {
  max-width: 18rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.plan-limit-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.plan-limit-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--soft-line);
}

.plan-limit-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  text-align: right;
}

.plan-checkout-options {
  display: grid;
  gap: 0.55rem;
  align-self: end;
}

.plan-checkout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 11.5rem);
  align-items: center;
  gap: 0.65rem;
}

.plan-checkout-row strong,
.plan-checkout-row span {
  display: block;
}

.plan-checkout-row span {
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.plan-checkout-row .plan-trial-note {
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.plan-checkout-row form,
.plan-checkout-row .button {
  width: 100%;
}

.plan-checkout-row .plan-action-button,
.plan-checkout-row .plan-current-status {
  min-height: 2.55rem;
  justify-content: center;
  white-space: nowrap;
}

.plan-checkout-row .plan-action-button {
  padding-inline: 0.85rem;
}

.staff-form {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--soft-line);
}

.staff-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.staff-checks,
.staff-title-row,
.staff-badges,
.staff-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.staff-list-section,
.staff-list {
  display: grid;
  gap: 0.8rem;
}

.staff-limit-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.staff-limit-summary > div {
  min-width: 0;
  padding: 0.5rem 0.62rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 64%, var(--surface));
}

.staff-limit-summary span,
.staff-meta-grid dt {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.staff-limit-summary strong {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
}

.staff-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.72rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.staff-row.is-inactive {
  opacity: 0.76;
}

.staff-title-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.staff-badges {
  min-width: 0;
}

.staff-email {
  margin: 0.18rem 0 0;
  color: var(--blue-900);
  font-size: 0.88rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.staff-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.8rem;
  margin: 0.42rem 0 0;
}

.staff-meta-grid > div {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  min-width: 0;
}

.staff-meta-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge.staff-role-owner {
  border-color: color-mix(in srgb, var(--blue-700) 28%, var(--line));
  background: var(--blue-700);
  color: #fff;
}

.badge.staff-role-manager {
  border-color: color-mix(in srgb, var(--success) 26%, var(--line));
  background: color-mix(in srgb, var(--success) 9%, var(--surface));
  color: var(--success);
}

.badge.staff-role-agent {
  border-color: var(--soft-line);
  background: var(--blue-050);
  color: var(--blue-800);
}

.button.is-disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  pointer-events: none;
}

.staff-actions {
  justify-content: flex-end;
}

.customer-block-form {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--soft-line);
}

.customer-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.customer-block-custom-end {
  width: 100%;
}

.customer-block-custom-end[hidden] {
  display: none;
}

.customer-block-list-section,
.customer-block-list {
  display: grid;
  gap: 0.8rem;
}

.customer-block-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.customer-block-row.is-inactive {
  opacity: 0.72;
}

.customer-block-title,
.customer-block-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.customer-block-reason,
.customer-block-meta {
  margin: 0.4rem 0 0;
}

.customer-block-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.customer-block-actions {
  justify-content: flex-end;
}

.customer-block-actions form {
  margin: 0;
}

.admin-dashboard {
  display: grid;
  gap: 1rem;
  width: min(var(--layout-max-width), 100%);
  margin-inline: auto;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-075) 70%, var(--surface)), var(--surface));
  box-shadow: var(--shadow);
}

.dashboard-header h1,
.dashboard-header p {
  margin-bottom: 0;
}

.dashboard-summary-grid,
.dashboard-metric-grid,
.dashboard-secondary-metrics {
  display: grid;
  gap: 0.8rem;
}

.dashboard-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-metric-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.dashboard-secondary-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.dashboard-secondary-section {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.3rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--soft-line);
}

.dashboard-secondary-section h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-stat-card,
.dashboard-metric-card,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.dashboard-stat-card,
.dashboard-metric-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.78rem 0.85rem;
}

.dashboard-secondary-metrics .dashboard-metric-card {
  padding: 0.62rem 0.7rem;
  background: color-mix(in srgb, var(--surface-soft) 54%, var(--surface));
  box-shadow: none;
}

.dashboard-stat-card span,
.dashboard-metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.dashboard-stat-card strong {
  color: var(--blue-900);
  font-size: 1.55rem;
  line-height: 1;
}

.dashboard-metric-card strong {
  color: var(--blue-900);
  font-size: 0.98rem;
}

.dashboard-secondary-metrics .dashboard-metric-card strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
}

.dashboard-stat-card small {
  color: var(--muted);
  font-size: 0.73rem;
}

.dashboard-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-panel {
  min-width: 0;
  overflow: hidden;
}

.dashboard-panel-header {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--soft-line);
  background: var(--surface-soft);
}

.dashboard-panel-header h2,
.dashboard-panel-header p {
  margin-bottom: 0;
}

.dashboard-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  overflow-wrap: anywhere;
}

.dashboard-table th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: normal;
  white-space: nowrap;
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-table .number-column {
  width: 88px;
  text-align: right;
}

.dashboard-empty {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
}

.dashboard-activity-list {
  display: grid;
}

.dashboard-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.58rem 0.85rem;
  border-bottom: 1px solid var(--soft-line);
  color: var(--ink);
}

.dashboard-activity-row:last-child {
  border-bottom: 0;
}

.dashboard-activity-row:hover {
  background: var(--blue-050);
  text-decoration: none;
}

.dashboard-activity-subject {
  display: block;
  margin-top: 0.05rem;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.dashboard-activity-meta {
  display: grid;
  flex: 0 0 auto;
  gap: 0.05rem;
  color: var(--muted);
  font-size: 0.74rem;
  text-align: right;
}

.dashboard-volume-list,
.dashboard-ticket-list {
  display: grid;
}

.dashboard-volume-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 0.85rem;
}

.dashboard-volume-row:last-child,
.dashboard-ticket-row:last-child {
  border-bottom: 0;
}

.dashboard-volume-row strong {
  color: var(--blue-900);
  text-align: right;
}

.dashboard-volume-row.is-empty {
  color: color-mix(in srgb, var(--muted) 62%, var(--surface));
}

.dashboard-volume-row.is-empty .dashboard-volume-track {
  background: color-mix(in srgb, var(--surface-soft) 76%, var(--surface));
}

.dashboard-volume-row.is-empty strong {
  color: color-mix(in srgb, var(--muted) 58%, var(--surface));
}

.dashboard-volume-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-050);
}

.dashboard-volume-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-700);
}

.dashboard-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0.88rem 1rem;
  border-bottom: 1px solid var(--soft-line);
  color: var(--ink);
}

.dashboard-ticket-row:hover {
  background: var(--blue-050);
  text-decoration: none;
}

.dashboard-ticket-row strong,
.dashboard-ticket-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-ticket-row span {
  margin-top: 0.14rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-ticket-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.dashboard-ticket-meta .badge {
  display: inline-flex;
  margin-top: 0;
  overflow-wrap: normal;
}

.platform-admin-page {
  width: min(var(--layout-max-width), 100%);
}

.platform-admin-hero { margin-bottom: 0; }
.platform-admin-nav { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.35rem; border: 1px solid var(--soft-line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface-soft) 76%, var(--surface)); }
.platform-admin-nav-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0.45rem 0.75rem; border-radius: 7px; color: var(--muted); font-size: 0.9rem; font-weight: 750; text-decoration: none; }
.platform-admin-nav-link:hover,
.platform-admin-nav-link.is-active { background: var(--surface); color: var(--blue-800); box-shadow: var(--soft-shadow); }
.platform-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; }
.platform-summary-card { display: grid; gap: 0.25rem; min-height: 86px; padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--soft-shadow); }
.platform-summary-card span { color: var(--muted); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.platform-summary-card strong { color: var(--blue-900); font-size: 1.75rem; line-height: 1; }
.platform-summary-card.is-good { border-color: color-mix(in srgb, var(--success) 18%, var(--line)); background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.platform-summary-card.is-warning { border-color: color-mix(in srgb, var(--warning) 22%, var(--line)); background: color-mix(in srgb, var(--warning) 8%, var(--surface)); }
.platform-summary-card.is-danger { border-color: color-mix(in srgb, var(--danger) 20%, var(--line)); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.platform-summary-card.is-neutral { border-color: var(--soft-line); background: color-mix(in srgb, var(--surface-soft) 62%, var(--surface)); }
.platform-summary-card.is-internal { border-color: color-mix(in srgb, var(--blue-700) 18%, var(--line)); background: color-mix(in srgb, var(--blue-075) 42%, var(--surface)); }
.platform-company-panel .dashboard-panel-header { align-items: center; }
.platform-company-list { display: grid; gap: 0.62rem; padding: 0.75rem; }
.platform-company-card { display: grid; gap: 0.55rem; padding: 0.68rem 0.78rem; border: 1px solid var(--line); border-left: 4px solid var(--blue-600); border-radius: var(--radius); background: var(--surface); box-shadow: var(--soft-shadow); }
.platform-company-card.is-inactive { border-left-color: var(--warning); background: color-mix(in srgb, var(--surface-soft) 54%, var(--surface)); }
.platform-company-form { display: grid; min-width: 0; gap: 0.55rem; }
.platform-company-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; min-width: 0; }
.platform-company-heading-main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.45rem 0.7rem; min-width: 0; }
.platform-company-title { min-width: 0; }
.platform-company-title h3 { margin: 0; color: var(--blue-900); font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }
.platform-company-slug { display: block; margin-top: 0.08rem; color: var(--muted); font-size: 0.8rem; font-weight: 700; overflow-wrap: anywhere; }
.platform-company-badges,
.platform-company-header-actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: 0.38rem; }
.platform-company-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; padding-top: 0.1rem; }
.platform-status-badge { display: inline-flex; align-items: center; justify-content: center; padding: 0.24rem 0.56rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.platform-status-badge.is-free,
.platform-status-badge.is-neutral { border-color: var(--soft-line); background: var(--blue-050); color: var(--muted); }
.platform-status-badge.is-basic,
.platform-status-badge.is-pro { border-color: color-mix(in srgb, var(--blue-600) 22%, var(--line)); background: color-mix(in srgb, var(--blue-075) 62%, var(--surface)); color: var(--blue-800); }
.platform-status-badge.is-good { border-color: color-mix(in srgb, var(--success) 25%, var(--line)); background: color-mix(in srgb, var(--success) 9%, var(--surface)); color: var(--success); }
.platform-status-badge.is-warning { border-color: color-mix(in srgb, var(--warning) 28%, var(--line)); background: color-mix(in srgb, var(--warning) 9%, var(--surface)); color: var(--warning); }
.platform-status-badge.is-danger { border-color: color-mix(in srgb, var(--danger) 24%, var(--line)); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--danger); }
.platform-status-badge.is-internal { border-color: color-mix(in srgb, var(--blue-700) 28%, var(--line)); background: var(--blue-700); color: #fff; }
.platform-company-meta-list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.42rem; min-width: 0; margin: 0; }
.platform-company-meta-list > div { min-width: 112px; max-width: 210px; padding: 0.43rem 0.55rem; border: 1px solid var(--soft-line); border-radius: 7px; background: color-mix(in srgb, var(--surface-soft) 58%, var(--surface)); }
.platform-company-meta-list > .is-email { min-width: min(240px, 100%); max-width: 360px; }
.platform-company-meta-list dt { margin: 0; color: var(--muted); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.platform-company-meta-list dd { margin: 0.12rem 0 0; color: var(--ink); font-size: 0.84rem; font-weight: 750; line-height: 1.22; overflow-wrap: anywhere; }
.platform-company-meta-item { min-width: 0; padding: 0.62rem 0.7rem; border: 1px solid var(--soft-line); border-radius: 7px; background: color-mix(in srgb, var(--surface-soft) 58%, var(--surface)); }
.platform-company-meta-item.is-wide { grid-column: span 2; }
.platform-company-meta-item span { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.platform-company-meta-item strong { display: block; margin-top: 0.16rem; color: var(--ink); font-size: 0.9rem; line-height: 1.28; overflow-wrap: anywhere; }
.platform-company-admin-panel { min-width: min(320px, 100%); padding: 0.62rem; border: 1px solid var(--soft-line); border-radius: 7px; background: var(--surface-soft); }
.platform-company-admin-panel h4 { margin: 0 0 0.5rem; color: var(--blue-900); font-size: 0.84rem; line-height: 1.2; }
.platform-company-form label:not(.check-row) { display: grid; gap: 0.24rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.platform-company-form select { min-height: 36px; padding-block: 0.45rem; text-transform: none; }
.platform-company-form .check-row { width: fit-content; color: var(--ink); font-size: 0.86rem; font-weight: 700; text-transform: none; }
.platform-company-form .button { justify-self: end; }
.platform-company-toolbar { display: grid; gap: 0.75rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--soft-line); }
.platform-company-toolbar .search-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto auto; gap: 0.55rem; align-items: center; }
.platform-company-toolbar select { min-height: 40px; padding: 0.55rem 0.75rem; }
.platform-company-pagination { display: flex; justify-content: flex-end; padding: 0.8rem 0.9rem; border-top: 1px solid var(--soft-line); background: var(--surface-soft); }
.platform-company-pagination .customer-pagination-actions { justify-content: flex-end; }
.platform-company-details-menu { position: relative; }
.platform-company-details-menu > summary,
.platform-company-manage-menu > summary { list-style: none; cursor: pointer; }
.platform-company-details-menu > summary::-webkit-details-marker,
.platform-company-manage-menu > summary::-webkit-details-marker { display: none; }
.platform-company-details-popover { position: absolute; z-index: 20; right: 0; top: calc(100% + 0.35rem); display: grid; grid-template-columns: auto minmax(180px, 1fr); gap: 0.28rem 0.55rem; min-width: min(360px, 82vw); padding: 0.62rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.platform-company-details-popover span { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.platform-company-details-popover strong { min-width: 0; color: var(--ink); font-size: 0.82rem; overflow-wrap: anywhere; }
.platform-company-manage-menu { position: relative; }
.platform-company-manage-menu[open] { flex-basis: min(320px, 100%); }
.platform-company-manage-menu .platform-company-admin-panel { position: absolute; z-index: 18; right: 0; top: calc(100% + 0.35rem); box-shadow: var(--shadow); }

.platform-notification-filters {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--soft-line);
}

.notification-record-list { display: grid; gap: 0.75rem; padding: 1rem; }
.notification-record-card { display: grid; gap: 0.85rem; padding: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--soft-shadow); }
.notification-record-card.is-good { border-left-color: var(--success); }
.notification-record-card.is-basic { border-left-color: var(--blue-600); }
.notification-record-card.is-neutral { border-left-color: var(--line); }
.notification-record-card.is-danger { border-left-color: var(--danger); }
.notification-record-card.is-warning { border-left-color: var(--warning); }
.notification-record-content { display: grid; min-width: 0; gap: 0.65rem; }
.notification-record-meta { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(110px, 0.42fr) minmax(220px, 1.2fr); gap: 0.58rem; }
.notification-record-meta .platform-company-meta-item small { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.notification-record-meta .platform-company-meta-item.is-full { grid-column: 1 / -1; }
.notification-record-dates { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.notification-record-dates time { white-space: nowrap; }
.notification-safe-address { overflow-wrap: anywhere; word-break: normal; }

.inbound-email-page { gap: 0.9rem; }
.inbound-health-panel .dashboard-panel-header,
.inbound-records-panel .dashboard-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.inbound-healthy-state,
.inbound-empty-state { border: 1px dashed var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 82%, var(--blue-050)); }
.inbound-healthy-state { margin: 0 1rem 1rem; padding: 0.85rem 1rem; border-color: color-mix(in srgb, var(--success) 24%, var(--line)); background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.inbound-healthy-state strong { display: block; color: var(--blue-900); font-size: 0.96rem; }
.inbound-healthy-state p,
.inbound-empty-state p { margin: 0.12rem 0 0; color: var(--muted); font-size: 0.9rem; }
.inbound-empty-state { display: grid; justify-items: center; padding: 2rem 1rem; text-align: center; }
.inbound-empty-state h3 { margin: 0.75rem 0 0.2rem; font-size: 1.1rem; }
.inbound-record-list { display: grid; gap: 0.75rem; }
.inbound-record-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.85rem; padding: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--soft-shadow); }
.inbound-record-card.is-good { border-left-color: var(--success); }
.inbound-record-card.is-basic { border-left-color: var(--blue-600); }
.inbound-record-card.is-neutral { border-left-color: var(--line); }
.inbound-record-card.is-danger { border-left-color: var(--danger); }
.inbound-record-card.is-warning { border-left-color: var(--warning); }
.inbound-record-content { display: grid; min-width: 0; gap: 0.65rem; }
.inbound-record-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.55rem 0.8rem; min-width: 0; }
.inbound-record-badges,
.inbound-record-timing,
.inbound-record-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.42rem 0.65rem; min-width: 0; }
.inbound-record-timing { color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.inbound-record-timing time { white-space: nowrap; }
.inbound-record-flow { color: var(--muted); font-size: 0.94rem; font-weight: 650; }
.inbound-record-meta { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(110px, 0.45fr) minmax(220px, 1.4fr); gap: 0.58rem; }
.inbound-record-meta .platform-company-meta-item small { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.inbound-record-error { margin: 0; padding: 0.48rem 0.62rem; border-radius: 6px; background: color-mix(in srgb, var(--danger) 7%, var(--surface-soft)); color: var(--danger); font-size: 0.86rem; font-weight: 650; }
.inbound-record-error.is-neutral { background: color-mix(in srgb, var(--surface-soft) 78%, var(--surface)); color: var(--muted); }
.inbound-record-error.is-warning { background: color-mix(in srgb, var(--warning) 8%, var(--surface-soft)); color: var(--warning); }
.inbound-record-identifiers { color: var(--muted); font-size: 0.78rem; }
.inbound-record-identifiers summary { width: fit-content; cursor: pointer; font-weight: 650; }
.inbound-record-identifiers span { display: inline-flex; margin: 0.22rem 0.7rem 0 0; }
.inbound-record-actions { display: flex; align-items: flex-start; justify-content: flex-end; }
.inbound-record-actions .button.small { min-height: 32px; padding: 0.35rem 0.58rem; font-size: 0.82rem; }
.inbound-email-address { min-width: 0; overflow-wrap: anywhere; word-break: normal; }

@media (max-width: 960px) {
  .platform-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-company-header-actions { justify-content: flex-start; }
  .platform-company-toolbar .search-row { grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto; }
  .platform-company-toolbar .search-row .button:last-child { grid-column: 1 / -1; justify-self: start; }
  .inbound-record-card { grid-template-columns: 1fr; }
  .notification-record-meta,
  .inbound-record-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notification-record-meta .platform-company-meta-item.is-wide,
  .notification-record-meta .platform-company-meta-item.is-full,
  .inbound-record-meta .platform-company-meta-item.is-wide { grid-column: 1 / -1; }
  .inbound-record-actions { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .platform-admin-nav { display: grid; }
  .platform-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .platform-summary-card { min-height: 76px; }
  .platform-summary-card strong { font-size: 1.55rem; }
  .platform-company-list { padding: 0.75rem; }
  .platform-company-card { padding: 0.82rem; }
  .platform-company-heading { display: grid; }
  .platform-company-badges { justify-content: flex-start; }
  .platform-company-header-actions { justify-content: flex-start; }
  .platform-company-details-menu,
  .platform-company-manage-menu { position: static; }
  .platform-company-details-popover { position: static; grid-template-columns: minmax(0, 1fr); min-width: 0; margin-top: 0.45rem; }
  .platform-company-manage-menu[open] { flex-basis: 100%; }
  .platform-company-manage-menu .platform-company-admin-panel { position: static; min-width: 0; margin-top: 0.45rem; box-shadow: none; }
  .platform-company-header-actions .button,
  .platform-company-toolbar .search-row .button,
  .platform-company-form .button { width: 100%; justify-content: center; }
  .platform-company-toolbar .search-row { grid-template-columns: minmax(0, 1fr); }
  .platform-company-toolbar .search-row .button:last-child { grid-column: auto; justify-self: stretch; }
  .platform-company-pagination,
  .platform-company-pagination .customer-pagination-actions { align-items: stretch; flex-direction: column; }
  .inbound-record-meta { grid-template-columns: minmax(0, 1fr); }
  .notification-record-meta { grid-template-columns: minmax(0, 1fr); }
  .notification-record-meta .platform-company-meta-item.is-wide,
  .notification-record-meta .platform-company-meta-item.is-full,
  .inbound-record-meta .platform-company-meta-item.is-wide { grid-column: auto; }
  .inbound-healthy-state { margin: 0 0.75rem 0.75rem; align-items: flex-start; }
  .inbound-empty-state { padding: 1.5rem 0.85rem; }
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 30px;
  min-height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  font-size: 0.95rem;
  line-height: 1;
}

.drag-handle:hover,
.drag-handle:focus-visible {
  border-color: var(--line);
  background: var(--blue-050);
  color: var(--blue-900);
}

.drag-handle:active {
  cursor: grabbing;
}

[data-sortable-item].is-dragging {
  opacity: 0.45;
  border-color: var(--blue-600);
}

.reorder-status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.84rem;
}

@media (max-width: 1100px) {
  .workspace-grid {
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
    gap: 0.9rem;
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-metric-grid,
  .dashboard-secondary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-admin-page,
  .admin-dashboard {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .marketing-preview,
  .marketing-bottom-grid {
    max-width: 100%;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .queue-panel {
    max-height: none;
  }

  .ticket-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 0.45rem;
  }

  .ticket-list .ticket-card {
    margin-top: 0;
  }
}

.category-list:has(.inline-edit-card) .drag-handle,
.canned-response-list:has(.inline-edit-card) .drag-handle {
  display: none;
}

.inline-edit-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--blue-600);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-075) 45%, var(--surface)), var(--surface));
  box-shadow: var(--soft-shadow);
}

.inline-edit-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--soft-line);
}

.inline-edit-heading h3,
.inline-edit-heading .page-eyebrow {
  margin-bottom: 0;
}

.inline-edit-actions {
  justify-content: flex-end;
}

.empty-state {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-soft);
}

.error-title {
  color: var(--danger);
}

@media (max-width: 820px) {
  .site-nav,
  .page-shell {
    width: min(100% - 20px, 1160px);
  }

  .page-card,
  .styled-page-card,
  .queue-panel,
  .ticket-detail-panel,
  .dashboard-header,
  .dashboard-panel,
  .settings-card {
    border-radius: 8px;
  }

  .company-register-grid {
    grid-template-columns: 1fr;
  }

  .support-form-section {
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding: 0.95rem;
  }

  .support-form-grid-two,
  .support-form-grid-request {
    grid-template-columns: 1fr;
  }

  .support-form-wide {
    grid-column: auto;
  }

  .support-form-footer {
    align-items: stretch;
    padding-inline: 0.95rem;
  }

  .support-form-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-create-ticket-form .support-form-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .support-submit-button.support-button-full {
    width: 100%;
  }

  .workspace-header,
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding: 0.7rem 0;
  }

  .site-nav-top {
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
  }

  .site-nav-top .brand {
    min-width: 0;
  }

  .desktop-nav-actions {
    display: none;
  }

  .mobile-company-status {
    display: inline-flex;
    flex: 0 1 auto;
    max-width: 42vw;
    margin-left: auto;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
  }

  .site-nav-menu .company-status-pill {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: none;
  }

  .site-nav-menu {
    display: none;
    width: 100%;
  }

  .site-nav-menu.is-open {
    display: block;
    width: 100%;
    margin-top: 1rem;
    margin-left: 0;
    padding: 0 0 0.45rem;
    text-align: left;
  }

  .mobile-nav-actions {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    text-align: left;
  }

  .brand-logo {
    width: 148px;
    height: 36px;
  }

  .account-links {
    width: 100%;
    align-items: flex-start;
    gap: 0;
    justify-content: flex-start;
    margin-left: 0;
  }

  .site-nav-menu .nav-links,
  .site-nav-menu .account-links {
    display: grid;
    width: 100%;
    gap: 0.95rem;
  }

  .site-nav-menu .nav-links {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .site-nav-menu .nav-links {
    display: none;
  }

  .site-nav-menu .nav-links:has(a) {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .mobile-nav-actions .nav-link {
    display: flex;
    width: auto;
    min-height: auto;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--blue-900);
    box-shadow: none;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
  }

  .mobile-nav-actions .nav-account-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0.45rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--blue-700) 28%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 88%, var(--blue-050));
    color: var(--blue-900);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .mobile-nav-actions .nav-primary-link {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    background: var(--blue-700);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .mobile-nav-actions .nav-primary-link:hover {
    background: var(--blue-900);
    color: #fff;
    text-decoration: none;
  }

  .site-nav-menu .nav-links a:hover,
  .site-nav-menu .account-links > a:not(.button):hover,
  .mobile-nav-actions .nav-link:hover {
    background: var(--blue-050);
    color: var(--blue-900);
    transform: none;
  }

  .mobile-nav-actions .language-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    width: auto;
    margin-left: 0;
    padding: 0.1rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
  }

  .mobile-nav-actions .language-switcher a {
    display: inline-flex;
    width: auto;
    min-height: auto !important;
    padding: 0 !important;
    color: var(--muted);
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .mobile-nav-actions .language-switcher a.is-active {
    color: var(--blue-700) !important;
    font-weight: 700;
  }

  .mobile-nav-actions .language-switcher a + a::before {
    content: "\00b7";
    margin: 0 0.45rem;
    color: var(--muted);
    font-weight: 500;
  }

  .mobile-nav-actions .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    margin-left: 0;
    padding: 0;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1;
    box-shadow: none;
  }

  .site-nav-menu .company-status-pill {
    display: none;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    border-color: var(--blue-600);
    background: var(--blue-050);
    color: var(--blue-900);
  }

  .account-links .button,
  .account-links a:not(.button),
  .nav-links a,
  .theme-toggle,
  .language-switcher {
    max-width: 100%;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.86rem;
  }

  .site-footer .page-shell {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .marketing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2.25rem 0;
  }

  .marketing-hero::before {
    inset: 22% -1rem auto auto;
    width: 80vw;
    height: 48%;
  }

  .marketing-hero h1 {
    max-width: none;
    font-size: clamp(2.25rem, 10vw, 3.35rem);
  }

  .marketing-app-frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .marketing-app-sidebar {
    display: none;
  }

  .marketing-app-queue {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .marketing-workflow-frame {
    padding: 0.9rem;
  }

  .marketing-workflow-frame::before {
    inset: 5rem auto 1rem 2.35rem;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--blue-700), color-mix(in srgb, var(--blue-700), white 74%));
  }

  .marketing-workflow-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .marketing-workflow-card {
    min-height: 0;
  }

  .marketing-website-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .marketing-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-bottom-grid,
  .marketing-feature-grid {
    grid-template-columns: 1fr;
  }

  .marketing-info-panel + .marketing-info-panel {
    border-top: 1px solid var(--soft-line);
    border-left: 0;
  }

  .marketing-info-panel {
    min-height: auto;
  }

  .marketing-info-illustration {
    margin-top: 1.1rem;
    margin-bottom: -0.75rem;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .expert-workspace .workspace-header {
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .expert-workspace .workspace-header > div:first-child {
    width: 100%;
    text-align: center;
  }

  .expert-workspace .workspace-header h1 {
    font-size: 1.45rem;
    line-height: 1.1;
  }

  .expert-workspace .workspace-header .muted {
    display: none;
  }

  .expert-workspace .workspace-free-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .expert-workspace .workspace-free-banner .button {
    width: fit-content;
  }

  .expert-workspace.mobile-detail-mode .workspace-header-actions {
    display: none;
  }

  .workspace-header-actions > .button,
  .workspace-count-badge {
    width: fit-content;
  }

  .workspace-public-link {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
    box-shadow: none;
  }

  .workspace-public-link span {
    grid-column: auto;
    font-size: 0.72rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .workspace-public-link a {
    display: none;
  }

  .workspace-public-link .button {
    min-height: 30px;
    padding: 0.32rem 0.55rem;
    font-size: 0.76rem;
  }

  .workspace-count-badge {
    padding: 0.3rem 0.55rem;
    font-size: 0.76rem;
    box-shadow: none;
  }

  .workspace-grid {
    display: block;
  }

  .expert-workspace.mobile-detail-mode .queue-panel {
    display: none;
  }

  .expert-workspace.mobile-queue-mode .ticket-detail-panel {
    display: none;
  }

  .queue-panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem;
  }

  .queue-title-row {
    align-items: center;
    flex-direction: row;
    gap: 0.35rem;
  }

  .expert-workspace .queue-toolbar {
    grid-template-columns: 1fr;
    gap: 0.42rem;
    padding: 0.36rem 0.55rem 0.24rem;
  }

  .expert-workspace .queue-search .search-row {
    align-items: stretch;
  }

  .expert-workspace .queue-sort-form {
    width: 100%;
    gap: 0.22rem;
  }

  .expert-workspace .queue-sort-form select {
    width: 100%;
    min-width: 0;
  }

  .filter-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.24rem;
    overflow-x: auto;
    padding: 0.22rem 0.55rem 0.34rem;
    scrollbar-width: thin;
  }

  .filter-pills .filter-link {
    flex: 0 0 auto;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 25px;
    padding: 0.18rem 0.38rem;
    font-size: 0.68rem;
  }

  .filter-pill-label {
    white-space: nowrap;
  }

  .ticket-list {
    grid-template-columns: 1fr;
    gap: 0.22rem;
    padding: 0.35rem;
  }

  .ticket-list .ticket-card {
    padding: 0.52rem 0.58rem;
  }

  .ticket-subject {
    margin-bottom: 0.04rem;
    font-size: 0.9rem;
  }

  .queue-ticket-customer {
    font-size: 0.78rem;
  }

  .queue-ticket-status-line {
    margin-top: 0.2rem;
  }

  .queue-ticket-meta {
    gap: 0.12rem 0.36rem;
    margin-top: 0.18rem;
    font-size: 0.66rem;
  }

  .truncate {
    white-space: normal;
  }

  .queue-ticket-meta {
    flex-wrap: wrap;
  }

  .queue-ticket-meta span,
  .queue-ticket-meta time,
  .queue-ticket-customer,
  .staff-email,
  .customer-block-title,
  .category-description,
  .notification-email-body,
  .plan-limit-list dd {
    overflow-wrap: anywhere;
  }

  .queue-pagination {
    padding: 0.55rem 0.25rem 0.1rem;
  }

  .pagination-controls {
    width: 100%;
    justify-content: center;
  }

  .pagination-link,
  .pagination-ellipsis {
    min-width: 1.7rem;
    min-height: 1.7rem;
  }

  .expert-workspace .ticket-detail-panel {
    min-height: 0;
  }

  .expert-ticket-content {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.9rem;
  }

  .mobile-back-to-queue {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    margin: 0.75rem 0.85rem 0;
    color: var(--blue-700);
    font-size: 0.86rem;
    font-weight: 700;
  }

  .expert-ticket-header {
    order: 3;
    padding: 0.75rem 0.85rem;
  }

  .expert-ticket-top-actions {
    order: 1;
  }

  .expert-ticket-title-row {
    gap: 0.55rem;
  }

  .expert-ticket-title-row h2 {
    font-size: 1.05rem;
  }

  .expert-ticket-status {
    padding: 0.22rem 0.5rem;
    font-size: 0.72rem;
  }

  .expert-ticket-meta-desktop,
  .expert-closure-details-desktop {
    display: none;
  }

  .expert-ticket-details-mobile {
    display: block;
  }

  .expert-conversation {
    order: 5;
    padding: 0.75rem 0.85rem 0;
  }

  .expert-message {
    padding: 0.75rem 0.8rem;
  }

  .expert-ticket-content > .alert {
    order: 6;
    margin: 0.85rem;
  }

  .expert-reply-composer {
    order: 6;
  }

  .internal-note-composer {
    order: 7;
  }

  .expert-ticket-details-section {
    order: 4;
  }

  .expert-ticket-actions-section {
    order: 8;
  }

  .expert-ticket-content > .composer-card {
    margin: 0.85rem;
    padding: 0.85rem;
  }

  .expert-workspace .expert-ticket-content > .expert-reply-composer {
    padding: 0;
  }

  .expert-workspace .expert-reply-composer > summary {
    min-height: 36px;
    padding: 0.45rem 0.6rem;
  }

  .expert-workspace .expert-reply-form {
    gap: 0.45rem;
    padding: 0.55rem 0.6rem 0.65rem;
  }

  .expert-workspace .expert-reply-form > .field {
    margin: 0;
  }

  .expert-workspace .expert-reply-form > .field.canned-response-picker {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .expert-workspace .expert-reply-form > .field.canned-response-picker select {
    min-height: 34px;
  }

  .expert-workspace .expert-reply-composer textarea {
    display: block;
    width: 100%;
    height: 118px;
    min-height: 110px;
    padding: 0.5rem 0.6rem;
  }

  .expert-workspace .expert-reply-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
  }

  .expert-workspace .expert-reply-actions .compact-upload {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0.6rem 0.65rem;
    border-width: 1px;
    border-style: solid;
    border-radius: 7px;
  }

  .expert-workspace .expert-reply-actions .compact-upload label {
    margin: 0;
    font-size: 0.78rem;
  }

  .expert-workspace .expert-reply-actions .compact-upload p {
    grid-column: auto;
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .expert-workspace .expert-reply-actions .compact-upload input[type="file"] {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0.35rem;
    font-size: 0.78rem;
  }

  .expert-workspace .expert-reply-actions .compact-upload input[type="file"]::file-selector-button {
    padding: 0.28rem 0.48rem;
  }

  .expert-workspace .expert-reply-actions > .button {
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin: 0.65rem 0 0;
  }

  .internal-note-composer textarea {
    min-height: 82px;
  }

  .expert-mobile-section {
    margin: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .expert-mobile-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0.65rem 0.8rem;
    color: var(--blue-900);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
  }

  .expert-mobile-section > summary::after {
    color: var(--muted);
    content: "+";
    font-weight: 700;
  }

  .expert-mobile-section[open] > summary {
    border-bottom: 1px solid var(--soft-line);
  }

  .expert-mobile-section[open] > summary::after {
    content: "-";
  }

  .expert-ticket-meta {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0;
    padding: 0.75rem 0.85rem;
  }

  .expert-mobile-section .expert-ticket-meta {
    padding: 0.75rem 0.85rem;
  }

  .ticket-detail-panel .expert-closure-details {
    margin: 0 0.85rem 0.85rem;
  }

  .expert-ticket-top-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 0.7rem 0.85rem;
  }

  .expert-assignment-row {
    padding: 0.75rem 0.85rem 0;
  }

  .ticket-assignment-form {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-assignment-form select {
    width: 100%;
    min-width: 0;
  }

  .expert-ticket-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem 0.85rem 0.85rem;
  }

  .expert-ticket-actions form,
  .expert-ticket-actions .button,
  .ticket-assignment-form .button {
    width: 100%;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-menu {
    position: static;
  }

  .settings-tabs {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .settings-tab {
    white-space: normal;
  }

  .settings-list {
    grid-template-columns: 1fr;
  }

  .settings-list-general,
  .settings-list-ticket-settings {
    grid-template-columns: 1fr;
  }

  .settings-overview-grid {
    grid-template-columns: 1fr;
  }

  .setting-value {
    width: 100%;
  }

  .setting-row-compact {
    grid-template-columns: 1fr;
  }

  .setting-row-compact .setting-value {
    justify-self: stretch;
  }

  .settings-file-type-row,
  .settings-compact-list-inline {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-header {
    gap: 0.75rem;
    padding: 1rem;
  }

  .dashboard-header h1 {
    font-size: 1.45rem;
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .dashboard-metric-grid,
  .dashboard-secondary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .dashboard-stat-card,
  .dashboard-metric-card {
    gap: 0.25rem;
    padding: 0.7rem;
  }

  .dashboard-stat-card span,
  .dashboard-metric-card span {
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .dashboard-stat-card strong {
    font-size: 1.35rem;
  }

  .dashboard-metric-card strong {
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .dashboard-detail-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dashboard-panel-header {
    padding: 0.75rem 0.85rem;
  }

  .dashboard-panel-header h2 {
    font-size: 1rem;
  }

  .dashboard-table-wrap {
    overflow-x: visible;
  }

  .dashboard-table {
    min-width: 0;
    table-layout: fixed;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding: 0.55rem 0.65rem;
    font-size: 0.84rem;
  }

  .dashboard-table th {
    font-size: 0.68rem;
  }

  .dashboard-table .number-column {
    width: 4.4rem;
  }

  .dashboard-activity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
  }

  .dashboard-ticket-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.62rem 0.7rem;
  }

  .dashboard-ticket-meta,
  .dashboard-activity-meta {
    text-align: left;
  }

  .dashboard-volume-row {
    grid-template-columns: 60px minmax(0, 1fr) 34px;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
  }

  .ticket-assignment-form {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-assignment-form select {
    width: 100%;
  }

  .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .support-ticket-title-row,
  .support-section-heading,
  .expert-ticket-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .support-ticket-meta,
  .expert-ticket-meta {
    grid-template-columns: 1fr;
  }

  .support-ticket-header {
    padding: 0.7rem;
  }

  .support-ticket-brand {
    margin-bottom: 0.55rem;
    padding-bottom: 0.5rem;
  }

  .support-ticket-brand-logo {
    max-width: 112px;
    max-height: 38px;
  }

  .support-ticket-title-row h1 {
    font-size: 1rem;
  }

  .support-ticket-meta {
    gap: 0.35rem;
    margin-top: 0.45rem;
  }

  .support-conversation {
    padding: 0.7rem;
  }

  .support-message {
    padding: 0.55rem 0.6rem;
  }

  .support-message p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .support-reply-composer {
    margin: 0 0.7rem 0.8rem;
    gap: 0.45rem;
    padding: 0.55rem;
  }

  .support-reply-composer textarea {
    min-height: 130px;
  }

  .support-reply-composer .button {
    width: 100%;
    min-height: 38px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    justify-content: center;
    justify-self: stretch;
  }

  .message-context-note {
    display: flex;
    margin: 0.15rem 0 0;
  }

  .expert-ticket-actions,
  .section-heading-actions,
  .staff-actions,
  .customer-block-actions,
  .category-actions,
  .canned-response-actions,
  .button-row,
  .page-actions {
    align-items: stretch;
  }

  .expert-ticket-actions .button,
  .section-heading-actions .button,
  .staff-actions .button,
  .customer-block-actions .button,
  .category-actions .button,
  .canned-response-actions .button,
  .button-row .button,
  .page-actions .button {
    width: fit-content;
    max-width: 100%;
  }

  .expert-workspace .expert-ticket-actions .button,
  .expert-workspace .ticket-assignment-form .button {
    width: 100%;
  }

  .ticket-detail-panel {
    overflow: hidden;
  }

  .support-ticket-meta-wide,
  .expert-ticket-meta-wide {
    grid-column: auto;
  }

  .support-message .message-header,
  .expert-message .message-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .canned-fields,
  .canned-response-row,
  .category-language-grid,
  .branding-language-grid,
  .branding-color-grid,
  .branding-logo-card,
  .category-row,
  .staff-form-grid,
  .staff-limit-summary,
  .staff-row,
  .customer-block-grid,
  .customer-block-row {
    grid-template-columns: 1fr;
  }

  .canned-response-row,
  .category-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .canned-response-actions,
  .category-actions {
    grid-column: 2;
  }

  .branding-preview-panel {
    position: static;
  }

  .compact-field {
    max-width: none;
  }

  .canned-response-actions,
  .category-actions,
  .staff-actions,
  .customer-block-actions {
    justify-content: flex-start;
  }

  .inline-edit-heading {
    flex-direction: column;
  }

  .inline-edit-actions {
    justify-content: flex-start;
  }

  .settings-actions {
    justify-content: flex-start;
  }
}

.plan-feature-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan-feature-list li { display: flex; gap: 0.45rem; align-items: flex-start; color: var(--text); font-size: 0.88rem; line-height: 1.4; }
.plan-feature-list li i { flex: 0 0 auto; margin-top: 0.15rem; color: var(--blue-700); }
.plan-current-status,
.plan-checkout-row .plan-current-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 32px;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--blue-600) 35%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue-050) 65%, var(--surface));
  color: var(--blue-900);
  font-size: 0.8rem;
  font-weight: 750;
}

.branding-preview-actions > span strong { color: var(--text); font-size: 0.95rem; }
.branding-preview-actions > span small { font-size: 0.72rem; font-weight: 500; text-transform: none; }

.branding-section-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  z-index: 3;
  overflow-x: auto;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.branding-section-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.branding-section-tab:hover,
.branding-section-tab:focus-visible { background: var(--surface-subtle); }
.branding-section-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue-500) 35%, transparent); outline-offset: 2px; }
.branding-section-tab.is-active { background: var(--blue-700); color: #fff; }
.branding-preview-tab { display: none; margin-left: auto; }
[data-branding-panel][hidden] { display: none !important; }

@media (min-width: 1280px) {
  .branding-editor-layout { grid-template-columns: minmax(600px, 1.13fr) minmax(520px, 1fr); }
  .branding-editor-controls { min-width: 0; }
  .branding-preview-panel {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: none;
    overflow: visible;
  }
  .branding-form .settings-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 0.75rem;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(8px);
  }
}

.support-submit-button.support-button-auto {
  width: auto;
  inline-size: fit-content;
  max-width: 100%;
  justify-self: start;
  align-self: flex-start;
}

.embed-support-footer .support-submit-button.support-button-auto {
  flex: 0 0 auto;
}

.support-submit-button.support-button-full {
  width: 100%;
  inline-size: 100%;
}

/* Public contact */
.contact-page {
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  width: min(1040px, 100%);
  margin-inline: auto;
  padding: clamp(0.75rem, 2vw, 1.5rem) 0 clamp(1.25rem, 3vw, 2.5rem);
}

.contact-hero {
  display: grid;
  justify-items: center;
  padding: clamp(1.25rem, 3vw, 2.35rem) 0 0.5rem;
  text-align: center;
}

.contact-hero h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(2.55rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.contact-hero .lead {
  max-width: 680px;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 1.2rem);
  line-height: 1.55;
}

.contact-help {
  display: grid;
  gap: 0.9rem;
}

.contact-help > h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  text-align: center;
}

.contact-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-help-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.contact-help-icon,
.contact-customer-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--blue-050), var(--blue-075));
  color: var(--blue-700);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue-700) 12%, transparent);
}

.contact-help-icon {
  width: 2.65rem;
  height: 2.65rem;
  font-size: 1rem;
}

.contact-help-item h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.08rem;
  line-height: 1.3;
}

.contact-help-item p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.contact-customer-callout h2 {
  margin: 0;
  color: var(--blue-900);
}

.contact-form-embed {
  width: min(760px, 100%);
  margin-inline: auto;
}

.contact-customer-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: var(--soft-shadow);
}

.contact-customer-icon {
  width: 2.65rem;
  height: 2.65rem;
  font-size: 1rem;
}

.contact-customer-callout h2 {
  font-size: 1.08rem;
  line-height: 1.35;
}

.contact-customer-callout p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .contact-help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .contact-page {
    gap: 1.5rem;
  }

  .contact-hero {
    padding-top: 1rem;
  }

  .contact-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  .contact-help-item,
  .contact-customer-callout {
    padding: 0.9rem;
  }

}

/* Public FAQ */
.faq-page {
  display: grid;
  gap: clamp(2.8rem, 6vw, 5rem);
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: clamp(0.75rem, 2vw, 1.5rem) 0 clamp(1.25rem, 3vw, 2.5rem);
}

.faq-hero {
  display: grid;
  justify-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.8rem) 0 0.5rem;
  text-align: center;
}

.faq-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.faq-hero .lead {
  max-width: 680px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  line-height: 1.58;
}

.faq-groups {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.25rem);
  width: min(1040px, 100%);
  margin-inline: auto;
}

.faq-group {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.faq-group + .faq-group {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.faq-group-heading {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.faq-group-heading > span {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--blue-050), var(--blue-075));
  color: var(--blue-700);
  font-size: 1.22rem;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue-700) 12%, transparent);
}

.faq-group-heading h2 {
  max-width: 10ch;
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}

.faq-accordion {
  display: grid;
  gap: 0.72rem;
}

.faq-accordion-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.faq-accordion-item[open] {
  border-color: color-mix(in srgb, var(--blue-700) 32%, var(--line));
}

.faq-accordion-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 70px;
  padding: 1rem 1.1rem;
  color: var(--blue-900);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.32;
  list-style: none;
}

.faq-accordion-item summary::-webkit-details-marker {
  display: none;
}

.faq-accordion-item summary:hover {
  background: color-mix(in srgb, var(--blue-050) 48%, var(--surface));
}

.faq-accordion-item summary:focus-visible {
  border-radius: 7px;
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

.faq-accordion-item[open] summary {
  background: color-mix(in srgb, var(--blue-050) 64%, var(--surface));
}

.faq-accordion-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue-700) 24%, var(--line));
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue-700);
  font-size: 0.78rem;
  transition: transform 160ms ease, background-color 160ms ease;
}

.faq-accordion-item[open] .faq-accordion-icon {
  transform: rotate(45deg);
  background: var(--blue-700);
  color: #fff;
}

.faq-answer {
  border-top: 1px solid var(--soft-line);
}

.faq-answer p {
  max-width: 68ch;
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.faq-cta {
  width: min(1040px, 100%);
  margin-top: 0;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--blue-100) 58%, transparent), transparent 16rem),
    linear-gradient(135deg, var(--blue-050), var(--surface));
  box-shadow: var(--soft-shadow);
}

.faq-cta h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.faq-cta p {
  max-width: 620px;
  margin-top: 0.45rem;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .faq-page {
    gap: 3rem;
  }

  .faq-hero {
    padding-top: 1rem;
  }

  .faq-hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }

  .faq-group {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .faq-group-heading {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
  }

  .faq-group-heading > span {
    width: 2.8rem;
    height: 2.8rem;
  }

  .faq-group-heading h2 {
    max-width: none;
  }

  .faq-accordion-item summary {
    min-height: 64px;
    padding: 0.9rem;
    font-size: 16px;
  }

  .faq-answer p {
    padding: 0.9rem 0.9rem 1rem;
  }
}

@media (max-width: 520px) {
  .faq-hero .marketing-pill {
    margin-bottom: 0.9rem;
  }

  .faq-accordion-item summary {
    gap: 0.7rem;
  }

  .faq-accordion-icon {
    width: 1.85rem;
    height: 1.85rem;
  }
}

/* Conversion-focused public homepage */
.home-page {
  display: grid;
  gap: clamp(3.5rem, 7vw, 6.5rem);
  width: min(1240px, 100%);
  margin-inline: auto;
  padding: clamp(1rem, 2.8vw, 2.4rem) 0 clamp(1.5rem, 3vw, 3rem);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  gap: clamp(2.25rem, 5vw, 5rem);
  align-items: center;
  min-height: 610px;
}

.home-hero::before {
  position: absolute;
  inset: -2rem -7vw auto 42%;
  width: min(760px, 58vw);
  height: 540px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 24%, color-mix(in srgb, var(--blue-100) 62%, transparent), transparent 23rem),
    repeating-radial-gradient(ellipse at 58% 18%, color-mix(in srgb, var(--blue-600) 16%, transparent) 0 1px, transparent 1px 18px);
  content: "";
  opacity: 0.52;
  pointer-events: none;
  z-index: -1;
}

.home-hero-copy {
  max-width: 610px;
}

.home-hero h1 {
  max-width: 15.5ch;
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(2.65rem, 4.3vw, 4.05rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.01;
  letter-spacing: -0.035em;
  overflow-wrap: normal;
}

.home-hero h1 span,
.home-hero h1 strong {
  display: block;
}

.home-hero h1 strong {
  color: #075ff0;
}

:root[data-theme="dark"] .home-hero h1 strong {
  color: var(--blue-700);
}

.home-hero .lead {
  max-width: 590px;
  margin: 1.25rem 0 1.65rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.58;
}

.home-flow-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.92fr) auto minmax(210px, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.45rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 4%, color-mix(in srgb, var(--blue-100) 58%, transparent), transparent 18rem),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow: 0 24px 60px rgba(8, 61, 120, 0.16);
}

.home-flow-browser,
.home-flow-ticket {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.home-flow-window-bar {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--soft-line);
  background: var(--surface-soft);
}

.home-flow-window-bar > span {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue-100);
}

.home-flow-window-bar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.home-flow-form {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
}

.home-flow-form-heading,
.home-flow-ticket-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.home-flow-form-heading > span,
.home-flow-ticket-heading > span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--blue-700);
}

.home-flow-form-heading > div,
.home-flow-ticket-heading > div {
  display: grid;
  min-width: 0;
}

.home-flow-form-heading small,
.home-flow-ticket-heading small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.15;
}

.home-flow-form-heading strong,
.home-flow-ticket-heading strong {
  color: var(--blue-900);
  font-size: 0.88rem;
  line-height: 1.2;
}

.home-flow-form label {
  min-height: 2.45rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.76rem;
}

.home-flow-form label.is-message {
  min-height: 4.2rem;
}

.home-flow-submit {
  justify-self: end;
  padding: 0.46rem 0.68rem;
  border-radius: 7px;
  background: var(--blue-700);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.home-flow-connector {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  width: 74px;
  color: var(--blue-700);
  text-align: center;
}

.home-flow-connector span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue-700) 30%, var(--line));
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.home-flow-connector strong {
  font-size: 0.7rem;
  line-height: 1.2;
}

.home-flow-ticket {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
}

.home-flow-ticket-heading b {
  display: inline-grid;
  min-width: 2rem;
  min-height: 1.75rem;
  margin-left: auto;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-700);
  color: #fff;
  font-size: 0.7rem;
}

.home-flow-ticket-subject {
  display: grid;
  gap: 0.16rem;
  padding: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--blue-700) 32%, var(--line));
  border-radius: 7px;
  background: var(--blue-050);
}

.home-flow-ticket-subject small,
.home-flow-ticket dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.home-flow-ticket-subject strong {
  color: var(--blue-900);
  font-size: 0.88rem;
}

.home-flow-ticket dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.home-flow-ticket dl > div {
  padding: 0.55rem;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.home-flow-ticket dd {
  margin: 0.1rem 0 0;
  color: var(--blue-900);
  font-size: 0.75rem;
  font-weight: 700;
}

.home-flow-reply {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.62rem;
  border-radius: 7px;
  background: color-mix(in srgb, var(--success) 9%, var(--surface));
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 700;
}

.home-flow-reply i {
  color: var(--success);
}

.home-section {
  width: min(1140px, 100%);
  margin-inline: auto;
}

.home-section-heading {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.home-section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.home-section-heading h2,
.home-proof h2,
.home-final-cta h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-steps::before {
  position: absolute;
  top: 2.35rem;
  right: 15%;
  left: 15%;
  height: 1px;
  background: color-mix(in srgb, var(--blue-700) 24%, var(--line));
  content: "";
}

.home-steps article {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, var(--blue-050));
  box-shadow: var(--soft-shadow);
}

.home-step-number {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--blue-700) 22%, transparent);
}

.home-steps h3,
.home-proof-points h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.08rem;
  line-height: 1.25;
}

.home-steps p,
.home-proof-points p {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.home-comparison {
  width: min(1040px, 100%);
}

.home-comparison .marketing-comparison-card {
  min-height: 260px;
}

.home-comparison .marketing-comparison-list li {
  font-size: 1rem;
}

.home-proof {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: min(1200px, 100%);
  padding: clamp(1.2rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-soft));
  box-shadow: var(--soft-shadow);
}

.home-proof-intro {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.home-proof-points {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.4rem;
}

.home-proof-points article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.home-proof-points article > span {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--blue-700);
}

.home-features-link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1.45rem;
  color: var(--blue-700);
  font-size: 1rem;
  font-weight: 700;
}

.home-features-link:hover {
  gap: 0.7rem;
}

.home-workspace-preview {
  grid-template-columns: 108px minmax(165px, 0.86fr) minmax(220px, 1.14fr);
  min-height: 430px;
  box-shadow: 0 22px 50px rgba(8, 61, 120, 0.15);
}

.home-workspace-preview .marketing-app-sidebar {
  padding-inline: 0.62rem;
}

.home-workspace-preview .marketing-app-sidebar img {
  width: 96px;
}

.home-workspace-preview .marketing-app-sidebar span {
  padding-inline: 0.42rem;
  font-size: 0.7rem;
}

.home-workspace-preview .marketing-app-queue {
  padding: 0.85rem;
}

.home-workspace-preview .marketing-app-detail {
  padding: 1.15rem;
}

.home-workspace-preview .marketing-app-detail h3 {
  margin: 0 0 1rem;
  color: var(--blue-900);
  font-size: 1.05rem;
  line-height: 1.25;
}

.home-workspace-preview .marketing-message strong {
  color: var(--blue-900);
}

.home-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1080px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.home-trust-strip article {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  min-height: 92px;
  padding: 1.1rem 1.3rem;
}

.home-trust-strip article + article {
  border-left: 1px solid var(--soft-line);
}

.home-trust-strip span {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--blue-700);
}

.home-trust-strip strong {
  color: var(--blue-900);
  font-size: 1rem;
  line-height: 1.3;
}

.home-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid color-mix(in srgb, var(--blue-600) 52%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.16), transparent 17rem),
    linear-gradient(135deg, #123b80, #0868e9);
  box-shadow: 0 20px 50px rgba(8, 61, 120, 0.2);
}

.home-final-cta .page-eyebrow,
.home-final-cta h2,
.home-final-cta > div > p:not(.page-eyebrow) {
  color: #fff;
}

.home-final-cta h2 {
  max-width: 720px;
}

.home-final-cta > div > p:not(.page-eyebrow) {
  max-width: 700px;
  margin: 0.75rem 0 0;
  font-size: 1.06rem;
  line-height: 1.5;
  opacity: 0.88;
}

.home-final-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.home-final-cta .button,
:root[data-theme="dark"] .home-final-cta .button {
  border-color: #fff;
  background: #fff;
  color: #164b9d;
}

.home-final-cta .button:hover,
:root[data-theme="dark"] .home-final-cta .button:hover {
  border-color: #fff;
  background: #edf5ff;
  color: #103b7e;
}

.home-final-cta .button.secondary,
:root[data-theme="dark"] .home-final-cta .button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.home-final-cta .button.secondary:hover,
:root[data-theme="dark"] .home-final-cta .button.secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .home-hero h1 {
    max-width: 18ch;
  }

  .home-flow-preview {
    width: min(800px, 100%);
    margin-inline: auto;
  }

  .home-proof {
    grid-template-columns: 1fr;
  }

  .home-proof-copy {
    max-width: 760px;
  }

  .home-workspace-preview {
    width: min(780px, 100%);
    margin-inline: auto;
  }

  .home-final-cta {
    grid-template-columns: 1fr;
  }

  .home-final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .home-page {
    gap: 3.6rem;
  }

  .home-hero {
    gap: 1.8rem;
  }

  .home-hero::before {
    inset: 18% -1rem auto auto;
    width: 86vw;
    height: 480px;
  }

  .home-hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 10vw, 3.5rem);
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-steps::before {
    top: 2rem;
    bottom: 2rem;
    left: 2.4rem;
    width: 1px;
    height: auto;
  }

  .home-comparison .marketing-comparison-grid {
    grid-template-columns: 1fr;
  }

  .home-comparison .marketing-comparison-transition {
    transform: rotate(90deg);
    justify-self: center;
  }

  .home-comparison .marketing-comparison-card {
    min-height: 0;
  }

  .home-workspace-preview {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-workspace-preview .marketing-app-sidebar {
    display: none;
  }

  .home-workspace-preview .marketing-app-queue {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-trust-strip {
    grid-template-columns: 1fr;
  }

  .home-trust-strip article {
    min-height: 76px;
  }

  .home-trust-strip article + article {
    border-top: 1px solid var(--soft-line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .home-flow-preview {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0.8rem;
  }

  .home-flow-connector {
    width: auto;
  }

  .home-flow-connector span {
    transform: rotate(90deg);
  }

  .home-flow-form,
  .home-flow-ticket {
    padding: 0.8rem;
  }

  .home-proof {
    padding: 1rem;
  }

  .home-final-cta {
    gap: 1.25rem;
    padding: 1.25rem;
  }
}

.marketing-trust-note > .marketing-trust-icon {
  display: inline-flex;
  width: 4.8rem;
  height: 4.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--blue-050), var(--blue-075));
  color: var(--blue-700);
  font-size: 2rem;
  line-height: 1;
}

.marketing-trust-note > .marketing-trust-icon > i {
  display: block;
  font-size: 1em;
  line-height: 1;
}

.expert-workspace .expert-reply-form {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
}

.expert-workspace .expert-reply-form .expert-reply-body-field {
  display: grid;
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.expert-workspace .expert-reply-form .expert-reply-body-field textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 150px;
}

@media (max-width: 767px) {
  .expert-workspace .expert-reply-form .expert-reply-body-field textarea {
    min-height: 132px;
  }
}

@media (max-width: 520px) {
  .settings-compact-list-inline .attachment-limit-setting.setting-row-compact {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .settings-compact-list-inline .attachment-limit-setting .setting-value {
    width: auto;
    max-width: none;
    justify-self: end;
  }

  .settings-compact-list-inline .attachment-limit-setting .setting-input-with-unit {
    display: inline-flex;
    width: auto;
    max-width: none;
    gap: 0.38rem;
  }

  .settings-compact-list-inline .attachment-limit-setting .setting-value input,
  .settings-compact-list-inline .attachment-limit-setting .setting-input-with-unit input {
    box-sizing: border-box;
    width: 4.5rem;
    min-width: 4.5rem;
    max-width: 4.5rem;
    padding-inline: 0.5rem;
  }

  .settings-compact-list-inline .setting-row-compact {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .settings-compact-list-inline .setting-row-compact .setting-value,
  .settings-compact-list-inline .setting-input-with-unit {
    width: fit-content;
    max-width: 8.75rem;
  }

  .settings-compact-list-inline .setting-input-with-unit {
    display: inline-grid;
    grid-template-columns: 4.6rem auto;
    justify-content: end;
  }

  .settings-compact-list-inline .setting-input-with-unit input {
    width: 4.6rem;
    min-width: 4.6rem;
    max-width: 4.6rem;
    padding-inline: 0.55rem;
  }
}

.staff-create-ticket-form .support-form-submit .button {
  width: auto;
  min-width: 0;
  min-height: 2.2rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.84rem;
}

.staff-create-ticket-form .support-form-submit .support-submit-button {
  min-width: 9rem;
}

.profile-page .profile-header h1 {
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  line-height: 1.12;
}

.profile-page .profile-card-header h2 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.profile-page .profile-card-header p {
  font-size: 0.8rem;
  line-height: 1.4;
}

.installation-page .installation-option-copy h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.installation-page .installation-methods {
  gap: 0.65rem;
}

@media (max-width: 820px) {
  .installation-page .installation-how-list,
  .installation-page .installation-flow-list,
  .installation-page .installation-use-list {
    grid-template-columns: 1fr;
  }

  .installation-page .installation-flow-list {
    gap: 0.5rem;
  }

  .installation-page .installation-flow-list li:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: auto;
    bottom: -0.48rem;
    left: 1.05rem;
    transform: none;
    font-size: 0.78rem;
  }
}

.admin-dashboard .dashboard-header {
  padding: 0.95rem 1.1rem;
}

.admin-dashboard .dashboard-header h1 {
  font-size: clamp(1.65rem, 2vw, 2rem);
  line-height: 1.12;
}

.admin-dashboard .dashboard-header .muted {
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-dashboard .dashboard-stat-card,
.admin-dashboard .dashboard-metric-card {
  min-height: 0;
}

.admin-dashboard .dashboard-stat-card strong {
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
}

.admin-dashboard .dashboard-panel-header {
  padding: 0.75rem 0.9rem;
}

.admin-dashboard .dashboard-panel-header h2 {
  font-size: 1.05rem;
}

.admin-dashboard .dashboard-ticket-row > div:first-child,
.admin-dashboard .dashboard-activity-row > div:first-child {
  min-width: 0;
}

.admin-dashboard .dashboard-ticket-row strong,
.admin-dashboard .dashboard-activity-row strong {
  font-size: 0.95rem;
  line-height: 1.3;
}

.admin-dashboard .dashboard-ticket-meta time,
.admin-dashboard .dashboard-activity-meta time {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-dashboard .dashboard-summary-grid,
  .admin-dashboard .dashboard-metric-grid,
  .admin-dashboard .dashboard-secondary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard .dashboard-ticket-row,
  .admin-dashboard .dashboard-activity-row {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-dashboard .dashboard-ticket-meta,
  .admin-dashboard .dashboard-activity-meta {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .admin-dashboard .dashboard-summary-grid,
  .admin-dashboard .dashboard-metric-grid,
  .admin-dashboard .dashboard-secondary-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1279px) {
  .branding-preview-tab { display: inline-flex; align-items: center; }
  .branding-preview-panel { display: none; }
  .branding-preview-panel.is-mobile-visible { display: block; }
  .branding-section-nav { overflow-x: auto; scrollbar-width: thin; }
  .branding-section-tab { flex: 0 0 auto; }
  .support-form-builder-header { display: grid; }
}
.branding-pro-settings,
.branding-pro-fields { border-color: color-mix(in srgb, var(--blue-600) 42%, var(--line)); }
.branding-pro-settings.is-locked,
.branding-pro-fields.is-locked {
  border-style: dashed;
  background: color-mix(in srgb, var(--blue-050) 30%, var(--surface));
}
.branding-pro-settings.is-locked :disabled,
.branding-pro-fields.is-locked :disabled {
  opacity: 0.72;
  color: var(--muted);
  cursor: not-allowed;
}
.branding-compact-grid { display: grid; gap: 0.65rem; grid-template-columns: 1fr 1fr; }
.branding-option-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.branding-fields-standard { display: grid; gap: 0.85rem; padding: 0.95rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.branding-fields-panel { display: grid; gap: 1rem; min-width: 0; }
.branding-dependent-option { display: grid; gap: 0.5rem; }
.branding-dependent-child { margin-left: 1.5rem; padding-left: 0.75rem; border-left: 2px solid var(--soft-line); transition: opacity 0.15s ease; }
.branding-dependent-child.is-disabled { opacity: 0.5; }
.branding-pro-fields { display: grid; gap: 1rem; min-width: 0; padding: 1rem; border: 1px solid color-mix(in srgb, var(--blue-600) 42%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--blue-050) 42%, var(--surface)); }
.branding-pro-fields.is-locked { border-style: dashed; }
.branding-pro-fields-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; min-width: 0; }
.branding-pro-fields-heading > div { min-width: 0; }
.branding-pro-fields-heading h3,
.branding-pro-fields-heading p { margin: 0; }
.branding-pro-fields-heading p { margin-top: 0.25rem; color: var(--muted); font-size: 0.88rem; }
.branding-pro-badge { flex: 0 0 auto; max-width: 100%; padding-inline: 0.7rem; background: var(--blue-700); color: #fff; white-space: nowrap; }
.branding-pro-availability {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.4;
}
.branding-pro-availability > i { color: var(--blue-700); }
.branding-pro-availability .button { margin-left: auto; }
.branding-field-order-editor { display: grid; gap: 0.7rem; }
.branding-field-order-list { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.branding-field-order-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto auto; gap: 0.55rem; align-items: center; min-width: 0; padding: 0.55rem 0.65rem; border: 1px solid var(--soft-line); border-radius: 8px; background: var(--surface); }
.branding-field-order-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.branding-field-order-actions { display: flex; gap: 0.35rem; }
.branding-field-order-actions .button { min-width: 36px; padding-inline: 0.55rem; }
[data-field-hidden-badge][hidden] { display: none !important; }
.branding-label-matrix {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.branding-label-matrix-head,
.branding-label-matrix-row {
  display: grid;
  grid-template-columns: minmax(5.75rem, 0.7fr) repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}

.branding-label-matrix-head {
  padding: 0 0.45rem 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.branding-label-matrix-row {
  padding: 0.55rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
}

.branding-label-matrix-row h5 {
  margin: 0;
  color: var(--blue-900);
  font-size: 0.98rem;
}

.branding-label-matrix-row .field { margin: 0; }
.branding-label-matrix-row label { display: none; }
.branding-label-matrix-row input { min-width: 0; }
.branding-label-matrix-head span:nth-child(4),
.branding-label-matrix-row .field:nth-of-type(3) {
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}
.branding-installation-panel { display: grid; gap: 0.85rem; }
.branding-installation-card { display: grid; gap: 0.8rem; min-width: 0; padding: 0.95rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.branding-installation-value,
.branding-installation-code { max-width: 100%; margin: 0; padding: 0.75rem; overflow: auto; border: 1px solid var(--soft-line); border-radius: 8px; background: var(--surface); color: var(--text); }
.branding-installation-value code { display: block; padding: 0; background: transparent; white-space: normal; overflow-wrap: anywhere; }
.branding-installation-code code { padding: 0; background: transparent; white-space: pre-wrap; overflow-wrap: anywhere; }
.branding-installation-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.branding-installation-actions [data-copy-text] {
  min-width: 12rem;
}

.support-logo-left { margin-left: 0; margin-right: auto; }
.support-logo-center { margin-left: auto; margin-right: auto; }
.support-logo-right { margin-left: auto; margin-right: 0; }
.support-logo-small { max-height: 48px; max-width: 140px; }
.support-logo-medium { max-height: 72px; max-width: 220px; }
.support-logo-large { max-height: 104px; max-width: 320px; }
.support-spacing-compact.support-new-form { gap: 0.75rem; }
.support-spacing-compact .support-form-section { gap: 0.8rem; padding: 0.85rem; }
.support-spacing-compact .support-form-grid { gap: 0.55rem 0.65rem; }
.support-spacing-compact .embed-field-grid { gap: 0.55rem 0.65rem; }
.support-spacing-compact .field { gap: 0.22rem; }
.support-spacing-compact.embed-support-form { gap: 0.65rem; padding: 0.85rem; }
.support-spacing-compact label,
.support-spacing-compact.embed-support-form label { margin-bottom: 0.18rem; }
.support-spacing-compact input,
.support-spacing-compact select,
.support-spacing-compact textarea,
.support-spacing-compact.embed-support-form input,
.support-spacing-compact.embed-support-form select,
.support-spacing-compact.embed-support-form textarea {
  min-height: 38px;
  padding: 0.42rem 0.55rem;
}
.support-spacing-comfortable.support-new-form { gap: 1.25rem; }
.support-spacing-comfortable .support-form-section { gap: 1.45rem; padding: 1.25rem; }
.support-spacing-comfortable .support-form-grid { gap: 1rem 1.1rem; }
.support-spacing-comfortable .embed-field-grid { gap: 1rem 1.1rem; }
.support-spacing-comfortable .field { gap: 0.45rem; }
.support-spacing-comfortable.embed-support-form { gap: 1.1rem; padding: 1.2rem; }
.support-spacing-comfortable label,
.support-spacing-comfortable.embed-support-form label { margin-bottom: 0.42rem; }
.support-spacing-comfortable input,
.support-spacing-comfortable select,
.support-spacing-comfortable textarea,
.support-spacing-comfortable.embed-support-form input,
.support-spacing-comfortable.embed-support-form select,
.support-spacing-comfortable.embed-support-form textarea {
  min-height: 48px;
  padding: 0.7rem 0.8rem;
}
.support-layout-one-column .support-form-grid,
.support-layout-one-column .embed-field-grid { grid-template-columns: minmax(0, 1fr); }
.support-button-full { width: 100%; }
.support-privacy-link,
.support-powered-by { font-size: 0.875rem; color: var(--support-text-color); opacity: 0.78; }
.support-powered-by { margin-bottom: 0; text-align: center; }

.login-password-label { display:flex; justify-content:space-between; gap:1rem; align-items:baseline; }
.login-password-label a { font-size:.82rem; color:var(--muted); }
.password-input-wrap { position:relative; }
.password-input-wrap input { padding-right:4.5rem; }
.password-toggle { position:absolute; right:.4rem; top:50%; transform:translateY(-50%); border:0; background:transparent; color:var(--blue-700); font-weight:700; cursor:pointer; }
.login-register-prompt { margin:.25rem 0 0; text-align:center; color:var(--muted); }
.login-card { width:100%; max-width:580px; margin-inline:auto; }
.login-card .styled-page-header { padding:1.2rem 1.3rem; }
.login-card .styled-page-body { padding:1.2rem 1.3rem; }
.login-form { gap:.58rem; }
.login-form .field { margin-bottom:0; }
.login-form .checkbox-field { margin:.15rem 0; }
.login-form .button-row { margin-top:.05rem; }
.login-form .login-register-prompt { margin-top:.1rem; }
.profile-page { display:grid; gap:.75rem; }
.profile-header { padding-block:.45rem; }
.profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:.85rem; }
.profile-card { display:grid; gap:.72rem; padding:.85rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--soft-shadow); }
.profile-card-header { padding-bottom:.55rem; border-bottom:1px solid var(--soft-line); }
.profile-card-header h2 { margin:0; font-size:1.05rem; }
.profile-card-header p { margin:.22rem 0 0; color:var(--muted); font-size:.8rem; line-height:1.4; }
.profile-form { gap:.6rem; }
.profile-form .field { gap:.28rem; }
.profile-readonly-value { min-height:38px; padding:.52rem .65rem; border:1px solid var(--soft-line); border-radius:8px; background:var(--surface-soft); color:var(--ink); overflow-wrap:anywhere; }
.profile-field-note { margin:.22rem 0 0; color:var(--muted); font-size:.74rem; line-height:1.35; }
.profile-account-info { margin-top:.05rem; padding:.62rem .68rem; border:1px solid var(--soft-line); border-radius:8px; background:var(--surface-soft); }
.profile-account-info h3 { margin:0 0 .45rem; font-size:.84rem; }
.profile-account-info dl { display:grid; gap:.38rem; margin:0; }
.profile-account-info dl > div { display:grid; grid-template-columns:minmax(6.4rem,.48fr) minmax(0,1fr); gap:.55rem; align-items:baseline; }
.profile-account-info dt { color:var(--muted); font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.025em; }
.profile-account-info dd { margin:0; color:var(--ink); font-weight:700; overflow-wrap:anywhere; }
.profile-actions { display:flex; justify-content:flex-start; padding-top:.05rem; }
.profile-actions .button { width:auto; min-height:38px; padding-inline:.85rem; }
.profile-card .password-input-wrap input { min-height:38px; }
.profile-card .password-toggle { min-height:30px; padding:.2rem .45rem; }
.account-menu { position:relative; }
.account-menu summary { display:flex; align-items:center; gap:.42rem; max-width:10.5rem; padding:.38rem .52rem; cursor:pointer; list-style:none; }
.account-menu summary span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-menu-popover { position:absolute; z-index:50; right:0; top:calc(100% + .4rem); display:grid; min-width:13.5rem; padding:.4rem; border:1px solid var(--line); border-radius:8px; background:var(--surface); box-shadow:var(--shadow); }
.account-menu-popover a,.account-menu-popover button { display:flex; width:100%; padding:.55rem .65rem; border:0; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.account-menu-popover form { margin:0; }
.mobile-account-actions { display:none; }
@media (max-width:820px) { .profile-grid{grid-template-columns:1fr}.account-menu{display:none}.mobile-account-actions{display:grid;gap:.25rem;width:100%}.mobile-account-actions a,.mobile-account-actions button{display:flex;width:100%;min-height:42px;align-items:center;padding:.55rem;border:0;background:transparent;color:var(--ink)} }
@media (max-width:520px) { .profile-card{padding:.78rem}.profile-account-info dl > div{grid-template-columns:1fr;gap:.12rem}.profile-actions .button{width:100%} }
@media (max-width:620px) { .login-card{max-width:100%}.login-card .styled-page-header,.login-card .styled-page-body{padding:1.1rem} }

.expert-workspace .expert-ticket-header {
  border-bottom: 1px solid var(--soft-line);
}

.expert-workspace .expert-ticket-title-row h2 {
  color: var(--blue-950);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
}

.expert-workspace .expert-ticket-meta dt {
  color: var(--muted);
  font-weight: 700;
}

.expert-workspace .expert-ticket-meta dd {
  color: var(--ink);
  font-weight: 650;
}

.expert-workspace .expert-conversation {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--soft-line);
  background: color-mix(in srgb, var(--surface-soft) 38%, transparent);
}

.expert-message-sender {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.expert-message-sender-marker {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 1.75rem;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue-600) 14%, var(--surface));
  color: var(--blue-700);
  font-size: 0.7rem;
}

.expert-message.staff-message .expert-message-sender-marker {
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  color: var(--success);
}

.expert-message.internal .expert-message-sender-marker {
  background: color-mix(in srgb, var(--warning) 14%, var(--surface));
  color: color-mix(in srgb, var(--warning) 72%, var(--ink));
}

.expert-message-sender-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.expert-message-sender-name strong,
.support-message .message-header strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.expert-workspace .message-attachments .attachment-card {
  max-width: min(100%, 28rem);
}

.expert-workspace .message-attachments .attachment-card span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-workspace .internal-note-composer {
  border-style: solid;
  border-color: color-mix(in srgb, var(--blue-600) 18%, var(--line));
  background: color-mix(in srgb, var(--blue-050) 42%, var(--surface));
}

.expert-workspace .internal-note-composer[open] > summary {
  border-bottom-style: solid;
  border-bottom-color: var(--soft-line);
}

.expert-workspace .internal-note-composer textarea {
  border-color: var(--line);
  background: var(--surface);
}

@media (max-width: 768px) {
  .support-portal-customizer-card { grid-template-columns: auto minmax(0, 1fr); }
  .support-portal-customizer-card > .button { grid-column: 1 / -1; width: 100%; }
  .branding-installation-actions { display: grid; grid-template-columns: 1fr; }
  .branding-installation-actions .button { width: 100%; }
  .marketing-comparison-grid { grid-template-columns: 1fr; }
  .marketing-comparison-transition {
    justify-self: center;
    transform: rotate(90deg);
  }
  body > .page-shell.support-form-builder-shell { width: min(1420px, calc(100% - 32px)); }
  .support-form-builder-header-actions { display: grid; width: 100%; grid-template-columns: 1fr; }
  .support-form-builder-header-actions .button { width: 100%; }
  .branding-compact-grid,
  .branding-option-grid { grid-template-columns: 1fr; }
  .branding-label-matrix-head { display: none; }
  .branding-label-matrix-row { grid-template-columns: 1fr; gap: 0.7rem; }
  .branding-label-matrix-row::before { display: none; }
  .branding-label-matrix-row label { display: block; }
  .branding-label-matrix-row .field:nth-of-type(3) {
    grid-column: auto;
    padding-top: 0.9rem;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .branding-field-order-list li { grid-template-columns: 1.7rem minmax(0, 1fr) auto; }
  .branding-field-order-list li > .badge { grid-column: 2; justify-self: start; }
  .branding-field-order-actions { grid-column: 3; grid-row: 1 / span 2; }
  .branding-section-nav { position: static; }
  .support-layout-two-column .support-form-grid { grid-template-columns: minmax(0, 1fr); }
  .mobile-back-to-queue {
    min-height: 44px;
    margin: 0.4rem 1rem 0;
    padding-block: 0.35rem;
  }

  .expert-ticket-header {
    padding: 0.65rem 1rem;
  }

  .expert-ticket-title-row {
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
  }

  .expert-ticket-title-row > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .expert-ticket-details-section,
  .expert-mobile-section,
  .expert-ticket-content > .composer-card {
    margin-inline: 1rem;
  }

  .expert-mobile-section .expert-ticket-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0.35rem 1rem 0.55rem;
  }

  .expert-mobile-section .expert-ticket-meta > div {
    min-width: 0;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .expert-mobile-section .expert-ticket-meta > div:last-child {
    border-bottom: 0;
  }

  .expert-mobile-section .expert-ticket-meta dt {
    margin-bottom: 0.2rem;
  }

  .expert-mobile-section .expert-ticket-meta dd,
  .expert-mobile-section .expert-ticket-meta a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .expert-conversation {
    width: 100%;
    padding-inline: 1rem;
    box-sizing: border-box;
  }

  .expert-message-list,
  .expert-message,
  .expert-reply-form {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .expert-reply-composer {
    width: auto;
    max-width: none;
    box-sizing: border-box;
  }
}

@media (min-width: 821px) {
  .expert-workspace .expert-ticket-title-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
  }

  .expert-workspace .expert-ticket-title-row > div {
    min-width: 0;
  }

  .expert-workspace .expert-ticket-top-actions {
    gap: 0.35rem 0.45rem;
  }

  .expert-workspace .expert-ticket-actions {
    flex: 1 1 auto;
  }

  .expert-workspace .expert-ticket-actions .close-ticket-action-first {
    margin-left: auto;
  }

  .expert-workspace .expert-ticket-actions .button.danger {
    border-color: color-mix(in srgb, var(--danger) 18%, var(--line));
    background: transparent;
    color: color-mix(in srgb, var(--danger) 62%, var(--muted));
    font-size: 0.72rem;
    font-weight: 600;
  }

  .expert-workspace .expert-reply-composer textarea {
    height: 76px;
    min-height: 76px;
  }

  .expert-workspace .expert-reply-actions {
    align-items: flex-end;
  }

  .expert-workspace .expert-reply-actions .compact-upload {
    flex: 0 1 23rem;
    max-width: 23rem;
    padding-block: 0.2rem;
  }

  .expert-workspace .expert-reply-actions > .button {
    align-self: flex-end;
  }

  .expert-workspace .ticket-list .ticket-card {
    margin-top: 0.06rem;
    padding-block: 0.38rem;
  }
}

.expert-workspace .support-section-heading {
  margin-bottom: 0.75rem;
}

.expert-workspace .queue-ticket-meta {
  color: color-mix(in srgb, var(--muted) 78%, var(--ink));
}

.expert-workspace .support-section-heading > .muted {
  color: color-mix(in srgb, var(--muted) 88%, transparent);
  font-size: 0.72rem;
  font-weight: 500;
}

@media (max-width: 520px) {
  html {
    font-size: 14px;
  }

  .site-nav,
  .page-shell {
    width: min(100% - 16px, 1160px);
  }

  .page-card,
  .styled-page-card {
    box-shadow: var(--soft-shadow);
  }

  .button,
  button.button {
    width: 100%;
    justify-content: center;
  }

  .button.small {
    width: auto;
  }

  .account-links .button,
  .account-links a:not(.button),
  .account-links .theme-toggle {
    width: auto;
  }

  .site-nav-menu.is-open .account-links .button,
  .site-nav-menu.is-open .account-links a:not(.button),
  .site-nav-menu.is-open .account-links .theme-toggle,
  .site-nav-menu.is-open .nav-links a {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav-menu.is-open .account-links > a,
  .site-nav-menu.is-open .account-links .button,
  .site-nav-menu.is-open .account-links .theme-toggle {
    width: auto;
  }

  .site-nav-menu.is-open .account-links .theme-toggle,
  .site-nav-menu.is-open .mobile-nav-actions .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1;
    text-align: center;
    box-shadow: none;
  }

  .account-links .button.small {
    min-height: 38px;
  }

  .marketing-actions,
  .support-form-submit,
  .workspace-header-actions,
  .section-heading-actions,
  .actions,
  .button-row,
  .page-actions {
    align-items: stretch;
    width: 100%;
  }

  .marketing-capability-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-grid,
  .dashboard-metric-grid,
  .dashboard-secondary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-pills {
    grid-template-columns: 1fr;
  }

  .expert-workspace .filter-pills {
    display: flex;
    grid-template-columns: none;
  }

  .expert-workspace .filter-pills .filter-link {
    width: auto;
  }

  .marketing-hero h1 {
    font-size: clamp(2rem, 13vw, 2.8rem);
  }

  .marketing-preview {
    margin-inline: -0.2rem;
  }

  .workspace-count-badge,
  .workspace-header-actions > .button,
  .expert-ticket-actions .button,
  .section-heading-actions .button,
  .staff-actions .button,
  .customer-block-actions .button,
  .category-actions .button,
  .canned-response-actions .button,
  .button-row .button,
  .page-actions .button {
    width: 100%;
  }

  .expert-workspace .workspace-count-badge,
  .expert-workspace .workspace-header-actions > .button,
  .expert-workspace .workspace-public-link .button {
    width: fit-content;
  }

  .expert-workspace .expert-ticket-actions .button,
  .expert-workspace .ticket-assignment-form .button {
    width: 100%;
  }

  .pagination-link,
  .pagination-ellipsis {
    min-width: 1.55rem;
    min-height: 1.55rem;
    padding-inline: 0.32rem;
  }

  .support-form-section-heading,
  .settings-header,
  .billing-header,
  .plan-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .billing-current-plan {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .plan-limit-list div {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-limit-list dd {
    text-align: left;
  }

  .plan-checkout-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .notification-email-preview {
    height: 420px;
  }
}

@media (max-width: 820px) {
  .public-features-hero,
  .feature-outcome,
  .feature-included-grid {
    grid-template-columns: 1fr;
  }

  .public-features-hero {
    gap: 1.25rem;
    padding-top: 1.1rem;
  }

  .public-features-hero-copy h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .public-features-hero-copy .lead,
  .feature-outcome-copy > p {
    font-size: 1rem;
  }

  .feature-outcome {
    padding: 1rem;
  }

  .feature-outcome:nth-child(even) .feature-outcome-copy {
    order: initial;
  }

  .feature-visual-panel {
    min-height: 240px;
  }

  .feature-form-card label.is-message {
    min-height: 4.6rem;
  }

  .feature-included-grid {
    gap: 0.7rem;
  }

  .feature-conversation-card p {
    max-width: 92%;
  }

  .public-page-hero {
    padding: 1.8rem 0 1rem;
  }

  .pricing-hero {
    padding: 1rem 0 0.75rem;
  }

  .public-page-hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .public-feature-row,
  .public-pricing-grid,
  .public-contact-grid,
  .public-cta-panel {
    grid-template-columns: 1fr;
  }

  .public-feature-row {
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .public-pricing-grid,
  .public-contact-grid {
    gap: 0.75rem;
  }

  .public-pricing-grid {
    margin-bottom: 0;
  }

  .public-plan-description {
    min-height: 0;
  }

  .pricing-comparison {
    margin-top: 2.5rem;
  }

  .pricing-cta {
    margin-top: 2.25rem;
  }

  .pricing-cta .public-cta-actions {
    width: 100%;
  }

  .pricing-cta .public-cta-actions .button {
    width: 100%;
  }

  .pricing-table-scroll {
    display: none;
  }

  .pricing-mobile-comparison {
    display: block;
    margin-bottom: 1.5rem;
  }

  .public-cta-panel {
    display: grid;
    align-items: start;
    padding: 0.85rem;
  }

  .public-cta-actions {
    justify-content: flex-start;
  }

  .public-cta-actions .button {
    width: auto;
    min-height: 36px;
    padding: 0.42rem 0.72rem;
    font-size: 0.9rem;
  }

  .public-contact-notice {
    text-align: left;
  }

  .ticket-detail-panel.support-ticket-page .support-conversation {
    padding: 0.65rem;
  }

  .ticket-detail-panel.support-ticket-page .support-section-heading {
    gap: 0.25rem;
    margin-bottom: 0.55rem;
  }

  .ticket-detail-panel.support-ticket-page .support-section-heading h2 {
    font-size: 1rem;
  }

  .ticket-detail-panel.support-ticket-page .support-message-list {
    gap: 0.65rem;
  }

  .ticket-detail-panel.support-ticket-page .support-message {
    padding: 0.78rem 0.82rem;
  }

  .ticket-detail-panel.support-ticket-page .support-message .message-header {
    gap: 0.12rem;
  }

  .ticket-detail-panel.support-ticket-page .support-message .message-header strong {
    font-size: 0.92rem;
  }

  .ticket-detail-panel.support-ticket-page .support-message .message-header time {
    font-size: 0.72rem;
  }

  .ticket-detail-panel.support-ticket-page .support-message p {
    margin-top: 0.28rem;
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .ticket-detail-panel.support-ticket-page .support-reply-composer {
    gap: 0.4rem;
    margin: 0 0.65rem 0.75rem;
    padding: 0.85rem;
  }

  .ticket-detail-panel.support-ticket-page .support-reply-composer .composer-header h2 {
    font-size: 1rem;
  }

  .ticket-detail-panel.support-ticket-page .support-reply-composer .composer-header p {
    display: none;
  }

  .ticket-detail-panel.support-ticket-page .support-reply-composer .field {
    margin: 0;
  }

  .ticket-detail-panel.support-ticket-page .support-reply-composer label {
    margin-bottom: 0.28rem;
    font-size: 0.86rem;
  }

  .ticket-detail-panel.support-ticket-page .support-reply-composer textarea {
    height: 116px;
    min-height: 116px;
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .ticket-detail-panel.support-ticket-page .support-reply-composer .button {
    width: 100%;
    min-height: 36px;
    padding: 0.38rem 0.7rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  .site-footer .page-shell {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .site-footer-inner {
    gap: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.35;
  }
}

.installation-page {
  display: grid;
  gap: 0.85rem;
  width: min(var(--layout-reading-max-width), 100%);
  margin-inline: auto;
}

.installation-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.installation-hero h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.installation-hero .lead { margin: 0; max-width: 760px; font-size: 0.95rem; line-height: 1.45; }

.installation-hero-icon {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue-600) 24%, var(--line));
  border-radius: 18px;
  background: var(--blue-050);
  color: var(--blue-700);
  font-size: 1.5rem;
}

.installation-subscription-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
}
.installation-subscription-note div { display: grid; gap: 0.15rem; }
.installation-subscription-note a { font-weight: 750; }

.installation-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.installation-option-card {
  display: flex;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  flex-direction: column;
  gap: 0.75rem;
}

.installation-option-card.is-recommended {
  border-color: color-mix(in srgb, var(--blue-600) 36%, var(--line));
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.09);
}

.installation-option-topline {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.installation-option-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-050);
  color: var(--blue-700);
  font-size: 0.95rem;
}

.installation-badge {
  border-color: color-mix(in srgb, var(--blue-600) 25%, var(--line));
  background: var(--blue-050);
  color: var(--blue-800);
}

.installation-option-number {
  margin: 0 0 0.25rem;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.installation-option-copy h2 { margin-bottom: 0.55rem; font-size: 1.3rem; }
.installation-option-copy > p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }

.installation-field-group {
  display: grid;
  gap: 0.5rem;
}

.support-portal-customizer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--blue-600) 38%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--blue-050) 56%, var(--surface));
  box-shadow: 0 10px 24px rgba(8, 61, 120, 0.08);
}
.support-portal-customizer-card h2 { margin: 0; color: var(--blue-900); font-size: 1.25rem; }
.support-portal-customizer-card p { margin: 0.3rem 0 0; color: var(--muted); }
.support-portal-customizer-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); font-size: 1.15rem; }

.installation-option-card.is-recommended .installation-field-group {
  margin-top: 0.5rem;
}

.installation-field-group > label {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
}

.installation-copy-control,
.installation-code-control {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.installation-copy-control { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.installation-copy-control code { padding: 0.18rem; background: transparent; color: var(--ink); font-size: 0.84rem; overflow-wrap: anywhere; }
.installation-code-control pre { max-height: 6.8rem; margin: 0; padding: 0.55rem 0.65rem; overflow-y: auto; overflow-x: auto; border-radius: 8px; background: color-mix(in srgb, var(--blue-050) 45%, var(--surface)); white-space: pre-wrap; }
.installation-code-control code { display: block; padding: 0; background: transparent; color: var(--ink); font-size: 0.78rem; line-height: 1.4; }
.installation-code-control .button { justify-self: start; }
.installation-copy-control.is-disabled,
.installation-code-control.is-disabled { opacity: 0.72; }

.installation-height-note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.installation-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.installation-actions .button { gap: 0.5rem; }
.installation-test-card > .button { gap: 0.5rem; }

.installation-how-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.installation-how-heading h2 { margin: 0; font-size: 1.08rem; }
.installation-how-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; padding: 0; margin: 0; list-style: none; }
.installation-how-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem; align-items: start; }
.installation-how-list li > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 999px; background: var(--blue-050); color: var(--blue-700); font-size: 0.72rem; font-weight: 700; }
.installation-how-list p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.installation-how-list a { font-weight: 750; }
.installation-use-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 0.75rem; margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.84rem; line-height: 1.35; }

.installation-flow-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.installation-flow-heading h2 { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.installation-flow-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem 0.95rem; padding: 0; margin: 0; list-style: none; }
.installation-flow-list li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.42rem; align-items: start; padding: 0.58rem; border: 1px solid var(--soft-line); border-radius: 9px; background: var(--surface-soft); }
.installation-flow-list li:not(:nth-child(3n))::after { content: "→"; position: absolute; top: 50%; right: -0.72rem; transform: translateY(-50%); color: color-mix(in srgb, var(--muted) 55%, transparent); font-size: 0.82rem; font-weight: 800; }
.installation-flow-list li > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 999px; background: var(--blue-050); color: var(--blue-700); font-size: 0.7rem; font-weight: 800; }
.installation-flow-list p { margin: 0; color: var(--ink); font-size: 0.82rem; line-height: 1.35; }
.installation-flow-note { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding-top: 0.65rem; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.installation-flow-note strong { color: var(--ink); font-weight: 800; }
.installation-flow-note span { color: var(--muted); }

.installation-workflow-callout .page-eyebrow { margin: 0 0 0.25rem; color: var(--blue-700); }

.how-works-page {
  display: grid;
  gap: 0.85rem;
  width: min(var(--layout-reading-max-width), 100%);
  margin-inline: auto;
}

.how-works-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.how-works-section-heading h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.how-works-large-text {
  max-width: 860px;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.how-works-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.how-works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.how-works-flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 0.95rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.how-works-flow-list li {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.42rem;
  align-items: start;
  padding: 0.62rem;
  border: 1px solid var(--soft-line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.how-works-flow-list li:not(:nth-child(4n))::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -0.72rem;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  font-size: 0.82rem;
  font-weight: 800;
}

.how-works-flow-list li > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-050);
  color: var(--blue-700);
  font-size: 0.7rem;
  font-weight: 800;
}

.how-works-flow-list p,
.how-works-check-list li,
.how-works-email-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.42;
}

.how-works-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--soft-line);
}

.how-works-note-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.how-works-note-grid strong { color: var(--ink); }

.how-works-check-list {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.how-works-check-list li {
  position: relative;
  padding-left: 1.15rem;
}

.how-works-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue-600);
}

.how-works-email-panel {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--soft-line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.how-works-email-panel code {
  width: fit-content;
  max-width: 100%;
  padding: 0.28rem 0.45rem;
  overflow-wrap: anywhere;
  border-radius: 7px;
  background: color-mix(in srgb, var(--blue-050) 60%, var(--surface));
  color: var(--blue-800);
  font-size: 0.84rem;
}

.how-works-email-panel .how-works-muted {
  color: var(--muted);
  font-size: 0.83rem;
}

.how-works-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.how-works-status-grid article {
  display: grid;
  gap: 0.25rem;
  padding: 0.68rem;
  border: 1px solid var(--soft-line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.how-works-status-grid strong {
  color: var(--blue-900);
  font-size: 0.9rem;
}

.how-works-status-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.how-works-example-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
}

.how-works-example-list li {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.4;
}

@media (max-width: 820px) {
  .how-works-grid,
  .how-works-flow-list,
  .how-works-note-grid,
  .how-works-status-grid {
    grid-template-columns: 1fr;
  }

  .how-works-flow-list {
    gap: 0.5rem;
  }

  .how-works-flow-list li:not(:last-child)::after,
  .how-works-flow-list li:nth-child(4n)::after {
    content: "↓";
    position: absolute;
    top: auto;
    right: auto;
    bottom: -0.48rem;
    left: 1.05rem;
    transform: none;
    color: color-mix(in srgb, var(--muted) 55%, transparent);
    font-size: 0.78rem;
    font-weight: 800;
  }

  .how-works-flow-list li:last-child::after {
    content: none;
  }
}

.embed-support-body {
  display: block;
  min-height: 100vh;
  background: var(--support-background-color, transparent);
}

.embed-support-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0.75rem;
}

.embed-support-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: none;
}

.embed-support-card.support-brand-surface {
  border: 0;
  border-radius: var(--support-border-radius);
  background: var(--support-background-color);
  color: var(--support-text-color);
}

.embed-support-header {
  display: grid;
  gap: 0.3rem;
  text-align: left;
}

.embed-support-header h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.08;
}

.support-brand-surface .embed-support-header h1 {
  color: var(--support-text-color);
}

.embed-support-header p {
  margin: 0;
  color: var(--muted);
}

.support-brand-surface .embed-support-header p {
  color: var(--support-text-color);
}

.embed-support-logo {
  width: auto;
  max-width: 180px;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.embed-support-logo.support-logo-small { max-height: 48px; max-width: 140px; }
.embed-support-logo.support-logo-medium { max-height: 72px; max-width: 220px; }
.embed-support-logo.support-logo-large { max-height: 104px; max-width: 320px; }

.embed-support-form {
  display: grid;
  gap: 0.85rem;
}

.support-brand-surface .embed-support-form {
  padding: 1rem;
  border: 1px solid var(--support-input-border-color);
  border-radius: var(--support-border-radius);
  background: var(--support-card-background-color);
}

.embed-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.embed-support-form .field {
  margin: 0;
}

.embed-support-form label {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.embed-support-form input,
.embed-support-form select,
.embed-support-form textarea {
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  font-size: 0.98rem;
}

.embed-support-form textarea {
  min-height: 130px;
}

.embed-upload-field {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--blue-600) 45%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--blue-050) 62%, var(--surface));
}

.embed-support-attachment-section {
  display: block;
}

.embed-upload-field p {
  margin: 0;
  font-size: 0.86rem;
}

.embed-upload-field input[type="file"] {
  padding: 0.45rem;
}

.support-brand-surface {
  color-scheme: light;
}

.support-brand-surface :is(.support-upload-field, .embed-upload-field, .upload-field) {
  border-color: var(--support-input-border-color);
  background: color-mix(in srgb, var(--support-input-bg) 72%, var(--support-panel-color));
  color: var(--support-text-color);
}

.support-brand-surface :is(.support-upload-field, .embed-upload-field, .upload-field) p,
.support-brand-surface :is(.support-upload-field, .embed-upload-field, .upload-field) .muted {
  color: var(--support-subtle-text-color);
}

.support-brand-surface :is(.support-upload-field, .embed-upload-field, .upload-field) > label {
  color: var(--support-text-color);
}

.support-brand-surface :is(.support-upload-field, .embed-upload-field, .upload-field) input[type="file"] {
  border-color: var(--support-input-border-color);
  background: var(--support-input-bg);
  color: var(--support-input-text);
  color-scheme: light;
}

.support-brand-surface :is(.support-upload-field, .embed-upload-field, .upload-field) input[type="file"]::file-selector-button {
  border-color: var(--support-primary-color);
  background: var(--support-primary-color);
  color: var(--support-button-text-color);
}

.support-brand-surface :is(.support-upload-field, .embed-upload-field, .upload-field) input[type="file"]::file-selector-button:hover {
  border-color: color-mix(in srgb, var(--support-primary-color) 86%, var(--support-text-color));
  background: color-mix(in srgb, var(--support-primary-color) 86%, var(--support-text-color));
}

.support-file-picker {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 0.28rem;
  min-height: 5rem;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px dashed var(--support-input-border-color, var(--line));
  border-radius: var(--support-border-radius, var(--radius));
  background: var(--support-input-bg, var(--surface));
  cursor: pointer;
  overflow: hidden;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.support-file-picker > * {
  max-width: 100%;
  min-width: 0;
}

.support-upload-field.is-drag-over .support-file-picker,
.embed-upload-field.is-drag-over .support-file-picker,
.support-file-picker:hover,
.support-file-picker:focus-visible {
  border-color: var(--support-primary-color, var(--blue-700));
  background: color-mix(in srgb, var(--support-primary-color, var(--blue-700)) 7%, var(--support-input-bg, var(--surface)));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--support-primary-color, var(--blue-700)) 16%, transparent);
}

.support-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.support-file-icon {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
}

.support-file-drop-text {
  display: block;
  width: 100%;
  color: var(--support-input-text, var(--text));
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}

.support-file-or,
.support-file-inline-or {
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 500;
}

.support-file-help {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}

.support-file-button {
  display: inline;
  flex-shrink: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  white-space: normal;
  transition: none;
}

.support-brand-surface .support-file-picker .support-file-button,
.support-brand-surface :is(.support-upload-field, .embed-upload-field, .upload-field) .support-file-picker .support-file-button {
  color: var(--support-primary-color);
}

.support-file-button:hover {
  color: inherit;
}

.support-file-button:active {
  transform: translateY(1px);
}

.support-file-input:disabled + .support-file-picker .support-file-button {
  opacity: 0.55;
  cursor: not-allowed;
}

.support-file-input:disabled + .support-file-picker .support-file-button:hover {
  border-color: var(--support-primary-color);
  background: var(--support-primary-color);
  transform: none;
}

.support-file-name {
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-file-summary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.support-file-list {
  display: grid;
  gap: 0.28rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.support-file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.45rem;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--support-input-bg, var(--surface)) 86%, var(--surface-soft));
  color: var(--support-input-text, var(--text));
  font-size: 0.76rem;
}

.support-file-list li > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-file-remove {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.support-file-remove:hover,
.support-file-remove:focus-visible {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
  color: var(--danger);
}

.embed-upload-field .support-file-picker {
  min-height: 4rem;
  padding: 0.45rem 0.55rem;
}

.embed-upload-field .support-file-list li {
  padding: 0.34rem 0.42rem;
}

.support-file-input:focus + .support-file-picker .support-file-button,
.support-file-input:focus-visible + .support-file-picker .support-file-button {
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}

:root[data-theme="dark"] .support-brand-surface :is(.support-upload-field, .embed-upload-field, .upload-field) {
  border-color: var(--support-input-border-color);
  background: color-mix(in srgb, var(--support-input-bg) 72%, var(--support-panel-color));
  color: var(--support-text-color);
}

:root[data-theme="dark"] .support-brand-surface :is(.support-upload-field, .embed-upload-field, .upload-field) input[type="file"] {
  border-color: var(--support-input-border-color);
  background: var(--support-input-bg);
  color: var(--support-input-text);
}

:root[data-theme="dark"] .support-brand-surface :is(.support-upload-field, .embed-upload-field, .upload-field) input[type="file"]::file-selector-button {
  border-color: var(--support-primary-color);
  background: var(--support-primary-color);
  color: var(--support-button-text-color);
}

:root[data-theme="dark"] .support-brand-surface .support-file-button {
  border-color: var(--support-primary-color);
  background: var(--support-primary-color);
  color: var(--support-button-text-color);
}

:root[data-theme="dark"] .support-brand-surface .support-file-name {
  color: var(--support-text-color);
}

.embed-support-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.2rem;
}

.embed-support-footer .button {
  flex: 0 0 auto;
}

.embed-success-card {
  justify-items: start;
  text-align: left;
}

.embed-success-card h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.embed-success-card p {
  margin: 0;
}

.support-success-card {
  max-width: 720px;
  margin-inline: auto;
  overflow: hidden;
}

.support-success-header {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
}

.support-success-header .support-brand-logo {
  margin-inline: auto;
  object-position: center;
}

.support-success-mark {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--support-primary-color) 14%, var(--support-card-background-color));
  color: var(--support-primary-color);
  font-size: 1.2rem;
  font-weight: 700;
}

.support-success-body {
  display: grid;
  gap: 0.85rem;
}

.support-success-custom-message,
.support-success-next {
  margin: 0;
  color: var(--support-text-color);
}

.support-ticket-reference {
  margin: 0;
  color: var(--support-primary-color);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.support-success-next {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.support-success-next h2 {
  margin: 0;
  color: var(--support-text-color);
  font-size: 1.05rem;
}

.support-success-next p {
  margin: 0;
}

.support-success-primary {
  justify-self: start;
}

.support-success-visible-link {
  display: grid;
  gap: 0.25rem;
  color: var(--support-subtle-text-color);
  font-size: 0.88rem;
  line-height: 1.4;
}

.support-success-visible-link span {
  font-weight: 700;
}

.support-success-visible-link a {
  color: var(--support-primary-color);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.support-success-private-notice,
.support-success-delivery {
  padding: 0.7rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--support-primary-color) 18%, var(--support-divider-color));
  border-radius: calc(var(--support-border-radius) - 2px);
  background: color-mix(in srgb, var(--support-primary-color) 6%, var(--support-card-background-color));
  color: var(--support-text-color);
  font-size: 0.92rem;
  line-height: 1.45;
}

.support-success-warning {
  border-color: color-mix(in srgb, var(--warning) 30%, var(--support-divider-color));
  background: color-mix(in srgb, var(--warning) 10%, var(--support-card-background-color));
}

.support-brand-surface .confirmation-summary {
  margin: 0;
  border-color: var(--support-divider-color);
  background: color-mix(in srgb, var(--support-primary-color) 8%, var(--support-card-background-color));
  color: var(--support-text-color);
}

.support-brand-surface .confirmation-summary strong {
  color: var(--support-primary-color);
}

.support-brand-surface .muted {
  color: var(--support-subtle-text-color);
}

.support-success-actions {
  margin: 0;
}

.support-brand-surface .support-success-actions .button.secondary,
.embed-success-card .button.secondary {
  border-color: var(--support-primary-color);
  background: transparent;
  color: var(--support-primary-color);
}

.embed-success-card {
  gap: 0.65rem;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

.embed-success-card .button {
  justify-self: start;
}

.embed-success-card .support-success-next {
  gap: 0.55rem;
  width: 100%;
}

@media (max-width: 560px) {
  .support-success-actions,
  .support-success-actions .button,
  .embed-success-card .button {
    width: 100%;
  }
}

/* Final staff workspace sizing and attachment-picker consistency. */
@media (min-width: 1101px) {
  .expert-workspace .workspace-grid {
    grid-template-columns: clamp(360px, 25vw, 410px) minmax(0, 1fr);
  }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .expert-workspace .workspace-grid {
    grid-template-columns: minmax(330px, 36vw) minmax(0, 1fr);
  }
}

.expert-workspace .expert-ticket-actions .button,
.expert-workspace .expert-ticket-actions .button.danger,
.expert-workspace .ticket-assignment-form .button,
.expert-workspace .expert-reply-actions > .button {
  min-height: 36px;
  padding: 0.42rem 0.68rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.1;
  white-space: nowrap;
}

.expert-workspace .queue-ticket-status-line .badge,
.expert-workspace .queue-ticket-heading .badge,
.expert-workspace .expert-ticket-status .badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-workspace .expert-reply-actions .compact-upload {
  display: grid;
  flex: 1 1 24rem;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  max-width: 28rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.expert-workspace .expert-reply-actions .compact-upload label,
.expert-workspace .expert-reply-actions .compact-upload p {
  grid-column: auto;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.expert-workspace .expert-reply-actions .compact-upload .file-picker-control {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  gap: 0.55rem;
  padding: 0.25rem;
  overflow: hidden;
  border-radius: 7px;
}

.expert-workspace .expert-reply-actions .compact-upload .file-picker-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0.48rem 0.78rem;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 650 !important;
  line-height: 1.1;
  white-space: nowrap;
}

.expert-workspace .expert-reply-actions .compact-upload .file-picker-button:hover {
  border-color: var(--blue-800);
  background: var(--blue-800);
}

.expert-workspace .expert-reply-actions .compact-upload .file-picker-button:active {
  border-color: var(--blue-900);
  background: var(--blue-900);
  transform: translateY(1px);
}

.expert-workspace .expert-reply-actions .compact-upload .file-picker-input:disabled + .file-picker-button,
.expert-workspace .expert-reply-actions .compact-upload .file-picker-input:disabled + .file-picker-button:hover {
  border-color: var(--blue-700);
  background: var(--blue-700);
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.expert-workspace .expert-reply-actions .compact-upload .file-picker-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.3;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-workspace .expert-reply-actions .compact-upload.support-upload-field {
  display: grid;
  flex: 1 1 34rem;
  gap: 0.35rem;
  max-width: 42rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.expert-workspace .expert-reply-actions .support-file-picker {
  min-height: 5.6rem;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  background: var(--surface);
}

.expert-workspace .expert-reply-actions .support-file-icon {
  font-size: 1.08rem;
}

.expert-workspace .expert-reply-actions .support-file-drop-text {
  font-size: 0.86rem;
}

.expert-workspace .expert-reply-actions .support-file-help,
.expert-workspace .expert-reply-actions .support-file-name {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: center;
}

.expert-workspace .expert-reply-actions .support-file-name {
  margin: 0;
}

@media (max-width: 520px) {
  .expert-workspace .expert-reply-actions .compact-upload {
    width: 100%;
    max-width: none;
  }

  .expert-workspace .expert-reply-actions .compact-upload.support-upload-field,
  .expert-workspace .expert-reply-actions .support-file-picker {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .expert-workspace .expert-reply-actions .support-file-drop-text,
  .expert-workspace .expert-reply-actions .support-file-help,
  .expert-workspace .expert-reply-actions .support-file-name {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .expert-workspace .expert-reply-actions .compact-upload .file-picker-button {
    min-height: 40px;
  }
}

@media (max-width: 820px) {
  .installation-options,
  .installation-how-card {
    grid-template-columns: 1fr;
  }

  .embed-support-footer {
    align-items: stretch;
  }

  .embed-support-footer {
    flex-direction: column;
  }

  .embed-support-footer .button.support-button-full {
    width: 100%;
  }

  .installation-how-list { grid-template-columns: 1fr; }

  .installation-actions .button {
    width: 100%;
  }

  .embed-support-shell {
    padding: 0.5rem;
  }

  .embed-support-card {
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 10px;
  }

  .embed-support-form {
    gap: 0.75rem;
  }

  .embed-support-form textarea {
    min-height: 118px;
  }
}

@media (max-width: 560px) {
  .support-layout-two-column .embed-field-grid,
  .embed-field-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
}

@media (max-width: 560px) {
  .installation-hero { align-items: flex-start; }
  .installation-hero-icon { display: none; }
  .installation-copy-control { grid-template-columns: 1fr; }
  .installation-copy-control .button,
  .installation-code-control .button { width: 100%; }
}
/* Customer workspace */
.installation-method-note { margin: 0.8rem 0 0; color: var(--blue-800); font-weight: 700; }
.installation-methods { display: grid; gap: 0.65rem; }
.installation-section-heading { max-width: 760px; }
.installation-section-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.7rem); }
.installation-option-copy h3 { margin-bottom: 0.35rem; font-size: 1.08rem; line-height: 1.25; }
.installation-helper { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; padding: 0.75rem; border-radius: 10px; background: color-mix(in srgb, var(--blue-050) 62%, var(--surface)); color: var(--blue-900); font-size: 0.88rem; line-height: 1.45; }
.support-portal-customizer-card .installation-step-label { margin: 0 0 0.25rem; color: var(--blue-700); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.installation-test-card,
.dashboard-setup-callout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.25rem; border: 1px solid color-mix(in srgb, var(--blue-600) 28%, var(--line)); border-radius: var(--radius); background: var(--surface); box-shadow: var(--soft-shadow); }
.installation-test-card h2,
.dashboard-setup-callout h2 { margin: 0; font-size: 1.25rem; }
.installation-test-card p,
.dashboard-setup-callout p { margin: 0.3rem 0 0; color: var(--muted); }
.dashboard-setup-callout .page-eyebrow { margin: 0 0 0.25rem; color: var(--blue-700); }
.installation-test-icon,
.dashboard-setup-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--blue-050); color: var(--blue-700); font-size: 1.1rem; }
.dashboard-setup-callout { background: color-mix(in srgb, var(--blue-050) 48%, var(--surface)); }

@media (max-width: 820px) {
  .installation-test-card,
  .dashboard-setup-callout { grid-template-columns: auto minmax(0, 1fr); }
  .installation-test-card > .button,
  .dashboard-setup-callout > .button { grid-column: 1 / -1; width: 100%; }
}

.customer-page-header {
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--blue-600) 16%, var(--line));
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--surface), color-mix(in srgb, var(--blue-050) 58%, var(--surface)));
  box-shadow: var(--soft-shadow);
  text-align: left;
}

.customer-page-header h1 { margin-bottom: 0.3rem; }
.customer-page-header .muted { margin: 0; }
[data-customer-results],
[data-customer-history] { transition: opacity 140ms ease; }
[data-customer-results].is-loading,
[data-customer-history].is-loading { opacity: 0.52; pointer-events: none; }

.customer-toolbar-card,
.customer-list-card {
  border: 1px solid color-mix(in srgb, var(--blue-600) 10%, var(--line));
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.customer-toolbar-card { padding: 1.1rem; }

.customer-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(175px, auto) minmax(175px, auto) auto;
  gap: 0.8rem;
  align-items: end;
}

.customer-search-field { position: relative; }
.customer-search-field i { position: absolute; top: 50%; left: 0.85rem; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.customer-search-field input { padding-left: 2.35rem; }

.customer-compact-field { display: grid; gap: 0.3rem; }
.customer-compact-field > span { color: var(--muted); font-size: 0.74rem; font-weight: 750; letter-spacing: 0.03em; text-transform: uppercase; }
.customer-apply-button { min-height: 40px; }

.table-scroll { overflow-x: auto; }
.customer-list-card { overflow: hidden; }
.customer-list-card .table-scroll { border-radius: var(--radius) var(--radius) 0 0; }

.customer-table,
.customer-history-table { width: 100%; border-collapse: collapse; }
.customer-table { min-width: 1160px; }
.customer-history-table { min-width: 850px; }
.customer-table th,
.customer-table td,
.customer-history-table th,
.customer-history-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--soft-line); text-align: left; vertical-align: middle; }
.customer-table th,
.customer-history-table th { color: var(--muted); background: color-mix(in srgb, var(--blue-050) 68%, var(--surface-soft)); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.045em; text-transform: uppercase; white-space: nowrap; }
.customer-table tbody tr,
.customer-history-table tbody tr { transition: background-color 140ms ease; }
.customer-table tbody tr:hover,
.customer-history-table tbody tr:hover { background: color-mix(in srgb, var(--blue-050) 74%, var(--surface)); }
.customer-table tbody tr:last-child td,
.customer-history-table tbody tr:last-child td { border-bottom: 0; }
.customer-table .metric-column { text-align: center; }

.customer-identity-cell { display: flex; align-items: center; gap: 0.75rem; min-width: 240px; }
.customer-avatar,
.customer-profile-avatar { display: grid; place-items: center; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--blue-600) 18%, var(--line)); background: linear-gradient(135deg, var(--blue-075), var(--blue-050)); color: var(--blue-800); font-weight: 700; }
.customer-avatar { width: 36px; height: 36px; border-radius: 10px; font-size: 0.85rem; }
.customer-name-row { display: flex; align-items: center; gap: 0.45rem; }
.customer-name-link { color: var(--blue-900); font-weight: 750; }
.customer-name-link:hover { color: var(--blue-700); }
.customer-email { display: block; margin-top: 0.12rem; color: var(--muted); font-size: 0.83rem; }
.customer-latest-ticket { display: block; max-width: 310px; margin-top: 0.28rem; overflow: hidden; color: var(--blue-700); font-size: 0.76rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.customer-latest-ticket span { color: var(--muted); font-weight: 700; }
.customer-latest-ticket:hover { text-decoration: none; }
.customer-latest-ticket:hover:not(.is-empty) { color: var(--blue-900); }
.customer-latest-ticket.is-empty { color: var(--muted); }
.customer-note-badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: color-mix(in srgb, var(--warning) 10%, var(--surface)); color: var(--warning); font-size: 0.76rem; }
.customer-notes-count { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.48rem; border: 1px solid color-mix(in srgb, var(--warning) 20%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--warning) 7%, var(--surface)); color: var(--warning); font-size: 0.7rem; font-weight: 750; white-space: nowrap; }
.customer-attention-badge { display: inline-flex; align-items: center; gap: 0.38rem; padding: 0.28rem 0.58rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.73rem; font-weight: 750; white-space: nowrap; }
.customer-attention-badge > span { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.customer-attention-badge.is-team { border-color: color-mix(in srgb, var(--warning) 28%, var(--line)); background: color-mix(in srgb, var(--warning) 8%, var(--surface)); color: var(--warning); }
.customer-attention-badge.is-customer { border-color: color-mix(in srgb, var(--blue-600) 22%, var(--line)); background: color-mix(in srgb, var(--blue-075) 68%, var(--surface)); color: var(--blue-700); }
.customer-subtle-badge,
.customer-count-badge,
.customer-header-badge,
.customer-status-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.customer-subtle-badge { padding: 0.22rem 0.55rem; background: var(--blue-050); color: var(--muted); font-size: 0.76rem; }
.customer-count-badge { min-width: 28px; padding: 0.2rem 0.48rem; background: var(--blue-075); color: var(--blue-800); font-size: 0.78rem; }
.customer-count-badge.is-open,
.customer-header-badge.is-open,
.customer-stat.is-open,
.customer-status-badge.is-open { border-color: color-mix(in srgb, var(--success) 26%, var(--line)); background: color-mix(in srgb, var(--success) 9%, var(--surface)); color: var(--success); }
.customer-count-badge.is-muted { background: var(--surface-soft); color: var(--muted); }
.customer-empty-value { color: color-mix(in srgb, var(--muted) 58%, transparent); }
.customer-date { color: var(--muted); font-size: 0.84rem; white-space: nowrap; }

.customer-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border-top: 1px solid var(--soft-line); background: var(--surface-soft); }
.customer-pagination-actions { display: flex; align-items: center; gap: 0.7rem; font-size: 0.86rem; }

.customer-empty-state { display: grid; justify-items: center; padding: 3.5rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 82%, var(--blue-050)); text-align: center; }
.customer-empty-state h2 { margin: 0.8rem 0 0.35rem; }
.customer-empty-state p { margin: 0; color: var(--muted); }
.customer-empty-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--blue-075); color: var(--blue-700); font-size: 1.35rem; }

.customer-back-link { display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.65rem; color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.customer-back-link:hover { color: var(--blue-800); text-decoration: none; }
.customer-profile-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.7rem; padding: 0.68rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--blue-075) 42%, var(--surface)), var(--surface) 58%); box-shadow: var(--soft-shadow); }
.customer-profile-avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 1rem; }
.customer-profile-heading { min-width: 0; }
.customer-profile-heading .page-eyebrow { margin-bottom: 0.2rem; }
.customer-profile-heading h1 { margin-bottom: 0.1rem; font-size: clamp(1.4rem, 1.75vw, 1.75rem); line-height: 1.15; }
.customer-profile-email { color: var(--muted); font-size: 0.86rem; }
.customer-header-metrics { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem; margin-left: auto; }
.customer-header-badge { gap: 0.25rem; padding: 0.24rem 0.5rem; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.75rem; }
.customer-header-badge strong { color: var(--blue-900); font-size: 0.92rem; }

.customer-detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.7fr); gap: 0.65rem; align-items: start; }
.customer-profile-card,
.customer-summary-card,
.customer-history-card,
.customer-notes-card { box-shadow: var(--soft-shadow); }
.customer-profile-card,
.customer-summary-card,
.customer-history-card,
.customer-notes-card { padding: 0.85rem; }
.customer-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.55rem; }
.customer-section-heading h2,
.customer-section-heading p:last-child { margin-bottom: 0; }
.customer-section-heading .page-eyebrow { margin-bottom: 0.25rem; }

.customer-profile-form { display: grid; gap: 0.62rem; }
.customer-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.58rem 0.72rem; }
.customer-field { display: flex; flex-direction: column; align-items: stretch; gap: 0.35rem; min-width: 0; color: var(--blue-900); font-size: 0.86rem; font-weight: 700; }
.customer-field input,
.customer-field select { width: 100%; }
.customer-field input[readonly] { background: var(--surface-soft); color: var(--muted); cursor: default; }
.customer-field small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 500; line-height: 1.35; }
.customer-field [data-valmsg-for] { color: var(--danger); font-size: 0.78rem; font-weight: 600; }
.customer-form-actions { display: flex; justify-content: flex-start; padding-top: 0.05rem; }
.customer-form-actions .button { min-height: 38px; padding-inline: 0.85rem; }

.customer-stats { display: grid; grid-template-columns: 1fr; gap: 0.42rem; margin: 0; }
.customer-stat { min-width: 0; padding: 0.52rem 0.62rem; border: 1px solid var(--soft-line); border-radius: 9px; background: var(--surface-soft); }
.customer-stat.is-wide { grid-column: auto; }
.customer-stat dt { color: var(--muted); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.025em; text-transform: uppercase; }
.customer-stat dd { margin: 0.25rem 0 0; color: var(--blue-900); font-size: 1rem; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.customer-stat-date dd { font-size: clamp(1.05rem, 1.35vw, 1.22rem); font-weight: 650; line-height: 1.25; }
.customer-stat:not(.customer-stat-date) dd { font-size: clamp(1.35rem, 1.9vw, 1.65rem); }

.customer-history-card { overflow: hidden; }
.customer-history-card > .customer-section-heading { padding: 0.1rem 0; }
.customer-history-controls { display: grid; grid-template-columns: minmax(170px, 0.65fr) minmax(205px, 0.8fr) auto; gap: 0.55rem; align-items: end; margin-bottom: 0.65rem; padding: 0.55rem 0.6rem; border: 1px solid var(--soft-line); border-radius: 9px; background: var(--surface-soft); }
.customer-history-controls .button { min-height: 36px; }
.customer-ticket-link { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem; align-items: baseline; min-width: 0; }
.customer-ticket-link span { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.customer-ticket-link strong { color: var(--blue-900); font-weight: 700; }
.customer-ticket-link:hover { text-decoration: none; }
.customer-ticket-link:hover strong { color: var(--blue-700); text-decoration: underline; }
.customer-status-badge { gap: 0.38rem; padding: 0.25rem 0.58rem; border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 0.75rem; }
.customer-status-badge > span { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.customer-status-badge.is-closed { color: var(--muted); }
.customer-inline-empty { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0; border: 0; background: transparent; color: var(--muted); font-size: 0.86rem; }

.customer-ticket-history-list { display: grid; border: 1px solid var(--soft-line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.customer-ticket-history-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; min-width: 0; padding: 0.85rem 0.95rem; border-bottom: 1px solid var(--soft-line); }
.customer-ticket-history-row:last-child { border-bottom: 0; }
.customer-ticket-history-row:hover { background: color-mix(in srgb, var(--blue-050) 60%, var(--surface)); }
.customer-ticket-history-row.is-closed { background: color-mix(in srgb, var(--surface-soft) 38%, var(--surface)); }
.customer-ticket-history-row.is-closed:hover { background: color-mix(in srgb, var(--surface-soft) 62%, var(--surface)); }
.customer-ticket-history-main { display: grid; gap: 0.35rem; min-width: 0; }
.customer-ticket-history-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.65rem; color: var(--muted); font-size: 0.84rem; line-height: 1.35; }
.customer-ticket-history-meta span,
.customer-ticket-history-meta time { min-width: 0; overflow-wrap: anywhere; }
.customer-ticket-history-side { display: flex; align-items: flex-end; flex-direction: column; gap: 0.4rem; flex: 0 0 auto; text-align: right; }

.customer-note-form { display: grid; gap: 0.55rem; margin-top: 0.55rem; padding: 0.7rem; border: 1px solid var(--soft-line); border-radius: 10px; background: var(--surface-soft); }
.customer-notes-section h3,
.customer-note-composer h3 { margin-bottom: 0.7rem; font-size: 0.96rem; }
.customer-note-composer { margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid var(--soft-line); }
.customer-note-composer summary { width: fit-content; list-style: none; cursor: pointer; }
.customer-note-composer summary::-webkit-details-marker { display: none; }
.customer-note-form textarea { min-height: 96px; background: var(--surface); }
.customer-note-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.customer-note-actions .muted { font-size: 0.78rem; }
.customer-notes { display: grid; gap: 0.55rem; margin-top: 0.65rem; }
.customer-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; padding: 1rem; border: 1px solid var(--soft-line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 92%, var(--blue-050)); }
.customer-note-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue-075); color: var(--blue-700); }
.customer-note p { margin: 0; color: var(--ink); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-note-content { min-width: 0; }
.customer-note-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.customer-note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 0.7rem; color: var(--muted); font-size: 0.76rem; }
.customer-note-meta strong { color: var(--blue-800); }
.customer-note-delete { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.4rem; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.76rem; font-weight: 700; }
.customer-note-delete:hover { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--danger); }

@media (max-width: 900px) {
  .customer-toolbar { grid-template-columns: minmax(0, 1fr) 1fr 1fr; }
  .customer-search-field { grid-column: 1 / -1; }
  .customer-apply-button { width: 100%; }
  .customer-detail-grid { grid-template-columns: 1fr; }
  .customer-summary-card { order: -1; }
}

@media (max-width: 620px) {
  .customer-toolbar { grid-template-columns: 1fr; }
  .customer-search-field { grid-column: auto; }
  .customer-toolbar-card,
  .customer-list-card,
  [data-customer-results],
  [data-customer-history] {
    max-width: 100%;
    min-width: 0;
  }
  .customer-list-card {
    overflow: visible;
  }
  .customer-list-card .table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
  }
  .customer-table,
  .customer-table thead,
  .customer-table tbody,
  .customer-table tr,
  .customer-table th,
  .customer-table td {
    display: block;
  }
  .customer-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  .customer-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .customer-table tbody {
    display: grid;
    gap: 0.65rem;
    padding: 0.65rem;
  }
  .customer-table tbody tr {
    overflow: hidden;
    border: 1px solid var(--soft-line);
    border-radius: 10px;
    background: var(--surface);
  }
  .customer-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--soft-line);
  }
  .customer-table td:last-child {
    border-bottom: 0;
  }
  .customer-table td:not(.customer-identity-cell) {
    display: grid;
    grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    text-align: left;
  }
  .customer-table td:not(.customer-identity-cell)::before {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .customer-table td:nth-child(2)::before { content: "Attention"; }
  .customer-table td:nth-child(3)::before { content: "Phone"; }
  .customer-table td:nth-child(4)::before { content: "Language"; }
  .customer-table td:nth-child(5)::before { content: "Tickets"; }
  .customer-table td:nth-child(6)::before { content: "Open"; }
  .customer-table td:nth-child(7)::before { content: "Closed"; }
  .customer-table td:nth-child(8)::before { content: "Last activity"; }
  .customer-table td:nth-child(9)::before { content: "First seen"; }
  html[lang="fr"] .customer-table td:nth-child(3)::before { content: "Téléphone"; }
  html[lang="fr"] .customer-table td:nth-child(4)::before { content: "Langue"; }
  html[lang="fr"] .customer-table td:nth-child(5)::before { content: "Billets"; }
  html[lang="fr"] .customer-table td:nth-child(6)::before { content: "Ouverts"; }
  html[lang="fr"] .customer-table td:nth-child(7)::before { content: "Fermés"; }
  html[lang="fr"] .customer-table td:nth-child(8)::before { content: "Dernière activité"; }
  html[lang="fr"] .customer-table td:nth-child(9)::before { content: "Première vue"; }
  .customer-profile-header { align-items: flex-start; flex-wrap: wrap; padding: 0.75rem; }
  .customer-header-metrics { width: 100%; margin-left: 0; }
  .customer-form-grid { grid-template-columns: 1fr; }
  .customer-history-controls { grid-template-columns: 1fr; }
  .customer-history-controls .button { width: 100%; }
  .customer-form-actions .button { width: 100%; }
  .customer-ticket-history-row { flex-direction: column; gap: 0.65rem; padding: 0.78rem; }
  .customer-ticket-history-side { align-items: flex-start; text-align: left; }
  .customer-pagination { align-items: flex-start; flex-direction: column; }
  .customer-pagination-actions { width: 100%; justify-content: space-between; }
  .customer-note-actions { align-items: stretch; flex-direction: column; }
  .customer-note-actions .button { width: 100%; }
  .customer-note-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .settings-compact-list-inline .setting-row-compact {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    gap: 0.55rem;
  }

  .settings-compact-list-inline .setting-row-compact .setting-value {
    min-width: 0;
    max-width: 100%;
  }

  .settings-compact-list-inline .setting-input-with-unit {
    display: grid;
    grid-template-columns: minmax(4.25rem, 4.75rem) minmax(0, max-content);
    align-items: center;
    max-width: min(100%, 10.5rem);
    min-width: 0;
  }

  .settings-compact-list-inline .setting-input-with-unit input {
    width: 100%;
    max-width: none;
  }

  .setting-input-with-unit span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

.support-brand-surface input.support-file-input[type="file"],
.support-brand-surface .upload-field input.support-file-input[type="file"],
.support-brand-surface .support-upload-field input.support-file-input[type="file"],
.support-brand-surface .embed-upload-field input.support-file-input[type="file"] {
  position: fixed !important;
  inset: auto auto auto -100vw !important;
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
}

/* Secure customer ticket polish */
.support-ticket-page .support-ticket-title-row { justify-content:flex-start; align-items:center; flex-wrap:wrap; gap:.45rem .7rem; }
.support-ticket-page .support-ticket-title-row h1 { font-size:clamp(1.2rem,2.2vw,1.5rem); font-weight:700; }
.support-ticket-page .support-ticket-meta dd { font-weight:650; }
.support-ticket-page .support-closure-details { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.35rem 1rem; margin:.75rem 1rem 0; padding:.7rem .85rem; border:1px solid color-mix(in srgb,var(--success) 18%,var(--line)); background:color-mix(in srgb,var(--success) 5%,var(--surface-soft)); }
.support-ticket-page .support-closure-details dt { color:var(--muted); font-size:.72rem; font-weight:700; }
.support-ticket-page .support-closure-details dd { margin:0; color:var(--ink); font-weight:650; }
.support-ticket-page .support-conversation { margin-top:.75rem; padding:.9rem; border-top:1px solid var(--soft-line); background:color-mix(in srgb,var(--surface-soft) 34%,transparent); }
.support-ticket-page .support-section-heading { margin-bottom:.8rem; }
.support-ticket-page .support-section-heading > .muted { font-size:.74rem; font-weight:500; }
.support-ticket-page .support-message .message-header { align-items:center; }
.support-message-sender { display:flex; align-items:center; gap:.55rem; min-width:0; }
.support-message-sender-marker { display:grid; width:1.8rem; height:1.8rem; flex:0 0 1.8rem; place-items:center; border-radius:999px; background:color-mix(in srgb,var(--blue-600) 14%,var(--surface)); color:var(--blue-700); font-size:.68rem; font-weight:850; }
.support-message-sender-marker { overflow:hidden; list-style:none; line-height:1; }
.support-message-sender-marker::before,.support-message-sender-marker::after { content:none; display:none; }
.support-message.expert-message .support-message-sender-marker { background:color-mix(in srgb,var(--success) 14%,var(--surface)); color:var(--success); }
.support-message-sender-copy { min-width:0; }
.support-message-sender-copy strong { display:block; min-width:0; overflow-wrap:anywhere; word-break:break-word; }
.support-ticket-page .message-attachments .attachment-card { max-width:min(100%,28rem); }
.support-ticket-page .message-attachments .attachment-card span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.support-ticket-page .support-reply-composer { border-color:color-mix(in srgb,var(--blue-700) 24%,var(--line)); background:color-mix(in srgb,var(--blue-050) 26%,var(--surface)); }
.support-ticket-page .support-closed-alert { padding:.7rem .85rem; border:1px solid var(--soft-line); background:var(--surface-soft); }

/* Shared desktop sizing and typography refinements. */
.workspace-header h1,
.settings-header h1,
.dashboard-header h1,
.customer-page-header h1,
.customer-profile-heading h1,
.profile-header h1 {
  font-size: clamp(1.875rem, 2.4vw, 2.25rem);
}

.section-heading-row h2,
.dashboard-panel-header h2,
.customer-section-heading h2,
.settings-group h2 {
  font-size: var(--font-size-lg);
}

.settings-header p,
.section-heading-row .muted,
.dashboard-header p,
.customer-page-header .muted,
.profile-card-header p,
.installation-option-copy > p:last-child {
  font-size: var(--font-size-sm);
  line-height: 1.55;
}

.profile-card-header h2,
.support-portal-customizer-card h2 {
  font-size: var(--font-size-lg);
}

.profile-field-note,
.customer-field small,
.installation-height-note {
  font-size: var(--font-size-xs);
}

.customer-field,
.installation-field-group > label,
.customer-compact-field > span {
  font-size: var(--font-size-sm);
}

.expert-workspace .workspace-header-actions > .button,
.expert-workspace .workspace-public-link .button {
  font-size: var(--font-size-sm);
}

.expert-workspace .queue-ticket-meta,
.expert-workspace .expert-ticket-meta dt,
.expert-workspace .expert-ticket-meta dd,
.expert-workspace .support-section-heading > .muted,
.support-ticket-page .support-section-heading > .muted {
  font-size: 0.875rem;
}

@media (min-width: 1101px) {
  .expert-workspace {
    width: min(var(--layout-wide-max-width), 100%);
  }

  .settings-card,
  .admin-dashboard,
  .platform-admin-page {
    width: min(var(--layout-max-width), 100%);
  }
}

@media (max-width:620px) {
  .support-ticket-page .support-ticket-header { padding:.8rem; }
  .support-ticket-page .support-ticket-title-row { align-items:flex-start; }
  .support-ticket-page .support-ticket-meta { grid-template-columns:1fr; }
  .support-ticket-page .support-closure-details { grid-template-columns:1fr; gap:.15rem; margin-inline:.75rem; }
  .support-ticket-page .support-conversation { padding:.8rem .75rem; }
  .support-ticket-page .support-section-heading,.support-ticket-page .support-message .message-header { align-items:flex-start; flex-direction:column; gap:.3rem; }
  .support-ticket-page .support-reply-composer,.support-ticket-page .support-closed-alert { margin-inline:.75rem; }
  .support-ticket-page .support-reply-composer .button { width:100%; justify-self:stretch; }
}

/* Keep the real agent workspace and the expert demo comfortably readable. */
.expert-workspace .workspace-header .page-eyebrow { font-size: .82rem; }
.expert-workspace .workspace-header-actions > .button { font-size: .92rem; }
.expert-workspace .workspace-free-banner h2 { font-size: 1.08rem; }
.expert-workspace .workspace-free-banner p { font-size: .96rem; }
.expert-workspace .workspace-public-link span,
.expert-workspace .workspace-public-link .button { font-size: .8rem; }
.expert-workspace .workspace-count-badge { font-size: .82rem; }
.expert-workspace .queue-panel-header h2 { font-size: 1.08rem; }
.expert-workspace .queue-panel-header .support-section-eyebrow { font-size: .76rem; }
.expert-workspace .refresh-link { font-size: .86rem; }
.expert-workspace .queue-unread-count { font-size: .72rem; }
.expert-workspace .queue-search input { font-size: .92rem; }
.expert-workspace .queue-sort-form,
.expert-workspace .queue-sort-form select,
.expert-workspace .filter-pills .filter-link { font-size: .76rem; }
.expert-workspace .filter-pill-count { font-size: .66rem; }
.expert-workspace .ticket-subject { font-size: .96rem; }
.expert-workspace .queue-ticket-customer { font-size: .84rem; }
.expert-workspace .queue-ticket-status-line .badge,
.expert-workspace .queue-ticket-heading .badge { font-size: .68rem; }
.expert-workspace .queue-ticket-meta { font-size: .72rem; }
.expert-workspace .pagination-link,
.expert-workspace .pagination-ellipsis { font-size: .76rem; }
.expert-workspace .support-ticket-eyebrow { font-size: .78rem; }
.expert-workspace .expert-ticket-status { font-size: .76rem; }
.expert-workspace .expert-ticket-meta dt { font-size: .72rem; }
.expert-workspace .expert-ticket-meta dd { font-size: .86rem; }
.expert-workspace .ticket-assignment-form select { font-size: .88rem; }
.expert-workspace .expert-ticket-actions .button,
.expert-workspace .ticket-assignment-form .button { font-size: .84rem; }
.expert-workspace .support-section-heading h3 { font-size: 1.04rem; }
.expert-workspace .expert-message .message-header strong { font-size: .88rem; }
.expert-workspace .expert-message .message-header time { font-size: .74rem; }
.expert-workspace .expert-message p { font-size: .92rem; line-height: 1.48; }
.expert-workspace .message-attachments .attachment-card { font-size: .78rem; }
.expert-workspace .support-section-heading > .muted { font-size: .8rem; }

@media (min-width: 821px) {
  .expert-workspace .expert-ticket-actions .button.danger { font-size: .8rem; }
}

/* Final shared type floor for readable workspace controls and metadata. */
.expert-workspace .queue-sort-form,
.expert-workspace .queue-sort-form select,
.expert-workspace .filter-pills .filter-link,
.expert-workspace .queue-ticket-meta,
.expert-workspace .pagination-link,
.expert-workspace .pagination-ellipsis,
.expert-workspace .support-ticket-eyebrow,
.expert-workspace .expert-ticket-status,
.expert-workspace .expert-ticket-meta dt,
.expert-workspace .expert-message .message-header time,
.expert-workspace .message-attachments .attachment-card,
.expert-workspace .support-section-heading > .muted {
  font-size: 0.8125rem;
}

.expert-workspace .queue-search input,
.expert-workspace .ticket-assignment-form select,
.expert-workspace .expert-ticket-actions .button,
.expert-workspace .ticket-assignment-form .button,
.expert-workspace .expert-message .message-header strong,
.expert-workspace .expert-message p {
  font-size: var(--font-size-sm);
}

.expert-workspace .queue-panel {
  display: flex;
  flex-direction: column;
}

.expert-workspace .queue-filter-groups {
  order: 1;
}

.expert-workspace .queue-toolbar {
  order: 2;
}

.expert-workspace .ticket-list {
  order: 3;
}

.queue-filter-groups {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem 0.58rem 0.35rem;
  border-bottom: 1px solid var(--soft-line);
}

.queue-lifecycle-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.queue-lifecycle-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.45rem 0.65rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: var(--font-size-sm);
  font-weight: 750;
  text-decoration: none;
}

.queue-lifecycle-tab:hover {
  background: var(--blue-050);
  color: var(--blue-800);
  text-decoration: none;
}

.queue-lifecycle-tab.is-active {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 2px 7px rgba(37, 99, 235, 0.22);
}

.queue-lifecycle-tab.is-active .filter-pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.expert-workspace .queue-assignment-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0;
  border: 0;
}

.expert-workspace .queue-assignment-filters .filter-link {
  min-height: 34px;
  justify-content: center;
  padding: 0.38rem 0.42rem;
  font-size: var(--font-size-xs);
}

/* Restrained product typography and compact queue controls. */
body,
button,
input,
select,
textarea {
  font-family: var(--font-family-sans);
}

body {
  font-weight: var(--font-weight-normal);
}

:is(
  .nav-links a,
  .account-links a,
  .desktop-nav-actions .nav-link,
  .desktop-nav-actions .nav-account-link,
  .settings-tab,
  .button,
  button.button,
  .filter-link,
  label
) {
  font-weight: var(--font-weight-medium);
}

:is(
  h2,
  h3,
  .card-title,
  .ticket-subject,
  .customer-name-link,
  .dashboard-panel-header h2,
  .section-heading-row h2
) {
  font-weight: var(--font-weight-semibold);
}

h1,
.marketing-hero h1,
.public-page-hero h1 {
  font-weight: var(--font-weight-bold);
}

:is(
  .page-eyebrow,
  .support-section-eyebrow,
  .badge,
  .filter-pill-count,
  .queue-unread-count,
  .workspace-count-badge,
  .customer-count-badge,
  .customer-status-badge,
  .company-status-pill,
  .expert-ticket-meta dt,
  .customer-stat dt
) {
  font-weight: var(--font-weight-medium);
}

.page-eyebrow,
.support-section-eyebrow {
  letter-spacing: 0.075em;
}

.expert-workspace .queue-panel-header {
  min-height: 52px;
  padding: 0.55rem 0.7rem;
}

.expert-workspace .queue-panel-header h2 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
}

.expert-workspace .queue-unread-count {
  padding: 0.15rem 0.38rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.expert-workspace .refresh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.expert-workspace .refresh-link:hover {
  border-color: color-mix(in srgb, var(--blue-600) 35%, var(--line));
  background: var(--blue-050);
  color: var(--blue-700);
  text-decoration: none;
}

.queue-filter-groups {
  gap: 0.3rem;
  padding: 0.3rem 0.55rem 0.28rem;
}

.queue-lifecycle-tabs {
  display: flex;
  gap: 1.1rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
  background: transparent;
}

.queue-lifecycle-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.42rem 0.12rem 0.5rem;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

.queue-lifecycle-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.queue-lifecycle-tab:hover,
.queue-lifecycle-tab.is-active {
  background: transparent;
  color: var(--blue-700);
  box-shadow: none;
}

.queue-lifecycle-tab.is-active::after {
  background: var(--blue-700);
}

.queue-lifecycle-tab .filter-pill-count,
.queue-lifecycle-tab.is-active .filter-pill-count {
  min-width: 1.2rem;
  height: 1.2rem;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.expert-workspace .queue-assignment-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.expert-workspace .queue-assignment-filters .filter-link {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0.32rem 0.55rem;
  border-color: var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.expert-workspace .queue-assignment-filters .filter-link:hover,
.expert-workspace .queue-assignment-filters .filter-link.active {
  border-color: color-mix(in srgb, var(--blue-600) 45%, var(--line));
  background: var(--blue-050);
  color: var(--blue-700);
}

.expert-workspace .queue-assignment-filters .filter-link.active .filter-pill-count,
.expert-workspace .queue-assignment-filters .filter-link:hover .filter-pill-count {
  background: var(--surface);
  color: var(--blue-700);
}

.expert-workspace .queue-toolbar {
  padding: 0.3rem 0.55rem 0.18rem;
}

.expert-workspace .ticket-list {
  padding-top: 0.1rem;
}

.expert-workspace .ticket-list .ticket-card {
  padding: 0.48rem 0.58rem;
}

.expert-workspace .ticket-subject {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
}

.expert-workspace .queue-ticket-customer {
  font-size: 0.875rem;
  font-weight: var(--font-weight-normal);
}

.expert-workspace .queue-ticket-meta,
.expert-workspace .queue-ticket-status-line .badge,
.expert-workspace .queue-ticket-heading .badge {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.expert-workspace .expert-ticket-title-row h2 {
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: var(--font-weight-semibold);
}

.expert-workspace .expert-ticket-meta dt {
  letter-spacing: 0.06em;
  font-weight: var(--font-weight-medium);
}

.expert-workspace .expert-ticket-meta dd,
.expert-workspace .support-section-heading h3,
.expert-workspace .expert-message .message-header strong {
  font-weight: var(--font-weight-medium);
}

/* Keep both ticket-closing outcomes identical after legacy desktop variants. */
.expert-workspace .expert-ticket-actions .button.danger {
  min-height: 36px;
  padding: 0.42rem 0.68rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .queue-lifecycle-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .queue-lifecycle-tab {
    justify-content: center;
    min-height: 42px;
  }

  .expert-workspace .queue-assignment-filters {
    padding-bottom: 0.1rem;
  }
}

/* Final queue-row separators follow all workspace density overrides. */
.expert-workspace .ticket-list .ticket-card,
.demo-workspace .ticket-list .ticket-card {
  margin-top: 0;
  padding: 0.65rem 0.58rem;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
}

.expert-workspace .ticket-list .ticket-card:last-child,
.demo-workspace .ticket-list .ticket-card:last-child {
  border-bottom: 0;
}

.expert-workspace .ticket-list .ticket-card:hover,
.demo-workspace .ticket-list .ticket-card:hover {
  border-color: var(--soft-line);
  border-radius: 0;
}

.expert-workspace .ticket-list .ticket-card.active,
.demo-workspace .ticket-list .ticket-card.active {
  margin-block: 0.12rem;
  border: 1px solid var(--blue-600);
  border-radius: 7px;
  background: var(--blue-050);
  box-shadow: inset 3px 0 0 var(--blue-600);
}

/* Workspace polish: roomier queue, denser ticket header, consistent controls. */
@media (min-width: 1180px) {
  .expert-workspace .workspace-grid {
    grid-template-columns: clamp(410px, 30vw, 500px) minmax(0, 1fr);
  }
}

@media (min-width: 961px) and (max-width: 1179px) {
  .expert-workspace .workspace-grid {
    grid-template-columns: minmax(370px, 38vw) minmax(0, 1fr);
  }
}

.expert-workspace .queue-panel {
  overflow: hidden;
}

.expert-workspace .ticket-list {
  gap: 0.42rem;
  padding: 0.5rem;
  background: color-mix(in srgb, var(--surface-soft) 42%, var(--surface));
}

.expert-workspace .ticket-list .ticket-card,
.demo-workspace .ticket-list .ticket-card {
  display: grid;
  gap: 0.28rem;
  padding: 0.66rem 0.72rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.expert-workspace .ticket-list .ticket-card:hover,
.demo-workspace .ticket-list .ticket-card:hover {
  border-color: color-mix(in srgb, var(--blue-600) 26%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue-050) 42%, var(--surface));
}

.expert-workspace .ticket-list .ticket-card.active,
.demo-workspace .ticket-list .ticket-card.active {
  margin-block: 0;
  border-color: var(--blue-600);
  border-radius: 8px;
  background: var(--blue-050);
  box-shadow: inset 4px 0 0 var(--blue-600);
}

.expert-workspace .queue-ticket-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: start;
}

.expert-workspace .queue-ticket-subject-row {
  min-width: 0;
}

.expert-workspace .queue-ticket-heading .badge {
  max-width: 12rem;
  padding: 0.18rem 0.48rem;
  font-size: 0.74rem;
  white-space: nowrap;
}

.expert-workspace .ticket-subject {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.25;
}

.expert-workspace .queue-ticket-customer {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  color: var(--blue-900);
}

.expert-workspace .queue-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem 0.5rem;
  font-size: 0.76rem;
}

.expert-workspace .queue-ticket-meta span,
.expert-workspace .queue-ticket-meta time,
.queue-ticket-assignment {
  min-width: 0;
  white-space: nowrap;
}

.queue-ticket-assignment {
  display: inline-flex;
  justify-self: start;
  max-width: 100%;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.queue-ticket-assignment span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-ticket-assignment.is-assigned {
  border-color: color-mix(in srgb, var(--blue-600) 20%, var(--line));
  background: color-mix(in srgb, var(--blue-075) 56%, var(--surface));
  color: var(--blue-800);
}

.expert-workspace .expert-ticket-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem 0.35rem;
  border-bottom: 1px solid var(--soft-line);
  background: var(--surface);
}

.expert-workspace .expert-assignment-row,
.expert-workspace .expert-ticket-actions {
  padding: 0;
}

.expert-workspace .expert-ticket-actions,
.expert-workspace .ticket-assignment-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.expert-workspace .ticket-assignment-form select {
  min-height: 34px;
}

.expert-workspace .expert-ticket-actions .button,
.expert-workspace .expert-ticket-actions .button.danger,
.expert-workspace .ticket-assignment-form .button,
.demo-workspace .demo-disabled-actions .button {
  min-height: 34px;
  padding: 0.38rem 0.64rem;
  border-radius: 7px;
  font-size: 0.82rem;
  line-height: 1.12;
  white-space: nowrap;
}

.expert-workspace .expert-ticket-header {
  padding: 0.72rem 0.85rem 0.78rem;
}

.expert-workspace .expert-ticket-title-row {
  align-items: flex-start;
  gap: 0.65rem;
}

.expert-workspace .expert-ticket-title-row h2 {
  font-size: clamp(1.18rem, 1.65vw, 1.48rem);
  line-height: 1.18;
}

.expert-workspace .support-ticket-eyebrow {
  margin-bottom: 0.08rem;
}

.expert-workspace .expert-ticket-status {
  flex: 0 0 auto;
  white-space: nowrap;
}

.expert-workspace .expert-ticket-meta {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.32rem 0.55rem;
  margin-top: 0.48rem;
}

.expert-workspace .expert-ticket-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0;
}

.expert-workspace .expert-ticket-meta dd {
  font-size: 0.84rem;
  line-height: 1.25;
}

.expert-workspace .expert-message .message-header strong,
.demo-workspace .expert-message .message-header strong {
  color: var(--blue-900);
  font-weight: 750;
}

/* Final workspace polish. */
.expert-workspace .workspace-header {
  min-height: auto;
  padding: 0.62rem 0.85rem;
}

.expert-workspace .workspace-header h1 {
  font-size: clamp(1.22rem, 1.75vw, 1.55rem);
}

.expert-workspace .workspace-header-actions {
  align-items: center;
}

.expert-workspace .expert-ticket-top-actions {
  gap: 0.55rem 0.7rem;
  padding: 0.55rem 0.75rem 0.42rem;
}

.expert-workspace .expert-assignment-row {
  flex: 1 1 20rem;
  min-width: min(100%, 20rem);
}

.expert-workspace .expert-ticket-actions {
  flex: 0 1 auto;
}

.expert-workspace .ticket-assignment-form {
  width: 100%;
}

.expert-workspace .ticket-assignment-form select {
  flex: 1 1 13rem;
  min-width: min(100%, 13rem);
}

.expert-workspace .expert-ticket-actions .button,
.expert-workspace .expert-ticket-actions .button.danger,
.expert-workspace .ticket-assignment-form .button,
.demo-workspace .demo-disabled-actions .button {
  min-height: 36px;
}

.expert-workspace .expert-ticket-title-row h2 {
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  max-width: 72rem;
}

.expert-workspace .support-ticket-eyebrow {
  color: var(--muted);
  font-size: 0.66rem;
}

.expert-workspace .expert-ticket-status {
  margin-top: 0.05rem;
  opacity: 0.9;
}

.expert-workspace .expert-ticket-meta {
  grid-template-columns: repeat(auto-fit, minmax(128px, max-content));
  gap: 0.22rem 0.85rem;
  max-width: 58rem;
}

.expert-workspace .expert-ticket-meta dt {
  font-size: 0.64rem;
}

.expert-workspace .expert-ticket-meta dd {
  font-size: 0.8rem;
}

/* Soft blue workspace header grouping. */
.expert-workspace .queue-panel-header,
.expert-workspace .expert-ticket-top-actions,
.expert-workspace .expert-ticket-header {
  border-color: var(--line);
  background: var(--surface);
}

.expert-workspace .queue-panel-header {
  border-bottom: 1px solid color-mix(in srgb, var(--blue-600) 18%, var(--line));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--soft-line) 72%, transparent);
}

.expert-workspace .expert-ticket-top-actions {
  border-bottom-color: color-mix(in srgb, var(--blue-600) 18%, var(--line));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--soft-line) 72%, transparent);
}

.expert-workspace .expert-ticket-header {
  border-bottom-color: color-mix(in srgb, var(--blue-600) 18%, var(--line));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--soft-line) 72%, transparent);
}

.expert-workspace .expert-assignment-row {
  flex: 0 1 auto;
  min-width: 0;
}

.expert-workspace .ticket-assignment-form {
  width: auto;
}

.expert-workspace .ticket-assignment-form select {
  flex: 0 1 14rem;
  width: min(14rem, 100%);
  min-width: min(12rem, 100%);
  max-width: 16rem;
}

/* Selected-ticket action bar alignment. */
.expert-workspace .expert-ticket-top-actions {
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.42rem 0.72rem;
}

.expert-workspace .expert-assignment-row {
  flex: 0 1 auto;
}

.expert-workspace .ticket-assignment-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.42rem;
  width: auto;
}

.expert-workspace .ticket-assignment-form select {
  flex: 0 0 260px;
  width: 260px;
  min-width: 240px;
  max-width: 280px;
  min-height: 36px;
}

.expert-workspace .ticket-assignment-form .button,
.expert-workspace .expert-ticket-actions .button {
  min-height: 36px;
  align-self: center;
}

.expert-workspace .expert-ticket-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
}

.expert-workspace .expert-ticket-header {
  background: var(--surface);
}

@media (max-width: 760px) {
  .expert-workspace .workspace-grid {
    grid-template-columns: 1fr;
  }

  .expert-workspace .ticket-list {
    padding: 0.45rem;
  }

  .expert-workspace .expert-ticket-top-actions {
    justify-content: space-between;
  }

  .expert-workspace .expert-ticket-actions {
    border-top: 1px solid var(--soft-line);
    padding-top: 0.5rem;
  }

  .expert-workspace .expert-assignment-row,
  .expert-workspace .ticket-assignment-form,
  .expert-workspace .ticket-assignment-form select {
    width: 100%;
    max-width: none;
  }

  .expert-workspace .expert-assignment-row,
  .expert-workspace .expert-ticket-actions {
    flex: 1 1 100%;
  }

  .expert-workspace .ticket-assignment-form {
    flex-wrap: wrap;
  }

  .expert-workspace .ticket-assignment-form select {
    flex: 1 1 240px;
    min-width: min(100%, 220px);
  }

  .expert-workspace .expert-ticket-actions,
  .expert-workspace .ticket-assignment-form,
  .expert-workspace .ticket-assignment-form select,
  .expert-workspace .expert-ticket-actions form,
  .expert-workspace .expert-ticket-actions .button,
  .expert-workspace .ticket-assignment-form .button {
    width: 100%;
  }

  .expert-workspace .expert-ticket-title-row {
    display: grid;
  }
}

@media (max-width: 760px) {
  .expert-workspace.mobile-detail-mode .expert-ticket-content {
    padding-bottom: 0.85rem;
  }

  .expert-workspace.mobile-detail-mode .mobile-back-to-queue {
    order: 1;
    min-height: 38px;
    margin: 0.45rem 0.85rem 0;
    padding-block: 0.2rem;
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-header {
    order: 2;
    padding: 0.45rem 0.85rem 0.6rem;
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem 0.55rem;
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-title-row > div {
    flex: 1 1 13rem;
    min-width: 0;
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-title-row h2 {
    font-size: 1.08rem;
    line-height: 1.18;
  }

  .expert-workspace.mobile-detail-mode .support-ticket-eyebrow {
    margin-bottom: 0.08rem;
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-status {
    align-self: flex-start;
    min-height: 28px;
    padding: 0.22rem 0.5rem;
    font-size: 0.72rem;
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-top-actions {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-content: stretch;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line);
  }

  .expert-workspace.mobile-detail-mode .expert-assignment-row,
  .expert-workspace.mobile-detail-mode .expert-ticket-actions {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .expert-workspace.mobile-detail-mode .ticket-assignment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 0;
  }

  .expert-workspace.mobile-detail-mode .ticket-assignment-form select {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 38px;
    height: auto;
    flex: 0 1 auto;
    padding-block: 0.42rem;
  }

  .expert-workspace.mobile-detail-mode .ticket-assignment-form .button {
    width: auto;
    min-width: 5.25rem;
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.4rem;
    border-top: 0;
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-content > .expert-ticket-actions {
    order: 3;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line);
    background: var(--surface);
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-actions form,
  .expert-workspace.mobile-detail-mode .expert-ticket-actions .button,
  .expert-workspace.mobile-detail-mode .demo-disabled-actions .button,
  .expert-workspace.mobile-detail-mode .ticket-assignment-form .button {
    min-height: 38px;
    height: auto;
    padding: 0.42rem 0.62rem;
    font-size: 0.84rem;
    line-height: 1.15;
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-actions form,
  .expert-workspace.mobile-detail-mode .expert-ticket-actions .button,
  .expert-workspace.mobile-detail-mode .demo-disabled-actions .button {
    width: 100%;
  }

  .expert-workspace.mobile-detail-mode .expert-conversation {
    order: 4;
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-details-section {
    order: 5;
  }

  .expert-workspace.mobile-detail-mode .expert-ticket-content > .alert,
  .expert-workspace.mobile-detail-mode .expert-reply-composer {
    order: 6;
  }

  .expert-workspace.mobile-detail-mode .internal-note-composer {
    order: 7;
  }
}

@media (max-width: 380px) {
  .expert-workspace.mobile-detail-mode .ticket-assignment-form,
  .expert-workspace.mobile-detail-mode .expert-ticket-actions {
    grid-template-columns: 1fr;
  }

  .expert-workspace.mobile-detail-mode .ticket-assignment-form .button {
    width: 100%;
  }
}

.expert-workspace .expert-reply-form > .field:has([data-expert-reply-body]) {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.expert-workspace .expert-reply-composer textarea[data-expert-reply-body] {
  display: block;
  width: 100%;
  min-height: 132px;
}

@media (min-width: 821px) {
  .expert-workspace .expert-reply-composer textarea[data-expert-reply-body] {
    height: auto;
    min-height: 150px;
  }
}

@media (max-width: 767px) {
  .page-eyebrow,
  .support-section-eyebrow,
  .support-ticket-eyebrow,
  .settings-header .page-eyebrow,
  .dashboard-panel-header .page-eyebrow,
  .installation-step-label,
  .support-portal-customizer-card .installation-step-label {
    font-size: 0.8125rem;
    letter-spacing: 0.045em;
    line-height: 1.25;
  }

  .lead,
  .dashboard-header p,
  .settings-header p,
  .billing-header p,
  .installation-hero .lead,
  .installation-option-copy > p:last-child,
  .installation-test-card p,
  .dashboard-setup-callout p,
  .support-brand-surface .styled-page-header .lead,
  .support-brand-surface .embed-support-header p,
  .support-ticket-page .support-message p,
  .support-ticket-page .support-reply-composer .composer-header p,
  .how-works-status-grid p {
    font-size: 1.0625rem;
    line-height: 1.55;
  }

  .settings-overview-copy p,
  .settings-group-description,
  .settings-info-note,
  .settings-save-status,
  .plan-statement,
  .plan-limit-list dt,
  .billing-limit-item dt,
  .installation-helper,
  .installation-height-note,
  .installation-how-list p,
  .installation-use-list,
  .installation-flow-list p,
  .installation-flow-note,
  .support-new-form .muted,
  .embed-support-form .muted,
  .support-file-help,
  .support-file-name,
  .support-ticket-page .support-section-heading > .muted {
    font-size: 1rem;
    line-height: 1.5;
  }

  .muted,
  .settings-overview-copy p,
  .settings-info-note,
  .plan-statement,
  .installation-option-copy > p:last-child,
  .installation-how-list p,
  .installation-use-list,
  .installation-flow-note,
  .support-new-form .muted,
  .embed-support-form .muted,
  .support-ticket-page .support-section-heading > .muted,
  .support-ticket-page .message-header time {
    color: color-mix(in srgb, var(--muted) 82%, var(--ink));
  }

  .dashboard-stat-card span,
  .dashboard-metric-card span {
    color: color-mix(in srgb, var(--muted) 78%, var(--ink));
    font-size: 0.9375rem;
    font-weight: 750;
    line-height: 1.3;
  }

  .dashboard-stat-card strong,
  .dashboard-metric-card strong,
  .dashboard-secondary-metrics .dashboard-metric-card strong {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
    line-height: 1.1;
  }

  .dashboard-activity-meta,
  .dashboard-ticket-meta,
  .dashboard-volume-row,
  .dashboard-table th,
  .dashboard-table td {
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .settings-tab,
  .settings-tab span,
  .settings-menu a,
  .queue-lifecycle-tab,
  .billing-toggle button,
  .billing-period-option {
    font-size: 1.0625rem;
    line-height: 1.3;
  }

  .expert-workspace .queue-search input,
  .expert-workspace .queue-sort-form,
  .expert-workspace .queue-sort-form select,
  .expert-workspace .filter-pills .filter-link,
  .expert-workspace .queue-lifecycle-tab,
  .expert-workspace .ticket-assignment-form select,
  .expert-workspace .expert-ticket-actions .button,
  .expert-workspace .ticket-assignment-form .button,
  .expert-workspace .expert-reply-actions > .button,
  .support-brand-surface input,
  .support-brand-surface select,
  .support-brand-surface textarea,
  .support-brand-surface .button,
  .support-brand-surface button.button,
  input,
  select,
  textarea,
  .button,
  button.button {
    font-size: 1rem;
    line-height: 1.4;
  }

  .expert-workspace .ticket-subject,
  .expert-workspace .expert-message p,
  .support-ticket-page .support-message p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .expert-workspace .queue-ticket-customer,
  .expert-workspace .queue-ticket-meta,
  .expert-workspace .queue-ticket-assignment,
  .expert-workspace .expert-ticket-meta dd,
  .expert-workspace .expert-message .message-header strong {
    font-size: 0.9375rem;
    line-height: 1.4;
  }

  .expert-workspace .queue-ticket-heading .badge,
  .expert-workspace .queue-ticket-status-line .badge,
  .expert-workspace .expert-ticket-status,
  .expert-workspace .expert-ticket-meta dt,
  .expert-workspace .expert-message .message-header time,
  .expert-workspace .message-attachments .attachment-card,
  .expert-workspace .support-section-heading > .muted,
  .filter-pill-count {
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .support-ticket-page .support-ticket-meta dt,
  .support-ticket-page .support-closure-details dt,
  .support-ticket-brand-label {
    font-size: 0.875rem;
    letter-spacing: 0.035em;
  }

  .support-ticket-page .support-ticket-meta dd,
  .support-ticket-page .support-closure-details dd,
  .support-ticket-page .support-message .message-header strong {
    font-size: 1rem;
    line-height: 1.4;
  }

  .field label,
  .checkbox-field label,
  .support-brand-surface .field label,
  .embed-support-form label,
  .support-new-form .field label,
  .installation-field-group > label,
  .customer-compact-field > span,
  .composer-field-heading label {
    font-size: 1rem;
    line-height: 1.35;
  }
}

/* Desktop readability scale. Keep mobile compact, but let desktop app and marketing
   surfaces breathe with a clearer product typography hierarchy. */
@media (min-width: 768px) {
  :root {
    --font-size-xs: 0.875rem;
    --font-size-sm: 1rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.375rem;
    --font-size-xl: 1.65rem;
    --font-size-2xl: 2.2rem;
    --font-size-3xl: clamp(2.55rem, 4vw, 4rem);
    --control-height: 46px;
  }

  body {
    font-size: var(--font-size-base);
    line-height: 1.58;
  }

  .muted,
  small,
  .lead,
  .field small,
  .help-text,
  .validation,
  [data-valmsg-for],
  .support-section-heading > .muted,
  .section-heading-row .muted,
  .settings-header p,
  .dashboard-panel-header p,
  .customer-page-header .muted {
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .site-nav {
    min-height: 72px;
  }

  .nav-links a,
  .account-links a,
  .desktop-nav-actions .nav-link,
  .desktop-nav-actions .nav-account-link,
  .mobile-nav-actions .nav-account-link,
  .link-button {
    font-size: 1rem;
  }

  .nav-links a {
    min-height: 40px;
    padding-inline: 0.9rem;
  }

  .button,
  button.button,
  .filter-link,
  .settings-tab,
  .queue-lifecycle-tab,
  .billing-toggle button {
    font-size: 0.975rem;
  }

  .styled-page-header h1,
  .dashboard-header h1,
  .settings-header h1,
  .billing-header h1,
  .customer-page-header h1,
  .workspace-header h1 {
    font-size: clamp(2rem, 2.8vw, 2.65rem);
    line-height: 1.08;
  }

  .marketing-hero h1,
  .public-page-hero h1 {
    font-size: clamp(3rem, 5vw, 4.25rem);
  }

  .styled-page-header .lead,
  .marketing-hero .lead,
  .public-page-hero .lead {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    line-height: 1.62;
  }

  .section-heading-row h2,
  .dashboard-panel-header h2,
  .settings-group h2,
  .billing-current-plan h3,
  .plan-card h3,
  .card-title,
  .pricing-section-heading h2,
  .installation-section-heading h2 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.18;
  }

  .installation-page .installation-section-heading h2 {
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    line-height: 1.2;
  }

  .settings-card,
  .dashboard-panel,
  .dashboard-stat-card,
  .dashboard-metric-card,
  .billing-section,
  .plan-card,
  .platform-admin-page,
  .support-new-card {
    font-size: 1rem;
  }

  .field label,
  .checkbox-field label,
  .customer-field,
  .installation-field-group > label,
  .composer-field-heading label,
  .expert-reply-form > .field.canned-response-picker label {
    font-size: 1rem;
    line-height: 1.35;
  }

  input,
  select,
  textarea,
  .input,
  .select,
  .textarea,
  .support-brand-surface input,
  .support-brand-surface select,
  .support-brand-surface textarea {
    font-size: 1rem;
    line-height: 1.45;
  }

  input::placeholder,
  textarea::placeholder,
  .support-brand-surface input::placeholder,
  .support-brand-surface textarea::placeholder {
    font-size: 1rem;
  }

  table,
  .dashboard-table,
  .customer-table,
  .customer-history-table,
  .platform-company-table,
  .platform-notification-table,
  .pricing-table {
    font-size: 1rem;
  }

  th,
  .dashboard-table th,
  .customer-table th,
  .customer-history-table th,
  .pricing-table thead th,
  .pricing-table-group th {
    font-size: 0.875rem;
    line-height: 1.35;
  }

  td,
  .dashboard-table td,
  .customer-table td,
  .customer-history-table td,
  .pricing-table td,
  .pricing-table tbody th {
    font-size: 0.975rem;
    line-height: 1.45;
  }

  .dashboard-stat-card span,
  .dashboard-metric-card span,
  .plan-limit-list dt,
  .customer-stat dt,
  .inbound-stat-card span:first-child {
    font-size: 0.95rem;
  }

  .dashboard-stat-card strong,
  .dashboard-metric-card strong,
  .inbound-stat-card strong {
    font-size: clamp(1.8rem, 2.7vw, 2.45rem);
    line-height: 1.05;
  }

  .customer-stat dd {
    font-size: clamp(1.25rem, 1.9vw, 1.65rem);
    line-height: 1.18;
  }

  .customer-stat-date dd {
    font-size: clamp(1.12rem, 1.45vw, 1.38rem);
    font-weight: 650;
    line-height: 1.24;
  }

  .settings-tab span,
  .setting-switch-state,
  .settings-save-status,
  .plan-statement,
  .public-plan-description,
  .public-plan-support,
  .installation-helper {
    font-size: 0.975rem;
    line-height: 1.5;
  }

  .customer-email,
  .customer-date,
  .customer-pagination-actions,
  .customer-latest-ticket,
  .customer-ticket-link span,
  .customer-note-meta,
  .customer-field small,
  .customer-field [data-valmsg-for] {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .expert-workspace .workspace-header h1 {
    font-size: clamp(1.9rem, 2.5vw, 2.4rem);
  }

  .expert-workspace .workspace-header .muted,
  .expert-workspace .workspace-public-link a,
  .expert-workspace .workspace-free-banner p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .expert-workspace .queue-panel-header h2 {
    font-size: 1.35rem;
  }

  .expert-workspace .queue-search input,
  .expert-workspace .queue-sort-form,
  .expert-workspace .queue-sort-form select,
  .expert-workspace .filter-pills .filter-link,
  .expert-workspace .queue-lifecycle-tab {
    font-size: 0.95rem;
  }

  .expert-workspace .ticket-subject {
    font-size: 1.08rem;
    line-height: 1.25;
  }

  .expert-workspace .queue-ticket-customer,
  .expert-workspace .expert-ticket-meta dd {
    font-size: 0.95rem;
  }

  .expert-workspace .queue-ticket-meta,
  .expert-workspace .queue-ticket-status-line .badge,
  .expert-workspace .queue-ticket-heading .badge,
  .expert-workspace .expert-ticket-meta dt,
  .expert-workspace .expert-message .message-header time,
  .expert-workspace .message-attachments .attachment-card,
  .expert-workspace .support-section-heading > .muted {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .expert-workspace .expert-ticket-title-row h2 {
    font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  }

  .expert-workspace .support-section-heading h3 {
    font-size: 1.2rem;
  }

  .expert-workspace .expert-message .message-header strong,
  .expert-workspace .expert-message p,
  .expert-workspace .expert-reply-composer textarea,
  .expert-workspace .internal-note-composer textarea {
    font-size: 1rem;
    line-height: 1.55;
  }

  .expert-workspace .expert-ticket-actions .button,
  .expert-workspace .expert-ticket-actions .button.danger,
  .expert-workspace .ticket-assignment-form .button,
  .expert-workspace .ticket-assignment-form select,
  .expert-workspace .expert-reply-actions > .button,
  .expert-workspace .expert-reply-actions .compact-upload label,
  .expert-workspace .expert-reply-actions .compact-upload p,
  .expert-workspace .expert-reply-actions .compact-upload .file-picker-name {
    font-size: 0.9375rem;
  }

  .support-new-form .field label,
  .embed-support-form .field label,
  .support-brand-surface .field label {
    font-size: 1rem;
  }

  .support-new-form .muted,
  .embed-support-form .muted,
  .support-powered-by,
  .support-privacy-link {
    font-size: 0.9375rem;
    line-height: 1.45;
  }
}

.support-submit-button.support-button-auto {
  width: auto;
  inline-size: fit-content;
  max-width: 100%;
  justify-self: start;
  align-self: flex-start;
}

.embed-support-footer .support-submit-button.support-button-auto {
  flex: 0 0 auto;
}

.support-submit-button.support-button-full {
  width: 100%;
  inline-size: 100%;
}
