:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f8f9fd;
  --rail: #081a3a;
  --text: #1f2937;
  --muted: #7a8496;
  --faint: #a5aec0;
  --line: #e6e9f1;
  --blue: #1557e6;
  --green: #1fa36d;
  --purple: #6b5cff;
  --shadow: 0 18px 50px rgba(21, 39, 75, 0.08);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.eyebrow {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
}

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

.login-shell {
  align-items: center;
  background:
    radial-gradient(circle at 24% 12%, rgba(21, 87, 230, 0.12), transparent 28%),
    linear-gradient(135deg, #f8fbff, #eef2f8);
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  position: relative;
}

.login-home-link {
  color: #536078;
  font-size: 13px;
  font-weight: 800;
  left: 28px;
  position: absolute;
  text-decoration: none;
  top: 26px;
}

.login-home-link:hover {
  color: var(--blue);
}

.login-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  max-width: 420px;
  padding: 34px;
  width: 100%;
}

.login-status {
  align-items: center;
  background: #f3f7ff;
  border: 1px solid #dce8ff;
  border-radius: 10px;
  color: #3158ad;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
  padding: 10px 12px;
}

.login-status small {
  color: #6e7f9f;
  font-size: 11px;
  font-weight: 700;
}

.login-logo,
.workspace-logo {
  align-items: center;
  background: linear-gradient(145deg, #1d67ff, #153cb9);
  border-radius: 14px;
  color: white;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.workspace-home-link {
  text-decoration: none;
}

.workspace-home-link:hover {
  box-shadow: 0 0 0 3px rgba(204, 232, 92, 0.25);
}

.login-panel h1 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 8px;
}

form,
label {
  display: grid;
  gap: 9px;
}

input,
textarea,
select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  padding: 12px 13px;
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 87, 230, 0.1);
}

form button,
#sendButton,
.resolve-button {
  background: var(--blue);
  border-radius: 10px;
  color: white;
  font-weight: 800;
  padding: 11px 15px;
}

.login-panel form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.password-field {
  display: grid;
  position: relative;
}

.password-field input {
  padding-right: 58px;
}

.password-field button {
  background: transparent;
  color: #64718a;
  font-size: 12px;
  font-weight: 800;
  padding: 4px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.error {
  color: #c0362c;
  min-height: 20px;
}

.login-access-note,
.login-channel-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  margin: -5px 0 0;
}

.login-access-note span {
  display: block;
}

.locked-inline {
  background: transparent;
  color: #8290a7;
  cursor: not-allowed;
  font-weight: 800;
  padding: 0 4px;
  text-decoration: underline;
}

.login-divider {
  align-items: center;
  color: var(--faint);
  display: flex;
  font-size: 12px;
  gap: 10px;
  text-align: center;
}

.login-divider::before,
.login-divider::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

.login-providers {
  display: grid;
  gap: 8px;
}

.login-providers button {
  border-radius: 10px;
  cursor: not-allowed;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: 11px 13px;
}

.login-providers em {
  font-size: 11px;
  font-style: normal;
}

.app-shell {
  display: grid;
  grid-template-columns: 214px 360px minmax(420px, 1fr) 360px;
  height: 100vh;
  overflow: hidden;
}

.rail {
  align-items: stretch;
  background: linear-gradient(180deg, #071834, #0a214b);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 12px;
  position: relative;
}

.workspace-home-link {
  align-items: center;
  color: #ffffff;
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.workspace-brand {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.rail-channel {
  border-color: rgba(192, 209, 248, 0.28);
  color: #d6e0fb;
}

.rail-channel:hover,
.rail-channel-open {
  background: #25416e;
  border-color: rgba(255, 255, 255, 0.52);
  color: #ffffff;
}

.channel-launcher {
  background: #ffffff;
  border: 1px solid #dce3ef;
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(7, 24, 52, 0.22);
  color: #18243a;
  left: calc(100% + 14px);
  max-height: calc(100vh - 42px);
  overflow-y: auto;
  padding: 18px;
  position: absolute;
  top: 20px;
  width: 390px;
  z-index: 80;
}

.channel-launcher-header {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.channel-launcher h2 {
  color: #17243a;
  font-size: 21px;
  letter-spacing: 0;
  margin: 0;
}

.channel-launcher-header small,
.channel-launcher-footnote,
.channel-launcher-message {
  color: #65748c;
  font-size: 13px;
  line-height: 1.5;
}

.channel-launcher-close {
  align-items: center;
  background: #f5f7fb;
  border: 1px solid #e0e6f0;
  border-radius: 7px;
  color: #697791;
  display: inline-flex;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 34px;
}

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

.platform-tile {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce3ef;
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 82px;
  padding: 10px;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.platform-tile:hover {
  transform: translateY(-1px);
}

.platform-tile.is-available {
  background: #f7faff;
  border-color: #a9c4ff;
}

.platform-tile.is-available:hover {
  background: #eff5ff;
  border-color: #3976ea;
}

.platform-tile.is-locked {
  background: rgba(244, 246, 250, 0.82);
  border-color: #d8dfe9;
  opacity: 0.7;
}

.platform-tile.is-locked:hover {
  opacity: 0.9;
}

.platform-mark {
  align-items: center;
  border-radius: 9px;
  color: #ffffff;
  display: inline-flex;
  font-size: 17px;
  font-weight: 800;
  grid-row: span 2;
  height: 42px;
  justify-content: center;
  letter-spacing: 0;
  width: 42px;
}

.platform-mark svg {
  display: block;
}

.platform-mark.facebook { background: #1877f2; }
.platform-mark.whatsapp { background: #25d366; }
.platform-mark.ebay { background: #e53238; }
.platform-mark.amazon { background: #232f3e; }
.platform-mark.gmail { background: #ea4335; }
.platform-mark.yahoo { background: #5f01d1; }
.platform-mark.shopify { background: #5c8d3d; }
.platform-mark.sms { background: #64748b; }

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

.platform-copy strong {
  color: #1d2a40;
  font-size: 14px;
  line-height: 1.2;
}

.platform-copy small {
  color: #75839a;
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-status {
  color: #18794e;
  font-size: 11px;
  font-weight: 800;
  grid-column: 2;
  line-height: 1.15;
}

.platform-status.is-locked {
  color: #7a8799;
}

.channel-launcher-footnote {
  border-top: 1px solid #e9edf4;
  margin: 14px 0 0;
  padding-top: 12px;
}

.rail-nav {
  align-self: stretch;
  display: grid;
  gap: 7px;
  margin-top: 28px;
  width: 100%;
}

.rail-nav button,
.square-button,
.ghost-action {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.rail-nav button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #8fa4d0;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 10px;
  height: 44px;
  justify-content: flex-start;
  padding: 0 11px;
  position: relative;
  width: 100%;
}

.rail-nav .rail-active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.rail-nav .is-locked {
  color: #8498bf;
}

.rail-nav-chevron,
.rail-nav-lock {
  margin-left: auto;
}

.rail-nav-chevron {
  transition: transform 160ms ease;
}

.rail-channel-open .rail-nav-chevron {
  transform: rotate(90deg);
}

.rail-nav-lock {
  opacity: 0.72;
}

.locked-control {
  cursor: not-allowed;
  position: relative;
}

.locked-lite {
  background: rgba(241, 244, 249, 0.78) !important;
  border: 1px solid rgba(186, 195, 210, 0.72) !important;
  color: #8b95a7 !important;
  opacity: 0.72;
}

.locked-lite::after,
.locked-icon::after {
  background: rgba(176, 184, 198, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  content: "";
  height: 8px;
  padding: 0;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 8px;
}

.locked-icon {
  opacity: 0.48;
}

.locked-frame {
  overflow: hidden;
}

.locked-frame::before {
  background: rgba(244, 246, 250, 0.7);
  border: 1px solid rgba(181, 190, 204, 0.62);
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.locked-frame::after {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(174, 184, 199, 0.66);
  border-radius: 999px;
  color: #778195;
  content: "暂未开放";
  font-size: 11px;
  font-weight: 900;
  left: 50%;
  padding: 5px 9px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 2;
}

.rail-footer {
  align-items: center;
  display: flex;
  gap: 6px;
  width: 100%;
}

.rail-user {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #ffffff;
  display: flex;
  flex: 1;
  gap: 9px;
  font-size: 12px;
  font-weight: 900;
  height: 46px;
  justify-content: flex-start;
  padding: 0 8px;
}

.rail-user-avatar {
  align-items: center;
  background: #e9eefb;
  border-radius: 7px;
  color: #203461;
  display: flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.rail-user-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.rail-user-copy strong,
.rail-user-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-user-copy small {
  color: #b2c1df;
  font-size: 11px;
  font-weight: 700;
}

.rail-logout {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #c5d2eb;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 40px;
}

.rail-logout:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.conversation-list,
.message-pane,
.insight-panel {
  border-right: 1px solid var(--line);
  min-height: 0;
}

.conversation-list {
  background: #fbfcff;
  overflow: auto;
  padding: 28px 24px;
}

.inbox-title,
.message-header,
.composer-actions,
.card-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.inbox-title-actions {
  display: flex;
  gap: 8px;
}

.inbox-refresh-status {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
}

.mobile-settings {
  display: none;
}

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

h2 {
  font-size: 27px;
  line-height: 1.15;
  margin-bottom: 0;
}

.square-button {
  background: white;
  border: 1px solid var(--line);
  color: #657187;
  font-size: 20px;
}

.square-button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.is-spinning {
  animation: herecrew-spin 0.8s linear infinite;
}

.workspace-scope-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 24px 0 14px;
  overflow: hidden;
}

.workspace-scope-trigger {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 14px;
  text-align: left;
  width: 100%;
}

.workspace-scope-trigger:hover,
.workspace-scope-trigger:focus-visible {
  background: #f7f9ff;
  outline: none;
}

.workspace-scope-trigger:focus-visible {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.workspace-scope-copy,
.workspace-scope-copy strong,
.workspace-scope-copy small {
  display: block;
  min-width: 0;
}

.workspace-scope-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-scope-copy small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-scope-kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.workspace-scope-status {
  background: #eef3ff;
  border-radius: 999px;
  color: #315eac;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
  white-space: nowrap;
}

.workspace-scope-chevron {
  color: #71809b;
}

.workspace-scope-card > p {
  border-top: 1px solid #edf0f5;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  padding: 9px 14px;
}

.merchant-link {
  align-items: center;
  background: #f6f8ff;
  border: 1px solid #dbe5ff;
  border-radius: 10px;
  color: #253454;
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  margin-top: 2px;
  padding: 10px 11px;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.merchant-link:hover {
  background: #edf3ff;
  border-color: #b9caff;
  transform: translateY(-1px);
}

.merchant-link strong,
.merchant-link small {
  display: block;
}

.merchant-link strong {
  color: #234083;
  font-size: 12px;
  font-weight: 900;
}

.merchant-link small {
  font-size: 11px;
  margin-top: 3px;
}

.merchant-link-arrow {
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
}

.store-avatar,
.avatar {
  align-items: center;
  border-radius: 14px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.store-avatar {
  background: #192842;
}

.store-avatar.green {
  background: #69a737;
}

.connected {
  background: #eaf7ef;
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.search-box {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto;
  padding: 0 12px;
}

.search-box input {
  border: 0;
  box-shadow: none;
  padding: 12px 0;
}

.search-box:has(.locked-control) {
  background: rgba(248, 249, 252, 0.86);
  border-color: rgba(186, 195, 210, 0.7);
}

.search-box .locked-control {
  color: #8b95a7;
  cursor: not-allowed;
}

kbd {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 6px;
}

.filters {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 22px;
  margin: 18px -24px 0;
  padding: 0 24px;
}

.chip {
  background: transparent;
  border-bottom: 2px solid transparent;
  color: #596579;
  font-weight: 800;
  padding: 13px 0;
}

.chip.active {
  border-color: var(--blue);
  color: var(--text);
}

.chip span {
  color: var(--faint);
  margin-left: 5px;
}

.section-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin: 18px 0 10px;
}

.conversation-items {
  display: grid;
  gap: 6px;
}

.conversation-card {
  align-items: center;
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  gap: 13px;
  grid-template-columns: auto 1fr auto;
  min-height: 84px;
  padding: 12px 10px;
  position: relative;
}

.conversation-card.active {
  background: #f1f5ff;
}

.conversation-card:hover {
  background: #f7f9ff;
}

.conversation-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

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

.conversation-card .row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.conversation-card mark {
  background: #eaf7ef;
  border-radius: 999px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  justify-self: start;
  padding: 3px 8px;
}

.unread-dot {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.avatar.violet {
  background: #5947db;
}

.avatar.amber {
  background: #d68a1f;
}

.avatar.rose {
  background: #c7449c;
}

.avatar.sky {
  background: #2387cf;
}

.avatar.teal {
  background: #1d9d95;
}

.message-pane {
  background:
    linear-gradient(rgba(232, 236, 246, 0.44) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 236, 246, 0.44) 1px, transparent 1px),
    #ffffff;
  background-size: 48px 48px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
}

.message-header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  padding: 22px 28px;
}

.message-header h2 {
  font-size: 18px;
  margin-bottom: 7px;
}

.message-header p {
  color: var(--muted);
  margin: 0;
}

.presence {
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin-right: 6px;
  width: 8px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.resolve-button {
  background: #eef2ff;
  border: 1px solid #dce3ff;
  color: #3151b7;
}

.day-divider {
  color: var(--faint);
  font-size: 12px;
  padding: 18px 28px 0;
  text-align: center;
}

.day-divider span {
  background: white;
  padding: 0 14px;
}

.messages {
  align-content: start;
  display: grid;
  gap: 18px;
  overflow: auto;
  padding: 22px 56px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(28, 41, 70, 0.04);
  line-height: 1.55;
  max-width: 78%;
  padding: 15px 17px;
}

.message.inbound {
  background: white;
  justify-self: start;
}

.message.inbound div {
  border-left: 4px solid var(--blue);
  padding-left: 14px;
}

.message.outbound {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  justify-self: end;
}

.message.internal {
  background: #f8f6ff;
  border-color: #ddd7ff;
  color: #5142b6;
  justify-self: center;
}

.message small {
  color: inherit;
  display: block;
  font-size: 11px;
  margin-top: 9px;
  opacity: 0.72;
}

.message-language {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.composer {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  display: grid;
  gap: 10px;
  margin: 0 22px;
  padding: 0 14px 14px;
}

.composer-tabs {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
}

.composer-tabs button {
  background: transparent;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 800;
  padding: 12px 0;
}

.composer-tabs .tab-active {
  border-color: var(--purple);
  color: var(--text);
}

.composer-tabs select {
  margin-left: auto;
  max-width: 112px;
  padding: 7px 10px;
}

textarea {
  border: 0;
  box-shadow: none;
  min-height: 82px;
  resize: vertical;
}

.ghost-action {
  background: transparent;
  color: var(--muted);
  height: 30px;
  width: 30px;
}

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

.composer-hint {
  display: grid;
  gap: 2px;
}

.composer-send-status {
  color: #365a9d;
  font-weight: 800;
}

.composer-send-status.is-error {
  color: #b42318;
}

#sendButton:disabled {
  opacity: 0.45;
}

.insight-panel {
  background: #fbfcff;
  overflow: auto;
  padding: 24px 18px;
}

.insight-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.insight-header h2 {
  font-size: 18px;
}

.status-pill,
.tag {
  background: #eef2ff;
  border-radius: 999px;
  color: #4458bd;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.customer-summary {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  margin-bottom: 18px;
}

.customer-summary small {
  display: block;
  margin-top: 3px;
}

.mini-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
}

.mini-cards article,
.analysis-card,
.handoff-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(30, 42, 72, 0.04);
}

.mini-cards article {
  padding: 12px;
  position: relative;
}

.mini-cards strong {
  display: block;
  font-size: 13px;
  margin-top: 8px;
}

.analysis-card {
  line-height: 1.55;
  margin-bottom: 12px;
  padding: 15px;
}

.analysis-card.soft {
  background: #f5f7ff;
  border-color: #dde4ff;
}

.card-heading span {
  background: #eaf7ef;
  border-radius: 999px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
}

.tiny-button {
  background: #edf3ff;
  border-radius: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.ai-draft-actions {
  display: flex;
  gap: 6px;
}

dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

dd {
  margin: -6px 0 0;
}

.quick-tags {
  margin: 22px 0 14px;
}

.quick-tags h3 {
  color: #4b5568;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notes {
  margin-bottom: 0;
}

.handoff-card {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  margin-top: 14px;
  padding: 13px;
}

.toast {
  background: #15213a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  bottom: 24px;
  box-shadow: 0 18px 50px rgba(21, 39, 75, 0.24);
  color: white;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.drawer-scrim {
  background: rgba(20, 30, 50, 0.18);
  inset: 0;
  position: fixed;
  z-index: 30;
}

.merchant-drawer {
  background: #fbfcff;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(21, 39, 75, 0.16);
  display: grid;
  gap: 18px;
  grid-template-rows: auto auto 1fr auto;
  height: 100vh;
  overflow: auto;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  width: min(460px, 100vw);
  z-index: 40;
}

.merchant-drawer header,
.setup-progress,
.channel-card-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.knowledge-drawer {
  grid-template-rows: auto auto 1fr;
}

.workspace-settings-drawer {
  grid-template-rows: auto auto 1fr;
}

.knowledge-drawer header small {
  display: block;
  line-height: 1.45;
  margin-top: 6px;
  max-width: 330px;
}

.workspace-settings-drawer header small {
  display: block;
  line-height: 1.45;
  margin-top: 6px;
  max-width: 330px;
}

.workspace-settings-identity {
  align-items: center;
  background: #f3f7ff;
  border: 1px solid #d7e2ff;
  border-radius: 10px;
  display: flex;
  gap: 11px;
  padding: 13px;
}

.workspace-settings-avatar {
  align-items: center;
  background: #1e5be8;
  border-radius: 9px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.workspace-settings-identity > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workspace-settings-identity strong {
  color: var(--ink);
  font-size: 14px;
}

.workspace-settings-identity small {
  color: var(--muted);
  font-size: 11px;
}

.workspace-settings-badge,
.workspace-setting-status {
  background: #eef2fb;
  border-radius: 999px;
  color: #65728a;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 8px;
}

.workspace-settings-badge {
  margin-left: auto;
}

.workspace-settings-content {
  display: grid;
  gap: 18px;
  overflow-y: auto;
  padding-right: 2px;
}

.workspace-settings-section {
  display: grid;
  gap: 8px;
}

.workspace-settings-section > .eyebrow {
  margin: 0;
}

.workspace-settings-list {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.workspace-setting {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 12px 0;
}

.workspace-setting + .workspace-setting {
  border-top: 1px solid #e8edf5;
}

.workspace-setting-icon {
  align-items: center;
  background: #f3f6fb;
  border: 1px solid #e0e7f1;
  border-radius: 8px;
  color: #42638f;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.workspace-setting > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workspace-setting strong {
  color: var(--ink);
  font-size: 13px;
}

.workspace-setting small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.workspace-setting-status.current {
  background: #e9f7ef;
  color: #18805a;
}

.knowledge-summary {
  align-items: stretch;
  background: #f2f7ee;
  border: 1px solid #dbe8d0;
  border-radius: 8px;
  display: grid;
  gap: 0;
  grid-template-columns: 72px 72px 1fr;
  overflow: hidden;
}

.knowledge-summary > div {
  border-right: 1px solid #dbe8d0;
  display: grid;
  gap: 3px;
  padding: 13px 10px;
  place-content: center;
  text-align: center;
}

.knowledge-summary strong {
  color: var(--ink);
  font-size: 20px;
}

.knowledge-summary small {
  color: #627251;
  font-size: 10px;
  font-weight: 800;
}

.knowledge-summary p {
  align-self: center;
  color: #596b4a;
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
  padding: 12px;
}

.knowledge-content,
.knowledge-list,
.knowledge-editor {
  display: grid;
  gap: 12px;
}

.knowledge-editor {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.knowledge-editor-heading,
.knowledge-list-heading,
.knowledge-source footer,
.knowledge-editor-footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.knowledge-editor label {
  color: #536078;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
}

.knowledge-editor input,
.knowledge-editor textarea,
.knowledge-editor select {
  background: #fbfcff;
  border: 1px solid #d9e0ec;
  border-radius: 6px;
  color: var(--text);
  min-width: 0;
  padding: 9px;
}

.knowledge-editor textarea {
  line-height: 1.5;
  min-height: 112px;
  resize: vertical;
}

.knowledge-field-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 118px;
}

.knowledge-status {
  flex: 1;
}

.knowledge-source {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 13px;
}

.knowledge-source > div {
  align-items: center;
  display: flex;
  gap: 7px;
}

.knowledge-source-status {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 7px;
}

.knowledge-source-status.published {
  background: #e9f7ef;
  color: #18805a;
}

.knowledge-source-status.draft {
  background: #f0f2f6;
  color: #788295;
}

.knowledge-source > div small,
.knowledge-source footer small {
  color: #8a94a7;
  font-size: 10px;
}

.knowledge-source > strong {
  color: var(--ink);
  font-size: 13px;
}

.knowledge-source p {
  color: #60708a;
  display: -webkit-box;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.knowledge-empty {
  background: #f8f9fd;
  border: 1px dashed #cfd7e5;
  color: #728099;
  display: grid;
  font-size: 11px;
  gap: 5px;
  padding: 18px;
}

.knowledge-empty strong {
  color: var(--ink);
  font-size: 12px;
}

.knowledge-next {
  align-items: center;
  background: rgba(241, 244, 249, 0.72);
  border: 1px solid rgba(186, 195, 210, 0.72);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  opacity: 0.82;
  padding: 13px;
}

.knowledge-next div {
  display: grid;
  gap: 4px;
}

.knowledge-next small {
  color: #798598;
  font-size: 10px;
}

.knowledge-next em {
  color: #8d98aa;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.connection-intro {
  align-items: center;
  background: #f4f8f2;
  border: 1px solid #d9e8d2;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 15px;
}

.connection-intro small {
  display: block;
  color: #65745d;
  line-height: 1.45;
  margin-top: 5px;
}

#setupStatus {
  background: #eaf7ef;
  border-radius: 999px;
  color: var(--green);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.simulation-pill {
  background: #eef2ff;
  color: #4458bd;
}

.channel-cards {
  display: grid;
  gap: 12px;
}

.primary-channel-card,
.simulation-tool-card,
.secondary-channel-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.primary-channel-card {
  border-color: #cbd8ff;
  box-shadow: 0 12px 30px rgba(37, 89, 214, 0.08);
  display: grid;
  gap: 15px;
  padding: 17px;
}

.primary-channel-heading {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.primary-channel-heading h3,
.connection-section-heading h3 {
  color: var(--ink);
  font-size: 17px;
  margin: 0;
}

.primary-channel-heading small,
.primary-channel-action small,
.simulation-tool-card small,
.secondary-channel-card small,
.connection-section-heading small,
.connection-note small,
.connected-channel-details small,
.page-picker small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}

.channel-symbol {
  align-items: center;
  border-radius: 10px;
  color: white;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.facebook-symbol {
  background: #1877f2;
}

.connected-pill {
  background: #e9f7ef;
  color: #18805a;
}

.primary-channel-action,
.connected-channel-details,
.simulation-tool-card,
.secondary-channel-card {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.primary-channel-action {
  background: #f6f8ff;
  border: 1px solid #e1e8ff;
  border-radius: 9px;
  padding: 12px;
}

.primary-channel-action > div {
  min-width: 0;
}

.connection-note {
  align-items: center;
  background: #f4f6fa;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.connection-note span {
  color: #6c788b;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.connection-note small {
  margin: 0;
}

.connected-channel-details {
  background: #f3f9f4;
  border: 1px solid #dcebdc;
  border-radius: 9px;
  padding: 11px 12px;
}

.connected-channel-details > div {
  display: grid;
  gap: 2px;
}

.connected-channel-details strong {
  align-items: center;
  color: #315b42;
  display: flex;
  font-size: 12px;
  gap: 5px;
}

.connected-channel-details small {
  color: #6f876e;
  font-size: 10px;
  margin: 0;
}

.connection-section-heading {
  border-top: 1px solid #e5e9f0;
  margin-top: 6px;
  padding: 18px 1px 0;
}

.connection-section-heading .eyebrow {
  margin-bottom: 5px;
}

.simulation-tool-card,
.secondary-channel-card {
  min-height: 74px;
  padding: 14px 15px;
}

.simulation-tool-card {
  background: #fbfcff;
}

.simulation-tool-card strong,
.secondary-channel-card strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
}

.channel-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(30, 42, 72, 0.04);
  display: grid;
  gap: 14px;
  min-height: 118px;
  padding: 16px;
  position: relative;
}

.channel-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 6px 0 0;
}

.channel-card dl {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.connect-button {
  align-items: center;
  background: var(--blue);
  border-radius: 10px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  font-weight: 900;
  justify-content: center;
  justify-self: start;
  min-width: 112px;
  padding: 10px 13px;
  white-space: nowrap;
}

.channel-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.real-channel-gate {
  align-items: center;
  background: rgba(244, 246, 250, 0.8);
  border: 1px solid rgba(181, 190, 204, 0.7);
  border-radius: 16px;
  color: #707b8e;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px;
  text-align: left;
}

.real-channel-gate span {
  display: grid;
  gap: 5px;
}

.real-channel-gate small {
  line-height: 1.4;
}

.real-channel-gate em {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(174, 184, 199, 0.75);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 9px;
  white-space: nowrap;
}

.page-picker {
  align-items: flex-start;
  background: #f6f8ff;
  border: 1px solid #e1e8ff;
  border-radius: 9px;
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 12px;
}

.page-picker strong {
  color: var(--text);
  font-size: 13px;
}

.page-picker .eyebrow {
  margin: 0;
}

@media (max-width: 520px) {
  .connection-intro,
  .primary-channel-action,
  .connected-channel-details,
  .simulation-tool-card,
  .secondary-channel-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-channel-heading {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .primary-channel-heading .status-pill {
    grid-column: 2;
    justify-self: start;
  }
}

.channel-loading,
.webhook-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

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

.webhook-card code {
  background: #eef2ff;
  border-radius: 8px;
  color: #3151b7;
  padding: 8px 10px;
}

.simulation-scrim {
  align-items: center;
  background: rgba(20, 30, 50, 0.34);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 50;
}

.simulation-modal {
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(21, 39, 75, 0.28);
  max-width: 430px;
  overflow: hidden;
  width: 100%;
}

.simulation-modal header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.simulation-modal h3 {
  font-size: 20px;
}

.simulation-content {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.simulation-provider {
  align-items: center;
  background: #eef2ff;
  border: 1px solid #dce4ff;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.simulation-provider > span {
  align-items: center;
  background: #1d4ed8;
  border-radius: 9px;
  color: white;
  display: flex;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.simulation-provider small,
.simulation-copy,
.simulation-option small {
  color: var(--muted);
}

.simulation-provider small {
  display: block;
  margin-top: 2px;
}

.simulation-copy {
  line-height: 1.5;
  margin: 0;
}

.simulation-option {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  padding: 11px;
}

.simulation-option small {
  margin-left: auto;
}

.simulation-form {
  display: grid;
  gap: 12px;
}

.simulation-form label {
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.simulation-form input,
.simulation-form textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.simulation-form textarea {
  min-height: 100px;
}

.workspace-logo.small {
  border-radius: 10px;
  font-size: 14px;
  height: 34px;
  width: 34px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 64px 320px 1fr;
  }

  .rail {
    align-items: center;
    padding: 14px 10px;
  }

  .workspace-home-link {
    justify-content: center;
  }

  .workspace-brand,
  .rail-nav-label,
  .rail-nav-chevron,
  .rail-nav-lock,
  .rail-user-copy {
    display: none;
  }

  .rail-nav {
    align-self: center;
    width: auto;
  }

  .rail-nav button {
    justify-content: center;
    padding: 0;
    width: 44px;
  }

  .rail-footer {
    flex-direction: column;
    width: auto;
  }

  .rail-user {
    border-radius: 50%;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
  }

  .rail-user-avatar {
    border-radius: 50%;
  }

  .rail-logout {
    height: 42px;
    width: 42px;
  }

  .channel-launcher {
    left: 76px;
  }

  .insight-panel {
    display: none;
  }
}

@media (max-width: 780px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .rail {
    display: none;
  }

  .mobile-settings {
    display: inline-flex;
  }

  .conversation-list,
  .message-pane {
    border-right: 0;
  }

  .conversation-list {
    max-height: 48vh;
  }

  .messages {
    padding: 18px;
  }

  .message {
    max-width: 100%;
  }

  .composer {
    margin: 0;
    border-radius: 0;
  }
}

/* Public website: a separate delivery surface from the authenticated workspace. */
.site-shell {
  --ink: #10223e;
  --paper: #f4f6f3;
  --lime: #cce85c;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow: clip;
}

.site-shell,
.site-shell button,
.site-shell input {
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-nav {
  align-items: center;
  background: rgba(244, 246, 243, 0.92);
  border-bottom: 1px solid rgba(16, 34, 62, 0.14);
  backdrop-filter: blur(16px);
  display: flex;
  height: 76px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 9px;
  letter-spacing: 0;
  text-decoration: none;
}

.site-brand > span {
  align-items: center;
  background: var(--ink);
  border-radius: 7px;
  color: var(--lime);
  display: inline-flex;
  font-size: 16px;
  height: 27px;
  justify-content: center;
  width: 27px;
}

.site-brand > .site-logo-frame {
  background: transparent;
  border-radius: 0;
  display: block;
  height: 44px;
  overflow: hidden;
  position: relative;
  width: 132px;
}

.site-logo-frame img {
  display: block;
  mix-blend-mode: multiply;
  position: absolute;
  transform: translate(-8px, -50px);
  width: 156px;
}

.site-nav nav {
  display: flex;
  gap: 42px;
  margin-left: auto;
  margin-right: 52px;
}

.site-nav nav a,
.site-login,
.text-link {
  color: #40506a;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.site-nav nav a:hover,
.text-link:hover {
  color: var(--ink);
}

.site-nav nav a {
  padding: 29px 0 27px;
  position: relative;
}

.site-nav nav a::after {
  background: var(--lime);
  bottom: 17px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
  width: 100%;
}

.site-nav nav a:hover::after,
.site-nav nav a:focus-visible::after {
  transform: scaleX(1);
}

#product,
#channels,
#flow,
#service,
#ready,
#trust {
  scroll-margin-top: 96px;
}

.site-login {
  align-items: center;
  border: 1px solid rgba(16, 34, 62, 0.2);
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  gap: 12px;
  padding: 10px 13px;
}

.site-login small {
  color: #738099;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.site-login span {
  font-size: 17px;
  line-height: 10px;
}

.site-hero {
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(340px, 0.9fr) minmax(480px, 1.1fr);
  margin: 0 auto;
  max-width: 1440px;
  min-height: 710px;
  padding: 92px 48px 74px;
}

.hero-copy {
  align-self: center;
  max-width: 570px;
}

.site-kicker {
  color: #587022;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.site-hero h1,
.site-product-section h2,
.site-flow h2,
.site-ready h2,
.site-cta h2 {
  color: var(--ink);
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.99;
  margin: 0;
}

.hero-lead {
  color: #536078;
  font-size: 18px;
  line-height: 1.65;
  margin: 30px 0;
  max-width: 475px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.primary-link {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  gap: 18px;
  justify-content: space-between;
  padding: 15px 17px;
  text-decoration: none;
}

.primary-link:hover {
  background: #203b64;
}

.primary-link span {
  color: var(--lime);
  font-size: 20px;
  line-height: 14px;
}

.hero-signals {
  display: flex;
  gap: 0;
  margin: 66px 0 0;
}

.hero-signals div {
  border-left: 1px solid rgba(16, 34, 62, 0.2);
  padding: 0 25px;
}

.hero-signals div:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-signals dt {
  color: #61708a;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 7px;
}

.hero-signals dd {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  margin: 0;
  white-space: nowrap;
}

.hero-visual {
  align-self: center;
  margin: 0;
  position: relative;
}

.hero-visual::before {
  border: 1px solid #c8d0c3;
  content: "";
  inset: -16px 16px 16px -16px;
  position: absolute;
  z-index: 0;
}

.hero-visual img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-visual figcaption {
  align-items: center;
  background: var(--lime);
  bottom: -21px;
  color: var(--ink);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 24px;
  justify-content: space-between;
  padding: 13px 16px;
  position: absolute;
  right: 24px;
  z-index: 2;
}

.hero-visual figcaption span {
  color: #4d6215;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-access {
  border-bottom: 1px solid rgba(16, 34, 62, 0.14);
  border-top: 1px solid rgba(16, 34, 62, 0.14);
  display: grid;
  gap: 100px;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  margin: 0 auto;
  max-width: 1440px;
  padding: 76px 48px;
}

.site-access h2 {
  color: var(--ink);
  font-size: clamp(32px, 3.15vw, 50px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.06;
  margin: 0;
}

.site-access > div > p:not(.site-kicker) {
  color: #536078;
  font-size: 15px;
  line-height: 1.7;
  margin: 20px 0 0;
  max-width: 510px;
}

.access-actions {
  align-content: start;
  display: grid;
  gap: 14px;
  justify-items: start;
  padding-top: 10px;
}

.access-actions > small {
  color: #75819a;
  font-size: 11px;
  line-height: 1.55;
  max-width: 390px;
}

.access-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.access-providers .locked-lite {
  align-items: center;
  background: rgba(238, 241, 238, 0.76);
  border: 1px solid rgba(16, 34, 62, 0.13);
  border-radius: 6px;
  color: #758198;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 8px;
  padding: 10px 11px;
}

.access-providers em {
  color: #91a0b3;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.site-proof {
  background: var(--ink);
  color: white;
  padding: 74px 48px;
}

.site-proof > p,
.site-proof > div {
  margin-left: auto;
  margin-right: auto;
  max-width: 1344px;
}

.site-proof > p {
  font-size: clamp(27px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 54px;
  max-width: 935px;
}

.site-proof > div {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  padding-top: 19px;
}

.site-proof span {
  color: #c8d0df;
  flex: 1 1 160px;
  font-size: 13px;
  font-weight: 700;
}

.site-product-section,
.site-flow,
.site-ready {
  margin: 0 auto;
  max-width: 1440px;
  padding: 126px 48px;
}

.site-trust {
  background: #f7f8f5;
  border-top: 1px solid rgba(16, 34, 62, 0.14);
  display: grid;
  gap: 66px;
  grid-template-columns: 0.75fr 1.25fr;
  margin: 0 auto;
  max-width: 1440px;
  padding: 112px 48px;
}

.site-trust .site-kicker {
  margin: 7px 0 0;
}

.site-trust h2 {
  color: var(--ink);
  font-size: clamp(37px, 4.25vw, 65px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 28px;
}

.site-trust > div > p {
  color: #536078;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  max-width: 555px;
}

.site-trust dl {
  border-top: 1px solid rgba(16, 34, 62, 0.18);
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  margin: 10px 0 0;
}

.site-trust dl > div {
  border-right: 1px solid rgba(16, 34, 62, 0.18);
  min-height: 125px;
  padding: 25px 28px 0 0;
}

.site-trust dl > div + div {
  padding-left: 28px;
}

.site-trust dl > div:last-child {
  border-right: 0;
}

.site-trust dt {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  margin-bottom: 10px;
}

.site-trust dd {
  color: #60708a;
  line-height: 1.55;
  margin: 0;
}

.section-intro {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 76px;
}

.site-product-section h2,
.site-flow h2,
.site-ready h2,
.site-cta h2 {
  font-size: clamp(37px, 4.25vw, 65px);
}

.capability-grid {
  border-top: 1px solid rgba(16, 34, 62, 0.2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.capability-grid article {
  border-right: 1px solid rgba(16, 34, 62, 0.2);
  min-height: 242px;
  padding: 26px 28px 24px 0;
  position: relative;
}

.capability-grid article + article {
  padding-left: 28px;
}

.capability-grid article:last-child {
  border-right: 0;
}

.capability-index {
  color: #71815b;
  font-size: 11px;
  font-weight: 900;
}

.capability-grid h3 {
  font-size: 22px;
  letter-spacing: 0;
  margin: 39px 0 12px;
}

.capability-grid p {
  color: #5d6980;
  font-size: 14px;
  line-height: 1.65;
  max-width: 285px;
}

.locked-capability {
  background: rgba(223, 227, 222, 0.42);
  opacity: 0.72;
}

.locked-capability::after {
  background: rgba(244, 246, 243, 0.58);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.locked-capability em,
.readiness-locked em {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #b6c0b1;
  border-radius: 999px;
  color: #6e776c;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1;
}

.site-flow {
  background: #dce4d8;
  max-width: none;
}

.site-flow > div,
.site-flow > ol {
  margin-left: auto;
  margin-right: auto;
  max-width: 1344px;
}

.site-service {
  align-items: start;
  border-top: 1px solid rgba(16, 34, 62, 0.14);
  display: grid;
  gap: 82px;
  grid-template-columns: 0.82fr 1.18fr;
  margin: 0 auto;
  max-width: 1440px;
  padding: 112px 48px;
}

.site-service h2 {
  color: var(--ink);
  font-size: clamp(37px, 4.25vw, 65px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.service-standard-list {
  border-top: 1px solid rgba(16, 34, 62, 0.2);
}

.service-standard-list p {
  border-bottom: 1px solid rgba(16, 34, 62, 0.2);
  display: grid;
  gap: 18px;
  grid-template-columns: 146px 1fr;
  line-height: 1.6;
  margin: 0;
  padding: 24px 0;
  position: relative;
}

.service-standard-list strong {
  color: var(--ink);
  font-size: 14px;
}

.service-standard-list span {
  color: #5d6980;
}

.service-planned {
  background: rgba(226, 230, 227, 0.42);
  opacity: 0.72;
}

.service-planned em {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #b6c0b1;
  border-radius: 999px;
  color: #6e776c;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
  position: absolute;
  right: 0;
  top: 15px;
}

.flow-heading {
  margin-bottom: 73px;
}

.site-flow ol {
  border-top: 1px solid rgba(16, 34, 62, 0.2);
  list-style: none;
  margin-bottom: 0;
  padding: 0;
}

.site-flow li {
  align-items: start;
  border-bottom: 1px solid rgba(16, 34, 62, 0.2);
  display: grid;
  gap: 90px;
  grid-template-columns: 100px 1fr;
  padding: 27px 0 30px;
}

.site-flow li > span {
  color: #607157;
  font-size: 13px;
  font-weight: 900;
}

.site-flow li h3 {
  font-size: 25px;
  letter-spacing: 0;
  margin-bottom: 9px;
}

.site-flow li p {
  color: #536078;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 470px;
}

.site-ready {
  align-items: start;
  display: grid;
  gap: 82px;
  grid-template-columns: 0.82fr 1.18fr;
}

.readiness-list {
  border-top: 1px solid rgba(16, 34, 62, 0.2);
}

.readiness-list p {
  border-bottom: 1px solid rgba(16, 34, 62, 0.2);
  display: grid;
  gap: 18px;
  grid-template-columns: 112px 1fr;
  line-height: 1.55;
  margin: 0;
  padding: 22px 0;
  position: relative;
}

.readiness-list strong {
  color: var(--ink);
  font-size: 13px;
}

.readiness-list span {
  color: #5d6980;
}

.readiness-locked {
  background: rgba(226, 230, 227, 0.42);
  opacity: 0.72;
}

.readiness-locked em {
  right: 0;
  top: 15px;
}

.site-cta {
  background: var(--lime);
  padding: 119px 48px 130px;
  text-align: center;
}

.site-cta .site-kicker {
  color: #586b17;
}

.site-cta h2 {
  margin-bottom: 34px;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: #c8d0df;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 27px 48px;
}

.site-footer .site-brand {
  color: white;
}

.site-footer p,
.site-footer > a:last-child {
  color: #b2bed1;
  font-size: 12px;
  margin: 0;
  text-decoration: none;
}

/* Industry solution pages are direct campaign destinations, separate from the main site. */
.solution-shell {
  --solution-ink: #10223e;
  --solution-paper: #f6f7f3;
  --solution-lime: #cce85c;
  --ink: var(--solution-ink);
  --lime: var(--solution-lime);
  background: var(--solution-paper);
  color: var(--solution-ink);
  min-height: 100vh;
}

.solution-nav {
  align-items: center;
  background: rgba(246, 247, 243, 0.94);
  border-bottom: 1px solid rgba(16, 34, 62, 0.15);
  display: flex;
  height: 74px;
  justify-content: space-between;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.solution-nav-label {
  color: #63718a;
  font-size: 12px;
  font-weight: 800;
  margin-right: auto;
  padding-left: 28px;
}

.solution-nav-action {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(16, 34, 62, 0.24);
  border-radius: 6px;
  color: var(--solution-ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  gap: 13px;
  padding: 10px 13px;
}

.solution-nav-action:hover {
  background: var(--solution-ink);
  color: white;
}

.solution-hero {
  color: white;
  min-height: min(720px, calc(100vh - 74px));
  overflow: clip;
  position: relative;
}

.solution-hero > img,
.solution-hero-overlay {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.solution-hero-overlay {
  background: linear-gradient(90deg, rgba(4, 20, 48, 0.94) 0%, rgba(4, 20, 48, 0.78) 37%, rgba(4, 20, 48, 0.1) 76%);
}

.solution-hero-copy,
.solution-hero-note {
  position: relative;
  z-index: 1;
}

.solution-hero-copy {
  max-width: 690px;
  padding: 134px 48px 95px;
}

.solution-eyebrow {
  color: #afcb52;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0 0 23px;
}

.solution-hero h1,
.solution-problems h2,
.solution-workflow h2,
.solution-availability h2,
.solution-cta h2 {
  font-size: clamp(40px, 5.35vw, 78px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.solution-hero-copy > p:not(.solution-eyebrow) {
  color: #dbe3ef;
  font-size: 18px;
  line-height: 1.65;
  margin: 29px 0 35px;
  max-width: 530px;
}

.solution-actions {
  align-items: center;
  display: flex;
  gap: 23px;
}

.solution-actions > a {
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.solution-actions > a:hover {
  color: var(--solution-lime);
}

.solution-primary {
  align-items: center;
  background: var(--solution-lime);
  border-radius: 6px;
  color: var(--solution-ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 30px;
  padding: 15px 17px;
}

.solution-primary:hover {
  background: #d8f66a;
}

.solution-primary span {
  font-size: 19px;
  line-height: 12px;
}

.solution-hero-note {
  bottom: 29px;
  color: #d4dded;
  font-size: 12px;
  font-weight: 750;
  left: 48px;
  margin: 0;
  position: absolute;
}

.solution-problems,
.solution-workflow,
.solution-availability {
  padding: 120px 48px;
}

.solution-problems {
  display: grid;
  gap: 74px;
  grid-template-columns: 0.86fr 1.14fr;
}

.solution-problems > div,
.solution-workflow > *,
.solution-availability > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1344px;
}

.solution-problems h2,
.solution-workflow h2,
.solution-availability h2,
.solution-cta h2 {
  color: var(--solution-ink);
  font-size: clamp(36px, 4.2vw, 63px);
}

.solution-problem-list {
  border-top: 1px solid rgba(16, 34, 62, 0.19);
}

.solution-problem-list article {
  border-bottom: 1px solid rgba(16, 34, 62, 0.19);
  display: grid;
  gap: 23px;
  grid-template-columns: 42px 1fr;
  padding: 26px 0 28px;
}

.solution-problem-list article > span {
  color: #77911f;
  font-size: 12px;
  font-weight: 900;
}

.solution-problem-list h3,
.solution-workflow h3 {
  font-size: 21px;
  letter-spacing: 0;
  margin: 0 0 9px;
}

.solution-problem-list p,
.solution-workflow p,
.solution-availability dd {
  color: #56647b;
  line-height: 1.65;
  margin: 0;
}

.solution-workflow {
  background: #122a50;
  color: white;
}

.solution-workflow .solution-eyebrow {
  margin-bottom: 37px;
}

.solution-workflow-heading {
  align-items: end;
  display: grid;
  gap: 70px;
  grid-template-columns: 1fr 0.65fr;
}

.solution-workflow h2 {
  color: white;
}

.solution-workflow-heading p {
  color: #bac6d8;
  font-size: 16px;
  padding-bottom: 7px;
}

.solution-workflow ol {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  list-style: none;
  margin-bottom: 0;
  margin-top: 79px;
  padding: 0;
}

.solution-workflow li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  gap: 42px;
  grid-template-columns: 80px 1fr;
  padding: 28px 0 30px;
}

.solution-workflow li > span {
  color: var(--solution-lime);
  font-size: 13px;
  font-weight: 900;
}

.solution-workflow li p {
  color: #c3cfdf;
  max-width: 530px;
}

.solution-availability {
  background: #e2e8de;
}

.solution-availability > div {
  align-items: start;
  display: grid;
  gap: 78px;
  grid-template-columns: 0.84fr 1.16fr;
}

.solution-availability .solution-eyebrow {
  color: #546b16;
}

.solution-availability dl {
  border-top: 1px solid rgba(16, 34, 62, 0.2);
  margin: 0;
}

.solution-availability dl > div {
  border-bottom: 1px solid rgba(16, 34, 62, 0.2);
  padding: 24px 118px 24px 0;
  position: relative;
}

.solution-availability dt {
  color: var(--solution-ink);
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 10px;
}

.solution-planned {
  opacity: 0.66;
}

.solution-planned em {
  border: 1px solid rgba(101, 115, 137, 0.54);
  border-radius: 99px;
  color: #5a6880;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
  position: absolute;
  right: 0;
  top: 24px;
}

.solution-cta {
  background: var(--solution-lime);
  padding: 118px 48px 126px;
  text-align: center;
}

.solution-cta .solution-eyebrow {
  color: #4e6410;
}

.solution-cta h2 {
  margin-bottom: 34px;
}

.solution-cta .solution-primary {
  background: var(--solution-ink);
  color: white;
}

.solution-cta .solution-primary:hover {
  background: #203b64;
}

.agent-widget {
  bottom: 24px;
  position: fixed;
  right: 24px;
  z-index: 20;
}

.agent-greeting {
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 34, 62, 0.15);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 34, 62, 0.14);
  display: grid;
  gap: 9px;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  margin-bottom: 10px;
  max-width: 290px;
  padding: 10px;
}

.agent-greeting > button:not(.greeting-dismiss) {
  background: transparent;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 0;
  text-align: left;
}

.agent-greeting strong {
  font-size: 12px;
  font-weight: 850;
}

.agent-greeting small {
  color: #728099;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.greeting-dismiss {
  align-self: start;
  background: transparent;
  color: #8290a4;
  font-size: 18px;
  line-height: 13px;
  padding: 0;
}

.agent-launcher {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(16, 34, 62, 0.2);
  color: white;
  display: flex;
  gap: 9px;
  padding: 10px 12px;
}

.agent-launcher span,
.agent-avatar {
  align-items: center;
  background: var(--lime);
  border-radius: 5px;
  color: var(--ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.agent-launcher b {
  font-size: 13px;
}

.agent-widget-panel {
  background: #ffffff;
  border: 1px solid rgba(16, 34, 62, 0.18);
  border-radius: 8px;
  box-shadow: 0 22px 64px rgba(16, 34, 62, 0.25);
  margin-bottom: 10px;
  overflow: hidden;
  width: min(370px, calc(100vw - 32px));
}

.agent-widget-panel header {
  align-items: center;
  border-bottom: 1px solid #e6e9e5;
  display: flex;
  gap: 9px;
  padding: 14px;
}

.agent-widget-panel header > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.agent-widget-panel header strong {
  color: var(--ink);
  font-size: 13px;
}

.agent-widget-panel header strong em {
  color: #8390a2;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  margin-left: 4px;
}

.agent-widget-panel header small {
  color: #71815b;
  font-size: 10px;
  font-weight: 800;
}

.agent-widget-panel header small i {
  background: #26a56f;
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  margin-right: 4px;
  width: 6px;
}

.widget-close {
  background: transparent;
  color: #66738a;
  font-size: 24px;
  line-height: 1;
  margin-left: auto;
  padding: 0 2px;
}

.agent-thread {
  background: #f6f7f5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  min-height: 178px;
  overflow: auto;
  padding: 14px;
}

.agent-message-row {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.agent-message-row.visitor {
  align-items: flex-end;
}

.agent-message-row > small {
  color: #8b96a5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding-left: 3px;
}

.agent-message {
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  max-width: 86%;
  padding: 9px 10px;
}

.agent-message.assistant {
  align-self: flex-start;
  background: white;
  border: 1px solid #e2e7df;
  color: #3e4d64;
}

.agent-message.visitor {
  align-self: flex-end;
  background: var(--ink);
  color: white;
}

.agent-message-row.agent-typing .agent-message {
  align-items: center;
  display: flex;
  gap: 3px;
  min-height: 34px;
}

.agent-message-row.agent-typing span {
  color: #60708a;
  font-size: 10px;
  margin-right: 3px;
}

.agent-message-row.agent-typing i {
  animation: widget-pulse 1s infinite ease-in-out;
  background: #7b8a76;
  border-radius: 50%;
  height: 4px;
  width: 4px;
}

.agent-message-row.agent-typing i:nth-child(2) { animation-delay: 0.12s; }
.agent-message-row.agent-typing i:nth-child(3) { animation-delay: 0.24s; }

@keyframes widget-pulse {
  50% { opacity: 0.25; transform: translateY(-2px); }
}

.agent-prompts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px 0;
}

.agent-prompts button {
  background: #f1f4ec;
  border: 1px solid #d8e0d3;
  border-radius: 999px;
  color: #425036;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 750;
  padding: 7px 8px;
}

.agent-input {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 31px;
  padding: 10px 12px;
}

.agent-input input {
  background: #f7f8f6;
  border: 1px solid #dfe5dc;
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  padding: 9px;
}

.agent-input button {
  align-items: center;
  background: var(--ink);
  border-radius: 6px;
  color: var(--lime);
  display: flex;
  font-size: 18px;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 31px;
}

.agent-disclosure {
  color: #8994a1;
  font-size: 9px;
  line-height: 1.4;
  margin: 0;
  padding: 0 12px 11px;
}

.agent-message-row.is-failed .agent-message.visitor {
  background: #7d5261;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.agent-status-notice,
.agent-gate,
.agent-handoff {
  border-top: 1px solid #dce3d7;
  color: #556378;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}

.agent-status-notice {
  background: #f4f7f1;
}

.agent-status-notice.error {
  background: #fff5f0;
  border-top-color: #f1d4c7;
  color: #855449;
}

.agent-status-notice strong,
.agent-gate strong {
  color: inherit;
  font-size: 11px;
}

.agent-status-notice span,
.agent-gate > span,
.agent-gate label,
.agent-handoff span {
  font-size: 10px;
  line-height: 1.45;
}

.agent-status-notice button,
.agent-handoff button {
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  justify-self: start;
  padding: 2px 0;
}

.agent-gate {
  background: #f8f8f5;
}

.agent-gate form {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.agent-gate input:not([type="checkbox"]) {
  background: white;
  border: 1px solid #d9e1d5;
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  min-width: 0;
  padding: 8px 9px;
}

.agent-gate form button,
.agent-gate.consent > button {
  background: var(--ink);
  border-radius: 6px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 850;
  padding: 8px 10px;
}

.agent-gate.consent label {
  align-items: flex-start;
  display: flex;
  gap: 7px;
}

.agent-gate.consent input {
  accent-color: var(--ink);
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.agent-gate.consent > button {
  justify-self: start;
}

.agent-handoff {
  background: #f6f8f4;
  padding-bottom: 8px;
  padding-top: 8px;
}

.agent-session-notice {
  background: #fff8e9;
  border-top: 1px solid #f1dfae;
  color: #715a20;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.agent-session-notice.paused {
  background: #f1f3f7;
  border-top-color: #d8dde6;
  color: #566278;
}

.agent-session-notice strong {
  font-size: 11px;
}

.agent-session-notice span {
  font-size: 10px;
  line-height: 1.4;
}

.agent-session-notice button {
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  justify-self: start;
  padding: 3px 0 0;
}

.agent-prompts button:disabled,
.agent-input button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

@media (max-width: 780px) {
  .site-nav {
    height: 64px;
    padding: 0 18px;
  }

  .site-nav nav {
    display: none;
  }

  .site-login {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    gap: 7px;
    padding: 8px 10px;
  }

  .site-login small {
    display: none;
  }

  .site-hero {
    display: flex;
    flex-direction: column;
    gap: 56px;
    min-height: 0;
    padding: 66px 22px 78px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-signals {
    margin-top: 48px;
  }

  .hero-signals div {
    padding: 0 13px;
  }

  .hero-signals dd {
    font-size: 11px;
  }

  .hero-visual::before {
    inset: -10px 10px 10px -10px;
  }

  .hero-visual figcaption {
    bottom: -17px;
    font-size: 10px;
    gap: 12px;
    padding: 10px;
    right: 10px;
  }

  .hero-visual figcaption span {
    display: none;
  }

  .site-access {
    display: block;
    padding: 60px 22px;
  }

  .site-access .access-actions {
    margin-top: 34px;
    padding-top: 0;
  }

  .site-proof,
  .site-product-section,
  .site-flow,
  .site-service,
  .site-ready,
  .site-trust,
  .site-cta {
    padding-left: 22px;
    padding-right: 22px;
  }

  .site-proof {
    padding-bottom: 57px;
    padding-top: 57px;
  }

  .site-proof > p {
    margin-bottom: 36px;
  }

  .site-product-section,
  .site-flow,
  .site-ready,
  .site-trust {
    padding-bottom: 80px;
    padding-top: 80px;
  }

  .section-intro,
  .site-service,
  .site-ready {
    display: block;
  }

  .section-intro {
    margin-bottom: 44px;
  }

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

  .capability-grid article,
  .capability-grid article + article {
    border-bottom: 1px solid rgba(16, 34, 62, 0.2);
    border-right: 0;
    min-height: 186px;
    padding: 23px 0;
  }

  .site-flow li {
    gap: 20px;
    grid-template-columns: 52px 1fr;
  }

  .site-flow li h3 {
    font-size: 21px;
  }

  .site-ready > div:first-child,
  .site-service > div:first-child {
    margin-bottom: 44px;
  }

  .site-trust {
    display: block;
  }

  .site-trust .site-kicker {
    margin-bottom: 22px;
  }

  .site-trust dl {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .site-trust dl > div,
  .site-trust dl > div + div,
  .site-trust dl > div:last-child {
    border-bottom: 1px solid rgba(16, 34, 62, 0.18);
    border-right: 0;
    min-height: 0;
    padding: 20px 0;
  }

  .readiness-list p {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .service-standard-list p {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .site-cta {
    padding-bottom: 94px;
    padding-top: 86px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 27px 22px;
  }

  .agent-widget {
    bottom: 15px;
    right: 15px;
  }

  .agent-greeting {
    max-width: min(282px, calc(100vw - 30px));
  }

  .knowledge-summary {
    grid-template-columns: 62px 62px 1fr;
  }

  .knowledge-summary p {
    font-size: 10px;
  }

  .solution-nav {
    height: 64px;
    padding: 0 22px;
  }

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

  .solution-nav-action {
    font-size: 12px;
    padding: 9px 10px;
  }

  .solution-hero {
    min-height: 670px;
  }

  .solution-hero-overlay {
    background: linear-gradient(90deg, rgba(4, 20, 48, 0.94) 0%, rgba(4, 20, 48, 0.77) 70%, rgba(4, 20, 48, 0.38) 100%);
  }

  .solution-hero-copy {
    padding: 112px 22px 86px;
  }

  .solution-hero-copy > p:not(.solution-eyebrow) {
    font-size: 16px;
  }

  .solution-hero-note {
    bottom: 21px;
    left: 22px;
    line-height: 1.5;
    max-width: 280px;
  }

  .solution-problems,
  .solution-workflow,
  .solution-availability,
  .solution-cta {
    padding-left: 22px;
    padding-right: 22px;
  }

  .solution-problems,
  .solution-workflow,
  .solution-availability {
    padding-bottom: 80px;
    padding-top: 80px;
  }

  .solution-problems,
  .solution-workflow-heading,
  .solution-availability > div {
    display: block;
  }

  .solution-problems > div:first-child,
  .solution-workflow-heading > p {
    margin-bottom: 42px;
  }

  .solution-workflow ol {
    margin-top: 48px;
  }

  .solution-workflow li {
    gap: 20px;
    grid-template-columns: 52px 1fr;
  }

  .solution-availability > div {
    margin-top: 42px;
  }

  .solution-availability dl > div {
    padding-right: 88px;
  }

  .solution-cta {
    padding-bottom: 94px;
    padding-top: 86px;
  }
}
