:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #243b37;
  background: #f6f8f7;
  font-synthesis: none;
  font-size: 14px;
  --green: #154f47;
  --muted: #7c8b86;
  --line: #e6ebe8;
  --lime: #d9f0bd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  line-height: 1.25;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.65;
  color: #74847e;
}
small {
  color: #7c8b86;
  font-size: 12px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #83bb7b;
  outline-offset: 3px;
}
input,
select,
textarea {
  border: 1px solid #dfe6e1;
  border-radius: 8px;
  background: white;
  color: #243b37;
  padding: 11px 12px;
  max-width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
}
select {
  cursor: pointer;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 550;
  margin-bottom: 18px;
}
label small {
  font-weight: 400;
  line-height: 1.5;
}
button svg,
a svg {
  flex-shrink: 0;
}
.primary,
.secondary,
.text-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  padding: 11px 15px;
  border: 0;
  font-weight: 550;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #23665b;
}
.secondary {
  background: white;
  border: 1px solid #dfe6e1;
}
.secondary:hover {
  background: #f5f8f5;
}
.text-button {
  background: transparent;
  color: var(--green);
  padding: 6px 0;
  font-size: 13px;
}
.danger-button {
  background: #fff1ee;
  color: #a74738;
}
.icon-button {
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 7px;
}
.icon-button:hover {
  background: #edf3ee;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: #82948b;
  margin-bottom: 10px;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 30px 20px 16px;
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.brand {
  font-size: 31px;
  letter-spacing: -1.4px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 8px;
}
.brand-symbol {
  display: inline-grid;
  place-items: center;
  background: var(--green);
  color: #d9f29d;
  width: 35px;
  height: 35px;
  font-size: 23px;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: -2px;
}
.brand-dot {
  color: #80a36b;
  margin-left: -9px;
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 11px 10px;
  border-radius: 9px;
  margin: 28px 0 25px;
}
.workspace-switch strong,
.profile strong {
  font-size: 12px;
  display: block;
}
.workspace-switch small,
.profile small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.workspace-switch > svg {
  margin-left: auto;
}
.workspace-avatar {
  border-radius: 7px;
  background: #edf0e6;
  color: #608054;
  font-size: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #a1afa7;
  padding: 0 12px;
  margin-bottom: 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  border: 0;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  color: #6d7e75;
  font-weight: 500;
}
.sidebar nav button.active {
  background: #edf5ef;
  color: var(--green);
  font-weight: 650;
}
.sidebar nav button.active:before {
  content: '';
  position: absolute;
  left: 0;
  height: 23px;
  width: 3px;
  background: #4f8162;
  border-radius: 4px;
}
.sidebar nav button:hover {
  background: #f3f7f3;
}
.sidebar nav small {
  margin-left: auto;
  background: #d9e8d9;
  border-radius: 5px;
  padding: 2px 6px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 45px;
}
.system-card {
  background: #f6f8f3;
  border: 1px solid #e8eddf;
  border-radius: 10px;
  padding: 14px 12px;
}
.system-card strong {
  font-size: 12px;
}
.online-dot {
  display: inline-block;
  border-radius: 100%;
  height: 6px;
  width: 6px;
  background: #67966d;
  margin-right: 7px;
}
.system-card p {
  font-size: 11px;
  margin: 8px 0 10px;
  line-height: 1.6;
}
.system-card a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
}
.profile {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 0 0;
  text-align: left;
  width: 100%;
}
.profile > svg {
  margin-left: auto;
  color: #98a49e;
}
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  background: #ebefe7;
  color: #5a7052;
  font-weight: 650;
  font-size: 12px;
}
.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 10px;
}
.avatar.visitor {
  background: #edf3f0;
  color: #66847a;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.main {
  margin-left: 246px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  background: #fff;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
}
.topbar > div > span:first-child {
  color: #94a19a;
}
.topbar strong {
  font-weight: 500;
}
.topbar a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 7px;
  font-size: 12px;
  color: #6f8378;
}
.provider-pill {
  border: 1px solid #e1e8df;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 10px;
  background: #f8faf5;
  color: #69805f;
}
.content {
  max-width: 1650px;
  margin: auto;
  padding: 36px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}
.page-head h1 {
  margin: 0 0 11px;
  font-size: 27px;
}
.page-head p:last-child {
  font-size: 13px;
  margin: 0;
  color: #87938e;
  max-width: 660px;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.head-actions select {
  font-size: 12px;
  padding: 11px;
  width: 150px;
  background: transparent;
}
.head-actions .primary {
  font-size: 12px;
  white-space: nowrap;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 21px 22px;
}
.stat > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #83948b;
  font-size: 12px;
  gap: 10px;
}
.stat > div > svg {
  background: #f3f7f0;
  color: #728a6c;
  box-sizing: content-box;
  padding: 8px;
  border-radius: 8px;
}
.stat h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 10px 0 7px;
  letter-spacing: -1px;
}
.stat small {
  font-size: 11px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 24px 18px;
}
.panel-head h2 {
  margin: 0 0 6px;
  font-size: 16px;
}
.panel-head p {
  margin: 0;
  font-size: 12px;
  color: #8b9891;
}
.panel-head .text-button {
  font-size: 11px;
}
.site-list {
  padding: 0 24px;
}
.site-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #f0f3ef;
  padding: 19px 0;
}
.site-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eaf1e7;
  display: grid;
  place-items: center;
  color: #627b59;
  flex-shrink: 0;
}
.variant-1 {
  color: #927456;
  background: #f6eee4;
}
.site-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.site-row strong {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}
.site-row small {
  display: block;
  font-size: 11px;
}
.badge {
  font-size: 10px;
  font-weight: 550;
  padding: 5px 8px;
  border-radius: 5px;
  background: #edf0ec;
  color: #738175;
  display: inline-block;
  white-space: nowrap;
  text-transform: capitalize;
}
.badge.green {
  background: #edf5e8;
  color: #6b8b53;
}
.badge.amber {
  background: #fcf0df;
  color: #aa8547;
}
.badge.gray {
  background: #f0f3f1;
  color: #8c9990;
}
.add-dashed {
  border: 1px dashed #dce6da;
  border-radius: 8px;
  background: #fafcf9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #7c9271;
  font-size: 12px;
  width: calc(100% - 48px);
  margin: 0 24px 22px;
  padding: 12px;
}
.knowledge-callout {
  background: #edf3e7;
  border: 1px solid #e5ecd9;
  border-radius: 12px;
  position: relative;
  padding: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.round-icon {
  display: grid;
  place-items: center;
  border-radius: 11px;
  height: 47px;
  width: 47px;
  background: #dce9ce;
  color: #6d8a5c;
  margin-bottom: 20px;
}
.round-icon.light {
  background: #edf4e9;
}
.knowledge-callout .eyebrow {
  font-size: 9px;
  color: #839573;
}
.knowledge-callout h2 {
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -0.8px;
  margin: 8px 0 10px;
}
.knowledge-callout p {
  font-size: 12px;
  line-height: 1.8;
  max-width: 275px;
  color: #86957c;
}
.knowledge-callout button {
  background: transparent;
  color: #627957;
  border: 0;
  border-top: 1px solid #dbe5d0;
  padding: 17px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.callout-decoration {
  position: absolute;
  font-size: 160px;
  color: #dce7d1;
  right: -12px;
  top: 9px;
  line-height: 1;
  transform: rotate(15deg);
  pointer-events: none;
}
.knowledge-callout > div:not(.callout-decoration) {
  position: relative;
  z-index: 2;
}
.bottom-grid {
  grid-template-columns: minmax(0, 2.5fr) minmax(255px, 1fr);
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 10px;
  color: #94a296;
  font-weight: 500;
  background: #fafcf9;
  padding: 13px 20px;
  border-block: 1px solid #edf1eb;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #f1f4ef;
  color: #7f8d83;
}
td strong {
  color: #4e6357;
  font-weight: 550;
  font-size: 12px;
}
td select {
  padding: 7px;
  font-size: 12px;
}
.row-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  color: #719067;
}
.row-link strong {
  display: block;
  text-overflow: ellipsis;
  max-width: 230px;
  overflow: hidden;
  font-size: 12px;
}
.row-link small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #a1aba4;
}
.health {
  padding: 24px;
}
.health h2 {
  font-size: 16px;
}
.health > div:not(.readiness-ring) {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #7c8c76;
  margin-bottom: 13px;
}
.health p {
  font-size: 11px;
  color: #95a08d;
  line-height: 1.7;
  margin: 20px 0 0;
}
.readiness-ring {
  margin: 24px auto 25px;
  border: 9px solid #e1ecd5;
  border-bottom-color: #f2f6ed;
  border-radius: 50%;
  width: 137px;
  height: 137px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.readiness-ring span {
  font-size: 32px;
  font-weight: 600;
}
.readiness-ring small {
  font-size: 9px;
}
.empty {
  padding: 42px 28px;
  text-align: center;
  color: #97a88f;
  white-space: normal;
}
.empty svg {
  margin-bottom: 12px;
  color: #8da582;
}
.empty h3 {
  font-size: 15px;
  font-weight: 550;
  margin-bottom: 7px;
}
.empty p {
  font-size: 12px;
  max-width: 360px;
  margin: 0 auto 15px;
  color: #94a28b;
}
.empty a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6e8c5e;
}
.workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a7b1a8;
  font-size: 10px;
  margin-top: 30px;
  gap: 15px;
}
.workspace-footer span:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 6px;
}
.workspace-footer button {
  font-size: 10px;
  color: #96a58e;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.two-col.compact {
  gap: 16px;
  margin-top: 0;
}
.form-panel {
  padding: 25px;
}
.form-panel p {
  font-size: 13px;
}
.form-panel h2 {
  margin: 0 0 12px;
}
.form-panel form {
  margin-top: 22px;
}
.form-panel label {
  font-size: 13px;
}
.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
}
.form-panel .checkbox-label {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
.knowledge-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #eef4e8;
  border: 1px solid #e1e9d9;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 23px;
  color: #759261;
}
.knowledge-banner strong {
  font-size: 13px;
}
.knowledge-banner p {
  font-size: 12px;
  margin: 5px 0 0;
  color: #8a9a7d;
}
.knowledge-banner .badge {
  margin-left: auto;
}
.table-toolbar {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94a08f;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a5b09e;
}
.search input {
  border: 0;
  padding: 6px;
  background: transparent;
  width: 290px;
  font-size: 12px;
}
.priority-panel {
  padding: 25px;
}
.priority-panel ol {
  padding-left: 23px;
}
.priority-panel li {
  padding: 9px 0 12px;
  color: #7b925e;
  font-size: 13px;
}
.priority-panel li strong {
  display: block;
  color: #51644a;
  margin-bottom: 5px;
  font-size: 13px;
}
.priority-panel li span {
  color: #8e9c82;
  font-size: 12px;
  line-height: 1.6;
}
.website-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.website-card {
  padding: 25px;
}
.website-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.website-card > p {
  font-size: 12px;
}
.website-card h2 {
  margin-bottom: 8px;
}
.mini-stats {
  display: flex;
  border-block: 1px solid var(--line);
  gap: 35px;
  padding: 18px 0;
  margin: 20px 0;
}
.mini-stats span {
  font-size: 11px;
  color: #93a189;
}
.mini-stats strong {
  display: block;
  font-size: 23px;
  color: #56704f;
  margin-bottom: 5px;
}
.website-card label {
  font-size: 11px;
  color: #819576;
}
.embed-code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f4f7f1;
  font-size: 11px;
  line-height: 1.8;
  border-radius: 6px;
  padding: 13px;
  color: #7e9172;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}
.taught {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.taught h3 {
  margin: 13px 0 8px;
}
.taught p {
  color: #7c8d73;
}
.taught .text-button {
  display: flex;
  margin-top: 8px;
}
.info-note {
  padding: 16px;
  background: #f4f7f1;
  border-radius: 8px;
  color: #839678;
  line-height: 1.7;
  font-size: 12px;
  margin-top: 22px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.settings-grid .panel-head {
  padding: 0 0 18px;
}
.setting-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
}
.setting-line span {
  color: #91a184;
}
.setting-line strong {
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.event {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.event summary {
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  font-size: 12px;
}
.event summary > small {
  margin-left: auto;
}
.event pre {
  white-space: pre-wrap;
  font-size: 12px;
  background: #f4f7f1;
  padding: 18px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 27px 0;
  font-size: 12px;
  text-transform: capitalize;
}
.bar-row > span {
  width: 90px;
  color: #829676;
}
.bar-row > div {
  flex: 1;
  background: #f0f5eb;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}
.bar-row i {
  display: block;
  height: 100%;
  background: #81a26c;
  border-radius: 5px;
}
.bar-row strong {
  width: 25px;
  text-align: right;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17392f65;
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  max-width: 680px;
  width: 100%;
  max-height: 90dvh;
  background: white;
  border-radius: 14px;
  overflow-y: auto;
  box-shadow: 0 20px 100px #12302733;
}
.modal > header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.modal > header h2 {
  margin: 0;
}
.modal details summary {
  cursor: pointer;
  font-size: 13px;
  margin: 10px 0 20px;
  color: #73915f;
}
.modal .primary {
  width: 100%;
  margin-top: 12px;
}
.conversation-meta {
  display: flex;
  gap: 9px;
  margin-bottom: 20px;
}
.transcript {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}
.transcript-message {
  border-radius: 10px;
  padding: 15px;
  background: #f3f7f0;
}
.transcript-message.user {
  background: #edf3f3;
}
.transcript-message p {
  font-size: 13px;
  white-space: pre-wrap;
  margin: 8px 0 0;
}
.transcript-message small {
  font-size: 10px;
}
.block {
  display: block;
  margin-top: 5px;
}
.alert {
  border-radius: 8px;
  padding: 13px 17px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.alert button {
  border: 0;
  background: transparent;
  color: inherit;
  margin-left: auto;
  display: grid;
  place-items: center;
}
.error {
  background: #fff1ee;
  color: #ae5b47;
  border-radius: 7px;
  padding: 12px;
  line-height: 1.5;
  font-size: 13px;
}
.success {
  background: #e8f3de;
  color: #668643;
}
.loading {
  display: grid;
  place-content: center;
  min-height: 100vh;
}
.login-screen {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-art {
  background: #154f47;
  color: #e7efdb;
  padding: 70px 65px;
  position: relative;
  overflow: hidden;
}
.login-art .brand-symbol {
  background: #d2ebb3;
  color: #154f47;
}
.login-art h1 {
  font-size: 48px;
  line-height: 1.3;
  margin-top: 80px;
  letter-spacing: -1.6px;
  position: relative;
  z-index: 1;
}
.login-art p {
  color: #abc3b6;
  font-size: 16px;
}
.orb {
  height: 500px;
  width: 500px;
  border: 70px solid #285e4e;
  border-radius: 50%;
  position: absolute;
  right: -150px;
  bottom: -130px;
  box-shadow: 0 0 0 60px #205648;
}
.login-form {
  max-width: 420px;
  width: 100%;
  align-self: center;
  justify-self: center;
  padding: 30px;
}
.login-form h2 {
  font-size: 32px;
  margin-top: 15px;
}
.login-form p {
  font-size: 14px;
  margin-bottom: 35px;
}
.login-form .primary {
  width: 100%;
  justify-content: space-between;
}
.demo-note {
  background: #f2f7ea;
  border: 1px solid #e4ecd9;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: #77926c;
  margin-top: 25px;
}
.demo-note code {
  font-size: 11px;
}
.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}
.widget {
  --agent-color: #154f47;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: white;
  color: #263d36;
  font-size: 14px;
}
.widget-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  background: var(--agent-color);
  color: white;
}
.agent-symbol {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffffff1c;
  font-size: 27px;
  color: #d4e8bd;
}
.widget-head strong {
  display: block;
  font-size: 14px;
}
.widget-head small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d5e5de;
  margin-top: 6px;
  font-size: 11px;
}
.widget-head small i {
  height: 6px;
  width: 6px;
  background: #c6ee9c;
  border-radius: 50%;
}
.widget-reset {
  margin-inline-start: auto;
  background: transparent;
  color: #d2e3d8;
  border: 0;
  padding: 5px;
}
.widget-feed {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(#f9fbf7, #fff);
}
.widget-intro {
  margin: 5px auto 25px;
  text-align: center;
  width: 100%;
}
.widget-intro > div {
  background: #eaf2e1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  margin: 0 auto 12px;
  font-size: 30px;
  color: #799260;
}
.widget-intro h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.widget-intro p {
  font-size: 10px;
  color: #9aab8d;
  margin: 0;
}
.bubble {
  padding: 13px 15px;
  border-radius: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  max-width: 92%;
  margin-bottom: 13px;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.bubble.assistant {
  background: white;
  border: 1px solid #e7ece1;
  border-end-start-radius: 4px;
}
.bubble.user {
  background: var(--agent-color);
  color: white;
  align-self: flex-end;
  border-end-end-radius: 4px;
}
.bubble.dots {
  letter-spacing: 5px;
  color: #8fa679;
}
.handoff-prompt {
  border: 1px solid #dce7d2;
  background: #f0f6e9;
  color: #6c8855;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.widget-footer {
  border-top: 1px solid #eaf0e5;
  padding: 15px 17px 10px;
  background: white;
}
.widget-footer > form {
  display: flex;
  gap: 8px;
}
.widget-footer > form input {
  flex: 1;
  padding: 12px;
  border: 1px solid #e4ebde;
  font-size: 13px;
}
.widget-footer > form button {
  border: 0;
  border-radius: 8px;
  background: var(--agent-color);
  color: white;
  display: grid;
  place-items: center;
  width: 42px;
}
.widget-footer > small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 9px;
  color: #a8b59c;
}
.contact-link {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #849a71;
  padding: 10px 0 0;
}
.contact-form {
  border: 1px solid #e6eddf;
  border-radius: 10px;
  padding: 15px;
  width: 100%;
  margin: 12px 0;
  background: #fff;
}
.contact-form input {
  width: 100%;
  font-size: 12px;
  margin-bottom: 10px;
}
.contact-form h3 {
  font-size: 14px;
}
.contact-form .consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 7px;
  font-weight: 400;
  font-size: 10px;
  color: #8b9b7d;
  line-height: 1.5;
  margin: 0 0 14px;
}
.consent input {
  width: 15px;
  margin: 0;
  flex-shrink: 0;
}
.contact-form .primary {
  width: 100%;
  font-size: 12px;
}
.widget-notice {
  display: flex;
  gap: 7px;
  color: #6f8c57;
  font-size: 12px;
  align-items: center;
}
.wa-link {
  color: #628948;
  background: #edf6e5;
  border: 1px solid #dbe9cb;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 7px;
  font-size: 12px;
}
.demo {
  min-height: 100vh;
  background: #f4f2e9;
  padding: 35px 7vw;
  color: #23443a;
}
.demo nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d6ded0;
  padding-bottom: 24px;
}
.demo nav > a:last-child {
  display: flex;
  gap: 8px;
  font-size: 12px;
}
.demo-brand {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -2px;
}
.demo-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  font-size: 10px;
  letter-spacing: 2px;
  color: #90a17e;
}
.demo-controls select {
  font-size: 12px;
  background: transparent;
}
.demo section {
  position: relative;
  padding-top: 40px;
  min-height: 700px;
}
.demo h1 {
  font-size: 70px;
  line-height: 1.1;
  letter-spacing: -3px;
  max-width: 650px;
  position: relative;
  z-index: 2;
}
.demo section > p:not(.eyebrow) {
  max-width: 380px;
  font-size: 16px;
  position: relative;
  z-index: 2;
  color: #8b9d7b;
}
.demo-art {
  position: absolute;
  right: 0;
  top: 60px;
  width: 45%;
  height: 500px;
  border-radius: 180px 180px 4px 4px;
  overflow: hidden;
  background: linear-gradient(170deg, #d4dfc0, #a9c39a);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  padding: 0 30px 50px;
}
.building {
  background: #e7e6d7;
  position: relative;
  width: 30%;
  height: 200px;
  box-shadow: 6px 2px 0 #c7cdb6;
}
.building:before {
  content: '';
  position: absolute;
  inset: 20px 12px;
  background: repeating-linear-gradient(0deg, transparent 0 24px, #879d80 24px 48px);
  border: 3px solid #d0d6c3;
}
.b2 {
  height: 310px;
  transform: skewY(-4deg);
}
.b3 {
  height: 260px;
}
.demo-art span {
  position: absolute;
  bottom: 18px;
  font-size: 9px;
  letter-spacing: 3px;
  color: #729464;
}
.demo-hint {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 65px;
  font-size: 12px !important;
  max-width: 400px !important;
}
.demo .eyebrow {
  color: #8ba077;
}
@media (min-width: 1500px) {
  .content {
    padding: 45px;
  }
  .sidebar {
    width: 260px;
  }
  .main {
    margin-left: 260px;
  }
  .page-head h1 {
    font-size: 31px;
  }
  .stats-grid {
    gap: 24px;
  }
  .stat {
    padding: 25px;
  }
  .topbar {
    padding: 0 45px;
  }
  .knowledge-callout h2 {
    font-size: 26px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding-inline: 15px;
  }
  .main {
    margin-left: 220px;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .head-actions {
    align-self: flex-end;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .knowledge-callout {
    padding: 22px;
  }
  .knowledge-callout h2 {
    font-size: 21px;
  }
  .bottom-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  .panel-head {
    padding-inline: 18px;
  }
  .site-list {
    padding-inline: 18px;
  }
  .site-row {
    gap: 10px;
  }
  .site-row strong {
    font-size: 12px;
  }
  .site-row .icon-button {
    padding: 3px;
  }
  .site-avatar {
    height: 37px;
    width: 37px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .two-col {
    gap: 18px;
  }
  .website-grid {
    gap: 18px;
  }
  .website-card {
    padding: 20px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 205px;
    padding: 25px 10px;
  }
  .main {
    margin-left: 205px;
  }
  .sidebar nav button {
    font-size: 12px;
    gap: 9px;
  }
  .workspace-switch {
    padding: 9px;
    gap: 7px;
  }
  .sidebar .workspace-switch strong {
    font-size: 11px;
  }
  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .knowledge-callout {
    min-height: 260px;
  }
  .knowledge-callout h2 br {
    display: none;
  }
  .knowledge-callout p {
    max-width: 430px;
  }
  .knowledge-callout > div:first-of-type {
    margin-bottom: 8px;
  }
  .knowledge-callout .round-icon {
    margin-bottom: 15px;
  }
  .health {
    display: none;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .two-col.compact {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .website-grid {
    grid-template-columns: 1fr;
  }
  .topbar > div {
    gap: 7px;
  }
  .topbar a {
    font-size: 10px;
  }
  .provider-pill {
    display: none;
  }
  .knowledge-banner .badge {
    display: none;
  }
  .demo h1 {
    font-size: 55px;
  }
  .demo-art {
    opacity: 0.45;
    width: 50%;
  }
  .demo section {
    padding-top: 25px;
  }
  .login-art {
    padding: 50px 35px;
  }
  .login-art h1 {
    font-size: 37px;
  }
  .workspace-footer > span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 650px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 246px;
    box-shadow: 10px 0 50px #243b3722;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .mobile-toggle {
    display: block;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .topbar > div {
    font-size: 11px;
    gap: 8px;
  }
  .topbar a {
    font-size: 10px;
    gap: 4px;
  }
  .topbar .avatar {
    display: none;
  }
  .content {
    padding: 25px 17px;
  }
  .page-head {
    gap: 16px;
    margin-bottom: 24px;
  }
  .page-head h1 {
    font-size: 26px;
    letter-spacing: -0.8px;
  }
  .page-head p:last-child {
    font-size: 12px;
  }
  .head-actions {
    align-self: stretch;
    justify-content: space-between;
  }
  .head-actions select {
    flex: 1;
    max-width: 230px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .stat > div:first-child {
    font-size: 11px;
  }
  .stat > div > svg {
    padding: 5px;
    width: 17px;
    height: 17px;
  }
  .stat h2 {
    font-size: 30px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel-head {
    padding: 20px 17px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .panel-head p {
    font-size: 11px;
  }
  .site-list {
    padding-inline: 17px;
  }
  .site-row {
    padding: 18px 0;
  }
  .site-row strong {
    font-size: 12px;
  }
  .site-row small {
    font-size: 10px;
  }
  .site-row .badge {
    font-size: 9px;
  }
  .knowledge-callout {
    padding: 24px;
  }
  .table-toolbar {
    gap: 12px;
    padding: 17px;
  }
  .search {
    width: 80%;
  }
  .search input {
    width: 100%;
    font-size: 11px;
  }
  .knowledge-banner {
    padding: 17px;
    align-items: flex-start;
  }
  .knowledge-banner svg {
    flex-shrink: 0;
    margin-top: 2px;
  }
  .knowledge-banner p {
    font-size: 11px;
  }
  .form-panel {
    padding: 20px;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    max-height: 95dvh;
  }
  .modal > header {
    padding: 15px 20px;
  }
  .modal .two-col.compact {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .card-actions {
    flex-wrap: wrap;
  }
  .setting-line {
    gap: 10px;
    font-size: 11px;
  }
  .setting-line > strong {
    max-width: 58%;
  }
  .workspace-footer {
    font-size: 9px;
  }
  .event summary {
    gap: 10px;
  }
  .event pre {
    font-size: 11px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 30px 25px;
    min-height: 220px;
  }
  .login-art h1 {
    font-size: 30px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .login-art p {
    font-size: 12px;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
  }
  .login-art .brand-symbol {
    width: 30px;
    height: 30px;
  }
  .login-form {
    padding: 35px 25px;
    max-width: 450px;
  }
  .orb {
    height: 260px;
    width: 260px;
    right: -70px;
    border-width: 40px;
    bottom: -110px;
  }
  .demo {
    padding: 25px 6vw;
  }
  .demo nav > a:last-child {
    font-size: 10px;
  }
  .demo-controls {
    flex-wrap: wrap;
    gap: 15px;
  }
  .demo h1 {
    font-size: 45px;
  }
  .demo-art {
    top: 70px;
    height: 370px;
    width: 70%;
    opacity: 0.28;
  }
  .demo section {
    min-height: 600px;
  }
  .demo section > p:not(.eyebrow) {
    font-size: 14px;
  }
  .demo-hint {
    margin-top: 80px;
  }
  .bar-row {
    gap: 12px;
  }
  .widget-intro h2 {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.widget-privacy { margin: 0; padding: 6px 14px; font-size: 10px; line-height: 1.4; color: #526760; flex-shrink: 0; }
/* Familiar messaging layout, scoped to the embedded assistant. */
.widget { position: relative; min-height: 0; background: #efeae2; color: #111b21; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.widget-head { min-height: 70px; padding: 13px 16px; gap: 10px; flex-shrink: 0; box-shadow: 0 1px 4px #0002; z-index: 1; }
.widget-head .agent-symbol { border-radius: 50%; background: #f3fffb; color: #128c7e; width: 42px; height: 42px; flex-shrink: 0; }
.widget-head > div:nth-child(2) { flex: 1; min-width: 0; }
.widget-head strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-head small { margin-top: 3px; line-height: 1.4; color: #e7f4f0; font-size: 11px; }
.widget-head .widget-reset { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.widget-head .widget-reset:hover { background: #ffffff18; }
.widget-feed { min-height: 0; padding: 14px 16px; overscroll-behavior: contain; background-color: #efeae2; background-image: radial-gradient(ellipse at center, transparent 55%, #dcd7cc66 57%, transparent 61%), radial-gradient(circle at 3px 3px, #d6d1c766 1px, transparent 2px); background-size: 84px 62px, 21px 21px; }
.widget .chat-disclosure { align-self: center; display: flex; align-items: center; gap: 5px; background: #fff4cf; border-radius: 8px; box-shadow: 0 1px 2px #0001; font-size: 10px; line-height: 1.5; padding: 8px 10px; margin: 0 8px 16px; text-align: center; max-width: 310px; color: #675c39; }
.widget .chat-disclosure svg { flex-shrink: 0; }
.widget .chat-date { align-self: center; font-size: 11px; color: #54656f; background: #fffdf5; padding: 5px 12px; border-radius: 7px; margin: 6px 0 15px; box-shadow: 0 1px 2px #0001; }
.widget .bubble { position: relative; padding: 9px 10px 6px; line-height: 1.5; font-size: 14px; max-width: 85%; border: 0; border-radius: 8px; margin-bottom: 9px; box-shadow: 0 1px 1px #0b141a20; white-space: normal; }
.widget .message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.widget .bubble.assistant { background: #fff; border-start-start-radius: 0; color: #111b21; }
.widget .bubble.user { background: #d9fdd3; color: #111b21; border-start-end-radius: 0; }
.widget .bubble::before { content: ''; position: absolute; top: 0; width: 0; height: 0; border-bottom: 9px solid transparent; }
.widget .bubble.assistant::before { inset-inline-start: -6px; border-inline-end: 7px solid white; }
.widget .bubble.user::before { inset-inline-end: -6px; border-inline-start: 7px solid #d9fdd3; }
.widget .message-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; color: #667781; font-size: 10px; line-height: 1; margin-top: 5px; min-height: 11px; }
.widget .typing-bubble { min-width: 52px; padding: 13px 15px; }
.widget .typing-bubble small { display: block; margin-top: 7px; color: #667781; font-size: 11px; }
.widget .typing-dots { display: flex; gap: 4px; align-items: center; height: 12px; }
.widget .typing-dots i { width: 6px; height: 6px; background: #8696a0; border-radius: 50%; animation: chat-pulse 1s ease-in-out infinite; }
.widget .typing-dots i:nth-child(2) { animation-delay: .14s; }
.widget .typing-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes chat-pulse { 0%, 70%, 100% { opacity: .5; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
.widget .widget-footer { background: #f0f2f5; border: 0; padding: 10px 12px max(8px, env(safe-area-inset-bottom)); flex-shrink: 0; }
.widget .widget-footer > form { gap: 8px; align-items: center; }
.widget .widget-footer > form input { width: 0; min-width: 0; border: 0; border-radius: 24px; background: white; padding: 13px 16px; font-size: 14px; min-height: 46px; }
.widget .widget-footer > form button { border-radius: 50%; background: #00a884; width: 46px; height: 46px; flex-shrink: 0; }
.widget .widget-footer > form button:disabled { opacity: .5; }
.widget .widget-footer > small { color: #667781; margin-top: 7px; }
.widget .contact-link { color: #087f6f; padding-top: 8px; }
.widget .handoff-prompt, .widget .wa-link { background: #fff; color: #087f6f; border: 0; border-radius: 10px; padding: 11px 13px; box-shadow: 0 1px 2px #0002; }
.widget .widget-privacy { background: #f0f2f5; color: #667781; padding: 5px 12px 0; font-size: 9px; }
.widget .contact-form { background: #fff; width: 100%; box-sizing: border-box; }
.widget .chat-scroll { position: absolute; inset-inline-end: 14px; bottom: 125px; background: white; color: #54656f; border: 0; border-radius: 50%; width: 38px; height: 38px; box-shadow: 0 2px 6px #0003; display: grid; place-items: center; }
.widget button:focus-visible, .widget a:focus-visible, .widget input:focus-visible { outline: 2px solid #00a884; outline-offset: 3px; }
@media (max-width: 420px) { .widget-feed { padding: 12px; } .widget-head { padding: 11px 12px; } .widget .bubble { max-width: 89%; } .widget .widget-footer > form input { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .widget .typing-dots i { animation: none; } }

/* Compact mobile layout; the embed tracks the visible viewport above the keyboard. */
.question-inbox { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.conversation-inbox { display: grid; gap: 16px; }
.inbox-controls { display: flex; gap: 10px; align-items: center; padding: 14px 18px; flex-wrap: wrap; }
.inbox-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; }
.inbox-search input { border: 0; background: transparent; width: 100%; min-width: 0; }
.inbox-controls select { width: auto; max-width: 100%; }
.inbox-controls button { display: inline-flex; align-items: center; gap: 7px; }
.inbox-columns { display: grid; grid-template-columns: minmax(270px, .85fr) minmax(0,1.4fr); gap: 16px; height: clamp(500px,70vh,820px); }
.inbox-list, .inbox-preview { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.inbox-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.inbox-list-head label { display: flex; flex-direction: row; align-items: center; gap: 9px; font-size: 12px; margin: 0; }
.inbox-list input[type=checkbox] { width: 17px; height: 17px; flex-shrink: 0; accent-color: #075e54; }
.inbox-list-head small, .inbox-list-footer { color: #72857c; font-size: 11px; }
.inbox-bulk { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #f2f7f3; border-bottom: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; }
.inbox-bulk .danger-button { display: flex; align-items: center; gap: 5px; margin-left: auto; font-size: 12px; }
.inbox-list-scroll { overflow-y: auto; flex: 1; min-height: 0; }
.inbox-row { display: flex; gap: 11px; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--line); }
.inbox-row > input { margin-top: 3px; }
.inbox-row.selected { background: #edf6f1; box-shadow: inset 3px 0 #075e54; }
.inbox-row-open { border: 0; background: transparent; padding: 0; flex: 1; min-width: 0; text-align: left; color: #183a36; }
.inbox-row-title { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.inbox-row-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.inbox-row-title time { font-size: 10px; color: #72857c; flex-shrink: 0; }
.inbox-row-open p { margin: 8px 0 10px; font-size: 12px; line-height: 1.6; color: #536d65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.inbox-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 10px; color: #72857c; }
.inbox-tag { border-radius: 5px; background: #edf1ee; color: #627d6e; padding: 3px 6px; text-transform: capitalize; }
.inbox-tag.hot { background: #fff0da; color: #935e17; }.inbox-tag.warm { background: #e4f2df; color: #3b713c; }
.inbox-list-footer { border-top: 1px solid var(--line); padding: 12px 16px; line-height: 1.6; }
.inbox-preview-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.inbox-preview-head > div { flex: 1; min-width: 0; }.inbox-preview-head h2 { margin: 0 0 5px; font-size: 18px; overflow-wrap: anywhere; }
.inbox-preview-head small { font-size: 11px; color: #72857c; }.inbox-preview-head .secondary { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.inbox-back { display: none; }.inbox-contact { display: flex; flex-wrap: wrap; gap: 8px 15px; padding: 12px 20px; background: #f8faf8; font-size: 11px; color: #72857c; overflow-wrap: anywhere; }
.inbox-messages { overflow-y: auto; flex: 1; padding: 22px; background: #f3f6f2; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.inbox-message { border: 1px solid #e2e9e3; border-radius: 12px; background: white; padding: 13px 16px; max-width: 90%; width: fit-content; flex-shrink: 0; }
.inbox-message.user { align-self: flex-end; background: #e0f2e5; border-color: #d6e7dc; }.inbox-message small { color: #72857c; font-size: 10px; }
.inbox-message p { font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 0; }
.inbox-message details { font-size: 11px; margin-top: 10px; color: #9a6021; }.inbox-message summary { cursor: pointer; }
.inbox-summary { border-top: 1px solid var(--line); padding: 14px 20px; font-size: 12px; max-height: 140px; overflow-y: auto; }.inbox-summary summary { cursor: pointer; }.inbox-summary p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.inbox-placeholder { display: grid; place-content: center; justify-items: center; text-align: center; flex: 1; padding: 32px; color: #72857c; }.inbox-placeholder h2 { font-size: 19px; color: #183a36; margin: 20px 0 6px; }.inbox-placeholder p { max-width: 310px; font-size: 13px; line-height: 1.8; }
@media(max-width:1050px) { .inbox-columns { grid-template-columns: minmax(250px,1fr) minmax(0,1.25fr); }.inbox-row-title { flex-wrap: wrap; gap: 4px; } }
@media(max-width:700px) { .inbox-columns { grid-template-columns: minmax(0,1fr); height: min(720px,78dvh); min-height: 430px; }.inbox-preview { display: none; }.showing-chat .inbox-list { display: none; }.showing-chat .inbox-preview { display: flex; }.inbox-back { display: inline-flex; }.inbox-controls { padding: 12px; }.inbox-search { flex-basis: 100%; }.inbox-controls select { flex: 1; min-width: 0; font-size: 12px; }.inbox-preview-head { padding: 14px; }.inbox-messages { padding: 14px; }.inbox-row-title { flex-wrap: nowrap; }.inbox-contact { padding: 10px 14px; }.inbox-message { max-width: 94%; } }
.question-inbox > .panel { padding: 22px; min-width: 0; }
.question-filters { display: flex; gap: 10px; margin: 18px 0 10px; }
.question-filters input { flex: 1; min-width: 0; }
.question-row { padding: 15px 0; border-bottom: 1px solid #e6ece8; }
.question-row.selected { background: #f2f8f3; }
.question-title { display: block; text-align: start; border: 0; background: transparent; color: #154f47; font-weight: 600; padding: 4px 0 8px; overflow-wrap: anywhere; }
.question-row small { display: block; color: #748579; }
.question-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.question-preview { background: #f2f8f3; border-radius: 8px; padding: 12px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .question-inbox { grid-template-columns: minmax(0,1fr); } .question-filters { flex-wrap: wrap; } }
.widget { height: var(--chat-height, 100dvh); overflow: hidden; }
.widget-head .widget-close { background: transparent; color: white; border: 0; border-radius: 50%; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; flex-shrink: 0; }
.widget-head small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.widget .reply-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; padding-top: 2px; }
.widget .reply-actions button, .widget .reply-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; border: 0; border-radius: 7px; background: #edf7f2; color: #075e54; font-size: 12px; padding: 6px 8px; text-decoration: none; }
.widget .widget-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.widget .widget-tools .contact-link { min-height: 40px; padding: 5px 0; font-size: 12px; }
.widget .widget-tools details { font-size: 11px; color: #526760; max-width: 55%; }
.widget .widget-tools summary { cursor: pointer; padding: 10px 0; }
.widget .widget-tools details p { margin: 0 0 5px; line-height: 1.4; }
.chat-preferences { border: 1px solid #dce5df; border-radius: 10px; padding: 16px; display: grid; gap: 14px; }
.widget .name-prompt { background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 12px; width: 100%; display: flex; gap: 8px; flex-wrap: wrap; box-sizing: border-box; }
.widget .name-prompt label { width: 100%; font-size: 13px; display: grid; gap: 8px; }
.widget .name-prompt input { font-size: 16px; min-width: 0; width: 100%; box-sizing: border-box; }
.widget .name-prompt button { border: 0; border-radius: 6px; background: #edf7f2; color: #075e54; min-height: 40px; padding: 6px 12px; }
.widget .widget-footer > small { margin-top: 0; font-size: 10px; }
.widget .typing-bubble small { margin: 0; }
@media (max-width: 600px) {
 .widget-head { min-height: 58px; padding: max(6px,env(safe-area-inset-top)) 10px 6px; gap: 7px; }
 .widget-head .agent-symbol { width: 34px; height: 34px; }
 .widget-head .widget-reset { width: 44px; height: 44px; margin-inline-start: 0; }
 .widget .widget-footer { padding: 7px 10px max(6px,env(safe-area-inset-bottom)); }
 .widget .bubble { max-width: 90%; }
 .widget .widget-footer > form input { font-size: 16px; padding: 11px 13px; }
 .widget .chat-scroll { bottom: 115px; }
}
@media (max-height: 400px) {
 .widget-head { min-height: 48px; padding-top: 2px; padding-bottom: 2px; }
 .widget .widget-footer > small { display: none; }
 .widget .widget-tools .contact-link, .widget .widget-tools summary { min-height: 26px; padding: 4px 0; }
}
.inbox-tabs{display:flex;gap:6px;padding:10px 18px;border-bottom:1px solid var(--border,#e4eae7);flex-shrink:0}.inbox-tabs button{background:transparent;color:#647c78;box-shadow:none;padding:8px 12px;border-radius:8px}.inbox-tabs button[aria-pressed=true]{background:#e6f2ec;color:#154c40}.visitor-details{display:grid;grid-template-columns:1fr 1fr;gap:16px}.visitor-details section{background:#fff;border:1px solid #e2eae5;border-radius:12px;padding:18px;min-width:0}.visitor-details h3{margin:0 0 14px;font-size:15px}.visitor-details dl{display:grid;grid-template-columns:105px 1fr;gap:10px;margin:0 0 14px;font-size:13px}.visitor-details dt{color:#708580}.visitor-details dd{margin:0;overflow-wrap:anywhere}.visitor-details a{color:#176b57}.visitor-hint{font-size:12px;color:#708580;line-height:1.6;margin:12px 0 0}.visitor-wide{grid-column:1/-1}.visitor-stats{display:flex;gap:24px;margin-bottom:18px}.visitor-stats strong{font-size:24px;display:block}.visitor-stats small{display:block;color:#708580}.visitor-journey{margin:0;padding-left:22px}.visitor-journey li{padding:0 0 16px 8px}.visitor-journey a,.visitor-journey small,.visitor-journey time{display:block;overflow-wrap:anywhere}.visitor-journey small,.visitor-journey time{font-size:12px;color:#708580;margin-top:4px}.visitor-details label{margin:12px 0}.visitor-details textarea{width:100%;resize:vertical}.visitor-delivery{list-style:none;padding:0;margin:0}.visitor-delivery li{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0;border-bottom:1px solid #e2eae5;font-size:12px}.visitor-delivery small{color:#708580}@media(max-width:1000px){.visitor-details{grid-template-columns:1fr}.visitor-wide{grid-column:auto}}@media(max-width:700px){.visitor-details section{padding:14px}.inbox-tabs{padding:8px 12px}}
/* Conversation history follows the reference dashboard; styles stay inside this page. */
.history-mode{--history-bg:#202023;--history-line:#38383d;--history-text:#edf2f9;--history-muted:#91abc5;display:flex;flex-direction:column;gap:16px}
.history-overview{display:grid;grid-template-columns:minmax(330px,1.9fr) minmax(200px,1fr) minmax(200px,1fr);grid-template-rows:1fr 1fr;gap:16px}
.history-overview article{background:var(--history-bg);color:var(--history-text);border-radius:12px;padding:16px 18px;min-width:0}.history-overview header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--history-line);padding-bottom:14px;margin-bottom:12px;gap:10px}.history-overview h2,.history-mode .inbox-list-head h2{display:flex;align-items:center;gap:9px;font-size:14px;margin:0;color:var(--history-text)}.history-overview svg{color:var(--history-muted)}
.history-live{grid-row:span 2}.history-live select{background:#202023;color:#edf2f9;border:1px solid #45454b;border-radius:9px;padding:8px 10px;font-size:12px;width:auto}.history-chart svg{width:100%;height:205px;display:block}.history-live footer{font-size:11px;color:var(--history-muted);line-height:1.5}.history-stat>small,.history-chat-counts small{color:var(--history-muted);font-size:12px}.history-stat-value{display:flex;align-items:center;gap:8px}.history-stat strong{font-size:29px;line-height:1.2}.history-stat p{font-size:12px;color:var(--history-muted);margin:8px 0 0}.history-stat p b{color:#d8efe3;margin-left:6px}.history-stat p span{display:block;font-size:10px;margin-top:4px}.metric-up,.metric-down{display:inline-flex;align-items:center;gap:3px;font-size:12px}.metric-up{color:#4bcc84}.metric-down{color:#fa4e66}.metric-neutral{color:#91abc5;font-size:11px}.history-chat-counts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.history-chat-counts strong{display:block}.history-stat dl{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:12px;margin:0}.history-stat dt{color:var(--history-muted)}.history-stat dd{margin:0;color:#57c886}.history-overview-loading{padding:20px;border-radius:12px;background:var(--history-bg);color:var(--history-text)}
.history-mode .inbox-controls{margin:0;background:var(--history-bg);border-color:var(--history-line);color:var(--history-text)}.history-mode .inbox-controls input,.history-mode .inbox-controls select{background:transparent;color:var(--history-text);border-color:#45454b}.history-mode select option{background:#242427;color:#edf2f9}.history-mode .inbox-search input::placeholder{color:var(--history-muted)}.history-mode .secondary{background:#29292e;color:#edf2f9;border-color:#45454b}.history-mode .inbox-columns{height:auto;min-height:0}.history-mode .history-only{grid-template-columns:1fr}.history-mode .inbox-list{background:var(--history-bg);border-color:var(--history-line);max-height:600px}.history-mode .inbox-list-head{background:#202023;color:#edf2f9;border-color:var(--history-line);gap:14px}.history-mode .inbox-list-head h2{margin-right:auto}.history-mode .inbox-list-head label{font-size:11px}.history-mode .inbox-list-scroll{overflow:auto}.history-mode .inbox-list-footer{background:#202023;color:#91abc5;border-color:#38383d}.history-mode .inbox-bulk{background:#243a33;color:#edf2f9}.history-mode .inbox-bulk button{color:#edf2f9}.history-mode input[type=checkbox]{accent-color:#60b88f}
.history-table{width:100%;border-collapse:collapse;min-width:650px;font-size:12px;color:#edf2f9}.history-table thead{position:sticky;top:0;z-index:1}.history-mode .history-table th{background:#29292e;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#91abc5;border-bottom:1px solid #414148;padding:14px 12px;text-align:left}.history-mode .history-table td{padding:14px 12px;border-bottom:1px solid #333338;color:#edf2f9;background:transparent;vertical-align:middle}.history-table th:first-child,.history-table td:first-child{width:40px;padding-right:0}.history-table time{white-space:nowrap}.history-table tr.selected{background:#253d35}.history-table tbody tr:hover{background:#2a2c30}.history-visitor{display:flex;align-items:center;gap:10px;text-align:left;box-shadow:none;background:transparent;color:#edf2f9;border:0;padding:0;width:100%;min-width:160px}.history-visitor:hover{background:transparent}.history-visitor>svg{flex-shrink:0;color:#91abc5}.history-visitor strong{font-size:12px}.history-visitor small{display:block;color:#91abc5;font-size:10px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px}.history-status{text-transform:capitalize;font-size:10px;padding:4px 7px;border-radius:5px;background:#303139;color:#b9c8d9;white-space:nowrap}.history-status.active{background:#224535;color:#82dca9}.history-status.human{background:#463d24;color:#eed38e}
.history-mode .inbox-preview{height:650px;background:#202023;border-color:#38383d;color:#edf2f9}.history-mode .inbox-preview-head,.history-mode .inbox-contact,.history-mode .inbox-tabs,.history-mode .inbox-summary{border-color:#38383d;background:#202023;color:#edf2f9}.history-mode .inbox-preview-head h2{color:#edf2f9}.history-mode .inbox-preview-head small{color:#91abc5}.history-mode .inbox-messages{background:#18191c}.history-mode .inbox-message{background:#282a2f;color:#edf2f9;border-color:#3b3f43}.history-mode .inbox-message.user{background:#203e33}.history-mode .inbox-message small{color:#a8bab3}.history-mode .inbox-back{display:inline-flex;color:#edf2f9}.history-mode .inbox-tabs button{color:#a8bacb}.history-mode .inbox-tabs button[aria-pressed=true]{background:#294439;color:#d4f0df}.history-mode .visitor-details{width:100%;grid-template-columns:1fr}.history-mode .visitor-details section{background:#242529;border-color:#383b40;color:#edf2f9}.history-mode .visitor-details h3{color:#edf2f9}.history-mode .visitor-details dt,.history-mode .visitor-hint,.history-mode .visitor-stats small,.history-mode .visitor-journey small,.history-mode .visitor-journey time{color:#9cabc1}.history-mode .visitor-details a{color:#85c9ab}.history-mode .visitor-details input,.history-mode .visitor-details textarea,.history-mode .visitor-details select{background:#202023;color:#edf2f9;border-color:#45454b}.history-mode .visitor-delivery li{border-color:#383b40}
@media(max-width:1200px){.history-overview{grid-template-columns:1fr 1fr}.history-live{grid-row:auto;grid-column:1/-1}.history-chart svg{height:170px}}
@media(max-width:700px){.history-overview{gap:10px}.history-overview article{padding:14px}.history-overview h2{font-size:12px}.history-stat strong{font-size:24px}.history-mode .inbox-list-head{flex-wrap:wrap;padding:14px}.history-mode .inbox-list{display:flex}.history-mode .showing-chat .inbox-list{display:none}.history-mode .inbox-columns{height:auto}.history-mode .inbox-preview{height:75dvh;min-height:430px}.history-mode .history-table td{padding:12px 8px}.history-mode .inbox-list-head label{margin-left:auto}.history-live footer{font-size:10px}}
@media(max-width:380px){.history-overview{grid-template-columns:1fr}.history-live{grid-column:auto}}
.history-mode .showing-chat{grid-template-columns:1fr}.history-mode .inbox-preview{position:fixed;right:20px;top:88px;bottom:20px;width:min(620px,calc(100vw - 32px));height:calc(100dvh - 108px);z-index:50;box-shadow:0 12px 60px #0007}.history-mode .history-table tbody tr.selected{background:#253d35}@media(max-width:700px){.history-mode .inbox-preview{top:0;right:0;bottom:0;width:100%;height:100dvh;border-radius:0;min-height:0}}
.history-mode .history-table .history-visitor strong{color:#edf2f9;display:block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-mode .history-table td{padding-top:16px;padding-bottom:16px}
.country-flag{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px}.country-flag svg{display:block;border-radius:2px}.history-mode .history-table{min-width:900px}.history-mode .history-visitor small{font-size:11px;color:#91abc5;margin-top:3px;max-width:250px;overflow:hidden;text-overflow:ellipsis}.history-mode .history-table td:nth-child(4){font-size:12px;font-family:monospace}

